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 nbd 3.27.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and
282 $0: [email protected] about your system, including any
283 $0: error possibly output before this message. Then install
284 $0: a modern shell, or manually run the script under such a
285 $0: shell if you do have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='nbd'
616 PACKAGE_TARNAME='nbd'
617 PACKAGE_VERSION='3.27.1'
618 PACKAGE_STRING='nbd 3.27.1'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL='http://nbd.sourceforge.net/'
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_func_c_list=
655 ac_subst_vars='am__EXEEXT_FALSE
656 am__EXEEXT_TRUE
657 LTLIBOBJS
658 LIBOBJS
659 GZNBD_FALSE
660 GZNBD_TRUE
661 AM_CPPFLAGS
662 MAN_SYSCONFDIR
663 MAN_EXEC_PREFIX
664 MAN_PREFIX
665 MAN_CONFIG_FILES
666 MANPAGES_FALSE
667 MANPAGES_TRUE
668 DB2M
669 NETLINK_FALSE
670 NETLINK_TRUE
671 LIBNL3_LIBS
672 LIBNL3_CFLAGS
673 CWRAP_FALSE
674 CWRAP_TRUE
675 NW_LIBS
676 NW_CFLAGS
677 SW_LIBS
678 SW_CFLAGS
679 GLIB_LIBS
680 GLIB_CFLAGS
681 CLIENT_FALSE
682 CLIENT_TRUE
683 RUN_XFAIL
684 GNUTLS_FALSE
685 GNUTLS_TRUE
686 GnuTLS_LIBS
687 GnuTLS_CFLAGS
688 PKG_CONFIG_LIBDIR
689 PKG_CONFIG_PATH
690 PKG_CONFIG
691 YFLAGS
692 YACC
693 LEXLIB
694 LEX_OUTPUT_ROOT
695 LEX
696 CPP
697 LT_SYS_LIBRARY_PATH
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 MANIFEST_TOOL
704 RANLIB
705 ac_ct_AR
706 AR
707 DLLTOOL
708 OBJDUMP
709 FILECMD
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 EGREP
717 GREP
718 SED
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 LIBTOOL
744 MAINT
745 MAINTAINER_MODE_FALSE
746 MAINTAINER_MODE_TRUE
747 am__xargs_n
748 am__rm_f_notfound
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 runstatedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_silent_rules
823 enable_maintainer_mode
824 enable_shared
825 enable_static
826 enable_pic
827 with_pic
828 enable_cxx_stdlib
829 enable_fast_install
830 enable_aix_soname
831 with_aix_soname
832 enable_dependency_tracking
833 with_gnu_ld
834 with_sysroot
835 enable_libtool_lock
836 enable_lfs
837 enable_syslog
838 enable_debug
839 with_gnutls
840 with_libnl
841 enable_manpages
842 '
843 ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 LIBS
850 CPPFLAGS
851 LT_SYS_LIBRARY_PATH
852 CPP
853 YACC
854 YFLAGS
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 GnuTLS_CFLAGS
859 GnuTLS_LIBS
860 GLIB_CFLAGS
861 GLIB_LIBS
862 SW_CFLAGS
863 SW_LIBS
864 NW_CFLAGS
865 NW_LIBS
866 LIBNL3_CFLAGS
867 LIBNL3_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: '$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: '$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: '$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: '$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: '$ac_option'
1262 Try '$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: '$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 'configure' configures nbd 3.27.1 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print 'checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for '--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or '..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, 'make install' will install all the files in
1443 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than '$ac_default_prefix' using '--prefix',
1445 for instance '--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/nbd]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of nbd 3.27.1:";;
1488 esac
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --disable-maintainer-mode
1498 disable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-shared[=PKGS] build shared libraries [default=yes]
1501 --enable-static[=PKGS] build static libraries [default=yes]
1502 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --enable-cxx-stdlib[=PKGS]
1505 let the compiler frontend decide what standard
1506 libraries to link when building C++ shared libraries
1507 and modules [default=no]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
1510 --enable-aix-soname=aix|svr4|both
1511 shared library versioning (aka "SONAME") variant to
1512 provide on AIX, [default=aix].
1513 --enable-dependency-tracking
1514 do not reject slow dependency extractors
1515 --disable-dependency-tracking
1516 speeds up one-time build
1517 --disable-libtool-lock avoid locking (might break parallel builds)
1518 --disable-lfs Disable Large File Support (default on)
1519 --enable-syslog Enable Syslog logging
1520 --enable-debug Build a debugging version of the server
1521 --disable-manpages Do not install man pages
1522
1523 Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1527 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1528 compiler's sysroot if not specified).
1529 --without-gnutls do not use gnutls
1530 --without-libnl do not use libnl
1531
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 LT_SYS_LIBRARY_PATH
1541 User-defined run-time library search path.
1542 CPP C preprocessor
1543 YACC The 'Yet Another Compiler Compiler' implementation to use.
1544 Defaults to the first program found out of: 'bison -y', 'byacc',
1545 'yacc'.
1546 YFLAGS The list of arguments that will be passed by default to $YACC.
1547 This script will default YFLAGS to the empty string to avoid a
1548 default value of '-d' given by some make applications.
1549 PKG_CONFIG path to pkg-config utility
1550 PKG_CONFIG_PATH
1551 directories to add to pkg-config's search path
1552 PKG_CONFIG_LIBDIR
1553 path overriding pkg-config's built-in search path
1554 GnuTLS_CFLAGS
1555 C compiler flags for GnuTLS, overriding pkg-config
1556 GnuTLS_LIBS linker flags for GnuTLS, overriding pkg-config
1557 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1558 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1559 SW_CFLAGS C compiler flags for SW, overriding pkg-config
1560 SW_LIBS linker flags for SW, overriding pkg-config
1561 NW_CFLAGS C compiler flags for NW, overriding pkg-config
1562 NW_LIBS linker flags for NW, overriding pkg-config
1563 LIBNL3_CFLAGS
1564 C compiler flags for LIBNL3, overriding pkg-config
1565 LIBNL3_LIBS linker flags for LIBNL3, overriding pkg-config
1566
1567 Use these variables to override the choices made by 'configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1569
1570 Report bugs to <[email protected]>.
1571 nbd home page: <http://nbd.sourceforge.net/>.
1572 _ACEOF
1573 ac_status=$?
1574 fi
1575
1576 if test "$ac_init_help" = "recursive"; then
1577 # If there are subdirs, report their specific --help.
1578 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1579 test -d "$ac_dir" ||
1580 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581 continue
1582 ac_builddir=.
1583
1584 case "$ac_dir" in
1585 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *)
1587 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594 esac
1595 ac_abs_top_builddir=$ac_pwd
1596 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597 # for backward compatibility:
1598 ac_top_builddir=$ac_top_build_prefix
1599
1600 case $srcdir in
1601 .) # We are building in place.
1602 ac_srcdir=.
1603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
1606 ac_srcdir=$srcdir$ac_dir_suffix;
1607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 esac
1614 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615
1616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for configure.gnu first; this name is used for a wrapper for
1618 # Metaconfig's "Configure" on case-insensitive file systems.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1630 fi
1631
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 nbd configure 3.27.1
1636 generated by GNU Autoconf 2.72
1637
1638 Copyright (C) 2023 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642 exit
1643 fi
1644
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1648
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest.beam
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 printf "%s\n" "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext
1675 then :
1676 ac_retval=0
1677 else case e in #(
1678 e) printf "%s\n" "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1 ;;
1682 esac
1683 fi
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1717 }
1718 then :
1719 ac_retval=0
1720 else case e in #(
1721 e) printf "%s\n" "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1 ;;
1725 esac
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists and can be compiled using the include files in
1740 # INCLUDES, setting the cache variable VAR accordingly.
1741 ac_fn_c_check_header_compile ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 printf %s "checking for $2... " >&6; }
1746 if eval test \${$3+y}
1747 then :
1748 printf %s "(cached) " >&6
1749 else case e in #(
1750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"
1756 then :
1757 eval "$3=yes"
1758 else case e in #(
1759 e) eval "$3=no" ;;
1760 esac
1761 fi
1762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1763 esac
1764 fi
1765 eval ac_res=\$$3
1766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 printf "%s\n" "$ac_res" >&6; }
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769
1770 } # ac_fn_c_check_header_compile
1771
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 printf %s "checking for $2... " >&6; }
1780 if eval test \${$3+y}
1781 then :
1782 printf %s "(cached) " >&6
1783 else case e in #(
1784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791 which can conflict with char $2 (void); below. */
1792
1793 #include <limits.h>
1794 #undef $2
1795
1796 /* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799 #ifdef __cplusplus
1800 extern "C"
1801 #endif
1802 char $2 (void);
1803 /* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806 #if defined __stub_$2 || defined __stub___$2
1807 choke me
1808 #endif
1809
1810 int
1811 main (void)
1812 {
1813 return $2 ();
1814 ;
1815 return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_link "$LINENO"
1819 then :
1820 eval "$3=yes"
1821 else case e in #(
1822 e) eval "$3=no" ;;
1823 esac
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1826 conftest$ac_exeext conftest.$ac_ext ;;
1827 esac
1828 fi
1829 eval ac_res=\$$3
1830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 printf "%s\n" "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_func
1835
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_c_try_cpp ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 printf "%s\n" "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 }
1861 then :
1862 ac_retval=0
1863 else case e in #(
1864 e) printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=1 ;;
1868 esac
1869 fi
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1878 # executables *can* be run.
1879 ac_fn_c_try_run ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 printf "%s\n" "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1890 ac_status=$?
1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 printf "%s\n" "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1900 ac_status=$?
1901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }
1903 then :
1904 ac_retval=0
1905 else case e in #(
1906 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1907 printf "%s\n" "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=$ac_status ;;
1911 esac
1912 fi
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_c_try_run
1918
1919 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1920 # --------------------------------------------
1921 # Tries to find the compile-time value of EXPR in a program that includes
1922 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1923 # computed
1924 ac_fn_c_compute_int ()
1925 {
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if test "$cross_compiling" = yes; then
1928 # Depending upon the size, compute the lo and hi bounds.
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $4
1932 int
1933 main (void)
1934 {
1935 static int test_array [1 - 2 * !(($2) >= 0)];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"
1944 then :
1945 ac_lo=0 ac_mid=0
1946 while :; do
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1949 $4
1950 int
1951 main (void)
1952 {
1953 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1954 test_array [0] = 0;
1955 return test_array [0];
1956
1957 ;
1958 return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"
1962 then :
1963 ac_hi=$ac_mid; break
1964 else case e in #(
1965 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1967 ac_lo= ac_hi=
1968 break
1969 fi
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1971 esac
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1974 done
1975 else case e in #(
1976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 int
1980 main (void)
1981 {
1982 static int test_array [1 - 2 * !(($2) < 0)];
1983 test_array [0] = 0;
1984 return test_array [0];
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"
1991 then :
1992 ac_hi=-1 ac_mid=-1
1993 while :; do
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 $4
1997 int
1998 main (void)
1999 {
2000 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2001 test_array [0] = 0;
2002 return test_array [0];
2003
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"
2009 then :
2010 ac_lo=$ac_mid; break
2011 else case e in #(
2012 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2013 if test $ac_mid -le $ac_hi; then
2014 ac_lo= ac_hi=
2015 break
2016 fi
2017 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2018 esac
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2021 done
2022 else case e in #(
2023 e) ac_lo= ac_hi= ;;
2024 esac
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2027 esac
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030 # Binary search between lo and hi bounds.
2031 while test "x$ac_lo" != "x$ac_hi"; do
2032 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main (void)
2038 {
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0;
2041 return test_array [0];
2042
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"
2048 then :
2049 ac_hi=$ac_mid
2050 else case e in #(
2051 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2052 esac
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2055 done
2056 case $ac_lo in #((
2057 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2058 '') ac_retval=1 ;;
2059 esac
2060 else
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 static long int longval (void) { return $2; }
2065 static unsigned long int ulongval (void) { return $2; }
2066 #include <stdio.h>
2067 #include <stdlib.h>
2068 int
2069 main (void)
2070 {
2071
2072 FILE *f = fopen ("conftest.val", "w");
2073 if (! f)
2074 return 1;
2075 if (($2) < 0)
2076 {
2077 long int i = longval ();
2078 if (i != ($2))
2079 return 1;
2080 fprintf (f, "%ld", i);
2081 }
2082 else
2083 {
2084 unsigned long int i = ulongval ();
2085 if (i != ($2))
2086 return 1;
2087 fprintf (f, "%lu", i);
2088 }
2089 /* Do not output a trailing newline, as this causes \r\n confusion
2090 on some platforms. */
2091 return ferror (f) || fclose (f) != 0;
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_run "$LINENO"
2098 then :
2099 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2100 else case e in #(
2101 e) ac_retval=1 ;;
2102 esac
2103 fi
2104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2105 conftest.$ac_objext conftest.beam conftest.$ac_ext
2106 rm -f conftest.val
2107
2108 fi
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110 as_fn_set_status $ac_retval
2111
2112 } # ac_fn_c_compute_int
2113
2114 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2115 # ----------------------------------------------------
2116 # Tries to find if the field MEMBER exists in type AGGR, after including
2117 # INCLUDES, setting cache variable VAR accordingly.
2118 ac_fn_c_check_member ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2122 printf %s "checking for $2.$3... " >&6; }
2123 if eval test \${$4+y}
2124 then :
2125 printf %s "(cached) " >&6
2126 else case e in #(
2127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $5
2130 int
2131 main (void)
2132 {
2133 static $2 ac_aggr;
2134 if (ac_aggr.$3)
2135 return 0;
2136 ;
2137 return 0;
2138 }
2139 _ACEOF
2140 if ac_fn_c_try_compile "$LINENO"
2141 then :
2142 eval "$4=yes"
2143 else case e in #(
2144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 $5
2147 int
2148 main (void)
2149 {
2150 static $2 ac_aggr;
2151 if (sizeof ac_aggr.$3)
2152 return 0;
2153 ;
2154 return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"
2158 then :
2159 eval "$4=yes"
2160 else case e in #(
2161 e) eval "$4=no" ;;
2162 esac
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2165 esac
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2168 esac
2169 fi
2170 eval ac_res=\$$4
2171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 printf "%s\n" "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174
2175 } # ac_fn_c_check_member
2176
2177 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2178 # ------------------------------------------------------------------
2179 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2180 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2181 ac_fn_check_decl ()
2182 {
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 as_decl_name=`echo $2|sed 's/ *(.*//'`
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2186 printf %s "checking whether $as_decl_name is declared... " >&6; }
2187 if eval test \${$3+y}
2188 then :
2189 printf %s "(cached) " >&6
2190 else case e in #(
2191 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2192 eval ac_save_FLAGS=\$$6
2193 as_fn_append $6 " $5"
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $4
2197 int
2198 main (void)
2199 {
2200 #ifndef $as_decl_name
2201 #ifdef __cplusplus
2202 (void) $as_decl_use;
2203 #else
2204 (void) $as_decl_name;
2205 #endif
2206 #endif
2207
2208 ;
2209 return 0;
2210 }
2211 _ACEOF
2212 if ac_fn_c_try_compile "$LINENO"
2213 then :
2214 eval "$3=yes"
2215 else case e in #(
2216 e) eval "$3=no" ;;
2217 esac
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2220 eval $6=\$ac_save_FLAGS
2221 ;;
2222 esac
2223 fi
2224 eval ac_res=\$$3
2225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 printf "%s\n" "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229 } # ac_fn_check_decl
2230
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2236 {
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 printf %s "checking for $2... " >&6; }
2240 if eval test \${$3+y}
2241 then :
2242 printf %s "(cached) " >&6
2243 else case e in #(
2244 e) eval "$3=no"
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2247 $4
2248 int
2249 main (void)
2250 {
2251 if (sizeof ($2))
2252 return 0;
2253 ;
2254 return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"
2258 then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2261 $4
2262 int
2263 main (void)
2264 {
2265 if (sizeof (($2)))
2266 return 0;
2267 ;
2268 return 0;
2269 }
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"
2272 then :
2273
2274 else case e in #(
2275 e) eval "$3=yes" ;;
2276 esac
2277 fi
2278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2281 esac
2282 fi
2283 eval ac_res=\$$3
2284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285 printf "%s\n" "$ac_res" >&6; }
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287
2288 } # ac_fn_c_check_type
2289 ac_configure_args_raw=
2290 for ac_arg
2291 do
2292 case $ac_arg in
2293 *\'*)
2294 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 esac
2296 as_fn_append ac_configure_args_raw " '$ac_arg'"
2297 done
2298
2299 case $ac_configure_args_raw in
2300 *$as_nl*)
2301 ac_safe_unquote= ;;
2302 *)
2303 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2304 ac_unsafe_a="$ac_unsafe_z#~"
2305 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2306 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2307 esac
2308
2309 cat >config.log <<_ACEOF
2310 This file contains any messages produced by compilers while
2311 running configure, to aid debugging if configure makes a mistake.
2312
2313 It was created by nbd $as_me 3.27.1, which was
2314 generated by GNU Autoconf 2.72. Invocation command line was
2315
2316 $ $0$ac_configure_args_raw
2317
2318 _ACEOF
2319 exec 5>>config.log
2320 {
2321 cat <<_ASUNAME
2322 ## --------- ##
2323 ## Platform. ##
2324 ## --------- ##
2325
2326 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2327 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2328 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2329 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2330 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2331
2332 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2333 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2334
2335 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2336 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2337 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2338 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2339 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2340 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2341 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2342
2343 _ASUNAME
2344
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 case $as_dir in #(((
2350 '') as_dir=./ ;;
2351 */) ;;
2352 *) as_dir=$as_dir/ ;;
2353 esac
2354 printf "%s\n" "PATH: $as_dir"
2355 done
2356 IFS=$as_save_IFS
2357
2358 } >&5
2359
2360 cat >&5 <<_ACEOF
2361
2362
2363 ## ----------- ##
2364 ## Core tests. ##
2365 ## ----------- ##
2366
2367 _ACEOF
2368
2369
2370 # Keep a trace of the command line.
2371 # Strip out --no-create and --no-recursion so they do not pile up.
2372 # Strip out --silent because we don't want to record it for future runs.
2373 # Also quote any args containing shell meta-characters.
2374 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_configure_args=
2376 ac_configure_args0=
2377 ac_configure_args1=
2378 ac_must_keep_next=false
2379 for ac_pass in 1 2
2380 do
2381 for ac_arg
2382 do
2383 case $ac_arg in
2384 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386 | -silent | --silent | --silen | --sile | --sil)
2387 continue ;;
2388 *\'*)
2389 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 esac
2391 case $ac_pass in
2392 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2393 2)
2394 as_fn_append ac_configure_args1 " '$ac_arg'"
2395 if test $ac_must_keep_next = true; then
2396 ac_must_keep_next=false # Got value, back to normal.
2397 else
2398 case $ac_arg in
2399 *=* | --config-cache | -C | -disable-* | --disable-* \
2400 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402 | -with-* | --with-* | -without-* | --without-* | --x)
2403 case "$ac_configure_args0 " in
2404 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 esac
2406 ;;
2407 -* ) ac_must_keep_next=true ;;
2408 esac
2409 fi
2410 as_fn_append ac_configure_args " '$ac_arg'"
2411 ;;
2412 esac
2413 done
2414 done
2415 { ac_configure_args0=; unset ac_configure_args0;}
2416 { ac_configure_args1=; unset ac_configure_args1;}
2417
2418 # When interrupted or exit'd, cleanup temporary files, and complete
2419 # config.log. We remove comments because anyway the quotes in there
2420 # would cause problems or look ugly.
2421 # WARNING: Use '\'' to represent an apostrophe within the trap.
2422 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423 trap 'exit_status=$?
2424 # Sanitize IFS.
2425 IFS=" "" $as_nl"
2426 # Save into config.log some information that might help in debugging.
2427 {
2428 echo
2429
2430 printf "%s\n" "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
2435 (
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2458 *)
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2460 ;;
2461 esac |
2462 sort
2463 )
2464 echo
2465
2466 printf "%s\n" "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 printf "%s\n" "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 printf "%s\n" "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 printf "%s\n" "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
2497 printf "%s\n" "## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
2505 printf "%s\n" "$as_me: caught signal $ac_signal"
2506 printf "%s\n" "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2511 ' 0
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 done
2515 ac_signal=0
2516
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2519
2520 printf "%s\n" "/* confdefs.h */" > confdefs.h
2521
2522 # Predefined preprocessor variables.
2523
2524 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2525
2526 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2527
2528 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2529
2530 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2531
2532 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2533
2534 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2535
2536
2537 # Let the site file select an alternate cache file if it wants to.
2538 # Prefer an explicitly selected file to automatically selected ones.
2539 if test -n "$CONFIG_SITE"; then
2540 ac_site_files="$CONFIG_SITE"
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2543 else
2544 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2545 fi
2546
2547 for ac_site_file in $ac_site_files
2548 do
2549 case $ac_site_file in #(
2550 */*) :
2551 ;; #(
2552 *) :
2553 ac_site_file=./$ac_site_file ;;
2554 esac
2555 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2559 . "$ac_site_file" \
2560 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2561 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2562 as_fn_error $? "failed to load site script $ac_site_file
2563 See 'config.log' for more details" "$LINENO" 5; }
2564 fi
2565 done
2566
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
2578 else
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2582 fi
2583
2584 # Test code for whether the C compiler supports C89 (global declarations)
2585 ac_c_conftest_c89_globals='
2586 /* Does the compiler advertise C89 conformance?
2587 Do not test the value of __STDC__, because some compilers set it to 0
2588 while being otherwise adequately conformant. */
2589 #if !defined __STDC__
2590 # error "Compiler does not advertise C89 conformance"
2591 #endif
2592
2593 #include <stddef.h>
2594 #include <stdarg.h>
2595 struct stat;
2596 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2597 struct buf { int x; };
2598 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2599 static char *e (char **p, int i)
2600 {
2601 return p[i];
2602 }
2603 static char *f (char * (*g) (char **, int), char **p, ...)
2604 {
2605 char *s;
2606 va_list v;
2607 va_start (v,p);
2608 s = g (p, va_arg (v,int));
2609 va_end (v);
2610 return s;
2611 }
2612
2613 /* C89 style stringification. */
2614 #define noexpand_stringify(a) #a
2615 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2616
2617 /* C89 style token pasting. Exercises some of the corner cases that
2618 e.g. old MSVC gets wrong, but not very hard. */
2619 #define noexpand_concat(a,b) a##b
2620 #define expand_concat(a,b) noexpand_concat(a,b)
2621 extern int vA;
2622 extern int vbee;
2623 #define aye A
2624 #define bee B
2625 int *pvA = &expand_concat(v,aye);
2626 int *pvbee = &noexpand_concat(v,bee);
2627
2628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2629 function prototypes and stuff, but not \xHH hex character constants.
2630 These do not provoke an error unfortunately, instead are silently treated
2631 as an "x". The following induces an error, until -std is added to get
2632 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2633 array size at least. It is necessary to write \x00 == 0 to get something
2634 that is true only with -std. */
2635 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2636
2637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2638 inside strings and character constants. */
2639 #define FOO(x) '\''x'\''
2640 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2641
2642 int test (int i, double x);
2643 struct s1 {int (*f) (int a);};
2644 struct s2 {int (*f) (double a);};
2645 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2646 int, int);'
2647
2648 # Test code for whether the C compiler supports C89 (body of main).
2649 ac_c_conftest_c89_main='
2650 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2651 '
2652
2653 # Test code for whether the C compiler supports C99 (global declarations)
2654 ac_c_conftest_c99_globals='
2655 /* Does the compiler advertise C99 conformance? */
2656 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2657 # error "Compiler does not advertise C99 conformance"
2658 #endif
2659
2660 // See if C++-style comments work.
2661
2662 #include <stdbool.h>
2663 extern int puts (const char *);
2664 extern int printf (const char *, ...);
2665 extern int dprintf (int, const char *, ...);
2666 extern void *malloc (size_t);
2667 extern void free (void *);
2668
2669 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2670 // dprintf is used instead of fprintf to avoid needing to declare
2671 // FILE and stderr.
2672 #define debug(...) dprintf (2, __VA_ARGS__)
2673 #define showlist(...) puts (#__VA_ARGS__)
2674 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2675 static void
2676 test_varargs_macros (void)
2677 {
2678 int x = 1234;
2679 int y = 5678;
2680 debug ("Flag");
2681 debug ("X = %d\n", x);
2682 showlist (The first, second, and third items.);
2683 report (x>y, "x is %d but y is %d", x, y);
2684 }
2685
2686 // Check long long types.
2687 #define BIG64 18446744073709551615ull
2688 #define BIG32 4294967295ul
2689 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2690 #if !BIG_OK
2691 #error "your preprocessor is broken"
2692 #endif
2693 #if BIG_OK
2694 #else
2695 #error "your preprocessor is broken"
2696 #endif
2697 static long long int bignum = -9223372036854775807LL;
2698 static unsigned long long int ubignum = BIG64;
2699
2700 struct incomplete_array
2701 {
2702 int datasize;
2703 double data[];
2704 };
2705
2706 struct named_init {
2707 int number;
2708 const wchar_t *name;
2709 double average;
2710 };
2711
2712 typedef const char *ccp;
2713
2714 static inline int
2715 test_restrict (ccp restrict text)
2716 {
2717 // Iterate through items via the restricted pointer.
2718 // Also check for declarations in for loops.
2719 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2720 continue;
2721 return 0;
2722 }
2723
2724 // Check varargs and va_copy.
2725 static bool
2726 test_varargs (const char *format, ...)
2727 {
2728 va_list args;
2729 va_start (args, format);
2730 va_list args_copy;
2731 va_copy (args_copy, args);
2732
2733 const char *str = "";
2734 int number = 0;
2735 float fnumber = 0;
2736
2737 while (*format)
2738 {
2739 switch (*format++)
2740 {
2741 case '\''s'\'': // string
2742 str = va_arg (args_copy, const char *);
2743 break;
2744 case '\''d'\'': // int
2745 number = va_arg (args_copy, int);
2746 break;
2747 case '\''f'\'': // float
2748 fnumber = va_arg (args_copy, double);
2749 break;
2750 default:
2751 break;
2752 }
2753 }
2754 va_end (args_copy);
2755 va_end (args);
2756
2757 return *str && number && fnumber;
2758 }
2759 '
2760
2761 # Test code for whether the C compiler supports C99 (body of main).
2762 ac_c_conftest_c99_main='
2763 // Check bool.
2764 _Bool success = false;
2765 success |= (argc != 0);
2766
2767 // Check restrict.
2768 if (test_restrict ("String literal") == 0)
2769 success = true;
2770 char *restrict newvar = "Another string";
2771
2772 // Check varargs.
2773 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2774 test_varargs_macros ();
2775
2776 // Check flexible array members.
2777 struct incomplete_array *ia =
2778 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2779 ia->datasize = 10;
2780 for (int i = 0; i < ia->datasize; ++i)
2781 ia->data[i] = i * 1.234;
2782 // Work around memory leak warnings.
2783 free (ia);
2784
2785 // Check named initializers.
2786 struct named_init ni = {
2787 .number = 34,
2788 .name = L"Test wide string",
2789 .average = 543.34343,
2790 };
2791
2792 ni.number = 58;
2793
2794 int dynamic_array[ni.number];
2795 dynamic_array[0] = argv[0][0];
2796 dynamic_array[ni.number - 1] = 543;
2797
2798 // work around unused variable warnings
2799 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2800 || dynamic_array[ni.number - 1] != 543);
2801 '
2802
2803 # Test code for whether the C compiler supports C11 (global declarations)
2804 ac_c_conftest_c11_globals='
2805 /* Does the compiler advertise C11 conformance? */
2806 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2807 # error "Compiler does not advertise C11 conformance"
2808 #endif
2809
2810 // Check _Alignas.
2811 char _Alignas (double) aligned_as_double;
2812 char _Alignas (0) no_special_alignment;
2813 extern char aligned_as_int;
2814 char _Alignas (0) _Alignas (int) aligned_as_int;
2815
2816 // Check _Alignof.
2817 enum
2818 {
2819 int_alignment = _Alignof (int),
2820 int_array_alignment = _Alignof (int[100]),
2821 char_alignment = _Alignof (char)
2822 };
2823 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2824
2825 // Check _Noreturn.
2826 int _Noreturn does_not_return (void) { for (;;) continue; }
2827
2828 // Check _Static_assert.
2829 struct test_static_assert
2830 {
2831 int x;
2832 _Static_assert (sizeof (int) <= sizeof (long int),
2833 "_Static_assert does not work in struct");
2834 long int y;
2835 };
2836
2837 // Check UTF-8 literals.
2838 #define u8 syntax error!
2839 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2840
2841 // Check duplicate typedefs.
2842 typedef long *long_ptr;
2843 typedef long int *long_ptr;
2844 typedef long_ptr long_ptr;
2845
2846 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2847 struct anonymous
2848 {
2849 union {
2850 struct { int i; int j; };
2851 struct { int k; long int l; } w;
2852 };
2853 int m;
2854 } v1;
2855 '
2856
2857 # Test code for whether the C compiler supports C11 (body of main).
2858 ac_c_conftest_c11_main='
2859 _Static_assert ((offsetof (struct anonymous, i)
2860 == offsetof (struct anonymous, w.k)),
2861 "Anonymous union alignment botch");
2862 v1.i = 2;
2863 v1.w.k = 5;
2864 ok |= v1.i != 5;
2865 '
2866
2867 # Test code for whether the C compiler supports C11 (complete).
2868 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2869 ${ac_c_conftest_c99_globals}
2870 ${ac_c_conftest_c11_globals}
2871
2872 int
2873 main (int argc, char **argv)
2874 {
2875 int ok = 0;
2876 ${ac_c_conftest_c89_main}
2877 ${ac_c_conftest_c99_main}
2878 ${ac_c_conftest_c11_main}
2879 return ok;
2880 }
2881 "
2882
2883 # Test code for whether the C compiler supports C99 (complete).
2884 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2885 ${ac_c_conftest_c99_globals}
2886
2887 int
2888 main (int argc, char **argv)
2889 {
2890 int ok = 0;
2891 ${ac_c_conftest_c89_main}
2892 ${ac_c_conftest_c99_main}
2893 return ok;
2894 }
2895 "
2896
2897 # Test code for whether the C compiler supports C89 (complete).
2898 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2899
2900 int
2901 main (int argc, char **argv)
2902 {
2903 int ok = 0;
2904 ${ac_c_conftest_c89_main}
2905 return ok;
2906 }
2907 "
2908
2909 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2910 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2911 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2912 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2913 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2914 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2915 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2916 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2917 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2918 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2919 as_fn_append ac_func_c_list " fork HAVE_FORK"
2920 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2921
2922 # Auxiliary files required by this configure script.
2923 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2924
2925 # Locations in which to look for auxiliary files.
2926 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2927
2928 # Search for a directory containing all of the required auxiliary files,
2929 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2930 # If we don't find one directory that contains all the files we need,
2931 # we report the set of missing files from the *first* directory in
2932 # $ac_aux_dir_candidates and give up.
2933 ac_missing_aux_files=""
2934 ac_first_candidate=:
2935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 as_found=false
2938 for as_dir in $ac_aux_dir_candidates
2939 do
2940 IFS=$as_save_IFS
2941 case $as_dir in #(((
2942 '') as_dir=./ ;;
2943 */) ;;
2944 *) as_dir=$as_dir/ ;;
2945 esac
2946 as_found=:
2947
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2949 ac_aux_dir_found=yes
2950 ac_install_sh=
2951 for ac_aux in $ac_aux_files
2952 do
2953 # As a special case, if "install-sh" is required, that requirement
2954 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2955 # and $ac_install_sh is set appropriately for whichever one is found.
2956 if test x"$ac_aux" = x"install-sh"
2957 then
2958 if test -f "${as_dir}install-sh"; then
2959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2960 ac_install_sh="${as_dir}install-sh -c"
2961 elif test -f "${as_dir}install.sh"; then
2962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2963 ac_install_sh="${as_dir}install.sh -c"
2964 elif test -f "${as_dir}shtool"; then
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2966 ac_install_sh="${as_dir}shtool install -c"
2967 else
2968 ac_aux_dir_found=no
2969 if $ac_first_candidate; then
2970 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2971 else
2972 break
2973 fi
2974 fi
2975 else
2976 if test -f "${as_dir}${ac_aux}"; then
2977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2978 else
2979 ac_aux_dir_found=no
2980 if $ac_first_candidate; then
2981 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2982 else
2983 break
2984 fi
2985 fi
2986 fi
2987 done
2988 if test "$ac_aux_dir_found" = yes; then
2989 ac_aux_dir="$as_dir"
2990 break
2991 fi
2992 ac_first_candidate=false
2993
2994 as_found=false
2995 done
2996 IFS=$as_save_IFS
2997 if $as_found
2998 then :
2999
3000 else case e in #(
3001 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3002 esac
3003 fi
3004
3005
3006 # These three variables are undocumented and unsupported,
3007 # and are intended to be withdrawn in a future Autoconf release.
3008 # They can cause serious problems if a builder's source tree is in a directory
3009 # whose full name contains unusual characters.
3010 if test -f "${ac_aux_dir}config.guess"; then
3011 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3012 fi
3013 if test -f "${ac_aux_dir}config.sub"; then
3014 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3015 fi
3016 if test -f "$ac_aux_dir/configure"; then
3017 ac_configure="$SHELL ${ac_aux_dir}configure"
3018 fi
3019
3020 # Check that the precious variables saved in the cache have kept the same
3021 # value.
3022 ac_cache_corrupted=false
3023 for ac_var in $ac_precious_vars; do
3024 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3025 eval ac_new_set=\$ac_env_${ac_var}_set
3026 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3027 eval ac_new_val=\$ac_env_${ac_var}_value
3028 case $ac_old_set,$ac_new_set in
3029 set,)
3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3031 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3032 ac_cache_corrupted=: ;;
3033 ,set)
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3035 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3036 ac_cache_corrupted=: ;;
3037 ,);;
3038 *)
3039 if test "x$ac_old_val" != "x$ac_new_val"; then
3040 # differences in whitespace do not lead to failure.
3041 ac_old_val_w=`echo x $ac_old_val`
3042 ac_new_val_w=`echo x $ac_new_val`
3043 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3045 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3046 ac_cache_corrupted=:
3047 else
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3049 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3050 eval $ac_var=\$ac_old_val
3051 fi
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3053 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3055 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3056 fi;;
3057 esac
3058 # Pass precious variables to config.status.
3059 if test "$ac_new_set" = set; then
3060 case $ac_new_val in
3061 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3062 *) ac_arg=$ac_var=$ac_new_val ;;
3063 esac
3064 case " $ac_configure_args " in
3065 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3066 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3067 esac
3068 fi
3069 done
3070 if $ac_cache_corrupted; then
3071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3072 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3074 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3075 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3076 and start over" "$LINENO" 5
3077 fi
3078 ## -------------------- ##
3079 ## Main body of script. ##
3080 ## -------------------- ##
3081
3082 ac_ext=c
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088
3089
3090 am__api_version='1.18'
3091
3092
3093
3094 # Find a good install program. We prefer a C program (faster),
3095 # so one script is as good as another. But avoid the broken or
3096 # incompatible versions:
3097 # SysV /etc/install, /usr/sbin/install
3098 # SunOS /usr/etc/install
3099 # IRIX /sbin/install
3100 # AIX /bin/install
3101 # AmigaOS /C/install, which installs bootblocks on floppy discs
3102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3105 # OS/2's system install, which has a completely different semantic
3106 # ./install, which can be erroneously created by make from ./install.sh.
3107 # Reject install programs that cannot install multiple files.
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3109 printf %s "checking for a BSD-compatible install... " >&6; }
3110 if test -z "$INSTALL"; then
3111 if test ${ac_cv_path_install+y}
3112 then :
3113 printf %s "(cached) " >&6
3114 else case e in #(
3115 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 case $as_dir in #(((
3120 '') as_dir=./ ;;
3121 */) ;;
3122 *) as_dir=$as_dir/ ;;
3123 esac
3124 # Account for fact that we put trailing slashes in our PATH walk.
3125 case $as_dir in #((
3126 ./ | /[cC]/* | \
3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3128 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3129 /usr/ucb/* ) ;;
3130 *)
3131 # OSF1 and SCO ODT 3.0 have their own names for install.
3132 # Don't use installbsd from OSF since it installs stuff as root
3133 # by default.
3134 for ac_prog in ginstall scoinst install; do
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3137 if test $ac_prog = install &&
3138 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3139 # AIX install. It has an incompatible calling convention.
3140 :
3141 elif test $ac_prog = install &&
3142 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3143 # program-specific install script used by HP pwplus--don't use.
3144 :
3145 else
3146 rm -rf conftest.one conftest.two conftest.dir
3147 echo one > conftest.one
3148 echo two > conftest.two
3149 mkdir conftest.dir
3150 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3151 test -s conftest.one && test -s conftest.two &&
3152 test -s conftest.dir/conftest.one &&
3153 test -s conftest.dir/conftest.two
3154 then
3155 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3156 break 3
3157 fi
3158 fi
3159 fi
3160 done
3161 done
3162 ;;
3163 esac
3164
3165 done
3166 IFS=$as_save_IFS
3167
3168 rm -rf conftest.one conftest.two conftest.dir
3169 ;;
3170 esac
3171 fi
3172 if test ${ac_cv_path_install+y}; then
3173 INSTALL=$ac_cv_path_install
3174 else
3175 # As a last resort, use the slow shell script. Don't cache a
3176 # value for INSTALL within a source directory, because that will
3177 # break other packages using the cache if that directory is
3178 # removed, or if the value is a relative name.
3179 INSTALL=$ac_install_sh
3180 fi
3181 fi
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3183 printf "%s\n" "$INSTALL" >&6; }
3184
3185 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3186 # It thinks the first close brace ends the variable substitution.
3187 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3188
3189 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3190
3191 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3192
3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3194 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3195 if test ${am_cv_sleep_fractional_seconds+y}
3196 then :
3197 printf %s "(cached) " >&6
3198 else case e in #(
3199 e) if sleep 0.001 2>/dev/null
3200 then :
3201 am_cv_sleep_fractional_seconds=yes
3202 else case e in #(
3203 e) am_cv_sleep_fractional_seconds=no ;;
3204 esac
3205 fi
3206 ;;
3207 esac
3208 fi
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3210 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3211
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3213 printf %s "checking filesystem timestamp resolution... " >&6; }
3214 if test ${am_cv_filesystem_timestamp_resolution+y}
3215 then :
3216 printf %s "(cached) " >&6
3217 else case e in #(
3218 e) # Default to the worst case.
3219 am_cv_filesystem_timestamp_resolution=2
3220
3221 # Only try to go finer than 1 sec if sleep can do it.
3222 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3223 # - 1 sec is not much of a win compared to 2 sec, and
3224 # - it takes 2 seconds to perform the test whether 1 sec works.
3225 #
3226 # Instead, just use the default 2s on platforms that have 1s resolution,
3227 # accept the extra 1s delay when using $sleep in the Automake tests, in
3228 # exchange for not incurring the 2s delay for running the test for all
3229 # packages.
3230 #
3231 am_try_resolutions=
3232 if test "$am_cv_sleep_fractional_seconds" = yes; then
3233 # Even a millisecond often causes a bunch of false positives,
3234 # so just try a hundredth of a second. The time saved between .001 and
3235 # .01 is not terribly consequential.
3236 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3237 fi
3238
3239 # In order to catch current-generation FAT out, we must *modify* files
3240 # that already exist; the *creation* timestamp is finer. Use names
3241 # that make ls -t sort them differently when they have equal
3242 # timestamps than when they have distinct timestamps, keeping
3243 # in mind that ls -t prints the *newest* file first.
3244 rm -f conftest.ts?
3245 : > conftest.ts1
3246 : > conftest.ts2
3247 : > conftest.ts3
3248
3249 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3250 # clobber the current shell's arguments. (Outer-level square brackets
3251 # are removed by m4; they're present so that m4 does not expand
3252 # <dollar><star>; be careful, easy to get confused.)
3253 if (
3254 set X `ls -t conftest.ts[12]` &&
3255 {
3256 test "$*" != "X conftest.ts1 conftest.ts2" ||
3257 test "$*" != "X conftest.ts2 conftest.ts1";
3258 }
3259 ); then :; else
3260 # If neither matched, then we have a broken ls. This can happen
3261 # if, for instance, CONFIG_SHELL is bash and it inherits a
3262 # broken ls alias from the environment. This has actually
3263 # happened. Such a system could not be considered "sane".
3264 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3266 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3267 as_fn_error $? "ls -t produces unexpected output.
3268 Make sure there is not a broken ls alias in your environment.
3269 See 'config.log' for more details" "$LINENO" 5; }
3270 fi
3271
3272 for am_try_res in $am_try_resolutions; do
3273 # Any one fine-grained sleep might happen to cross the boundary
3274 # between two values of a coarser actual resolution, but if we do
3275 # two fine-grained sleeps in a row, at least one of them will fall
3276 # entirely within a coarse interval.
3277 echo alpha > conftest.ts1
3278 sleep $am_try_res
3279 echo beta > conftest.ts2
3280 sleep $am_try_res
3281 echo gamma > conftest.ts3
3282
3283 # We assume that 'ls -t' will make use of high-resolution
3284 # timestamps if the operating system supports them at all.
3285 if (set X `ls -t conftest.ts?` &&
3286 test "$2" = conftest.ts3 &&
3287 test "$3" = conftest.ts2 &&
3288 test "$4" = conftest.ts1); then
3289 #
3290 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3291 # because we don't need to test make.
3292 make_ok=true
3293 if test $am_try_res != 1; then
3294 # But if we've succeeded so far with a subsecond resolution, we
3295 # have one more thing to check: make. It can happen that
3296 # everything else supports the subsecond mtimes, but make doesn't;
3297 # notably on macOS, which ships make 3.81 from 2006 (the last one
3298 # released under GPLv2). https://bugs.gnu.org/68808
3299 #
3300 # We test $MAKE if it is defined in the environment, else "make".
3301 # It might get overridden later, but our hope is that in practice
3302 # it does not matter: it is the system "make" which is (by far)
3303 # the most likely to be broken, whereas if the user overrides it,
3304 # probably they did so with a better, or at least not worse, make.
3305 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3306 #
3307 # Create a Makefile (real tab character here):
3308 rm -f conftest.mk
3309 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3310 echo ' touch conftest.ts2' >>conftest.mk
3311 #
3312 # Now, running
3313 # touch conftest.ts1; touch conftest.ts2; make
3314 # should touch ts1 because ts2 is newer. This could happen by luck,
3315 # but most often, it will fail if make's support is insufficient. So
3316 # test for several consecutive successes.
3317 #
3318 # (We reuse conftest.ts[12] because we still want to modify existing
3319 # files, not create new ones, per above.)
3320 n=0
3321 make=${MAKE-make}
3322 until test $n -eq 3; do
3323 echo one > conftest.ts1
3324 sleep $am_try_res
3325 echo two > conftest.ts2 # ts2 should now be newer than ts1
3326 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3327 make_ok=false
3328 break # out of $n loop
3329 fi
3330 n=`expr $n + 1`
3331 done
3332 fi
3333 #
3334 if $make_ok; then
3335 # Everything we know to check worked out, so call this resolution good.
3336 am_cv_filesystem_timestamp_resolution=$am_try_res
3337 break # out of $am_try_res loop
3338 fi
3339 # Otherwise, we'll go on to check the next resolution.
3340 fi
3341 done
3342 rm -f conftest.ts?
3343 # (end _am_filesystem_timestamp_resolution)
3344 ;;
3345 esac
3346 fi
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3348 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3349
3350 # This check should not be cached, as it may vary across builds of
3351 # different projects.
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3353 printf %s "checking whether build environment is sane... " >&6; }
3354 # Reject unsafe characters in $srcdir or the absolute working directory
3355 # name. Accept space and tab only in the latter.
3356 am_lf='
3357 '
3358 case `pwd` in
3359 *[\\\"\#\$\&\'\`$am_lf]*)
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 printf "%s\n" "no" >&6; }
3362 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3363 esac
3364 case $srcdir in
3365 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 printf "%s\n" "no" >&6; }
3368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3369 esac
3370
3371 # Do 'set' in a subshell so we don't clobber the current shell's
3372 # arguments. Must try -L first in case configure is actually a
3373 # symlink; some systems play weird games with the mod time of symlinks
3374 # (eg FreeBSD returns the mod time of the symlink's containing
3375 # directory).
3376 am_build_env_is_sane=no
3377 am_has_slept=no
3378 rm -f conftest.file
3379 for am_try in 1 2; do
3380 echo "timestamp, slept: $am_has_slept" > conftest.file
3381 if (
3382 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3383 if test "$*" = "X"; then
3384 # -L didn't work.
3385 set X `ls -t "$srcdir/configure" conftest.file`
3386 fi
3387 test "$2" = conftest.file
3388 ); then
3389 am_build_env_is_sane=yes
3390 break
3391 fi
3392 # Just in case.
3393 sleep "$am_cv_filesystem_timestamp_resolution"
3394 am_has_slept=yes
3395 done
3396
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3398 printf "%s\n" "$am_build_env_is_sane" >&6; }
3399 if test "$am_build_env_is_sane" = no; then
3400 as_fn_error $? "newly created file is older than distributed files!
3401 Check your system clock" "$LINENO" 5
3402 fi
3403
3404 # If we didn't sleep, we still need to ensure time stamps of config.status and
3405 # generated files are strictly newer.
3406 am_sleep_pid=
3407 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3408 then :
3409
3410 else case e in #(
3411 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3412 am_sleep_pid=$!
3413 ;;
3414 esac
3415 fi
3416
3417 rm -f conftest.file
3418
3419 test "$program_prefix" != NONE &&
3420 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3421 # Use a double $ so make ignores it.
3422 test "$program_suffix" != NONE &&
3423 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3424 # Double any \ or $.
3425 # By default was 's,x,x', remove it if useless.
3426 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3427 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3428
3429
3430 # Expand $ac_aux_dir to an absolute path.
3431 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3432
3433
3434 if test x"${MISSING+set}" != xset; then
3435 MISSING="\${SHELL} '$am_aux_dir/missing'"
3436 fi
3437 # Use eval to expand $SHELL
3438 if eval "$MISSING --is-lightweight"; then
3439 am_missing_run="$MISSING "
3440 else
3441 am_missing_run=
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3443 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3444 fi
3445
3446 if test x"${install_sh+set}" != xset; then
3447 case $am_aux_dir in
3448 *\ * | *\ *)
3449 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3450 *)
3451 install_sh="\${SHELL} $am_aux_dir/install-sh"
3452 esac
3453 fi
3454
3455 # Installed binaries are usually stripped using 'strip' when the user
3456 # run "make install-strip". However 'strip' might not be the right
3457 # tool to use in cross-compilation environments, therefore Automake
3458 # will honor the 'STRIP' environment variable to overrule this program.
3459 if test "$cross_compiling" != no; then
3460 if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}strip; ac_word=$2
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 printf %s "checking for $ac_word... " >&6; }
3465 if test ${ac_cv_prog_STRIP+y}
3466 then :
3467 printf %s "(cached) " >&6
3468 else case e in #(
3469 e) if test -n "$STRIP"; then
3470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3485 break 2
3486 fi
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi ;;
3492 esac
3493 fi
3494 STRIP=$ac_cv_prog_STRIP
3495 if test -n "$STRIP"; then
3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3497 printf "%s\n" "$STRIP" >&6; }
3498 else
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 printf "%s\n" "no" >&6; }
3501 fi
3502
3503
3504 fi
3505 if test -z "$ac_cv_prog_STRIP"; then
3506 ac_ct_STRIP=$STRIP
3507 # Extract the first word of "strip", so it can be a program name with args.
3508 set dummy strip; ac_word=$2
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 printf %s "checking for $ac_word... " >&6; }
3511 if test ${ac_cv_prog_ac_ct_STRIP+y}
3512 then :
3513 printf %s "(cached) " >&6
3514 else case e in #(
3515 e) if test -n "$ac_ct_STRIP"; then
3516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521 IFS=$as_save_IFS
3522 case $as_dir in #(((
3523 '') as_dir=./ ;;
3524 */) ;;
3525 *) as_dir=$as_dir/ ;;
3526 esac
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_ac_ct_STRIP="strip"
3530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533 done
3534 done
3535 IFS=$as_save_IFS
3536
3537 fi ;;
3538 esac
3539 fi
3540 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3541 if test -n "$ac_ct_STRIP"; then
3542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3543 printf "%s\n" "$ac_ct_STRIP" >&6; }
3544 else
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 printf "%s\n" "no" >&6; }
3547 fi
3548
3549 if test "x$ac_ct_STRIP" = x; then
3550 STRIP=":"
3551 else
3552 case $cross_compiling:$ac_tool_warned in
3553 yes:)
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3555 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3556 ac_tool_warned=yes ;;
3557 esac
3558 STRIP=$ac_ct_STRIP
3559 fi
3560 else
3561 STRIP="$ac_cv_prog_STRIP"
3562 fi
3563
3564 fi
3565 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3566
3567
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3569 printf %s "checking for a race-free mkdir -p... " >&6; }
3570 if test -z "$MKDIR_P"; then
3571 if test ${ac_cv_path_mkdir+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else case e in #(
3575 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
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_prog in mkdir gmkdir; do
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3587 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3588 'mkdir ('*'coreutils) '* | \
3589 *'BusyBox '* | \
3590 'mkdir (fileutils) '4.1*)
3591 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3592 break 3;;
3593 esac
3594 done
3595 done
3596 done
3597 IFS=$as_save_IFS
3598 ;;
3599 esac
3600 fi
3601
3602 test -d ./--version && rmdir ./--version
3603 if test ${ac_cv_path_mkdir+y}; then
3604 MKDIR_P="$ac_cv_path_mkdir -p"
3605 else
3606 # As a last resort, use plain mkdir -p,
3607 # in the hope it doesn't have the bugs of ancient mkdir.
3608 MKDIR_P='mkdir -p'
3609 fi
3610 fi
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3612 printf "%s\n" "$MKDIR_P" >&6; }
3613
3614 for ac_prog in gawk mawk nawk awk
3615 do
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 printf %s "checking for $ac_word... " >&6; }
3620 if test ${ac_cv_prog_AWK+y}
3621 then :
3622 printf %s "(cached) " >&6
3623 else case e in #(
3624 e) if test -n "$AWK"; then
3625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 case $as_dir in #(((
3632 '') as_dir=./ ;;
3633 */) ;;
3634 *) as_dir=$as_dir/ ;;
3635 esac
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_AWK="$ac_prog"
3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi ;;
3647 esac
3648 fi
3649 AWK=$ac_cv_prog_AWK
3650 if test -n "$AWK"; then
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3652 printf "%s\n" "$AWK" >&6; }
3653 else
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 printf "%s\n" "no" >&6; }
3656 fi
3657
3658
3659 test -n "$AWK" && break
3660 done
3661
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3663 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3664 set x ${MAKE-make}
3665 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3666 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else case e in #(
3670 e) cat >conftest.make <<\_ACEOF
3671 SHELL = /bin/sh
3672 all:
3673 @echo '@@@%%%=$(MAKE)=@@@%%%'
3674 _ACEOF
3675 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3676 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3677 *@@@%%%=?*=@@@%%%*)
3678 eval ac_cv_prog_make_${ac_make}_set=yes;;
3679 *)
3680 eval ac_cv_prog_make_${ac_make}_set=no;;
3681 esac
3682 rm -f conftest.make ;;
3683 esac
3684 fi
3685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3687 printf "%s\n" "yes" >&6; }
3688 SET_MAKE=
3689 else
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 printf "%s\n" "no" >&6; }
3692 SET_MAKE="MAKE=${MAKE-make}"
3693 fi
3694
3695 rm -rf .tst 2>/dev/null
3696 mkdir .tst 2>/dev/null
3697 if test -d .tst; then
3698 am__leading_dot=.
3699 else
3700 am__leading_dot=_
3701 fi
3702 rmdir .tst 2>/dev/null
3703
3704 AM_DEFAULT_VERBOSITY=1
3705 # Check whether --enable-silent-rules was given.
3706 if test ${enable_silent_rules+y}
3707 then :
3708 enableval=$enable_silent_rules;
3709 fi
3710
3711 am_make=${MAKE-make}
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3713 printf %s "checking whether $am_make supports nested variables... " >&6; }
3714 if test ${am_cv_make_support_nested_variables+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else case e in #(
3718 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3719 BAR0=false
3720 BAR1=true
3721 V=1
3722 am__doit:
3723 @$(TRUE)
3724 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3725 am_cv_make_support_nested_variables=yes
3726 else
3727 am_cv_make_support_nested_variables=no
3728 fi ;;
3729 esac
3730 fi
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3732 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3733 AM_BACKSLASH='\'
3734
3735 am__rm_f_notfound=
3736 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3737 then :
3738
3739 else case e in #(
3740 e) am__rm_f_notfound='""' ;;
3741 esac
3742 fi
3743
3744
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3746 printf %s "checking xargs -n works... " >&6; }
3747 if test ${am_cv_xargs_n_works+y}
3748 then :
3749 printf %s "(cached) " >&6
3750 else case e in #(
3751 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3752 3"
3753 then :
3754 am_cv_xargs_n_works=yes
3755 else case e in #(
3756 e) am_cv_xargs_n_works=no ;;
3757 esac
3758 fi ;;
3759 esac
3760 fi
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3762 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3763 if test "$am_cv_xargs_n_works" = yes
3764 then :
3765 am__xargs_n='xargs -n'
3766 else case e in #(
3767 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3768 ;;
3769 esac
3770 fi
3771
3772 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3774 # is not polluted with repeated "-I."
3775 am__isrc=' -I$(srcdir)'
3776 # test to see if srcdir already configured
3777 if test -f $srcdir/config.status; then
3778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3779 fi
3780 fi
3781
3782 # test whether we have cygpath
3783 if test -z "$CYGPATH_W"; then
3784 if (cygpath --version) >/dev/null 2>/dev/null; then
3785 CYGPATH_W='cygpath -w'
3786 else
3787 CYGPATH_W=echo
3788 fi
3789 fi
3790
3791
3792 # Define the identity of the package.
3793 PACKAGE='nbd'
3794 VERSION='3.27.1'
3795
3796
3797 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3798
3799
3800 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3801
3802 # Some tools Automake needs.
3803
3804 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3805
3806
3807 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3808
3809
3810 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3811
3812
3813 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3814
3815
3816 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3817
3818 # For better backward compatibility. To be removed once Automake 1.9.x
3819 # dies out for good. For more background, see:
3820 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3821 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3822 mkdir_p='$(MKDIR_P)'
3823
3824 # We need awk for the "check" target (and possibly the TAP driver). The
3825 # system "awk" is bad on some platforms.
3826 # Always define AMTAR for backward compatibility. Yes, it's still used
3827 # in the wild :-( We should find a proper way to deprecate it ...
3828 AMTAR='$${TAR-tar}'
3829
3830
3831 # We'll loop over all known methods to create a tar archive until one works.
3832 _am_tools='gnutar plaintar pax cpio none'
3833
3834 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3835 # There is notably a 21 bits limit for the UID and the GID. In fact,
3836 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3837 # and bug#13588).
3838 am_max_uid=2097151 # 2^21 - 1
3839 am_max_gid=$am_max_uid
3840 # The $UID and $GID variables are not portable, so we need to resort
3841 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3842 # below are definitely unexpected, so allow the users to see them
3843 # (that is, avoid stderr redirection).
3844 am_uid=`id -u || echo unknown`
3845 am_gid=`id -g || echo unknown`
3846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3847 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3848 if test x$am_uid = xunknown; then
3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3850 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3851 elif test $am_uid -le $am_max_uid; then
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3853 printf "%s\n" "yes" >&6; }
3854 else
3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 printf "%s\n" "no" >&6; }
3857 _am_tools=none
3858 fi
3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3860 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3861 if test x$gm_gid = xunknown; then
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3863 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3864 elif test $am_gid -le $am_max_gid; then
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3866 printf "%s\n" "yes" >&6; }
3867 else
3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 printf "%s\n" "no" >&6; }
3870 _am_tools=none
3871 fi
3872
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3874 printf %s "checking how to create a ustar tar archive... " >&6; }
3875
3876 # Go ahead even if we have the value already cached. We do so because we
3877 # need to set the values for the 'am__tar' and 'am__untar' variables.
3878 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3879
3880 for _am_tool in $_am_tools; do
3881 case $_am_tool in
3882 gnutar)
3883 for _am_tar in tar gnutar gtar; do
3884 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3885 ($_am_tar --version) >&5 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && break
3889 done
3890 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3891 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3892 am__untar="$_am_tar -xf -"
3893 ;;
3894 plaintar)
3895 # Must skip GNU tar: if it does not support --format= it doesn't create
3896 # ustar tarball either.
3897 (tar --version) >/dev/null 2>&1 && continue
3898 am__tar='tar chf - "$$tardir"'
3899 am__tar_='tar chf - "$tardir"'
3900 am__untar='tar xf -'
3901 ;;
3902 pax)
3903 am__tar='pax -L -x ustar -w "$$tardir"'
3904 am__tar_='pax -L -x ustar -w "$tardir"'
3905 am__untar='pax -r'
3906 ;;
3907 cpio)
3908 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3909 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3910 am__untar='cpio -i -H ustar -d'
3911 ;;
3912 none)
3913 am__tar=false
3914 am__tar_=false
3915 am__untar=false
3916 ;;
3917 esac
3918
3919 # If the value was cached, stop now. We just wanted to have am__tar
3920 # and am__untar set.
3921 test -n "${am_cv_prog_tar_ustar}" && break
3922
3923 # tar/untar a dummy directory, and stop if the command works.
3924 rm -rf conftest.dir
3925 mkdir conftest.dir
3926 echo GrepMe > conftest.dir/file
3927 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3928 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }
3932 rm -rf conftest.dir
3933 if test -s conftest.tar; then
3934 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3935 ($am__untar <conftest.tar) >&5 2>&5
3936 ac_status=$?
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }
3939 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3940 (cat conftest.dir/file) >&5 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }
3944 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3945 fi
3946 done
3947 rm -rf conftest.dir
3948
3949 if test ${am_cv_prog_tar_ustar+y}
3950 then :
3951 printf %s "(cached) " >&6
3952 else case e in #(
3953 e) am_cv_prog_tar_ustar=$_am_tool ;;
3954 esac
3955 fi
3956
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3958 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3959
3960
3961
3962
3963
3964 # Variables for tags utilities; see am/tags.am
3965 if test -z "$CTAGS"; then
3966 CTAGS=ctags
3967 fi
3968
3969 if test -z "$ETAGS"; then
3970 ETAGS=etags
3971 fi
3972
3973 if test -z "$CSCOPE"; then
3974 CSCOPE=cscope
3975 fi
3976
3977
3978
3979
3980
3981
3982
3983
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3985 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3986 # Check whether --enable-maintainer-mode was given.
3987 if test ${enable_maintainer_mode+y}
3988 then :
3989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3990 else case e in #(
3991 e) USE_MAINTAINER_MODE=yes ;;
3992 esac
3993 fi
3994
3995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3996 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3997 if test $USE_MAINTAINER_MODE = yes; then
3998 MAINTAINER_MODE_TRUE=
3999 MAINTAINER_MODE_FALSE='#'
4000 else
4001 MAINTAINER_MODE_TRUE='#'
4002 MAINTAINER_MODE_FALSE=
4003 fi
4004
4005 MAINT=$MAINTAINER_MODE_TRUE
4006
4007
4008
4009 AM_DEFAULT_VERBOSITY=0
4010
4011
4012
4013 case `pwd` in
4014 *\ * | *\ *)
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4016 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4017 esac
4018
4019
4020
4021 macro_version='2.5.4'
4022 macro_revision='2.5.4'
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037 ltmain=$ac_aux_dir/ltmain.sh
4038
4039
4040
4041 # Make sure we can run config.sub.
4042 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4043 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4044
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4046 printf %s "checking build system type... " >&6; }
4047 if test ${ac_cv_build+y}
4048 then :
4049 printf %s "(cached) " >&6
4050 else case e in #(
4051 e) ac_build_alias=$build_alias
4052 test "x$ac_build_alias" = x &&
4053 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4054 test "x$ac_build_alias" = x &&
4055 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4056 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4057 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4058 ;;
4059 esac
4060 fi
4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4062 printf "%s\n" "$ac_cv_build" >&6; }
4063 case $ac_cv_build in
4064 *-*-*) ;;
4065 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4066 esac
4067 build=$ac_cv_build
4068 ac_save_IFS=$IFS; IFS='-'
4069 set x $ac_cv_build
4070 shift
4071 build_cpu=$1
4072 build_vendor=$2
4073 shift; shift
4074 # Remember, the first character of IFS is used to create $*,
4075 # except with old shells:
4076 build_os=$*
4077 IFS=$ac_save_IFS
4078 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4079
4080
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4082 printf %s "checking host system type... " >&6; }
4083 if test ${ac_cv_host+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else case e in #(
4087 e) if test "x$host_alias" = x; then
4088 ac_cv_host=$ac_cv_build
4089 else
4090 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4091 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4092 fi
4093 ;;
4094 esac
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4097 printf "%s\n" "$ac_cv_host" >&6; }
4098 case $ac_cv_host in
4099 *-*-*) ;;
4100 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4101 esac
4102 host=$ac_cv_host
4103 ac_save_IFS=$IFS; IFS='-'
4104 set x $ac_cv_host
4105 shift
4106 host_cpu=$1
4107 host_vendor=$2
4108 shift; shift
4109 # Remember, the first character of IFS is used to create $*,
4110 # except with old shells:
4111 host_os=$*
4112 IFS=$ac_save_IFS
4113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4114
4115
4116 # Backslashify metacharacters that are still active within
4117 # double-quoted strings.
4118 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4119
4120 # Same as above, but do not quote variable references.
4121 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4122
4123 # Sed substitution to delay expansion of an escaped shell variable in a
4124 # double_quote_subst'ed string.
4125 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4126
4127 # Sed substitution to delay expansion of an escaped single quote.
4128 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4129
4130 # Sed substitution to avoid accidental globbing in evaled expressions
4131 no_glob_subst='s/\*/\\\*/g'
4132
4133 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4134 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4135 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4136
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4138 printf %s "checking how to print strings... " >&6; }
4139 # Test print first, because it will be a builtin if present.
4140 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4141 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4142 ECHO='print -r --'
4143 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4144 ECHO='printf %s\n'
4145 else
4146 # Use this function as a fallback that always works.
4147 func_fallback_echo ()
4148 {
4149 eval 'cat <<_LTECHO_EOF
4150 $1
4151 _LTECHO_EOF'
4152 }
4153 ECHO='func_fallback_echo'
4154 fi
4155
4156 # func_echo_all arg...
4157 # Invoke $ECHO with all args, space-separated.
4158 func_echo_all ()
4159 {
4160 $ECHO ""
4161 }
4162
4163 case $ECHO in
4164 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4165 printf "%s\n" "printf" >&6; } ;;
4166 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4167 printf "%s\n" "print -r" >&6; } ;;
4168 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4169 printf "%s\n" "cat" >&6; } ;;
4170 esac
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 DEPDIR="${am__leading_dot}deps"
4195
4196 ac_config_commands="$ac_config_commands depfiles"
4197
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4199 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4200 cat > confinc.mk << 'END'
4201 am__doit:
4202 @echo this is the am__doit target >confinc.out
4203 .PHONY: am__doit
4204 END
4205 am__include="#"
4206 am__quote=
4207 # BSD make does it like this.
4208 echo '.include "confinc.mk" # ignored' > confmf.BSD
4209 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4210 echo 'include confinc.mk # ignored' > confmf.GNU
4211 _am_result=no
4212 for s in GNU BSD; do
4213 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4214 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }
4218 case $?:`cat confinc.out 2>/dev/null` in #(
4219 '0:this is the am__doit target') :
4220 case $s in #(
4221 BSD) :
4222 am__include='.include' am__quote='"' ;; #(
4223 *) :
4224 am__include='include' am__quote='' ;;
4225 esac ;; #(
4226 *) :
4227 ;;
4228 esac
4229 if test "$am__include" != "#"; then
4230 _am_result="yes ($s style)"
4231 break
4232 fi
4233 done
4234 rm -f confinc.* confmf.*
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4236 printf "%s\n" "${_am_result}" >&6; }
4237
4238 # Check whether --enable-dependency-tracking was given.
4239 if test ${enable_dependency_tracking+y}
4240 then :
4241 enableval=$enable_dependency_tracking;
4242 fi
4243
4244 if test "x$enable_dependency_tracking" != xno; then
4245 am_depcomp="$ac_aux_dir/depcomp"
4246 AMDEPBACKSLASH='\'
4247 am__nodep='_no'
4248 fi
4249 if test "x$enable_dependency_tracking" != xno; then
4250 AMDEP_TRUE=
4251 AMDEP_FALSE='#'
4252 else
4253 AMDEP_TRUE='#'
4254 AMDEP_FALSE=
4255 fi
4256
4257
4258 ac_ext=c
4259 ac_cpp='$CPP $CPPFLAGS'
4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263 if test -n "$ac_tool_prefix"; then
4264 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 printf %s "checking for $ac_word... " >&6; }
4268 if test ${ac_cv_prog_CC+y}
4269 then :
4270 printf %s "(cached) " >&6
4271 else case e in #(
4272 e) if test -n "$CC"; then
4273 ac_cv_prog_CC="$CC" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278 IFS=$as_save_IFS
4279 case $as_dir in #(((
4280 '') as_dir=./ ;;
4281 */) ;;
4282 *) as_dir=$as_dir/ ;;
4283 esac
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi ;;
4295 esac
4296 fi
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300 printf "%s\n" "$CC" >&6; }
4301 else
4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 printf "%s\n" "no" >&6; }
4304 fi
4305
4306
4307 fi
4308 if test -z "$ac_cv_prog_CC"; then
4309 ac_ct_CC=$CC
4310 # Extract the first word of "gcc", so it can be a program name with args.
4311 set dummy gcc; ac_word=$2
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 printf %s "checking for $ac_word... " >&6; }
4314 if test ${ac_cv_prog_ac_ct_CC+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) if test -n "$ac_ct_CC"; then
4319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324 IFS=$as_save_IFS
4325 case $as_dir in #(((
4326 '') as_dir=./ ;;
4327 */) ;;
4328 *) as_dir=$as_dir/ ;;
4329 esac
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_ac_ct_CC="gcc"
4333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi ;;
4341 esac
4342 fi
4343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4344 if test -n "$ac_ct_CC"; then
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4346 printf "%s\n" "$ac_ct_CC" >&6; }
4347 else
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 printf "%s\n" "no" >&6; }
4350 fi
4351
4352 if test "x$ac_ct_CC" = x; then
4353 CC=""
4354 else
4355 case $cross_compiling:$ac_tool_warned in
4356 yes:)
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359 ac_tool_warned=yes ;;
4360 esac
4361 CC=$ac_ct_CC
4362 fi
4363 else
4364 CC="$ac_cv_prog_CC"
4365 fi
4366
4367 if test -z "$CC"; then
4368 if test -n "$ac_tool_prefix"; then
4369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4370 set dummy ${ac_tool_prefix}cc; ac_word=$2
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4372 printf %s "checking for $ac_word... " >&6; }
4373 if test ${ac_cv_prog_CC+y}
4374 then :
4375 printf %s "(cached) " >&6
4376 else case e in #(
4377 e) if test -n "$CC"; then
4378 ac_cv_prog_CC="$CC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383 IFS=$as_save_IFS
4384 case $as_dir in #(((
4385 '') as_dir=./ ;;
4386 */) ;;
4387 *) as_dir=$as_dir/ ;;
4388 esac
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4391 ac_cv_prog_CC="${ac_tool_prefix}cc"
4392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395 done
4396 done
4397 IFS=$as_save_IFS
4398
4399 fi ;;
4400 esac
4401 fi
4402 CC=$ac_cv_prog_CC
4403 if test -n "$CC"; then
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 printf "%s\n" "$CC" >&6; }
4406 else
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 printf "%s\n" "no" >&6; }
4409 fi
4410
4411
4412 fi
4413 fi
4414 if test -z "$CC"; then
4415 # Extract the first word of "cc", so it can be a program name with args.
4416 set dummy cc; ac_word=$2
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 printf %s "checking for $ac_word... " >&6; }
4419 if test ${ac_cv_prog_CC+y}
4420 then :
4421 printf %s "(cached) " >&6
4422 else case e in #(
4423 e) if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4425 else
4426 ac_prog_rejected=no
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430 IFS=$as_save_IFS
4431 case $as_dir in #(((
4432 '') as_dir=./ ;;
4433 */) ;;
4434 *) as_dir=$as_dir/ ;;
4435 esac
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4438 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4439 ac_prog_rejected=yes
4440 continue
4441 fi
4442 ac_cv_prog_CC="cc"
4443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 if test $ac_prog_rejected = yes; then
4451 # We found a bogon in the path, so make sure we never use it.
4452 set dummy $ac_cv_prog_CC
4453 shift
4454 if test $# != 0; then
4455 # We chose a different compiler from the bogus one.
4456 # However, it has the same basename, so the bogon will be chosen
4457 # first if we set CC to just the basename; use the full file name.
4458 shift
4459 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4460 fi
4461 fi
4462 fi ;;
4463 esac
4464 fi
4465 CC=$ac_cv_prog_CC
4466 if test -n "$CC"; then
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4468 printf "%s\n" "$CC" >&6; }
4469 else
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 printf "%s\n" "no" >&6; }
4472 fi
4473
4474
4475 fi
4476 if test -z "$CC"; then
4477 if test -n "$ac_tool_prefix"; then
4478 for ac_prog in cl.exe
4479 do
4480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 printf %s "checking for $ac_word... " >&6; }
4484 if test ${ac_cv_prog_CC+y}
4485 then :
4486 printf %s "(cached) " >&6
4487 else case e in #(
4488 e) if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4493 do
4494 IFS=$as_save_IFS
4495 case $as_dir in #(((
4496 '') as_dir=./ ;;
4497 */) ;;
4498 *) as_dir=$as_dir/ ;;
4499 esac
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4504 break 2
4505 fi
4506 done
4507 done
4508 IFS=$as_save_IFS
4509
4510 fi ;;
4511 esac
4512 fi
4513 CC=$ac_cv_prog_CC
4514 if test -n "$CC"; then
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4516 printf "%s\n" "$CC" >&6; }
4517 else
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 printf "%s\n" "no" >&6; }
4520 fi
4521
4522
4523 test -n "$CC" && break
4524 done
4525 fi
4526 if test -z "$CC"; then
4527 ac_ct_CC=$CC
4528 for ac_prog in cl.exe
4529 do
4530 # Extract the first word of "$ac_prog", so it can be a program name with args.
4531 set dummy $ac_prog; ac_word=$2
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 printf %s "checking for $ac_word... " >&6; }
4534 if test ${ac_cv_prog_ac_ct_CC+y}
4535 then :
4536 printf %s "(cached) " >&6
4537 else case e in #(
4538 e) if test -n "$ac_ct_CC"; then
4539 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 case $as_dir in #(((
4546 '') as_dir=./ ;;
4547 */) ;;
4548 *) as_dir=$as_dir/ ;;
4549 esac
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_CC="$ac_prog"
4553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi ;;
4561 esac
4562 fi
4563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4564 if test -n "$ac_ct_CC"; then
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4566 printf "%s\n" "$ac_ct_CC" >&6; }
4567 else
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 printf "%s\n" "no" >&6; }
4570 fi
4571
4572
4573 test -n "$ac_ct_CC" && break
4574 done
4575
4576 if test "x$ac_ct_CC" = x; then
4577 CC=""
4578 else
4579 case $cross_compiling:$ac_tool_warned in
4580 yes:)
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585 CC=$ac_ct_CC
4586 fi
4587 fi
4588
4589 fi
4590 if test -z "$CC"; then
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}clang; ac_word=$2
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 printf %s "checking for $ac_word... " >&6; }
4596 if test ${ac_cv_prog_CC+y}
4597 then :
4598 printf %s "(cached) " >&6
4599 else case e in #(
4600 e) if test -n "$CC"; then
4601 ac_cv_prog_CC="$CC" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 case $as_dir in #(((
4608 '') as_dir=./ ;;
4609 */) ;;
4610 *) as_dir=$as_dir/ ;;
4611 esac
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_CC="${ac_tool_prefix}clang"
4615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618 done
4619 done
4620 IFS=$as_save_IFS
4621
4622 fi ;;
4623 esac
4624 fi
4625 CC=$ac_cv_prog_CC
4626 if test -n "$CC"; then
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4628 printf "%s\n" "$CC" >&6; }
4629 else
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 printf "%s\n" "no" >&6; }
4632 fi
4633
4634
4635 fi
4636 if test -z "$ac_cv_prog_CC"; then
4637 ac_ct_CC=$CC
4638 # Extract the first word of "clang", so it can be a program name with args.
4639 set dummy clang; ac_word=$2
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 printf %s "checking for $ac_word... " >&6; }
4642 if test ${ac_cv_prog_ac_ct_CC+y}
4643 then :
4644 printf %s "(cached) " >&6
4645 else case e in #(
4646 e) if test -n "$ac_ct_CC"; then
4647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 case $as_dir in #(((
4654 '') as_dir=./ ;;
4655 */) ;;
4656 *) as_dir=$as_dir/ ;;
4657 esac
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_CC="clang"
4661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi ;;
4669 esac
4670 fi
4671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672 if test -n "$ac_ct_CC"; then
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4674 printf "%s\n" "$ac_ct_CC" >&6; }
4675 else
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 printf "%s\n" "no" >&6; }
4678 fi
4679
4680 if test "x$ac_ct_CC" = x; then
4681 CC=""
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 CC=$ac_ct_CC
4690 fi
4691 else
4692 CC="$ac_cv_prog_CC"
4693 fi
4694
4695 fi
4696
4697
4698 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4699 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4700 as_fn_error $? "no acceptable C compiler found in \$PATH
4701 See 'config.log' for more details" "$LINENO" 5; }
4702
4703 # Provide some information about the compiler.
4704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4705 set X $ac_compile
4706 ac_compiler=$2
4707 for ac_option in --version -v -V -qversion -version; do
4708 { { ac_try="$ac_compiler $ac_option >&5"
4709 case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712 esac
4713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714 printf "%s\n" "$ac_try_echo"; } >&5
4715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4716 ac_status=$?
4717 if test -s conftest.err; then
4718 sed '10a\
4719 ... rest of stderr output deleted ...
4720 10q' conftest.err >conftest.er1
4721 cat conftest.er1 >&5
4722 fi
4723 rm -f conftest.er1 conftest.err
4724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726 done
4727
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main (void)
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 ac_clean_files_save=$ac_clean_files
4740 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4741 # Try to create an executable without -o first, disregard a.out.
4742 # It will help us diagnose broken compilers, and finding out an intuition
4743 # of exeext.
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4745 printf %s "checking whether the C compiler works... " >&6; }
4746 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4747
4748 # The possible output files:
4749 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4750
4751 ac_rmfiles=
4752 for ac_file in $ac_files
4753 do
4754 case $ac_file in
4755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4756 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4757 esac
4758 done
4759 rm -f $ac_rmfiles
4760
4761 if { { ac_try="$ac_link_default"
4762 case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4767 printf "%s\n" "$ac_try_echo"; } >&5
4768 (eval "$ac_link_default") 2>&5
4769 ac_status=$?
4770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }
4772 then :
4773 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4774 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4775 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4776 # so that the user can short-circuit this test for compilers unknown to
4777 # Autoconf.
4778 for ac_file in $ac_files ''
4779 do
4780 test -f "$ac_file" || continue
4781 case $ac_file in
4782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4783 ;;
4784 [ab].out )
4785 # We found the default executable, but exeext='' is most
4786 # certainly right.
4787 break;;
4788 *.* )
4789 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4790 then :; else
4791 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4792 fi
4793 # We set ac_cv_exeext here because the later test for it is not
4794 # safe: cross compilers may not add the suffix if given an '-o'
4795 # argument, so we may need to know it at that point already.
4796 # Even if this section looks crufty: it has the advantage of
4797 # actually working.
4798 break;;
4799 * )
4800 break;;
4801 esac
4802 done
4803 test "$ac_cv_exeext" = no && ac_cv_exeext=
4804
4805 else case e in #(
4806 e) ac_file='' ;;
4807 esac
4808 fi
4809 if test -z "$ac_file"
4810 then :
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 printf "%s\n" "no" >&6; }
4813 printf "%s\n" "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4817 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4818 as_fn_error 77 "C compiler cannot create executables
4819 See 'config.log' for more details" "$LINENO" 5; }
4820 else case e in #(
4821 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822 printf "%s\n" "yes" >&6; } ;;
4823 esac
4824 fi
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4826 printf %s "checking for C compiler default output file name... " >&6; }
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4828 printf "%s\n" "$ac_file" >&6; }
4829 ac_exeext=$ac_cv_exeext
4830
4831 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4832 ac_clean_files=$ac_clean_files_save
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4834 printf %s "checking for suffix of executables... " >&6; }
4835 if { { ac_try="$ac_link"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4841 printf "%s\n" "$ac_try_echo"; } >&5
4842 (eval "$ac_link") 2>&5
4843 ac_status=$?
4844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4845 test $ac_status = 0; }
4846 then :
4847 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4848 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4849 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4850 # 'rm'.
4851 for ac_file in conftest.exe conftest conftest.*; do
4852 test -f "$ac_file" || continue
4853 case $ac_file in
4854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4856 break;;
4857 * ) break;;
4858 esac
4859 done
4860 else case e in #(
4861 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4862 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4863 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4864 See 'config.log' for more details" "$LINENO" 5; } ;;
4865 esac
4866 fi
4867 rm -f conftest conftest$ac_cv_exeext
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4869 printf "%s\n" "$ac_cv_exeext" >&6; }
4870
4871 rm -f conftest.$ac_ext
4872 EXEEXT=$ac_cv_exeext
4873 ac_exeext=$EXEEXT
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 #include <stdio.h>
4877 int
4878 main (void)
4879 {
4880 FILE *f = fopen ("conftest.out", "w");
4881 if (!f)
4882 return 1;
4883 return ferror (f) || fclose (f) != 0;
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 ac_clean_files="$ac_clean_files conftest.out"
4890 # Check that the compiler produces executables we can run. If not, either
4891 # the compiler is broken, or we cross compile.
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4893 printf %s "checking whether we are cross compiling... " >&6; }
4894 if test "$cross_compiling" != yes; then
4895 { { ac_try="$ac_link"
4896 case "(($ac_try" in
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4899 esac
4900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4901 printf "%s\n" "$ac_try_echo"; } >&5
4902 (eval "$ac_link") 2>&5
4903 ac_status=$?
4904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4905 test $ac_status = 0; }
4906 if { ac_try='./conftest$ac_cv_exeext'
4907 { { case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 printf "%s\n" "$ac_try_echo"; } >&5
4913 (eval "$ac_try") 2>&5
4914 ac_status=$?
4915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4916 test $ac_status = 0; }; }; then
4917 cross_compiling=no
4918 else
4919 if test "$cross_compiling" = maybe; then
4920 cross_compiling=yes
4921 else
4922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4923 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4924 as_fn_error 77 "cannot run C compiled programs.
4925 If you meant to cross compile, use '--host'.
4926 See 'config.log' for more details" "$LINENO" 5; }
4927 fi
4928 fi
4929 fi
4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4931 printf "%s\n" "$cross_compiling" >&6; }
4932
4933 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4934 conftest.o conftest.obj conftest.out
4935 ac_clean_files=$ac_clean_files_save
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4937 printf %s "checking for suffix of object files... " >&6; }
4938 if test ${ac_cv_objext+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else case e in #(
4942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944
4945 int
4946 main (void)
4947 {
4948
4949 ;
4950 return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest.o conftest.obj
4954 if { { ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4960 printf "%s\n" "$ac_try_echo"; } >&5
4961 (eval "$ac_compile") 2>&5
4962 ac_status=$?
4963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965 then :
4966 for ac_file in conftest.o conftest.obj conftest.*; do
4967 test -f "$ac_file" || continue;
4968 case $ac_file in
4969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4971 break;;
4972 esac
4973 done
4974 else case e in #(
4975 e) printf "%s\n" "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4980 as_fn_error $? "cannot compute suffix of object files: cannot compile
4981 See 'config.log' for more details" "$LINENO" 5; } ;;
4982 esac
4983 fi
4984 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4985 esac
4986 fi
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4988 printf "%s\n" "$ac_cv_objext" >&6; }
4989 OBJEXT=$ac_cv_objext
4990 ac_objext=$OBJEXT
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4992 printf %s "checking whether the compiler supports GNU C... " >&6; }
4993 if test ${ac_cv_c_compiler_gnu+y}
4994 then :
4995 printf %s "(cached) " >&6
4996 else case e in #(
4997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999
5000 int
5001 main (void)
5002 {
5003 #ifndef __GNUC__
5004 choke me
5005 #endif
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"
5012 then :
5013 ac_compiler_gnu=yes
5014 else case e in #(
5015 e) ac_compiler_gnu=no ;;
5016 esac
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5020 ;;
5021 esac
5022 fi
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5024 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 if test $ac_compiler_gnu = yes; then
5028 GCC=yes
5029 else
5030 GCC=
5031 fi
5032 ac_test_CFLAGS=${CFLAGS+y}
5033 ac_save_CFLAGS=$CFLAGS
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5035 printf %s "checking whether $CC accepts -g... " >&6; }
5036 if test ${ac_cv_prog_cc_g+y}
5037 then :
5038 printf %s "(cached) " >&6
5039 else case e in #(
5040 e) ac_save_c_werror_flag=$ac_c_werror_flag
5041 ac_c_werror_flag=yes
5042 ac_cv_prog_cc_g=no
5043 CFLAGS="-g"
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046
5047 int
5048 main (void)
5049 {
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 if ac_fn_c_try_compile "$LINENO"
5056 then :
5057 ac_cv_prog_cc_g=yes
5058 else case e in #(
5059 e) CFLAGS=""
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062
5063 int
5064 main (void)
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"
5072 then :
5073
5074 else case e in #(
5075 e) ac_c_werror_flag=$ac_save_c_werror_flag
5076 CFLAGS="-g"
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079
5080 int
5081 main (void)
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"
5089 then :
5090 ac_cv_prog_cc_g=yes
5091 fi
5092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5093 esac
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5096 esac
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5099 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5100 esac
5101 fi
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5103 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5104 if test $ac_test_CFLAGS; then
5105 CFLAGS=$ac_save_CFLAGS
5106 elif test $ac_cv_prog_cc_g = yes; then
5107 if test "$GCC" = yes; then
5108 CFLAGS="-g -O2"
5109 else
5110 CFLAGS="-g"
5111 fi
5112 else
5113 if test "$GCC" = yes; then
5114 CFLAGS="-O2"
5115 else
5116 CFLAGS=
5117 fi
5118 fi
5119 ac_prog_cc_stdc=no
5120 if test x$ac_prog_cc_stdc = xno
5121 then :
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5123 printf %s "checking for $CC option to enable C11 features... " >&6; }
5124 if test ${ac_cv_prog_cc_c11+y}
5125 then :
5126 printf %s "(cached) " >&6
5127 else case e in #(
5128 e) ac_cv_prog_cc_c11=no
5129 ac_save_CC=$CC
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 $ac_c_conftest_c11_program
5133 _ACEOF
5134 for ac_arg in '' -std=gnu11
5135 do
5136 CC="$ac_save_CC $ac_arg"
5137 if ac_fn_c_try_compile "$LINENO"
5138 then :
5139 ac_cv_prog_cc_c11=$ac_arg
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext conftest.beam
5142 test "x$ac_cv_prog_cc_c11" != "xno" && break
5143 done
5144 rm -f conftest.$ac_ext
5145 CC=$ac_save_CC ;;
5146 esac
5147 fi
5148
5149 if test "x$ac_cv_prog_cc_c11" = xno
5150 then :
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5152 printf "%s\n" "unsupported" >&6; }
5153 else case e in #(
5154 e) if test "x$ac_cv_prog_cc_c11" = x
5155 then :
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5157 printf "%s\n" "none needed" >&6; }
5158 else case e in #(
5159 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5160 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5161 CC="$CC $ac_cv_prog_cc_c11" ;;
5162 esac
5163 fi
5164 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5165 ac_prog_cc_stdc=c11 ;;
5166 esac
5167 fi
5168 fi
5169 if test x$ac_prog_cc_stdc = xno
5170 then :
5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5172 printf %s "checking for $CC option to enable C99 features... " >&6; }
5173 if test ${ac_cv_prog_cc_c99+y}
5174 then :
5175 printf %s "(cached) " >&6
5176 else case e in #(
5177 e) ac_cv_prog_cc_c99=no
5178 ac_save_CC=$CC
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 $ac_c_conftest_c99_program
5182 _ACEOF
5183 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5184 do
5185 CC="$ac_save_CC $ac_arg"
5186 if ac_fn_c_try_compile "$LINENO"
5187 then :
5188 ac_cv_prog_cc_c99=$ac_arg
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam
5191 test "x$ac_cv_prog_cc_c99" != "xno" && break
5192 done
5193 rm -f conftest.$ac_ext
5194 CC=$ac_save_CC ;;
5195 esac
5196 fi
5197
5198 if test "x$ac_cv_prog_cc_c99" = xno
5199 then :
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5201 printf "%s\n" "unsupported" >&6; }
5202 else case e in #(
5203 e) if test "x$ac_cv_prog_cc_c99" = x
5204 then :
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5206 printf "%s\n" "none needed" >&6; }
5207 else case e in #(
5208 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5209 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5210 CC="$CC $ac_cv_prog_cc_c99" ;;
5211 esac
5212 fi
5213 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5214 ac_prog_cc_stdc=c99 ;;
5215 esac
5216 fi
5217 fi
5218 if test x$ac_prog_cc_stdc = xno
5219 then :
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5221 printf %s "checking for $CC option to enable C89 features... " >&6; }
5222 if test ${ac_cv_prog_cc_c89+y}
5223 then :
5224 printf %s "(cached) " >&6
5225 else case e in #(
5226 e) ac_cv_prog_cc_c89=no
5227 ac_save_CC=$CC
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 $ac_c_conftest_c89_program
5231 _ACEOF
5232 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5233 do
5234 CC="$ac_save_CC $ac_arg"
5235 if ac_fn_c_try_compile "$LINENO"
5236 then :
5237 ac_cv_prog_cc_c89=$ac_arg
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.beam
5240 test "x$ac_cv_prog_cc_c89" != "xno" && break
5241 done
5242 rm -f conftest.$ac_ext
5243 CC=$ac_save_CC ;;
5244 esac
5245 fi
5246
5247 if test "x$ac_cv_prog_cc_c89" = xno
5248 then :
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5250 printf "%s\n" "unsupported" >&6; }
5251 else case e in #(
5252 e) if test "x$ac_cv_prog_cc_c89" = x
5253 then :
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5255 printf "%s\n" "none needed" >&6; }
5256 else case e in #(
5257 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5258 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5259 CC="$CC $ac_cv_prog_cc_c89" ;;
5260 esac
5261 fi
5262 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5263 ac_prog_cc_stdc=c89 ;;
5264 esac
5265 fi
5266 fi
5267
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
5274
5275 ac_ext=c
5276 ac_cpp='$CPP $CPPFLAGS'
5277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5281 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5282 if test ${am_cv_prog_cc_c_o+y}
5283 then :
5284 printf %s "(cached) " >&6
5285 else case e in #(
5286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288
5289 int
5290 main (void)
5291 {
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 # Make sure it works both with $CC and with simple cc.
5298 # Following AC_PROG_CC_C_O, we do the test twice because some
5299 # compilers refuse to overwrite an existing .o file with -o,
5300 # though they will create one.
5301 am_cv_prog_cc_c_o=yes
5302 for am_i in 1 2; do
5303 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5304 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } \
5308 && test -f conftest2.$ac_objext; then
5309 : OK
5310 else
5311 am_cv_prog_cc_c_o=no
5312 break
5313 fi
5314 done
5315 # aligned with autoconf, so not including core; see bug#72225.
5316 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5317 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5318 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5319 unset am_i ;;
5320 esac
5321 fi
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5323 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5324 if test "$am_cv_prog_cc_c_o" != yes; then
5325 # Losing compiler, so override with the script.
5326 # FIXME: It is wrong to rewrite CC.
5327 # But if we don't then we get into trouble of one sort or another.
5328 # A longer-term fix would be to have automake use am__CC in this case,
5329 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5330 CC="$am_aux_dir/compile $CC"
5331 fi
5332 ac_ext=c
5333 ac_cpp='$CPP $CPPFLAGS'
5334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5337
5338
5339 depcc="$CC" am_compiler_list=
5340
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5342 printf %s "checking dependency style of $depcc... " >&6; }
5343 if test ${am_cv_CC_dependencies_compiler_type+y}
5344 then :
5345 printf %s "(cached) " >&6
5346 else case e in #(
5347 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5348 # We make a subdir and do the tests there. Otherwise we can end up
5349 # making bogus files that we don't know about and never remove. For
5350 # instance it was reported that on HP-UX the gcc test will end up
5351 # making a dummy file named 'D' -- because '-MD' means "put the output
5352 # in D".
5353 rm -rf conftest.dir
5354 mkdir conftest.dir
5355 # Copy depcomp to subdir because otherwise we won't find it if we're
5356 # using a relative directory.
5357 cp "$am_depcomp" conftest.dir
5358 cd conftest.dir
5359 # We will build objects and dependencies in a subdirectory because
5360 # it helps to detect inapplicable dependency modes. For instance
5361 # both Tru64's cc and ICC support -MD to output dependencies as a
5362 # side effect of compilation, but ICC will put the dependencies in
5363 # the current directory while Tru64 will put them in the object
5364 # directory.
5365 mkdir sub
5366
5367 am_cv_CC_dependencies_compiler_type=none
5368 if test "$am_compiler_list" = ""; then
5369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5370 fi
5371 am__universal=false
5372 case " $depcc " in #(
5373 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5374 esac
5375
5376 for depmode in $am_compiler_list; do
5377 # Setup a source with many dependencies, because some compilers
5378 # like to wrap large dependency lists on column 80 (with \), and
5379 # we should not choose a depcomp mode which is confused by this.
5380 #
5381 # We need to recreate these files for each test, as the compiler may
5382 # overwrite some of them when testing with obscure command lines.
5383 # This happens at least with the AIX C compiler.
5384 : > sub/conftest.c
5385 for i in 1 2 3 4 5 6; do
5386 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5387 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5388 # Solaris 10 /bin/sh.
5389 echo '/* dummy */' > sub/conftst$i.h
5390 done
5391 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5392
5393 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5394 # mode. It turns out that the SunPro C++ compiler does not properly
5395 # handle '-M -o', and we need to detect this. Also, some Intel
5396 # versions had trouble with output in subdirs.
5397 am__obj=sub/conftest.${OBJEXT-o}
5398 am__minus_obj="-o $am__obj"
5399 case $depmode in
5400 gcc)
5401 # This depmode causes a compiler race in universal mode.
5402 test "$am__universal" = false || continue
5403 ;;
5404 nosideeffect)
5405 # After this tag, mechanisms are not by side-effect, so they'll
5406 # only be used when explicitly requested.
5407 if test "x$enable_dependency_tracking" = xyes; then
5408 continue
5409 else
5410 break
5411 fi
5412 ;;
5413 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5414 # This compiler won't grok '-c -o', but also, the minuso test has
5415 # not run yet. These depmodes are late enough in the game, and
5416 # so weak that their functioning should not be impacted.
5417 am__obj=conftest.${OBJEXT-o}
5418 am__minus_obj=
5419 ;;
5420 none) break ;;
5421 esac
5422 if depmode=$depmode \
5423 source=sub/conftest.c object=$am__obj \
5424 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5426 >/dev/null 2>conftest.err &&
5427 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5428 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5429 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5430 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5431 # icc doesn't choke on unknown options, it will just issue warnings
5432 # or remarks (even with -Werror). So we grep stderr for any message
5433 # that says an option was ignored or not supported.
5434 # When given -MP, icc 7.0 and 7.1 complain thus:
5435 # icc: Command line warning: ignoring option '-M'; no argument required
5436 # The diagnosis changed in icc 8.0:
5437 # icc: Command line remark: option '-MP' not supported
5438 if (grep 'ignoring option' conftest.err ||
5439 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5440 am_cv_CC_dependencies_compiler_type=$depmode
5441 break
5442 fi
5443 fi
5444 done
5445
5446 cd ..
5447 rm -rf conftest.dir
5448 else
5449 am_cv_CC_dependencies_compiler_type=none
5450 fi
5451 ;;
5452 esac
5453 fi
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5455 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5456 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5457
5458 if
5459 test "x$enable_dependency_tracking" != xno \
5460 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5461 am__fastdepCC_TRUE=
5462 am__fastdepCC_FALSE='#'
5463 else
5464 am__fastdepCC_TRUE='#'
5465 am__fastdepCC_FALSE=
5466 fi
5467
5468
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5470 printf %s "checking for a sed that does not truncate output... " >&6; }
5471 if test ${ac_cv_path_SED+y}
5472 then :
5473 printf %s "(cached) " >&6
5474 else case e in #(
5475 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5476 for ac_i in 1 2 3 4 5 6 7; do
5477 ac_script="$ac_script$as_nl$ac_script"
5478 done
5479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5480 { ac_script=; unset ac_script;}
5481 if test -z "$SED"; then
5482 ac_path_SED_found=false
5483 # Loop through the user's path and test for each of PROGNAME-LIST
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487 IFS=$as_save_IFS
5488 case $as_dir in #(((
5489 '') as_dir=./ ;;
5490 */) ;;
5491 *) as_dir=$as_dir/ ;;
5492 esac
5493 for ac_prog in sed gsed
5494 do
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5497 as_fn_executable_p "$ac_path_SED" || continue
5498 # Check for GNU ac_path_SED and select it if it is found.
5499 # Check for GNU $ac_path_SED
5500 case `"$ac_path_SED" --version 2>&1` in #(
5501 *GNU*)
5502 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5503 #(
5504 *)
5505 ac_count=0
5506 printf %s 0123456789 >"conftest.in"
5507 while :
5508 do
5509 cat "conftest.in" "conftest.in" >"conftest.tmp"
5510 mv "conftest.tmp" "conftest.in"
5511 cp "conftest.in" "conftest.nl"
5512 printf "%s\n" '' >> "conftest.nl"
5513 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5515 as_fn_arith $ac_count + 1 && ac_count=$as_val
5516 if test $ac_count -gt ${ac_path_SED_max-0}; then
5517 # Best one so far, save it but keep looking for a better one
5518 ac_cv_path_SED="$ac_path_SED"
5519 ac_path_SED_max=$ac_count
5520 fi
5521 # 10*(2^10) chars as input seems more than enough
5522 test $ac_count -gt 10 && break
5523 done
5524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5525 esac
5526
5527 $ac_path_SED_found && break 3
5528 done
5529 done
5530 done
5531 IFS=$as_save_IFS
5532 if test -z "$ac_cv_path_SED"; then
5533 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5534 fi
5535 else
5536 ac_cv_path_SED=$SED
5537 fi
5538 ;;
5539 esac
5540 fi
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5542 printf "%s\n" "$ac_cv_path_SED" >&6; }
5543 SED="$ac_cv_path_SED"
5544 rm -f conftest.sed
5545
5546 test -z "$SED" && SED=sed
5547 Xsed="$SED -e 1s/^X//"
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5560 printf %s "checking for grep that handles long lines and -e... " >&6; }
5561 if test ${ac_cv_path_GREP+y}
5562 then :
5563 printf %s "(cached) " >&6
5564 else case e in #(
5565 e) if test -z "$GREP"; then
5566 ac_path_GREP_found=false
5567 # Loop through the user's path and test for each of PROGNAME-LIST
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5570 do
5571 IFS=$as_save_IFS
5572 case $as_dir in #(((
5573 '') as_dir=./ ;;
5574 */) ;;
5575 *) as_dir=$as_dir/ ;;
5576 esac
5577 for ac_prog in grep ggrep
5578 do
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5581 as_fn_executable_p "$ac_path_GREP" || continue
5582 # Check for GNU ac_path_GREP and select it if it is found.
5583 # Check for GNU $ac_path_GREP
5584 case `"$ac_path_GREP" --version 2>&1` in #(
5585 *GNU*)
5586 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5587 #(
5588 *)
5589 ac_count=0
5590 printf %s 0123456789 >"conftest.in"
5591 while :
5592 do
5593 cat "conftest.in" "conftest.in" >"conftest.tmp"
5594 mv "conftest.tmp" "conftest.in"
5595 cp "conftest.in" "conftest.nl"
5596 printf "%s\n" 'GREP' >> "conftest.nl"
5597 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5599 as_fn_arith $ac_count + 1 && ac_count=$as_val
5600 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5601 # Best one so far, save it but keep looking for a better one
5602 ac_cv_path_GREP="$ac_path_GREP"
5603 ac_path_GREP_max=$ac_count
5604 fi
5605 # 10*(2^10) chars as input seems more than enough
5606 test $ac_count -gt 10 && break
5607 done
5608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5609 esac
5610
5611 $ac_path_GREP_found && break 3
5612 done
5613 done
5614 done
5615 IFS=$as_save_IFS
5616 if test -z "$ac_cv_path_GREP"; then
5617 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5618 fi
5619 else
5620 ac_cv_path_GREP=$GREP
5621 fi
5622 ;;
5623 esac
5624 fi
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5626 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5627 GREP="$ac_cv_path_GREP"
5628
5629
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5631 printf %s "checking for egrep... " >&6; }
5632 if test ${ac_cv_path_EGREP+y}
5633 then :
5634 printf %s "(cached) " >&6
5635 else case e in #(
5636 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5637 then ac_cv_path_EGREP="$GREP -E"
5638 else
5639 if test -z "$EGREP"; then
5640 ac_path_EGREP_found=false
5641 # Loop through the user's path and test for each of PROGNAME-LIST
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5644 do
5645 IFS=$as_save_IFS
5646 case $as_dir in #(((
5647 '') as_dir=./ ;;
5648 */) ;;
5649 *) as_dir=$as_dir/ ;;
5650 esac
5651 for ac_prog in egrep
5652 do
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5655 as_fn_executable_p "$ac_path_EGREP" || continue
5656 # Check for GNU ac_path_EGREP and select it if it is found.
5657 # Check for GNU $ac_path_EGREP
5658 case `"$ac_path_EGREP" --version 2>&1` in #(
5659 *GNU*)
5660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5661 #(
5662 *)
5663 ac_count=0
5664 printf %s 0123456789 >"conftest.in"
5665 while :
5666 do
5667 cat "conftest.in" "conftest.in" >"conftest.tmp"
5668 mv "conftest.tmp" "conftest.in"
5669 cp "conftest.in" "conftest.nl"
5670 printf "%s\n" 'EGREP' >> "conftest.nl"
5671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5673 as_fn_arith $ac_count + 1 && ac_count=$as_val
5674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5675 # Best one so far, save it but keep looking for a better one
5676 ac_cv_path_EGREP="$ac_path_EGREP"
5677 ac_path_EGREP_max=$ac_count
5678 fi
5679 # 10*(2^10) chars as input seems more than enough
5680 test $ac_count -gt 10 && break
5681 done
5682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5683 esac
5684
5685 $ac_path_EGREP_found && break 3
5686 done
5687 done
5688 done
5689 IFS=$as_save_IFS
5690 if test -z "$ac_cv_path_EGREP"; then
5691 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5692 fi
5693 else
5694 ac_cv_path_EGREP=$EGREP
5695 fi
5696
5697 fi ;;
5698 esac
5699 fi
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5701 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5702 EGREP="$ac_cv_path_EGREP"
5703
5704 EGREP_TRADITIONAL=$EGREP
5705 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5706
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5708 printf %s "checking for fgrep... " >&6; }
5709 if test ${ac_cv_path_FGREP+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else case e in #(
5713 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5714 then ac_cv_path_FGREP="$GREP -F"
5715 else
5716 if test -z "$FGREP"; then
5717 ac_path_FGREP_found=false
5718 # Loop through the user's path and test for each of PROGNAME-LIST
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5721 do
5722 IFS=$as_save_IFS
5723 case $as_dir in #(((
5724 '') as_dir=./ ;;
5725 */) ;;
5726 *) as_dir=$as_dir/ ;;
5727 esac
5728 for ac_prog in fgrep
5729 do
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5732 as_fn_executable_p "$ac_path_FGREP" || continue
5733 # Check for GNU ac_path_FGREP and select it if it is found.
5734 # Check for GNU $ac_path_FGREP
5735 case `"$ac_path_FGREP" --version 2>&1` in #(
5736 *GNU*)
5737 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5738 #(
5739 *)
5740 ac_count=0
5741 printf %s 0123456789 >"conftest.in"
5742 while :
5743 do
5744 cat "conftest.in" "conftest.in" >"conftest.tmp"
5745 mv "conftest.tmp" "conftest.in"
5746 cp "conftest.in" "conftest.nl"
5747 printf "%s\n" 'FGREP' >> "conftest.nl"
5748 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5749 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5750 as_fn_arith $ac_count + 1 && ac_count=$as_val
5751 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5752 # Best one so far, save it but keep looking for a better one
5753 ac_cv_path_FGREP="$ac_path_FGREP"
5754 ac_path_FGREP_max=$ac_count
5755 fi
5756 # 10*(2^10) chars as input seems more than enough
5757 test $ac_count -gt 10 && break
5758 done
5759 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5760 esac
5761
5762 $ac_path_FGREP_found && break 3
5763 done
5764 done
5765 done
5766 IFS=$as_save_IFS
5767 if test -z "$ac_cv_path_FGREP"; then
5768 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5769 fi
5770 else
5771 ac_cv_path_FGREP=$FGREP
5772 fi
5773
5774 fi ;;
5775 esac
5776 fi
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5778 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5779 FGREP="$ac_cv_path_FGREP"
5780
5781
5782 test -z "$GREP" && GREP=grep
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 # Check whether --with-gnu-ld was given.
5803 if test ${with_gnu_ld+y}
5804 then :
5805 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5806 else case e in #(
5807 e) with_gnu_ld=no ;;
5808 esac
5809 fi
5810
5811 ac_prog=ld
5812 if test yes = "$GCC"; then
5813 # Check if gcc -print-prog-name=ld gives a path.
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5815 printf %s "checking for ld used by $CC... " >&6; }
5816 case $host in
5817 *-*-mingw* | *-*-windows*)
5818 # gcc leaves a trailing carriage return, which upsets mingw
5819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5820 *)
5821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5822 esac
5823 case $ac_prog in
5824 # Accept absolute paths.
5825 [\\/]* | ?:[\\/]*)
5826 re_direlt='/[^/][^/]*/\.\./'
5827 # Canonicalize the pathname of ld
5828 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5829 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5830 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5831 done
5832 test -z "$LD" && LD=$ac_prog
5833 ;;
5834 "")
5835 # If it fails, then pretend we aren't using GCC.
5836 ac_prog=ld
5837 ;;
5838 *)
5839 # If it is relative, then search for the first ld in PATH.
5840 with_gnu_ld=unknown
5841 ;;
5842 esac
5843 elif test yes = "$with_gnu_ld"; then
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5845 printf %s "checking for GNU ld... " >&6; }
5846 else
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5848 printf %s "checking for non-GNU ld... " >&6; }
5849 fi
5850 if test ${lt_cv_path_LD+y}
5851 then :
5852 printf %s "(cached) " >&6
5853 else case e in #(
5854 e) if test -z "$LD"; then
5855 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5856 for ac_dir in $PATH; do
5857 IFS=$lt_save_ifs
5858 test -z "$ac_dir" && ac_dir=.
5859 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5860 lt_cv_path_LD=$ac_dir/$ac_prog
5861 # Check to see if the program is GNU ld. I'd rather use --version,
5862 # but apparently some variants of GNU ld only accept -v.
5863 # Break only if it was the GNU/non-GNU ld that we prefer.
5864 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5865 *GNU* | *'with BFD'*)
5866 test no != "$with_gnu_ld" && break
5867 ;;
5868 *)
5869 test yes != "$with_gnu_ld" && break
5870 ;;
5871 esac
5872 fi
5873 done
5874 IFS=$lt_save_ifs
5875 else
5876 lt_cv_path_LD=$LD # Let the user override the test with a path.
5877 fi ;;
5878 esac
5879 fi
5880
5881 LD=$lt_cv_path_LD
5882 if test -n "$LD"; then
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5884 printf "%s\n" "$LD" >&6; }
5885 else
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 printf "%s\n" "no" >&6; }
5888 fi
5889 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5891 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5892 if test ${lt_cv_prog_gnu_ld+y}
5893 then :
5894 printf %s "(cached) " >&6
5895 else case e in #(
5896 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5897 case `$LD -v 2>&1 </dev/null` in
5898 *GNU* | *'with BFD'*)
5899 lt_cv_prog_gnu_ld=yes
5900 ;;
5901 *)
5902 lt_cv_prog_gnu_ld=no
5903 ;;
5904 esac ;;
5905 esac
5906 fi
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5908 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5909 with_gnu_ld=$lt_cv_prog_gnu_ld
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5920 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5921 if test ${lt_cv_path_NM+y}
5922 then :
5923 printf %s "(cached) " >&6
5924 else case e in #(
5925 e) if test -n "$NM"; then
5926 # Let the user override the test.
5927 lt_cv_path_NM=$NM
5928 else
5929 lt_nm_to_check=${ac_tool_prefix}nm
5930 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5931 lt_nm_to_check="$lt_nm_to_check nm"
5932 fi
5933 for lt_tmp_nm in $lt_nm_to_check; do
5934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5935 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5936 IFS=$lt_save_ifs
5937 test -z "$ac_dir" && ac_dir=.
5938 tmp_nm=$ac_dir/$lt_tmp_nm
5939 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5940 # Check to see if the nm accepts a BSD-compat flag.
5941 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5942 # nm: unknown option "B" ignored
5943 # Tru64's nm complains that /dev/null is an invalid object file
5944 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5945 case $build_os in
5946 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5947 *) lt_bad_file=/dev/null ;;
5948 esac
5949 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5950 *$lt_bad_file* | *'Invalid file or object type'*)
5951 lt_cv_path_NM="$tmp_nm -B"
5952 break 2
5953 ;;
5954 *)
5955 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5956 */dev/null*)
5957 lt_cv_path_NM="$tmp_nm -p"
5958 break 2
5959 ;;
5960 *)
5961 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5962 continue # so that we can try to find one that supports BSD flags
5963 ;;
5964 esac
5965 ;;
5966 esac
5967 fi
5968 done
5969 IFS=$lt_save_ifs
5970 done
5971 : ${lt_cv_path_NM=no}
5972 fi ;;
5973 esac
5974 fi
5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5976 printf "%s\n" "$lt_cv_path_NM" >&6; }
5977 if test no != "$lt_cv_path_NM"; then
5978 NM=$lt_cv_path_NM
5979 else
5980 # Didn't find any BSD compatible name lister, look for dumpbin.
5981 if test -n "$DUMPBIN"; then :
5982 # Let the user override the test.
5983 else
5984 if test -n "$ac_tool_prefix"; then
5985 for ac_prog in dumpbin "link -dump"
5986 do
5987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 printf %s "checking for $ac_word... " >&6; }
5991 if test ${ac_cv_prog_DUMPBIN+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else case e in #(
5995 e) if test -n "$DUMPBIN"; then
5996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001 IFS=$as_save_IFS
6002 case $as_dir in #(((
6003 '') as_dir=./ ;;
6004 */) ;;
6005 *) as_dir=$as_dir/ ;;
6006 esac
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6009 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6011 break 2
6012 fi
6013 done
6014 done
6015 IFS=$as_save_IFS
6016
6017 fi ;;
6018 esac
6019 fi
6020 DUMPBIN=$ac_cv_prog_DUMPBIN
6021 if test -n "$DUMPBIN"; then
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6023 printf "%s\n" "$DUMPBIN" >&6; }
6024 else
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 printf "%s\n" "no" >&6; }
6027 fi
6028
6029
6030 test -n "$DUMPBIN" && break
6031 done
6032 fi
6033 if test -z "$DUMPBIN"; then
6034 ac_ct_DUMPBIN=$DUMPBIN
6035 for ac_prog in dumpbin "link -dump"
6036 do
6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
6038 set dummy $ac_prog; ac_word=$2
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040 printf %s "checking for $ac_word... " >&6; }
6041 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6042 then :
6043 printf %s "(cached) " >&6
6044 else case e in #(
6045 e) if test -n "$ac_ct_DUMPBIN"; then
6046 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 case $as_dir in #(((
6053 '') as_dir=./ ;;
6054 */) ;;
6055 *) as_dir=$as_dir/ ;;
6056 esac
6057 for ac_exec_ext in '' $ac_executable_extensions; do
6058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6059 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6061 break 2
6062 fi
6063 done
6064 done
6065 IFS=$as_save_IFS
6066
6067 fi ;;
6068 esac
6069 fi
6070 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6071 if test -n "$ac_ct_DUMPBIN"; then
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6073 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6074 else
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 printf "%s\n" "no" >&6; }
6077 fi
6078
6079
6080 test -n "$ac_ct_DUMPBIN" && break
6081 done
6082
6083 if test "x$ac_ct_DUMPBIN" = x; then
6084 DUMPBIN=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087 yes:)
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090 ac_tool_warned=yes ;;
6091 esac
6092 DUMPBIN=$ac_ct_DUMPBIN
6093 fi
6094 fi
6095
6096 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6097 *COFF*)
6098 DUMPBIN="$DUMPBIN -symbols -headers"
6099 ;;
6100 *)
6101 DUMPBIN=:
6102 ;;
6103 esac
6104 fi
6105
6106 if test : != "$DUMPBIN"; then
6107 NM=$DUMPBIN
6108 fi
6109 fi
6110 test -z "$NM" && NM=nm
6111
6112
6113
6114
6115
6116
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6118 printf %s "checking the name lister ($NM) interface... " >&6; }
6119 if test ${lt_cv_nm_interface+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) lt_cv_nm_interface="BSD nm"
6124 echo "int some_variable = 0;" > conftest.$ac_ext
6125 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6126 (eval "$ac_compile" 2>conftest.err)
6127 cat conftest.err >&5
6128 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6130 cat conftest.err >&5
6131 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6132 cat conftest.out >&5
6133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6134 lt_cv_nm_interface="MS dumpbin"
6135 fi
6136 rm -f conftest* ;;
6137 esac
6138 fi
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6140 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6141
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6143 printf %s "checking whether ln -s works... " >&6; }
6144 LN_S=$as_ln_s
6145 if test "$LN_S" = "ln -s"; then
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6147 printf "%s\n" "yes" >&6; }
6148 else
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6150 printf "%s\n" "no, using $LN_S" >&6; }
6151 fi
6152
6153 # find the maximum length of command line arguments
6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6155 printf %s "checking the maximum length of command line arguments... " >&6; }
6156 if test ${lt_cv_sys_max_cmd_len+y}
6157 then :
6158 printf %s "(cached) " >&6
6159 else case e in #(
6160 e) i=0
6161 teststring=ABCD
6162
6163 case $build_os in
6164 msdosdjgpp*)
6165 # On DJGPP, this test can blow up pretty badly due to problems in libc
6166 # (any single argument exceeding 2000 bytes causes a buffer overrun
6167 # during glob expansion). Even if it were fixed, the result of this
6168 # check would be larger than it should be.
6169 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6170 ;;
6171
6172 gnu* | ironclad*)
6173 # Under GNU Hurd and Ironclad, this test is not required because there
6174 # is no limit to the length of command line arguments.
6175 # Libtool will interpret -1 as no limit whatsoever
6176 lt_cv_sys_max_cmd_len=-1;
6177 ;;
6178
6179 cygwin* | mingw* | windows* | cegcc*)
6180 # On Win9x/ME, this test blows up -- it succeeds, but takes
6181 # about 5 minutes as the teststring grows exponentially.
6182 # Worse, since 9x/ME are not pre-emptively multitasking,
6183 # you end up with a "frozen" computer, even though with patience
6184 # the test eventually succeeds (with a max line length of 256k).
6185 # Instead, let's just punt: use the minimum linelength reported by
6186 # all of the supported platforms: 8192 (on NT/2K/XP).
6187 lt_cv_sys_max_cmd_len=8192;
6188 ;;
6189
6190 mint*)
6191 # On MiNT this can take a long time and run out of memory.
6192 lt_cv_sys_max_cmd_len=8192;
6193 ;;
6194
6195 amigaos*)
6196 # On AmigaOS with pdksh, this test takes hours, literally.
6197 # So we just punt and use a minimum line length of 8192.
6198 lt_cv_sys_max_cmd_len=8192;
6199 ;;
6200
6201 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6202 # This has been around since 386BSD, at least. Likely further.
6203 if test -x /sbin/sysctl; then
6204 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6205 elif test -x /usr/sbin/sysctl; then
6206 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6207 else
6208 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6209 fi
6210 # And add a safety zone
6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6213 ;;
6214
6215 interix*)
6216 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6217 lt_cv_sys_max_cmd_len=196608
6218 ;;
6219
6220 os2*)
6221 # The test takes a long time on OS/2.
6222 lt_cv_sys_max_cmd_len=8192
6223 ;;
6224
6225 osf*)
6226 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6227 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6228 # nice to cause kernel panics so lets avoid the loop below.
6229 # First set a reasonable default.
6230 lt_cv_sys_max_cmd_len=16384
6231 #
6232 if test -x /sbin/sysconfig; then
6233 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6234 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6235 esac
6236 fi
6237 ;;
6238 sco3.2v5*)
6239 lt_cv_sys_max_cmd_len=102400
6240 ;;
6241 sysv5* | sco5v6* | sysv4.2uw2*)
6242 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6243 if test -n "$kargmax"; then
6244 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6245 else
6246 lt_cv_sys_max_cmd_len=32768
6247 fi
6248 ;;
6249 *)
6250 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6251 if test -n "$lt_cv_sys_max_cmd_len" && \
6252 test undefined != "$lt_cv_sys_max_cmd_len"; then
6253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6255 else
6256 # Make teststring a little bigger before we do anything with it.
6257 # a 1K string should be a reasonable start.
6258 for i in 1 2 3 4 5 6 7 8; do
6259 teststring=$teststring$teststring
6260 done
6261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6262 # If test is not a shell built-in, we'll probably end up computing a
6263 # maximum length that is only half of the actual maximum length, but
6264 # we can't tell.
6265 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6266 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6267 test 17 != "$i" # 1/2 MB should be enough
6268 do
6269 i=`expr $i + 1`
6270 teststring=$teststring$teststring
6271 done
6272 # Only check the string length outside the loop.
6273 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6274 teststring=
6275 # Add a significant safety factor because C++ compilers can tack on
6276 # massive amounts of additional arguments before passing them to the
6277 # linker. It appears as though 1/2 is a usable value.
6278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6279 fi
6280 ;;
6281 esac
6282 ;;
6283 esac
6284 fi
6285
6286 if test -n "$lt_cv_sys_max_cmd_len"; then
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6288 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6289 else
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6291 printf "%s\n" "none" >&6; }
6292 fi
6293 max_cmd_len=$lt_cv_sys_max_cmd_len
6294
6295
6296
6297
6298
6299
6300 : ${CP="cp -f"}
6301 : ${MV="mv -f"}
6302 : ${RM="rm -f"}
6303
6304 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6305 lt_unset=unset
6306 else
6307 lt_unset=false
6308 fi
6309
6310
6311
6312
6313
6314 # test EBCDIC or ASCII
6315 case `echo X|tr X '\101'` in
6316 A) # ASCII based system
6317 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6318 lt_SP2NL='tr \040 \012'
6319 lt_NL2SP='tr \015\012 \040\040'
6320 ;;
6321 *) # EBCDIC based system
6322 lt_SP2NL='tr \100 \n'
6323 lt_NL2SP='tr \r\n \100\100'
6324 ;;
6325 esac
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6336 printf %s "checking how to convert $build file names to $host format... " >&6; }
6337 if test ${lt_cv_to_host_file_cmd+y}
6338 then :
6339 printf %s "(cached) " >&6
6340 else case e in #(
6341 e) case $host in
6342 *-*-mingw* )
6343 case $build in
6344 *-*-mingw* | *-*-windows* ) # actually msys
6345 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6346 ;;
6347 *-*-cygwin* )
6348 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6349 ;;
6350 * ) # otherwise, assume *nix
6351 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6352 ;;
6353 esac
6354 ;;
6355 *-*-cygwin* )
6356 case $build in
6357 *-*-mingw* | *-*-windows* ) # actually msys
6358 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6359 ;;
6360 *-*-cygwin* )
6361 lt_cv_to_host_file_cmd=func_convert_file_noop
6362 ;;
6363 * ) # otherwise, assume *nix
6364 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6365 ;;
6366 esac
6367 ;;
6368 * ) # unhandled hosts (and "normal" native builds)
6369 lt_cv_to_host_file_cmd=func_convert_file_noop
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375
6376 to_host_file_cmd=$lt_cv_to_host_file_cmd
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6378 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6379
6380
6381
6382
6383
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6385 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6386 if test ${lt_cv_to_tool_file_cmd+y}
6387 then :
6388 printf %s "(cached) " >&6
6389 else case e in #(
6390 e) #assume ordinary cross tools, or native build.
6391 lt_cv_to_tool_file_cmd=func_convert_file_noop
6392 case $host in
6393 *-*-mingw* | *-*-windows* )
6394 case $build in
6395 *-*-mingw* | *-*-windows* ) # actually msys
6396 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6397 ;;
6398 esac
6399 ;;
6400 esac
6401 ;;
6402 esac
6403 fi
6404
6405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6407 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6408
6409
6410
6411
6412
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6414 printf %s "checking for $LD option to reload object files... " >&6; }
6415 if test ${lt_cv_ld_reload_flag+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else case e in #(
6419 e) lt_cv_ld_reload_flag='-r' ;;
6420 esac
6421 fi
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6423 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6424 reload_flag=$lt_cv_ld_reload_flag
6425 case $reload_flag in
6426 "" | " "*) ;;
6427 *) reload_flag=" $reload_flag" ;;
6428 esac
6429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6430 case $host_os in
6431 cygwin* | mingw* | windows* | pw32* | cegcc*)
6432 if test yes != "$GCC"; then
6433 reload_cmds=false
6434 fi
6435 ;;
6436 darwin*)
6437 if test yes = "$GCC"; then
6438 reload_cmds='$LTCC $LTCFLAGS $stdlibflag $wl-r -o $output$reload_objs'
6439 else
6440 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6441 fi
6442 ;;
6443 esac
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453 # Extract the first word of "file", so it can be a program name with args.
6454 set dummy file; ac_word=$2
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 printf %s "checking for $ac_word... " >&6; }
6457 if test ${ac_cv_prog_FILECMD+y}
6458 then :
6459 printf %s "(cached) " >&6
6460 else case e in #(
6461 e) if test -n "$FILECMD"; then
6462 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467 IFS=$as_save_IFS
6468 case $as_dir in #(((
6469 '') as_dir=./ ;;
6470 */) ;;
6471 *) as_dir=$as_dir/ ;;
6472 esac
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_FILECMD="file"
6476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6484 fi ;;
6485 esac
6486 fi
6487 FILECMD=$ac_cv_prog_FILECMD
6488 if test -n "$FILECMD"; then
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6490 printf "%s\n" "$FILECMD" >&6; }
6491 else
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 printf "%s\n" "no" >&6; }
6494 fi
6495
6496
6497
6498
6499
6500
6501
6502
6503 if test -n "$ac_tool_prefix"; then
6504 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6505 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 printf %s "checking for $ac_word... " >&6; }
6508 if test ${ac_cv_prog_OBJDUMP+y}
6509 then :
6510 printf %s "(cached) " >&6
6511 else case e in #(
6512 e) if test -n "$OBJDUMP"; then
6513 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 case $as_dir in #(((
6520 '') as_dir=./ ;;
6521 */) ;;
6522 *) as_dir=$as_dir/ ;;
6523 esac
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6526 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530 done
6531 done
6532 IFS=$as_save_IFS
6533
6534 fi ;;
6535 esac
6536 fi
6537 OBJDUMP=$ac_cv_prog_OBJDUMP
6538 if test -n "$OBJDUMP"; then
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6540 printf "%s\n" "$OBJDUMP" >&6; }
6541 else
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 printf "%s\n" "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_OBJDUMP"; then
6549 ac_ct_OBJDUMP=$OBJDUMP
6550 # Extract the first word of "objdump", so it can be a program name with args.
6551 set dummy objdump; ac_word=$2
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 printf %s "checking for $ac_word... " >&6; }
6554 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6555 then :
6556 printf %s "(cached) " >&6
6557 else case e in #(
6558 e) if test -n "$ac_ct_OBJDUMP"; then
6559 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 case $as_dir in #(((
6566 '') as_dir=./ ;;
6567 */) ;;
6568 *) as_dir=$as_dir/ ;;
6569 esac
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578 IFS=$as_save_IFS
6579
6580 fi ;;
6581 esac
6582 fi
6583 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6584 if test -n "$ac_ct_OBJDUMP"; then
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6586 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6587 else
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 printf "%s\n" "no" >&6; }
6590 fi
6591
6592 if test "x$ac_ct_OBJDUMP" = x; then
6593 OBJDUMP="false"
6594 else
6595 case $cross_compiling:$ac_tool_warned in
6596 yes:)
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601 OBJDUMP=$ac_ct_OBJDUMP
6602 fi
6603 else
6604 OBJDUMP="$ac_cv_prog_OBJDUMP"
6605 fi
6606
6607 test -z "$OBJDUMP" && OBJDUMP=objdump
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6618 printf %s "checking how to recognize dependent libraries... " >&6; }
6619 if test ${lt_cv_deplibs_check_method+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else case e in #(
6623 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6624 lt_cv_file_magic_test_file=
6625 lt_cv_deplibs_check_method='unknown'
6626 # Need to set the preceding variable on all platforms that support
6627 # interlibrary dependencies.
6628 # 'none' -- dependencies not supported.
6629 # 'unknown' -- same as none, but documents that we really don't know.
6630 # 'pass_all' -- all dependencies passed with no checks.
6631 # 'file_magic [[regex]]' -- check by looking for files in library path
6632 # that responds to the $file_magic_cmd with a given extended regex.
6633 # If you have 'file' or equivalent on your system and you're not sure
6634 # whether 'pass_all' will *always* work, you probably want this one.
6635
6636 case $host_os in
6637 aix[4-9]*)
6638 lt_cv_deplibs_check_method=pass_all
6639 ;;
6640
6641 beos*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 bsdi[45]*)
6646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6647 lt_cv_file_magic_cmd='$FILECMD -L'
6648 lt_cv_file_magic_test_file=/shlib/libc.so
6649 ;;
6650
6651 cygwin*)
6652 # func_win32_libid is a shell function defined in ltmain.sh
6653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6654 lt_cv_file_magic_cmd='func_win32_libid'
6655 ;;
6656
6657 mingw* | windows* | pw32*)
6658 # Base MSYS/MinGW do not provide the 'file' command needed by
6659 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6660 # unless we find 'file', for example because we are cross-compiling.
6661 if ( file / ) >/dev/null 2>&1; then
6662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6663 lt_cv_file_magic_cmd='func_win32_libid'
6664 else
6665 # Keep this pattern in sync with the one in func_win32_libid.
6666 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6667 lt_cv_file_magic_cmd='$OBJDUMP -f'
6668 fi
6669 ;;
6670
6671 cegcc*)
6672 # use the weaker test based on 'objdump'. See mingw*.
6673 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6674 lt_cv_file_magic_cmd='$OBJDUMP -f'
6675 ;;
6676
6677 darwin* | rhapsody*)
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
6680
6681 freebsd* | dragonfly* | midnightbsd*)
6682 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6683 case $host_cpu in
6684 i*86 )
6685 # Not sure whether the presence of OpenBSD here was a mistake.
6686 # Let's accept both of them until this is cleared up.
6687 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6688 lt_cv_file_magic_cmd=$FILECMD
6689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6690 ;;
6691 esac
6692 else
6693 lt_cv_deplibs_check_method=pass_all
6694 fi
6695 ;;
6696
6697 haiku*)
6698 lt_cv_deplibs_check_method=pass_all
6699 ;;
6700
6701 hpux10.20* | hpux11*)
6702 lt_cv_file_magic_cmd=$FILECMD
6703 case $host_cpu in
6704 ia64*)
6705 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6706 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6707 ;;
6708 hppa*64*)
6709 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]'
6710 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6711 ;;
6712 *)
6713 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6714 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6715 ;;
6716 esac
6717 ;;
6718
6719 interix[3-9]*)
6720 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6722 ;;
6723
6724 irix5* | irix6* | nonstopux*)
6725 case $LD in
6726 *-32|*"-32 ") libmagic=32-bit;;
6727 *-n32|*"-n32 ") libmagic=N32;;
6728 *-64|*"-64 ") libmagic=64-bit;;
6729 *) libmagic=never-match;;
6730 esac
6731 lt_cv_deplibs_check_method=pass_all
6732 ;;
6733
6734 # This must be glibc/ELF.
6735 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6736 lt_cv_deplibs_check_method=pass_all
6737 ;;
6738
6739 *-mlibc)
6740 lt_cv_deplibs_check_method=pass_all
6741 ;;
6742
6743 netbsd* | netbsdelf*-gnu)
6744 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6746 else
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6748 fi
6749 ;;
6750
6751 newos6*)
6752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6753 lt_cv_file_magic_cmd=$FILECMD
6754 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6755 ;;
6756
6757 *nto* | *qnx*)
6758 lt_cv_deplibs_check_method=pass_all
6759 ;;
6760
6761 openbsd*)
6762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6764 else
6765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6766 fi
6767 ;;
6768
6769 osf3* | osf4* | osf5*)
6770 lt_cv_deplibs_check_method=pass_all
6771 ;;
6772
6773 rdos*)
6774 lt_cv_deplibs_check_method=pass_all
6775 ;;
6776
6777 serenity*)
6778 lt_cv_deplibs_check_method=pass_all
6779 ;;
6780
6781 solaris*)
6782 lt_cv_deplibs_check_method=pass_all
6783 ;;
6784
6785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788
6789 sysv4 | sysv4.3*)
6790 case $host_vendor in
6791 motorola)
6792 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]'
6793 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6794 ;;
6795 ncr)
6796 lt_cv_deplibs_check_method=pass_all
6797 ;;
6798 sequent)
6799 lt_cv_file_magic_cmd='/bin/file'
6800 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6801 ;;
6802 sni)
6803 lt_cv_file_magic_cmd='/bin/file'
6804 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6805 lt_cv_file_magic_test_file=/lib/libc.so
6806 ;;
6807 siemens)
6808 lt_cv_deplibs_check_method=pass_all
6809 ;;
6810 pc)
6811 lt_cv_deplibs_check_method=pass_all
6812 ;;
6813 esac
6814 ;;
6815
6816 tpf*)
6817 lt_cv_deplibs_check_method=pass_all
6818 ;;
6819 os2*)
6820 lt_cv_deplibs_check_method=pass_all
6821 ;;
6822 esac
6823 ;;
6824 esac
6825 fi
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6827 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6828
6829 file_magic_glob=
6830 want_nocaseglob=no
6831 if test "$build" = "$host"; then
6832 case $host_os in
6833 mingw* | windows* | pw32*)
6834 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6835 want_nocaseglob=yes
6836 else
6837 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6838 fi
6839 ;;
6840 esac
6841 fi
6842
6843 file_magic_cmd=$lt_cv_file_magic_cmd
6844 deplibs_check_method=$lt_cv_deplibs_check_method
6845 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 printf %s "checking for $ac_word... " >&6; }
6873 if test ${ac_cv_prog_DLLTOOL+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else case e in #(
6877 e) if test -n "$DLLTOOL"; then
6878 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 case $as_dir in #(((
6885 '') as_dir=./ ;;
6886 */) ;;
6887 *) as_dir=$as_dir/ ;;
6888 esac
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi ;;
6900 esac
6901 fi
6902 DLLTOOL=$ac_cv_prog_DLLTOOL
6903 if test -n "$DLLTOOL"; then
6904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6905 printf "%s\n" "$DLLTOOL" >&6; }
6906 else
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 printf "%s\n" "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_DLLTOOL"; then
6914 ac_ct_DLLTOOL=$DLLTOOL
6915 # Extract the first word of "dlltool", so it can be a program name with args.
6916 set dummy dlltool; ac_word=$2
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 printf %s "checking for $ac_word... " >&6; }
6919 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6920 then :
6921 printf %s "(cached) " >&6
6922 else case e in #(
6923 e) if test -n "$ac_ct_DLLTOOL"; then
6924 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929 IFS=$as_save_IFS
6930 case $as_dir in #(((
6931 '') as_dir=./ ;;
6932 */) ;;
6933 *) as_dir=$as_dir/ ;;
6934 esac
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6937 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi ;;
6946 esac
6947 fi
6948 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6949 if test -n "$ac_ct_DLLTOOL"; then
6950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6951 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6952 else
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 printf "%s\n" "no" >&6; }
6955 fi
6956
6957 if test "x$ac_ct_DLLTOOL" = x; then
6958 DLLTOOL="false"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 DLLTOOL=$ac_ct_DLLTOOL
6967 fi
6968 else
6969 DLLTOOL="$ac_cv_prog_DLLTOOL"
6970 fi
6971
6972 test -z "$DLLTOOL" && DLLTOOL=dlltool
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6984 printf %s "checking how to associate runtime and link libraries... " >&6; }
6985 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6986 then :
6987 printf %s "(cached) " >&6
6988 else case e in #(
6989 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6990
6991 case $host_os in
6992 cygwin* | mingw* | windows* | pw32* | cegcc*)
6993 # two different shell functions defined in ltmain.sh;
6994 # decide which one to use based on capabilities of $DLLTOOL
6995 case `$DLLTOOL --help 2>&1` in
6996 *--identify-strict*)
6997 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6998 ;;
6999 *)
7000 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7001 ;;
7002 esac
7003 ;;
7004 *)
7005 # fallback: assume linklib IS sharedlib
7006 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7007 ;;
7008 esac
7009 ;;
7010 esac
7011 fi
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7013 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7014 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7015 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7016
7017
7018
7019
7020
7021
7022
7023
7024 if test -n "$ac_tool_prefix"; then
7025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 printf %s "checking for $ac_word... " >&6; }
7029 if test ${ac_cv_prog_RANLIB+y}
7030 then :
7031 printf %s "(cached) " >&6
7032 else case e in #(
7033 e) if test -n "$RANLIB"; then
7034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039 IFS=$as_save_IFS
7040 case $as_dir in #(((
7041 '') as_dir=./ ;;
7042 */) ;;
7043 *) as_dir=$as_dir/ ;;
7044 esac
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7049 break 2
7050 fi
7051 done
7052 done
7053 IFS=$as_save_IFS
7054
7055 fi ;;
7056 esac
7057 fi
7058 RANLIB=$ac_cv_prog_RANLIB
7059 if test -n "$RANLIB"; then
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7061 printf "%s\n" "$RANLIB" >&6; }
7062 else
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7064 printf "%s\n" "no" >&6; }
7065 fi
7066
7067
7068 fi
7069 if test -z "$ac_cv_prog_RANLIB"; then
7070 ac_ct_RANLIB=$RANLIB
7071 # Extract the first word of "ranlib", so it can be a program name with args.
7072 set dummy ranlib; ac_word=$2
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 printf %s "checking for $ac_word... " >&6; }
7075 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else case e in #(
7079 e) if test -n "$ac_ct_RANLIB"; then
7080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 case $as_dir in #(((
7087 '') as_dir=./ ;;
7088 */) ;;
7089 *) as_dir=$as_dir/ ;;
7090 esac
7091 for ac_exec_ext in '' $ac_executable_extensions; do
7092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7093 ac_cv_prog_ac_ct_RANLIB="ranlib"
7094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101 fi ;;
7102 esac
7103 fi
7104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7105 if test -n "$ac_ct_RANLIB"; then
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7107 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7108 else
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111 fi
7112
7113 if test "x$ac_ct_RANLIB" = x; then
7114 RANLIB=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 RANLIB=$ac_ct_RANLIB
7123 fi
7124 else
7125 RANLIB="$ac_cv_prog_RANLIB"
7126 fi
7127
7128 if test -n "$ac_tool_prefix"; then
7129 for ac_prog in ar
7130 do
7131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 printf %s "checking for $ac_word... " >&6; }
7135 if test ${ac_cv_prog_AR+y}
7136 then :
7137 printf %s "(cached) " >&6
7138 else case e in #(
7139 e) if test -n "$AR"; then
7140 ac_cv_prog_AR="$AR" # Let the user override the test.
7141 else
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 case $as_dir in #(((
7147 '') as_dir=./ ;;
7148 */) ;;
7149 *) as_dir=$as_dir/ ;;
7150 esac
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7153 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7155 break 2
7156 fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi ;;
7162 esac
7163 fi
7164 AR=$ac_cv_prog_AR
7165 if test -n "$AR"; then
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7167 printf "%s\n" "$AR" >&6; }
7168 else
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 printf "%s\n" "no" >&6; }
7171 fi
7172
7173
7174 test -n "$AR" && break
7175 done
7176 fi
7177 if test -z "$AR"; then
7178 ac_ct_AR=$AR
7179 for ac_prog in ar
7180 do
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 printf %s "checking for $ac_word... " >&6; }
7185 if test ${ac_cv_prog_ac_ct_AR+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else case e in #(
7189 e) if test -n "$ac_ct_AR"; then
7190 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195 IFS=$as_save_IFS
7196 case $as_dir in #(((
7197 '') as_dir=./ ;;
7198 */) ;;
7199 *) as_dir=$as_dir/ ;;
7200 esac
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_ac_ct_AR="$ac_prog"
7204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi ;;
7212 esac
7213 fi
7214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215 if test -n "$ac_ct_AR"; then
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7217 printf "%s\n" "$ac_ct_AR" >&6; }
7218 else
7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 printf "%s\n" "no" >&6; }
7221 fi
7222
7223
7224 test -n "$ac_ct_AR" && break
7225 done
7226
7227 if test "x$ac_ct_AR" = x; then
7228 AR="false"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236 AR=$ac_ct_AR
7237 fi
7238 fi
7239
7240 : ${AR=ar}
7241
7242
7243
7244
7245
7246
7247 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7248 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7249 # higher priority because that's what people were doing historically (setting
7250 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7251 # variable obsoleted/removed.
7252
7253 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7254 lt_ar_flags=$AR_FLAGS
7255
7256
7257
7258
7259
7260
7261 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7262 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7263
7264
7265
7266
7267
7268
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7270 printf %s "checking for archiver @FILE support... " >&6; }
7271 if test ${lt_cv_ar_at_file+y}
7272 then :
7273 printf %s "(cached) " >&6
7274 else case e in #(
7275 e) lt_cv_ar_at_file=no
7276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7277 /* end confdefs.h. */
7278
7279 int
7280 main (void)
7281 {
7282
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 if ac_fn_c_try_compile "$LINENO"
7288 then :
7289 echo conftest.$ac_objext > conftest.lst
7290 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7292 (eval $lt_ar_try) 2>&5
7293 ac_status=$?
7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }
7296 if test 0 -eq "$ac_status"; then
7297 # Ensure the archiver fails upon bogus file names.
7298 rm -f conftest.$ac_objext libconftest.a
7299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7300 (eval $lt_ar_try) 2>&5
7301 ac_status=$?
7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }
7304 if test 0 -ne "$ac_status"; then
7305 lt_cv_ar_at_file=@
7306 fi
7307 fi
7308 rm -f conftest.* libconftest.a
7309
7310 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7312 ;;
7313 esac
7314 fi
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7316 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7317
7318 if test no = "$lt_cv_ar_at_file"; then
7319 archiver_list_spec=
7320 else
7321 archiver_list_spec=$lt_cv_ar_at_file
7322 fi
7323
7324
7325
7326
7327
7328
7329
7330 if test -n "$ac_tool_prefix"; then
7331 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}strip; ac_word=$2
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 printf %s "checking for $ac_word... " >&6; }
7335 if test ${ac_cv_prog_STRIP+y}
7336 then :
7337 printf %s "(cached) " >&6
7338 else case e in #(
7339 e) if test -n "$STRIP"; then
7340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7341 else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343 for as_dir in $PATH
7344 do
7345 IFS=$as_save_IFS
7346 case $as_dir in #(((
7347 '') as_dir=./ ;;
7348 */) ;;
7349 *) as_dir=$as_dir/ ;;
7350 esac
7351 for ac_exec_ext in '' $ac_executable_extensions; do
7352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7355 break 2
7356 fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7360
7361 fi ;;
7362 esac
7363 fi
7364 STRIP=$ac_cv_prog_STRIP
7365 if test -n "$STRIP"; then
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7367 printf "%s\n" "$STRIP" >&6; }
7368 else
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 printf "%s\n" "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_STRIP"; then
7376 ac_ct_STRIP=$STRIP
7377 # Extract the first word of "strip", so it can be a program name with args.
7378 set dummy strip; ac_word=$2
7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 printf %s "checking for $ac_word... " >&6; }
7381 if test ${ac_cv_prog_ac_ct_STRIP+y}
7382 then :
7383 printf %s "(cached) " >&6
7384 else case e in #(
7385 e) if test -n "$ac_ct_STRIP"; then
7386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7387 else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 for as_dir in $PATH
7390 do
7391 IFS=$as_save_IFS
7392 case $as_dir in #(((
7393 '') as_dir=./ ;;
7394 */) ;;
7395 *) as_dir=$as_dir/ ;;
7396 esac
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_ac_ct_STRIP="strip"
7400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7401 break 2
7402 fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407 fi ;;
7408 esac
7409 fi
7410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7411 if test -n "$ac_ct_STRIP"; then
7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7413 printf "%s\n" "$ac_ct_STRIP" >&6; }
7414 else
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 printf "%s\n" "no" >&6; }
7417 fi
7418
7419 if test "x$ac_ct_STRIP" = x; then
7420 STRIP=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 STRIP=$ac_ct_STRIP
7429 fi
7430 else
7431 STRIP="$ac_cv_prog_STRIP"
7432 fi
7433
7434 test -z "$STRIP" && STRIP=:
7435
7436
7437
7438
7439
7440
7441
7442 test -z "$RANLIB" && RANLIB=:
7443
7444
7445
7446
7447
7448
7449 # Determine commands to create old-style static archives.
7450 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7451 old_postinstall_cmds='chmod 644 $oldlib'
7452 old_postuninstall_cmds=
7453
7454 if test -n "$RANLIB"; then
7455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7457 fi
7458
7459 case $host_os in
7460 darwin*)
7461 lock_old_archive_extraction=yes ;;
7462 *)
7463 lock_old_archive_extraction=no ;;
7464 esac
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504 # If no C compiler was specified, use CC.
7505 LTCC=${LTCC-"$CC"}
7506
7507 # If no C compiler flags were specified, use CFLAGS.
7508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7509
7510 # Allow CC to be a program name with arguments.
7511 compiler=$CC
7512
7513
7514 # Check for command to grab the raw symbol name followed by C symbol from nm.
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7516 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7517 if test ${lt_cv_sys_global_symbol_pipe+y}
7518 then :
7519 printf %s "(cached) " >&6
7520 else case e in #(
7521 e)
7522 # These are sane defaults that work on at least a few old systems.
7523 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7524
7525 # Character class describing NM global symbol codes.
7526 symcode='[BCDEGRST]'
7527
7528 # Regexp to match symbols that can be accessed directly from C.
7529 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7530
7531 # Define system-specific variables.
7532 case $host_os in
7533 aix*)
7534 symcode='[BCDT]'
7535 ;;
7536 cygwin* | mingw* | windows* | pw32* | cegcc*)
7537 symcode='[ABCDGISTW]'
7538 ;;
7539 hpux*)
7540 if test ia64 = "$host_cpu"; then
7541 symcode='[ABCDEGRST]'
7542 fi
7543 ;;
7544 irix* | nonstopux*)
7545 symcode='[BCDEGRST]'
7546 ;;
7547 osf*)
7548 symcode='[BCDEGQRST]'
7549 ;;
7550 solaris*)
7551 symcode='[BCDRT]'
7552 ;;
7553 sco3.2v5*)
7554 symcode='[DT]'
7555 ;;
7556 sysv4.2uw2*)
7557 symcode='[DT]'
7558 ;;
7559 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7560 symcode='[ABDT]'
7561 ;;
7562 sysv4)
7563 symcode='[DFNSTU]'
7564 ;;
7565 esac
7566
7567 # If we're using GNU nm, then use its standard symbol codes.
7568 case `$NM -V 2>&1` in
7569 *GNU* | *'with BFD'*)
7570 symcode='[ABCDGIRSTW]' ;;
7571 esac
7572
7573 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7574 # Gets list of data symbols to import.
7575 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7576 # Adjust the below global symbol transforms to fixup imported variables.
7577 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7578 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7579 lt_c_name_lib_hook="\
7580 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7581 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7582 else
7583 # Disable hooks by default.
7584 lt_cv_sys_global_symbol_to_import=
7585 lt_cdecl_hook=
7586 lt_c_name_hook=
7587 lt_c_name_lib_hook=
7588 fi
7589
7590 # Transform an extracted symbol line into a proper C declaration.
7591 # Some systems (esp. on ia64) link data and code symbols differently,
7592 # so use this general approach.
7593 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7594 $lt_cdecl_hook\
7595 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7596 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7597
7598 # Transform an extracted symbol line into symbol name and symbol address
7599 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7600 $lt_c_name_hook\
7601 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7602 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7603
7604 # Transform an extracted symbol line into symbol name with lib prefix and
7605 # symbol address.
7606 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7607 $lt_c_name_lib_hook\
7608 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7609 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7610 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7611
7612 # Handle CRLF in mingw tool chain
7613 opt_cr=
7614 case $build_os in
7615 mingw* | windows*)
7616 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7617 ;;
7618 esac
7619
7620 # Try without a prefix underscore, then with it.
7621 for ac_symprfx in "" "_"; do
7622
7623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7624 symxfrm="\\1 $ac_symprfx\\2 \\2"
7625
7626 # Write the raw and C identifiers.
7627 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7628 # Fake it for dumpbin and say T for any non-static function,
7629 # D for any global variable and I for any imported variable.
7630 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7631 # which start with @ or ?.
7632 lt_cv_sys_global_symbol_pipe="$AWK '"\
7633 " {last_section=section; section=\$ 3};"\
7634 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7635 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7636 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7637 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7638 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7639 " \$ 0!~/External *\|/{next};"\
7640 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7641 " {if(hide[section]) next};"\
7642 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7643 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7644 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7645 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7646 " ' prfx=^$ac_symprfx"
7647 else
7648 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7649 fi
7650 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7651
7652 # Check to see that the pipe works correctly.
7653 pipe_works=no
7654
7655 rm -f conftest*
7656 cat > conftest.$ac_ext <<_LT_EOF
7657 #ifdef __cplusplus
7658 extern "C" {
7659 #endif
7660 char nm_test_var;
7661 void nm_test_func(void);
7662 void nm_test_func(void){}
7663 #ifdef __cplusplus
7664 }
7665 #endif
7666 int main(void){nm_test_var='a';nm_test_func();return(0);}
7667 _LT_EOF
7668
7669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7670 (eval $ac_compile) 2>&5
7671 ac_status=$?
7672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7673 test $ac_status = 0; }; then
7674 # Now try to grab the symbols.
7675 nlist=conftest.nm
7676 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7677 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7678 # Try sorting and uniquifying the output.
7679 if sort "$nlist" | uniq > "$nlist"T; then
7680 mv -f "$nlist"T "$nlist"
7681 else
7682 rm -f "$nlist"T
7683 fi
7684
7685 # Make sure that we snagged all the symbols we need.
7686 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7687 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7688 cat <<_LT_EOF > conftest.$ac_ext
7689 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7690 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7691 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7692 relocations are performed -- see ld's documentation on pseudo-relocs. */
7693 # define LT_DLSYM_CONST
7694 #elif defined __osf__
7695 /* This system does not cope well with relocations in const data. */
7696 # define LT_DLSYM_CONST
7697 #else
7698 # define LT_DLSYM_CONST const
7699 #endif
7700
7701 #ifdef __cplusplus
7702 extern "C" {
7703 #endif
7704
7705 _LT_EOF
7706 # Now generate the symbol file.
7707 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7708
7709 cat <<_LT_EOF >> conftest.$ac_ext
7710
7711 /* The mapping between symbol names and symbols. */
7712 LT_DLSYM_CONST struct {
7713 const char *name;
7714 void *address;
7715 }
7716 lt__PROGRAM__LTX_preloaded_symbols[] =
7717 {
7718 { "@PROGRAM@", (void *) 0 },
7719 _LT_EOF
7720 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7721 cat <<\_LT_EOF >> conftest.$ac_ext
7722 {0, (void *) 0}
7723 };
7724
7725 /* This works around a problem in FreeBSD linker */
7726 #ifdef FREEBSD_WORKAROUND
7727 static const void *lt_preloaded_setup() {
7728 return lt__PROGRAM__LTX_preloaded_symbols;
7729 }
7730 #endif
7731
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735 _LT_EOF
7736 # Now try linking the two files.
7737 mv conftest.$ac_objext conftstm.$ac_objext
7738 lt_globsym_save_LIBS=$LIBS
7739 lt_globsym_save_CFLAGS=$CFLAGS
7740 LIBS=conftstm.$ac_objext
7741 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7743 (eval $ac_link) 2>&5
7744 ac_status=$?
7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7747 pipe_works=yes
7748 fi
7749 LIBS=$lt_globsym_save_LIBS
7750 CFLAGS=$lt_globsym_save_CFLAGS
7751 else
7752 echo "cannot find nm_test_func in $nlist" >&5
7753 fi
7754 else
7755 echo "cannot find nm_test_var in $nlist" >&5
7756 fi
7757 else
7758 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7759 fi
7760 else
7761 echo "$progname: failed program was:" >&5
7762 cat conftest.$ac_ext >&5
7763 fi
7764 rm -rf conftest* conftst*
7765
7766 # Do not use the global_symbol_pipe unless it works.
7767 if test yes = "$pipe_works"; then
7768 break
7769 else
7770 lt_cv_sys_global_symbol_pipe=
7771 fi
7772 done
7773 ;;
7774 esac
7775 fi
7776
7777 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7778 lt_cv_sys_global_symbol_to_cdecl=
7779 fi
7780 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7782 printf "%s\n" "failed" >&6; }
7783 else
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7785 printf "%s\n" "ok" >&6; }
7786 fi
7787
7788 # Response file support.
7789 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7790 nm_file_list_spec='@'
7791 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7792 nm_file_list_spec='@'
7793 fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7832 printf %s "checking for sysroot... " >&6; }
7833
7834 # Check whether --with-sysroot was given.
7835 if test ${with_sysroot+y}
7836 then :
7837 withval=$with_sysroot;
7838 else case e in #(
7839 e) with_sysroot=no ;;
7840 esac
7841 fi
7842
7843
7844 lt_sysroot=
7845 case $with_sysroot in #(
7846 yes)
7847 if test yes = "$GCC"; then
7848 # Trim trailing / since we'll always append absolute paths and we want
7849 # to avoid //, if only for less confusing output for the user.
7850 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7851 fi
7852 ;; #(
7853 /*)
7854 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7855 ;; #(
7856 no|'')
7857 ;; #(
7858 *)
7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7860 printf "%s\n" "$with_sysroot" >&6; }
7861 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7862 ;;
7863 esac
7864
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7866 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7867
7868
7869
7870
7871
7872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7873 printf %s "checking for a working dd... " >&6; }
7874 if test ${ac_cv_path_lt_DD+y}
7875 then :
7876 printf %s "(cached) " >&6
7877 else case e in #(
7878 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7879 cat conftest.i conftest.i >conftest2.i
7880 : ${lt_DD:=$DD}
7881 if test -z "$lt_DD"; then
7882 ac_path_lt_DD_found=false
7883 # Loop through the user's path and test for each of PROGNAME-LIST
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 case $as_dir in #(((
7889 '') as_dir=./ ;;
7890 */) ;;
7891 *) as_dir=$as_dir/ ;;
7892 esac
7893 for ac_prog in dd
7894 do
7895 for ac_exec_ext in '' $ac_executable_extensions; do
7896 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7897 as_fn_executable_p "$ac_path_lt_DD" || continue
7898 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7899 cmp -s conftest.i conftest.out \
7900 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7901 fi
7902 $ac_path_lt_DD_found && break 3
7903 done
7904 done
7905 done
7906 IFS=$as_save_IFS
7907 if test -z "$ac_cv_path_lt_DD"; then
7908 :
7909 fi
7910 else
7911 ac_cv_path_lt_DD=$lt_DD
7912 fi
7913
7914 rm -f conftest.i conftest2.i conftest.out ;;
7915 esac
7916 fi
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7918 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7919
7920
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7922 printf %s "checking how to truncate binary pipes... " >&6; }
7923 if test ${lt_cv_truncate_bin+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else case e in #(
7927 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7928 cat conftest.i conftest.i >conftest2.i
7929 lt_cv_truncate_bin=
7930 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7931 cmp -s conftest.i conftest.out \
7932 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7933 fi
7934 rm -f conftest.i conftest2.i conftest.out
7935 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7936 esac
7937 fi
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7939 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7940
7941
7942
7943
7944
7945
7946
7947 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7948 func_cc_basename ()
7949 {
7950 for cc_temp in $*""; do
7951 case $cc_temp in
7952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7954 \-*) ;;
7955 *) break;;
7956 esac
7957 done
7958 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7959 }
7960
7961 # Check whether --enable-libtool-lock was given.
7962 if test ${enable_libtool_lock+y}
7963 then :
7964 enableval=$enable_libtool_lock;
7965 fi
7966
7967 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7968
7969 # Some flags need to be propagated to the compiler or linker for good
7970 # libtool support.
7971 case $host in
7972 ia64-*-hpux*)
7973 # Find out what ABI is being produced by ac_compile, and set mode
7974 # options accordingly.
7975 echo 'int i;' > conftest.$ac_ext
7976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }; then
7981 case `$FILECMD conftest.$ac_objext` in
7982 *ELF-32*)
7983 HPUX_IA64_MODE=32
7984 ;;
7985 *ELF-64*)
7986 HPUX_IA64_MODE=64
7987 ;;
7988 esac
7989 fi
7990 rm -rf conftest*
7991 ;;
7992 *-*-irix6*)
7993 # Find out what ABI is being produced by ac_compile, and set linker
7994 # options accordingly.
7995 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997 (eval $ac_compile) 2>&5
7998 ac_status=$?
7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000 test $ac_status = 0; }; then
8001 if test yes = "$lt_cv_prog_gnu_ld"; then
8002 case `$FILECMD conftest.$ac_objext` in
8003 *32-bit*)
8004 LD="${LD-ld} -melf32bsmip"
8005 ;;
8006 *N32*)
8007 LD="${LD-ld} -melf32bmipn32"
8008 ;;
8009 *64-bit*)
8010 LD="${LD-ld} -melf64bmip"
8011 ;;
8012 esac
8013 else
8014 case `$FILECMD conftest.$ac_objext` in
8015 *32-bit*)
8016 LD="${LD-ld} -32"
8017 ;;
8018 *N32*)
8019 LD="${LD-ld} -n32"
8020 ;;
8021 *64-bit*)
8022 LD="${LD-ld} -64"
8023 ;;
8024 esac
8025 fi
8026 fi
8027 rm -rf conftest*
8028 ;;
8029
8030 mips64*-*linux*)
8031 # Find out what ABI is being produced by ac_compile, and set linker
8032 # options accordingly.
8033 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8035 (eval $ac_compile) 2>&5
8036 ac_status=$?
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 emul=elf
8040 case `$FILECMD conftest.$ac_objext` in
8041 *32-bit*)
8042 emul="${emul}32"
8043 ;;
8044 *64-bit*)
8045 emul="${emul}64"
8046 ;;
8047 esac
8048 case `$FILECMD conftest.$ac_objext` in
8049 *MSB*)
8050 emul="${emul}btsmip"
8051 ;;
8052 *LSB*)
8053 emul="${emul}ltsmip"
8054 ;;
8055 esac
8056 case `$FILECMD conftest.$ac_objext` in
8057 *N32*)
8058 emul="${emul}n32"
8059 ;;
8060 esac
8061 LD="${LD-ld} -m $emul"
8062 fi
8063 rm -rf conftest*
8064 ;;
8065
8066 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8067 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8068 # Find out what ABI is being produced by ac_compile, and set linker
8069 # options accordingly. Note that the listed cases only cover the
8070 # situations where additional linker options are needed (such as when
8071 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8072 # vice versa); the common cases where no linker options are needed do
8073 # not appear in the list.
8074 echo 'int i;' > conftest.$ac_ext
8075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8076 (eval $ac_compile) 2>&5
8077 ac_status=$?
8078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8079 test $ac_status = 0; }; then
8080 case `$FILECMD conftest.o` in
8081 *32-bit*)
8082 case $host in
8083 x86_64-*kfreebsd*-gnu)
8084 LD="${LD-ld} -m elf_i386_fbsd"
8085 ;;
8086 x86_64-*linux*|x86_64-gnu*)
8087 case `$FILECMD conftest.o` in
8088 *x86-64*)
8089 LD="${LD-ld} -m elf32_x86_64"
8090 ;;
8091 *)
8092 LD="${LD-ld} -m elf_i386"
8093 ;;
8094 esac
8095 ;;
8096 powerpc64le-*linux*)
8097 LD="${LD-ld} -m elf32lppclinux"
8098 ;;
8099 powerpc64-*linux*)
8100 LD="${LD-ld} -m elf32ppclinux"
8101 ;;
8102 s390x-*linux*)
8103 LD="${LD-ld} -m elf_s390"
8104 ;;
8105 sparc64-*linux*)
8106 LD="${LD-ld} -m elf32_sparc"
8107 ;;
8108 esac
8109 ;;
8110 *64-bit*)
8111 case $host in
8112 x86_64-*kfreebsd*-gnu)
8113 LD="${LD-ld} -m elf_x86_64_fbsd"
8114 ;;
8115 x86_64-*linux*|x86_64-gnu*)
8116 LD="${LD-ld} -m elf_x86_64"
8117 ;;
8118 powerpcle-*linux*)
8119 LD="${LD-ld} -m elf64lppc"
8120 ;;
8121 powerpc-*linux*)
8122 LD="${LD-ld} -m elf64ppc"
8123 ;;
8124 s390*-*linux*|s390*-*tpf*)
8125 LD="${LD-ld} -m elf64_s390"
8126 ;;
8127 sparc*-*linux*)
8128 LD="${LD-ld} -m elf64_sparc"
8129 ;;
8130 esac
8131 ;;
8132 esac
8133 fi
8134 rm -rf conftest*
8135 ;;
8136
8137 *-*-sco3.2v5*)
8138 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8139 SAVE_CFLAGS=$CFLAGS
8140 CFLAGS="$CFLAGS -belf"
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8142 printf %s "checking whether the C compiler needs -belf... " >&6; }
8143 if test ${lt_cv_cc_needs_belf+y}
8144 then :
8145 printf %s "(cached) " >&6
8146 else case e in #(
8147 e) ac_ext=c
8148 ac_cpp='$CPP $CPPFLAGS'
8149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152
8153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154 /* end confdefs.h. */
8155
8156 int
8157 main (void)
8158 {
8159
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 if ac_fn_c_try_link "$LINENO"
8165 then :
8166 lt_cv_cc_needs_belf=yes
8167 else case e in #(
8168 e) lt_cv_cc_needs_belf=no ;;
8169 esac
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8172 conftest$ac_exeext conftest.$ac_ext
8173 ac_ext=c
8174 ac_cpp='$CPP $CPPFLAGS'
8175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178 ;;
8179 esac
8180 fi
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8182 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8183 if test yes != "$lt_cv_cc_needs_belf"; then
8184 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8185 CFLAGS=$SAVE_CFLAGS
8186 fi
8187 ;;
8188 *-*solaris*)
8189 # Find out what ABI is being produced by ac_compile, and set linker
8190 # options accordingly.
8191 echo 'int i;' > conftest.$ac_ext
8192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8193 (eval $ac_compile) 2>&5
8194 ac_status=$?
8195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8196 test $ac_status = 0; }; then
8197 case `$FILECMD conftest.o` in
8198 *64-bit*)
8199 case $lt_cv_prog_gnu_ld in
8200 yes*)
8201 case $host in
8202 i?86-*-solaris*|x86_64-*-solaris*)
8203 LD="${LD-ld} -m elf_x86_64"
8204 ;;
8205 sparc*-*-solaris*)
8206 LD="${LD-ld} -m elf64_sparc"
8207 ;;
8208 esac
8209 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8210 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8211 LD=${LD-ld}_sol2
8212 fi
8213 ;;
8214 *)
8215 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8216 LD="${LD-ld} -64"
8217 fi
8218 ;;
8219 esac
8220 ;;
8221 esac
8222 fi
8223 rm -rf conftest*
8224 ;;
8225 esac
8226
8227 need_locks=$enable_libtool_lock
8228
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}mt; ac_word=$2
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 printf %s "checking for $ac_word... " >&6; }
8234 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8235 then :
8236 printf %s "(cached) " >&6
8237 else case e in #(
8238 e) if test -n "$MANIFEST_TOOL"; then
8239 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 case $as_dir in #(((
8246 '') as_dir=./ ;;
8247 */) ;;
8248 *) as_dir=$as_dir/ ;;
8249 esac
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8252 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8254 break 2
8255 fi
8256 done
8257 done
8258 IFS=$as_save_IFS
8259
8260 fi ;;
8261 esac
8262 fi
8263 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8264 if test -n "$MANIFEST_TOOL"; then
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8266 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8267 else
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 printf "%s\n" "no" >&6; }
8270 fi
8271
8272
8273 fi
8274 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8275 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8276 # Extract the first word of "mt", so it can be a program name with args.
8277 set dummy mt; ac_word=$2
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 printf %s "checking for $ac_word... " >&6; }
8280 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8281 then :
8282 printf %s "(cached) " >&6
8283 else case e in #(
8284 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8286 else
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8289 do
8290 IFS=$as_save_IFS
8291 case $as_dir in #(((
8292 '') as_dir=./ ;;
8293 */) ;;
8294 *) as_dir=$as_dir/ ;;
8295 esac
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8298 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302 done
8303 done
8304 IFS=$as_save_IFS
8305
8306 fi ;;
8307 esac
8308 fi
8309 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8310 if test -n "$ac_ct_MANIFEST_TOOL"; then
8311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8312 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8313 else
8314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 printf "%s\n" "no" >&6; }
8316 fi
8317
8318 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8319 MANIFEST_TOOL=":"
8320 else
8321 case $cross_compiling:$ac_tool_warned in
8322 yes:)
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8324 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8325 ac_tool_warned=yes ;;
8326 esac
8327 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8328 fi
8329 else
8330 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8331 fi
8332
8333 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8335 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8336 if test ${lt_cv_path_manifest_tool+y}
8337 then :
8338 printf %s "(cached) " >&6
8339 else case e in #(
8340 e) lt_cv_path_manifest_tool=no
8341 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8342 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8343 cat conftest.err >&5
8344 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8345 lt_cv_path_manifest_tool=yes
8346 fi
8347 rm -f conftest* ;;
8348 esac
8349 fi
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8351 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8352 if test yes != "$lt_cv_path_manifest_tool"; then
8353 MANIFEST_TOOL=:
8354 fi
8355
8356
8357
8358
8359
8360
8361 case $host_os in
8362 rhapsody* | darwin*)
8363 if test -n "$ac_tool_prefix"; then
8364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8365 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 printf %s "checking for $ac_word... " >&6; }
8368 if test ${ac_cv_prog_DSYMUTIL+y}
8369 then :
8370 printf %s "(cached) " >&6
8371 else case e in #(
8372 e) if test -n "$DSYMUTIL"; then
8373 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378 IFS=$as_save_IFS
8379 case $as_dir in #(((
8380 '') as_dir=./ ;;
8381 */) ;;
8382 *) as_dir=$as_dir/ ;;
8383 esac
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8388 break 2
8389 fi
8390 done
8391 done
8392 IFS=$as_save_IFS
8393
8394 fi ;;
8395 esac
8396 fi
8397 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8398 if test -n "$DSYMUTIL"; then
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8400 printf "%s\n" "$DSYMUTIL" >&6; }
8401 else
8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 printf "%s\n" "no" >&6; }
8404 fi
8405
8406
8407 fi
8408 if test -z "$ac_cv_prog_DSYMUTIL"; then
8409 ac_ct_DSYMUTIL=$DSYMUTIL
8410 # Extract the first word of "dsymutil", so it can be a program name with args.
8411 set dummy dsymutil; ac_word=$2
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 printf %s "checking for $ac_word... " >&6; }
8414 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8415 then :
8416 printf %s "(cached) " >&6
8417 else case e in #(
8418 e) if test -n "$ac_ct_DSYMUTIL"; then
8419 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424 IFS=$as_save_IFS
8425 case $as_dir in #(((
8426 '') as_dir=./ ;;
8427 */) ;;
8428 *) as_dir=$as_dir/ ;;
8429 esac
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8432 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8434 break 2
8435 fi
8436 done
8437 done
8438 IFS=$as_save_IFS
8439
8440 fi ;;
8441 esac
8442 fi
8443 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8444 if test -n "$ac_ct_DSYMUTIL"; then
8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8446 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8447 else
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 printf "%s\n" "no" >&6; }
8450 fi
8451
8452 if test "x$ac_ct_DSYMUTIL" = x; then
8453 DSYMUTIL=":"
8454 else
8455 case $cross_compiling:$ac_tool_warned in
8456 yes:)
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8458 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8459 ac_tool_warned=yes ;;
8460 esac
8461 DSYMUTIL=$ac_ct_DSYMUTIL
8462 fi
8463 else
8464 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8465 fi
8466
8467 if test -n "$ac_tool_prefix"; then
8468 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8469 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_NMEDIT+y}
8473 then :
8474 printf %s "(cached) " >&6
8475 else case e in #(
8476 e) if test -n "$NMEDIT"; then
8477 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 case $as_dir in #(((
8484 '') as_dir=./ ;;
8485 */) ;;
8486 *) as_dir=$as_dir/ ;;
8487 esac
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494 done
8495 done
8496 IFS=$as_save_IFS
8497
8498 fi ;;
8499 esac
8500 fi
8501 NMEDIT=$ac_cv_prog_NMEDIT
8502 if test -n "$NMEDIT"; then
8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8504 printf "%s\n" "$NMEDIT" >&6; }
8505 else
8506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507 printf "%s\n" "no" >&6; }
8508 fi
8509
8510
8511 fi
8512 if test -z "$ac_cv_prog_NMEDIT"; then
8513 ac_ct_NMEDIT=$NMEDIT
8514 # Extract the first word of "nmedit", so it can be a program name with args.
8515 set dummy nmedit; ac_word=$2
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 printf %s "checking for $ac_word... " >&6; }
8518 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8519 then :
8520 printf %s "(cached) " >&6
8521 else case e in #(
8522 e) if test -n "$ac_ct_NMEDIT"; then
8523 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528 IFS=$as_save_IFS
8529 case $as_dir in #(((
8530 '') as_dir=./ ;;
8531 */) ;;
8532 *) as_dir=$as_dir/ ;;
8533 esac
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8536 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8538 break 2
8539 fi
8540 done
8541 done
8542 IFS=$as_save_IFS
8543
8544 fi ;;
8545 esac
8546 fi
8547 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8548 if test -n "$ac_ct_NMEDIT"; then
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8550 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8551 else
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 printf "%s\n" "no" >&6; }
8554 fi
8555
8556 if test "x$ac_ct_NMEDIT" = x; then
8557 NMEDIT=":"
8558 else
8559 case $cross_compiling:$ac_tool_warned in
8560 yes:)
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8563 ac_tool_warned=yes ;;
8564 esac
8565 NMEDIT=$ac_ct_NMEDIT
8566 fi
8567 else
8568 NMEDIT="$ac_cv_prog_NMEDIT"
8569 fi
8570
8571 if test -n "$ac_tool_prefix"; then
8572 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8573 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 printf %s "checking for $ac_word... " >&6; }
8576 if test ${ac_cv_prog_LIPO+y}
8577 then :
8578 printf %s "(cached) " >&6
8579 else case e in #(
8580 e) if test -n "$LIPO"; then
8581 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8582 else
8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8584 for as_dir in $PATH
8585 do
8586 IFS=$as_save_IFS
8587 case $as_dir in #(((
8588 '') as_dir=./ ;;
8589 */) ;;
8590 *) as_dir=$as_dir/ ;;
8591 esac
8592 for ac_exec_ext in '' $ac_executable_extensions; do
8593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598 done
8599 done
8600 IFS=$as_save_IFS
8601
8602 fi ;;
8603 esac
8604 fi
8605 LIPO=$ac_cv_prog_LIPO
8606 if test -n "$LIPO"; then
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8608 printf "%s\n" "$LIPO" >&6; }
8609 else
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 printf "%s\n" "no" >&6; }
8612 fi
8613
8614
8615 fi
8616 if test -z "$ac_cv_prog_LIPO"; then
8617 ac_ct_LIPO=$LIPO
8618 # Extract the first word of "lipo", so it can be a program name with args.
8619 set dummy lipo; ac_word=$2
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 printf %s "checking for $ac_word... " >&6; }
8622 if test ${ac_cv_prog_ac_ct_LIPO+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else case e in #(
8626 e) if test -n "$ac_ct_LIPO"; then
8627 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632 IFS=$as_save_IFS
8633 case $as_dir in #(((
8634 '') as_dir=./ ;;
8635 */) ;;
8636 *) as_dir=$as_dir/ ;;
8637 esac
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8640 ac_cv_prog_ac_ct_LIPO="lipo"
8641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
8644 done
8645 done
8646 IFS=$as_save_IFS
8647
8648 fi ;;
8649 esac
8650 fi
8651 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8652 if test -n "$ac_ct_LIPO"; then
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8654 printf "%s\n" "$ac_ct_LIPO" >&6; }
8655 else
8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 printf "%s\n" "no" >&6; }
8658 fi
8659
8660 if test "x$ac_ct_LIPO" = x; then
8661 LIPO=":"
8662 else
8663 case $cross_compiling:$ac_tool_warned in
8664 yes:)
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8668 esac
8669 LIPO=$ac_ct_LIPO
8670 fi
8671 else
8672 LIPO="$ac_cv_prog_LIPO"
8673 fi
8674
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}otool; ac_word=$2
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 printf %s "checking for $ac_word... " >&6; }
8680 if test ${ac_cv_prog_OTOOL+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else case e in #(
8684 e) if test -n "$OTOOL"; then
8685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 case $as_dir in #(((
8692 '') as_dir=./ ;;
8693 */) ;;
8694 *) as_dir=$as_dir/ ;;
8695 esac
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706 fi ;;
8707 esac
8708 fi
8709 OTOOL=$ac_cv_prog_OTOOL
8710 if test -n "$OTOOL"; then
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8712 printf "%s\n" "$OTOOL" >&6; }
8713 else
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 printf "%s\n" "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_OTOOL"; then
8721 ac_ct_OTOOL=$OTOOL
8722 # Extract the first word of "otool", so it can be a program name with args.
8723 set dummy otool; ac_word=$2
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 printf %s "checking for $ac_word... " >&6; }
8726 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8727 then :
8728 printf %s "(cached) " >&6
8729 else case e in #(
8730 e) if test -n "$ac_ct_OTOOL"; then
8731 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736 IFS=$as_save_IFS
8737 case $as_dir in #(((
8738 '') as_dir=./ ;;
8739 */) ;;
8740 *) as_dir=$as_dir/ ;;
8741 esac
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_ac_ct_OTOOL="otool"
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748 done
8749 done
8750 IFS=$as_save_IFS
8751
8752 fi ;;
8753 esac
8754 fi
8755 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8756 if test -n "$ac_ct_OTOOL"; then
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8758 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8759 else
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 printf "%s\n" "no" >&6; }
8762 fi
8763
8764 if test "x$ac_ct_OTOOL" = x; then
8765 OTOOL=":"
8766 else
8767 case $cross_compiling:$ac_tool_warned in
8768 yes:)
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8772 esac
8773 OTOOL=$ac_ct_OTOOL
8774 fi
8775 else
8776 OTOOL="$ac_cv_prog_OTOOL"
8777 fi
8778
8779 if test -n "$ac_tool_prefix"; then
8780 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8781 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 printf %s "checking for $ac_word... " >&6; }
8784 if test ${ac_cv_prog_OTOOL64+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else case e in #(
8788 e) if test -n "$OTOOL64"; then
8789 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8790 else
8791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 for as_dir in $PATH
8793 do
8794 IFS=$as_save_IFS
8795 case $as_dir in #(((
8796 '') as_dir=./ ;;
8797 */) ;;
8798 *) as_dir=$as_dir/ ;;
8799 esac
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8802 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8804 break 2
8805 fi
8806 done
8807 done
8808 IFS=$as_save_IFS
8809
8810 fi ;;
8811 esac
8812 fi
8813 OTOOL64=$ac_cv_prog_OTOOL64
8814 if test -n "$OTOOL64"; then
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8816 printf "%s\n" "$OTOOL64" >&6; }
8817 else
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 printf "%s\n" "no" >&6; }
8820 fi
8821
8822
8823 fi
8824 if test -z "$ac_cv_prog_OTOOL64"; then
8825 ac_ct_OTOOL64=$OTOOL64
8826 # Extract the first word of "otool64", so it can be a program name with args.
8827 set dummy otool64; ac_word=$2
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 printf %s "checking for $ac_word... " >&6; }
8830 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8831 then :
8832 printf %s "(cached) " >&6
8833 else case e in #(
8834 e) if test -n "$ac_ct_OTOOL64"; then
8835 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8836 else
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8839 do
8840 IFS=$as_save_IFS
8841 case $as_dir in #(((
8842 '') as_dir=./ ;;
8843 */) ;;
8844 *) as_dir=$as_dir/ ;;
8845 esac
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8848 ac_cv_prog_ac_ct_OTOOL64="otool64"
8849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8850 break 2
8851 fi
8852 done
8853 done
8854 IFS=$as_save_IFS
8855
8856 fi ;;
8857 esac
8858 fi
8859 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8860 if test -n "$ac_ct_OTOOL64"; then
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8862 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8863 else
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 printf "%s\n" "no" >&6; }
8866 fi
8867
8868 if test "x$ac_ct_OTOOL64" = x; then
8869 OTOOL64=":"
8870 else
8871 case $cross_compiling:$ac_tool_warned in
8872 yes:)
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8875 ac_tool_warned=yes ;;
8876 esac
8877 OTOOL64=$ac_ct_OTOOL64
8878 fi
8879 else
8880 OTOOL64="$ac_cv_prog_OTOOL64"
8881 fi
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8910 printf %s "checking for -single_module linker flag... " >&6; }
8911 if test ${lt_cv_apple_cc_single_mod+y}
8912 then :
8913 printf %s "(cached) " >&6
8914 else case e in #(
8915 e) lt_cv_apple_cc_single_mod=no
8916 if test -z "$LT_MULTI_MODULE"; then
8917 # By default we will add the -single_module flag. You can override
8918 # by either setting the environment variable LT_MULTI_MODULE
8919 # non-empty at configure time, or by adding -multi_module to the
8920 # link flags.
8921 rm -rf libconftest.dylib*
8922 echo "int foo(void){return 1;}" > conftest.c
8923 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8924 -dynamiclib -Wl,-single_module conftest.c" >&5
8925 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8926 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8927 _lt_result=$?
8928 # If there is a non-empty error log, and "single_module"
8929 # appears in it, assume the flag caused a linker warning
8930 if test -s conftest.err && $GREP single_module conftest.err; then
8931 cat conftest.err >&5
8932 # Otherwise, if the output was created with a 0 exit code from
8933 # the compiler, it worked.
8934 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8935 lt_cv_apple_cc_single_mod=yes
8936 else
8937 cat conftest.err >&5
8938 fi
8939 rm -rf libconftest.dylib*
8940 rm -f conftest.*
8941 fi ;;
8942 esac
8943 fi
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8945 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8946
8947 # Feature test to disable chained fixups since it is not
8948 # compatible with '-undefined dynamic_lookup'
8949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8950 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8951 if test ${lt_cv_support_no_fixup_chains+y}
8952 then :
8953 printf %s "(cached) " >&6
8954 else case e in #(
8955 e) save_LDFLAGS=$LDFLAGS
8956 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959
8960 int
8961 main (void)
8962 {
8963
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_c_try_link "$LINENO"
8969 then :
8970 lt_cv_support_no_fixup_chains=yes
8971 else case e in #(
8972 e) lt_cv_support_no_fixup_chains=no
8973 ;;
8974 esac
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LDFLAGS=$save_LDFLAGS
8979
8980 ;;
8981 esac
8982 fi
8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8984 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8985
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8987 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8988 if test ${lt_cv_ld_exported_symbols_list+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else case e in #(
8992 e) lt_cv_ld_exported_symbols_list=no
8993 save_LDFLAGS=$LDFLAGS
8994 echo "_main" > conftest.sym
8995 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998
8999 int
9000 main (void)
9001 {
9002
9003 ;
9004 return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_link "$LINENO"
9008 then :
9009 lt_cv_ld_exported_symbols_list=yes
9010 else case e in #(
9011 e) lt_cv_ld_exported_symbols_list=no ;;
9012 esac
9013 fi
9014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9015 conftest$ac_exeext conftest.$ac_ext
9016 LDFLAGS=$save_LDFLAGS
9017 ;;
9018 esac
9019 fi
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9021 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9022
9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9024 printf %s "checking for -force_load linker flag... " >&6; }
9025 if test ${lt_cv_ld_force_load+y}
9026 then :
9027 printf %s "(cached) " >&6
9028 else case e in #(
9029 e) lt_cv_ld_force_load=no
9030 cat > conftest.c << _LT_EOF
9031 int forced_loaded() { return 2;}
9032 _LT_EOF
9033 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9034 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9035 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9036 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9037 echo "$RANLIB libconftest.a" >&5
9038 $RANLIB libconftest.a 2>&5
9039 cat > conftest.c << _LT_EOF
9040 int main(void) { return 0;}
9041 _LT_EOF
9042 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9043 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9044 _lt_result=$?
9045 if test -s conftest.err && $GREP force_load conftest.err; then
9046 cat conftest.err >&5
9047 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9048 lt_cv_ld_force_load=yes
9049 else
9050 cat conftest.err >&5
9051 fi
9052 rm -f conftest.err libconftest.a conftest conftest.c
9053 rm -rf conftest.dSYM
9054 ;;
9055 esac
9056 fi
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9058 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9059 case $host_os in
9060 rhapsody* | darwin1.[012])
9061 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9062 darwin1.*)
9063 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9064 darwin*)
9065 case $MACOSX_DEPLOYMENT_TARGET,$host in
9066 10.[012],*|,*powerpc*-darwin[5-8]*)
9067 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9068 *)
9069 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9070 if test yes = "$lt_cv_support_no_fixup_chains"; then
9071 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9072 fi
9073 ;;
9074 esac
9075 ;;
9076 esac
9077 if test yes = "$lt_cv_apple_cc_single_mod"; then
9078 _lt_dar_single_mod='$single_module'
9079 fi
9080 _lt_dar_needs_single_mod=no
9081 case $host_os in
9082 rhapsody* | darwin1.*)
9083 _lt_dar_needs_single_mod=yes ;;
9084 darwin*)
9085 # When targeting Mac OS X 10.4 (darwin 8) or later,
9086 # -single_module is the default and -multi_module is unsupported.
9087 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9088 # target any OS version that needs -single_module.
9089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9090 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9091 _lt_dar_needs_single_mod=yes ;;
9092 esac
9093 ;;
9094 esac
9095 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9096 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9097 else
9098 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9099 fi
9100 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9101 _lt_dsymutil='~$DSYMUTIL $lib || :'
9102 else
9103 _lt_dsymutil=
9104 fi
9105 ;;
9106 esac
9107
9108 # func_munge_path_list VARIABLE PATH
9109 # -----------------------------------
9110 # VARIABLE is name of variable containing _space_ separated list of
9111 # directories to be munged by the contents of PATH, which is string
9112 # having a format:
9113 # "DIR[:DIR]:"
9114 # string "DIR[ DIR]" will be prepended to VARIABLE
9115 # ":DIR[:DIR]"
9116 # string "DIR[ DIR]" will be appended to VARIABLE
9117 # "DIRP[:DIRP]::[DIRA:]DIRA"
9118 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9119 # "DIRA[ DIRA]" will be appended to VARIABLE
9120 # "DIR[:DIR]"
9121 # VARIABLE will be replaced by "DIR[ DIR]"
9122 func_munge_path_list ()
9123 {
9124 case x$2 in
9125 x)
9126 ;;
9127 *:)
9128 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9129 ;;
9130 x:*)
9131 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9132 ;;
9133 *::*)
9134 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9135 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9136 ;;
9137 *)
9138 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9139 ;;
9140 esac
9141 }
9142
9143 ac_header= ac_cache=
9144 for ac_item in $ac_header_c_list
9145 do
9146 if test $ac_cache; then
9147 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9148 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9149 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9150 fi
9151 ac_header= ac_cache=
9152 elif test $ac_header; then
9153 ac_cache=$ac_item
9154 else
9155 ac_header=$ac_item
9156 fi
9157 done
9158
9159
9160
9161
9162
9163
9164
9165
9166 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9167 then :
9168
9169 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9170
9171 fi
9172 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9173 "
9174 if test "x$ac_cv_header_dlfcn_h" = xyes
9175 then :
9176 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9177
9178 fi
9179
9180
9181
9182
9183
9184 # Set options
9185
9186
9187
9188 enable_dlopen=no
9189
9190
9191 enable_win32_dll=no
9192
9193
9194 # Check whether --enable-shared was given.
9195 if test ${enable_shared+y}
9196 then :
9197 enableval=$enable_shared; p=${PACKAGE-default}
9198 case $enableval in
9199 yes) enable_shared=yes ;;
9200 no) enable_shared=no ;;
9201 *)
9202 enable_shared=no
9203 # Look at the argument we got. We use all the common list separators.
9204 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9205 for pkg in $enableval; do
9206 IFS=$lt_save_ifs
9207 if test "X$pkg" = "X$p"; then
9208 enable_shared=yes
9209 fi
9210 done
9211 IFS=$lt_save_ifs
9212 ;;
9213 esac
9214 else case e in #(
9215 e) enable_shared=yes ;;
9216 esac
9217 fi
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227 # Check whether --enable-static was given.
9228 if test ${enable_static+y}
9229 then :
9230 enableval=$enable_static; p=${PACKAGE-default}
9231 case $enableval in
9232 yes) enable_static=yes ;;
9233 no) enable_static=no ;;
9234 *)
9235 enable_static=no
9236 # Look at the argument we got. We use all the common list separators.
9237 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9238 for pkg in $enableval; do
9239 IFS=$lt_save_ifs
9240 if test "X$pkg" = "X$p"; then
9241 enable_static=yes
9242 fi
9243 done
9244 IFS=$lt_save_ifs
9245 ;;
9246 esac
9247 else case e in #(
9248 e) enable_static=yes ;;
9249 esac
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260 # Check whether --enable-pic was given.
9261 if test ${enable_pic+y}
9262 then :
9263 enableval=$enable_pic; lt_p=${PACKAGE-default}
9264 case $enableval in
9265 yes|no) pic_mode=$enableval ;;
9266 *)
9267 pic_mode=default
9268 # Look at the argument we got. We use all the common list separators.
9269 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9270 for lt_pkg in $enableval; do
9271 IFS=$lt_save_ifs
9272 if test "X$lt_pkg" = "X$lt_p"; then
9273 pic_mode=yes
9274 fi
9275 done
9276 IFS=$lt_save_ifs
9277 ;;
9278 esac
9279 else case e in #(
9280 e) # Check whether --with-pic was given.
9281 if test ${with_pic+y}
9282 then :
9283 withval=$with_pic; lt_p=${PACKAGE-default}
9284 case $withval in
9285 yes|no) pic_mode=$withval ;;
9286 *)
9287 pic_mode=default
9288 # Look at the argument we got. We use all the common list separators.
9289 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9290 for lt_pkg in $withval; do
9291 IFS=$lt_save_ifs
9292 if test "X$lt_pkg" = "X$lt_p"; then
9293 pic_mode=yes
9294 fi
9295 done
9296 IFS=$lt_save_ifs
9297 ;;
9298 esac
9299 else case e in #(
9300 e) pic_mode=default ;;
9301 esac
9302 fi
9303
9304 ;;
9305 esac
9306 fi
9307
9308
9309
9310
9311
9312
9313
9314
9315 stdlibflag=-nostdlib
9316 # Check whether --enable-cxx-stdlib was given.
9317 if test ${enable_cxx_stdlib+y}
9318 then :
9319 enableval=$enable_cxx_stdlib; p=${PACKAGE-default}
9320 case $enableval in
9321 yes) enable_cxx_stdlib=yes ;;
9322 no) enable_cxx_stdlib=no ;;
9323 *)
9324 enable_cxx_stdlib=no
9325 # Look at the argument we got. We use all the common list separators.
9326 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9327 for pkg in $enableval; do
9328 IFS=$lt_save_ifs
9329 if test "X$pkg" = "X$p"; then
9330 enable_cxx_stdlib=yes
9331 fi
9332 done
9333 IFS=$lt_save_ifs
9334 ;;
9335 esac
9336 else case e in #(
9337 e) enable_cxx_stdlib=no ;;
9338 esac
9339 fi
9340
9341
9342 if test yes = "$enable_cxx_stdlib"; then
9343 stdlibflag=
9344 fi
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356 # Check whether --enable-fast-install was given.
9357 if test ${enable_fast_install+y}
9358 then :
9359 enableval=$enable_fast_install; p=${PACKAGE-default}
9360 case $enableval in
9361 yes) enable_fast_install=yes ;;
9362 no) enable_fast_install=no ;;
9363 *)
9364 enable_fast_install=no
9365 # Look at the argument we got. We use all the common list separators.
9366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9367 for pkg in $enableval; do
9368 IFS=$lt_save_ifs
9369 if test "X$pkg" = "X$p"; then
9370 enable_fast_install=yes
9371 fi
9372 done
9373 IFS=$lt_save_ifs
9374 ;;
9375 esac
9376 else case e in #(
9377 e) enable_fast_install=yes ;;
9378 esac
9379 fi
9380
9381
9382
9383
9384
9385
9386
9387
9388 shared_archive_member_spec=
9389 case $host,$enable_shared in
9390 power*-*-aix[5-9]*,yes)
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9392 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9393 # Check whether --enable-aix-soname was given.
9394 if test ${enable_aix_soname+y}
9395 then :
9396 enableval=$enable_aix_soname; case $enableval in
9397 aix|svr4|both)
9398 ;;
9399 *)
9400 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9401 ;;
9402 esac
9403 lt_cv_with_aix_soname=$enable_aix_soname
9404 else case e in #(
9405 e) # Check whether --with-aix-soname was given.
9406 if test ${with_aix_soname+y}
9407 then :
9408 withval=$with_aix_soname; case $withval in
9409 aix|svr4|both)
9410 ;;
9411 *)
9412 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9413 ;;
9414 esac
9415 lt_cv_with_aix_soname=$with_aix_soname
9416 else case e in #(
9417 e) if test ${lt_cv_with_aix_soname+y}
9418 then :
9419 printf %s "(cached) " >&6
9420 else case e in #(
9421 e) lt_cv_with_aix_soname=aix ;;
9422 esac
9423 fi
9424 ;;
9425 esac
9426 fi
9427
9428 enable_aix_soname=$lt_cv_with_aix_soname ;;
9429 esac
9430 fi
9431
9432 with_aix_soname=$enable_aix_soname
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9434 printf "%s\n" "$with_aix_soname" >&6; }
9435 if test aix != "$with_aix_soname"; then
9436 # For the AIX way of multilib, we name the shared archive member
9437 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9438 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9439 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9440 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9441 if test 64 = "${OBJECT_MODE-32}"; then
9442 shared_archive_member_spec=shr_64
9443 else
9444 shared_archive_member_spec=shr
9445 fi
9446 fi
9447 ;;
9448 *)
9449 with_aix_soname=aix
9450 ;;
9451 esac
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462 # This can be used to rebuild libtool when needed
9463 LIBTOOL_DEPS=$ltmain
9464
9465 # Always use our own libtool.
9466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497 test -z "$LN_S" && LN_S="ln -s"
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 if test -n "${ZSH_VERSION+set}"; then
9513 setopt NO_GLOB_SUBST
9514 fi
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9517 printf %s "checking for objdir... " >&6; }
9518 if test ${lt_cv_objdir+y}
9519 then :
9520 printf %s "(cached) " >&6
9521 else case e in #(
9522 e) rm -f .libs 2>/dev/null
9523 mkdir .libs 2>/dev/null
9524 if test -d .libs; then
9525 lt_cv_objdir=.libs
9526 else
9527 # MS-DOS does not allow filenames that begin with a dot.
9528 lt_cv_objdir=_libs
9529 fi
9530 rmdir .libs 2>/dev/null ;;
9531 esac
9532 fi
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9534 printf "%s\n" "$lt_cv_objdir" >&6; }
9535 objdir=$lt_cv_objdir
9536
9537
9538
9539
9540
9541 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9542
9543
9544
9545
9546 case $host_os in
9547 aix3*)
9548 # AIX sometimes has problems with the GCC collect2 program. For some
9549 # reason, if we set the COLLECT_NAMES environment variable, the problems
9550 # vanish in a puff of smoke.
9551 if test set != "${COLLECT_NAMES+set}"; then
9552 COLLECT_NAMES=
9553 export COLLECT_NAMES
9554 fi
9555 ;;
9556 esac
9557
9558 # Global variables:
9559 ofile=libtool
9560 can_build_shared=yes
9561
9562 # All known linkers require a '.a' archive for static linking (except MSVC and
9563 # ICC, which need '.lib').
9564 libext=a
9565
9566 with_gnu_ld=$lt_cv_prog_gnu_ld
9567
9568 old_CC=$CC
9569 old_CFLAGS=$CFLAGS
9570
9571 # Set sane defaults for various variables
9572 test -z "$CC" && CC=cc
9573 test -z "$LTCC" && LTCC=$CC
9574 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9575 test -z "$LD" && LD=ld
9576 test -z "$ac_objext" && ac_objext=o
9577
9578 func_cc_basename $compiler
9579 cc_basename=$func_cc_basename_result
9580
9581
9582 # Only perform the check for file, if the check method requires it
9583 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9584 case $deplibs_check_method in
9585 file_magic*)
9586 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9588 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9589 if test ${lt_cv_path_MAGIC_CMD+y}
9590 then :
9591 printf %s "(cached) " >&6
9592 else case e in #(
9593 e) case $MAGIC_CMD in
9594 [\\/*] | ?:[\\/]*)
9595 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9596 ;;
9597 *)
9598 lt_save_MAGIC_CMD=$MAGIC_CMD
9599 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9601 for ac_dir in $ac_dummy; do
9602 IFS=$lt_save_ifs
9603 test -z "$ac_dir" && ac_dir=.
9604 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9605 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9606 if test -n "$file_magic_test_file"; then
9607 case $deplibs_check_method in
9608 "file_magic "*)
9609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9610 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9612 $EGREP "$file_magic_regex" > /dev/null; then
9613 :
9614 else
9615 cat <<_LT_EOF 1>&2
9616
9617 *** Warning: the command libtool uses to detect shared libraries,
9618 *** $file_magic_cmd, produces output that libtool cannot recognize.
9619 *** The result is that libtool may fail to recognize shared libraries
9620 *** as such. This will affect the creation of libtool libraries that
9621 *** depend on shared libraries, but programs linked with such libtool
9622 *** libraries will work regardless of this problem. Nevertheless, you
9623 *** may want to report the problem to your system manager and/or to
9624 *** [email protected]
9625
9626 _LT_EOF
9627 fi ;;
9628 esac
9629 fi
9630 break
9631 fi
9632 done
9633 IFS=$lt_save_ifs
9634 MAGIC_CMD=$lt_save_MAGIC_CMD
9635 ;;
9636 esac ;;
9637 esac
9638 fi
9639
9640 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9641 if test -n "$MAGIC_CMD"; then
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9643 printf "%s\n" "$MAGIC_CMD" >&6; }
9644 else
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 printf "%s\n" "no" >&6; }
9647 fi
9648
9649
9650
9651
9652
9653 if test -z "$lt_cv_path_MAGIC_CMD"; then
9654 if test -n "$ac_tool_prefix"; then
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9656 printf %s "checking for file... " >&6; }
9657 if test ${lt_cv_path_MAGIC_CMD+y}
9658 then :
9659 printf %s "(cached) " >&6
9660 else case e in #(
9661 e) case $MAGIC_CMD in
9662 [\\/*] | ?:[\\/]*)
9663 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9664 ;;
9665 *)
9666 lt_save_MAGIC_CMD=$MAGIC_CMD
9667 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9669 for ac_dir in $ac_dummy; do
9670 IFS=$lt_save_ifs
9671 test -z "$ac_dir" && ac_dir=.
9672 if test -f "$ac_dir/file"; then
9673 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9674 if test -n "$file_magic_test_file"; then
9675 case $deplibs_check_method in
9676 "file_magic "*)
9677 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9678 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9680 $EGREP "$file_magic_regex" > /dev/null; then
9681 :
9682 else
9683 cat <<_LT_EOF 1>&2
9684
9685 *** Warning: the command libtool uses to detect shared libraries,
9686 *** $file_magic_cmd, produces output that libtool cannot recognize.
9687 *** The result is that libtool may fail to recognize shared libraries
9688 *** as such. This will affect the creation of libtool libraries that
9689 *** depend on shared libraries, but programs linked with such libtool
9690 *** libraries will work regardless of this problem. Nevertheless, you
9691 *** may want to report the problem to your system manager and/or to
9692 *** [email protected]
9693
9694 _LT_EOF
9695 fi ;;
9696 esac
9697 fi
9698 break
9699 fi
9700 done
9701 IFS=$lt_save_ifs
9702 MAGIC_CMD=$lt_save_MAGIC_CMD
9703 ;;
9704 esac ;;
9705 esac
9706 fi
9707
9708 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9709 if test -n "$MAGIC_CMD"; then
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9711 printf "%s\n" "$MAGIC_CMD" >&6; }
9712 else
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 printf "%s\n" "no" >&6; }
9715 fi
9716
9717
9718 else
9719 MAGIC_CMD=:
9720 fi
9721 fi
9722
9723 fi
9724 ;;
9725 esac
9726
9727 # Use C for the default configuration in the libtool script
9728
9729 lt_save_CC=$CC
9730 ac_ext=c
9731 ac_cpp='$CPP $CPPFLAGS'
9732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9735
9736
9737 # Source file extension for C test sources.
9738 ac_ext=c
9739
9740 # Object file extension for compiled C test sources.
9741 objext=o
9742 objext=$objext
9743
9744 # Code to be used in simple compile tests
9745 lt_simple_compile_test_code="int some_variable = 0;"
9746
9747 # Code to be used in simple link tests
9748 lt_simple_link_test_code='int main(void){return(0);}'
9749
9750
9751
9752
9753
9754
9755
9756 # If no C compiler was specified, use CC.
9757 LTCC=${LTCC-"$CC"}
9758
9759 # If no C compiler flags were specified, use CFLAGS.
9760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9761
9762 # Allow CC to be a program name with arguments.
9763 compiler=$CC
9764
9765 # Save the default compiler, since it gets overwritten when the other
9766 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9767 compiler_DEFAULT=$CC
9768
9769 # save warnings/boilerplate of simple test code
9770 ac_outfile=conftest.$ac_objext
9771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9773 _lt_compiler_boilerplate=`cat conftest.err`
9774 $RM conftest*
9775
9776 ac_outfile=conftest.$ac_objext
9777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9779 _lt_linker_boilerplate=`cat conftest.err`
9780 $RM -r conftest*
9781
9782
9783 ## CAVEAT EMPTOR:
9784 ## There is no encapsulation within the following macros, do not change
9785 ## the running order or otherwise move them around unless you know exactly
9786 ## what you are doing...
9787 if test -n "$compiler"; then
9788
9789 lt_prog_compiler_no_builtin_flag=
9790
9791 if test yes = "$GCC"; then
9792 case $cc_basename in
9793 nvcc*)
9794 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9795 *)
9796 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9797 esac
9798
9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9800 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9801 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9802 then :
9803 printf %s "(cached) " >&6
9804 else case e in #(
9805 e) lt_cv_prog_compiler_rtti_exceptions=no
9806 ac_outfile=conftest.$ac_objext
9807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9808 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9809 # Insert the option either (1) after the last *FLAGS variable, or
9810 # (2) before a word containing "conftest.", or (3) at the end.
9811 # Note that $ac_compile itself does not contain backslashes and begins
9812 # with a dollar sign (not a hyphen), so the echo should work correctly.
9813 # The option is referenced via a variable to avoid confusing sed.
9814 lt_compile=`echo "$ac_compile" | $SED \
9815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9817 -e 's:$: $lt_compiler_flag:'`
9818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9819 (eval "$lt_compile" 2>conftest.err)
9820 ac_status=$?
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 if (exit $ac_status) && test -s "$ac_outfile"; then
9824 # The compiler can only warn and ignore the option if not recognized
9825 # So say no if there are warnings other than the usual output.
9826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9829 lt_cv_prog_compiler_rtti_exceptions=yes
9830 fi
9831 fi
9832 $RM conftest*
9833 ;;
9834 esac
9835 fi
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9837 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9838
9839 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9841 else
9842 :
9843 fi
9844
9845 fi
9846
9847
9848
9849
9850
9851
9852 lt_prog_compiler_wl=
9853 lt_prog_compiler_pic=
9854 lt_prog_compiler_static=
9855
9856
9857 if test yes = "$GCC"; then
9858 lt_prog_compiler_wl='-Wl,'
9859 lt_prog_compiler_static='-static'
9860
9861 case $host_os in
9862 aix*)
9863 # All AIX code is PIC.
9864 if test ia64 = "$host_cpu"; then
9865 # AIX 5 now supports IA64 processor
9866 lt_prog_compiler_static='-Bstatic'
9867 fi
9868 lt_prog_compiler_pic='-fPIC'
9869 ;;
9870
9871 amigaos*)
9872 case $host_cpu in
9873 powerpc)
9874 # see comment about AmigaOS4 .so support
9875 lt_prog_compiler_pic='-fPIC'
9876 ;;
9877 m68k)
9878 # FIXME: we need at least 68020 code to build shared libraries, but
9879 # adding the '-m68020' flag to GCC prevents building anything better,
9880 # like '-m68040'.
9881 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9882 ;;
9883 esac
9884 ;;
9885
9886 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9887 # PIC is the default for these OSes.
9888 ;;
9889
9890 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9891 # This hack is so that the source file can tell whether it is being
9892 # built for inclusion in a dll (and should export symbols for example).
9893 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9894 # (--disable-auto-import) libraries
9895 lt_prog_compiler_pic='-DDLL_EXPORT'
9896 case $host_os in
9897 os2*)
9898 lt_prog_compiler_static='$wl-static'
9899 ;;
9900 esac
9901 ;;
9902
9903 darwin* | rhapsody*)
9904 # PIC is the default on this platform
9905 # Common symbols not allowed in MH_DYLIB files
9906 lt_prog_compiler_pic='-fno-common'
9907 ;;
9908
9909 haiku*)
9910 # PIC is the default for Haiku.
9911 # The "-static" flag exists, but is broken.
9912 lt_prog_compiler_static=
9913 ;;
9914
9915 hpux*)
9916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9918 # sets the default TLS model and affects inlining.
9919 case $host_cpu in
9920 hppa*64*)
9921 # +Z the default
9922 ;;
9923 *)
9924 lt_prog_compiler_pic='-fPIC'
9925 ;;
9926 esac
9927 ;;
9928
9929 interix[3-9]*)
9930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9931 # Instead, we relocate shared libraries at runtime.
9932 ;;
9933
9934 msdosdjgpp*)
9935 # Just because we use GCC doesn't mean we suddenly get shared libraries
9936 # on systems that don't support them.
9937 lt_prog_compiler_can_build_shared=no
9938 enable_shared=no
9939 ;;
9940
9941 *nto* | *qnx*)
9942 # QNX uses GNU C++, but need to define -shared option too, otherwise
9943 # it will coredump.
9944 lt_prog_compiler_pic='-fPIC -shared'
9945 ;;
9946
9947 sysv4*MP*)
9948 if test -d /usr/nec; then
9949 lt_prog_compiler_pic=-Kconform_pic
9950 fi
9951 ;;
9952
9953 *)
9954 lt_prog_compiler_pic='-fPIC'
9955 ;;
9956 esac
9957
9958 case $cc_basename in
9959 nvcc*) # Cuda Compiler Driver 2.2
9960 lt_prog_compiler_wl='-Xlinker '
9961 if test -n "$lt_prog_compiler_pic"; then
9962 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9963 fi
9964 ;;
9965 esac
9966 else
9967 # PORTME Check for flag to pass linker flags through the system compiler.
9968 case $host_os in
9969 aix*)
9970 lt_prog_compiler_wl='-Wl,'
9971 if test ia64 = "$host_cpu"; then
9972 # AIX 5 now supports IA64 processor
9973 lt_prog_compiler_static='-Bstatic'
9974 else
9975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9976 fi
9977 ;;
9978
9979 darwin* | rhapsody*)
9980 # PIC is the default on this platform
9981 # Common symbols not allowed in MH_DYLIB files
9982 lt_prog_compiler_pic='-fno-common'
9983 case $cc_basename in
9984 nagfor*)
9985 # NAG Fortran compiler
9986 lt_prog_compiler_wl='-Wl,-Wl,,'
9987 lt_prog_compiler_pic='-PIC'
9988 lt_prog_compiler_static='-Bstatic'
9989 ;;
9990 esac
9991 ;;
9992
9993 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9994 # This hack is so that the source file can tell whether it is being
9995 # built for inclusion in a dll (and should export symbols for example).
9996 lt_prog_compiler_pic='-DDLL_EXPORT'
9997 case $host_os in
9998 os2*)
9999 lt_prog_compiler_static='$wl-static'
10000 ;;
10001 esac
10002 ;;
10003
10004 hpux9* | hpux10* | hpux11*)
10005 lt_prog_compiler_wl='-Wl,'
10006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10007 # not for PA HP-UX.
10008 case $host_cpu in
10009 hppa*64*|ia64*)
10010 # +Z the default
10011 ;;
10012 *)
10013 lt_prog_compiler_pic='+Z'
10014 ;;
10015 esac
10016 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10017 lt_prog_compiler_static='$wl-a ${wl}archive'
10018 ;;
10019
10020 irix5* | irix6* | nonstopux*)
10021 lt_prog_compiler_wl='-Wl,'
10022 # PIC (with -KPIC) is the default.
10023 lt_prog_compiler_static='-non_shared'
10024 ;;
10025
10026 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10027 case $cc_basename in
10028 # old Intel for x86_64, which still supported -KPIC.
10029 ecc*)
10030 lt_prog_compiler_wl='-Wl,'
10031 lt_prog_compiler_pic='-KPIC'
10032 lt_prog_compiler_static='-static'
10033 ;;
10034 *flang* | ftn | f18* | f95*)
10035 # Flang compiler.
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_pic='-fPIC'
10038 lt_prog_compiler_static='-static'
10039 ;;
10040 # flang / f18. f95 an alias for gfortran or flang on Debian
10041 flang* | f18* | f95*)
10042 lt_prog_compiler_wl='-Wl,'
10043 lt_prog_compiler_pic='-fPIC'
10044 lt_prog_compiler_static='-static'
10045 ;;
10046 # icc used to be incompatible with GCC.
10047 # ICC 10 doesn't accept -KPIC any more.
10048 icc* | ifort*)
10049 lt_prog_compiler_wl='-Wl,'
10050 lt_prog_compiler_pic='-fPIC'
10051 lt_prog_compiler_static='-static'
10052 ;;
10053 # Lahey Fortran 8.1.
10054 lf95*)
10055 lt_prog_compiler_wl='-Wl,'
10056 lt_prog_compiler_pic='--shared'
10057 lt_prog_compiler_static='--static'
10058 ;;
10059 nagfor*)
10060 # NAG Fortran compiler
10061 lt_prog_compiler_wl='-Wl,-Wl,,'
10062 lt_prog_compiler_pic='-PIC'
10063 lt_prog_compiler_static='-Bstatic'
10064 ;;
10065 tcc*)
10066 # Fabrice Bellard et al's Tiny C Compiler
10067 lt_prog_compiler_wl='-Wl,'
10068 lt_prog_compiler_pic='-fPIC'
10069 lt_prog_compiler_static='-static'
10070 ;;
10071 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10072 # Portland Group compilers (*not* the Pentium gcc compiler,
10073 # which looks to be a dead project)
10074 lt_prog_compiler_wl='-Wl,'
10075 lt_prog_compiler_pic='-fpic'
10076 lt_prog_compiler_static='-Bstatic'
10077 ;;
10078 ccc*)
10079 lt_prog_compiler_wl='-Wl,'
10080 # All Alpha code is PIC.
10081 lt_prog_compiler_static='-non_shared'
10082 ;;
10083 xl* | bgxl* | bgf* | mpixl*)
10084 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10085 lt_prog_compiler_wl='-Wl,'
10086 lt_prog_compiler_pic='-qpic'
10087 lt_prog_compiler_static='-qstaticlink'
10088 ;;
10089 *)
10090 case `$CC -V 2>&1 | $SED 5q` in
10091 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10092 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10093 lt_prog_compiler_pic='-KPIC'
10094 lt_prog_compiler_static='-Bstatic'
10095 lt_prog_compiler_wl=''
10096 ;;
10097 *Sun\ F* | *Sun*Fortran*)
10098 lt_prog_compiler_pic='-KPIC'
10099 lt_prog_compiler_static='-Bstatic'
10100 lt_prog_compiler_wl='-Qoption ld '
10101 ;;
10102 *Sun\ C*)
10103 # Sun C 5.9
10104 lt_prog_compiler_pic='-KPIC'
10105 lt_prog_compiler_static='-Bstatic'
10106 lt_prog_compiler_wl='-Wl,'
10107 ;;
10108 *Intel*\ [CF]*Compiler*)
10109 lt_prog_compiler_wl='-Wl,'
10110 lt_prog_compiler_pic='-fPIC'
10111 lt_prog_compiler_static='-static'
10112 ;;
10113 *Portland\ Group*)
10114 lt_prog_compiler_wl='-Wl,'
10115 lt_prog_compiler_pic='-fpic'
10116 lt_prog_compiler_static='-Bstatic'
10117 ;;
10118 esac
10119 ;;
10120 esac
10121 ;;
10122
10123 newsos6)
10124 lt_prog_compiler_pic='-KPIC'
10125 lt_prog_compiler_static='-Bstatic'
10126 ;;
10127
10128 *-mlibc)
10129 lt_prog_compiler_wl='-Wl,'
10130 lt_prog_compiler_pic='-fPIC'
10131 lt_prog_compiler_static='-static'
10132 ;;
10133
10134 *nto* | *qnx*)
10135 # QNX uses GNU C++, but need to define -shared option too, otherwise
10136 # it will coredump.
10137 lt_prog_compiler_pic='-fPIC -shared'
10138 ;;
10139
10140 osf3* | osf4* | osf5*)
10141 lt_prog_compiler_wl='-Wl,'
10142 # All OSF/1 code is PIC.
10143 lt_prog_compiler_static='-non_shared'
10144 ;;
10145
10146 rdos*)
10147 lt_prog_compiler_static='-non_shared'
10148 ;;
10149
10150 serenity*)
10151 ;;
10152
10153 solaris*)
10154 lt_prog_compiler_pic='-KPIC'
10155 lt_prog_compiler_static='-Bstatic'
10156 case $cc_basename in
10157 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10158 lt_prog_compiler_wl='-Qoption ld ';;
10159 *)
10160 lt_prog_compiler_wl='-Wl,';;
10161 esac
10162 ;;
10163
10164 sunos4*)
10165 lt_prog_compiler_wl='-Qoption ld '
10166 lt_prog_compiler_pic='-PIC'
10167 lt_prog_compiler_static='-Bstatic'
10168 ;;
10169
10170 sysv4 | sysv4.2uw2* | sysv4.3*)
10171 lt_prog_compiler_wl='-Wl,'
10172 lt_prog_compiler_pic='-KPIC'
10173 lt_prog_compiler_static='-Bstatic'
10174 ;;
10175
10176 sysv4*MP*)
10177 if test -d /usr/nec; then
10178 lt_prog_compiler_pic='-Kconform_pic'
10179 lt_prog_compiler_static='-Bstatic'
10180 fi
10181 ;;
10182
10183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10184 lt_prog_compiler_wl='-Wl,'
10185 lt_prog_compiler_pic='-KPIC'
10186 lt_prog_compiler_static='-Bstatic'
10187 ;;
10188
10189 unicos*)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_can_build_shared=no
10192 ;;
10193
10194 uts4*)
10195 lt_prog_compiler_pic='-pic'
10196 lt_prog_compiler_static='-Bstatic'
10197 ;;
10198
10199 *)
10200 lt_prog_compiler_can_build_shared=no
10201 ;;
10202 esac
10203 fi
10204
10205 case $host_os in
10206 # For platforms that do not support PIC, -DPIC is meaningless:
10207 *djgpp*)
10208 lt_prog_compiler_pic=
10209 ;;
10210 *)
10211 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10212 ;;
10213 esac
10214
10215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10216 printf %s "checking for $compiler option to produce PIC... " >&6; }
10217 if test ${lt_cv_prog_compiler_pic+y}
10218 then :
10219 printf %s "(cached) " >&6
10220 else case e in #(
10221 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10222 esac
10223 fi
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10225 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10226 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10227
10228 #
10229 # Check to make sure the PIC flag actually works.
10230 #
10231 if test -n "$lt_prog_compiler_pic"; then
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10233 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10234 if test ${lt_cv_prog_compiler_pic_works+y}
10235 then :
10236 printf %s "(cached) " >&6
10237 else case e in #(
10238 e) lt_cv_prog_compiler_pic_works=no
10239 ac_outfile=conftest.$ac_objext
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10242 # Insert the option either (1) after the last *FLAGS variable, or
10243 # (2) before a word containing "conftest.", or (3) at the end.
10244 # Note that $ac_compile itself does not contain backslashes and begins
10245 # with a dollar sign (not a hyphen), so the echo should work correctly.
10246 # The option is referenced via a variable to avoid confusing sed.
10247 lt_compile=`echo "$ac_compile" | $SED \
10248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10250 -e 's:$: $lt_compiler_flag:'`
10251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10252 (eval "$lt_compile" 2>conftest.err)
10253 ac_status=$?
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 if (exit $ac_status) && test -s "$ac_outfile"; then
10257 # The compiler can only warn and ignore the option if not recognized
10258 # So say no if there are warnings other than the usual output.
10259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10262 lt_cv_prog_compiler_pic_works=yes
10263 fi
10264 fi
10265 $RM conftest*
10266 ;;
10267 esac
10268 fi
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10270 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10271
10272 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10273 case $lt_prog_compiler_pic in
10274 "" | " "*) ;;
10275 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10276 esac
10277 else
10278 lt_prog_compiler_pic=
10279 lt_prog_compiler_can_build_shared=no
10280 fi
10281
10282 fi
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294 #
10295 # Check to make sure the static flag actually works.
10296 #
10297 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10299 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10300 if test ${lt_cv_prog_compiler_static_works+y}
10301 then :
10302 printf %s "(cached) " >&6
10303 else case e in #(
10304 e) lt_cv_prog_compiler_static_works=no
10305 save_LDFLAGS=$LDFLAGS
10306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10309 # The linker can only warn and ignore the option if not recognized
10310 # So say no if there are warnings
10311 if test -s conftest.err; then
10312 # Append any errors to the config.log.
10313 cat conftest.err 1>&5
10314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10316 if diff conftest.exp conftest.er2 >/dev/null; then
10317 lt_cv_prog_compiler_static_works=yes
10318 fi
10319 else
10320 lt_cv_prog_compiler_static_works=yes
10321 fi
10322 fi
10323 $RM -r conftest*
10324 LDFLAGS=$save_LDFLAGS
10325 ;;
10326 esac
10327 fi
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10329 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10330
10331 if test yes = "$lt_cv_prog_compiler_static_works"; then
10332 :
10333 else
10334 lt_prog_compiler_static=
10335 fi
10336
10337
10338
10339
10340
10341
10342
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10344 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10345 if test ${lt_cv_prog_compiler_c_o+y}
10346 then :
10347 printf %s "(cached) " >&6
10348 else case e in #(
10349 e) lt_cv_prog_compiler_c_o=no
10350 $RM -r conftest 2>/dev/null
10351 mkdir conftest
10352 cd conftest
10353 mkdir out
10354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10355
10356 lt_compiler_flag="-o out/conftest2.$ac_objext"
10357 # Insert the option either (1) after the last *FLAGS variable, or
10358 # (2) before a word containing "conftest.", or (3) at the end.
10359 # Note that $ac_compile itself does not contain backslashes and begins
10360 # with a dollar sign (not a hyphen), so the echo should work correctly.
10361 lt_compile=`echo "$ac_compile" | $SED \
10362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10364 -e 's:$: $lt_compiler_flag:'`
10365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10366 (eval "$lt_compile" 2>out/conftest.err)
10367 ac_status=$?
10368 cat out/conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10371 then
10372 # The compiler can only warn and ignore the option if not recognized
10373 # So say no if there are warnings
10374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10377 lt_cv_prog_compiler_c_o=yes
10378 fi
10379 fi
10380 chmod u+w . 2>&5
10381 $RM conftest*
10382 # SGI C++ compiler will create directory out/ii_files/ for
10383 # template instantiation
10384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10385 $RM out/* && rmdir out
10386 cd ..
10387 $RM -r conftest
10388 $RM conftest*
10389 ;;
10390 esac
10391 fi
10392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10393 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10394
10395
10396
10397
10398
10399
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10401 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10402 if test ${lt_cv_prog_compiler_c_o+y}
10403 then :
10404 printf %s "(cached) " >&6
10405 else case e in #(
10406 e) lt_cv_prog_compiler_c_o=no
10407 $RM -r conftest 2>/dev/null
10408 mkdir conftest
10409 cd conftest
10410 mkdir out
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412
10413 lt_compiler_flag="-o out/conftest2.$ac_objext"
10414 # Insert the option either (1) after the last *FLAGS variable, or
10415 # (2) before a word containing "conftest.", or (3) at the end.
10416 # Note that $ac_compile itself does not contain backslashes and begins
10417 # with a dollar sign (not a hyphen), so the echo should work correctly.
10418 lt_compile=`echo "$ac_compile" | $SED \
10419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10421 -e 's:$: $lt_compiler_flag:'`
10422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10423 (eval "$lt_compile" 2>out/conftest.err)
10424 ac_status=$?
10425 cat out/conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10428 then
10429 # The compiler can only warn and ignore the option if not recognized
10430 # So say no if there are warnings
10431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10434 lt_cv_prog_compiler_c_o=yes
10435 fi
10436 fi
10437 chmod u+w . 2>&5
10438 $RM conftest*
10439 # SGI C++ compiler will create directory out/ii_files/ for
10440 # template instantiation
10441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10442 $RM out/* && rmdir out
10443 cd ..
10444 $RM -r conftest
10445 $RM conftest*
10446 ;;
10447 esac
10448 fi
10449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10450 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10451
10452
10453
10454
10455 hard_links=nottested
10456 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10457 # do not overwrite the value of need_locks provided by the user
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10459 printf %s "checking if we can lock with hard links... " >&6; }
10460 hard_links=yes
10461 $RM conftest*
10462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10463 touch conftest.a
10464 ln conftest.a conftest.b 2>&5 || hard_links=no
10465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10467 printf "%s\n" "$hard_links" >&6; }
10468 if test no = "$hard_links"; then
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10470 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10471 need_locks=warn
10472 fi
10473 else
10474 need_locks=no
10475 fi
10476
10477
10478
10479
10480
10481
10482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10483 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10484
10485 runpath_var=
10486 allow_undefined_flag=
10487 always_export_symbols=no
10488 archive_cmds=
10489 archive_expsym_cmds=
10490 compiler_needs_object=no
10491 enable_shared_with_static_runtimes=no
10492 export_dynamic_flag_spec=
10493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10494 hardcode_automatic=no
10495 hardcode_direct=no
10496 hardcode_direct_absolute=no
10497 hardcode_libdir_flag_spec=
10498 hardcode_libdir_separator=
10499 hardcode_minus_L=no
10500 hardcode_shlibpath_var=unsupported
10501 inherit_rpath=no
10502 link_all_deplibs=unknown
10503 module_cmds=
10504 module_expsym_cmds=
10505 old_archive_from_new_cmds=
10506 old_archive_from_expsyms_cmds=
10507 thread_safe_flag_spec=
10508 whole_archive_flag_spec=
10509 # include_expsyms should be a list of space-separated symbols to be *always*
10510 # included in the symbol list
10511 include_expsyms=
10512 # exclude_expsyms can be an extended regexp of symbols to exclude
10513 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10514 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10515 # as well as any symbol that contains 'd'.
10516 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10517 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10518 # platforms (ab)use it in PIC code, but their linkers get confused if
10519 # the symbol is explicitly referenced. Since portable code cannot
10520 # rely on this symbol name, it's probably fine to never include it in
10521 # preloaded symbol tables.
10522 # Exclude shared library initialization/finalization symbols.
10523 extract_expsyms_cmds=
10524
10525 case $host_os in
10526 cygwin* | mingw* | windows* | pw32* | cegcc*)
10527 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10528 # When not using gcc, we currently assume that we are using
10529 # Microsoft Visual C++ or Intel C++ Compiler.
10530 if test yes != "$GCC"; then
10531 with_gnu_ld=no
10532 fi
10533 ;;
10534 interix*)
10535 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10536 with_gnu_ld=yes
10537 ;;
10538 linux* | k*bsd*-gnu | gnu*)
10539 link_all_deplibs=no
10540 ;;
10541 esac
10542
10543 ld_shlibs=yes
10544
10545 # On some targets, GNU ld is compatible enough with the native linker
10546 # that we're better off using the native interface for both.
10547 lt_use_gnu_ld_interface=no
10548 if test yes = "$with_gnu_ld"; then
10549 case $host_os in
10550 aix*)
10551 # The AIX port of GNU ld has always aspired to compatibility
10552 # with the native linker. However, as the warning in the GNU ld
10553 # block says, versions before 2.19.5* couldn't really create working
10554 # shared libraries, regardless of the interface used.
10555 case `$LD -v 2>&1` in
10556 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10557 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10558 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10559 *)
10560 lt_use_gnu_ld_interface=yes
10561 ;;
10562 esac
10563 ;;
10564 *)
10565 lt_use_gnu_ld_interface=yes
10566 ;;
10567 esac
10568 fi
10569
10570 if test yes = "$lt_use_gnu_ld_interface"; then
10571 # If archive_cmds runs LD, not CC, wlarc should be empty
10572 wlarc='$wl'
10573
10574 # Set some defaults for GNU ld with shared library support. These
10575 # are reset later if shared libraries are not supported. Putting them
10576 # here allows them to be overridden if necessary.
10577 runpath_var=LD_RUN_PATH
10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10579 export_dynamic_flag_spec='$wl--export-dynamic'
10580 # ancient GNU ld didn't support --whole-archive et. al.
10581 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10582 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10583 else
10584 whole_archive_flag_spec=
10585 fi
10586 supports_anon_versioning=no
10587 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10588 *GNU\ gold*) supports_anon_versioning=yes ;;
10589 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10590 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10591 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10592 *\ 2.11.*) ;; # other 2.11 versions
10593 *) supports_anon_versioning=yes ;;
10594 esac
10595
10596 # See if GNU ld supports shared libraries.
10597 case $host_os in
10598 aix[3-9]*)
10599 # On AIX/PPC, the GNU linker is very broken
10600 if test ia64 != "$host_cpu"; then
10601 ld_shlibs=no
10602 cat <<_LT_EOF 1>&2
10603
10604 *** Warning: the GNU linker, at least up to release 2.19, is reported
10605 *** to be unable to reliably create shared libraries on AIX.
10606 *** Therefore, libtool is disabling shared libraries support. If you
10607 *** really care for shared libraries, you may want to install binutils
10608 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10609 *** You will then need to restart the configuration process.
10610
10611 _LT_EOF
10612 fi
10613 ;;
10614
10615 amigaos*)
10616 case $host_cpu in
10617 powerpc)
10618 # see comment about AmigaOS4 .so support
10619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10620 archive_expsym_cmds=''
10621 ;;
10622 m68k)
10623 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)'
10624 hardcode_libdir_flag_spec='-L$libdir'
10625 hardcode_minus_L=yes
10626 ;;
10627 esac
10628 ;;
10629
10630 beos*)
10631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10632 allow_undefined_flag=unsupported
10633 # Joseph Beckenbach <[email protected]> says some releases of gcc
10634 # support --undefined. This deserves some investigation. FIXME
10635 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10636 else
10637 ld_shlibs=no
10638 fi
10639 ;;
10640
10641 cygwin* | mingw* | windows* | pw32* | cegcc*)
10642 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10643 # as there is no search path for DLLs.
10644 hardcode_libdir_flag_spec='-L$libdir'
10645 export_dynamic_flag_spec='$wl--export-all-symbols'
10646 allow_undefined_flag=unsupported
10647 always_export_symbols=no
10648 enable_shared_with_static_runtimes=yes
10649 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'
10650 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10651 file_list_spec='@'
10652
10653 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10655 # If the export-symbols file already is a .def file, use it as
10656 # is; otherwise, prepend EXPORTS...
10657 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10658 cp $export_symbols $output_objdir/$soname.def;
10659 else
10660 echo EXPORTS > $output_objdir/$soname.def;
10661 cat $export_symbols >> $output_objdir/$soname.def;
10662 fi~
10663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10664 else
10665 ld_shlibs=no
10666 fi
10667 ;;
10668
10669 haiku*)
10670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10671 link_all_deplibs=no
10672 ;;
10673
10674 os2*)
10675 hardcode_libdir_flag_spec='-L$libdir'
10676 hardcode_minus_L=yes
10677 allow_undefined_flag=unsupported
10678 shrext_cmds=.dll
10679 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10680 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10681 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10682 $ECHO EXPORTS >> $output_objdir/$libname.def~
10683 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10685 emximp -o $lib $output_objdir/$libname.def'
10686 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10687 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10688 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10689 $ECHO EXPORTS >> $output_objdir/$libname.def~
10690 prefix_cmds="$SED"~
10691 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10692 prefix_cmds="$prefix_cmds -e 1d";
10693 fi~
10694 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10695 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10696 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10697 emximp -o $lib $output_objdir/$libname.def'
10698 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10699 enable_shared_with_static_runtimes=yes
10700 file_list_spec='@'
10701 ;;
10702
10703 interix[3-9]*)
10704 hardcode_direct=no
10705 hardcode_shlibpath_var=no
10706 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10707 export_dynamic_flag_spec='$wl-E'
10708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10709 # Instead, shared libraries are loaded at an image base (0x10000000 by
10710 # default) and relocated if they conflict, which is a slow very memory
10711 # consuming and fragmenting process. To avoid this, we pick a random,
10712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10715 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'
10716 ;;
10717
10718 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10719 tmp_diet=no
10720 if test linux-dietlibc = "$host_os"; then
10721 case $cc_basename in
10722 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10723 esac
10724 fi
10725 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10726 && test no = "$tmp_diet"
10727 then
10728 tmp_addflag=' $pic_flag'
10729 tmp_sharedflag='-shared'
10730 case $cc_basename,$host_cpu in
10731 pgcc*) # Portland Group C compiler
10732 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'
10733 tmp_addflag=' $pic_flag'
10734 ;;
10735 pgf77* | pgf90* | pgf95* | pgfortran*)
10736 # Portland Group f77 and f90 compilers
10737 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'
10738 tmp_addflag=' $pic_flag -Mnomain' ;;
10739 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10740 tmp_addflag=' -i_dynamic' ;;
10741 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10742 tmp_addflag=' -i_dynamic -nofor_main' ;;
10743 ifc* | ifort*) # Intel Fortran compiler
10744 tmp_addflag=' -nofor_main' ;;
10745 lf95*) # Lahey Fortran 8.1
10746 whole_archive_flag_spec=
10747 tmp_sharedflag='--shared' ;;
10748 nagfor*) # NAGFOR 5.3
10749 tmp_sharedflag='-Wl,-shared' ;;
10750 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10751 tmp_sharedflag='-qmkshrobj'
10752 tmp_addflag= ;;
10753 nvcc*) # Cuda Compiler Driver 2.2
10754 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'
10755 compiler_needs_object=yes
10756 ;;
10757 esac
10758 case `$CC -V 2>&1 | $SED 5q` in
10759 *Sun\ C*) # Sun C 5.9
10760 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'
10761 compiler_needs_object=yes
10762 tmp_sharedflag='-G' ;;
10763 *Sun\ F*) # Sun Fortran 8.3
10764 tmp_sharedflag='-G' ;;
10765 esac
10766 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10767
10768 if test yes = "$supports_anon_versioning"; then
10769 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10770 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10771 echo "local: *; };" >> $output_objdir/$libname.ver~
10772 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10773 fi
10774
10775 case $cc_basename in
10776 tcc*)
10777 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10778 export_dynamic_flag_spec='-rdynamic'
10779 ;;
10780 xlf* | bgf* | bgxlf* | mpixlf*)
10781 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10782 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10783 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10784 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10785 if test yes = "$supports_anon_versioning"; then
10786 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10787 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10788 echo "local: *; };" >> $output_objdir/$libname.ver~
10789 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10790 fi
10791 ;;
10792 esac
10793 else
10794 ld_shlibs=no
10795 fi
10796 ;;
10797
10798 *-mlibc)
10799 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10800 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10801 ;;
10802
10803 netbsd* | netbsdelf*-gnu)
10804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10805 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10806 wlarc=
10807 else
10808 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10809 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10810 fi
10811 ;;
10812
10813 solaris*)
10814 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10815 ld_shlibs=no
10816 cat <<_LT_EOF 1>&2
10817
10818 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10819 *** create shared libraries on Solaris systems. Therefore, libtool
10820 *** is disabling shared libraries support. We urge you to upgrade GNU
10821 *** binutils to release 2.9.1 or newer. Another option is to modify
10822 *** your PATH or compiler configuration so that the native linker is
10823 *** used, and then restart.
10824
10825 _LT_EOF
10826 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10828 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10829 else
10830 ld_shlibs=no
10831 fi
10832 ;;
10833
10834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10835 case `$LD -v 2>&1` in
10836 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10837 ld_shlibs=no
10838 cat <<_LT_EOF 1>&2
10839
10840 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10841 *** reliably create shared libraries on SCO systems. Therefore, libtool
10842 *** is disabling shared libraries support. We urge you to upgrade GNU
10843 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10844 *** your PATH or compiler configuration so that the native linker is
10845 *** used, and then restart.
10846
10847 _LT_EOF
10848 ;;
10849 *)
10850 # For security reasons, it is highly recommended that you always
10851 # use absolute paths for naming shared libraries, and exclude the
10852 # DT_RUNPATH tag from executables and libraries. But doing so
10853 # requires that you compile everything twice, which is a pain.
10854 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10855 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10857 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10858 else
10859 ld_shlibs=no
10860 fi
10861 ;;
10862 esac
10863 ;;
10864
10865 sunos4*)
10866 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10867 wlarc=
10868 hardcode_direct=yes
10869 hardcode_shlibpath_var=no
10870 ;;
10871
10872 *)
10873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10875 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10876 else
10877 ld_shlibs=no
10878 fi
10879 ;;
10880 esac
10881
10882 if test no = "$ld_shlibs"; then
10883 runpath_var=
10884 hardcode_libdir_flag_spec=
10885 export_dynamic_flag_spec=
10886 whole_archive_flag_spec=
10887 fi
10888 else
10889 # PORTME fill in a description of your system's linker (not GNU ld)
10890 case $host_os in
10891 aix3*)
10892 allow_undefined_flag=unsupported
10893 always_export_symbols=yes
10894 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'
10895 # Note: this linker hardcodes the directories in LIBPATH if there
10896 # are no directories specified by -L.
10897 hardcode_minus_L=yes
10898 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10899 # Neither direct hardcoding nor static linking is supported with a
10900 # broken collect2.
10901 hardcode_direct=unsupported
10902 fi
10903 ;;
10904
10905 aix[4-9]*)
10906 if test ia64 = "$host_cpu"; then
10907 # On IA64, the linker does run time linking by default, so we don't
10908 # have to do anything special.
10909 aix_use_runtimelinking=no
10910 exp_sym_flag='-Bexport'
10911 no_entry_flag=
10912 else
10913 # If we're using GNU nm, then we don't want the "-C" option.
10914 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10915 # Without the "-l" option, or with the "-B" option, AIX nm treats
10916 # weak defined symbols like other global defined symbols, whereas
10917 # GNU nm marks them as "W".
10918 # While the 'weak' keyword is ignored in the Export File, we need
10919 # it in the Import File for the 'aix-soname' feature, so we have
10920 # to replace the "-B" option with "-P" for AIX nm.
10921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10922 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'
10923 else
10924 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'
10925 fi
10926 aix_use_runtimelinking=no
10927
10928 # Test if we are trying to use run time linking or normal
10929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10930 # have runtime linking enabled, and use it for executables.
10931 # For shared libraries, we enable/disable runtime linking
10932 # depending on the kind of the shared library created -
10933 # when "with_aix_soname,aix_use_runtimelinking" is:
10934 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10935 # "aix,yes" lib.so shared, rtl:yes, for executables
10936 # lib.a static archive
10937 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10938 # lib.a(lib.so.V) shared, rtl:no, for executables
10939 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10940 # lib.a(lib.so.V) shared, rtl:no
10941 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10942 # lib.a static archive
10943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10944 for ld_flag in $LDFLAGS; do
10945 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10946 aix_use_runtimelinking=yes
10947 break
10948 fi
10949 done
10950 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10951 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10952 # so we don't have lib.a shared libs to link our executables.
10953 # We have to force runtime linking in this case.
10954 aix_use_runtimelinking=yes
10955 LDFLAGS="$LDFLAGS -Wl,-brtl"
10956 fi
10957 ;;
10958 esac
10959
10960 exp_sym_flag='-bexport'
10961 no_entry_flag='-bnoentry'
10962 fi
10963
10964 # When large executables or shared objects are built, AIX ld can
10965 # have problems creating the table of contents. If linking a library
10966 # or program results in "error TOC overflow" add -mminimal-toc to
10967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10969
10970 archive_cmds=''
10971 hardcode_direct=yes
10972 hardcode_direct_absolute=yes
10973 hardcode_libdir_separator=':'
10974 link_all_deplibs=yes
10975 file_list_spec='$wl-f,'
10976 case $with_aix_soname,$aix_use_runtimelinking in
10977 aix,*) ;; # traditional, no import file
10978 svr4,* | *,yes) # use import file
10979 # The Import File defines what to hardcode.
10980 hardcode_direct=no
10981 hardcode_direct_absolute=no
10982 ;;
10983 esac
10984
10985 if test yes = "$GCC"; then
10986 case $host_os in aix4.[012]|aix4.[012].*)
10987 # We only want to do this on AIX 4.2 and lower, the check
10988 # below for broken collect2 doesn't work under 4.3+
10989 collect2name=`$CC -print-prog-name=collect2`
10990 if test -f "$collect2name" &&
10991 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10992 then
10993 # We have reworked collect2
10994 :
10995 else
10996 # We have old collect2
10997 hardcode_direct=unsupported
10998 # It fails to find uninstalled libraries when the uninstalled
10999 # path is not listed in the libpath. Setting hardcode_minus_L
11000 # to unsupported forces relinking
11001 hardcode_minus_L=yes
11002 hardcode_libdir_flag_spec='-L$libdir'
11003 hardcode_libdir_separator=
11004 fi
11005 ;;
11006 esac
11007 shared_flag='-shared'
11008 if test yes = "$aix_use_runtimelinking"; then
11009 shared_flag="$shared_flag "'$wl-G'
11010 fi
11011 # Need to ensure runtime linking is disabled for the traditional
11012 # shared library, or the linker may eventually find shared libraries
11013 # /with/ Import File - we do not want to mix them.
11014 shared_flag_aix='-shared'
11015 shared_flag_svr4='-shared $wl-G'
11016 else
11017 # not using gcc
11018 if test ia64 = "$host_cpu"; then
11019 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11020 # chokes on -Wl,-G. The following line is correct:
11021 shared_flag='-G'
11022 else
11023 if test yes = "$aix_use_runtimelinking"; then
11024 shared_flag='$wl-G'
11025 else
11026 shared_flag='$wl-bM:SRE'
11027 fi
11028 shared_flag_aix='$wl-bM:SRE'
11029 shared_flag_svr4='$wl-G'
11030 fi
11031 fi
11032
11033 export_dynamic_flag_spec='$wl-bexpall'
11034 # It seems that -bexpall does not export symbols beginning with
11035 # underscore (_), so it is better to generate a list of symbols to export.
11036 always_export_symbols=yes
11037 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11038 # Warning - without using the other runtime loading flags (-brtl),
11039 # -berok will link without error, but may produce a broken library.
11040 allow_undefined_flag='-berok'
11041 # Determine the default libpath from the value encoded in an
11042 # empty executable.
11043 if test set = "${lt_cv_aix_libpath+set}"; then
11044 aix_libpath=$lt_cv_aix_libpath
11045 else
11046 if test ${lt_cv_aix_libpath_+y}
11047 then :
11048 printf %s "(cached) " >&6
11049 else case e in #(
11050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052
11053 int
11054 main (void)
11055 {
11056
11057 ;
11058 return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"
11062 then :
11063
11064 lt_aix_libpath_sed='
11065 /Import File Strings/,/^$/ {
11066 /^0/ {
11067 s/^0 *\([^ ]*\) *$/\1/
11068 p
11069 }
11070 }'
11071 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11072 # Check for a 64-bit object if we didn't find anything.
11073 if test -z "$lt_cv_aix_libpath_"; then
11074 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11075 fi
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11078 conftest$ac_exeext conftest.$ac_ext
11079 if test -z "$lt_cv_aix_libpath_"; then
11080 lt_cv_aix_libpath_=/usr/lib:/lib
11081 fi
11082 ;;
11083 esac
11084 fi
11085
11086 aix_libpath=$lt_cv_aix_libpath_
11087 fi
11088
11089 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11090 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
11091 else
11092 if test ia64 = "$host_cpu"; then
11093 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11094 allow_undefined_flag="-z nodefs"
11095 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"
11096 else
11097 # Determine the default libpath from the value encoded in an
11098 # empty executable.
11099 if test set = "${lt_cv_aix_libpath+set}"; then
11100 aix_libpath=$lt_cv_aix_libpath
11101 else
11102 if test ${lt_cv_aix_libpath_+y}
11103 then :
11104 printf %s "(cached) " >&6
11105 else case e in #(
11106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108
11109 int
11110 main (void)
11111 {
11112
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"
11118 then :
11119
11120 lt_aix_libpath_sed='
11121 /Import File Strings/,/^$/ {
11122 /^0/ {
11123 s/^0 *\([^ ]*\) *$/\1/
11124 p
11125 }
11126 }'
11127 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11128 # Check for a 64-bit object if we didn't find anything.
11129 if test -z "$lt_cv_aix_libpath_"; then
11130 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11131 fi
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11134 conftest$ac_exeext conftest.$ac_ext
11135 if test -z "$lt_cv_aix_libpath_"; then
11136 lt_cv_aix_libpath_=/usr/lib:/lib
11137 fi
11138 ;;
11139 esac
11140 fi
11141
11142 aix_libpath=$lt_cv_aix_libpath_
11143 fi
11144
11145 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11146 # Warning - without using the other run time loading flags,
11147 # -berok will link without error, but may produce a broken library.
11148 no_undefined_flag=' $wl-bernotok'
11149 allow_undefined_flag=' $wl-berok'
11150 if test yes = "$with_gnu_ld"; then
11151 # We only use this code for GNU lds that support --whole-archive.
11152 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11153 else
11154 # Exported symbols can be pulled into shared objects from archives
11155 whole_archive_flag_spec='$convenience'
11156 fi
11157 archive_cmds_need_lc=yes
11158 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11159 # -brtl affects multiple linker settings, -berok does not and is overridden later
11160 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11161 if test svr4 != "$with_aix_soname"; then
11162 # This is similar to how AIX traditionally builds its shared libraries.
11163 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'
11164 fi
11165 if test aix != "$with_aix_soname"; then
11166 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'
11167 else
11168 # used by -dlpreopen to get the symbols
11169 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11170 fi
11171 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11172 fi
11173 fi
11174 ;;
11175
11176 amigaos*)
11177 case $host_cpu in
11178 powerpc)
11179 # see comment about AmigaOS4 .so support
11180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11181 archive_expsym_cmds=''
11182 ;;
11183 m68k)
11184 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)'
11185 hardcode_libdir_flag_spec='-L$libdir'
11186 hardcode_minus_L=yes
11187 ;;
11188 esac
11189 ;;
11190
11191 bsdi[45]*)
11192 export_dynamic_flag_spec=-rdynamic
11193 ;;
11194
11195 cygwin* | mingw* | windows* | pw32* | cegcc*)
11196 # When not using gcc, we currently assume that we are using
11197 # Microsoft Visual C++ or Intel C++ Compiler.
11198 # hardcode_libdir_flag_spec is actually meaningless, as there is
11199 # no search path for DLLs.
11200 case $cc_basename in
11201 cl* | icl*)
11202 # Native MSVC or ICC
11203 hardcode_libdir_flag_spec=' '
11204 allow_undefined_flag=unsupported
11205 always_export_symbols=yes
11206 file_list_spec='@'
11207 # Tell ltmain to make .lib files, not .a files.
11208 libext=lib
11209 # Tell ltmain to make .dll files, not .so files.
11210 shrext_cmds=.dll
11211 # FIXME: Setting linknames here is a bad hack.
11212 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11213 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11214 cp "$export_symbols" "$output_objdir/$soname.def";
11215 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11216 else
11217 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11218 fi~
11219 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11220 linknames='
11221 # The linker will not automatically build a static lib if we build a DLL.
11222 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11223 enable_shared_with_static_runtimes=yes
11224 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11225 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11226 # Don't use ranlib
11227 old_postinstall_cmds='chmod 644 $oldlib'
11228 postlink_cmds='lt_outputfile="@OUTPUT@"~
11229 lt_tool_outputfile="@TOOL_OUTPUT@"~
11230 case $lt_outputfile in
11231 *.exe|*.EXE) ;;
11232 *)
11233 lt_outputfile=$lt_outputfile.exe
11234 lt_tool_outputfile=$lt_tool_outputfile.exe
11235 ;;
11236 esac~
11237 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11238 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11239 $RM "$lt_outputfile.manifest";
11240 fi'
11241 ;;
11242 *)
11243 # Assume MSVC and ICC wrapper
11244 hardcode_libdir_flag_spec=' '
11245 allow_undefined_flag=unsupported
11246 # Tell ltmain to make .lib files, not .a files.
11247 libext=lib
11248 # Tell ltmain to make .dll files, not .so files.
11249 shrext_cmds=.dll
11250 # FIXME: Setting linknames here is a bad hack.
11251 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11252 # The linker will automatically build a .lib file if we build a DLL.
11253 old_archive_from_new_cmds='true'
11254 # FIXME: Should let the user specify the lib program.
11255 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11256 enable_shared_with_static_runtimes=yes
11257 ;;
11258 esac
11259 ;;
11260
11261 darwin* | rhapsody*)
11262
11263
11264 archive_cmds_need_lc=no
11265 hardcode_direct=no
11266 hardcode_automatic=yes
11267 hardcode_shlibpath_var=unsupported
11268 if test yes = "$lt_cv_ld_force_load"; then
11269 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\"`'
11270
11271 else
11272 whole_archive_flag_spec=''
11273 fi
11274 link_all_deplibs=yes
11275 allow_undefined_flag=$_lt_dar_allow_undefined
11276 case $cc_basename in
11277 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11278 *) _lt_dar_can_shared=$GCC ;;
11279 esac
11280 if test yes = "$_lt_dar_can_shared"; then
11281 output_verbose_link_cmd=func_echo_all
11282 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11283 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11284 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"
11285 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"
11286
11287 else
11288 ld_shlibs=no
11289 fi
11290
11291 ;;
11292
11293 dgux*)
11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11295 hardcode_libdir_flag_spec='-L$libdir'
11296 hardcode_shlibpath_var=no
11297 ;;
11298
11299 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11300 # support. Future versions do this automatically, but an explicit c++rt0.o
11301 # does not break anything, and helps significantly (at the cost of a little
11302 # extra space).
11303 freebsd2.2*)
11304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11305 hardcode_libdir_flag_spec='-R$libdir'
11306 hardcode_direct=yes
11307 hardcode_shlibpath_var=no
11308 ;;
11309
11310 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11311 freebsd2.*)
11312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11313 hardcode_direct=yes
11314 hardcode_minus_L=yes
11315 hardcode_shlibpath_var=no
11316 ;;
11317
11318 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11319 freebsd* | dragonfly* | midnightbsd*)
11320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11321 hardcode_libdir_flag_spec='-R$libdir'
11322 hardcode_direct=yes
11323 hardcode_shlibpath_var=no
11324 ;;
11325
11326 hpux9*)
11327 if test yes = "$GCC"; then
11328 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'
11329 else
11330 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'
11331 fi
11332 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11333 hardcode_libdir_separator=:
11334 hardcode_direct=yes
11335
11336 # hardcode_minus_L: Not really in the search PATH,
11337 # but as the default location of the library.
11338 hardcode_minus_L=yes
11339 export_dynamic_flag_spec='$wl-E'
11340 ;;
11341
11342 hpux10*)
11343 if test yes,no = "$GCC,$with_gnu_ld"; then
11344 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11345 else
11346 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11347 fi
11348 if test no = "$with_gnu_ld"; then
11349 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11350 hardcode_libdir_separator=:
11351 hardcode_direct=yes
11352 hardcode_direct_absolute=yes
11353 export_dynamic_flag_spec='$wl-E'
11354 # hardcode_minus_L: Not really in the search PATH,
11355 # but as the default location of the library.
11356 hardcode_minus_L=yes
11357 fi
11358 ;;
11359
11360 hpux11*)
11361 if test yes,no = "$GCC,$with_gnu_ld"; then
11362 case $host_cpu in
11363 hppa*64*)
11364 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11365 ;;
11366 ia64*)
11367 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11368 ;;
11369 *)
11370 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11371 ;;
11372 esac
11373 else
11374 case $host_cpu in
11375 hppa*64*)
11376 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 ;;
11378 ia64*)
11379 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11380 ;;
11381 *)
11382
11383 # Older versions of the 11.00 compiler do not understand -b yet
11384 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11386 printf %s "checking if $CC understands -b... " >&6; }
11387 if test ${lt_cv_prog_compiler__b+y}
11388 then :
11389 printf %s "(cached) " >&6
11390 else case e in #(
11391 e) lt_cv_prog_compiler__b=no
11392 save_LDFLAGS=$LDFLAGS
11393 LDFLAGS="$LDFLAGS -b"
11394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11396 # The linker can only warn and ignore the option if not recognized
11397 # So say no if there are warnings
11398 if test -s conftest.err; then
11399 # Append any errors to the config.log.
11400 cat conftest.err 1>&5
11401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11403 if diff conftest.exp conftest.er2 >/dev/null; then
11404 lt_cv_prog_compiler__b=yes
11405 fi
11406 else
11407 lt_cv_prog_compiler__b=yes
11408 fi
11409 fi
11410 $RM -r conftest*
11411 LDFLAGS=$save_LDFLAGS
11412 ;;
11413 esac
11414 fi
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11416 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11417
11418 if test yes = "$lt_cv_prog_compiler__b"; then
11419 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11420 else
11421 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11422 fi
11423
11424 ;;
11425 esac
11426 fi
11427 if test no = "$with_gnu_ld"; then
11428 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11429 hardcode_libdir_separator=:
11430
11431 case $host_cpu in
11432 hppa*64*|ia64*)
11433 hardcode_direct=no
11434 hardcode_shlibpath_var=no
11435 ;;
11436 *)
11437 hardcode_direct=yes
11438 hardcode_direct_absolute=yes
11439 export_dynamic_flag_spec='$wl-E'
11440
11441 # hardcode_minus_L: Not really in the search PATH,
11442 # but as the default location of the library.
11443 hardcode_minus_L=yes
11444 ;;
11445 esac
11446 fi
11447 ;;
11448
11449 irix5* | irix6* | nonstopux*)
11450 if test yes = "$GCC"; then
11451 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'
11452 # Try to use the -exported_symbol ld option, if it does not
11453 # work, assume that -exports_file does not work either and
11454 # implicitly export all symbols.
11455 # This should be the same for all languages, so no per-tag cache variable.
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11457 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11458 if test ${lt_cv_irix_exported_symbol+y}
11459 then :
11460 printf %s "(cached) " >&6
11461 else case e in #(
11462 e) save_LDFLAGS=$LDFLAGS
11463 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 int foo (void) { return 0; }
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"
11469 then :
11470 lt_cv_irix_exported_symbol=yes
11471 else case e in #(
11472 e) lt_cv_irix_exported_symbol=no ;;
11473 esac
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11476 conftest$ac_exeext conftest.$ac_ext
11477 LDFLAGS=$save_LDFLAGS ;;
11478 esac
11479 fi
11480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11481 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11482 if test yes = "$lt_cv_irix_exported_symbol"; then
11483 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'
11484 fi
11485 link_all_deplibs=no
11486 else
11487 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'
11488 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'
11489 fi
11490 archive_cmds_need_lc='no'
11491 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11492 hardcode_libdir_separator=:
11493 inherit_rpath=yes
11494 link_all_deplibs=yes
11495 ;;
11496
11497 linux*)
11498 case $cc_basename in
11499 tcc*)
11500 # Fabrice Bellard et al's Tiny C Compiler
11501 ld_shlibs=yes
11502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11504 ;;
11505 esac
11506 ;;
11507
11508 *-mlibc)
11509 ;;
11510
11511 netbsd* | netbsdelf*-gnu)
11512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11514 else
11515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11516 fi
11517 hardcode_libdir_flag_spec='-R$libdir'
11518 hardcode_direct=yes
11519 hardcode_shlibpath_var=no
11520 ;;
11521
11522 newsos6)
11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11524 hardcode_direct=yes
11525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11526 hardcode_libdir_separator=:
11527 hardcode_shlibpath_var=no
11528 ;;
11529
11530 *nto* | *qnx*)
11531 ;;
11532
11533 openbsd*)
11534 if test -f /usr/libexec/ld.so; then
11535 hardcode_direct=yes
11536 hardcode_shlibpath_var=no
11537 hardcode_direct_absolute=yes
11538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11541 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11542 export_dynamic_flag_spec='$wl-E'
11543 else
11544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11545 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11546 fi
11547 else
11548 ld_shlibs=no
11549 fi
11550 ;;
11551
11552 os2*)
11553 hardcode_libdir_flag_spec='-L$libdir'
11554 hardcode_minus_L=yes
11555 allow_undefined_flag=unsupported
11556 shrext_cmds=.dll
11557 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11558 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11559 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11560 $ECHO EXPORTS >> $output_objdir/$libname.def~
11561 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11562 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11563 emximp -o $lib $output_objdir/$libname.def'
11564 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11565 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11566 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11567 $ECHO EXPORTS >> $output_objdir/$libname.def~
11568 prefix_cmds="$SED"~
11569 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11570 prefix_cmds="$prefix_cmds -e 1d";
11571 fi~
11572 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11573 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11574 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11575 emximp -o $lib $output_objdir/$libname.def'
11576 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11577 enable_shared_with_static_runtimes=yes
11578 file_list_spec='@'
11579 ;;
11580
11581 osf3*)
11582 if test yes = "$GCC"; then
11583 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11584 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'
11585 else
11586 allow_undefined_flag=' -expect_unresolved \*'
11587 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'
11588 fi
11589 archive_cmds_need_lc='no'
11590 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11591 hardcode_libdir_separator=:
11592 ;;
11593
11594 osf4* | osf5*) # as osf3* with the addition of -msym flag
11595 if test yes = "$GCC"; then
11596 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11597 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'
11598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11599 else
11600 allow_undefined_flag=' -expect_unresolved \*'
11601 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'
11602 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~
11603 $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'
11604
11605 # Both c and cxx compiler support -rpath directly
11606 hardcode_libdir_flag_spec='-rpath $libdir'
11607 fi
11608 archive_cmds_need_lc='no'
11609 hardcode_libdir_separator=:
11610 ;;
11611
11612 serenity*)
11613 ;;
11614
11615 solaris*)
11616 no_undefined_flag=' -z defs'
11617 if test yes = "$GCC"; then
11618 wlarc='$wl'
11619 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11621 $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'
11622 else
11623 case `$CC -V 2>&1` in
11624 *"Compilers 5.0"*)
11625 wlarc=''
11626 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11627 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11628 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11629 ;;
11630 *)
11631 wlarc='$wl'
11632 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11634 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11635 ;;
11636 esac
11637 fi
11638 hardcode_libdir_flag_spec='-R$libdir'
11639 hardcode_shlibpath_var=no
11640 case $host_os in
11641 solaris2.[0-5] | solaris2.[0-5].*) ;;
11642 *)
11643 # The compiler driver will combine and reorder linker options,
11644 # but understands '-z linker_flag'. GCC discards it without '$wl',
11645 # but is careful enough not to reorder.
11646 # Supported since Solaris 2.6 (maybe 2.5.1?)
11647 if test yes = "$GCC"; then
11648 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11649 else
11650 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11651 fi
11652 ;;
11653 esac
11654 link_all_deplibs=yes
11655 ;;
11656
11657 sunos4*)
11658 if test sequent = "$host_vendor"; then
11659 # Use $CC to link under sequent, because it throws in some extra .o
11660 # files that make .init and .fini sections work.
11661 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11662 else
11663 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11664 fi
11665 hardcode_libdir_flag_spec='-L$libdir'
11666 hardcode_direct=yes
11667 hardcode_minus_L=yes
11668 hardcode_shlibpath_var=no
11669 ;;
11670
11671 sysv4)
11672 case $host_vendor in
11673 sni)
11674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11675 hardcode_direct=yes # is this really true???
11676 ;;
11677 siemens)
11678 ## LD is ld it makes a PLAMLIB
11679 ## CC just makes a GrossModule.
11680 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11681 reload_cmds='$CC -r -o $output$reload_objs'
11682 hardcode_direct=no
11683 ;;
11684 motorola)
11685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11686 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11687 ;;
11688 esac
11689 runpath_var='LD_RUN_PATH'
11690 hardcode_shlibpath_var=no
11691 ;;
11692
11693 sysv4.3*)
11694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11695 hardcode_shlibpath_var=no
11696 export_dynamic_flag_spec='-Bexport'
11697 ;;
11698
11699 sysv4*MP*)
11700 if test -d /usr/nec; then
11701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11702 hardcode_shlibpath_var=no
11703 runpath_var=LD_RUN_PATH
11704 hardcode_runpath_var=yes
11705 ld_shlibs=yes
11706 fi
11707 ;;
11708
11709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11710 no_undefined_flag='$wl-z,text'
11711 archive_cmds_need_lc=no
11712 hardcode_shlibpath_var=no
11713 runpath_var='LD_RUN_PATH'
11714
11715 if test yes = "$GCC"; then
11716 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11717 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11718 else
11719 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11720 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11721 fi
11722 ;;
11723
11724 sysv5* | sco3.2v5* | sco5v6*)
11725 # Note: We CANNOT use -z defs as we might desire, because we do not
11726 # link with -lc, and that would cause any symbols used from libc to
11727 # always be unresolved, which means just about no library would
11728 # ever link correctly. If we're not using GNU ld we use -z text
11729 # though, which does catch some bad symbols but isn't as heavy-handed
11730 # as -z defs.
11731 no_undefined_flag='$wl-z,text'
11732 allow_undefined_flag='$wl-z,nodefs'
11733 archive_cmds_need_lc=no
11734 hardcode_shlibpath_var=no
11735 hardcode_libdir_flag_spec='$wl-R,$libdir'
11736 hardcode_libdir_separator=':'
11737 link_all_deplibs=yes
11738 export_dynamic_flag_spec='$wl-Bexport'
11739 runpath_var='LD_RUN_PATH'
11740
11741 if test yes = "$GCC"; then
11742 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11743 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744 else
11745 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11747 fi
11748 ;;
11749
11750 uts4*)
11751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11752 hardcode_libdir_flag_spec='-L$libdir'
11753 hardcode_shlibpath_var=no
11754 ;;
11755
11756 *)
11757 ld_shlibs=no
11758 ;;
11759 esac
11760
11761 if test sni = "$host_vendor"; then
11762 case $host in
11763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11764 export_dynamic_flag_spec='$wl-Blargedynsym'
11765 ;;
11766 esac
11767 fi
11768 fi
11769
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11771 printf "%s\n" "$ld_shlibs" >&6; }
11772 test no = "$ld_shlibs" && can_build_shared=no
11773
11774 with_gnu_ld=$with_gnu_ld
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790 #
11791 # Do we need to explicitly link libc?
11792 #
11793 case "x$archive_cmds_need_lc" in
11794 x|xyes)
11795 # Assume -lc should be added
11796 archive_cmds_need_lc=yes
11797
11798 if test yes,yes = "$GCC,$enable_shared"; then
11799 case $archive_cmds in
11800 *'~'*)
11801 # FIXME: we may have to deal with multi-command sequences.
11802 ;;
11803 '$CC '*)
11804 # Test whether the compiler implicitly links with -lc since on some
11805 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11806 # to ld, don't add -lc before -lgcc.
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11808 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11809 if test ${lt_cv_archive_cmds_need_lc+y}
11810 then :
11811 printf %s "(cached) " >&6
11812 else case e in #(
11813 e) $RM conftest*
11814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11815
11816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11817 (eval $ac_compile) 2>&5
11818 ac_status=$?
11819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820 test $ac_status = 0; } 2>conftest.err; then
11821 soname=conftest
11822 lib=conftest
11823 libobjs=conftest.$ac_objext
11824 deplibs=
11825 wl=$lt_prog_compiler_wl
11826 pic_flag=$lt_prog_compiler_pic
11827 compiler_flags=-v
11828 linker_flags=-v
11829 verstring=
11830 output_objdir=.
11831 libname=conftest
11832 lt_save_allow_undefined_flag=$allow_undefined_flag
11833 allow_undefined_flag=
11834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11836 ac_status=$?
11837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11838 test $ac_status = 0; }
11839 then
11840 lt_cv_archive_cmds_need_lc=no
11841 else
11842 lt_cv_archive_cmds_need_lc=yes
11843 fi
11844 allow_undefined_flag=$lt_save_allow_undefined_flag
11845 else
11846 cat conftest.err 1>&5
11847 fi
11848 $RM conftest*
11849 ;;
11850 esac
11851 fi
11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11853 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11854 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11855 ;;
11856 esac
11857 fi
11858 ;;
11859 esac
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12013 printf %s "checking dynamic linker characteristics... " >&6; }
12014
12015 if test yes = "$GCC"; then
12016 case $host_os in
12017 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12018 *) lt_awk_arg='/^libraries:/' ;;
12019 esac
12020 case $host_os in
12021 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12022 *) lt_sed_strip_eq='s|=/|/|g' ;;
12023 esac
12024 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12025 case $lt_search_path_spec in
12026 *\;*)
12027 # if the path contains ";" then we assume it to be the separator
12028 # otherwise default to the standard path separator (i.e. ":") - it is
12029 # assumed that no part of a normal pathname contains ";" but that should
12030 # okay in the real world where ";" in dirpaths is itself problematic.
12031 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12032 ;;
12033 *)
12034 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12035 ;;
12036 esac
12037 # Ok, now we have the path, separated by spaces, we can step through it
12038 # and add multilib dir if necessary...
12039 lt_tmp_lt_search_path_spec=
12040 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12041 # ...but if some path component already ends with the multilib dir we assume
12042 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12043 case "$lt_multi_os_dir; $lt_search_path_spec " in
12044 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12045 lt_multi_os_dir=
12046 ;;
12047 esac
12048 for lt_sys_path in $lt_search_path_spec; do
12049 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12051 elif test -n "$lt_multi_os_dir"; then
12052 test -d "$lt_sys_path" && \
12053 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12054 fi
12055 done
12056 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12057 BEGIN {RS = " "; FS = "/|\n";} {
12058 lt_foo = "";
12059 lt_count = 0;
12060 for (lt_i = NF; lt_i > 0; lt_i--) {
12061 if ($lt_i != "" && $lt_i != ".") {
12062 if ($lt_i == "..") {
12063 lt_count++;
12064 } else {
12065 if (lt_count == 0) {
12066 lt_foo = "/" $lt_i lt_foo;
12067 } else {
12068 lt_count--;
12069 }
12070 }
12071 }
12072 }
12073 if (lt_foo != "") { lt_freq[lt_foo]++; }
12074 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12075 }'`
12076 # AWK program above erroneously prepends '/' to C:/dos/paths
12077 # for these hosts.
12078 case $host_os in
12079 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12080 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12081 esac
12082 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12083 else
12084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12085 fi
12086 library_names_spec=
12087 libname_spec='lib$name'
12088 soname_spec=
12089 shrext_cmds=.so
12090 postinstall_cmds=
12091 postuninstall_cmds=
12092 finish_cmds=
12093 finish_eval=
12094 shlibpath_var=
12095 shlibpath_overrides_runpath=unknown
12096 version_type=none
12097 dynamic_linker="$host_os ld.so"
12098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12099 need_lib_prefix=unknown
12100 hardcode_into_libs=no
12101
12102 # when you set need_version to no, make sure it does not cause -set_version
12103 # flags to be left without arguments
12104 need_version=unknown
12105
12106
12107
12108 case $host_os in
12109 aix3*)
12110 version_type=linux # correct to gnu/linux during the next big refactor
12111 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12112 shlibpath_var=LIBPATH
12113
12114 # AIX 3 has no versioning support, so we append a major version to the name.
12115 soname_spec='$libname$release$shared_ext$major'
12116 ;;
12117
12118 aix[4-9]*)
12119 version_type=linux # correct to gnu/linux during the next big refactor
12120 need_lib_prefix=no
12121 need_version=no
12122 hardcode_into_libs=yes
12123 if test ia64 = "$host_cpu"; then
12124 # AIX 5 supports IA64
12125 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12126 shlibpath_var=LD_LIBRARY_PATH
12127 else
12128 # With GCC up to 2.95.x, collect2 would create an import file
12129 # for dependence libraries. The import file would start with
12130 # the line '#! .'. This would cause the generated library to
12131 # depend on '.', always an invalid library. This was fixed in
12132 # development snapshots of GCC prior to 3.0.
12133 case $host_os in
12134 aix4 | aix4.[01] | aix4.[01].*)
12135 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12136 echo ' yes '
12137 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12138 :
12139 else
12140 can_build_shared=no
12141 fi
12142 ;;
12143 esac
12144 # Using Import Files as archive members, it is possible to support
12145 # filename-based versioning of shared library archives on AIX. While
12146 # this would work for both with and without runtime linking, it will
12147 # prevent static linking of such archives. So we do filename-based
12148 # shared library versioning with .so extension only, which is used
12149 # when both runtime linking and shared linking is enabled.
12150 # Unfortunately, runtime linking may impact performance, so we do
12151 # not want this to be the default eventually. Also, we use the
12152 # versioned .so libs for executables only if there is the -brtl
12153 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12154 # To allow for filename-based versioning support, we need to create
12155 # libNAME.so.V as an archive file, containing:
12156 # *) an Import File, referring to the versioned filename of the
12157 # archive as well as the shared archive member, telling the
12158 # bitwidth (32 or 64) of that shared object, and providing the
12159 # list of exported symbols of that shared object, eventually
12160 # decorated with the 'weak' keyword
12161 # *) the shared object with the F_LOADONLY flag set, to really avoid
12162 # it being seen by the linker.
12163 # At run time we better use the real file rather than another symlink,
12164 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12165
12166 case $with_aix_soname,$aix_use_runtimelinking in
12167 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12168 # soname into executable. Probably we can add versioning support to
12169 # collect2, so additional links can be useful in future.
12170 aix,yes) # traditional libtool
12171 dynamic_linker='AIX unversionable lib.so'
12172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12173 # instead of lib<name>.a to let people know that these are not
12174 # typical AIX shared libraries.
12175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12176 ;;
12177 aix,no) # traditional AIX only
12178 dynamic_linker='AIX lib.a(lib.so.V)'
12179 # We preserve .a as extension for shared libraries through AIX4.2
12180 # and later when we are not doing run time linking.
12181 library_names_spec='$libname$release.a $libname.a'
12182 soname_spec='$libname$release$shared_ext$major'
12183 ;;
12184 svr4,*) # full svr4 only
12185 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12186 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12187 # We do not specify a path in Import Files, so LIBPATH fires.
12188 shlibpath_overrides_runpath=yes
12189 ;;
12190 *,yes) # both, prefer svr4
12191 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12192 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12193 # unpreferred sharedlib libNAME.a needs extra handling
12194 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"'
12195 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"'
12196 # We do not specify a path in Import Files, so LIBPATH fires.
12197 shlibpath_overrides_runpath=yes
12198 ;;
12199 *,no) # both, prefer aix
12200 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12201 library_names_spec='$libname$release.a $libname.a'
12202 soname_spec='$libname$release$shared_ext$major'
12203 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12204 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)'
12205 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"'
12206 ;;
12207 esac
12208 shlibpath_var=LIBPATH
12209 fi
12210 ;;
12211
12212 amigaos*)
12213 case $host_cpu in
12214 powerpc)
12215 # Since July 2007 AmigaOS4 officially supports .so libraries.
12216 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218 ;;
12219 m68k)
12220 library_names_spec='$libname.ixlibrary $libname.a'
12221 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12222 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'
12223 ;;
12224 esac
12225 ;;
12226
12227 beos*)
12228 library_names_spec='$libname$shared_ext'
12229 dynamic_linker="$host_os ld.so"
12230 shlibpath_var=LIBRARY_PATH
12231 ;;
12232
12233 bsdi[45]*)
12234 version_type=linux # correct to gnu/linux during the next big refactor
12235 need_version=no
12236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12237 soname_spec='$libname$release$shared_ext$major'
12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12239 shlibpath_var=LD_LIBRARY_PATH
12240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12242 # the default ld.so.conf also contains /usr/contrib/lib and
12243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12244 # libtool to hard-code these into programs
12245 ;;
12246
12247 cygwin* | mingw* | windows* | pw32* | cegcc*)
12248 version_type=windows
12249 shrext_cmds=.dll
12250 need_version=no
12251 need_lib_prefix=no
12252
12253 case $GCC,$cc_basename in
12254 yes,*)
12255 # gcc
12256 library_names_spec='$libname.dll.a'
12257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12258 # If user builds GCC with multilib enabled,
12259 # it should just install on $(libdir)
12260 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12261 if test xyes = x"$multilib"; then
12262 postinstall_cmds='base_file=`basename \$file`~
12263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12264 dldir=$destdir/`dirname \$dlpath`~
12265 $install_prog $dir/$dlname $destdir/$dlname~
12266 chmod a+x $destdir/$dlname~
12267 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12268 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12269 fi'
12270 else
12271 postinstall_cmds='base_file=`basename \$file`~
12272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12273 dldir=$destdir/`dirname \$dlpath`~
12274 test -d \$dldir || mkdir -p \$dldir~
12275 $install_prog $dir/$dlname \$dldir/$dlname~
12276 chmod a+x \$dldir/$dlname~
12277 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12278 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12279 fi'
12280 fi
12281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12282 dlpath=$dir/\$dldll~
12283 $RM \$dlpath'
12284 shlibpath_overrides_runpath=yes
12285
12286 case $host_os in
12287 cygwin*)
12288 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12289 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12290
12291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12292 ;;
12293 mingw* | windows* | cegcc*)
12294 # MinGW DLLs use traditional 'lib' prefix
12295 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12296 ;;
12297 pw32*)
12298 # pw32 DLLs use 'pw' prefix rather than 'lib'
12299 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12300 ;;
12301 esac
12302 dynamic_linker='Win32 ld.exe'
12303 ;;
12304
12305 *,cl* | *,icl*)
12306 # Native MSVC or ICC
12307 libname_spec='$name'
12308 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12309 library_names_spec='$libname.dll.lib'
12310
12311 case $build_os in
12312 mingw* | windows*)
12313 sys_lib_search_path_spec=
12314 lt_save_ifs=$IFS
12315 IFS=';'
12316 for lt_path in $LIB
12317 do
12318 IFS=$lt_save_ifs
12319 # Let DOS variable expansion print the short 8.3 style file name.
12320 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12321 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12322 done
12323 IFS=$lt_save_ifs
12324 # Convert to MSYS style.
12325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12326 ;;
12327 cygwin*)
12328 # Convert to unix form, then to dos form, then back to unix form
12329 # but this time dos style (no spaces!) so that the unix form looks
12330 # like /cygdrive/c/PROGRA~1:/cygdr...
12331 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12332 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12333 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12334 ;;
12335 *)
12336 sys_lib_search_path_spec=$LIB
12337 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12338 # It is most probably a Windows format PATH.
12339 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12340 else
12341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12342 fi
12343 # FIXME: find the short name or the path components, as spaces are
12344 # common. (e.g. "Program Files" -> "PROGRA~1")
12345 ;;
12346 esac
12347
12348 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12349 postinstall_cmds='base_file=`basename \$file`~
12350 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12351 dldir=$destdir/`dirname \$dlpath`~
12352 test -d \$dldir || mkdir -p \$dldir~
12353 $install_prog $dir/$dlname \$dldir/$dlname'
12354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12355 dlpath=$dir/\$dldll~
12356 $RM \$dlpath'
12357 shlibpath_overrides_runpath=yes
12358 dynamic_linker='Win32 link.exe'
12359 ;;
12360
12361 *)
12362 # Assume MSVC and ICC wrapper
12363 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12364 dynamic_linker='Win32 ld.exe'
12365 ;;
12366 esac
12367 # FIXME: first we should search . and the directory the executable is in
12368 shlibpath_var=PATH
12369 ;;
12370
12371 darwin* | rhapsody*)
12372 dynamic_linker="$host_os dyld"
12373 version_type=darwin
12374 need_lib_prefix=no
12375 need_version=no
12376 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12377 soname_spec='$libname$release$major$shared_ext'
12378 shlibpath_overrides_runpath=yes
12379 shlibpath_var=DYLD_LIBRARY_PATH
12380 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12381
12382 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12384 ;;
12385
12386 dgux*)
12387 version_type=linux # correct to gnu/linux during the next big refactor
12388 need_lib_prefix=no
12389 need_version=no
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12391 soname_spec='$libname$release$shared_ext$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12393 ;;
12394
12395 freebsd* | dragonfly* | midnightbsd*)
12396 # DragonFly does not have aout. When/if they implement a new
12397 # versioning mechanism, adjust this.
12398 if test -x /usr/bin/objformat; then
12399 objformat=`/usr/bin/objformat`
12400 else
12401 case $host_os in
12402 freebsd[23].*) objformat=aout ;;
12403 *) objformat=elf ;;
12404 esac
12405 fi
12406 version_type=freebsd-$objformat
12407 case $version_type in
12408 freebsd-elf*)
12409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12410 soname_spec='$libname$release$shared_ext$major'
12411 need_version=no
12412 need_lib_prefix=no
12413 ;;
12414 freebsd-*)
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12416 need_version=yes
12417 ;;
12418 esac
12419 case $host_cpu in
12420 powerpc64)
12421 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12422 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 int test_pointer_size[sizeof (void *) - 5];
12426
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"
12429 then :
12430 shlibpath_var=LD_LIBRARY_PATH
12431 else case e in #(
12432 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12433 esac
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12436 ;;
12437 *)
12438 shlibpath_var=LD_LIBRARY_PATH
12439 ;;
12440 esac
12441 case $host_os in
12442 freebsd2.*)
12443 shlibpath_overrides_runpath=yes
12444 ;;
12445 freebsd3.[01]* | freebsdelf3.[01]*)
12446 shlibpath_overrides_runpath=yes
12447 hardcode_into_libs=yes
12448 ;;
12449 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12450 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12451 shlibpath_overrides_runpath=no
12452 hardcode_into_libs=yes
12453 ;;
12454 *) # from 4.6 on, and DragonFly
12455 shlibpath_overrides_runpath=yes
12456 hardcode_into_libs=yes
12457 ;;
12458 esac
12459 ;;
12460
12461 haiku*)
12462 version_type=linux # correct to gnu/linux during the next big refactor
12463 need_lib_prefix=no
12464 need_version=no
12465 dynamic_linker="$host_os runtime_loader"
12466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467 soname_spec='$libname$release$shared_ext$major'
12468 shlibpath_var=LIBRARY_PATH
12469 shlibpath_overrides_runpath=no
12470 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12471 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12472 hardcode_into_libs=no
12473 ;;
12474
12475 hpux9* | hpux10* | hpux11*)
12476 # Give a soname corresponding to the major version so that dld.sl refuses to
12477 # link against other versions.
12478 version_type=sunos
12479 need_lib_prefix=no
12480 need_version=no
12481 case $host_cpu in
12482 ia64*)
12483 shrext_cmds='.so'
12484 hardcode_into_libs=yes
12485 dynamic_linker="$host_os dld.so"
12486 shlibpath_var=LD_LIBRARY_PATH
12487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 soname_spec='$libname$release$shared_ext$major'
12490 if test 32 = "$HPUX_IA64_MODE"; then
12491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12492 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12493 else
12494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12495 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12496 fi
12497 ;;
12498 hppa*64*)
12499 shrext_cmds='.sl'
12500 hardcode_into_libs=yes
12501 dynamic_linker="$host_os dld.sl"
12502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12505 soname_spec='$libname$release$shared_ext$major'
12506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12508 ;;
12509 *)
12510 shrext_cmds='.sl'
12511 dynamic_linker="$host_os dld.sl"
12512 shlibpath_var=SHLIB_PATH
12513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12515 soname_spec='$libname$release$shared_ext$major'
12516 ;;
12517 esac
12518 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12519 postinstall_cmds='chmod 555 $lib'
12520 # or fails outright, so override atomically:
12521 install_override_mode=555
12522 ;;
12523
12524 interix[3-9]*)
12525 version_type=linux # correct to gnu/linux during the next big refactor
12526 need_lib_prefix=no
12527 need_version=no
12528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12529 soname_spec='$libname$release$shared_ext$major'
12530 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12531 shlibpath_var=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath=no
12533 hardcode_into_libs=yes
12534 ;;
12535
12536 irix5* | irix6* | nonstopux*)
12537 case $host_os in
12538 nonstopux*) version_type=nonstopux ;;
12539 *)
12540 if test yes = "$lt_cv_prog_gnu_ld"; then
12541 version_type=linux # correct to gnu/linux during the next big refactor
12542 else
12543 version_type=irix
12544 fi ;;
12545 esac
12546 need_lib_prefix=no
12547 need_version=no
12548 soname_spec='$libname$release$shared_ext$major'
12549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12550 case $host_os in
12551 irix5* | nonstopux*)
12552 libsuff= shlibsuff=
12553 ;;
12554 *)
12555 case $LD in # libtool.m4 will add one of these switches to LD
12556 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12557 libsuff= shlibsuff= libmagic=32-bit;;
12558 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12559 libsuff=32 shlibsuff=N32 libmagic=N32;;
12560 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12561 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12562 *) libsuff= shlibsuff= libmagic=never-match;;
12563 esac
12564 ;;
12565 esac
12566 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12567 shlibpath_overrides_runpath=no
12568 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12569 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12570 hardcode_into_libs=yes
12571 ;;
12572
12573 # No shared lib support for Linux oldld, aout, or coff.
12574 linux*oldld* | linux*aout* | linux*coff*)
12575 dynamic_linker=no
12576 ;;
12577
12578 linux*android*)
12579 version_type=none # Android doesn't support versioned libraries.
12580 need_lib_prefix=no
12581 need_version=no
12582 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12583 soname_spec='$libname$release$shared_ext'
12584 finish_cmds=
12585 shlibpath_var=LD_LIBRARY_PATH
12586 shlibpath_overrides_runpath=yes
12587
12588 # This implies no fast_install, which is unacceptable.
12589 # Some rework will be needed to allow for fast_install
12590 # before this can be enabled.
12591 hardcode_into_libs=yes
12592
12593 dynamic_linker='Android linker'
12594 # -rpath works at least for libraries that are not overridden by
12595 # libraries installed in system locations.
12596 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12597 ;;
12598
12599 # This must be glibc/ELF.
12600 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12601 version_type=linux # correct to gnu/linux during the next big refactor
12602 need_lib_prefix=no
12603 need_version=no
12604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605 soname_spec='$libname$release$shared_ext$major'
12606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12607 shlibpath_var=LD_LIBRARY_PATH
12608 shlibpath_overrides_runpath=no
12609
12610 # Some binutils ld are patched to set DT_RUNPATH
12611 if test ${lt_cv_shlibpath_overrides_runpath+y}
12612 then :
12613 printf %s "(cached) " >&6
12614 else case e in #(
12615 e) lt_cv_shlibpath_overrides_runpath=no
12616 save_LDFLAGS=$LDFLAGS
12617 save_libdir=$libdir
12618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622
12623 int
12624 main (void)
12625 {
12626
12627 ;
12628 return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_link "$LINENO"
12632 then :
12633 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12634 then :
12635 lt_cv_shlibpath_overrides_runpath=yes
12636 fi
12637 fi
12638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12639 conftest$ac_exeext conftest.$ac_ext
12640 LDFLAGS=$save_LDFLAGS
12641 libdir=$save_libdir
12642 ;;
12643 esac
12644 fi
12645
12646 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12647
12648 # This implies no fast_install, which is unacceptable.
12649 # Some rework will be needed to allow for fast_install
12650 # before this can be enabled.
12651 hardcode_into_libs=yes
12652
12653 # Ideally, we could use ldconfig to report *all* directories which are
12654 # searched for libraries, however this is still not possible. Aside from not
12655 # being certain /sbin/ldconfig is available, command
12656 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12657 # even though it is searched at run-time. Try to do the best guess by
12658 # appending ld.so.conf contents (and includes) to the search path.
12659 if test -f /etc/ld.so.conf; then
12660 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' ' '`
12661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12662 fi
12663
12664 # We used to test for /lib/ld.so.1 and disable shared libraries on
12665 # powerpc, because MkLinux only supported shared libraries with the
12666 # GNU dynamic linker. Since this was broken with cross compilers,
12667 # most powerpc-linux boxes support dynamic linking these days and
12668 # people can always --disable-shared, the test was removed, and we
12669 # assume the GNU/Linux dynamic linker is in use.
12670 dynamic_linker='GNU/Linux ld.so'
12671 ;;
12672
12673 netbsdelf*-gnu)
12674 version_type=linux
12675 need_lib_prefix=no
12676 need_version=no
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678 soname_spec='$libname$release$shared_ext$major'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12682 dynamic_linker='NetBSD ld.elf_so'
12683 enable_cxx_stdlib=yes
12684 stdlibflag=
12685 ;;
12686
12687 netbsdelf*-gnu)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 shlibpath_overrides_runpath=no
12695 hardcode_into_libs=yes
12696 dynamic_linker='NetBSD ld.elf_so'
12697 ;;
12698
12699 netbsd*)
12700 version_type=sunos
12701 need_lib_prefix=no
12702 need_version=no
12703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12706 dynamic_linker='NetBSD (a.out) ld.so'
12707 else
12708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12709 soname_spec='$libname$release$shared_ext$major'
12710 dynamic_linker='NetBSD ld.elf_so'
12711 fi
12712 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=yes
12714 hardcode_into_libs=yes
12715 enable_cxx_stdlib=yes
12716 stdlibflag=
12717 ;;
12718
12719 *-mlibc)
12720 version_type=linux # correct to gnu/linux during the next big refactor
12721 need_lib_prefix=no
12722 need_version=no
12723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12724 soname_spec='$libname$release$shared_ext$major'
12725 dynamic_linker='mlibc ld.so'
12726 shlibpath_var=LD_LIBRARY_PATH
12727 shlibpath_overrides_runpath=no
12728 hardcode_into_libs=yes
12729 ;;
12730
12731 newsos6)
12732 version_type=linux # correct to gnu/linux during the next big refactor
12733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=yes
12736 ;;
12737
12738 *nto* | *qnx*)
12739 version_type=qnx
12740 need_lib_prefix=no
12741 need_version=no
12742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12743 soname_spec='$libname$release$shared_ext$major'
12744 shlibpath_var=LD_LIBRARY_PATH
12745 shlibpath_overrides_runpath=no
12746 hardcode_into_libs=yes
12747 dynamic_linker='ldqnx.so'
12748 ;;
12749
12750 openbsd*)
12751 version_type=sunos
12752 sys_lib_dlsearch_path_spec=/usr/lib
12753 need_lib_prefix=no
12754 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12755 need_version=no
12756 else
12757 need_version=yes
12758 fi
12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12760 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12761 shlibpath_var=LD_LIBRARY_PATH
12762 shlibpath_overrides_runpath=yes
12763 ;;
12764
12765 os2*)
12766 libname_spec='$name'
12767 version_type=windows
12768 shrext_cmds=.dll
12769 need_version=no
12770 need_lib_prefix=no
12771 # OS/2 can only load a DLL with a base name of 8 characters or less.
12772 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12773 v=$($ECHO $release$versuffix | tr -d .-);
12774 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12775 $ECHO $n$v`$shared_ext'
12776 library_names_spec='${libname}_dll.$libext'
12777 dynamic_linker='OS/2 ld.exe'
12778 shlibpath_var=BEGINLIBPATH
12779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12781 postinstall_cmds='base_file=`basename \$file`~
12782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12783 dldir=$destdir/`dirname \$dlpath`~
12784 test -d \$dldir || mkdir -p \$dldir~
12785 $install_prog $dir/$dlname \$dldir/$dlname~
12786 chmod a+x \$dldir/$dlname~
12787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12789 fi'
12790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12791 dlpath=$dir/\$dldll~
12792 $RM \$dlpath'
12793 ;;
12794
12795 osf3* | osf4* | osf5*)
12796 version_type=osf
12797 need_lib_prefix=no
12798 need_version=no
12799 soname_spec='$libname$release$shared_ext$major'
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12804 ;;
12805
12806 rdos*)
12807 dynamic_linker=no
12808 ;;
12809
12810 serenity*)
12811 version_type=linux # correct to gnu/linux during the next big refactor
12812 need_lib_prefix=no
12813 need_version=no
12814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12815 soname_spec='$libname$release$shared_ext$major'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=no
12818 dynamic_linker='SerenityOS LibELF'
12819 ;;
12820
12821 solaris*)
12822 version_type=linux # correct to gnu/linux during the next big refactor
12823 need_lib_prefix=no
12824 need_version=no
12825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12826 soname_spec='$libname$release$shared_ext$major'
12827 shlibpath_var=LD_LIBRARY_PATH
12828 shlibpath_overrides_runpath=yes
12829 hardcode_into_libs=yes
12830 # ldd complains unless libraries are executable
12831 postinstall_cmds='chmod +x $lib'
12832 ;;
12833
12834 sunos4*)
12835 version_type=sunos
12836 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=yes
12840 if test yes = "$with_gnu_ld"; then
12841 need_lib_prefix=no
12842 fi
12843 need_version=yes
12844 ;;
12845
12846 sysv4 | sysv4.3*)
12847 version_type=linux # correct to gnu/linux during the next big refactor
12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12849 soname_spec='$libname$release$shared_ext$major'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 case $host_vendor in
12852 sni)
12853 shlibpath_overrides_runpath=no
12854 need_lib_prefix=no
12855 runpath_var=LD_RUN_PATH
12856 ;;
12857 siemens)
12858 need_lib_prefix=no
12859 ;;
12860 motorola)
12861 need_lib_prefix=no
12862 need_version=no
12863 shlibpath_overrides_runpath=no
12864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12865 ;;
12866 esac
12867 ;;
12868
12869 sysv4*MP*)
12870 if test -d /usr/nec; then
12871 version_type=linux # correct to gnu/linux during the next big refactor
12872 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12873 soname_spec='$libname$shared_ext.$major'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 fi
12876 ;;
12877
12878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12879 version_type=sco
12880 need_lib_prefix=no
12881 need_version=no
12882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12883 soname_spec='$libname$release$shared_ext$major'
12884 shlibpath_var=LD_LIBRARY_PATH
12885 shlibpath_overrides_runpath=yes
12886 hardcode_into_libs=yes
12887 if test yes = "$with_gnu_ld"; then
12888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12889 else
12890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12891 case $host_os in
12892 sco3.2v5*)
12893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12894 ;;
12895 esac
12896 fi
12897 sys_lib_dlsearch_path_spec='/usr/lib'
12898 ;;
12899
12900 tpf*)
12901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12902 version_type=linux # correct to gnu/linux during the next big refactor
12903 need_lib_prefix=no
12904 need_version=no
12905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=no
12908 hardcode_into_libs=yes
12909 ;;
12910
12911 uts4*)
12912 version_type=linux # correct to gnu/linux during the next big refactor
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 shlibpath_var=LD_LIBRARY_PATH
12916 ;;
12917
12918 emscripten*)
12919 version_type=none
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='$libname$release$shared_ext'
12923 soname_spec='$libname$release$shared_ext'
12924 finish_cmds=
12925 dynamic_linker="Emscripten linker"
12926 lt_prog_compiler_wl=
12927 lt_prog_compiler_pic=
12928 lt_prog_compiler_static=
12929
12930
12931 if test yes = "$GCC"; then
12932 lt_prog_compiler_wl='-Wl,'
12933 lt_prog_compiler_static='-static'
12934
12935 case $host_os in
12936 aix*)
12937 # All AIX code is PIC.
12938 if test ia64 = "$host_cpu"; then
12939 # AIX 5 now supports IA64 processor
12940 lt_prog_compiler_static='-Bstatic'
12941 fi
12942 lt_prog_compiler_pic='-fPIC'
12943 ;;
12944
12945 amigaos*)
12946 case $host_cpu in
12947 powerpc)
12948 # see comment about AmigaOS4 .so support
12949 lt_prog_compiler_pic='-fPIC'
12950 ;;
12951 m68k)
12952 # FIXME: we need at least 68020 code to build shared libraries, but
12953 # adding the '-m68020' flag to GCC prevents building anything better,
12954 # like '-m68040'.
12955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12956 ;;
12957 esac
12958 ;;
12959
12960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12961 # PIC is the default for these OSes.
12962 ;;
12963
12964 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12965 # This hack is so that the source file can tell whether it is being
12966 # built for inclusion in a dll (and should export symbols for example).
12967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12968 # (--disable-auto-import) libraries
12969 lt_prog_compiler_pic='-DDLL_EXPORT'
12970 case $host_os in
12971 os2*)
12972 lt_prog_compiler_static='$wl-static'
12973 ;;
12974 esac
12975 ;;
12976
12977 darwin* | rhapsody*)
12978 # PIC is the default on this platform
12979 # Common symbols not allowed in MH_DYLIB files
12980 lt_prog_compiler_pic='-fno-common'
12981 ;;
12982
12983 haiku*)
12984 # PIC is the default for Haiku.
12985 # The "-static" flag exists, but is broken.
12986 lt_prog_compiler_static=
12987 ;;
12988
12989 hpux*)
12990 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12991 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12992 # sets the default TLS model and affects inlining.
12993 case $host_cpu in
12994 hppa*64*)
12995 # +Z the default
12996 ;;
12997 *)
12998 lt_prog_compiler_pic='-fPIC'
12999 ;;
13000 esac
13001 ;;
13002
13003 interix[3-9]*)
13004 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13005 # Instead, we relocate shared libraries at runtime.
13006 ;;
13007
13008 msdosdjgpp*)
13009 # Just because we use GCC doesn't mean we suddenly get shared libraries
13010 # on systems that don't support them.
13011 lt_prog_compiler_can_build_shared=no
13012 enable_shared=no
13013 ;;
13014
13015 *nto* | *qnx*)
13016 # QNX uses GNU C++, but need to define -shared option too, otherwise
13017 # it will coredump.
13018 lt_prog_compiler_pic='-fPIC -shared'
13019 ;;
13020
13021 sysv4*MP*)
13022 if test -d /usr/nec; then
13023 lt_prog_compiler_pic=-Kconform_pic
13024 fi
13025 ;;
13026
13027 *)
13028 lt_prog_compiler_pic='-fPIC'
13029 ;;
13030 esac
13031
13032 case $cc_basename in
13033 nvcc*) # Cuda Compiler Driver 2.2
13034 lt_prog_compiler_wl='-Xlinker '
13035 if test -n "$lt_prog_compiler_pic"; then
13036 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13037 fi
13038 ;;
13039 esac
13040 else
13041 # PORTME Check for flag to pass linker flags through the system compiler.
13042 case $host_os in
13043 aix*)
13044 lt_prog_compiler_wl='-Wl,'
13045 if test ia64 = "$host_cpu"; then
13046 # AIX 5 now supports IA64 processor
13047 lt_prog_compiler_static='-Bstatic'
13048 else
13049 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13050 fi
13051 ;;
13052
13053 darwin* | rhapsody*)
13054 # PIC is the default on this platform
13055 # Common symbols not allowed in MH_DYLIB files
13056 lt_prog_compiler_pic='-fno-common'
13057 case $cc_basename in
13058 nagfor*)
13059 # NAG Fortran compiler
13060 lt_prog_compiler_wl='-Wl,-Wl,,'
13061 lt_prog_compiler_pic='-PIC'
13062 lt_prog_compiler_static='-Bstatic'
13063 ;;
13064 esac
13065 ;;
13066
13067 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13068 # This hack is so that the source file can tell whether it is being
13069 # built for inclusion in a dll (and should export symbols for example).
13070 lt_prog_compiler_pic='-DDLL_EXPORT'
13071 case $host_os in
13072 os2*)
13073 lt_prog_compiler_static='$wl-static'
13074 ;;
13075 esac
13076 ;;
13077
13078 hpux9* | hpux10* | hpux11*)
13079 lt_prog_compiler_wl='-Wl,'
13080 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13081 # not for PA HP-UX.
13082 case $host_cpu in
13083 hppa*64*|ia64*)
13084 # +Z the default
13085 ;;
13086 *)
13087 lt_prog_compiler_pic='+Z'
13088 ;;
13089 esac
13090 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13091 lt_prog_compiler_static='$wl-a ${wl}archive'
13092 ;;
13093
13094 irix5* | irix6* | nonstopux*)
13095 lt_prog_compiler_wl='-Wl,'
13096 # PIC (with -KPIC) is the default.
13097 lt_prog_compiler_static='-non_shared'
13098 ;;
13099
13100 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13101 case $cc_basename in
13102 # old Intel for x86_64, which still supported -KPIC.
13103 ecc*)
13104 lt_prog_compiler_wl='-Wl,'
13105 lt_prog_compiler_pic='-KPIC'
13106 lt_prog_compiler_static='-static'
13107 ;;
13108 *flang* | ftn | f18* | f95*)
13109 # Flang compiler.
13110 lt_prog_compiler_wl='-Wl,'
13111 lt_prog_compiler_pic='-fPIC'
13112 lt_prog_compiler_static='-static'
13113 ;;
13114 # flang / f18. f95 an alias for gfortran or flang on Debian
13115 flang* | f18* | f95*)
13116 lt_prog_compiler_wl='-Wl,'
13117 lt_prog_compiler_pic='-fPIC'
13118 lt_prog_compiler_static='-static'
13119 ;;
13120 # icc used to be incompatible with GCC.
13121 # ICC 10 doesn't accept -KPIC any more.
13122 icc* | ifort*)
13123 lt_prog_compiler_wl='-Wl,'
13124 lt_prog_compiler_pic='-fPIC'
13125 lt_prog_compiler_static='-static'
13126 ;;
13127 # Lahey Fortran 8.1.
13128 lf95*)
13129 lt_prog_compiler_wl='-Wl,'
13130 lt_prog_compiler_pic='--shared'
13131 lt_prog_compiler_static='--static'
13132 ;;
13133 nagfor*)
13134 # NAG Fortran compiler
13135 lt_prog_compiler_wl='-Wl,-Wl,,'
13136 lt_prog_compiler_pic='-PIC'
13137 lt_prog_compiler_static='-Bstatic'
13138 ;;
13139 tcc*)
13140 # Fabrice Bellard et al's Tiny C Compiler
13141 lt_prog_compiler_wl='-Wl,'
13142 lt_prog_compiler_pic='-fPIC'
13143 lt_prog_compiler_static='-static'
13144 ;;
13145 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13146 # Portland Group compilers (*not* the Pentium gcc compiler,
13147 # which looks to be a dead project)
13148 lt_prog_compiler_wl='-Wl,'
13149 lt_prog_compiler_pic='-fpic'
13150 lt_prog_compiler_static='-Bstatic'
13151 ;;
13152 ccc*)
13153 lt_prog_compiler_wl='-Wl,'
13154 # All Alpha code is PIC.
13155 lt_prog_compiler_static='-non_shared'
13156 ;;
13157 xl* | bgxl* | bgf* | mpixl*)
13158 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13159 lt_prog_compiler_wl='-Wl,'
13160 lt_prog_compiler_pic='-qpic'
13161 lt_prog_compiler_static='-qstaticlink'
13162 ;;
13163 *)
13164 case `$CC -V 2>&1 | $SED 5q` in
13165 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13166 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13167 lt_prog_compiler_pic='-KPIC'
13168 lt_prog_compiler_static='-Bstatic'
13169 lt_prog_compiler_wl=''
13170 ;;
13171 *Sun\ F* | *Sun*Fortran*)
13172 lt_prog_compiler_pic='-KPIC'
13173 lt_prog_compiler_static='-Bstatic'
13174 lt_prog_compiler_wl='-Qoption ld '
13175 ;;
13176 *Sun\ C*)
13177 # Sun C 5.9
13178 lt_prog_compiler_pic='-KPIC'
13179 lt_prog_compiler_static='-Bstatic'
13180 lt_prog_compiler_wl='-Wl,'
13181 ;;
13182 *Intel*\ [CF]*Compiler*)
13183 lt_prog_compiler_wl='-Wl,'
13184 lt_prog_compiler_pic='-fPIC'
13185 lt_prog_compiler_static='-static'
13186 ;;
13187 *Portland\ Group*)
13188 lt_prog_compiler_wl='-Wl,'
13189 lt_prog_compiler_pic='-fpic'
13190 lt_prog_compiler_static='-Bstatic'
13191 ;;
13192 esac
13193 ;;
13194 esac
13195 ;;
13196
13197 newsos6)
13198 lt_prog_compiler_pic='-KPIC'
13199 lt_prog_compiler_static='-Bstatic'
13200 ;;
13201
13202 *-mlibc)
13203 lt_prog_compiler_wl='-Wl,'
13204 lt_prog_compiler_pic='-fPIC'
13205 lt_prog_compiler_static='-static'
13206 ;;
13207
13208 *nto* | *qnx*)
13209 # QNX uses GNU C++, but need to define -shared option too, otherwise
13210 # it will coredump.
13211 lt_prog_compiler_pic='-fPIC -shared'
13212 ;;
13213
13214 osf3* | osf4* | osf5*)
13215 lt_prog_compiler_wl='-Wl,'
13216 # All OSF/1 code is PIC.
13217 lt_prog_compiler_static='-non_shared'
13218 ;;
13219
13220 rdos*)
13221 lt_prog_compiler_static='-non_shared'
13222 ;;
13223
13224 serenity*)
13225 ;;
13226
13227 solaris*)
13228 lt_prog_compiler_pic='-KPIC'
13229 lt_prog_compiler_static='-Bstatic'
13230 case $cc_basename in
13231 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13232 lt_prog_compiler_wl='-Qoption ld ';;
13233 *)
13234 lt_prog_compiler_wl='-Wl,';;
13235 esac
13236 ;;
13237
13238 sunos4*)
13239 lt_prog_compiler_wl='-Qoption ld '
13240 lt_prog_compiler_pic='-PIC'
13241 lt_prog_compiler_static='-Bstatic'
13242 ;;
13243
13244 sysv4 | sysv4.2uw2* | sysv4.3*)
13245 lt_prog_compiler_wl='-Wl,'
13246 lt_prog_compiler_pic='-KPIC'
13247 lt_prog_compiler_static='-Bstatic'
13248 ;;
13249
13250 sysv4*MP*)
13251 if test -d /usr/nec; then
13252 lt_prog_compiler_pic='-Kconform_pic'
13253 lt_prog_compiler_static='-Bstatic'
13254 fi
13255 ;;
13256
13257 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13258 lt_prog_compiler_wl='-Wl,'
13259 lt_prog_compiler_pic='-KPIC'
13260 lt_prog_compiler_static='-Bstatic'
13261 ;;
13262
13263 unicos*)
13264 lt_prog_compiler_wl='-Wl,'
13265 lt_prog_compiler_can_build_shared=no
13266 ;;
13267
13268 uts4*)
13269 lt_prog_compiler_pic='-pic'
13270 lt_prog_compiler_static='-Bstatic'
13271 ;;
13272
13273 *)
13274 lt_prog_compiler_can_build_shared=no
13275 ;;
13276 esac
13277 fi
13278
13279 case $host_os in
13280 # For platforms that do not support PIC, -DPIC is meaningless:
13281 *djgpp*)
13282 lt_prog_compiler_pic=
13283 ;;
13284 *)
13285 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13286 ;;
13287 esac
13288
13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13290 printf %s "checking for $compiler option to produce PIC... " >&6; }
13291 if test ${lt_cv_prog_compiler_pic+y}
13292 then :
13293 printf %s "(cached) " >&6
13294 else case e in #(
13295 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13296 esac
13297 fi
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13299 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13300 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13301
13302 #
13303 # Check to make sure the PIC flag actually works.
13304 #
13305 if test -n "$lt_prog_compiler_pic"; then
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13307 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13308 if test ${lt_cv_prog_compiler_pic_works+y}
13309 then :
13310 printf %s "(cached) " >&6
13311 else case e in #(
13312 e) lt_cv_prog_compiler_pic_works=no
13313 ac_outfile=conftest.$ac_objext
13314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13315 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13316 # Insert the option either (1) after the last *FLAGS variable, or
13317 # (2) before a word containing "conftest.", or (3) at the end.
13318 # Note that $ac_compile itself does not contain backslashes and begins
13319 # with a dollar sign (not a hyphen), so the echo should work correctly.
13320 # The option is referenced via a variable to avoid confusing sed.
13321 lt_compile=`echo "$ac_compile" | $SED \
13322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13324 -e 's:$: $lt_compiler_flag:'`
13325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13326 (eval "$lt_compile" 2>conftest.err)
13327 ac_status=$?
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 if (exit $ac_status) && test -s "$ac_outfile"; then
13331 # The compiler can only warn and ignore the option if not recognized
13332 # So say no if there are warnings other than the usual output.
13333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13336 lt_cv_prog_compiler_pic_works=yes
13337 fi
13338 fi
13339 $RM conftest*
13340 ;;
13341 esac
13342 fi
13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13344 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13345
13346 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13347 case $lt_prog_compiler_pic in
13348 "" | " "*) ;;
13349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13350 esac
13351 else
13352 lt_prog_compiler_pic=
13353 lt_prog_compiler_can_build_shared=no
13354 fi
13355
13356 fi
13357
13358
13359
13360
13361
13362 #
13363 # Check to make sure the static flag actually works.
13364 #
13365 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13367 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13368 if test ${lt_cv_prog_compiler_static_works+y}
13369 then :
13370 printf %s "(cached) " >&6
13371 else case e in #(
13372 e) lt_cv_prog_compiler_static_works=no
13373 save_LDFLAGS=$LDFLAGS
13374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13377 # The linker can only warn and ignore the option if not recognized
13378 # So say no if there are warnings
13379 if test -s conftest.err; then
13380 # Append any errors to the config.log.
13381 cat conftest.err 1>&5
13382 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13384 if diff conftest.exp conftest.er2 >/dev/null; then
13385 lt_cv_prog_compiler_static_works=yes
13386 fi
13387 else
13388 lt_cv_prog_compiler_static_works=yes
13389 fi
13390 fi
13391 $RM -r conftest*
13392 LDFLAGS=$save_LDFLAGS
13393 ;;
13394 esac
13395 fi
13396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13397 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13398
13399 if test yes = "$lt_cv_prog_compiler_static_works"; then
13400 :
13401 else
13402 lt_prog_compiler_static=
13403 fi
13404
13405
13406
13407 ='-fPIC'
13408 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13409 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'
13410 archive_cmds_need_lc=no
13411 no_undefined_flag=
13412 ;;
13413
13414 *)
13415 dynamic_linker=no
13416 ;;
13417 esac
13418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13419 printf "%s\n" "$dynamic_linker" >&6; }
13420 test no = "$dynamic_linker" && can_build_shared=no
13421
13422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13423 if test yes = "$GCC"; then
13424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13425 fi
13426
13427 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13428 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13429 fi
13430
13431 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13432 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13433 fi
13434
13435 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13436 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13437
13438 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13439 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13440
13441 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13442 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13541 printf %s "checking how to hardcode library paths into programs... " >&6; }
13542 hardcode_action=
13543 if test -n "$hardcode_libdir_flag_spec" ||
13544 test -n "$runpath_var" ||
13545 test yes = "$hardcode_automatic"; then
13546
13547 # We can hardcode non-existent directories.
13548 if test no != "$hardcode_direct" &&
13549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550 # have to relink, otherwise we might link with an installed library
13551 # when we should be linking with a yet-to-be-installed one
13552 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13553 test no != "$hardcode_minus_L"; then
13554 # Linking always hardcodes the temporary library directory.
13555 hardcode_action=relink
13556 else
13557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558 hardcode_action=immediate
13559 fi
13560 else
13561 # We cannot hardcode anything, or else we can only hardcode existing
13562 # directories.
13563 hardcode_action=unsupported
13564 fi
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13566 printf "%s\n" "$hardcode_action" >&6; }
13567
13568 if test relink = "$hardcode_action" ||
13569 test yes = "$inherit_rpath"; then
13570 # Fast installation is not supported
13571 enable_fast_install=no
13572 elif test yes = "$shlibpath_overrides_runpath" ||
13573 test no = "$enable_shared"; then
13574 # Fast installation is not necessary
13575 enable_fast_install=needless
13576 fi
13577
13578
13579
13580
13581
13582
13583 if test yes != "$enable_dlopen"; then
13584 enable_dlopen=unknown
13585 enable_dlopen_self=unknown
13586 enable_dlopen_self_static=unknown
13587 else
13588 lt_cv_dlopen=no
13589 lt_cv_dlopen_libs=
13590
13591 case $host_os in
13592 beos*)
13593 lt_cv_dlopen=load_add_on
13594 lt_cv_dlopen_libs=
13595 lt_cv_dlopen_self=yes
13596 ;;
13597
13598 mingw* | windows* | pw32* | cegcc*)
13599 lt_cv_dlopen=LoadLibrary
13600 lt_cv_dlopen_libs=
13601 ;;
13602
13603 cygwin*)
13604 lt_cv_dlopen=dlopen
13605 lt_cv_dlopen_libs=
13606 ;;
13607
13608 darwin*)
13609 # if libdl is installed we need to link against it
13610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13611 printf %s "checking for dlopen in -ldl... " >&6; }
13612 if test ${ac_cv_lib_dl_dlopen+y}
13613 then :
13614 printf %s "(cached) " >&6
13615 else case e in #(
13616 e) ac_check_lib_save_LIBS=$LIBS
13617 LIBS="-ldl $LIBS"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply.
13624 The 'extern "C"' is for builds by C++ compilers;
13625 although this is not generally supported in C code supporting it here
13626 has little cost and some practical benefit (sr 110532). */
13627 #ifdef __cplusplus
13628 extern "C"
13629 #endif
13630 char dlopen (void);
13631 int
13632 main (void)
13633 {
13634 return dlopen ();
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_link "$LINENO"
13640 then :
13641 ac_cv_lib_dl_dlopen=yes
13642 else case e in #(
13643 e) ac_cv_lib_dl_dlopen=no ;;
13644 esac
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13647 conftest$ac_exeext conftest.$ac_ext
13648 LIBS=$ac_check_lib_save_LIBS ;;
13649 esac
13650 fi
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13652 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13653 if test "x$ac_cv_lib_dl_dlopen" = xyes
13654 then :
13655 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13656 else case e in #(
13657 e)
13658 lt_cv_dlopen=dyld
13659 lt_cv_dlopen_libs=
13660 lt_cv_dlopen_self=yes
13661 ;;
13662 esac
13663 fi
13664
13665 ;;
13666
13667 tpf*)
13668 # Don't try to run any link tests for TPF. We know it's impossible
13669 # because TPF is a cross-compiler, and we know how we open DSOs.
13670 lt_cv_dlopen=dlopen
13671 lt_cv_dlopen_libs=
13672 lt_cv_dlopen_self=no
13673 ;;
13674
13675 *)
13676 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13677 if test "x$ac_cv_func_shl_load" = xyes
13678 then :
13679 lt_cv_dlopen=shl_load
13680 else case e in #(
13681 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13682 printf %s "checking for shl_load in -ldld... " >&6; }
13683 if test ${ac_cv_lib_dld_shl_load+y}
13684 then :
13685 printf %s "(cached) " >&6
13686 else case e in #(
13687 e) ac_check_lib_save_LIBS=$LIBS
13688 LIBS="-ldld $LIBS"
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 /* Override any GCC internal prototype to avoid an error.
13693 Use char because int might match the return type of a GCC
13694 builtin and then its argument prototype would still apply.
13695 The 'extern "C"' is for builds by C++ compilers;
13696 although this is not generally supported in C code supporting it here
13697 has little cost and some practical benefit (sr 110532). */
13698 #ifdef __cplusplus
13699 extern "C"
13700 #endif
13701 char shl_load (void);
13702 int
13703 main (void)
13704 {
13705 return shl_load ();
13706 ;
13707 return 0;
13708 }
13709 _ACEOF
13710 if ac_fn_c_try_link "$LINENO"
13711 then :
13712 ac_cv_lib_dld_shl_load=yes
13713 else case e in #(
13714 e) ac_cv_lib_dld_shl_load=no ;;
13715 esac
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS ;;
13720 esac
13721 fi
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13723 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13724 if test "x$ac_cv_lib_dld_shl_load" = xyes
13725 then :
13726 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13727 else case e in #(
13728 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13729 if test "x$ac_cv_func_dlopen" = xyes
13730 then :
13731 lt_cv_dlopen=dlopen
13732 else case e in #(
13733 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13734 printf %s "checking for dlopen in -ldl... " >&6; }
13735 if test ${ac_cv_lib_dl_dlopen+y}
13736 then :
13737 printf %s "(cached) " >&6
13738 else case e in #(
13739 e) ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-ldl $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply.
13747 The 'extern "C"' is for builds by C++ compilers;
13748 although this is not generally supported in C code supporting it here
13749 has little cost and some practical benefit (sr 110532). */
13750 #ifdef __cplusplus
13751 extern "C"
13752 #endif
13753 char dlopen (void);
13754 int
13755 main (void)
13756 {
13757 return dlopen ();
13758 ;
13759 return 0;
13760 }
13761 _ACEOF
13762 if ac_fn_c_try_link "$LINENO"
13763 then :
13764 ac_cv_lib_dl_dlopen=yes
13765 else case e in #(
13766 e) ac_cv_lib_dl_dlopen=no ;;
13767 esac
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13770 conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS ;;
13772 esac
13773 fi
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13775 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13776 if test "x$ac_cv_lib_dl_dlopen" = xyes
13777 then :
13778 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13779 else case e in #(
13780 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13781 printf %s "checking for dlopen in -lsvld... " >&6; }
13782 if test ${ac_cv_lib_svld_dlopen+y}
13783 then :
13784 printf %s "(cached) " >&6
13785 else case e in #(
13786 e) ac_check_lib_save_LIBS=$LIBS
13787 LIBS="-lsvld $LIBS"
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply.
13794 The 'extern "C"' is for builds by C++ compilers;
13795 although this is not generally supported in C code supporting it here
13796 has little cost and some practical benefit (sr 110532). */
13797 #ifdef __cplusplus
13798 extern "C"
13799 #endif
13800 char dlopen (void);
13801 int
13802 main (void)
13803 {
13804 return dlopen ();
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_link "$LINENO"
13810 then :
13811 ac_cv_lib_svld_dlopen=yes
13812 else case e in #(
13813 e) ac_cv_lib_svld_dlopen=no ;;
13814 esac
13815 fi
13816 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13817 conftest$ac_exeext conftest.$ac_ext
13818 LIBS=$ac_check_lib_save_LIBS ;;
13819 esac
13820 fi
13821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13822 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13823 if test "x$ac_cv_lib_svld_dlopen" = xyes
13824 then :
13825 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13826 else case e in #(
13827 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13828 printf %s "checking for dld_link in -ldld... " >&6; }
13829 if test ${ac_cv_lib_dld_dld_link+y}
13830 then :
13831 printf %s "(cached) " >&6
13832 else case e in #(
13833 e) ac_check_lib_save_LIBS=$LIBS
13834 LIBS="-ldld $LIBS"
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13837
13838 /* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply.
13841 The 'extern "C"' is for builds by C++ compilers;
13842 although this is not generally supported in C code supporting it here
13843 has little cost and some practical benefit (sr 110532). */
13844 #ifdef __cplusplus
13845 extern "C"
13846 #endif
13847 char dld_link (void);
13848 int
13849 main (void)
13850 {
13851 return dld_link ();
13852 ;
13853 return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_link "$LINENO"
13857 then :
13858 ac_cv_lib_dld_dld_link=yes
13859 else case e in #(
13860 e) ac_cv_lib_dld_dld_link=no ;;
13861 esac
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13864 conftest$ac_exeext conftest.$ac_ext
13865 LIBS=$ac_check_lib_save_LIBS ;;
13866 esac
13867 fi
13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13869 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13870 if test "x$ac_cv_lib_dld_dld_link" = xyes
13871 then :
13872 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13873 fi
13874
13875 ;;
13876 esac
13877 fi
13878
13879 ;;
13880 esac
13881 fi
13882
13883 ;;
13884 esac
13885 fi
13886
13887 ;;
13888 esac
13889 fi
13890
13891 ;;
13892 esac
13893 fi
13894
13895 ;;
13896 esac
13897
13898 if test no = "$lt_cv_dlopen"; then
13899 enable_dlopen=no
13900 else
13901 enable_dlopen=yes
13902 fi
13903
13904 case $lt_cv_dlopen in
13905 dlopen)
13906 save_CPPFLAGS=$CPPFLAGS
13907 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13908
13909 save_LDFLAGS=$LDFLAGS
13910 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13911
13912 save_LIBS=$LIBS
13913 LIBS="$lt_cv_dlopen_libs $LIBS"
13914
13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13916 printf %s "checking whether a program can dlopen itself... " >&6; }
13917 if test ${lt_cv_dlopen_self+y}
13918 then :
13919 printf %s "(cached) " >&6
13920 else case e in #(
13921 e) if test yes = "$cross_compiling"; then :
13922 lt_cv_dlopen_self=cross
13923 else
13924 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13925 lt_status=$lt_dlunknown
13926 cat > conftest.$ac_ext <<_LT_EOF
13927 #line $LINENO "configure"
13928 #include "confdefs.h"
13929
13930 #if HAVE_DLFCN_H
13931 #include <dlfcn.h>
13932 #endif
13933
13934 #include <stdio.h>
13935
13936 #ifdef RTLD_GLOBAL
13937 # define LT_DLGLOBAL RTLD_GLOBAL
13938 #else
13939 # ifdef DL_GLOBAL
13940 # define LT_DLGLOBAL DL_GLOBAL
13941 # else
13942 # define LT_DLGLOBAL 0
13943 # endif
13944 #endif
13945
13946 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13947 find out it does not work in some platform. */
13948 #ifndef LT_DLLAZY_OR_NOW
13949 # ifdef RTLD_LAZY
13950 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13951 # else
13952 # ifdef DL_LAZY
13953 # define LT_DLLAZY_OR_NOW DL_LAZY
13954 # else
13955 # ifdef RTLD_NOW
13956 # define LT_DLLAZY_OR_NOW RTLD_NOW
13957 # else
13958 # ifdef DL_NOW
13959 # define LT_DLLAZY_OR_NOW DL_NOW
13960 # else
13961 # define LT_DLLAZY_OR_NOW 0
13962 # endif
13963 # endif
13964 # endif
13965 # endif
13966 #endif
13967
13968 /* When -fvisibility=hidden is used, assume the code has been annotated
13969 correspondingly for the symbols needed. */
13970 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13971 int fnord (void) __attribute__((visibility("default")));
13972 #endif
13973
13974 int fnord (void) { return 42; }
13975 int main (void)
13976 {
13977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13978 int status = $lt_dlunknown;
13979
13980 if (self)
13981 {
13982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13983 else
13984 {
13985 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13986 else puts (dlerror ());
13987 }
13988 /* dlclose (self); */
13989 }
13990 else
13991 puts (dlerror ());
13992
13993 return status;
13994 }
13995 _LT_EOF
13996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13997 (eval $ac_link) 2>&5
13998 ac_status=$?
13999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14000 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14001 (./conftest; exit; ) >&5 2>/dev/null
14002 lt_status=$?
14003 case x$lt_status in
14004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14006 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14007 esac
14008 else :
14009 # compilation failed
14010 lt_cv_dlopen_self=no
14011 fi
14012 fi
14013 rm -fr conftest*
14014
14015 ;;
14016 esac
14017 fi
14018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14019 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14020
14021 if test yes = "$lt_cv_dlopen_self"; then
14022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14024 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14025 if test ${lt_cv_dlopen_self_static+y}
14026 then :
14027 printf %s "(cached) " >&6
14028 else case e in #(
14029 e) if test yes = "$cross_compiling"; then :
14030 lt_cv_dlopen_self_static=cross
14031 else
14032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14033 lt_status=$lt_dlunknown
14034 cat > conftest.$ac_ext <<_LT_EOF
14035 #line $LINENO "configure"
14036 #include "confdefs.h"
14037
14038 #if HAVE_DLFCN_H
14039 #include <dlfcn.h>
14040 #endif
14041
14042 #include <stdio.h>
14043
14044 #ifdef RTLD_GLOBAL
14045 # define LT_DLGLOBAL RTLD_GLOBAL
14046 #else
14047 # ifdef DL_GLOBAL
14048 # define LT_DLGLOBAL DL_GLOBAL
14049 # else
14050 # define LT_DLGLOBAL 0
14051 # endif
14052 #endif
14053
14054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14055 find out it does not work in some platform. */
14056 #ifndef LT_DLLAZY_OR_NOW
14057 # ifdef RTLD_LAZY
14058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14059 # else
14060 # ifdef DL_LAZY
14061 # define LT_DLLAZY_OR_NOW DL_LAZY
14062 # else
14063 # ifdef RTLD_NOW
14064 # define LT_DLLAZY_OR_NOW RTLD_NOW
14065 # else
14066 # ifdef DL_NOW
14067 # define LT_DLLAZY_OR_NOW DL_NOW
14068 # else
14069 # define LT_DLLAZY_OR_NOW 0
14070 # endif
14071 # endif
14072 # endif
14073 # endif
14074 #endif
14075
14076 /* When -fvisibility=hidden is used, assume the code has been annotated
14077 correspondingly for the symbols needed. */
14078 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14079 int fnord (void) __attribute__((visibility("default")));
14080 #endif
14081
14082 int fnord (void) { return 42; }
14083 int main (void)
14084 {
14085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14086 int status = $lt_dlunknown;
14087
14088 if (self)
14089 {
14090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14091 else
14092 {
14093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14094 else puts (dlerror ());
14095 }
14096 /* dlclose (self); */
14097 }
14098 else
14099 puts (dlerror ());
14100
14101 return status;
14102 }
14103 _LT_EOF
14104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14105 (eval $ac_link) 2>&5
14106 ac_status=$?
14107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14108 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14109 (./conftest; exit; ) >&5 2>/dev/null
14110 lt_status=$?
14111 case x$lt_status in
14112 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14113 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14114 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14115 esac
14116 else :
14117 # compilation failed
14118 lt_cv_dlopen_self_static=no
14119 fi
14120 fi
14121 rm -fr conftest*
14122
14123 ;;
14124 esac
14125 fi
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14127 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14128 fi
14129
14130 CPPFLAGS=$save_CPPFLAGS
14131 LDFLAGS=$save_LDFLAGS
14132 LIBS=$save_LIBS
14133 ;;
14134 esac
14135
14136 case $lt_cv_dlopen_self in
14137 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14138 *) enable_dlopen_self=unknown ;;
14139 esac
14140
14141 case $lt_cv_dlopen_self_static in
14142 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14143 *) enable_dlopen_self_static=unknown ;;
14144 esac
14145 fi
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163 striplib=
14164 old_striplib=
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14166 printf %s "checking whether stripping libraries is possible... " >&6; }
14167 if test -z "$STRIP"; then
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 printf "%s\n" "no" >&6; }
14170 else
14171 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14172 old_striplib="$STRIP --strip-debug"
14173 striplib="$STRIP --strip-unneeded"
14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14175 printf "%s\n" "yes" >&6; }
14176 else
14177 case $host_os in
14178 darwin*)
14179 # FIXME - insert some real tests, host_os isn't really good enough
14180 striplib="$STRIP -x"
14181 old_striplib="$STRIP -S"
14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14183 printf "%s\n" "yes" >&6; }
14184 ;;
14185 freebsd*)
14186 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14187 old_striplib="$STRIP --strip-debug"
14188 striplib="$STRIP --strip-unneeded"
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190 printf "%s\n" "yes" >&6; }
14191 else
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 printf "%s\n" "no" >&6; }
14194 fi
14195 ;;
14196 *)
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 printf "%s\n" "no" >&6; }
14199 ;;
14200 esac
14201 fi
14202 fi
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215 # Report what library types will actually be built
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14217 printf %s "checking if libtool supports shared libraries... " >&6; }
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14219 printf "%s\n" "$can_build_shared" >&6; }
14220
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14222 printf %s "checking whether to build shared libraries... " >&6; }
14223 test no = "$can_build_shared" && enable_shared=no
14224
14225 # On AIX, shared libraries and static libraries use the same namespace, and
14226 # are all built from PIC.
14227 case $host_os in
14228 aix3*)
14229 test yes = "$enable_shared" && enable_static=no
14230 if test -n "$RANLIB"; then
14231 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14232 postinstall_cmds='$RANLIB $lib'
14233 fi
14234 ;;
14235
14236 aix[4-9]*)
14237 if test ia64 != "$host_cpu"; then
14238 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14239 yes,aix,yes) ;; # shared object as lib.so file only
14240 yes,svr4,*) ;; # shared object as lib.so archive member only
14241 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14242 esac
14243 fi
14244 ;;
14245 esac
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14247 printf "%s\n" "$enable_shared" >&6; }
14248
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14250 printf %s "checking whether to build static libraries... " >&6; }
14251 # Make sure either enable_shared or enable_static is yes.
14252 test yes = "$enable_shared" || enable_static=yes
14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14254 printf "%s\n" "$enable_static" >&6; }
14255
14256
14257
14258
14259 fi
14260 ac_ext=c
14261 ac_cpp='$CPP $CPPFLAGS'
14262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265
14266 CC=$lt_save_CC
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282 ac_config_commands="$ac_config_commands libtool"
14283
14284
14285
14286
14287 # Only expand once:
14288
14289
14290
14291 # Check whether --enable-lfs was given.
14292 if test ${enable_lfs+y}
14293 then :
14294 enableval=$enable_lfs;
14295 if test "x$enableval" = "xyes" ; then
14296 NBD_LFS=1
14297 else
14298 NBD_LFS=0
14299 fi
14300
14301 else case e in #(
14302 e) NBD_LFS=1
14303 ;;
14304 esac
14305 fi
14306
14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Large File Support should be enabled" >&5
14308 printf %s "checking whether Large File Support should be enabled... " >&6; }
14309 if test $NBD_LFS -eq 1; then
14310
14311 printf "%s\n" "#define NBD_LFS 1" >>confdefs.h
14312
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14314 printf "%s\n" "yes" >&6; }
14315 else
14316 printf "%s\n" "#define NBD_LFS 0" >>confdefs.h
14317
14318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319 printf "%s\n" "no" >&6; }
14320 fi
14321
14322 # Check whether --enable-syslog was given.
14323 if test ${enable_syslog+y}
14324 then :
14325 enableval=$enable_syslog;
14326 if test "x$enableval" = "xyes" ; then
14327 ISSERVER=1
14328 else
14329 ISSERVER=0
14330 fi
14331
14332 else case e in #(
14333 e) ISSERVER=0
14334 ;;
14335 esac
14336 fi
14337
14338
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether syslog logging is requested" >&5
14340 printf %s "checking whether syslog logging is requested... " >&6; }
14341 if test $ISSERVER -eq 1; then
14342
14343 printf "%s\n" "#define ISSERVER 1" >>confdefs.h
14344
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14346 printf "%s\n" "yes" >&6; }
14347 else
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 printf "%s\n" "no" >&6; }
14350 fi
14351
14352 # Check whether --enable-debug was given.
14353 if test ${enable_debug+y}
14354 then :
14355 enableval=$enable_debug;
14356 if test "x$enableval" = "xyes"; then
14357 DODBG=1
14358 else
14359 DODBG=0
14360 fi
14361
14362 else case e in #(
14363 e) DODBG=0
14364 ;;
14365 esac
14366 fi
14367
14368
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a debugging version is requested" >&5
14370 printf %s "checking whether a debugging version is requested... " >&6; }
14371 if test $DODBG -eq 1; then
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14373 printf "%s\n" "yes" >&6; }
14374 if test $ISSERVER -eq 1; then
14375 as_fn_error $? "You requested both syslog logging and a debugging version of the server. Bad idea!" "$LINENO" 5
14376 fi
14377
14378 printf "%s\n" "#define DODBG 1" >>confdefs.h
14379
14380
14381 printf "%s\n" "#define NOFORK 1" >>confdefs.h
14382
14383 else
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14385 printf "%s\n" "no" >&6; }
14386 fi
14387
14388 ac_ext=c
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393 if test -n "$ac_tool_prefix"; then
14394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14397 printf %s "checking for $ac_word... " >&6; }
14398 if test ${ac_cv_prog_CC+y}
14399 then :
14400 printf %s "(cached) " >&6
14401 else case e in #(
14402 e) if test -n "$CC"; then
14403 ac_cv_prog_CC="$CC" # Let the user override the test.
14404 else
14405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406 for as_dir in $PATH
14407 do
14408 IFS=$as_save_IFS
14409 case $as_dir in #(((
14410 '') as_dir=./ ;;
14411 */) ;;
14412 *) as_dir=$as_dir/ ;;
14413 esac
14414 for ac_exec_ext in '' $ac_executable_extensions; do
14415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14418 break 2
14419 fi
14420 done
14421 done
14422 IFS=$as_save_IFS
14423
14424 fi ;;
14425 esac
14426 fi
14427 CC=$ac_cv_prog_CC
14428 if test -n "$CC"; then
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14430 printf "%s\n" "$CC" >&6; }
14431 else
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14433 printf "%s\n" "no" >&6; }
14434 fi
14435
14436
14437 fi
14438 if test -z "$ac_cv_prog_CC"; then
14439 ac_ct_CC=$CC
14440 # Extract the first word of "gcc", so it can be a program name with args.
14441 set dummy gcc; ac_word=$2
14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443 printf %s "checking for $ac_word... " >&6; }
14444 if test ${ac_cv_prog_ac_ct_CC+y}
14445 then :
14446 printf %s "(cached) " >&6
14447 else case e in #(
14448 e) if test -n "$ac_ct_CC"; then
14449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14450 else
14451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452 for as_dir in $PATH
14453 do
14454 IFS=$as_save_IFS
14455 case $as_dir in #(((
14456 '') as_dir=./ ;;
14457 */) ;;
14458 *) as_dir=$as_dir/ ;;
14459 esac
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_ac_ct_CC="gcc"
14463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466 done
14467 done
14468 IFS=$as_save_IFS
14469
14470 fi ;;
14471 esac
14472 fi
14473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14474 if test -n "$ac_ct_CC"; then
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14476 printf "%s\n" "$ac_ct_CC" >&6; }
14477 else
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14479 printf "%s\n" "no" >&6; }
14480 fi
14481
14482 if test "x$ac_ct_CC" = x; then
14483 CC=""
14484 else
14485 case $cross_compiling:$ac_tool_warned in
14486 yes:)
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14488 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14489 ac_tool_warned=yes ;;
14490 esac
14491 CC=$ac_ct_CC
14492 fi
14493 else
14494 CC="$ac_cv_prog_CC"
14495 fi
14496
14497 if test -z "$CC"; then
14498 if test -n "$ac_tool_prefix"; then
14499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14500 set dummy ${ac_tool_prefix}cc; ac_word=$2
14501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14502 printf %s "checking for $ac_word... " >&6; }
14503 if test ${ac_cv_prog_CC+y}
14504 then :
14505 printf %s "(cached) " >&6
14506 else case e in #(
14507 e) if test -n "$CC"; then
14508 ac_cv_prog_CC="$CC" # Let the user override the test.
14509 else
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14512 do
14513 IFS=$as_save_IFS
14514 case $as_dir in #(((
14515 '') as_dir=./ ;;
14516 */) ;;
14517 *) as_dir=$as_dir/ ;;
14518 esac
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14521 ac_cv_prog_CC="${ac_tool_prefix}cc"
14522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14523 break 2
14524 fi
14525 done
14526 done
14527 IFS=$as_save_IFS
14528
14529 fi ;;
14530 esac
14531 fi
14532 CC=$ac_cv_prog_CC
14533 if test -n "$CC"; then
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14535 printf "%s\n" "$CC" >&6; }
14536 else
14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 printf "%s\n" "no" >&6; }
14539 fi
14540
14541
14542 fi
14543 fi
14544 if test -z "$CC"; then
14545 # Extract the first word of "cc", so it can be a program name with args.
14546 set dummy cc; ac_word=$2
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 printf %s "checking for $ac_word... " >&6; }
14549 if test ${ac_cv_prog_CC+y}
14550 then :
14551 printf %s "(cached) " >&6
14552 else case e in #(
14553 e) if test -n "$CC"; then
14554 ac_cv_prog_CC="$CC" # Let the user override the test.
14555 else
14556 ac_prog_rejected=no
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14559 do
14560 IFS=$as_save_IFS
14561 case $as_dir in #(((
14562 '') as_dir=./ ;;
14563 */) ;;
14564 *) as_dir=$as_dir/ ;;
14565 esac
14566 for ac_exec_ext in '' $ac_executable_extensions; do
14567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14568 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14569 ac_prog_rejected=yes
14570 continue
14571 fi
14572 ac_cv_prog_CC="cc"
14573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14574 break 2
14575 fi
14576 done
14577 done
14578 IFS=$as_save_IFS
14579
14580 if test $ac_prog_rejected = yes; then
14581 # We found a bogon in the path, so make sure we never use it.
14582 set dummy $ac_cv_prog_CC
14583 shift
14584 if test $# != 0; then
14585 # We chose a different compiler from the bogus one.
14586 # However, it has the same basename, so the bogon will be chosen
14587 # first if we set CC to just the basename; use the full file name.
14588 shift
14589 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
14590 fi
14591 fi
14592 fi ;;
14593 esac
14594 fi
14595 CC=$ac_cv_prog_CC
14596 if test -n "$CC"; then
14597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14598 printf "%s\n" "$CC" >&6; }
14599 else
14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601 printf "%s\n" "no" >&6; }
14602 fi
14603
14604
14605 fi
14606 if test -z "$CC"; then
14607 if test -n "$ac_tool_prefix"; then
14608 for ac_prog in cl.exe
14609 do
14610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14613 printf %s "checking for $ac_word... " >&6; }
14614 if test ${ac_cv_prog_CC+y}
14615 then :
14616 printf %s "(cached) " >&6
14617 else case e in #(
14618 e) if test -n "$CC"; then
14619 ac_cv_prog_CC="$CC" # Let the user override the test.
14620 else
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14623 do
14624 IFS=$as_save_IFS
14625 case $as_dir in #(((
14626 '') as_dir=./ ;;
14627 */) ;;
14628 *) as_dir=$as_dir/ ;;
14629 esac
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14634 break 2
14635 fi
14636 done
14637 done
14638 IFS=$as_save_IFS
14639
14640 fi ;;
14641 esac
14642 fi
14643 CC=$ac_cv_prog_CC
14644 if test -n "$CC"; then
14645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14646 printf "%s\n" "$CC" >&6; }
14647 else
14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 printf "%s\n" "no" >&6; }
14650 fi
14651
14652
14653 test -n "$CC" && break
14654 done
14655 fi
14656 if test -z "$CC"; then
14657 ac_ct_CC=$CC
14658 for ac_prog in cl.exe
14659 do
14660 # Extract the first word of "$ac_prog", so it can be a program name with args.
14661 set dummy $ac_prog; ac_word=$2
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14663 printf %s "checking for $ac_word... " >&6; }
14664 if test ${ac_cv_prog_ac_ct_CC+y}
14665 then :
14666 printf %s "(cached) " >&6
14667 else case e in #(
14668 e) if test -n "$ac_ct_CC"; then
14669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14670 else
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $PATH
14673 do
14674 IFS=$as_save_IFS
14675 case $as_dir in #(((
14676 '') as_dir=./ ;;
14677 */) ;;
14678 *) as_dir=$as_dir/ ;;
14679 esac
14680 for ac_exec_ext in '' $ac_executable_extensions; do
14681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14682 ac_cv_prog_ac_ct_CC="$ac_prog"
14683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14684 break 2
14685 fi
14686 done
14687 done
14688 IFS=$as_save_IFS
14689
14690 fi ;;
14691 esac
14692 fi
14693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14694 if test -n "$ac_ct_CC"; then
14695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14696 printf "%s\n" "$ac_ct_CC" >&6; }
14697 else
14698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14699 printf "%s\n" "no" >&6; }
14700 fi
14701
14702
14703 test -n "$ac_ct_CC" && break
14704 done
14705
14706 if test "x$ac_ct_CC" = x; then
14707 CC=""
14708 else
14709 case $cross_compiling:$ac_tool_warned in
14710 yes:)
14711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14712 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14713 ac_tool_warned=yes ;;
14714 esac
14715 CC=$ac_ct_CC
14716 fi
14717 fi
14718
14719 fi
14720 if test -z "$CC"; then
14721 if test -n "$ac_tool_prefix"; then
14722 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
14723 set dummy ${ac_tool_prefix}clang; ac_word=$2
14724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14725 printf %s "checking for $ac_word... " >&6; }
14726 if test ${ac_cv_prog_CC+y}
14727 then :
14728 printf %s "(cached) " >&6
14729 else case e in #(
14730 e) if test -n "$CC"; then
14731 ac_cv_prog_CC="$CC" # Let the user override the test.
14732 else
14733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14734 for as_dir in $PATH
14735 do
14736 IFS=$as_save_IFS
14737 case $as_dir in #(((
14738 '') as_dir=./ ;;
14739 */) ;;
14740 *) as_dir=$as_dir/ ;;
14741 esac
14742 for ac_exec_ext in '' $ac_executable_extensions; do
14743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14744 ac_cv_prog_CC="${ac_tool_prefix}clang"
14745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14746 break 2
14747 fi
14748 done
14749 done
14750 IFS=$as_save_IFS
14751
14752 fi ;;
14753 esac
14754 fi
14755 CC=$ac_cv_prog_CC
14756 if test -n "$CC"; then
14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14758 printf "%s\n" "$CC" >&6; }
14759 else
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14761 printf "%s\n" "no" >&6; }
14762 fi
14763
14764
14765 fi
14766 if test -z "$ac_cv_prog_CC"; then
14767 ac_ct_CC=$CC
14768 # Extract the first word of "clang", so it can be a program name with args.
14769 set dummy clang; ac_word=$2
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14771 printf %s "checking for $ac_word... " >&6; }
14772 if test ${ac_cv_prog_ac_ct_CC+y}
14773 then :
14774 printf %s "(cached) " >&6
14775 else case e in #(
14776 e) if test -n "$ac_ct_CC"; then
14777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14778 else
14779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14780 for as_dir in $PATH
14781 do
14782 IFS=$as_save_IFS
14783 case $as_dir in #(((
14784 '') as_dir=./ ;;
14785 */) ;;
14786 *) as_dir=$as_dir/ ;;
14787 esac
14788 for ac_exec_ext in '' $ac_executable_extensions; do
14789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14790 ac_cv_prog_ac_ct_CC="clang"
14791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14792 break 2
14793 fi
14794 done
14795 done
14796 IFS=$as_save_IFS
14797
14798 fi ;;
14799 esac
14800 fi
14801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14802 if test -n "$ac_ct_CC"; then
14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14804 printf "%s\n" "$ac_ct_CC" >&6; }
14805 else
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 printf "%s\n" "no" >&6; }
14808 fi
14809
14810 if test "x$ac_ct_CC" = x; then
14811 CC=""
14812 else
14813 case $cross_compiling:$ac_tool_warned in
14814 yes:)
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14816 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14817 ac_tool_warned=yes ;;
14818 esac
14819 CC=$ac_ct_CC
14820 fi
14821 else
14822 CC="$ac_cv_prog_CC"
14823 fi
14824
14825 fi
14826
14827
14828 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14829 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14830 as_fn_error $? "no acceptable C compiler found in \$PATH
14831 See 'config.log' for more details" "$LINENO" 5; }
14832
14833 # Provide some information about the compiler.
14834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14835 set X $ac_compile
14836 ac_compiler=$2
14837 for ac_option in --version -v -V -qversion -version; do
14838 { { ac_try="$ac_compiler $ac_option >&5"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842 esac
14843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14844 printf "%s\n" "$ac_try_echo"; } >&5
14845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14846 ac_status=$?
14847 if test -s conftest.err; then
14848 sed '10a\
14849 ... rest of stderr output deleted ...
14850 10q' conftest.err >conftest.er1
14851 cat conftest.er1 >&5
14852 fi
14853 rm -f conftest.er1 conftest.err
14854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14855 test $ac_status = 0; }
14856 done
14857
14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
14859 printf %s "checking whether the compiler supports GNU C... " >&6; }
14860 if test ${ac_cv_c_compiler_gnu+y}
14861 then :
14862 printf %s "(cached) " >&6
14863 else case e in #(
14864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14866
14867 int
14868 main (void)
14869 {
14870 #ifndef __GNUC__
14871 choke me
14872 #endif
14873
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"
14879 then :
14880 ac_compiler_gnu=yes
14881 else case e in #(
14882 e) ac_compiler_gnu=no ;;
14883 esac
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14887 ;;
14888 esac
14889 fi
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14891 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894 if test $ac_compiler_gnu = yes; then
14895 GCC=yes
14896 else
14897 GCC=
14898 fi
14899 ac_test_CFLAGS=${CFLAGS+y}
14900 ac_save_CFLAGS=$CFLAGS
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14902 printf %s "checking whether $CC accepts -g... " >&6; }
14903 if test ${ac_cv_prog_cc_g+y}
14904 then :
14905 printf %s "(cached) " >&6
14906 else case e in #(
14907 e) ac_save_c_werror_flag=$ac_c_werror_flag
14908 ac_c_werror_flag=yes
14909 ac_cv_prog_cc_g=no
14910 CFLAGS="-g"
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913
14914 int
14915 main (void)
14916 {
14917
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"
14923 then :
14924 ac_cv_prog_cc_g=yes
14925 else case e in #(
14926 e) CFLAGS=""
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929
14930 int
14931 main (void)
14932 {
14933
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 if ac_fn_c_try_compile "$LINENO"
14939 then :
14940
14941 else case e in #(
14942 e) ac_c_werror_flag=$ac_save_c_werror_flag
14943 CFLAGS="-g"
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945 /* end confdefs.h. */
14946
14947 int
14948 main (void)
14949 {
14950
14951 ;
14952 return 0;
14953 }
14954 _ACEOF
14955 if ac_fn_c_try_compile "$LINENO"
14956 then :
14957 ac_cv_prog_cc_g=yes
14958 fi
14959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14960 esac
14961 fi
14962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14963 esac
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14966 ac_c_werror_flag=$ac_save_c_werror_flag ;;
14967 esac
14968 fi
14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14970 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
14971 if test $ac_test_CFLAGS; then
14972 CFLAGS=$ac_save_CFLAGS
14973 elif test $ac_cv_prog_cc_g = yes; then
14974 if test "$GCC" = yes; then
14975 CFLAGS="-g -O2"
14976 else
14977 CFLAGS="-g"
14978 fi
14979 else
14980 if test "$GCC" = yes; then
14981 CFLAGS="-O2"
14982 else
14983 CFLAGS=
14984 fi
14985 fi
14986 ac_prog_cc_stdc=no
14987 if test x$ac_prog_cc_stdc = xno
14988 then :
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
14990 printf %s "checking for $CC option to enable C11 features... " >&6; }
14991 if test ${ac_cv_prog_cc_c11+y}
14992 then :
14993 printf %s "(cached) " >&6
14994 else case e in #(
14995 e) ac_cv_prog_cc_c11=no
14996 ac_save_CC=$CC
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 $ac_c_conftest_c11_program
15000 _ACEOF
15001 for ac_arg in '' -std=gnu11
15002 do
15003 CC="$ac_save_CC $ac_arg"
15004 if ac_fn_c_try_compile "$LINENO"
15005 then :
15006 ac_cv_prog_cc_c11=$ac_arg
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext conftest.beam
15009 test "x$ac_cv_prog_cc_c11" != "xno" && break
15010 done
15011 rm -f conftest.$ac_ext
15012 CC=$ac_save_CC ;;
15013 esac
15014 fi
15015
15016 if test "x$ac_cv_prog_cc_c11" = xno
15017 then :
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15019 printf "%s\n" "unsupported" >&6; }
15020 else case e in #(
15021 e) if test "x$ac_cv_prog_cc_c11" = x
15022 then :
15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15024 printf "%s\n" "none needed" >&6; }
15025 else case e in #(
15026 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
15027 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
15028 CC="$CC $ac_cv_prog_cc_c11" ;;
15029 esac
15030 fi
15031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
15032 ac_prog_cc_stdc=c11 ;;
15033 esac
15034 fi
15035 fi
15036 if test x$ac_prog_cc_stdc = xno
15037 then :
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
15039 printf %s "checking for $CC option to enable C99 features... " >&6; }
15040 if test ${ac_cv_prog_cc_c99+y}
15041 then :
15042 printf %s "(cached) " >&6
15043 else case e in #(
15044 e) ac_cv_prog_cc_c99=no
15045 ac_save_CC=$CC
15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15047 /* end confdefs.h. */
15048 $ac_c_conftest_c99_program
15049 _ACEOF
15050 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
15051 do
15052 CC="$ac_save_CC $ac_arg"
15053 if ac_fn_c_try_compile "$LINENO"
15054 then :
15055 ac_cv_prog_cc_c99=$ac_arg
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.beam
15058 test "x$ac_cv_prog_cc_c99" != "xno" && break
15059 done
15060 rm -f conftest.$ac_ext
15061 CC=$ac_save_CC ;;
15062 esac
15063 fi
15064
15065 if test "x$ac_cv_prog_cc_c99" = xno
15066 then :
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15068 printf "%s\n" "unsupported" >&6; }
15069 else case e in #(
15070 e) if test "x$ac_cv_prog_cc_c99" = x
15071 then :
15072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15073 printf "%s\n" "none needed" >&6; }
15074 else case e in #(
15075 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
15076 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
15077 CC="$CC $ac_cv_prog_cc_c99" ;;
15078 esac
15079 fi
15080 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
15081 ac_prog_cc_stdc=c99 ;;
15082 esac
15083 fi
15084 fi
15085 if test x$ac_prog_cc_stdc = xno
15086 then :
15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
15088 printf %s "checking for $CC option to enable C89 features... " >&6; }
15089 if test ${ac_cv_prog_cc_c89+y}
15090 then :
15091 printf %s "(cached) " >&6
15092 else case e in #(
15093 e) ac_cv_prog_cc_c89=no
15094 ac_save_CC=$CC
15095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15096 /* end confdefs.h. */
15097 $ac_c_conftest_c89_program
15098 _ACEOF
15099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15100 do
15101 CC="$ac_save_CC $ac_arg"
15102 if ac_fn_c_try_compile "$LINENO"
15103 then :
15104 ac_cv_prog_cc_c89=$ac_arg
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext conftest.beam
15107 test "x$ac_cv_prog_cc_c89" != "xno" && break
15108 done
15109 rm -f conftest.$ac_ext
15110 CC=$ac_save_CC ;;
15111 esac
15112 fi
15113
15114 if test "x$ac_cv_prog_cc_c89" = xno
15115 then :
15116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15117 printf "%s\n" "unsupported" >&6; }
15118 else case e in #(
15119 e) if test "x$ac_cv_prog_cc_c89" = x
15120 then :
15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15122 printf "%s\n" "none needed" >&6; }
15123 else case e in #(
15124 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
15125 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
15126 CC="$CC $ac_cv_prog_cc_c89" ;;
15127 esac
15128 fi
15129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
15130 ac_prog_cc_stdc=c89 ;;
15131 esac
15132 fi
15133 fi
15134
15135 ac_ext=c
15136 ac_cpp='$CPP $CPPFLAGS'
15137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15140
15141
15142 ac_ext=c
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
15148 printf %s "checking whether $CC understands -c and -o together... " >&6; }
15149 if test ${am_cv_prog_cc_c_o+y}
15150 then :
15151 printf %s "(cached) " >&6
15152 else case e in #(
15153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h. */
15155
15156 int
15157 main (void)
15158 {
15159
15160 ;
15161 return 0;
15162 }
15163 _ACEOF
15164 # Make sure it works both with $CC and with simple cc.
15165 # Following AC_PROG_CC_C_O, we do the test twice because some
15166 # compilers refuse to overwrite an existing .o file with -o,
15167 # though they will create one.
15168 am_cv_prog_cc_c_o=yes
15169 for am_i in 1 2; do
15170 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
15171 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } \
15175 && test -f conftest2.$ac_objext; then
15176 : OK
15177 else
15178 am_cv_prog_cc_c_o=no
15179 break
15180 fi
15181 done
15182 # aligned with autoconf, so not including core; see bug#72225.
15183 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
15184 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
15185 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
15186 unset am_i ;;
15187 esac
15188 fi
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
15190 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
15191 if test "$am_cv_prog_cc_c_o" != yes; then
15192 # Losing compiler, so override with the script.
15193 # FIXME: It is wrong to rewrite CC.
15194 # But if we don't then we get into trouble of one sort or another.
15195 # A longer-term fix would be to have automake use am__CC in this case,
15196 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15197 CC="$am_aux_dir/compile $CC"
15198 fi
15199 ac_ext=c
15200 ac_cpp='$CPP $CPPFLAGS'
15201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15204
15205
15206 depcc="$CC" am_compiler_list=
15207
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15209 printf %s "checking dependency style of $depcc... " >&6; }
15210 if test ${am_cv_CC_dependencies_compiler_type+y}
15211 then :
15212 printf %s "(cached) " >&6
15213 else case e in #(
15214 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15215 # We make a subdir and do the tests there. Otherwise we can end up
15216 # making bogus files that we don't know about and never remove. For
15217 # instance it was reported that on HP-UX the gcc test will end up
15218 # making a dummy file named 'D' -- because '-MD' means "put the output
15219 # in D".
15220 rm -rf conftest.dir
15221 mkdir conftest.dir
15222 # Copy depcomp to subdir because otherwise we won't find it if we're
15223 # using a relative directory.
15224 cp "$am_depcomp" conftest.dir
15225 cd conftest.dir
15226 # We will build objects and dependencies in a subdirectory because
15227 # it helps to detect inapplicable dependency modes. For instance
15228 # both Tru64's cc and ICC support -MD to output dependencies as a
15229 # side effect of compilation, but ICC will put the dependencies in
15230 # the current directory while Tru64 will put them in the object
15231 # directory.
15232 mkdir sub
15233
15234 am_cv_CC_dependencies_compiler_type=none
15235 if test "$am_compiler_list" = ""; then
15236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15237 fi
15238 am__universal=false
15239 case " $depcc " in #(
15240 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15241 esac
15242
15243 for depmode in $am_compiler_list; do
15244 # Setup a source with many dependencies, because some compilers
15245 # like to wrap large dependency lists on column 80 (with \), and
15246 # we should not choose a depcomp mode which is confused by this.
15247 #
15248 # We need to recreate these files for each test, as the compiler may
15249 # overwrite some of them when testing with obscure command lines.
15250 # This happens at least with the AIX C compiler.
15251 : > sub/conftest.c
15252 for i in 1 2 3 4 5 6; do
15253 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15254 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
15255 # Solaris 10 /bin/sh.
15256 echo '/* dummy */' > sub/conftst$i.h
15257 done
15258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15259
15260 # We check with '-c' and '-o' for the sake of the "dashmstdout"
15261 # mode. It turns out that the SunPro C++ compiler does not properly
15262 # handle '-M -o', and we need to detect this. Also, some Intel
15263 # versions had trouble with output in subdirs.
15264 am__obj=sub/conftest.${OBJEXT-o}
15265 am__minus_obj="-o $am__obj"
15266 case $depmode in
15267 gcc)
15268 # This depmode causes a compiler race in universal mode.
15269 test "$am__universal" = false || continue
15270 ;;
15271 nosideeffect)
15272 # After this tag, mechanisms are not by side-effect, so they'll
15273 # only be used when explicitly requested.
15274 if test "x$enable_dependency_tracking" = xyes; then
15275 continue
15276 else
15277 break
15278 fi
15279 ;;
15280 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15281 # This compiler won't grok '-c -o', but also, the minuso test has
15282 # not run yet. These depmodes are late enough in the game, and
15283 # so weak that their functioning should not be impacted.
15284 am__obj=conftest.${OBJEXT-o}
15285 am__minus_obj=
15286 ;;
15287 none) break ;;
15288 esac
15289 if depmode=$depmode \
15290 source=sub/conftest.c object=$am__obj \
15291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15293 >/dev/null 2>conftest.err &&
15294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15298 # icc doesn't choke on unknown options, it will just issue warnings
15299 # or remarks (even with -Werror). So we grep stderr for any message
15300 # that says an option was ignored or not supported.
15301 # When given -MP, icc 7.0 and 7.1 complain thus:
15302 # icc: Command line warning: ignoring option '-M'; no argument required
15303 # The diagnosis changed in icc 8.0:
15304 # icc: Command line remark: option '-MP' not supported
15305 if (grep 'ignoring option' conftest.err ||
15306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15307 am_cv_CC_dependencies_compiler_type=$depmode
15308 break
15309 fi
15310 fi
15311 done
15312
15313 cd ..
15314 rm -rf conftest.dir
15315 else
15316 am_cv_CC_dependencies_compiler_type=none
15317 fi
15318 ;;
15319 esac
15320 fi
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15322 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
15323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15324
15325 if
15326 test "x$enable_dependency_tracking" != xno \
15327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15328 am__fastdepCC_TRUE=
15329 am__fastdepCC_FALSE='#'
15330 else
15331 am__fastdepCC_TRUE='#'
15332 am__fastdepCC_FALSE=
15333 fi
15334
15335
15336 ac_ext=c
15337 ac_cpp='$CPP $CPPFLAGS'
15338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15342 printf %s "checking how to run the C preprocessor... " >&6; }
15343 # On Suns, sometimes $CPP names a directory.
15344 if test -n "$CPP" && test -d "$CPP"; then
15345 CPP=
15346 fi
15347 if test -z "$CPP"; then
15348 if test ${ac_cv_prog_CPP+y}
15349 then :
15350 printf %s "(cached) " >&6
15351 else case e in #(
15352 e) # Double quotes because $CC needs to be expanded
15353 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15354 do
15355 ac_preproc_ok=false
15356 for ac_c_preproc_warn_flag in '' yes
15357 do
15358 # Use a header file that comes with gcc, so configuring glibc
15359 # with a fresh cross-compiler works.
15360 # On the NeXT, cc -E runs the code through the compiler's parser,
15361 # not just through cpp. "Syntax error" is here to catch this case.
15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h. */
15364 #include <limits.h>
15365 Syntax error
15366 _ACEOF
15367 if ac_fn_c_try_cpp "$LINENO"
15368 then :
15369
15370 else case e in #(
15371 e) # Broken: fails on valid input.
15372 continue ;;
15373 esac
15374 fi
15375 rm -f conftest.err conftest.i conftest.$ac_ext
15376
15377 # OK, works on sane cases. Now check whether nonexistent headers
15378 # can be detected and how.
15379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 #include <ac_nonexistent.h>
15382 _ACEOF
15383 if ac_fn_c_try_cpp "$LINENO"
15384 then :
15385 # Broken: success on invalid input.
15386 continue
15387 else case e in #(
15388 e) # Passes both tests.
15389 ac_preproc_ok=:
15390 break ;;
15391 esac
15392 fi
15393 rm -f conftest.err conftest.i conftest.$ac_ext
15394
15395 done
15396 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15397 rm -f conftest.i conftest.err conftest.$ac_ext
15398 if $ac_preproc_ok
15399 then :
15400 break
15401 fi
15402
15403 done
15404 ac_cv_prog_CPP=$CPP
15405 ;;
15406 esac
15407 fi
15408 CPP=$ac_cv_prog_CPP
15409 else
15410 ac_cv_prog_CPP=$CPP
15411 fi
15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15413 printf "%s\n" "$CPP" >&6; }
15414 ac_preproc_ok=false
15415 for ac_c_preproc_warn_flag in '' yes
15416 do
15417 # Use a header file that comes with gcc, so configuring glibc
15418 # with a fresh cross-compiler works.
15419 # On the NeXT, cc -E runs the code through the compiler's parser,
15420 # not just through cpp. "Syntax error" is here to catch this case.
15421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15422 /* end confdefs.h. */
15423 #include <limits.h>
15424 Syntax error
15425 _ACEOF
15426 if ac_fn_c_try_cpp "$LINENO"
15427 then :
15428
15429 else case e in #(
15430 e) # Broken: fails on valid input.
15431 continue ;;
15432 esac
15433 fi
15434 rm -f conftest.err conftest.i conftest.$ac_ext
15435
15436 # OK, works on sane cases. Now check whether nonexistent headers
15437 # can be detected and how.
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 #include <ac_nonexistent.h>
15441 _ACEOF
15442 if ac_fn_c_try_cpp "$LINENO"
15443 then :
15444 # Broken: success on invalid input.
15445 continue
15446 else case e in #(
15447 e) # Passes both tests.
15448 ac_preproc_ok=:
15449 break ;;
15450 esac
15451 fi
15452 rm -f conftest.err conftest.i conftest.$ac_ext
15453
15454 done
15455 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15456 rm -f conftest.i conftest.err conftest.$ac_ext
15457 if $ac_preproc_ok
15458 then :
15459
15460 else case e in #(
15461 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15462 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15463 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15464 See 'config.log' for more details" "$LINENO" 5; } ;;
15465 esac
15466 fi
15467
15468 ac_ext=c
15469 ac_cpp='$CPP $CPPFLAGS'
15470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15473
15474
15475 for ac_prog in flex lex
15476 do
15477 # Extract the first word of "$ac_prog", so it can be a program name with args.
15478 set dummy $ac_prog; ac_word=$2
15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15480 printf %s "checking for $ac_word... " >&6; }
15481 if test ${ac_cv_prog_LEX+y}
15482 then :
15483 printf %s "(cached) " >&6
15484 else case e in #(
15485 e) if test -n "$LEX"; then
15486 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15487 else
15488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15489 for as_dir in $PATH
15490 do
15491 IFS=$as_save_IFS
15492 case $as_dir in #(((
15493 '') as_dir=./ ;;
15494 */) ;;
15495 *) as_dir=$as_dir/ ;;
15496 esac
15497 for ac_exec_ext in '' $ac_executable_extensions; do
15498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15499 ac_cv_prog_LEX="$ac_prog"
15500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15501 break 2
15502 fi
15503 done
15504 done
15505 IFS=$as_save_IFS
15506
15507 fi ;;
15508 esac
15509 fi
15510 LEX=$ac_cv_prog_LEX
15511 if test -n "$LEX"; then
15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15513 printf "%s\n" "$LEX" >&6; }
15514 else
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 printf "%s\n" "no" >&6; }
15517 fi
15518
15519
15520 test -n "$LEX" && break
15521 done
15522 test -n "$LEX" || LEX=":"
15523
15524 if test "x$LEX" != "x:"; then
15525 cat >conftest.l <<_ACEOF
15526 %{
15527 #ifdef __cplusplus
15528 extern "C"
15529 #endif
15530 int yywrap(void);
15531 %}
15532 %%
15533 a { ECHO; }
15534 b { REJECT; }
15535 c { yymore (); }
15536 d { yyless (1); }
15537 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
15538 #ifdef __cplusplus
15539 yyless ((yyinput () != 0));
15540 #else
15541 yyless ((input () != 0));
15542 #endif
15543 }
15544 f { unput (yytext[0]); }
15545 . { BEGIN INITIAL; }
15546 %%
15547 #ifdef YYTEXT_POINTER
15548 extern char *yytext;
15549 #endif
15550 int
15551 yywrap (void)
15552 {
15553 return 1;
15554 }
15555 int
15556 main (void)
15557 {
15558 return ! yylex ();
15559 }
15560 _ACEOF
15561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
15562 printf %s "checking for lex output file root... " >&6; }
15563 if test ${ac_cv_prog_lex_root+y}
15564 then :
15565 printf %s "(cached) " >&6
15566 else case e in #(
15567 e)
15568 ac_cv_prog_lex_root=unknown
15569 { { ac_try="$LEX conftest.l"
15570 case "(($ac_try" in
15571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572 *) ac_try_echo=$ac_try;;
15573 esac
15574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15575 printf "%s\n" "$ac_try_echo"; } >&5
15576 (eval "$LEX conftest.l") 2>&5
15577 ac_status=$?
15578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15579 test $ac_status = 0; } &&
15580 if test -f lex.yy.c; then
15581 ac_cv_prog_lex_root=lex.yy
15582 elif test -f lexyy.c; then
15583 ac_cv_prog_lex_root=lexyy
15584 fi ;;
15585 esac
15586 fi
15587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
15588 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
15589 if test "$ac_cv_prog_lex_root" = unknown
15590 then :
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
15592 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
15593 LEX=: LEXLIB=
15594 fi
15595 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15596
15597 if test ${LEXLIB+y}
15598 then :
15599
15600 else case e in #(
15601 e)
15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
15603 printf %s "checking for lex library... " >&6; }
15604 if test ${ac_cv_lib_lex+y}
15605 then :
15606 printf %s "(cached) " >&6
15607 else case e in #(
15608 e)
15609 ac_save_LIBS="$LIBS"
15610 ac_found=false
15611 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
15612 case $ac_cv_lib_lex in #(
15613 'none needed') :
15614 ;; #(
15615 'not found') :
15616 break ;; #(
15617 *) :
15618 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
15619 *) :
15620 ;;
15621 esac
15622
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 `cat $LEX_OUTPUT_ROOT.c`
15626 _ACEOF
15627 if ac_fn_c_try_link "$LINENO"
15628 then :
15629 ac_found=:
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15632 conftest$ac_exeext conftest.$ac_ext
15633 if $ac_found; then
15634 break
15635 fi
15636 done
15637 LIBS="$ac_save_LIBS"
15638 ;;
15639 esac
15640 fi
15641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15642 printf "%s\n" "$ac_cv_lib_lex" >&6; }
15643 if test "$ac_cv_lib_lex" = 'not found'
15644 then :
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
15646 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
15647 LEX=: LEXLIB=
15648 elif test "$ac_cv_lib_lex" = 'none needed'
15649 then :
15650 LEXLIB=''
15651 else case e in #(
15652 e) LEXLIB=$ac_cv_lib_lex ;;
15653 esac
15654 fi
15655 ;;
15656 esac
15657 fi
15658
15659
15660 if test "$LEX" != :
15661 then :
15662
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15664 printf %s "checking whether yytext is a pointer... " >&6; }
15665 if test ${ac_cv_prog_lex_yytext_pointer+y}
15666 then :
15667 printf %s "(cached) " >&6
15668 else case e in #(
15669 e) # POSIX says lex can declare yytext either as a pointer or an array; the
15670 # default is implementation-dependent. Figure out which it is, since
15671 # not all implementations provide the %pointer and %array declarations.
15672 ac_cv_prog_lex_yytext_pointer=no
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15675
15676 #define YYTEXT_POINTER 1
15677 `cat $LEX_OUTPUT_ROOT.c`
15678 _ACEOF
15679 if ac_fn_c_try_compile "$LINENO"
15680 then :
15681 ac_cv_prog_lex_yytext_pointer=yes
15682 fi
15683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15684 ;;
15685 esac
15686 fi
15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15688 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
15689 if test $ac_cv_prog_lex_yytext_pointer = yes; then
15690
15691 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
15692
15693 fi
15694
15695 fi
15696 rm -f conftest.l $LEX_OUTPUT_ROOT.c
15697
15698 fi
15699 if test "$LEX" = :; then
15700 LEX=${am_missing_run}flex
15701 fi
15702
15703 for ac_prog in 'bison -y' byacc
15704 do
15705 # Extract the first word of "$ac_prog", so it can be a program name with args.
15706 set dummy $ac_prog; ac_word=$2
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15708 printf %s "checking for $ac_word... " >&6; }
15709 if test ${ac_cv_prog_YACC+y}
15710 then :
15711 printf %s "(cached) " >&6
15712 else case e in #(
15713 e) if test -n "$YACC"; then
15714 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15715 else
15716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15717 for as_dir in $PATH
15718 do
15719 IFS=$as_save_IFS
15720 case $as_dir in #(((
15721 '') as_dir=./ ;;
15722 */) ;;
15723 *) as_dir=$as_dir/ ;;
15724 esac
15725 for ac_exec_ext in '' $ac_executable_extensions; do
15726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15727 ac_cv_prog_YACC="$ac_prog"
15728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15729 break 2
15730 fi
15731 done
15732 done
15733 IFS=$as_save_IFS
15734
15735 fi ;;
15736 esac
15737 fi
15738 YACC=$ac_cv_prog_YACC
15739 if test -n "$YACC"; then
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15741 printf "%s\n" "$YACC" >&6; }
15742 else
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744 printf "%s\n" "no" >&6; }
15745 fi
15746
15747
15748 test -n "$YACC" && break
15749 done
15750 test -n "$YACC" || YACC="yacc"
15751
15752
15753
15754
15755
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
15757 printf %s "checking if bison is the parser generator... " >&6; }
15758 if test ${ax_cv_prog_bison+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else case e in #(
15762 e)
15763 if $YACC --version 2>/dev/null | $EGREP -q '^bison '
15764 then :
15765 ax_cv_prog_bison=yes
15766 else case e in #(
15767 e) ax_cv_prog_bison=no ;;
15768 esac
15769 fi
15770 ;;
15771 esac
15772 fi
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
15774 printf "%s\n" "$ax_cv_prog_bison" >&6; }
15775 if test "$ax_cv_prog_bison" = "yes"
15776 then :
15777
15778 YACC="${YACC% -y} -o y.tab.c"
15779
15780 else case e in #(
15781 e) as_fn_error $? "bison is required" "$LINENO" 5
15782 ;;
15783 esac
15784 fi
15785
15786
15787
15788
15789
15790
15791
15792
15793 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15794 if test -n "$ac_tool_prefix"; then
15795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15796 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15798 printf %s "checking for $ac_word... " >&6; }
15799 if test ${ac_cv_path_PKG_CONFIG+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else case e in #(
15803 e) case $PKG_CONFIG in
15804 [\\/]* | ?:[\\/]*)
15805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15806 ;;
15807 *)
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $PATH
15810 do
15811 IFS=$as_save_IFS
15812 case $as_dir in #(((
15813 '') as_dir=./ ;;
15814 */) ;;
15815 *) as_dir=$as_dir/ ;;
15816 esac
15817 for ac_exec_ext in '' $ac_executable_extensions; do
15818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15819 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15821 break 2
15822 fi
15823 done
15824 done
15825 IFS=$as_save_IFS
15826
15827 ;;
15828 esac ;;
15829 esac
15830 fi
15831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15832 if test -n "$PKG_CONFIG"; then
15833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15834 printf "%s\n" "$PKG_CONFIG" >&6; }
15835 else
15836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15837 printf "%s\n" "no" >&6; }
15838 fi
15839
15840
15841 fi
15842 if test -z "$ac_cv_path_PKG_CONFIG"; then
15843 ac_pt_PKG_CONFIG=$PKG_CONFIG
15844 # Extract the first word of "pkg-config", so it can be a program name with args.
15845 set dummy pkg-config; ac_word=$2
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15847 printf %s "checking for $ac_word... " >&6; }
15848 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15849 then :
15850 printf %s "(cached) " >&6
15851 else case e in #(
15852 e) case $ac_pt_PKG_CONFIG in
15853 [\\/]* | ?:[\\/]*)
15854 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15855 ;;
15856 *)
15857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858 for as_dir in $PATH
15859 do
15860 IFS=$as_save_IFS
15861 case $as_dir in #(((
15862 '') as_dir=./ ;;
15863 */) ;;
15864 *) as_dir=$as_dir/ ;;
15865 esac
15866 for ac_exec_ext in '' $ac_executable_extensions; do
15867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15868 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15870 break 2
15871 fi
15872 done
15873 done
15874 IFS=$as_save_IFS
15875
15876 ;;
15877 esac ;;
15878 esac
15879 fi
15880 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15881 if test -n "$ac_pt_PKG_CONFIG"; then
15882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15883 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15884 else
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15886 printf "%s\n" "no" >&6; }
15887 fi
15888
15889 if test "x$ac_pt_PKG_CONFIG" = x; then
15890 PKG_CONFIG=""
15891 else
15892 case $cross_compiling:$ac_tool_warned in
15893 yes:)
15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15896 ac_tool_warned=yes ;;
15897 esac
15898 PKG_CONFIG=$ac_pt_PKG_CONFIG
15899 fi
15900 else
15901 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15902 fi
15903
15904 fi
15905 if test -n "$PKG_CONFIG"; then
15906 _pkg_min_version=0.9.0
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15908 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15909 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15911 printf "%s\n" "yes" >&6; }
15912 else
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914 printf "%s\n" "no" >&6; }
15915 PKG_CONFIG=""
15916 fi
15917 fi
15918 if test -z "$PKG_CONFIG"; then
15919 as_fn_error $? "pkg-config not found" "$LINENO" 5
15920 fi
15921
15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15923 printf %s "checking whether byte ordering is bigendian... " >&6; }
15924 if test ${ac_cv_c_bigendian+y}
15925 then :
15926 printf %s "(cached) " >&6
15927 else case e in #(
15928 e) ac_cv_c_bigendian=unknown
15929 # See if we're dealing with a universal compiler.
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15932 #ifndef __APPLE_CC__
15933 not a universal capable compiler
15934 #endif
15935 typedef int dummy;
15936
15937 _ACEOF
15938 if ac_fn_c_try_compile "$LINENO"
15939 then :
15940
15941 # Check for potential -arch flags. It is not universal unless
15942 # there are at least two -arch flags with different values.
15943 ac_arch=
15944 ac_prev=
15945 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15946 if test -n "$ac_prev"; then
15947 case $ac_word in
15948 i?86 | x86_64 | ppc | ppc64)
15949 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15950 ac_arch=$ac_word
15951 else
15952 ac_cv_c_bigendian=universal
15953 break
15954 fi
15955 ;;
15956 esac
15957 ac_prev=
15958 elif test "x$ac_word" = "x-arch"; then
15959 ac_prev=arch
15960 fi
15961 done
15962 fi
15963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15964 if test $ac_cv_c_bigendian = unknown; then
15965 # See if sys/param.h defines the BYTE_ORDER macro.
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 #include <sys/types.h>
15969 #include <sys/param.h>
15970
15971 int
15972 main (void)
15973 {
15974 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
15975 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
15976 && LITTLE_ENDIAN)
15977 bogus endian macros
15978 #endif
15979
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_compile "$LINENO"
15985 then :
15986 # It does; now see whether it defined to BIG_ENDIAN or not.
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 #include <sys/types.h>
15990 #include <sys/param.h>
15991
15992 int
15993 main (void)
15994 {
15995 #if BYTE_ORDER != BIG_ENDIAN
15996 not big endian
15997 #endif
15998
15999 ;
16000 return 0;
16001 }
16002 _ACEOF
16003 if ac_fn_c_try_compile "$LINENO"
16004 then :
16005 ac_cv_c_bigendian=yes
16006 else case e in #(
16007 e) ac_cv_c_bigendian=no ;;
16008 esac
16009 fi
16010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16013 fi
16014 if test $ac_cv_c_bigendian = unknown; then
16015 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018 #include <limits.h>
16019
16020 int
16021 main (void)
16022 {
16023 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16024 bogus endian macros
16025 #endif
16026
16027 ;
16028 return 0;
16029 }
16030 _ACEOF
16031 if ac_fn_c_try_compile "$LINENO"
16032 then :
16033 # It does; now see whether it defined to _BIG_ENDIAN or not.
16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035 /* end confdefs.h. */
16036 #include <limits.h>
16037
16038 int
16039 main (void)
16040 {
16041 #ifndef _BIG_ENDIAN
16042 not big endian
16043 #endif
16044
16045 ;
16046 return 0;
16047 }
16048 _ACEOF
16049 if ac_fn_c_try_compile "$LINENO"
16050 then :
16051 ac_cv_c_bigendian=yes
16052 else case e in #(
16053 e) ac_cv_c_bigendian=no ;;
16054 esac
16055 fi
16056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16057 fi
16058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16059 fi
16060 if test $ac_cv_c_bigendian = unknown; then
16061 # Compile a test program.
16062 if test "$cross_compiling" = yes
16063 then :
16064 # Try to guess by grepping values from an object file.
16065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16066 /* end confdefs.h. */
16067 unsigned short int ascii_mm[] =
16068 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16069 unsigned short int ascii_ii[] =
16070 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16071 int use_ascii (int i) {
16072 return ascii_mm[i] + ascii_ii[i];
16073 }
16074 unsigned short int ebcdic_ii[] =
16075 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16076 unsigned short int ebcdic_mm[] =
16077 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16078 int use_ebcdic (int i) {
16079 return ebcdic_mm[i] + ebcdic_ii[i];
16080 }
16081 int
16082 main (int argc, char **argv)
16083 {
16084 /* Intimidate the compiler so that it does not
16085 optimize the arrays away. */
16086 char *p = argv[0];
16087 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
16088 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
16089 return use_ascii (argc) == use_ebcdic (*p);
16090 }
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"
16093 then :
16094 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
16095 ac_cv_c_bigendian=yes
16096 fi
16097 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
16098 if test "$ac_cv_c_bigendian" = unknown; then
16099 ac_cv_c_bigendian=no
16100 else
16101 # finding both strings is unlikely to happen, but who knows?
16102 ac_cv_c_bigendian=unknown
16103 fi
16104 fi
16105 fi
16106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16107 conftest$ac_exeext conftest.$ac_ext
16108 else case e in #(
16109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111 $ac_includes_default
16112 int
16113 main (void)
16114 {
16115
16116 /* Are we little or big endian? From Harbison&Steele. */
16117 union
16118 {
16119 long int l;
16120 char c[sizeof (long int)];
16121 } u;
16122 u.l = 1;
16123 return u.c[sizeof (long int) - 1] == 1;
16124
16125 ;
16126 return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_run "$LINENO"
16130 then :
16131 ac_cv_c_bigendian=no
16132 else case e in #(
16133 e) ac_cv_c_bigendian=yes ;;
16134 esac
16135 fi
16136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16137 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16138 esac
16139 fi
16140
16141 fi ;;
16142 esac
16143 fi
16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16145 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16146 case $ac_cv_c_bigendian in #(
16147 yes)
16148 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16149 ;; #(
16150 no)
16151 ;; #(
16152 universal)
16153
16154 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16155
16156 ;; #(
16157 *)
16158 as_fn_error $? "unknown endianness
16159 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16160 esac
16161
16162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16163 printf %s "checking for inline... " >&6; }
16164 if test ${ac_cv_c_inline+y}
16165 then :
16166 printf %s "(cached) " >&6
16167 else case e in #(
16168 e) ac_cv_c_inline=no
16169 for ac_kw in inline __inline__ __inline; do
16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16171 /* end confdefs.h. */
16172 #ifndef __cplusplus
16173 typedef int foo_t;
16174 static $ac_kw foo_t static_foo (void) {return 0; }
16175 $ac_kw foo_t foo (void) {return 0; }
16176 #endif
16177
16178 _ACEOF
16179 if ac_fn_c_try_compile "$LINENO"
16180 then :
16181 ac_cv_c_inline=$ac_kw
16182 fi
16183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16184 test "$ac_cv_c_inline" != no && break
16185 done
16186 ;;
16187 esac
16188 fi
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16190 printf "%s\n" "$ac_cv_c_inline" >&6; }
16191
16192 case $ac_cv_c_inline in
16193 inline | yes) ;;
16194 *)
16195 case $ac_cv_c_inline in
16196 no) ac_val=;;
16197 *) ac_val=$ac_cv_c_inline;;
16198 esac
16199 cat >>confdefs.h <<_ACEOF
16200 #ifndef __cplusplus
16201 #define inline $ac_val
16202 #endif
16203 _ACEOF
16204 ;;
16205 esac
16206
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16208 printf %s "checking for an ANSI C-conforming const... " >&6; }
16209 if test ${ac_cv_c_const+y}
16210 then :
16211 printf %s "(cached) " >&6
16212 else case e in #(
16213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16214 /* end confdefs.h. */
16215
16216 int
16217 main (void)
16218 {
16219
16220 #ifndef __cplusplus
16221 /* Ultrix mips cc rejects this sort of thing. */
16222 typedef int charset[2];
16223 const charset cs = { 0, 0 };
16224 /* SunOS 4.1.1 cc rejects this. */
16225 char const *const *pcpcc;
16226 char **ppc;
16227 /* NEC SVR4.0.2 mips cc rejects this. */
16228 struct point {int x, y;};
16229 static struct point const zero = {0,0};
16230 /* IBM XL C 1.02.0.0 rejects this.
16231 It does not let you subtract one const X* pointer from another in
16232 an arm of an if-expression whose if-part is not a constant
16233 expression */
16234 const char *g = "string";
16235 pcpcc = &g + (g ? g-g : 0);
16236 /* HPUX 7.0 cc rejects these. */
16237 ++pcpcc;
16238 ppc = (char**) pcpcc;
16239 pcpcc = (char const *const *) ppc;
16240 { /* SCO 3.2v4 cc rejects this sort of thing. */
16241 char tx;
16242 char *t = &tx;
16243 char const *s = 0 ? (char *) 0 : (char const *) 0;
16244
16245 *t++ = 0;
16246 if (s) return 0;
16247 }
16248 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16249 int x[] = {25, 17};
16250 const int *foo = &x[0];
16251 ++foo;
16252 }
16253 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16254 typedef const int *iptr;
16255 iptr p = 0;
16256 ++p;
16257 }
16258 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16260 struct s { int j; const int *ap[3]; } bx;
16261 struct s *b = &bx; b->j = 5;
16262 }
16263 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16264 const int foo = 10;
16265 if (!foo) return 0;
16266 }
16267 return !cs[0] && !zero.x;
16268 #endif
16269
16270 ;
16271 return 0;
16272 }
16273 _ACEOF
16274 if ac_fn_c_try_compile "$LINENO"
16275 then :
16276 ac_cv_c_const=yes
16277 else case e in #(
16278 e) ac_cv_c_const=no ;;
16279 esac
16280 fi
16281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16282 esac
16283 fi
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16285 printf "%s\n" "$ac_cv_c_const" >&6; }
16286 if test $ac_cv_c_const = no; then
16287
16288 printf "%s\n" "#define const /**/" >>confdefs.h
16289
16290 fi
16291
16292 # The cast to long int works around a bug in the HP C Compiler
16293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16294 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16295 # This bug is HP SR number 8606223364.
16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned short int" >&5
16297 printf %s "checking size of unsigned short int... " >&6; }
16298 if test ${ac_cv_sizeof_unsigned_short_int+y}
16299 then :
16300 printf %s "(cached) " >&6
16301 else case e in #(
16302 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short int))" "ac_cv_sizeof_unsigned_short_int" "$ac_includes_default"
16303 then :
16304
16305 else case e in #(
16306 e) if test "$ac_cv_type_unsigned_short_int" = yes; then
16307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16308 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16309 as_fn_error 77 "cannot compute sizeof (unsigned short int)
16310 See 'config.log' for more details" "$LINENO" 5; }
16311 else
16312 ac_cv_sizeof_unsigned_short_int=0
16313 fi ;;
16314 esac
16315 fi
16316 ;;
16317 esac
16318 fi
16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short_int" >&5
16320 printf "%s\n" "$ac_cv_sizeof_unsigned_short_int" >&6; }
16321
16322
16323
16324 printf "%s\n" "#define SIZEOF_UNSIGNED_SHORT_INT $ac_cv_sizeof_unsigned_short_int" >>confdefs.h
16325
16326
16327 # The cast to long int works around a bug in the HP C Compiler
16328 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16329 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16330 # This bug is HP SR number 8606223364.
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16332 printf %s "checking size of unsigned int... " >&6; }
16333 if test ${ac_cv_sizeof_unsigned_int+y}
16334 then :
16335 printf %s "(cached) " >&6
16336 else case e in #(
16337 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
16338 then :
16339
16340 else case e in #(
16341 e) if test "$ac_cv_type_unsigned_int" = yes; then
16342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16343 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16344 as_fn_error 77 "cannot compute sizeof (unsigned int)
16345 See 'config.log' for more details" "$LINENO" 5; }
16346 else
16347 ac_cv_sizeof_unsigned_int=0
16348 fi ;;
16349 esac
16350 fi
16351 ;;
16352 esac
16353 fi
16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16355 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
16356
16357
16358
16359 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
16360
16361
16362 # The cast to long int works around a bug in the HP C Compiler
16363 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16364 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16365 # This bug is HP SR number 8606223364.
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long int" >&5
16367 printf %s "checking size of unsigned long int... " >&6; }
16368 if test ${ac_cv_sizeof_unsigned_long_int+y}
16369 then :
16370 printf %s "(cached) " >&6
16371 else case e in #(
16372 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long int))" "ac_cv_sizeof_unsigned_long_int" "$ac_includes_default"
16373 then :
16374
16375 else case e in #(
16376 e) if test "$ac_cv_type_unsigned_long_int" = yes; then
16377 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16378 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16379 as_fn_error 77 "cannot compute sizeof (unsigned long int)
16380 See 'config.log' for more details" "$LINENO" 5; }
16381 else
16382 ac_cv_sizeof_unsigned_long_int=0
16383 fi ;;
16384 esac
16385 fi
16386 ;;
16387 esac
16388 fi
16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_int" >&5
16390 printf "%s\n" "$ac_cv_sizeof_unsigned_long_int" >&6; }
16391
16392
16393
16394 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_INT $ac_cv_sizeof_unsigned_long_int" >>confdefs.h
16395
16396
16397 # The cast to long int works around a bug in the HP C Compiler
16398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16399 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
16400 # This bug is HP SR number 8606223364.
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long int" >&5
16402 printf %s "checking size of unsigned long long int... " >&6; }
16403 if test ${ac_cv_sizeof_unsigned_long_long_int+y}
16404 then :
16405 printf %s "(cached) " >&6
16406 else case e in #(
16407 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long int))" "ac_cv_sizeof_unsigned_long_long_int" "$ac_includes_default"
16408 then :
16409
16410 else case e in #(
16411 e) if test "$ac_cv_type_unsigned_long_long_int" = yes; then
16412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16413 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16414 as_fn_error 77 "cannot compute sizeof (unsigned long long int)
16415 See 'config.log' for more details" "$LINENO" 5; }
16416 else
16417 ac_cv_sizeof_unsigned_long_long_int=0
16418 fi ;;
16419 esac
16420 fi
16421 ;;
16422 esac
16423 fi
16424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
16425 printf "%s\n" "$ac_cv_sizeof_unsigned_long_long_int" >&6; }
16426
16427
16428
16429 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int" >>confdefs.h
16430
16431
16432 ac_header_dirent=no
16433 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16434 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16436 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
16437 if eval test \${$as_ac_Header+y}
16438 then :
16439 printf %s "(cached) " >&6
16440 else case e in #(
16441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443 #include <sys/types.h>
16444 #include <$ac_hdr>
16445
16446 int
16447 main (void)
16448 {
16449 if ((DIR *) 0)
16450 return 0;
16451 ;
16452 return 0;
16453 }
16454 _ACEOF
16455 if ac_fn_c_try_compile "$LINENO"
16456 then :
16457 eval "$as_ac_Header=yes"
16458 else case e in #(
16459 e) eval "$as_ac_Header=no" ;;
16460 esac
16461 fi
16462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16463 esac
16464 fi
16465 eval ac_res=\$$as_ac_Header
16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16467 printf "%s\n" "$ac_res" >&6; }
16468 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16469 then :
16470 cat >>confdefs.h <<_ACEOF
16471 #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
16472 _ACEOF
16473
16474 ac_header_dirent=$ac_hdr; break
16475 fi
16476
16477 done
16478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16479 if test $ac_header_dirent = dirent.h; then
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16481 printf %s "checking for library containing opendir... " >&6; }
16482 if test ${ac_cv_search_opendir+y}
16483 then :
16484 printf %s "(cached) " >&6
16485 else case e in #(
16486 e) ac_func_search_save_LIBS=$LIBS
16487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16488 /* end confdefs.h. */
16489
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply.
16493 The 'extern "C"' is for builds by C++ compilers;
16494 although this is not generally supported in C code supporting it here
16495 has little cost and some practical benefit (sr 110532). */
16496 #ifdef __cplusplus
16497 extern "C"
16498 #endif
16499 char opendir (void);
16500 int
16501 main (void)
16502 {
16503 return opendir ();
16504 ;
16505 return 0;
16506 }
16507 _ACEOF
16508 for ac_lib in '' dir
16509 do
16510 if test -z "$ac_lib"; then
16511 ac_res="none required"
16512 else
16513 ac_res=-l$ac_lib
16514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16515 fi
16516 if ac_fn_c_try_link "$LINENO"
16517 then :
16518 ac_cv_search_opendir=$ac_res
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16521 conftest$ac_exeext
16522 if test ${ac_cv_search_opendir+y}
16523 then :
16524 break
16525 fi
16526 done
16527 if test ${ac_cv_search_opendir+y}
16528 then :
16529
16530 else case e in #(
16531 e) ac_cv_search_opendir=no ;;
16532 esac
16533 fi
16534 rm conftest.$ac_ext
16535 LIBS=$ac_func_search_save_LIBS ;;
16536 esac
16537 fi
16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16539 printf "%s\n" "$ac_cv_search_opendir" >&6; }
16540 ac_res=$ac_cv_search_opendir
16541 if test "$ac_res" != no
16542 then :
16543 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16544
16545 fi
16546
16547 else
16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16549 printf %s "checking for library containing opendir... " >&6; }
16550 if test ${ac_cv_search_opendir+y}
16551 then :
16552 printf %s "(cached) " >&6
16553 else case e in #(
16554 e) ac_func_search_save_LIBS=$LIBS
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557
16558 /* Override any GCC internal prototype to avoid an error.
16559 Use char because int might match the return type of a GCC
16560 builtin and then its argument prototype would still apply.
16561 The 'extern "C"' is for builds by C++ compilers;
16562 although this is not generally supported in C code supporting it here
16563 has little cost and some practical benefit (sr 110532). */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char opendir (void);
16568 int
16569 main (void)
16570 {
16571 return opendir ();
16572 ;
16573 return 0;
16574 }
16575 _ACEOF
16576 for ac_lib in '' x
16577 do
16578 if test -z "$ac_lib"; then
16579 ac_res="none required"
16580 else
16581 ac_res=-l$ac_lib
16582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16583 fi
16584 if ac_fn_c_try_link "$LINENO"
16585 then :
16586 ac_cv_search_opendir=$ac_res
16587 fi
16588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16589 conftest$ac_exeext
16590 if test ${ac_cv_search_opendir+y}
16591 then :
16592 break
16593 fi
16594 done
16595 if test ${ac_cv_search_opendir+y}
16596 then :
16597
16598 else case e in #(
16599 e) ac_cv_search_opendir=no ;;
16600 esac
16601 fi
16602 rm conftest.$ac_ext
16603 LIBS=$ac_func_search_save_LIBS ;;
16604 esac
16605 fi
16606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16607 printf "%s\n" "$ac_cv_search_opendir" >&6; }
16608 ac_res=$ac_cv_search_opendir
16609 if test "$ac_res" != no
16610 then :
16611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16612
16613 fi
16614
16615 fi
16616
16617
16618
16619 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
16620 #include <sys/types.h>
16621 #ifdef HAVE_DIRENT_H
16622 # include <dirent.h>
16623 #else
16624 # define dirent direct
16625 # ifdef HAVE_SYS_NDIR_H
16626 # include <sys/ndir.h>
16627 # endif
16628 # ifdef HAVE_SYS_DIR_H
16629 # include <sys/dir.h>
16630 # endif
16631 # ifdef HAVE_NDIR_H
16632 # include <ndir.h>
16633 # endif
16634 #endif
16635
16636 "
16637 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
16638 then :
16639
16640 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
16641
16642
16643 fi
16644
16645
16646 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
16647 if test "x$ac_cv_func_llseek" = xyes
16648 then :
16649 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
16650
16651 fi
16652 ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
16653 if test "x$ac_cv_func_alarm" = xyes
16654 then :
16655 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
16656
16657 fi
16658 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16659 if test "x$ac_cv_func_gethostbyname" = xyes
16660 then :
16661 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
16662
16663 fi
16664 ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
16665 if test "x$ac_cv_func_inet_ntoa" = xyes
16666 then :
16667 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
16668
16669 fi
16670 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
16671 if test "x$ac_cv_func_memset" = xyes
16672 then :
16673 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
16674
16675 fi
16676 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16677 if test "x$ac_cv_func_socket" = xyes
16678 then :
16679 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
16680
16681 fi
16682 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
16683 if test "x$ac_cv_func_strerror" = xyes
16684 then :
16685 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
16686
16687 fi
16688 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
16689 if test "x$ac_cv_func_strstr" = xyes
16690 then :
16691 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
16692
16693 fi
16694 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
16695 if test "x$ac_cv_func_mkstemp" = xyes
16696 then :
16697 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
16698
16699 fi
16700 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
16701 if test "x$ac_cv_func_fdatasync" = xyes
16702 then :
16703 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
16704
16705 fi
16706
16707 HAVE_FL_PH=no
16708
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16710 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16711 if test ${ac_cv_c_undeclared_builtin_options+y}
16712 then :
16713 printf %s "(cached) " >&6
16714 else case e in #(
16715 e) ac_save_CFLAGS=$CFLAGS
16716 ac_cv_c_undeclared_builtin_options='cannot detect'
16717 for ac_arg in '' -fno-builtin; do
16718 CFLAGS="$ac_save_CFLAGS $ac_arg"
16719 # This test program should *not* compile successfully.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722
16723 int
16724 main (void)
16725 {
16726 (void) strchr;
16727 ;
16728 return 0;
16729 }
16730 _ACEOF
16731 if ac_fn_c_try_compile "$LINENO"
16732 then :
16733
16734 else case e in #(
16735 e) # This test program should compile successfully.
16736 # No library function is consistently available on
16737 # freestanding implementations, so test against a dummy
16738 # declaration. Include always-available headers on the
16739 # off chance that they somehow elicit warnings.
16740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16741 /* end confdefs.h. */
16742 #include <float.h>
16743 #include <limits.h>
16744 #include <stdarg.h>
16745 #include <stddef.h>
16746 extern void ac_decl (int, char *);
16747
16748 int
16749 main (void)
16750 {
16751 (void) ac_decl (0, (char *) 0);
16752 (void) ac_decl;
16753
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_compile "$LINENO"
16759 then :
16760 if test x"$ac_arg" = x
16761 then :
16762 ac_cv_c_undeclared_builtin_options='none needed'
16763 else case e in #(
16764 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
16765 esac
16766 fi
16767 break
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16770 esac
16771 fi
16772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16773 done
16774 CFLAGS=$ac_save_CFLAGS
16775 ;;
16776 esac
16777 fi
16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16779 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16780 case $ac_cv_c_undeclared_builtin_options in #(
16781 'cannot detect') :
16782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16783 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16784 as_fn_error $? "cannot make $CC report undeclared builtins
16785 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16786 'none needed') :
16787 ac_c_undeclared_builtin_options='' ;; #(
16788 *) :
16789 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16790 esac
16791
16792 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
16793 if test "x$ac_cv_func_fallocate" = xyes
16794 then :
16795
16796 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
16797 if test "x$ac_cv_header_linux_falloc_h" = xyes
16798 then :
16799 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
16800
16801 fi
16802
16803 if test "x$ac_cv_header_linux_falloc_h" = "xyes"
16804 then
16805 ac_fn_check_decl "$LINENO" "FALLOC_FL_PUNCH_HOLE" "ac_cv_have_decl_FALLOC_FL_PUNCH_HOLE" "#include <linux/falloc.h>
16806 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16807 if test "x$ac_cv_have_decl_FALLOC_FL_PUNCH_HOLE" = xyes
16808 then :
16809 HAVE_FL_PH=yes
16810 else case e in #(
16811 e) HAVE_FL_PH=no ;;
16812 esac
16813 fi
16814 fi
16815
16816
16817 fi
16818
16819
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FALLOC_FL_PUNCH_HOLE support" >&5
16821 printf %s "checking for FALLOC_FL_PUNCH_HOLE support... " >&6; }
16822 if test "x$HAVE_FL_PH" = "xyes"
16823 then
16824
16825 printf "%s\n" "#define HAVE_FALLOC_PH 1" >>confdefs.h
16826
16827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 printf "%s\n" "yes" >&6; }
16829 else
16830
16831 printf "%s\n" "#define HAVE_FALLOC_PH 0" >>confdefs.h
16832
16833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16834 printf "%s\n" "no" >&6; }
16835 fi
16836
16837 ac_fn_check_decl "$LINENO" "BLKDISCARD" "ac_cv_have_decl_BLKDISCARD" "#include <linux/fs.h>
16838 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16839 if test "x$ac_cv_have_decl_BLKDISCARD" = xyes
16840 then :
16841
16842 printf "%s\n" "#define HAVE_BLKDISCARD 1" >>confdefs.h
16843
16844 else case e in #(
16845 e) printf "%s\n" "#define HAVE_BLKDISCARD 0" >>confdefs.h
16846 ;;
16847 esac
16848 fi
16849
16850 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
16851 if test "x$ac_cv_func_splice" = xyes
16852 then :
16853 HAVE_SPLICE=yes
16854 else case e in #(
16855 e) HAVE_SPLICE=no ;;
16856 esac
16857 fi
16858
16859 if test "$HAVE_SPLICE" = "yes"
16860 then
16861 HAVE_SETPIPE_SZ=no
16862 ac_fn_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "
16863 #define _GNU_SOURCE
16864 #include <fcntl.h>
16865
16866
16867 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16868 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes
16869 then :
16870 HAVE_SETPIPE_SZ=yes
16871 else case e in #(
16872 e)
16873 unset ac_cv_have_decl_F_SETPIPE_SZ
16874 ac_fn_c_check_header_compile "$LINENO" "linux/fcntl.h" "ac_cv_header_linux_fcntl_h" "$ac_includes_default"
16875 if test "x$ac_cv_header_linux_fcntl_h" = xyes
16876 then :
16877 printf "%s\n" "#define HAVE_LINUX_FCNTL_H 1" >>confdefs.h
16878
16879 fi
16880
16881 if test "$ac_cv_header_linux_fcntl_h" = "yes"
16882 then
16883 ac_fn_check_decl "$LINENO" "F_SETPIPE_SZ" "ac_cv_have_decl_F_SETPIPE_SZ" "#include <linux/fcntl.h>
16884 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16885 if test "x$ac_cv_have_decl_F_SETPIPE_SZ" = xyes
16886 then :
16887 HAVE_SETPIPE_SZ=define
16888 else case e in #(
16889 e) HAVE_SETPIPE_SZ=no ;;
16890 esac
16891 fi
16892 fi
16893 ;;
16894 esac
16895 fi
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for F_SETPIPE_SZ support" >&5
16897 printf %s "checking for F_SETPIPE_SZ support... " >&6; }
16898 case $HAVE_SETPIPE_SZ in
16899 yes)
16900
16901 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
16902
16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16904 printf "%s\n" "yes" >&6; }
16905 ;;
16906 define)
16907
16908 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
16909
16910
16911 printf "%s\n" "#define F_SETPIPE_SZ 1031" >>confdefs.h
16912
16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 printf "%s\n" "yes" >&6; }
16915 ;;
16916 no)
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing, disabling splice support" >&5
16918 printf "%s\n" "missing, disabling splice support" >&6; }
16919 ;;
16920 esac
16921 fi
16922
16923
16924
16925
16926
16927 # Check whether --with-gnutls was given.
16928 if test ${with_gnutls+y}
16929 then :
16930 withval=$with_gnutls;
16931 else case e in #(
16932 e) with_gnutls=check
16933 ;;
16934 esac
16935 fi
16936
16937 if test "x$with_gnutls" != "xno"; then
16938
16939 pkg_failed=no
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.12.0" >&5
16941 printf %s "checking for gnutls >= 2.12.0... " >&6; }
16942
16943 if test -n "$GnuTLS_CFLAGS"; then
16944 pkg_cv_GnuTLS_CFLAGS="$GnuTLS_CFLAGS"
16945 elif test -n "$PKG_CONFIG"; then
16946 if test -n "$PKG_CONFIG" && \
16947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.12.0\""; } >&5
16948 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.12.0") 2>&5
16949 ac_status=$?
16950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16951 test $ac_status = 0; }; then
16952 pkg_cv_GnuTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.12.0" 2>/dev/null`
16953 test "x$?" != "x0" && pkg_failed=yes
16954 else
16955 pkg_failed=yes
16956 fi
16957 else
16958 pkg_failed=untried
16959 fi
16960 if test -n "$GnuTLS_LIBS"; then
16961 pkg_cv_GnuTLS_LIBS="$GnuTLS_LIBS"
16962 elif test -n "$PKG_CONFIG"; then
16963 if test -n "$PKG_CONFIG" && \
16964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.12.0\""; } >&5
16965 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.12.0") 2>&5
16966 ac_status=$?
16967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16968 test $ac_status = 0; }; then
16969 pkg_cv_GnuTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.12.0" 2>/dev/null`
16970 test "x$?" != "x0" && pkg_failed=yes
16971 else
16972 pkg_failed=yes
16973 fi
16974 else
16975 pkg_failed=untried
16976 fi
16977
16978
16979
16980 if test $pkg_failed = yes; then
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982 printf "%s\n" "no" >&6; }
16983
16984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16985 _pkg_short_errors_supported=yes
16986 else
16987 _pkg_short_errors_supported=no
16988 fi
16989 if test $_pkg_short_errors_supported = yes; then
16990 GnuTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.12.0" 2>&1`
16991 else
16992 GnuTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.12.0" 2>&1`
16993 fi
16994 # Put the nasty error message in config.log where it belongs
16995 echo "$GnuTLS_PKG_ERRORS" >&5
16996
16997 if test "x$with_gnutls" = "xyes"; then
16998 as_fn_error $? "--with-gnutls given but cannot find gnutls" "$LINENO" 5
16999 else
17000 HAVE_GNUTLS=0
17001 printf "%s\n" "#define HAVE_GNUTLS 0" >>confdefs.h
17002
17003 fi
17004
17005 elif test $pkg_failed = untried; then
17006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17007 printf "%s\n" "no" >&6; }
17008 if test "x$with_gnutls" = "xyes"; then
17009 as_fn_error $? "--with-gnutls given but cannot find gnutls" "$LINENO" 5
17010 else
17011 HAVE_GNUTLS=0
17012 printf "%s\n" "#define HAVE_GNUTLS 0" >>confdefs.h
17013
17014 fi
17015
17016 else
17017 GnuTLS_CFLAGS=$pkg_cv_GnuTLS_CFLAGS
17018 GnuTLS_LIBS=$pkg_cv_GnuTLS_LIBS
17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020 printf "%s\n" "yes" >&6; }
17021 HAVE_GNUTLS=1
17022
17023 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
17024
17025 fi
17026 else
17027 HAVE_GNUTLS=0
17028 printf "%s\n" "#define HAVE_GNUTLS 0" >>confdefs.h
17029
17030 fi
17031 if test "x$HAVE_GNUTLS" = "x1"; then
17032 GNUTLS_TRUE=
17033 GNUTLS_FALSE='#'
17034 else
17035 GNUTLS_TRUE='#'
17036 GNUTLS_FALSE=
17037 fi
17038
17039
17040 ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#include <io.h>
17041 #include <windef.h>
17042 #include <winbase.h>
17043
17044 "
17045 if test "x$ac_cv_header_winioctl_h" = xyes
17046 then :
17047 printf "%s\n" "#define HAVE_WINIOCTL_H 1" >>confdefs.h
17048
17049 fi
17050
17051 HAVE_FSCTL_SET_ZERO_DATA=no
17052 if test "x$ac_cv_header_winioctl_h" = "xyes"
17053 then
17054 ac_fn_check_decl "$LINENO" "FSCTL_SET_ZERO_DATA" "ac_cv_have_decl_FSCTL_SET_ZERO_DATA" "#include <windef.h>
17055 #include <winbase.h>
17056 #include <winioctl.h>
17057
17058 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17059 if test "x$ac_cv_have_decl_FSCTL_SET_ZERO_DATA" = xyes
17060 then :
17061 HAVE_FSCTL_SET_ZERO_DATA=yes
17062 else case e in #(
17063 e) HAVE_FSCTL_SET_ZERO_DATA=no ;;
17064 esac
17065 fi
17066 fi
17067 if test "x$HAVE_FSCTL_SET_ZERO_DATA" = "xyes"
17068 then
17069
17070 printf "%s\n" "#define HAVE_FSCTL_SET_ZERO_DATA 1" >>confdefs.h
17071
17072 else
17073
17074 printf "%s\n" "#define HAVE_FSCTL_SET_ZERO_DATA 0" >>confdefs.h
17075
17076 fi
17077
17078 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
17079 if test "x$ac_cv_func_sync_file_range" = xyes
17080 then :
17081
17082 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE sync_file_range(2) is not supported" >>confdefs.h
17083
17084 fi
17085
17086
17087 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17088 "
17089 if test "x$ac_cv_type_pid_t" = xyes
17090 then :
17091
17092 else case e in #(
17093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17094 /* end confdefs.h. */
17095
17096 #if defined _WIN64 && !defined __CYGWIN__
17097 LLP64
17098 #endif
17099
17100 int
17101 main (void)
17102 {
17103
17104 ;
17105 return 0;
17106 }
17107
17108 _ACEOF
17109 if ac_fn_c_try_compile "$LINENO"
17110 then :
17111 ac_pid_type='int'
17112 else case e in #(
17113 e) ac_pid_type='__int64' ;;
17114 esac
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17117
17118 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17119
17120 ;;
17121 esac
17122 fi
17123
17124
17125
17126 ac_func=
17127 for ac_item in $ac_func_c_list
17128 do
17129 if test $ac_func; then
17130 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
17131 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
17132 echo "#define $ac_item 1" >> confdefs.h
17133 fi
17134 ac_func=
17135 else
17136 ac_func=$ac_item
17137 fi
17138 done
17139
17140
17141
17142 if test "x$ac_cv_func_fork" = xyes; then
17143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17144 printf %s "checking for working fork... " >&6; }
17145 if test ${ac_cv_func_fork_works+y}
17146 then :
17147 printf %s "(cached) " >&6
17148 else case e in #(
17149 e) if test "$cross_compiling" = yes
17150 then :
17151 ac_cv_func_fork_works=cross
17152 else case e in #(
17153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154 /* end confdefs.h. */
17155 $ac_includes_default
17156 int
17157 main (void)
17158 {
17159
17160 /* By R. Kuhlmann. */
17161 return fork () < 0;
17162
17163 ;
17164 return 0;
17165 }
17166 _ACEOF
17167 if ac_fn_c_try_run "$LINENO"
17168 then :
17169 ac_cv_func_fork_works=yes
17170 else case e in #(
17171 e) ac_cv_func_fork_works=no ;;
17172 esac
17173 fi
17174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17175 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17176 esac
17177 fi
17178 ;;
17179 esac
17180 fi
17181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17182 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
17183
17184 else
17185 ac_cv_func_fork_works=$ac_cv_func_fork
17186 fi
17187 if test "x$ac_cv_func_fork_works" = xcross; then
17188 case $host in
17189 *-*-amigaos* | *-*-msdosdjgpp*)
17190 # Override, as these systems have only a dummy fork() stub
17191 ac_cv_func_fork_works=no
17192 ;;
17193 *)
17194 ac_cv_func_fork_works=yes
17195 ;;
17196 esac
17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17198 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17199 fi
17200 ac_cv_func_vfork_works=$ac_cv_func_vfork
17201 if test "x$ac_cv_func_vfork" = xyes; then
17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17203 printf %s "checking for working vfork... " >&6; }
17204 if test ${ac_cv_func_vfork_works+y}
17205 then :
17206 printf %s "(cached) " >&6
17207 else case e in #(
17208 e) if test "$cross_compiling" = yes
17209 then :
17210 ac_cv_func_vfork_works=cross
17211 else case e in #(
17212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 /* Thanks to Paul Eggert for this test. */
17215 $ac_includes_default
17216 #include <signal.h>
17217 #include <sys/wait.h>
17218 #ifdef HAVE_VFORK_H
17219 # include <vfork.h>
17220 #endif
17221
17222 static void
17223 do_nothing (int sig)
17224 {
17225 (void) sig;
17226 }
17227
17228 /* On some sparc systems, changes by the child to local and incoming
17229 argument registers are propagated back to the parent. The compiler
17230 is told about this with #include <vfork.h>, but some compilers
17231 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17232 static variable whose address is put into a register that is
17233 clobbered by the vfork. */
17234 static void
17235 sparc_address_test (int arg)
17236 {
17237 static pid_t child;
17238 if (!child) {
17239 child = vfork ();
17240 if (child < 0) {
17241 perror ("vfork");
17242 _exit(2);
17243 }
17244 if (!child) {
17245 arg = getpid();
17246 write(-1, "", 0);
17247 _exit (arg);
17248 }
17249 }
17250 }
17251
17252 int
17253 main (void)
17254 {
17255 pid_t parent = getpid ();
17256 pid_t child;
17257
17258 sparc_address_test (0);
17259
17260 /* On Solaris 2.4, changes by the child to the signal handler
17261 also munge signal handlers in the parent. To detect this,
17262 start by putting the parent's handler in a known state. */
17263 signal (SIGTERM, SIG_DFL);
17264
17265 child = vfork ();
17266
17267 if (child == 0) {
17268 /* Here is another test for sparc vfork register problems. This
17269 test uses lots of local variables, at least as many local
17270 variables as main has allocated so far including compiler
17271 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17272 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17273 reuse the register of parent for one of the local variables,
17274 since it will think that parent can't possibly be used any more
17275 in this routine. Assigning to the local variable will thus
17276 munge parent in the parent process. */
17277 pid_t
17278 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17279 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17280 /* Convince the compiler that p..p7 are live; otherwise, it might
17281 use the same hardware register for all 8 local variables. */
17282 if (p != p1 || p != p2 || p != p3 || p != p4
17283 || p != p5 || p != p6 || p != p7)
17284 _exit(1);
17285
17286 /* Alter the child's signal handler. */
17287 if (signal (SIGTERM, do_nothing) != SIG_DFL)
17288 _exit(1);
17289
17290 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17291 from child file descriptors. If the child closes a descriptor
17292 before it execs or exits, this munges the parent's descriptor
17293 as well. Test for this by closing stdout in the child. */
17294 _exit(close(fileno(stdout)) != 0);
17295 } else {
17296 int status;
17297 struct stat st;
17298
17299 while (wait(&status) != child)
17300 ;
17301 return (
17302 /* Was there some problem with vforking? */
17303 child < 0
17304
17305 /* Did the child munge the parent's signal handler? */
17306 || signal (SIGTERM, SIG_DFL) != SIG_DFL
17307
17308 /* Did the child fail? (This shouldn't happen.) */
17309 || status
17310
17311 /* Did the vfork/compiler bug occur? */
17312 || parent != getpid()
17313
17314 /* Did the file descriptor bug occur? */
17315 || fstat(fileno(stdout), &st) != 0
17316 );
17317 }
17318 }
17319 _ACEOF
17320 if ac_fn_c_try_run "$LINENO"
17321 then :
17322 ac_cv_func_vfork_works=yes
17323 else case e in #(
17324 e) ac_cv_func_vfork_works=no ;;
17325 esac
17326 fi
17327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17328 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17329 esac
17330 fi
17331 ;;
17332 esac
17333 fi
17334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17335 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
17336
17337 fi;
17338 if test "x$ac_cv_func_fork_works" = xcross; then
17339 ac_cv_func_vfork_works=$ac_cv_func_vfork
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17341 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17342 fi
17343
17344 if test "x$ac_cv_func_vfork_works" = xyes; then
17345
17346 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17347
17348 else
17349
17350 printf "%s\n" "#define vfork fork" >>confdefs.h
17351
17352 fi
17353 if test "x$ac_cv_func_fork_works" = xyes; then
17354
17355 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
17356
17357 fi
17358
17359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether client should be built" >&5
17360 printf %s "checking whether client should be built... " >&6; }
17361 case $host_os in #(
17362 linux*) :
17363 NBD_CLIENT_NAME="nbd-client"; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17364 printf "%s\n" "yes" >&6; } ;; #(
17365 *) :
17366 NBD_CLIENT_NAME=""; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17367 printf "%s\n" "no" >&6; }
17368 ;;
17369 esac
17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to expect tlshuge test to fail" >&5
17371 printf %s "checking whether to expect tlshuge test to fail... " >&6; }
17372 case $host_os in #(
17373 darwin*) :
17374 RUN_XFAIL=tlshuge; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 printf "%s\n" "yes" >&6; } ;; #(
17376 *) :
17377 RUN_XFAIL=""; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17378 printf "%s\n" "no" >&6; }
17379 ;;
17380 esac
17381
17382 if test ! -z "$NBD_CLIENT_NAME"; then
17383 CLIENT_TRUE=
17384 CLIENT_FALSE='#'
17385 else
17386 CLIENT_TRUE='#'
17387 CLIENT_FALSE=
17388 fi
17389
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5
17391 printf %s "checking for library containing bind... " >&6; }
17392 if test ${ac_cv_search_bind+y}
17393 then :
17394 printf %s "(cached) " >&6
17395 else case e in #(
17396 e) ac_func_search_save_LIBS=$LIBS
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply.
17403 The 'extern "C"' is for builds by C++ compilers;
17404 although this is not generally supported in C code supporting it here
17405 has little cost and some practical benefit (sr 110532). */
17406 #ifdef __cplusplus
17407 extern "C"
17408 #endif
17409 char bind (void);
17410 int
17411 main (void)
17412 {
17413 return bind ();
17414 ;
17415 return 0;
17416 }
17417 _ACEOF
17418 for ac_lib in '' socket
17419 do
17420 if test -z "$ac_lib"; then
17421 ac_res="none required"
17422 else
17423 ac_res=-l$ac_lib
17424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17425 fi
17426 if ac_fn_c_try_link "$LINENO"
17427 then :
17428 ac_cv_search_bind=$ac_res
17429 fi
17430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17431 conftest$ac_exeext
17432 if test ${ac_cv_search_bind+y}
17433 then :
17434 break
17435 fi
17436 done
17437 if test ${ac_cv_search_bind+y}
17438 then :
17439
17440 else case e in #(
17441 e) ac_cv_search_bind=no ;;
17442 esac
17443 fi
17444 rm conftest.$ac_ext
17445 LIBS=$ac_func_search_save_LIBS ;;
17446 esac
17447 fi
17448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5
17449 printf "%s\n" "$ac_cv_search_bind" >&6; }
17450 ac_res=$ac_cv_search_bind
17451 if test "$ac_res" != no
17452 then :
17453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17454
17455 else case e in #(
17456 e) as_fn_error $? "Could not find an implementation of the bind() system call" "$LINENO" 5 ;;
17457 esac
17458 fi
17459
17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
17461 printf %s "checking for library containing inet_ntoa... " >&6; }
17462 if test ${ac_cv_search_inet_ntoa+y}
17463 then :
17464 printf %s "(cached) " >&6
17465 else case e in #(
17466 e) ac_func_search_save_LIBS=$LIBS
17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17468 /* end confdefs.h. */
17469
17470 /* Override any GCC internal prototype to avoid an error.
17471 Use char because int might match the return type of a GCC
17472 builtin and then its argument prototype would still apply.
17473 The 'extern "C"' is for builds by C++ compilers;
17474 although this is not generally supported in C code supporting it here
17475 has little cost and some practical benefit (sr 110532). */
17476 #ifdef __cplusplus
17477 extern "C"
17478 #endif
17479 char inet_ntoa (void);
17480 int
17481 main (void)
17482 {
17483 return inet_ntoa ();
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 for ac_lib in '' nsl
17489 do
17490 if test -z "$ac_lib"; then
17491 ac_res="none required"
17492 else
17493 ac_res=-l$ac_lib
17494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17495 fi
17496 if ac_fn_c_try_link "$LINENO"
17497 then :
17498 ac_cv_search_inet_ntoa=$ac_res
17499 fi
17500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17501 conftest$ac_exeext
17502 if test ${ac_cv_search_inet_ntoa+y}
17503 then :
17504 break
17505 fi
17506 done
17507 if test ${ac_cv_search_inet_ntoa+y}
17508 then :
17509
17510 else case e in #(
17511 e) ac_cv_search_inet_ntoa=no ;;
17512 esac
17513 fi
17514 rm conftest.$ac_ext
17515 LIBS=$ac_func_search_save_LIBS ;;
17516 esac
17517 fi
17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
17519 printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; }
17520 ac_res=$ac_cv_search_inet_ntoa
17521 if test "$ac_res" != no
17522 then :
17523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17524
17525 else case e in #(
17526 e) as_fn_error $? "Could not find an implementation of the inet_ntoa() system call" "$LINENO" 5 ;;
17527 esac
17528 fi
17529
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing daemon" >&5
17531 printf %s "checking for library containing daemon... " >&6; }
17532 if test ${ac_cv_search_daemon+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else case e in #(
17536 e) ac_func_search_save_LIBS=$LIBS
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply.
17543 The 'extern "C"' is for builds by C++ compilers;
17544 although this is not generally supported in C code supporting it here
17545 has little cost and some practical benefit (sr 110532). */
17546 #ifdef __cplusplus
17547 extern "C"
17548 #endif
17549 char daemon (void);
17550 int
17551 main (void)
17552 {
17553 return daemon ();
17554 ;
17555 return 0;
17556 }
17557 _ACEOF
17558 for ac_lib in '' resolv
17559 do
17560 if test -z "$ac_lib"; then
17561 ac_res="none required"
17562 else
17563 ac_res=-l$ac_lib
17564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17565 fi
17566 if ac_fn_c_try_link "$LINENO"
17567 then :
17568 ac_cv_search_daemon=$ac_res
17569 fi
17570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17571 conftest$ac_exeext
17572 if test ${ac_cv_search_daemon+y}
17573 then :
17574 break
17575 fi
17576 done
17577 if test ${ac_cv_search_daemon+y}
17578 then :
17579
17580 else case e in #(
17581 e) ac_cv_search_daemon=no ;;
17582 esac
17583 fi
17584 rm conftest.$ac_ext
17585 LIBS=$ac_func_search_save_LIBS ;;
17586 esac
17587 fi
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_daemon" >&5
17589 printf "%s\n" "$ac_cv_search_daemon" >&6; }
17590 ac_res=$ac_cv_search_daemon
17591 if test "$ac_res" != no
17592 then :
17593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17594
17595 else case e in #(
17596 e) as_fn_error $? "Could not find an implementation of the daemon() system call" "$LINENO" 5 ;;
17597 esac
17598 fi
17599
17600 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
17601
17602 "
17603 if test "x$ac_cv_header_sys_mount_h" = xyes
17604 then :
17605 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17606
17607 fi
17608
17609 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
17610 if test "x$ac_cv_header_arpa_inet_h" = xyes
17611 then :
17612 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
17613
17614 fi
17615 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17616 if test "x$ac_cv_header_fcntl_h" = xyes
17617 then :
17618 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17619
17620 fi
17621 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
17622 if test "x$ac_cv_header_netdb_h" = xyes
17623 then :
17624 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
17625
17626 fi
17627 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
17628 if test "x$ac_cv_header_netinet_in_h" = xyes
17629 then :
17630 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
17631
17632 fi
17633 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
17634 if test "x$ac_cv_header_sys_ioctl_h" = xyes
17635 then :
17636 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
17637
17638 fi
17639 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
17640 if test "x$ac_cv_header_sys_socket_h" = xyes
17641 then :
17642 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
17643
17644 fi
17645 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
17646 if test "x$ac_cv_header_syslog_h" = xyes
17647 then :
17648 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
17649
17650 fi
17651 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
17652 if test "x$ac_cv_header_linux_types_h" = xyes
17653 then :
17654 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
17655
17656 fi
17657 ac_fn_c_check_header_compile "$LINENO" "sys/dirent.h" "ac_cv_header_sys_dirent_h" "$ac_includes_default"
17658 if test "x$ac_cv_header_sys_dirent_h" = xyes
17659 then :
17660 printf "%s\n" "#define HAVE_SYS_DIRENT_H 1" >>confdefs.h
17661
17662 fi
17663 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
17664 if test "x$ac_cv_header_sys_uio_h" = xyes
17665 then :
17666 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
17667
17668 fi
17669
17670
17671 pkg_failed=no
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0" >&5
17673 printf %s "checking for glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0... " >&6; }
17674
17675 if test -n "$GLIB_CFLAGS"; then
17676 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17677 elif test -n "$PKG_CONFIG"; then
17678 if test -n "$PKG_CONFIG" && \
17679 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0\""; } >&5
17680 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0") 2>&5
17681 ac_status=$?
17682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17683 test $ac_status = 0; }; then
17684 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0" 2>/dev/null`
17685 test "x$?" != "x0" && pkg_failed=yes
17686 else
17687 pkg_failed=yes
17688 fi
17689 else
17690 pkg_failed=untried
17691 fi
17692 if test -n "$GLIB_LIBS"; then
17693 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17694 elif test -n "$PKG_CONFIG"; then
17695 if test -n "$PKG_CONFIG" && \
17696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0\""; } >&5
17697 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0") 2>&5
17698 ac_status=$?
17699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17700 test $ac_status = 0; }; then
17701 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0" 2>/dev/null`
17702 test "x$?" != "x0" && pkg_failed=yes
17703 else
17704 pkg_failed=yes
17705 fi
17706 else
17707 pkg_failed=untried
17708 fi
17709
17710
17711
17712 if test $pkg_failed = yes; then
17713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 printf "%s\n" "no" >&6; }
17715
17716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17717 _pkg_short_errors_supported=yes
17718 else
17719 _pkg_short_errors_supported=no
17720 fi
17721 if test $_pkg_short_errors_supported = yes; then
17722 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0" 2>&1`
17723 else
17724 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32.0 gthread-2.0 >= 2.32.0" 2>&1`
17725 fi
17726 # Put the nasty error message in config.log where it belongs
17727 echo "$GLIB_PKG_ERRORS" >&5
17728
17729 as_fn_error $? "Missing glib" "$LINENO" 5
17730 elif test $pkg_failed = untried; then
17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17732 printf "%s\n" "no" >&6; }
17733 as_fn_error $? "Missing glib" "$LINENO" 5
17734 else
17735 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17736 GLIB_LIBS=$pkg_cv_GLIB_LIBS
17737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17738 printf "%s\n" "yes" >&6; }
17739 HAVE_GLIB=yes
17740 fi
17741
17742 pkg_failed=no
17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket_wrapper" >&5
17744 printf %s "checking for socket_wrapper... " >&6; }
17745
17746 if test -n "$SW_CFLAGS"; then
17747 pkg_cv_SW_CFLAGS="$SW_CFLAGS"
17748 elif test -n "$PKG_CONFIG"; then
17749 if test -n "$PKG_CONFIG" && \
17750 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"socket_wrapper\""; } >&5
17751 ($PKG_CONFIG --exists --print-errors "socket_wrapper") 2>&5
17752 ac_status=$?
17753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17754 test $ac_status = 0; }; then
17755 pkg_cv_SW_CFLAGS=`$PKG_CONFIG --cflags "socket_wrapper" 2>/dev/null`
17756 test "x$?" != "x0" && pkg_failed=yes
17757 else
17758 pkg_failed=yes
17759 fi
17760 else
17761 pkg_failed=untried
17762 fi
17763 if test -n "$SW_LIBS"; then
17764 pkg_cv_SW_LIBS="$SW_LIBS"
17765 elif test -n "$PKG_CONFIG"; then
17766 if test -n "$PKG_CONFIG" && \
17767 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"socket_wrapper\""; } >&5
17768 ($PKG_CONFIG --exists --print-errors "socket_wrapper") 2>&5
17769 ac_status=$?
17770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; }; then
17772 pkg_cv_SW_LIBS=`$PKG_CONFIG --libs "socket_wrapper" 2>/dev/null`
17773 test "x$?" != "x0" && pkg_failed=yes
17774 else
17775 pkg_failed=yes
17776 fi
17777 else
17778 pkg_failed=untried
17779 fi
17780
17781
17782
17783 if test $pkg_failed = yes; then
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17785 printf "%s\n" "no" >&6; }
17786
17787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17788 _pkg_short_errors_supported=yes
17789 else
17790 _pkg_short_errors_supported=no
17791 fi
17792 if test $_pkg_short_errors_supported = yes; then
17793 SW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "socket_wrapper" 2>&1`
17794 else
17795 SW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "socket_wrapper" 2>&1`
17796 fi
17797 # Put the nasty error message in config.log where it belongs
17798 echo "$SW_PKG_ERRORS" >&5
17799
17800 HAVE_SW=no
17801 elif test $pkg_failed = untried; then
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 printf "%s\n" "no" >&6; }
17804 HAVE_SW=no
17805 else
17806 SW_CFLAGS=$pkg_cv_SW_CFLAGS
17807 SW_LIBS=$pkg_cv_SW_LIBS
17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17809 printf "%s\n" "yes" >&6; }
17810 HAVE_SW=yes
17811 fi
17812
17813 pkg_failed=no
17814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss_wrapper" >&5
17815 printf %s "checking for nss_wrapper... " >&6; }
17816
17817 if test -n "$NW_CFLAGS"; then
17818 pkg_cv_NW_CFLAGS="$NW_CFLAGS"
17819 elif test -n "$PKG_CONFIG"; then
17820 if test -n "$PKG_CONFIG" && \
17821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss_wrapper\""; } >&5
17822 ($PKG_CONFIG --exists --print-errors "nss_wrapper") 2>&5
17823 ac_status=$?
17824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17825 test $ac_status = 0; }; then
17826 pkg_cv_NW_CFLAGS=`$PKG_CONFIG --cflags "nss_wrapper" 2>/dev/null`
17827 test "x$?" != "x0" && pkg_failed=yes
17828 else
17829 pkg_failed=yes
17830 fi
17831 else
17832 pkg_failed=untried
17833 fi
17834 if test -n "$NW_LIBS"; then
17835 pkg_cv_NW_LIBS="$NW_LIBS"
17836 elif test -n "$PKG_CONFIG"; then
17837 if test -n "$PKG_CONFIG" && \
17838 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss_wrapper\""; } >&5
17839 ($PKG_CONFIG --exists --print-errors "nss_wrapper") 2>&5
17840 ac_status=$?
17841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17842 test $ac_status = 0; }; then
17843 pkg_cv_NW_LIBS=`$PKG_CONFIG --libs "nss_wrapper" 2>/dev/null`
17844 test "x$?" != "x0" && pkg_failed=yes
17845 else
17846 pkg_failed=yes
17847 fi
17848 else
17849 pkg_failed=untried
17850 fi
17851
17852
17853
17854 if test $pkg_failed = yes; then
17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17856 printf "%s\n" "no" >&6; }
17857
17858 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17859 _pkg_short_errors_supported=yes
17860 else
17861 _pkg_short_errors_supported=no
17862 fi
17863 if test $_pkg_short_errors_supported = yes; then
17864 NW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss_wrapper" 2>&1`
17865 else
17866 NW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss_wrapper" 2>&1`
17867 fi
17868 # Put the nasty error message in config.log where it belongs
17869 echo "$NW_PKG_ERRORS" >&5
17870
17871 HAVE_NW=no
17872 elif test $pkg_failed = untried; then
17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17874 printf "%s\n" "no" >&6; }
17875 HAVE_NW=no
17876 else
17877 NW_CFLAGS=$pkg_cv_NW_CFLAGS
17878 NW_LIBS=$pkg_cv_NW_LIBS
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17880 printf "%s\n" "yes" >&6; }
17881 HAVE_NW=yes
17882 fi
17883 if test "$HAVE_SW" = "yes" -a "$HAVE_NW" = "yes"; then
17884 CWRAP_TRUE=
17885 CWRAP_FALSE='#'
17886 else
17887 CWRAP_TRUE='#'
17888 CWRAP_FALSE=
17889 fi
17890
17891
17892 my_save_cflags="$CFLAGS"
17893 my_save_libs="$LIBS"
17894 CFLAGS="-Wdeprecated-declarations -Werror $GLIB_CFLAGS"
17895 LIBS="$GLIB_LIBS"
17896 ac_fn_c_check_func "$LINENO" "g_memdup2" "ac_cv_func_g_memdup2"
17897 if test "x$ac_cv_func_g_memdup2" = xyes
17898 then :
17899 printf "%s\n" "#define HAVE_G_MEMDUP2 1" >>confdefs.h
17900
17901 fi
17902
17903 CFLAGS="$my_save_cflags"
17904 LIBS="$my_save_libs"
17905
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _BSD_SOURCE needs to be defined for DT_* macros" >&5
17907 printf %s "checking whether _BSD_SOURCE needs to be defined for DT_* macros... " >&6; }
17908
17909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910 /* end confdefs.h. */
17911 #include <dirent.h>
17912 int
17913 main (void)
17914 {
17915 #ifndef DT_UNKNOWN
17916 #error nope
17917 #endif
17918 ;
17919 return 0;
17920 }
17921 _ACEOF
17922 if ac_fn_c_try_cpp "$LINENO"
17923 then :
17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17925 printf "%s\n" "no" >&6; }; NEED_BSD_SOURCE=0
17926 else case e in #(
17927 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17928 printf "%s\n" "yes" >&6; }; NEED_BSD_SOURCE=1 ;;
17929 esac
17930 fi
17931 rm -f conftest.err conftest.i conftest.$ac_ext
17932
17933 printf "%s\n" "#define NEED_BSD_SOURCE \$NEED_BSD_SOURCE" >>confdefs.h
17934
17935
17936
17937 # Check whether --with-libnl was given.
17938 if test ${with_libnl+y}
17939 then :
17940 withval=$with_libnl;
17941 else case e in #(
17942 e) with_libnl=check
17943 ;;
17944 esac
17945 fi
17946
17947 if test "x$with_libnl" != "xno"; then
17948
17949 pkg_failed=no
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnl-genl-3.0 >= 3.1" >&5
17951 printf %s "checking for libnl-genl-3.0 >= 3.1... " >&6; }
17952
17953 if test -n "$LIBNL3_CFLAGS"; then
17954 pkg_cv_LIBNL3_CFLAGS="$LIBNL3_CFLAGS"
17955 elif test -n "$PKG_CONFIG"; then
17956 if test -n "$PKG_CONFIG" && \
17957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0 >= 3.1\""; } >&5
17958 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0 >= 3.1") 2>&5
17959 ac_status=$?
17960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17961 test $ac_status = 0; }; then
17962 pkg_cv_LIBNL3_CFLAGS=`$PKG_CONFIG --cflags "libnl-genl-3.0 >= 3.1" 2>/dev/null`
17963 test "x$?" != "x0" && pkg_failed=yes
17964 else
17965 pkg_failed=yes
17966 fi
17967 else
17968 pkg_failed=untried
17969 fi
17970 if test -n "$LIBNL3_LIBS"; then
17971 pkg_cv_LIBNL3_LIBS="$LIBNL3_LIBS"
17972 elif test -n "$PKG_CONFIG"; then
17973 if test -n "$PKG_CONFIG" && \
17974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnl-genl-3.0 >= 3.1\""; } >&5
17975 ($PKG_CONFIG --exists --print-errors "libnl-genl-3.0 >= 3.1") 2>&5
17976 ac_status=$?
17977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17978 test $ac_status = 0; }; then
17979 pkg_cv_LIBNL3_LIBS=`$PKG_CONFIG --libs "libnl-genl-3.0 >= 3.1" 2>/dev/null`
17980 test "x$?" != "x0" && pkg_failed=yes
17981 else
17982 pkg_failed=yes
17983 fi
17984 else
17985 pkg_failed=untried
17986 fi
17987
17988
17989
17990 if test $pkg_failed = yes; then
17991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17992 printf "%s\n" "no" >&6; }
17993
17994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17995 _pkg_short_errors_supported=yes
17996 else
17997 _pkg_short_errors_supported=no
17998 fi
17999 if test $_pkg_short_errors_supported = yes; then
18000 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnl-genl-3.0 >= 3.1" 2>&1`
18001 else
18002 LIBNL3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnl-genl-3.0 >= 3.1" 2>&1`
18003 fi
18004 # Put the nasty error message in config.log where it belongs
18005 echo "$LIBNL3_PKG_ERRORS" >&5
18006
18007 if test "x$with_libnl" = "xyes"; then
18008 as_fn_error $? "--with-libnl given but cannot find libnl" "$LINENO" 5
18009 else
18010 HAVE_NETLINK=0
18011 printf "%s\n" "#define HAVE_NETLINK 0" >>confdefs.h
18012
18013 fi
18014
18015 elif test $pkg_failed = untried; then
18016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 printf "%s\n" "no" >&6; }
18018 if test "x$with_libnl" = "xyes"; then
18019 as_fn_error $? "--with-libnl given but cannot find libnl" "$LINENO" 5
18020 else
18021 HAVE_NETLINK=0
18022 printf "%s\n" "#define HAVE_NETLINK 0" >>confdefs.h
18023
18024 fi
18025
18026 else
18027 LIBNL3_CFLAGS=$pkg_cv_LIBNL3_CFLAGS
18028 LIBNL3_LIBS=$pkg_cv_LIBNL3_LIBS
18029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18030 printf "%s\n" "yes" >&6; }
18031 HAVE_NETLINK=1
18032
18033 printf "%s\n" "#define HAVE_NETLINK 1" >>confdefs.h
18034
18035 CFLAGS="$CFLAGS $LIBNL3_CFLAGS"
18036 LIBS="$LIBS $LIBNL3_LIBS"
18037 fi
18038 else
18039 HAVE_NETLINK=0
18040
18041 printf "%s\n" "#define HAVE_NETLINK 0" >>confdefs.h
18042
18043 fi
18044
18045 if test "$HAVE_NETLINK" = "1"; then
18046 NETLINK_TRUE=
18047 NETLINK_FALSE='#'
18048 else
18049 NETLINK_TRUE='#'
18050 NETLINK_FALSE=
18051 fi
18052
18053
18054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether man pages are requested" >&5
18055 printf %s "checking whether man pages are requested... " >&6; }
18056 # Check whether --enable-manpages was given.
18057 if test ${enable_manpages+y}
18058 then :
18059 enableval=$enable_manpages;
18060 else case e in #(
18061 e) enable_manpages=check
18062 ;;
18063 esac
18064 fi
18065
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_manpages" >&5
18067 printf "%s\n" "$enable_manpages" >&6; }
18068
18069 if test "x$enable_manpages" != "xno"
18070 then :
18071
18072 # Extract the first word of "docbook2man", so it can be a program name with args.
18073 set dummy docbook2man; ac_word=$2
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18075 printf %s "checking for $ac_word... " >&6; }
18076 if test ${ac_cv_prog_DB2M+y}
18077 then :
18078 printf %s "(cached) " >&6
18079 else case e in #(
18080 e) if test -n "$DB2M"; then
18081 ac_cv_prog_DB2M="$DB2M" # Let the user override the test.
18082 else
18083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18084 for as_dir in $PATH
18085 do
18086 IFS=$as_save_IFS
18087 case $as_dir in #(((
18088 '') as_dir=./ ;;
18089 */) ;;
18090 *) as_dir=$as_dir/ ;;
18091 esac
18092 for ac_exec_ext in '' $ac_executable_extensions; do
18093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18094 ac_cv_prog_DB2M="docbook2man"
18095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18096 break 2
18097 fi
18098 done
18099 done
18100 IFS=$as_save_IFS
18101
18102 fi ;;
18103 esac
18104 fi
18105 DB2M=$ac_cv_prog_DB2M
18106 if test -n "$DB2M"; then
18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DB2M" >&5
18108 printf "%s\n" "$DB2M" >&6; }
18109 else
18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18111 printf "%s\n" "no" >&6; }
18112 fi
18113
18114
18115
18116 fi
18117 if test "x$enable_manpages" = "xyes" -a "x$DB2M" = "x"
18118 then :
18119
18120 as_fn_error $? "docbook2man not found, but is required to build manpages" "$LINENO" 5
18121
18122 fi
18123 if test "x$enable_manpages" = "xcheck"; then
18124 if test "x$DB2M" = "x"; then
18125 enable_manpages=no
18126 else
18127 enable_manpages=yes
18128 fi
18129 fi
18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build manpages" >&5
18131 printf %s "checking whether to build manpages... " >&6; }
18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_manpages" >&5
18133 printf "%s\n" "$enable_manpages" >&6; }
18134
18135 if test "x$enable_manpages" = "xyes"; then
18136 MANPAGES_TRUE=
18137 MANPAGES_FALSE='#'
18138 else
18139 MANPAGES_TRUE='#'
18140 MANPAGES_FALSE=
18141 fi
18142
18143 if test "x$enable_manpages" != "xno"
18144 then :
18145
18146 MAN_CONFIG_FILES="\
18147 man/nbd-client.8.sgml \
18148 man/nbd-server.5.sgml \
18149 man/nbd-server.1.sgml \
18150 man/nbd-trdump.1.sgml \
18151 man/nbd-trplay.1.sgml \
18152 man/nbdtab.5.sgml \
18153 "
18154
18155
18156 fi
18157 MAN_PREFIX="$prefix"
18158 test "x$MAN_PREFIX" = "xNONE" && MAN_PREFIX="$ac_default_prefix"
18159
18160 MAN_EXEC_PREFIX=$(eval echo "$exec_prefix")
18161 test "x$MAN_EXEC_PREFIX" = "xNONE" && MAN_EXEC_PREFIX="$MAN_PREFIX"
18162
18163 MAN_SYSCONFDIR=$(eval echo "$sysconfdir")
18164 test "x$MAN_SYSCONFDIR" = "xNONE/etc" && MAN_SYSCONFDIR="$MAN_PREFIX/etc"
18165
18166
18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18168 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18169 if test ${ac_cv_header_sys_wait_h+y}
18170 then :
18171 printf %s "(cached) " >&6
18172 else case e in #(
18173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18175 #include <sys/types.h>
18176 #include <sys/wait.h>
18177 #ifndef WEXITSTATUS
18178 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18179 #endif
18180 #ifndef WIFEXITED
18181 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18182 #endif
18183
18184 int
18185 main (void)
18186 {
18187 int s;
18188 wait (&s);
18189 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_compile "$LINENO"
18195 then :
18196 ac_cv_header_sys_wait_h=yes
18197 else case e in #(
18198 e) ac_cv_header_sys_wait_h=no ;;
18199 esac
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18202 esac
18203 fi
18204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18205 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
18206 if test $ac_cv_header_sys_wait_h = yes; then
18207
18208 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18209
18210 fi
18211
18212 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18213 if test "x$ac_cv_type_off_t" = xyes
18214 then :
18215
18216 else case e in #(
18217 e)
18218 printf "%s\n" "#define off_t long int" >>confdefs.h
18219 ;;
18220 esac
18221 fi
18222
18223
18224 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18225 "
18226 if test "x$ac_cv_type_pid_t" = xyes
18227 then :
18228
18229 else case e in #(
18230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 #if defined _WIN64 && !defined __CYGWIN__
18234 LLP64
18235 #endif
18236
18237 int
18238 main (void)
18239 {
18240
18241 ;
18242 return 0;
18243 }
18244
18245 _ACEOF
18246 if ac_fn_c_try_compile "$LINENO"
18247 then :
18248 ac_pid_type='int'
18249 else case e in #(
18250 e) ac_pid_type='__int64' ;;
18251 esac
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18254
18255 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18256
18257 ;;
18258 esac
18259 fi
18260
18261
18262 AM_CPPFLAGS=$AM_CPPFLAGS" -DSYSCONFDIR='\"$sysconfdir\"'"
18263
18264 if test "x$ENABLE_GZNBD" = "xyes"; then
18265 GZNBD_TRUE=
18266 GZNBD_FALSE='#'
18267 else
18268 GZNBD_TRUE='#'
18269 GZNBD_FALSE=
18270 fi
18271
18272 ac_config_headers="$ac_config_headers config.h"
18273
18274 ac_config_links="$ac_config_links tests/run/buffer.c:buffer.c tests/run/crypto-gnutls.c:crypto-gnutls.c tests/run/cliserv.c:cliserv.c"
18275
18276 ac_config_files="$ac_config_files Makefile doc/Doxyfile doc/Makefile man/Makefile tests/Makefile tests/code/Makefile tests/run/Makefile tests/parse/Makefile $MAN_CONFIG_FILES systemd/Makefile systemd/[email protected]"
18277
18278 cat >confcache <<\_ACEOF
18279 # This file is a shell script that caches the results of configure
18280 # tests run on this system so they can be shared between configure
18281 # scripts and configure runs, see configure's option --config-cache.
18282 # It is not useful on other systems. If it contains results you don't
18283 # want to keep, you may remove or edit it.
18284 #
18285 # config.status only pays attention to the cache file if you give it
18286 # the --recheck option to rerun configure.
18287 #
18288 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18289 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18290 # following values.
18291
18292 _ACEOF
18293
18294 # The following way of writing the cache mishandles newlines in values,
18295 # but we know of no workaround that is simple, portable, and efficient.
18296 # So, we kill variables containing newlines.
18297 # Ultrix sh set writes to stderr and can't be redirected directly,
18298 # and sets the high bit in the cache file unless we assign to the vars.
18299 (
18300 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18301 eval ac_val=\$$ac_var
18302 case $ac_val in #(
18303 *${as_nl}*)
18304 case $ac_var in #(
18305 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18306 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18307 esac
18308 case $ac_var in #(
18309 _ | IFS | as_nl) ;; #(
18310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18311 *) { eval $ac_var=; unset $ac_var;} ;;
18312 esac ;;
18313 esac
18314 done
18315
18316 (set) 2>&1 |
18317 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18318 *${as_nl}ac_space=\ *)
18319 # 'set' does not quote correctly, so add quotes: double-quote
18320 # substitution turns \\\\ into \\, and sed turns \\ into \.
18321 sed -n \
18322 "s/'/'\\\\''/g;
18323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18324 ;; #(
18325 *)
18326 # 'set' quotes correctly as required by POSIX, so do not add quotes.
18327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18328 ;;
18329 esac |
18330 sort
18331 ) |
18332 sed '
18333 /^ac_cv_env_/b end
18334 t clear
18335 :clear
18336 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18337 t end
18338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18339 :end' >>confcache
18340 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18341 if test -w "$cache_file"; then
18342 if test "x$cache_file" != "x/dev/null"; then
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18344 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18345 if test ! -f "$cache_file" || test -h "$cache_file"; then
18346 cat confcache >"$cache_file"
18347 else
18348 case $cache_file in #(
18349 */* | ?:*)
18350 mv -f confcache "$cache_file"$$ &&
18351 mv -f "$cache_file"$$ "$cache_file" ;; #(
18352 *)
18353 mv -f confcache "$cache_file" ;;
18354 esac
18355 fi
18356 fi
18357 else
18358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18359 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18360 fi
18361 fi
18362 rm -f confcache
18363
18364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18365 # Let make expand exec_prefix.
18366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18367
18368 DEFS=-DHAVE_CONFIG_H
18369
18370 ac_libobjs=
18371 ac_ltlibobjs=
18372 U=
18373 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18374 # 1. Remove the extension, and $U if already installed.
18375 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18376 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18377 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18378 # will be set to the directory where LIBOBJS objects are built.
18379 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18380 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18381 done
18382 LIBOBJS=$ac_libobjs
18383
18384 LTLIBOBJS=$ac_ltlibobjs
18385
18386
18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18388 printf %s "checking that generated files are newer than configure... " >&6; }
18389 if test -n "$am_sleep_pid"; then
18390 # Hide warnings about reused PIDs.
18391 wait $am_sleep_pid 2>/dev/null
18392 fi
18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
18394 printf "%s\n" "done" >&6; }
18395 case $enable_silent_rules in # (((
18396 yes) AM_DEFAULT_VERBOSITY=0;;
18397 no) AM_DEFAULT_VERBOSITY=1;;
18398 esac
18399 if test $am_cv_make_support_nested_variables = yes; then
18400 AM_V='$(V)'
18401 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18402 else
18403 AM_V=$AM_DEFAULT_VERBOSITY
18404 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18405 fi
18406
18407 if test -n "$EXEEXT"; then
18408 am__EXEEXT_TRUE=
18409 am__EXEEXT_FALSE='#'
18410 else
18411 am__EXEEXT_TRUE='#'
18412 am__EXEEXT_FALSE=
18413 fi
18414
18415 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18416 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18418 fi
18419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18420 as_fn_error $? "conditional \"AMDEP\" was never defined.
18421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18422 fi
18423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18424 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18426 fi
18427 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18428 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18430 fi
18431
18432 if test -z "${GNUTLS_TRUE}" && test -z "${GNUTLS_FALSE}"; then
18433 as_fn_error $? "conditional \"GNUTLS\" was never defined.
18434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18435 fi
18436 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
18437 as_fn_error $? "conditional \"CLIENT\" was never defined.
18438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18439 fi
18440 if test -z "${CWRAP_TRUE}" && test -z "${CWRAP_FALSE}"; then
18441 as_fn_error $? "conditional \"CWRAP\" was never defined.
18442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18443 fi
18444 if test -z "${NETLINK_TRUE}" && test -z "${NETLINK_FALSE}"; then
18445 as_fn_error $? "conditional \"NETLINK\" was never defined.
18446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18447 fi
18448 if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then
18449 as_fn_error $? "conditional \"MANPAGES\" was never defined.
18450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18451 fi
18452 if test -z "${GZNBD_TRUE}" && test -z "${GZNBD_FALSE}"; then
18453 as_fn_error $? "conditional \"GZNBD\" was never defined.
18454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18455 fi
18456
18457 : "${CONFIG_STATUS=./config.status}"
18458 ac_write_fail=0
18459 ac_clean_files_save=$ac_clean_files
18460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18462 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
18463 as_write_fail=0
18464 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18465 #! $SHELL
18466 # Generated by $as_me.
18467 # Run this file to recreate the current configuration.
18468 # Compiler output produced by configure, useful for debugging
18469 # configure, is in config.log if it exists.
18470
18471 debug=false
18472 ac_cs_recheck=false
18473 ac_cs_silent=false
18474
18475 SHELL=\${CONFIG_SHELL-$SHELL}
18476 export SHELL
18477 _ASEOF
18478 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18479 ## -------------------- ##
18480 ## M4sh Initialization. ##
18481 ## -------------------- ##
18482
18483 # Be more Bourne compatible
18484 DUALCASE=1; export DUALCASE # for MKS sh
18485 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
18486 then :
18487 emulate sh
18488 NULLCMD=:
18489 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18490 # is contrary to our usage. Disable this feature.
18491 alias -g '${1+"$@"}'='"$@"'
18492 setopt NO_GLOB_SUBST
18493 else case e in #(
18494 e) case `(set -o) 2>/dev/null` in #(
18495 *posix*) :
18496 set -o posix ;; #(
18497 *) :
18498 ;;
18499 esac ;;
18500 esac
18501 fi
18502
18503
18504
18505 # Reset variables that may have inherited troublesome values from
18506 # the environment.
18507
18508 # IFS needs to be set, to space, tab, and newline, in precisely that order.
18509 # (If _AS_PATH_WALK were called with IFS unset, it would have the
18510 # side effect of setting IFS to empty, thus disabling word splitting.)
18511 # Quoting is to prevent editors from complaining about space-tab.
18512 as_nl='
18513 '
18514 export as_nl
18515 IFS=" "" $as_nl"
18516
18517 PS1='$ '
18518 PS2='> '
18519 PS4='+ '
18520
18521 # Ensure predictable behavior from utilities with locale-dependent output.
18522 LC_ALL=C
18523 export LC_ALL
18524 LANGUAGE=C
18525 export LANGUAGE
18526
18527 # We cannot yet rely on "unset" to work, but we need these variables
18528 # to be unset--not just set to an empty or harmless value--now, to
18529 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
18530 # also avoids known problems related to "unset" and subshell syntax
18531 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
18532 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
18533 do eval test \${$as_var+y} \
18534 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18535 done
18536
18537 # Ensure that fds 0, 1, and 2 are open.
18538 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
18539 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
18540 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
18541
18542 # The user is always right.
18543 if ${PATH_SEPARATOR+false} :; then
18544 PATH_SEPARATOR=:
18545 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18546 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18547 PATH_SEPARATOR=';'
18548 }
18549 fi
18550
18551
18552 # Find who we are. Look in the path if we contain no directory separator.
18553 as_myself=
18554 case $0 in #((
18555 *[\\/]* ) as_myself=$0 ;;
18556 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18558 do
18559 IFS=$as_save_IFS
18560 case $as_dir in #(((
18561 '') as_dir=./ ;;
18562 */) ;;
18563 *) as_dir=$as_dir/ ;;
18564 esac
18565 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
18566 done
18567 IFS=$as_save_IFS
18568
18569 ;;
18570 esac
18571 # We did not find ourselves, most probably we were run as 'sh COMMAND'
18572 # in which case we are not to be found in the path.
18573 if test "x$as_myself" = x; then
18574 as_myself=$0
18575 fi
18576 if test ! -f "$as_myself"; then
18577 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18578 exit 1
18579 fi
18580
18581
18582
18583 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18584 # ----------------------------------------
18585 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18586 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18587 # script with STATUS, using 1 if that was 0.
18588 as_fn_error ()
18589 {
18590 as_status=$1; test $as_status -eq 0 && as_status=1
18591 if test "$4"; then
18592 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18594 fi
18595 printf "%s\n" "$as_me: error: $2" >&2
18596 as_fn_exit $as_status
18597 } # as_fn_error
18598
18599
18600 # as_fn_set_status STATUS
18601 # -----------------------
18602 # Set $? to STATUS, without forking.
18603 as_fn_set_status ()
18604 {
18605 return $1
18606 } # as_fn_set_status
18607
18608 # as_fn_exit STATUS
18609 # -----------------
18610 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18611 as_fn_exit ()
18612 {
18613 set +e
18614 as_fn_set_status $1
18615 exit $1
18616 } # as_fn_exit
18617
18618 # as_fn_unset VAR
18619 # ---------------
18620 # Portably unset VAR.
18621 as_fn_unset ()
18622 {
18623 { eval $1=; unset $1;}
18624 }
18625 as_unset=as_fn_unset
18626
18627 # as_fn_append VAR VALUE
18628 # ----------------------
18629 # Append the text in VALUE to the end of the definition contained in VAR. Take
18630 # advantage of any shell optimizations that allow amortized linear growth over
18631 # repeated appends, instead of the typical quadratic growth present in naive
18632 # implementations.
18633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
18634 then :
18635 eval 'as_fn_append ()
18636 {
18637 eval $1+=\$2
18638 }'
18639 else case e in #(
18640 e) as_fn_append ()
18641 {
18642 eval $1=\$$1\$2
18643 } ;;
18644 esac
18645 fi # as_fn_append
18646
18647 # as_fn_arith ARG...
18648 # ------------------
18649 # Perform arithmetic evaluation on the ARGs, and store the result in the
18650 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18651 # must be portable across $(()) and expr.
18652 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
18653 then :
18654 eval 'as_fn_arith ()
18655 {
18656 as_val=$(( $* ))
18657 }'
18658 else case e in #(
18659 e) as_fn_arith ()
18660 {
18661 as_val=`expr "$@" || test $? -eq 1`
18662 } ;;
18663 esac
18664 fi # as_fn_arith
18665
18666
18667 if expr a : '\(a\)' >/dev/null 2>&1 &&
18668 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18669 as_expr=expr
18670 else
18671 as_expr=false
18672 fi
18673
18674 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18675 as_basename=basename
18676 else
18677 as_basename=false
18678 fi
18679
18680 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18681 as_dirname=dirname
18682 else
18683 as_dirname=false
18684 fi
18685
18686 as_me=`$as_basename -- "$0" ||
18687 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18688 X"$0" : 'X\(//\)$' \| \
18689 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18690 printf "%s\n" X/"$0" |
18691 sed '/^.*\/\([^/][^/]*\)\/*$/{
18692 s//\1/
18693 q
18694 }
18695 /^X\/\(\/\/\)$/{
18696 s//\1/
18697 q
18698 }
18699 /^X\/\(\/\).*/{
18700 s//\1/
18701 q
18702 }
18703 s/.*/./; q'`
18704
18705 # Avoid depending upon Character Ranges.
18706 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18707 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18708 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18709 as_cr_digits='0123456789'
18710 as_cr_alnum=$as_cr_Letters$as_cr_digits
18711
18712
18713 # Determine whether it's possible to make 'echo' print without a newline.
18714 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
18715 # for compatibility with existing Makefiles.
18716 ECHO_C= ECHO_N= ECHO_T=
18717 case `echo -n x` in #(((((
18718 -n*)
18719 case `echo 'xy\c'` in
18720 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18721 xy) ECHO_C='\c';;
18722 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18723 ECHO_T=' ';;
18724 esac;;
18725 *)
18726 ECHO_N='-n';;
18727 esac
18728
18729 # For backward compatibility with old third-party macros, we provide
18730 # the shell variables $as_echo and $as_echo_n. New code should use
18731 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
18732 as_echo='printf %s\n'
18733 as_echo_n='printf %s'
18734
18735 rm -f conf$$ conf$$.exe conf$$.file
18736 if test -d conf$$.dir; then
18737 rm -f conf$$.dir/conf$$.file
18738 else
18739 rm -f conf$$.dir
18740 mkdir conf$$.dir 2>/dev/null
18741 fi
18742 if (echo >conf$$.file) 2>/dev/null; then
18743 if ln -s conf$$.file conf$$ 2>/dev/null; then
18744 as_ln_s='ln -s'
18745 # ... but there are two gotchas:
18746 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
18747 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
18748 # In both cases, we have to default to 'cp -pR'.
18749 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18750 as_ln_s='cp -pR'
18751 elif ln conf$$.file conf$$ 2>/dev/null; then
18752 as_ln_s=ln
18753 else
18754 as_ln_s='cp -pR'
18755 fi
18756 else
18757 as_ln_s='cp -pR'
18758 fi
18759 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18760 rmdir conf$$.dir 2>/dev/null
18761
18762
18763 # as_fn_mkdir_p
18764 # -------------
18765 # Create "$as_dir" as a directory, including parents if necessary.
18766 as_fn_mkdir_p ()
18767 {
18768
18769 case $as_dir in #(
18770 -*) as_dir=./$as_dir;;
18771 esac
18772 test -d "$as_dir" || eval $as_mkdir_p || {
18773 as_dirs=
18774 while :; do
18775 case $as_dir in #(
18776 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18777 *) as_qdir=$as_dir;;
18778 esac
18779 as_dirs="'$as_qdir' $as_dirs"
18780 as_dir=`$as_dirname -- "$as_dir" ||
18781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18782 X"$as_dir" : 'X\(//\)[^/]' \| \
18783 X"$as_dir" : 'X\(//\)$' \| \
18784 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18785 printf "%s\n" X"$as_dir" |
18786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18787 s//\1/
18788 q
18789 }
18790 /^X\(\/\/\)[^/].*/{
18791 s//\1/
18792 q
18793 }
18794 /^X\(\/\/\)$/{
18795 s//\1/
18796 q
18797 }
18798 /^X\(\/\).*/{
18799 s//\1/
18800 q
18801 }
18802 s/.*/./; q'`
18803 test -d "$as_dir" && break
18804 done
18805 test -z "$as_dirs" || eval "mkdir $as_dirs"
18806 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18807
18808
18809 } # as_fn_mkdir_p
18810 if mkdir -p . 2>/dev/null; then
18811 as_mkdir_p='mkdir -p "$as_dir"'
18812 else
18813 test -d ./-p && rmdir ./-p
18814 as_mkdir_p=false
18815 fi
18816
18817
18818 # as_fn_executable_p FILE
18819 # -----------------------
18820 # Test if FILE is an executable regular file.
18821 as_fn_executable_p ()
18822 {
18823 test -f "$1" && test -x "$1"
18824 } # as_fn_executable_p
18825 as_test_x='test -x'
18826 as_executable_p=as_fn_executable_p
18827
18828 # Sed expression to map a string onto a valid CPP name.
18829 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18830 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
18831
18832 # Sed expression to map a string onto a valid variable name.
18833 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18834 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
18835
18836
18837 exec 6>&1
18838 ## ----------------------------------- ##
18839 ## Main body of $CONFIG_STATUS script. ##
18840 ## ----------------------------------- ##
18841 _ASEOF
18842 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18843
18844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18845 # Save the log message, to keep $0 and so on meaningful, and to
18846 # report actual input values of CONFIG_FILES etc. instead of their
18847 # values after options handling.
18848 ac_log="
18849 This file was extended by nbd $as_me 3.27.1, which was
18850 generated by GNU Autoconf 2.72. Invocation command line was
18851
18852 CONFIG_FILES = $CONFIG_FILES
18853 CONFIG_HEADERS = $CONFIG_HEADERS
18854 CONFIG_LINKS = $CONFIG_LINKS
18855 CONFIG_COMMANDS = $CONFIG_COMMANDS
18856 $ $0 $@
18857
18858 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18859 "
18860
18861 _ACEOF
18862
18863 case $ac_config_files in *"
18864 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18865 esac
18866
18867 case $ac_config_headers in *"
18868 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18869 esac
18870
18871
18872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18873 # Files that config.status was made for.
18874 config_files="$ac_config_files"
18875 config_headers="$ac_config_headers"
18876 config_links="$ac_config_links"
18877 config_commands="$ac_config_commands"
18878
18879 _ACEOF
18880
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18882 ac_cs_usage="\
18883 '$as_me' instantiates files and other configuration actions
18884 from templates according to the current configuration. Unless the files
18885 and actions are specified as TAGs, all are instantiated by default.
18886
18887 Usage: $0 [OPTION]... [TAG]...
18888
18889 -h, --help print this help, then exit
18890 -V, --version print version number and configuration settings, then exit
18891 --config print configuration, then exit
18892 -q, --quiet, --silent
18893 do not print progress messages
18894 -d, --debug don't remove temporary files
18895 --recheck update $as_me by reconfiguring in the same conditions
18896 --file=FILE[:TEMPLATE]
18897 instantiate the configuration file FILE
18898 --header=FILE[:TEMPLATE]
18899 instantiate the configuration header FILE
18900
18901 Configuration files:
18902 $config_files
18903
18904 Configuration headers:
18905 $config_headers
18906
18907 Configuration links:
18908 $config_links
18909
18910 Configuration commands:
18911 $config_commands
18912
18913 Report bugs to <[email protected]>.
18914 nbd home page: <http://nbd.sourceforge.net/>."
18915
18916 _ACEOF
18917 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
18918 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
18919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18920 ac_cs_config='$ac_cs_config_escaped'
18921 ac_cs_version="\\
18922 nbd config.status 3.27.1
18923 configured by $0, generated by GNU Autoconf 2.72,
18924 with options \\"\$ac_cs_config\\"
18925
18926 Copyright (C) 2023 Free Software Foundation, Inc.
18927 This config.status script is free software; the Free Software Foundation
18928 gives unlimited permission to copy, distribute and modify it."
18929
18930 ac_pwd='$ac_pwd'
18931 srcdir='$srcdir'
18932 INSTALL='$INSTALL'
18933 MKDIR_P='$MKDIR_P'
18934 AWK='$AWK'
18935 test -n "\$AWK" || AWK=awk
18936 _ACEOF
18937
18938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18939 # The default lists apply if the user does not specify any file.
18940 ac_need_defaults=:
18941 while test $# != 0
18942 do
18943 case $1 in
18944 --*=?*)
18945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18947 ac_shift=:
18948 ;;
18949 --*=)
18950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18951 ac_optarg=
18952 ac_shift=:
18953 ;;
18954 *)
18955 ac_option=$1
18956 ac_optarg=$2
18957 ac_shift=shift
18958 ;;
18959 esac
18960
18961 case $ac_option in
18962 # Handling of the options.
18963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18964 ac_cs_recheck=: ;;
18965 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18966 printf "%s\n" "$ac_cs_version"; exit ;;
18967 --config | --confi | --conf | --con | --co | --c )
18968 printf "%s\n" "$ac_cs_config"; exit ;;
18969 --debug | --debu | --deb | --de | --d | -d )
18970 debug=: ;;
18971 --file | --fil | --fi | --f )
18972 $ac_shift
18973 case $ac_optarg in
18974 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18975 '') as_fn_error $? "missing file argument" ;;
18976 esac
18977 as_fn_append CONFIG_FILES " '$ac_optarg'"
18978 ac_need_defaults=false;;
18979 --header | --heade | --head | --hea )
18980 $ac_shift
18981 case $ac_optarg in
18982 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18983 esac
18984 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18985 ac_need_defaults=false;;
18986 --he | --h)
18987 # Conflict between --help and --header
18988 as_fn_error $? "ambiguous option: '$1'
18989 Try '$0 --help' for more information.";;
18990 --help | --hel | -h )
18991 printf "%s\n" "$ac_cs_usage"; exit ;;
18992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18993 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18994 ac_cs_silent=: ;;
18995
18996 # This is an error.
18997 -*) as_fn_error $? "unrecognized option: '$1'
18998 Try '$0 --help' for more information." ;;
18999
19000 *) as_fn_append ac_config_targets " $1"
19001 ac_need_defaults=false ;;
19002
19003 esac
19004 shift
19005 done
19006
19007 ac_configure_extra_args=
19008
19009 if $ac_cs_silent; then
19010 exec 6>/dev/null
19011 ac_configure_extra_args="$ac_configure_extra_args --silent"
19012 fi
19013
19014 _ACEOF
19015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19016 if \$ac_cs_recheck; then
19017 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19018 shift
19019 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19020 CONFIG_SHELL='$SHELL'
19021 export CONFIG_SHELL
19022 exec "\$@"
19023 fi
19024
19025 _ACEOF
19026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19027 exec 5>>config.log
19028 {
19029 echo
19030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19031 ## Running $as_me. ##
19032 _ASBOX
19033 printf "%s\n" "$ac_log"
19034 } >&5
19035
19036 _ACEOF
19037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19038 #
19039 # INIT-COMMANDS
19040 #
19041 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19042
19043
19044 # The HP-UX ksh and POSIX shell print the target directory to stdout
19045 # if CDPATH is set.
19046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19047
19048 sed_quote_subst='$sed_quote_subst'
19049 double_quote_subst='$double_quote_subst'
19050 delay_variable_subst='$delay_variable_subst'
19051 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19052 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19053 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19054 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19055 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19056 enable_cxx_stdlib='`$ECHO "$enable_cxx_stdlib" | $SED "$delay_single_quote_subst"`'
19057 stdlibflag='`$ECHO "$stdlibflag" | $SED "$delay_single_quote_subst"`'
19058 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19059 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19060 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19061 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19062 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19063 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19064 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19065 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19066 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19067 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19068 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19069 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19070 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19071 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19072 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19073 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19074 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19075 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19076 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19077 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19078 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19079 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19080 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19081 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19082 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19083 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19084 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19085 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19086 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19087 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
19088 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19089 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19090 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19091 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19092 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19093 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19094 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19095 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19096 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19097 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19098 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19099 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19100 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19101 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19102 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19103 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19104 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19105 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19106 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19107 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19108 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19109 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19110 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19111 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19112 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19113 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"`'
19114 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19115 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19116 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19117 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19118 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19119 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19120 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19121 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19122 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19123 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19124 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19125 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19126 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19127 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19128 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19129 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19130 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19131 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19132 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19133 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19134 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19135 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19136 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19137 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19138 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19139 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19140 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19141 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19142 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19143 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19144 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19145 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19146 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19147 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19148 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19149 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19150 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19151 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19152 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19153 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19154 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19155 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19156 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19157 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19158 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19159 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19160 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19161 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19162 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19163 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19164 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19165 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19166 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19167 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19168 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19169 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19170 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19171 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19172 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19173 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19174 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19175 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19176 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19177 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19178 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19179 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19180 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19181 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19182 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19183 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19184 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19185 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19186 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19187 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19188 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19189 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19190
19191 LTCC='$LTCC'
19192 LTCFLAGS='$LTCFLAGS'
19193 compiler='$compiler_DEFAULT'
19194
19195 # A function that is used when there is no print builtin or printf.
19196 func_fallback_echo ()
19197 {
19198 eval 'cat <<_LTECHO_EOF
19199 \$1
19200 _LTECHO_EOF'
19201 }
19202
19203 # Quote evaled strings.
19204 for var in SHELL \
19205 ECHO \
19206 PATH_SEPARATOR \
19207 SED \
19208 GREP \
19209 EGREP \
19210 FGREP \
19211 LD \
19212 NM \
19213 LN_S \
19214 lt_SP2NL \
19215 lt_NL2SP \
19216 reload_flag \
19217 FILECMD \
19218 OBJDUMP \
19219 deplibs_check_method \
19220 file_magic_cmd \
19221 file_magic_glob \
19222 want_nocaseglob \
19223 DLLTOOL \
19224 sharedlib_from_linklib_cmd \
19225 AR \
19226 archiver_list_spec \
19227 STRIP \
19228 RANLIB \
19229 CC \
19230 CFLAGS \
19231 compiler \
19232 lt_cv_sys_global_symbol_pipe \
19233 lt_cv_sys_global_symbol_to_cdecl \
19234 lt_cv_sys_global_symbol_to_import \
19235 lt_cv_sys_global_symbol_to_c_name_address \
19236 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19237 lt_cv_nm_interface \
19238 nm_file_list_spec \
19239 lt_cv_truncate_bin \
19240 lt_prog_compiler_no_builtin_flag \
19241 lt_prog_compiler_pic \
19242 lt_prog_compiler_wl \
19243 lt_prog_compiler_static \
19244 lt_cv_prog_compiler_c_o \
19245 need_locks \
19246 MANIFEST_TOOL \
19247 DSYMUTIL \
19248 NMEDIT \
19249 LIPO \
19250 OTOOL \
19251 OTOOL64 \
19252 shrext_cmds \
19253 export_dynamic_flag_spec \
19254 whole_archive_flag_spec \
19255 compiler_needs_object \
19256 with_gnu_ld \
19257 allow_undefined_flag \
19258 no_undefined_flag \
19259 hardcode_libdir_flag_spec \
19260 hardcode_libdir_separator \
19261 exclude_expsyms \
19262 include_expsyms \
19263 file_list_spec \
19264 variables_saved_for_relink \
19265 libname_spec \
19266 library_names_spec \
19267 soname_spec \
19268 install_override_mode \
19269 finish_eval \
19270 old_striplib \
19271 striplib; do
19272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19273 *[\\\\\\\`\\"\\\$]*)
19274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19275 ;;
19276 *)
19277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19278 ;;
19279 esac
19280 done
19281
19282 # Double-quote double-evaled strings.
19283 for var in reload_cmds \
19284 old_postinstall_cmds \
19285 old_postuninstall_cmds \
19286 old_archive_cmds \
19287 extract_expsyms_cmds \
19288 old_archive_from_new_cmds \
19289 old_archive_from_expsyms_cmds \
19290 archive_cmds \
19291 archive_expsym_cmds \
19292 module_cmds \
19293 module_expsym_cmds \
19294 export_symbols_cmds \
19295 prelink_cmds \
19296 postlink_cmds \
19297 postinstall_cmds \
19298 postuninstall_cmds \
19299 finish_cmds \
19300 sys_lib_search_path_spec \
19301 configure_time_dlsearch_path \
19302 configure_time_lt_sys_library_path; do
19303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19304 *[\\\\\\\`\\"\\\$]*)
19305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19306 ;;
19307 *)
19308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19309 ;;
19310 esac
19311 done
19312
19313 ac_aux_dir='$ac_aux_dir'
19314
19315 # See if we are running on zsh, and set the options that allow our
19316 # commands through without removal of \ escapes INIT.
19317 if test -n "\${ZSH_VERSION+set}"; then
19318 setopt NO_GLOB_SUBST
19319 fi
19320
19321
19322 PACKAGE='$PACKAGE'
19323 VERSION='$VERSION'
19324 RM='$RM'
19325 ofile='$ofile'
19326
19327
19328
19329
19330 _ACEOF
19331
19332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19333
19334 # Handling of arguments.
19335 for ac_config_target in $ac_config_targets
19336 do
19337 case $ac_config_target in
19338 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19339 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19340 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19341 "tests/run/buffer.c") CONFIG_LINKS="$CONFIG_LINKS tests/run/buffer.c:buffer.c" ;;
19342 "tests/run/crypto-gnutls.c") CONFIG_LINKS="$CONFIG_LINKS tests/run/crypto-gnutls.c:crypto-gnutls.c" ;;
19343 "tests/run/cliserv.c") CONFIG_LINKS="$CONFIG_LINKS tests/run/cliserv.c:cliserv.c" ;;
19344 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19345 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
19346 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19347 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19348 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19349 "tests/code/Makefile") CONFIG_FILES="$CONFIG_FILES tests/code/Makefile" ;;
19350 "tests/run/Makefile") CONFIG_FILES="$CONFIG_FILES tests/run/Makefile" ;;
19351 "tests/parse/Makefile") CONFIG_FILES="$CONFIG_FILES tests/parse/Makefile" ;;
19352 "$MAN_CONFIG_FILES") CONFIG_FILES="$CONFIG_FILES $MAN_CONFIG_FILES" ;;
19353 "systemd/Makefile") CONFIG_FILES="$CONFIG_FILES systemd/Makefile" ;;
19354 "systemd/[email protected]") CONFIG_FILES="$CONFIG_FILES systemd/[email protected]" ;;
19355
19356 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19357 esac
19358 done
19359
19360
19361 # If the user did not use the arguments to specify the items to instantiate,
19362 # then the envvar interface is used. Set only those that are not.
19363 # We use the long form for the default assignment because of an extremely
19364 # bizarre bug on SunOS 4.1.3.
19365 if $ac_need_defaults; then
19366 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19367 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19368 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
19369 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19370 fi
19371
19372 # Have a temporary directory for convenience. Make it in the build tree
19373 # simply because there is no reason against having it here, and in addition,
19374 # creating and moving files from /tmp can sometimes cause problems.
19375 # Hook for its removal unless debugging.
19376 # Note that there is a small window in which the directory will not be cleaned:
19377 # after its creation but before its name has been assigned to '$tmp'.
19378 $debug ||
19379 {
19380 tmp= ac_tmp=
19381 trap 'exit_status=$?
19382 : "${ac_tmp:=$tmp}"
19383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19384 ' 0
19385 trap 'as_fn_exit 1' 1 2 13 15
19386 }
19387 # Create a (secure) tmp directory for tmp files.
19388
19389 {
19390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19391 test -d "$tmp"
19392 } ||
19393 {
19394 tmp=./conf$$-$RANDOM
19395 (umask 077 && mkdir "$tmp")
19396 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19397 ac_tmp=$tmp
19398
19399 # Set up the scripts for CONFIG_FILES section.
19400 # No need to generate them if there are no CONFIG_FILES.
19401 # This happens for instance with './config.status config.h'.
19402 if test -n "$CONFIG_FILES"; then
19403
19404
19405 ac_cr=`echo X | tr X '\015'`
19406 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19407 # But we know of no other shell where ac_cr would be empty at this
19408 # point, so we can use a bashism as a fallback.
19409 if test "x$ac_cr" = x; then
19410 eval ac_cr=\$\'\\r\'
19411 fi
19412 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19413 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19414 ac_cs_awk_cr='\\r'
19415 else
19416 ac_cs_awk_cr=$ac_cr
19417 fi
19418
19419 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19420 _ACEOF
19421
19422
19423 {
19424 echo "cat >conf$$subs.awk <<_ACEOF" &&
19425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19426 echo "_ACEOF"
19427 } >conf$$subs.sh ||
19428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19430 ac_delim='%!_!# '
19431 for ac_last_try in false false false false false :; do
19432 . ./conf$$subs.sh ||
19433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19434
19435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19436 if test $ac_delim_n = $ac_delim_num; then
19437 break
19438 elif $ac_last_try; then
19439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19440 else
19441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19442 fi
19443 done
19444 rm -f conf$$subs.sh
19445
19446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19447 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19448 _ACEOF
19449 sed -n '
19450 h
19451 s/^/S["/; s/!.*/"]=/
19452 p
19453 g
19454 s/^[^!]*!//
19455 :repl
19456 t repl
19457 s/'"$ac_delim"'$//
19458 t delim
19459 :nl
19460 h
19461 s/\(.\{148\}\)..*/\1/
19462 t more1
19463 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19464 p
19465 n
19466 b repl
19467 :more1
19468 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19469 p
19470 g
19471 s/.\{148\}//
19472 t nl
19473 :delim
19474 h
19475 s/\(.\{148\}\)..*/\1/
19476 t more2
19477 s/["\\]/\\&/g; s/^/"/; s/$/"/
19478 p
19479 b
19480 :more2
19481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19482 p
19483 g
19484 s/.\{148\}//
19485 t delim
19486 ' <conf$$subs.awk | sed '
19487 /^[^""]/{
19488 N
19489 s/\n//
19490 }
19491 ' >>$CONFIG_STATUS || ac_write_fail=1
19492 rm -f conf$$subs.awk
19493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19494 _ACAWK
19495 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19496 for (key in S) S_is_set[key] = 1
19497 FS = ""
19498
19499 }
19500 {
19501 line = $ 0
19502 nfields = split(line, field, "@")
19503 substed = 0
19504 len = length(field[1])
19505 for (i = 2; i < nfields; i++) {
19506 key = field[i]
19507 keylen = length(key)
19508 if (S_is_set[key]) {
19509 value = S[key]
19510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19511 len += length(value) + length(field[++i])
19512 substed = 1
19513 } else
19514 len += 1 + keylen
19515 }
19516
19517 print line
19518 }
19519
19520 _ACAWK
19521 _ACEOF
19522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19525 else
19526 cat
19527 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19529 _ACEOF
19530
19531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19533 # trailing colons and then remove the whole line if VPATH becomes empty
19534 # (actually we leave an empty line to preserve line numbers).
19535 if test "x$srcdir" = x.; then
19536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19537 h
19538 s///
19539 s/^/:/
19540 s/[ ]*$/:/
19541 s/:\$(srcdir):/:/g
19542 s/:\${srcdir}:/:/g
19543 s/:@srcdir@:/:/g
19544 s/^:*//
19545 s/:*$//
19546 x
19547 s/\(=[ ]*\).*/\1/
19548 G
19549 s/\n//
19550 s/^[^=]*=[ ]*$//
19551 }'
19552 fi
19553
19554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555 fi # test -n "$CONFIG_FILES"
19556
19557 # Set up the scripts for CONFIG_HEADERS section.
19558 # No need to generate them if there are no CONFIG_HEADERS.
19559 # This happens for instance with './config.status Makefile'.
19560 if test -n "$CONFIG_HEADERS"; then
19561 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19562 BEGIN {
19563 _ACEOF
19564
19565 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19566 # here-document in config.status, that substitutes the proper values into
19567 # config.h.in to produce config.h.
19568
19569 # Create a delimiter string that does not exist in confdefs.h, to ease
19570 # handling of long lines.
19571 ac_delim='%!_!# '
19572 for ac_last_try in false false :; do
19573 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19574 if test -z "$ac_tt"; then
19575 break
19576 elif $ac_last_try; then
19577 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19578 else
19579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19580 fi
19581 done
19582
19583 # For the awk script, D is an array of macro values keyed by name,
19584 # likewise P contains macro parameters if any. Preserve backslash
19585 # newline sequences.
19586
19587 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19588 sed -n '
19589 s/.\{148\}/&'"$ac_delim"'/g
19590 t rset
19591 :rset
19592 s/^[ ]*#[ ]*define[ ][ ]*/ /
19593 t def
19594 d
19595 :def
19596 s/\\$//
19597 t bsnl
19598 s/["\\]/\\&/g
19599 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19600 D["\1"]=" \3"/p
19601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19602 d
19603 :bsnl
19604 s/["\\]/\\&/g
19605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19606 D["\1"]=" \3\\\\\\n"\\/p
19607 t cont
19608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19609 t cont
19610 d
19611 :cont
19612 n
19613 s/.\{148\}/&'"$ac_delim"'/g
19614 t clear
19615 :clear
19616 s/\\$//
19617 t bsnlc
19618 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19619 d
19620 :bsnlc
19621 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19622 b cont
19623 ' <confdefs.h | sed '
19624 s/'"$ac_delim"'/"\\\
19625 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19626
19627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19628 for (key in D) D_is_set[key] = 1
19629 FS = ""
19630 }
19631 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19632 line = \$ 0
19633 split(line, arg, " ")
19634 if (arg[1] == "#") {
19635 defundef = arg[2]
19636 mac1 = arg[3]
19637 } else {
19638 defundef = substr(arg[1], 2)
19639 mac1 = arg[2]
19640 }
19641 split(mac1, mac2, "(") #)
19642 macro = mac2[1]
19643 prefix = substr(line, 1, index(line, defundef) - 1)
19644 if (D_is_set[macro]) {
19645 # Preserve the white space surrounding the "#".
19646 print prefix "define", macro P[macro] D[macro]
19647 next
19648 } else {
19649 # Replace #undef with comments. This is necessary, for example,
19650 # in the case of _POSIX_SOURCE, which is predefined and required
19651 # on some systems where configure will not decide to define it.
19652 if (defundef == "undef") {
19653 print "/*", prefix defundef, macro, "*/"
19654 next
19655 }
19656 }
19657 }
19658 { print }
19659 _ACAWK
19660 _ACEOF
19661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19662 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19663 fi # test -n "$CONFIG_HEADERS"
19664
19665
19666 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19667 shift
19668 for ac_tag
19669 do
19670 case $ac_tag in
19671 :[FHLC]) ac_mode=$ac_tag; continue;;
19672 esac
19673 case $ac_mode$ac_tag in
19674 :[FHL]*:*);;
19675 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
19676 :[FH]-) ac_tag=-:-;;
19677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19678 esac
19679 ac_save_IFS=$IFS
19680 IFS=:
19681 set x $ac_tag
19682 IFS=$ac_save_IFS
19683 shift
19684 ac_file=$1
19685 shift
19686
19687 case $ac_mode in
19688 :L) ac_source=$1;;
19689 :[FH])
19690 ac_file_inputs=
19691 for ac_f
19692 do
19693 case $ac_f in
19694 -) ac_f="$ac_tmp/stdin";;
19695 *) # Look for the file first in the build tree, then in the source tree
19696 # (if the path is not absolute). The absolute path cannot be DOS-style,
19697 # because $ac_f cannot contain ':'.
19698 test -f "$ac_f" ||
19699 case $ac_f in
19700 [\\/$]*) false;;
19701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19702 esac ||
19703 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
19704 esac
19705 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19706 as_fn_append ac_file_inputs " '$ac_f'"
19707 done
19708
19709 # Let's still pretend it is 'configure' which instantiates (i.e., don't
19710 # use $as_me), people would be surprised to read:
19711 # /* config.h. Generated by config.status. */
19712 configure_input='Generated from '`
19713 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19714 `' by configure.'
19715 if test x"$ac_file" != x-; then
19716 configure_input="$ac_file. $configure_input"
19717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19718 printf "%s\n" "$as_me: creating $ac_file" >&6;}
19719 fi
19720 # Neutralize special characters interpreted by sed in replacement strings.
19721 case $configure_input in #(
19722 *\&* | *\|* | *\\* )
19723 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
19724 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19725 *) ac_sed_conf_input=$configure_input;;
19726 esac
19727
19728 case $ac_tag in
19729 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19731 esac
19732 ;;
19733 esac
19734
19735 ac_dir=`$as_dirname -- "$ac_file" ||
19736 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19737 X"$ac_file" : 'X\(//\)[^/]' \| \
19738 X"$ac_file" : 'X\(//\)$' \| \
19739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19740 printf "%s\n" X"$ac_file" |
19741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19742 s//\1/
19743 q
19744 }
19745 /^X\(\/\/\)[^/].*/{
19746 s//\1/
19747 q
19748 }
19749 /^X\(\/\/\)$/{
19750 s//\1/
19751 q
19752 }
19753 /^X\(\/\).*/{
19754 s//\1/
19755 q
19756 }
19757 s/.*/./; q'`
19758 as_dir="$ac_dir"; as_fn_mkdir_p
19759 ac_builddir=.
19760
19761 case "$ac_dir" in
19762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19763 *)
19764 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
19765 # A ".." for each directory in $ac_dir_suffix.
19766 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19767 case $ac_top_builddir_sub in
19768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19770 esac ;;
19771 esac
19772 ac_abs_top_builddir=$ac_pwd
19773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19774 # for backward compatibility:
19775 ac_top_builddir=$ac_top_build_prefix
19776
19777 case $srcdir in
19778 .) # We are building in place.
19779 ac_srcdir=.
19780 ac_top_srcdir=$ac_top_builddir_sub
19781 ac_abs_top_srcdir=$ac_pwd ;;
19782 [\\/]* | ?:[\\/]* ) # Absolute name.
19783 ac_srcdir=$srcdir$ac_dir_suffix;
19784 ac_top_srcdir=$srcdir
19785 ac_abs_top_srcdir=$srcdir ;;
19786 *) # Relative name.
19787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19788 ac_top_srcdir=$ac_top_build_prefix$srcdir
19789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19790 esac
19791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19792
19793
19794 case $ac_mode in
19795 :F)
19796 #
19797 # CONFIG_FILE
19798 #
19799
19800 case $INSTALL in
19801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19803 esac
19804 ac_MKDIR_P=$MKDIR_P
19805 case $MKDIR_P in
19806 [\\/$]* | ?:[\\/]* ) ;;
19807 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19808 esac
19809 _ACEOF
19810
19811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19812 # If the template does not know about datarootdir, expand it.
19813 # FIXME: This hack should be removed a few years after 2.60.
19814 ac_datarootdir_hack=; ac_datarootdir_seen=
19815 ac_sed_dataroot='
19816 /datarootdir/ {
19817 p
19818 q
19819 }
19820 /@datadir@/p
19821 /@docdir@/p
19822 /@infodir@/p
19823 /@localedir@/p
19824 /@mandir@/p'
19825 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19826 *datarootdir*) ac_datarootdir_seen=yes;;
19827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19829 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19830 _ACEOF
19831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19832 ac_datarootdir_hack='
19833 s&@datadir@&$datadir&g
19834 s&@docdir@&$docdir&g
19835 s&@infodir@&$infodir&g
19836 s&@localedir@&$localedir&g
19837 s&@mandir@&$mandir&g
19838 s&\\\${datarootdir}&$datarootdir&g' ;;
19839 esac
19840 _ACEOF
19841
19842 # Neutralize VPATH when '$srcdir' = '.'.
19843 # Shell code in configure.ac might set extrasub.
19844 # FIXME: do we really want to maintain this feature?
19845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19846 ac_sed_extra="$ac_vpsub
19847 $extrasub
19848 _ACEOF
19849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19850 :t
19851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19852 s|@configure_input@|$ac_sed_conf_input|;t t
19853 s&@top_builddir@&$ac_top_builddir_sub&;t t
19854 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19855 s&@srcdir@&$ac_srcdir&;t t
19856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19857 s&@top_srcdir@&$ac_top_srcdir&;t t
19858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19859 s&@builddir@&$ac_builddir&;t t
19860 s&@abs_builddir@&$ac_abs_builddir&;t t
19861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19862 s&@INSTALL@&$ac_INSTALL&;t t
19863 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19864 $ac_datarootdir_hack
19865 "
19866 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19867 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19868
19869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19870 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19872 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19874 which seems to be undefined. Please make sure it is defined" >&5
19875 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
19876 which seems to be undefined. Please make sure it is defined" >&2;}
19877
19878 rm -f "$ac_tmp/stdin"
19879 case $ac_file in
19880 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19881 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19882 esac \
19883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19884 ;;
19885 :H)
19886 #
19887 # CONFIG_HEADER
19888 #
19889 if test x"$ac_file" != x-; then
19890 {
19891 printf "%s\n" "/* $configure_input */" >&1 \
19892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19893 } >"$ac_tmp/config.h" \
19894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19895 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19897 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
19898 else
19899 rm -f "$ac_file"
19900 mv "$ac_tmp/config.h" "$ac_file" \
19901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19902 fi
19903 else
19904 printf "%s\n" "/* $configure_input */" >&1 \
19905 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19906 || as_fn_error $? "could not create -" "$LINENO" 5
19907 fi
19908 # Compute "$ac_file"'s index in $config_headers.
19909 _am_arg="$ac_file"
19910 _am_stamp_count=1
19911 for _am_header in $config_headers :; do
19912 case $_am_header in
19913 $_am_arg | $_am_arg:* )
19914 break ;;
19915 * )
19916 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19917 esac
19918 done
19919 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19920 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19921 X"$_am_arg" : 'X\(//\)[^/]' \| \
19922 X"$_am_arg" : 'X\(//\)$' \| \
19923 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19924 printf "%s\n" X"$_am_arg" |
19925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19926 s//\1/
19927 q
19928 }
19929 /^X\(\/\/\)[^/].*/{
19930 s//\1/
19931 q
19932 }
19933 /^X\(\/\/\)$/{
19934 s//\1/
19935 q
19936 }
19937 /^X\(\/\).*/{
19938 s//\1/
19939 q
19940 }
19941 s/.*/./; q'`/stamp-h$_am_stamp_count
19942 ;;
19943 :L)
19944 #
19945 # CONFIG_LINK
19946 #
19947
19948 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19949 :
19950 else
19951 # Prefer the file from the source tree if names are identical.
19952 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19953 ac_source=$srcdir/$ac_source
19954 fi
19955
19956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19957 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
19958
19959 if test ! -r "$ac_source"; then
19960 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19961 fi
19962 rm -f "$ac_file"
19963
19964 # Try a relative symlink, then a hard link, then a copy.
19965 case $ac_source in
19966 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19967 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19968 esac
19969 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19970 ln "$ac_source" "$ac_file" 2>/dev/null ||
19971 cp -p "$ac_source" "$ac_file" ||
19972 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19973 fi
19974 ;;
19975 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19976 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
19977 ;;
19978 esac
19979
19980
19981 case $ac_file$ac_mode in
19982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19983 # Older Autoconf quotes --file arguments for eval, but not when files
19984 # are listed without --file. Let's play safe and only enable the eval
19985 # if we detect the quoting.
19986 # TODO: see whether this extra hack can be removed once we start
19987 # requiring Autoconf 2.70 or later.
19988 case $CONFIG_FILES in #(
19989 *\'*) :
19990 eval set x "$CONFIG_FILES" ;; #(
19991 *) :
19992 set x $CONFIG_FILES ;; #(
19993 *) :
19994 ;;
19995 esac
19996 shift
19997 # Used to flag and report bootstrapping failures.
19998 am_rc=0
19999 for am_mf
20000 do
20001 # Strip MF so we end up with the name of the file.
20002 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20003 # Check whether this is an Automake generated Makefile which includes
20004 # dependency-tracking related rules and includes.
20005 # Grep'ing the whole file directly is not great: AIX grep has a line
20006 # limit of 2048, but all sed's we know have understand at least 4000.
20007 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20008 || continue
20009 am_dirpart=`$as_dirname -- "$am_mf" ||
20010 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20011 X"$am_mf" : 'X\(//\)[^/]' \| \
20012 X"$am_mf" : 'X\(//\)$' \| \
20013 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20014 printf "%s\n" X"$am_mf" |
20015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20016 s//\1/
20017 q
20018 }
20019 /^X\(\/\/\)[^/].*/{
20020 s//\1/
20021 q
20022 }
20023 /^X\(\/\/\)$/{
20024 s//\1/
20025 q
20026 }
20027 /^X\(\/\).*/{
20028 s//\1/
20029 q
20030 }
20031 s/.*/./; q'`
20032 am_filepart=`$as_basename -- "$am_mf" ||
20033 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20034 X"$am_mf" : 'X\(//\)$' \| \
20035 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20036 printf "%s\n" X/"$am_mf" |
20037 sed '/^.*\/\([^/][^/]*\)\/*$/{
20038 s//\1/
20039 q
20040 }
20041 /^X\/\(\/\/\)$/{
20042 s//\1/
20043 q
20044 }
20045 /^X\/\(\/\).*/{
20046 s//\1/
20047 q
20048 }
20049 s/.*/./; q'`
20050 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20051 && sed -e '/# am--include-marker/d' "$am_filepart" \
20052 | $MAKE -f - am--depfiles" >&5
20053 (cd "$am_dirpart" \
20054 && sed -e '/# am--include-marker/d' "$am_filepart" \
20055 | $MAKE -f - am--depfiles) >&5 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } || am_rc=$?
20059 done
20060 if test $am_rc -ne 0; then
20061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20062 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20063 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20064 for automatic dependency tracking. If GNU make was not used, consider
20065 re-running the configure script with MAKE=\"gmake\" (or whatever is
20066 necessary). You can also try re-running configure with the
20067 '--disable-dependency-tracking' option to at least be able to build
20068 the package (albeit without support for automatic dependency tracking).
20069 See 'config.log' for more details" "$LINENO" 5; }
20070 fi
20071 { am_dirpart=; unset am_dirpart;}
20072 { am_filepart=; unset am_filepart;}
20073 { am_mf=; unset am_mf;}
20074 { am_rc=; unset am_rc;}
20075 rm -f conftest-deps.mk
20076 }
20077 ;;
20078 "libtool":C)
20079
20080 # See if we are running on zsh, and set the options that allow our
20081 # commands through without removal of \ escapes.
20082 if test -n "${ZSH_VERSION+set}"; then
20083 setopt NO_GLOB_SUBST
20084 fi
20085
20086 cfgfile=${ofile}T
20087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20088 $RM "$cfgfile"
20089
20090 cat <<_LT_EOF >> "$cfgfile"
20091 #! $SHELL
20092 # Generated automatically by $as_me ($PACKAGE) $VERSION
20093 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20094
20095 # Provide generalized library-building support services.
20096 # Written by Gordon Matzigkeit, 1996
20097
20098 # Copyright (C) 2024 Free Software Foundation, Inc.
20099 # This is free software; see the source for copying conditions. There is NO
20100 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20101
20102 # GNU Libtool is free software; you can redistribute it and/or modify
20103 # it under the terms of the GNU General Public License as published by
20104 # the Free Software Foundation; either version 2 of the License, or
20105 # (at your option) any later version.
20106 #
20107 # As a special exception to the GNU General Public License, if you
20108 # distribute this file as part of a program or library that is built
20109 # using GNU Libtool, you may include this file under the same
20110 # distribution terms that you use for the rest of that program.
20111 #
20112 # GNU Libtool is distributed in the hope that it will be useful, but
20113 # WITHOUT ANY WARRANTY; without even the implied warranty of
20114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20115 # GNU General Public License for more details.
20116 #
20117 # You should have received a copy of the GNU General Public License
20118 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20119
20120
20121 # The names of the tagged configurations supported by this script.
20122 available_tags=''
20123
20124 # Configured defaults for sys_lib_dlsearch_path munging.
20125 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20126
20127 # ### BEGIN LIBTOOL CONFIG
20128
20129 # Which release of libtool.m4 was used?
20130 macro_version=$macro_version
20131 macro_revision=$macro_revision
20132
20133 # Whether or not to build shared libraries.
20134 build_libtool_libs=$enable_shared
20135
20136 # Whether or not to build static libraries.
20137 build_old_libs=$enable_static
20138
20139 # What type of objects to build.
20140 pic_mode=$pic_mode
20141
20142 # Whether to let the compiler frontend decide what standard libraries to link when building C++ shared libraries and modules.
20143 enable_cxx_stdlib=$enable_cxx_stdlib
20144
20145 # Flag used for specifying not to link standard libraries.
20146 stdlibflag=$stdlibflag
20147
20148 # Whether or not to optimize for fast installation.
20149 fast_install=$enable_fast_install
20150
20151 # Shared archive member basename,for filename based shared library versioning on AIX.
20152 shared_archive_member_spec=$shared_archive_member_spec
20153
20154 # Shell to use when invoking shell scripts.
20155 SHELL=$lt_SHELL
20156
20157 # An echo program that protects backslashes.
20158 ECHO=$lt_ECHO
20159
20160 # The PATH separator for the build system.
20161 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20162
20163 # The host system.
20164 host_alias=$host_alias
20165 host=$host
20166 host_os=$host_os
20167
20168 # The build system.
20169 build_alias=$build_alias
20170 build=$build
20171 build_os=$build_os
20172
20173 # A sed program that does not truncate output.
20174 SED=$lt_SED
20175
20176 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20177 Xsed="\$SED -e 1s/^X//"
20178
20179 # A grep program that handles long lines.
20180 GREP=$lt_GREP
20181
20182 # An ERE matcher.
20183 EGREP=$lt_EGREP
20184
20185 # A literal string matcher.
20186 FGREP=$lt_FGREP
20187
20188 # A BSD- or MS-compatible name lister.
20189 NM=$lt_NM
20190
20191 # Whether we need soft or hard links.
20192 LN_S=$lt_LN_S
20193
20194 # What is the maximum length of a command?
20195 max_cmd_len=$max_cmd_len
20196
20197 # Object file suffix (normally "o").
20198 objext=$ac_objext
20199
20200 # Executable file suffix (normally "").
20201 exeext=$exeext
20202
20203 # whether the shell understands "unset".
20204 lt_unset=$lt_unset
20205
20206 # turn spaces into newlines.
20207 SP2NL=$lt_lt_SP2NL
20208
20209 # turn newlines into spaces.
20210 NL2SP=$lt_lt_NL2SP
20211
20212 # convert \$build file names to \$host format.
20213 to_host_file_cmd=$lt_cv_to_host_file_cmd
20214
20215 # convert \$build files to toolchain format.
20216 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20217
20218 # A file(cmd) program that detects file types.
20219 FILECMD=$lt_FILECMD
20220
20221 # An object symbol dumper.
20222 OBJDUMP=$lt_OBJDUMP
20223
20224 # Method to check whether dependent libraries are shared objects.
20225 deplibs_check_method=$lt_deplibs_check_method
20226
20227 # Command to use when deplibs_check_method = "file_magic".
20228 file_magic_cmd=$lt_file_magic_cmd
20229
20230 # How to find potential files when deplibs_check_method = "file_magic".
20231 file_magic_glob=$lt_file_magic_glob
20232
20233 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20234 want_nocaseglob=$lt_want_nocaseglob
20235
20236 # DLL creation program.
20237 DLLTOOL=$lt_DLLTOOL
20238
20239 # Command to associate shared and link libraries.
20240 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20241
20242 # The archiver.
20243 AR=$lt_AR
20244
20245 # Flags to create an archive (by configure).
20246 lt_ar_flags=$lt_ar_flags
20247
20248 # Flags to create an archive.
20249 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20250
20251 # How to feed a file listing to the archiver.
20252 archiver_list_spec=$lt_archiver_list_spec
20253
20254 # A symbol stripping program.
20255 STRIP=$lt_STRIP
20256
20257 # Commands used to install an old-style archive.
20258 RANLIB=$lt_RANLIB
20259 old_postinstall_cmds=$lt_old_postinstall_cmds
20260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20261
20262 # Whether to use a lock for old archive extraction.
20263 lock_old_archive_extraction=$lock_old_archive_extraction
20264
20265 # A C compiler.
20266 LTCC=$lt_CC
20267
20268 # LTCC compiler flags.
20269 LTCFLAGS=$lt_CFLAGS
20270
20271 # Take the output of nm and produce a listing of raw symbols and C names.
20272 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20273
20274 # Transform the output of nm in a proper C declaration.
20275 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20276
20277 # Transform the output of nm into a list of symbols to manually relocate.
20278 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20279
20280 # Transform the output of nm in a C name address pair.
20281 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20282
20283 # Transform the output of nm in a C name address pair when lib prefix is needed.
20284 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20285
20286 # The name lister interface.
20287 nm_interface=$lt_lt_cv_nm_interface
20288
20289 # Specify filename containing input files for \$NM.
20290 nm_file_list_spec=$lt_nm_file_list_spec
20291
20292 # The root where to search for dependent libraries,and where our libraries should be installed.
20293 lt_sysroot=$lt_sysroot
20294
20295 # Command to truncate a binary pipe.
20296 lt_truncate_bin=$lt_lt_cv_truncate_bin
20297
20298 # The name of the directory that contains temporary libtool files.
20299 objdir=$objdir
20300
20301 # Used to examine libraries when file_magic_cmd begins with "file".
20302 MAGIC_CMD=$MAGIC_CMD
20303
20304 # Must we lock files when doing compilation?
20305 need_locks=$lt_need_locks
20306
20307 # Manifest tool.
20308 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20309
20310 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20311 DSYMUTIL=$lt_DSYMUTIL
20312
20313 # Tool to change global to local symbols on Mac OS X.
20314 NMEDIT=$lt_NMEDIT
20315
20316 # Tool to manipulate fat objects and archives on Mac OS X.
20317 LIPO=$lt_LIPO
20318
20319 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20320 OTOOL=$lt_OTOOL
20321
20322 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20323 OTOOL64=$lt_OTOOL64
20324
20325 # Old archive suffix (normally "a").
20326 libext=$libext
20327
20328 # Shared library suffix (normally ".so").
20329 shrext_cmds=$lt_shrext_cmds
20330
20331 # The commands to extract the exported symbol list from a shared archive.
20332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20333
20334 # Variables whose values should be saved in libtool wrapper scripts and
20335 # restored at link time.
20336 variables_saved_for_relink=$lt_variables_saved_for_relink
20337
20338 # Do we need the "lib" prefix for modules?
20339 need_lib_prefix=$need_lib_prefix
20340
20341 # Do we need a version for libraries?
20342 need_version=$need_version
20343
20344 # Library versioning type.
20345 version_type=$version_type
20346
20347 # Shared library runtime path variable.
20348 runpath_var=$runpath_var
20349
20350 # Shared library path variable.
20351 shlibpath_var=$shlibpath_var
20352
20353 # Is shlibpath searched before the hard-coded library search path?
20354 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20355
20356 # Format of library name prefix.
20357 libname_spec=$lt_libname_spec
20358
20359 # List of archive names. First name is the real one, the rest are links.
20360 # The last name is the one that the linker finds with -lNAME
20361 library_names_spec=$lt_library_names_spec
20362
20363 # The coded name of the library, if different from the real name.
20364 soname_spec=$lt_soname_spec
20365
20366 # Permission mode override for installation of shared libraries.
20367 install_override_mode=$lt_install_override_mode
20368
20369 # Command to use after installation of a shared archive.
20370 postinstall_cmds=$lt_postinstall_cmds
20371
20372 # Command to use after uninstallation of a shared archive.
20373 postuninstall_cmds=$lt_postuninstall_cmds
20374
20375 # Commands used to finish a libtool library installation in a directory.
20376 finish_cmds=$lt_finish_cmds
20377
20378 # As "finish_cmds", except a single script fragment to be evaled but
20379 # not shown.
20380 finish_eval=$lt_finish_eval
20381
20382 # Whether we should hardcode library paths into libraries.
20383 hardcode_into_libs=$hardcode_into_libs
20384
20385 # Compile-time system search path for libraries.
20386 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20387
20388 # Detected run-time system search path for libraries.
20389 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20390
20391 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20392 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20393
20394 # Whether dlopen is supported.
20395 dlopen_support=$enable_dlopen
20396
20397 # Whether dlopen of programs is supported.
20398 dlopen_self=$enable_dlopen_self
20399
20400 # Whether dlopen of statically linked programs is supported.
20401 dlopen_self_static=$enable_dlopen_self_static
20402
20403 # Commands to strip libraries.
20404 old_striplib=$lt_old_striplib
20405 striplib=$lt_striplib
20406
20407
20408 # The linker used to build libraries.
20409 LD=$lt_LD
20410
20411 # How to create reloadable object files.
20412 reload_flag=$lt_reload_flag
20413 reload_cmds=$lt_reload_cmds
20414
20415 # Commands used to build an old-style archive.
20416 old_archive_cmds=$lt_old_archive_cmds
20417
20418 # A language specific compiler.
20419 CC=$lt_compiler
20420
20421 # Is the compiler the GNU compiler?
20422 with_gcc=$GCC
20423
20424 # Compiler flag to turn off builtin functions.
20425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20426
20427 # Additional compiler flags for building library objects.
20428 pic_flag=$lt_lt_prog_compiler_pic
20429
20430 # How to pass a linker flag through the compiler.
20431 wl=$lt_lt_prog_compiler_wl
20432
20433 # Compiler flag to prevent dynamic linking.
20434 link_static_flag=$lt_lt_prog_compiler_static
20435
20436 # Does compiler simultaneously support -c and -o options?
20437 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20438
20439 # Whether or not to add -lc for building shared libraries.
20440 build_libtool_need_lc=$archive_cmds_need_lc
20441
20442 # Whether or not to disallow shared libs when runtime libs are static.
20443 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20444
20445 # Compiler flag to allow reflexive dlopens.
20446 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20447
20448 # Compiler flag to generate shared objects directly from archives.
20449 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20450
20451 # Whether the compiler copes with passing no objects directly.
20452 compiler_needs_object=$lt_compiler_needs_object
20453
20454 # Create an old-style archive from a shared archive.
20455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20456
20457 # Create a temporary old-style archive to link instead of a shared archive.
20458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20459
20460 # Commands used to build a shared archive.
20461 archive_cmds=$lt_archive_cmds
20462 archive_expsym_cmds=$lt_archive_expsym_cmds
20463
20464 # Commands used to build a loadable module if different from building
20465 # a shared archive.
20466 module_cmds=$lt_module_cmds
20467 module_expsym_cmds=$lt_module_expsym_cmds
20468
20469 # Whether we are building with GNU ld or not.
20470 with_gnu_ld=$lt_with_gnu_ld
20471
20472 # Flag that allows shared libraries with undefined symbols to be built.
20473 allow_undefined_flag=$lt_allow_undefined_flag
20474
20475 # Flag that enforces no undefined symbols.
20476 no_undefined_flag=$lt_no_undefined_flag
20477
20478 # Flag to hardcode \$libdir into a binary during linking.
20479 # This must work even if \$libdir does not exist
20480 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20481
20482 # Whether we need a single "-rpath" flag with a separated argument.
20483 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20484
20485 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20486 # DIR into the resulting binary.
20487 hardcode_direct=$hardcode_direct
20488
20489 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20490 # DIR into the resulting binary and the resulting library dependency is
20491 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
20492 # library is relocated.
20493 hardcode_direct_absolute=$hardcode_direct_absolute
20494
20495 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20496 # into the resulting binary.
20497 hardcode_minus_L=$hardcode_minus_L
20498
20499 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20500 # into the resulting binary.
20501 hardcode_shlibpath_var=$hardcode_shlibpath_var
20502
20503 # Set to "yes" if building a shared library automatically hardcodes DIR
20504 # into the library and all subsequent libraries and executables linked
20505 # against it.
20506 hardcode_automatic=$hardcode_automatic
20507
20508 # Set to yes if linker adds runtime paths of dependent libraries
20509 # to runtime path list.
20510 inherit_rpath=$inherit_rpath
20511
20512 # Whether libtool must link a program against all its dependency libraries.
20513 link_all_deplibs=$link_all_deplibs
20514
20515 # Set to "yes" if exported symbols are required.
20516 always_export_symbols=$always_export_symbols
20517
20518 # The commands to list exported symbols.
20519 export_symbols_cmds=$lt_export_symbols_cmds
20520
20521 # Symbols that should not be listed in the preloaded symbols.
20522 exclude_expsyms=$lt_exclude_expsyms
20523
20524 # Symbols that must always be exported.
20525 include_expsyms=$lt_include_expsyms
20526
20527 # Commands necessary for linking programs (against libraries) with templates.
20528 prelink_cmds=$lt_prelink_cmds
20529
20530 # Commands necessary for finishing linking programs.
20531 postlink_cmds=$lt_postlink_cmds
20532
20533 # Specify filename containing input files.
20534 file_list_spec=$lt_file_list_spec
20535
20536 # How to hardcode a shared library path into an executable.
20537 hardcode_action=$hardcode_action
20538
20539 # ### END LIBTOOL CONFIG
20540
20541 _LT_EOF
20542
20543 cat <<'_LT_EOF' >> "$cfgfile"
20544
20545 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20546
20547 # func_munge_path_list VARIABLE PATH
20548 # -----------------------------------
20549 # VARIABLE is name of variable containing _space_ separated list of
20550 # directories to be munged by the contents of PATH, which is string
20551 # having a format:
20552 # "DIR[:DIR]:"
20553 # string "DIR[ DIR]" will be prepended to VARIABLE
20554 # ":DIR[:DIR]"
20555 # string "DIR[ DIR]" will be appended to VARIABLE
20556 # "DIRP[:DIRP]::[DIRA:]DIRA"
20557 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20558 # "DIRA[ DIRA]" will be appended to VARIABLE
20559 # "DIR[:DIR]"
20560 # VARIABLE will be replaced by "DIR[ DIR]"
20561 func_munge_path_list ()
20562 {
20563 case x$2 in
20564 x)
20565 ;;
20566 *:)
20567 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20568 ;;
20569 x:*)
20570 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20571 ;;
20572 *::*)
20573 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20574 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20575 ;;
20576 *)
20577 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20578 ;;
20579 esac
20580 }
20581
20582
20583 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20584 func_cc_basename ()
20585 {
20586 for cc_temp in $*""; do
20587 case $cc_temp in
20588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20590 \-*) ;;
20591 *) break;;
20592 esac
20593 done
20594 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20595 }
20596
20597
20598 # ### END FUNCTIONS SHARED WITH CONFIGURE
20599
20600 _LT_EOF
20601
20602 case $host_os in
20603 aix3*)
20604 cat <<\_LT_EOF >> "$cfgfile"
20605 # AIX sometimes has problems with the GCC collect2 program. For some
20606 # reason, if we set the COLLECT_NAMES environment variable, the problems
20607 # vanish in a puff of smoke.
20608 if test set != "${COLLECT_NAMES+set}"; then
20609 COLLECT_NAMES=
20610 export COLLECT_NAMES
20611 fi
20612 _LT_EOF
20613 ;;
20614 esac
20615
20616
20617
20618 ltmain=$ac_aux_dir/ltmain.sh
20619
20620
20621 # We use sed instead of cat because bash on DJGPP gets confused if
20622 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20623 # text mode, it properly converts lines to CR/LF. This bash problem
20624 # is reportedly fixed, but why not run on old versions too?
20625 $SED '$q' "$ltmain" >> "$cfgfile" \
20626 || (rm -f "$cfgfile"; exit 1)
20627
20628 mv -f "$cfgfile" "$ofile" ||
20629 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20630 chmod +x "$ofile"
20631
20632 ;;
20633
20634 esac
20635 done # for ac_tag
20636
20637
20638 as_fn_exit 0
20639 _ACEOF
20640 ac_clean_files=$ac_clean_files_save
20641
20642 test $ac_write_fail = 0 ||
20643 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20644
20645
20646 # configure is writing to config.log, and then calls config.status.
20647 # config.status does its own redirection, appending to config.log.
20648 # Unfortunately, on DOS this fails, as config.log is still kept open
20649 # by configure, so config.status won't be able to write to it; its
20650 # output is simply discarded. So we exec the FD to /dev/null,
20651 # effectively closing config.log, so it can be properly (re)opened and
20652 # appended to by config.status. When coming back to configure, we
20653 # need to make the FD available again.
20654 if test "$no_create" != yes; then
20655 ac_cs_success=:
20656 ac_config_status_args=
20657 test "$silent" = yes &&
20658 ac_config_status_args="$ac_config_status_args --quiet"
20659 exec 5>/dev/null
20660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20661 exec 5>>config.log
20662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20663 # would make configure fail if this is the last instruction.
20664 $ac_cs_success || as_fn_exit 1
20665 fi
20666 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20668 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20669 fi
20670
20671
20672