Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libseccomp 2.6.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libseccomp'
613 PACKAGE_TARNAME='libseccomp'
614 PACKAGE_VERSION='2.6.0'
615 PACKAGE_STRING='libseccomp 2.6.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 CODE_COVERAGE_RULES
656 CODE_COVERAGE_LDFLAGS
657 CODE_COVERAGE_LIBS
658 CODE_COVERAGE_CXXFLAGS
659 CODE_COVERAGE_CFLAGS
660 CODE_COVERAGE_CPPFLAGS
661 GENHTML
662 LCOV
663 GCOV
664 CODE_COVERAGE_ENABLED
665 CODE_COVERAGE_ENABLED_FALSE
666 CODE_COVERAGE_ENABLED_TRUE
667 COVERITY_FALSE
668 COVERITY_TRUE
669 have_coverity
670 GPERF
671 ENABLE_PYTHON_FALSE
672 ENABLE_PYTHON_TRUE
673 pkgpyexecdir
674 pyexecdir
675 pkgpythondir
676 pythondir
677 PYTHON_EXEC_PREFIX
678 PYTHON_PREFIX
679 PYTHON_PLATFORM
680 PYTHON_VERSION
681 PYTHON
682 cython
683 VERSION_MICRO
684 VERSION_MINOR
685 VERSION_MAJOR
686 AM_LDFLAGS
687 AM_CFLAGS
688 AM_CPPFLAGS
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 DLLTOOL
698 OBJDUMP
699 FILECMD
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 LIBTOOL
718 ac_ct_AR
719 AR
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 am__xargs_n
737 am__rm_f_notfound
738 AM_BACKSLASH
739 AM_DEFAULT_VERBOSITY
740 AM_DEFAULT_V
741 AM_V
742 CSCOPE
743 ETAGS
744 CTAGS
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 runstatedir
788 localstatedir
789 sharedstatedir
790 sysconfdir
791 datadir
792 datarootdir
793 libexecdir
794 sbindir
795 bindir
796 program_transform_name
797 prefix
798 exec_prefix
799 PACKAGE_URL
800 PACKAGE_BUGREPORT
801 PACKAGE_STRING
802 PACKAGE_VERSION
803 PACKAGE_TARNAME
804 PACKAGE_NAME
805 PATH_SEPARATOR
806 SHELL
807 am__quote'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_dependency_tracking
813 enable_shared
814 enable_pic
815 with_pic
816 enable_static
817 enable_fast_install
818 enable_aix_soname
819 with_aix_soname
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_python
824 with_python_sys_prefix
825 with_python_prefix
826 with_python_exec_prefix
827 with_gcov
828 enable_code_coverage
829 '
830 ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 LT_SYS_LIBRARY_PATH
839 PYTHON'
840
841
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
863
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 runstatedir='${localstatedir}/run'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
890
891 ac_prev=
892 ac_dashdash=
893 for ac_option
894 do
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
900 fi
901
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
907
908 case $ac_dashdash$ac_option in
909 --)
910 ac_dashdash=yes ;;
911
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
913 ac_prev=bindir ;;
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 bindir=$ac_optarg ;;
916
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
921
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
928
929 --config-cache | -C)
930 cache_file=config.cache ;;
931
932 -datadir | --datadir | --datadi | --datad)
933 ac_prev=datadir ;;
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
936
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
943
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: '$ac_useropt'"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953 "enable_$ac_useropt"
954 "*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
957 esac
958 eval enable_$ac_useropt=no ;;
959
960 -docdir | --docdir | --docdi | --doc | --do)
961 ac_prev=docdir ;;
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 docdir=$ac_optarg ;;
964
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966 ac_prev=dvidir ;;
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 dvidir=$ac_optarg ;;
969
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: '$ac_useropt'"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=\$ac_optarg ;;
985
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
994
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
997 with_gas=yes ;;
998
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1005
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1010
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012 ac_prev=htmldir ;;
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014 | --ht=*)
1015 htmldir=$ac_optarg ;;
1016
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1023
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1025 ac_prev=infodir ;;
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1028
1029 -libdir | --libdir | --libdi | --libd)
1030 ac_prev=libdir ;;
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1033
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1040
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1045
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1052
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054 ac_prev=mandir ;;
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1057
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1060 with_fp=no ;;
1061
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1064 no_create=yes ;;
1065
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 no_recursion=yes ;;
1069
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1078
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080 ac_prev=prefix ;;
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1083
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1090
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1097
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1114
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116 ac_prev=pdfdir ;;
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1119
1120 -psdir | --psdir | --psdi | --psd | --ps)
1121 ac_prev=psdir ;;
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 psdir=$ac_optarg ;;
1124
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1127 silent=yes ;;
1128
1129 -runstatedir | --runstatedir | --runstatedi | --runstated \
1130 | --runstate | --runstat | --runsta | --runst | --runs \
1131 | --run | --ru | --r)
1132 ac_prev=runstatedir ;;
1133 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1134 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1135 | --run=* | --ru=* | --r=*)
1136 runstatedir=$ac_optarg ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: '$ac_useropt'"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: '$ac_useropt'"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: '$ac_option'
1234 Try '$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir runstatedir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: '$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error $? "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error $? "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 printf "%s\n" X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 'configure' configures libseccomp 2.6.0 to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print 'checking ...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for '--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or '..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, 'make install' will install all the files in
1415 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than '$ac_default_prefix' using '--prefix',
1417 for instance '--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/libseccomp]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1442 _ACEOF
1443
1444 cat <<\_ACEOF
1445
1446 Program names:
1447 --program-prefix=PREFIX prepend PREFIX to installed program names
1448 --program-suffix=SUFFIX append SUFFIX to installed program names
1449 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1450
1451 System types:
1452 --build=BUILD configure for building on BUILD [guessed]
1453 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1454 _ACEOF
1455 fi
1456
1457 if test -n "$ac_init_help"; then
1458 case $ac_init_help in
1459 short | recursive ) echo "Configuration of libseccomp 2.6.0:";;
1460 esac
1461 cat <<\_ACEOF
1462
1463 Optional Features:
1464 --disable-option-checking ignore unrecognized --enable/--with options
1465 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1466 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --enable-aix-soname=aix|svr4|both
1480 shared library versioning (aka "SONAME") variant to
1481 provide on AIX, [default=aix].
1482 --disable-libtool-lock avoid locking (might break parallel builds)
1483 --enable-python build the python bindings, requires cython
1484 --enable-code-coverage Whether to enable code coverage support
1485
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1490 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1491 compiler's sysroot if not specified).
1492 --with-python-sys-prefix
1493 use Python's sys.prefix and sys.exec_prefix values
1494 --with-python_prefix override the default PYTHON_PREFIX
1495 --with-python_exec_prefix
1496 override the default PYTHON_EXEC_PREFIX
1497 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1498
1499 Some influential environment variables:
1500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
1504 LIBS libraries to pass to the linker, e.g. -l<library>
1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1506 you have headers in a nonstandard directory <include dir>
1507 LT_SYS_LIBRARY_PATH
1508 User-defined run-time library search path.
1509 PYTHON the Python interpreter
1510
1511 Use these variables to override the choices made by 'configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to the package provider.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for configure.gnu first; this name is used for a wrapper for
1561 # Metaconfig's "Configure" on case-insensitive file systems.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1568 else
1569 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1570 fi || ac_status=$?
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1572 done
1573 fi
1574
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1577 cat <<\_ACEOF
1578 libseccomp configure 2.6.0
1579 generated by GNU Autoconf 2.72
1580
1581 Copyright (C) 2023 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1584 _ACEOF
1585 exit
1586 fi
1587
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1591
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest.beam
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 printf "%s\n" "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext
1618 then :
1619 ac_retval=0
1620 else case e in #(
1621 e) printf "%s\n" "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1 ;;
1625 esac
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_link ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 printf "%s\n" "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }
1661 then :
1662 ac_retval=0
1663 else case e in #(
1664 e) printf "%s\n" "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1666
1667 ac_retval=1 ;;
1668 esac
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else case e in #(
1693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"
1699 then :
1700 eval "$3=yes"
1701 else case e in #(
1702 e) eval "$3=no" ;;
1703 esac
1704 fi
1705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1706 esac
1707 fi
1708 eval ac_res=\$$3
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 printf "%s\n" "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713 } # ac_fn_c_check_header_compile
1714
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 printf %s "checking for $2... " >&6; }
1723 if eval test \${$3+y}
1724 then :
1725 printf %s "(cached) " >&6
1726 else case e in #(
1727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1729 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1731 #define $2 innocuous_$2
1732
1733 /* System header to define __stub macros and hopefully few prototypes,
1734 which can conflict with char $2 (void); below. */
1735
1736 #include <limits.h>
1737 #undef $2
1738
1739 /* Override any GCC internal prototype to avoid an error.
1740 Use char because int might match the return type of a GCC
1741 builtin and then its argument prototype would still apply. */
1742 #ifdef __cplusplus
1743 extern "C"
1744 #endif
1745 char $2 (void);
1746 /* The GNU C library defines this for functions which it implements
1747 to always fail with ENOSYS. Some functions are actually named
1748 something starting with __ and the normal name is an alias. */
1749 #if defined __stub_$2 || defined __stub___$2
1750 choke me
1751 #endif
1752
1753 int
1754 main (void)
1755 {
1756 return $2 ();
1757 ;
1758 return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_link "$LINENO"
1762 then :
1763 eval "$3=yes"
1764 else case e in #(
1765 e) eval "$3=no" ;;
1766 esac
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1769 conftest$ac_exeext conftest.$ac_ext ;;
1770 esac
1771 fi
1772 eval ac_res=\$$3
1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 printf "%s\n" "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_func
1778 ac_configure_args_raw=
1779 for ac_arg
1780 do
1781 case $ac_arg in
1782 *\'*)
1783 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1784 esac
1785 as_fn_append ac_configure_args_raw " '$ac_arg'"
1786 done
1787
1788 case $ac_configure_args_raw in
1789 *$as_nl*)
1790 ac_safe_unquote= ;;
1791 *)
1792 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1793 ac_unsafe_a="$ac_unsafe_z#~"
1794 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1795 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1796 esac
1797
1798 cat >config.log <<_ACEOF
1799 This file contains any messages produced by compilers while
1800 running configure, to aid debugging if configure makes a mistake.
1801
1802 It was created by libseccomp $as_me 2.6.0, which was
1803 generated by GNU Autoconf 2.72. Invocation command line was
1804
1805 $ $0$ac_configure_args_raw
1806
1807 _ACEOF
1808 exec 5>>config.log
1809 {
1810 cat <<_ASUNAME
1811 ## --------- ##
1812 ## Platform. ##
1813 ## --------- ##
1814
1815 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1816 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1817 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1818 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1819 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820
1821 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1822 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823
1824 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1825 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1826 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1827 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1828 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1829 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1830 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1831
1832 _ASUNAME
1833
1834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835 for as_dir in $PATH
1836 do
1837 IFS=$as_save_IFS
1838 case $as_dir in #(((
1839 '') as_dir=./ ;;
1840 */) ;;
1841 *) as_dir=$as_dir/ ;;
1842 esac
1843 printf "%s\n" "PATH: $as_dir"
1844 done
1845 IFS=$as_save_IFS
1846
1847 } >&5
1848
1849 cat >&5 <<_ACEOF
1850
1851
1852 ## ----------- ##
1853 ## Core tests. ##
1854 ## ----------- ##
1855
1856 _ACEOF
1857
1858
1859 # Keep a trace of the command line.
1860 # Strip out --no-create and --no-recursion so they do not pile up.
1861 # Strip out --silent because we don't want to record it for future runs.
1862 # Also quote any args containing shell meta-characters.
1863 # Make two passes to allow for proper duplicate-argument suppression.
1864 ac_configure_args=
1865 ac_configure_args0=
1866 ac_configure_args1=
1867 ac_must_keep_next=false
1868 for ac_pass in 1 2
1869 do
1870 for ac_arg
1871 do
1872 case $ac_arg in
1873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1875 | -silent | --silent | --silen | --sile | --sil)
1876 continue ;;
1877 *\'*)
1878 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1879 esac
1880 case $ac_pass in
1881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 2)
1883 as_fn_append ac_configure_args1 " '$ac_arg'"
1884 if test $ac_must_keep_next = true; then
1885 ac_must_keep_next=false # Got value, back to normal.
1886 else
1887 case $ac_arg in
1888 *=* | --config-cache | -C | -disable-* | --disable-* \
1889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1891 | -with-* | --with-* | -without-* | --without-* | --x)
1892 case "$ac_configure_args0 " in
1893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1894 esac
1895 ;;
1896 -* ) ac_must_keep_next=true ;;
1897 esac
1898 fi
1899 as_fn_append ac_configure_args " '$ac_arg'"
1900 ;;
1901 esac
1902 done
1903 done
1904 { ac_configure_args0=; unset ac_configure_args0;}
1905 { ac_configure_args1=; unset ac_configure_args1;}
1906
1907 # When interrupted or exit'd, cleanup temporary files, and complete
1908 # config.log. We remove comments because anyway the quotes in there
1909 # would cause problems or look ugly.
1910 # WARNING: Use '\'' to represent an apostrophe within the trap.
1911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1912 trap 'exit_status=$?
1913 # Sanitize IFS.
1914 IFS=" "" $as_nl"
1915 # Save into config.log some information that might help in debugging.
1916 {
1917 echo
1918
1919 printf "%s\n" "## ---------------- ##
1920 ## Cache variables. ##
1921 ## ---------------- ##"
1922 echo
1923 # The following way of writing the cache mishandles newlines in values,
1924 (
1925 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in #(
1928 *${as_nl}*)
1929 case $ac_var in #(
1930 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1931 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1932 esac
1933 case $ac_var in #(
1934 _ | IFS | as_nl) ;; #(
1935 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1936 *) { eval $ac_var=; unset $ac_var;} ;;
1937 esac ;;
1938 esac
1939 done
1940 (set) 2>&1 |
1941 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1942 *${as_nl}ac_space=\ *)
1943 sed -n \
1944 "s/'\''/'\''\\\\'\'''\''/g;
1945 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1946 ;; #(
1947 *)
1948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1949 ;;
1950 esac |
1951 sort
1952 )
1953 echo
1954
1955 printf "%s\n" "## ----------------- ##
1956 ## Output variables. ##
1957 ## ----------------- ##"
1958 echo
1959 for ac_var in $ac_subst_vars
1960 do
1961 eval ac_val=\$$ac_var
1962 case $ac_val in
1963 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1964 esac
1965 printf "%s\n" "$ac_var='\''$ac_val'\''"
1966 done | sort
1967 echo
1968
1969 if test -n "$ac_subst_files"; then
1970 printf "%s\n" "## ------------------- ##
1971 ## File substitutions. ##
1972 ## ------------------- ##"
1973 echo
1974 for ac_var in $ac_subst_files
1975 do
1976 eval ac_val=\$$ac_var
1977 case $ac_val in
1978 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 esac
1980 printf "%s\n" "$ac_var='\''$ac_val'\''"
1981 done | sort
1982 echo
1983 fi
1984
1985 if test -s confdefs.h; then
1986 printf "%s\n" "## ----------- ##
1987 ## confdefs.h. ##
1988 ## ----------- ##"
1989 echo
1990 cat confdefs.h
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
1994 printf "%s\n" "$as_me: caught signal $ac_signal"
1995 printf "%s\n" "$as_me: exit $exit_status"
1996 } >&5
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999 exit $exit_status
2000 ' 0
2001 for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 done
2004 ac_signal=0
2005
2006 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2007 rm -f -r conftest* confdefs.h
2008
2009 printf "%s\n" "/* confdefs.h */" > confdefs.h
2010
2011 # Predefined preprocessor variables.
2012
2013 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2014
2015 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2016
2017 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2018
2019 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2020
2021 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2022
2023 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2024
2025
2026 # Let the site file select an alternate cache file if it wants to.
2027 # Prefer an explicitly selected file to automatically selected ones.
2028 if test -n "$CONFIG_SITE"; then
2029 ac_site_files="$CONFIG_SITE"
2030 elif test "x$prefix" != xNONE; then
2031 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2032 else
2033 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2034 fi
2035
2036 for ac_site_file in $ac_site_files
2037 do
2038 case $ac_site_file in #(
2039 */*) :
2040 ;; #(
2041 *) :
2042 ac_site_file=./$ac_site_file ;;
2043 esac
2044 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2046 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2047 sed 's/^/| /' "$ac_site_file" >&5
2048 . "$ac_site_file" \
2049 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2051 as_fn_error $? "failed to load site script $ac_site_file
2052 See 'config.log' for more details" "$LINENO" 5; }
2053 fi
2054 done
2055
2056 if test -r "$cache_file"; then
2057 # Some versions of bash will fail to source /dev/null (special files
2058 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2059 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2062 case $cache_file in
2063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064 *) . "./$cache_file";;
2065 esac
2066 fi
2067 else
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2070 >$cache_file
2071 fi
2072
2073 # Test code for whether the C compiler supports C89 (global declarations)
2074 ac_c_conftest_c89_globals='
2075 /* Does the compiler advertise C89 conformance?
2076 Do not test the value of __STDC__, because some compilers set it to 0
2077 while being otherwise adequately conformant. */
2078 #if !defined __STDC__
2079 # error "Compiler does not advertise C89 conformance"
2080 #endif
2081
2082 #include <stddef.h>
2083 #include <stdarg.h>
2084 struct stat;
2085 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2086 struct buf { int x; };
2087 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2088 static char *e (char **p, int i)
2089 {
2090 return p[i];
2091 }
2092 static char *f (char * (*g) (char **, int), char **p, ...)
2093 {
2094 char *s;
2095 va_list v;
2096 va_start (v,p);
2097 s = g (p, va_arg (v,int));
2098 va_end (v);
2099 return s;
2100 }
2101
2102 /* C89 style stringification. */
2103 #define noexpand_stringify(a) #a
2104 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2105
2106 /* C89 style token pasting. Exercises some of the corner cases that
2107 e.g. old MSVC gets wrong, but not very hard. */
2108 #define noexpand_concat(a,b) a##b
2109 #define expand_concat(a,b) noexpand_concat(a,b)
2110 extern int vA;
2111 extern int vbee;
2112 #define aye A
2113 #define bee B
2114 int *pvA = &expand_concat(v,aye);
2115 int *pvbee = &noexpand_concat(v,bee);
2116
2117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2118 function prototypes and stuff, but not \xHH hex character constants.
2119 These do not provoke an error unfortunately, instead are silently treated
2120 as an "x". The following induces an error, until -std is added to get
2121 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2122 array size at least. It is necessary to write \x00 == 0 to get something
2123 that is true only with -std. */
2124 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2125
2126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2127 inside strings and character constants. */
2128 #define FOO(x) '\''x'\''
2129 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2130
2131 int test (int i, double x);
2132 struct s1 {int (*f) (int a);};
2133 struct s2 {int (*f) (double a);};
2134 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2135 int, int);'
2136
2137 # Test code for whether the C compiler supports C89 (body of main).
2138 ac_c_conftest_c89_main='
2139 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2140 '
2141
2142 # Test code for whether the C compiler supports C99 (global declarations)
2143 ac_c_conftest_c99_globals='
2144 /* Does the compiler advertise C99 conformance? */
2145 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2146 # error "Compiler does not advertise C99 conformance"
2147 #endif
2148
2149 // See if C++-style comments work.
2150
2151 #include <stdbool.h>
2152 extern int puts (const char *);
2153 extern int printf (const char *, ...);
2154 extern int dprintf (int, const char *, ...);
2155 extern void *malloc (size_t);
2156 extern void free (void *);
2157
2158 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2159 // dprintf is used instead of fprintf to avoid needing to declare
2160 // FILE and stderr.
2161 #define debug(...) dprintf (2, __VA_ARGS__)
2162 #define showlist(...) puts (#__VA_ARGS__)
2163 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2164 static void
2165 test_varargs_macros (void)
2166 {
2167 int x = 1234;
2168 int y = 5678;
2169 debug ("Flag");
2170 debug ("X = %d\n", x);
2171 showlist (The first, second, and third items.);
2172 report (x>y, "x is %d but y is %d", x, y);
2173 }
2174
2175 // Check long long types.
2176 #define BIG64 18446744073709551615ull
2177 #define BIG32 4294967295ul
2178 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2179 #if !BIG_OK
2180 #error "your preprocessor is broken"
2181 #endif
2182 #if BIG_OK
2183 #else
2184 #error "your preprocessor is broken"
2185 #endif
2186 static long long int bignum = -9223372036854775807LL;
2187 static unsigned long long int ubignum = BIG64;
2188
2189 struct incomplete_array
2190 {
2191 int datasize;
2192 double data[];
2193 };
2194
2195 struct named_init {
2196 int number;
2197 const wchar_t *name;
2198 double average;
2199 };
2200
2201 typedef const char *ccp;
2202
2203 static inline int
2204 test_restrict (ccp restrict text)
2205 {
2206 // Iterate through items via the restricted pointer.
2207 // Also check for declarations in for loops.
2208 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2209 continue;
2210 return 0;
2211 }
2212
2213 // Check varargs and va_copy.
2214 static bool
2215 test_varargs (const char *format, ...)
2216 {
2217 va_list args;
2218 va_start (args, format);
2219 va_list args_copy;
2220 va_copy (args_copy, args);
2221
2222 const char *str = "";
2223 int number = 0;
2224 float fnumber = 0;
2225
2226 while (*format)
2227 {
2228 switch (*format++)
2229 {
2230 case '\''s'\'': // string
2231 str = va_arg (args_copy, const char *);
2232 break;
2233 case '\''d'\'': // int
2234 number = va_arg (args_copy, int);
2235 break;
2236 case '\''f'\'': // float
2237 fnumber = va_arg (args_copy, double);
2238 break;
2239 default:
2240 break;
2241 }
2242 }
2243 va_end (args_copy);
2244 va_end (args);
2245
2246 return *str && number && fnumber;
2247 }
2248 '
2249
2250 # Test code for whether the C compiler supports C99 (body of main).
2251 ac_c_conftest_c99_main='
2252 // Check bool.
2253 _Bool success = false;
2254 success |= (argc != 0);
2255
2256 // Check restrict.
2257 if (test_restrict ("String literal") == 0)
2258 success = true;
2259 char *restrict newvar = "Another string";
2260
2261 // Check varargs.
2262 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2263 test_varargs_macros ();
2264
2265 // Check flexible array members.
2266 struct incomplete_array *ia =
2267 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2268 ia->datasize = 10;
2269 for (int i = 0; i < ia->datasize; ++i)
2270 ia->data[i] = i * 1.234;
2271 // Work around memory leak warnings.
2272 free (ia);
2273
2274 // Check named initializers.
2275 struct named_init ni = {
2276 .number = 34,
2277 .name = L"Test wide string",
2278 .average = 543.34343,
2279 };
2280
2281 ni.number = 58;
2282
2283 int dynamic_array[ni.number];
2284 dynamic_array[0] = argv[0][0];
2285 dynamic_array[ni.number - 1] = 543;
2286
2287 // work around unused variable warnings
2288 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2289 || dynamic_array[ni.number - 1] != 543);
2290 '
2291
2292 # Test code for whether the C compiler supports C11 (global declarations)
2293 ac_c_conftest_c11_globals='
2294 /* Does the compiler advertise C11 conformance? */
2295 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2296 # error "Compiler does not advertise C11 conformance"
2297 #endif
2298
2299 // Check _Alignas.
2300 char _Alignas (double) aligned_as_double;
2301 char _Alignas (0) no_special_alignment;
2302 extern char aligned_as_int;
2303 char _Alignas (0) _Alignas (int) aligned_as_int;
2304
2305 // Check _Alignof.
2306 enum
2307 {
2308 int_alignment = _Alignof (int),
2309 int_array_alignment = _Alignof (int[100]),
2310 char_alignment = _Alignof (char)
2311 };
2312 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2313
2314 // Check _Noreturn.
2315 int _Noreturn does_not_return (void) { for (;;) continue; }
2316
2317 // Check _Static_assert.
2318 struct test_static_assert
2319 {
2320 int x;
2321 _Static_assert (sizeof (int) <= sizeof (long int),
2322 "_Static_assert does not work in struct");
2323 long int y;
2324 };
2325
2326 // Check UTF-8 literals.
2327 #define u8 syntax error!
2328 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2329
2330 // Check duplicate typedefs.
2331 typedef long *long_ptr;
2332 typedef long int *long_ptr;
2333 typedef long_ptr long_ptr;
2334
2335 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2336 struct anonymous
2337 {
2338 union {
2339 struct { int i; int j; };
2340 struct { int k; long int l; } w;
2341 };
2342 int m;
2343 } v1;
2344 '
2345
2346 # Test code for whether the C compiler supports C11 (body of main).
2347 ac_c_conftest_c11_main='
2348 _Static_assert ((offsetof (struct anonymous, i)
2349 == offsetof (struct anonymous, w.k)),
2350 "Anonymous union alignment botch");
2351 v1.i = 2;
2352 v1.w.k = 5;
2353 ok |= v1.i != 5;
2354 '
2355
2356 # Test code for whether the C compiler supports C11 (complete).
2357 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2358 ${ac_c_conftest_c99_globals}
2359 ${ac_c_conftest_c11_globals}
2360
2361 int
2362 main (int argc, char **argv)
2363 {
2364 int ok = 0;
2365 ${ac_c_conftest_c89_main}
2366 ${ac_c_conftest_c99_main}
2367 ${ac_c_conftest_c11_main}
2368 return ok;
2369 }
2370 "
2371
2372 # Test code for whether the C compiler supports C99 (complete).
2373 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2374 ${ac_c_conftest_c99_globals}
2375
2376 int
2377 main (int argc, char **argv)
2378 {
2379 int ok = 0;
2380 ${ac_c_conftest_c89_main}
2381 ${ac_c_conftest_c99_main}
2382 return ok;
2383 }
2384 "
2385
2386 # Test code for whether the C compiler supports C89 (complete).
2387 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2388
2389 int
2390 main (int argc, char **argv)
2391 {
2392 int ok = 0;
2393 ${ac_c_conftest_c89_main}
2394 return ok;
2395 }
2396 "
2397
2398 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2399 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2400 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2401 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2402 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2403 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2404 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2405 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2406 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2407 as_fn_append ac_header_c_list " linux/seccomp.h linux_seccomp_h HAVE_LINUX_SECCOMP_H"
2408
2409 # Auxiliary files required by this configure script.
2410 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2411
2412 # Locations in which to look for auxiliary files.
2413 ac_aux_dir_candidates="${srcdir}/build-aux"
2414
2415 # Search for a directory containing all of the required auxiliary files,
2416 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2417 # If we don't find one directory that contains all the files we need,
2418 # we report the set of missing files from the *first* directory in
2419 # $ac_aux_dir_candidates and give up.
2420 ac_missing_aux_files=""
2421 ac_first_candidate=:
2422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 as_found=false
2425 for as_dir in $ac_aux_dir_candidates
2426 do
2427 IFS=$as_save_IFS
2428 case $as_dir in #(((
2429 '') as_dir=./ ;;
2430 */) ;;
2431 *) as_dir=$as_dir/ ;;
2432 esac
2433 as_found=:
2434
2435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2436 ac_aux_dir_found=yes
2437 ac_install_sh=
2438 for ac_aux in $ac_aux_files
2439 do
2440 # As a special case, if "install-sh" is required, that requirement
2441 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2442 # and $ac_install_sh is set appropriately for whichever one is found.
2443 if test x"$ac_aux" = x"install-sh"
2444 then
2445 if test -f "${as_dir}install-sh"; then
2446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2447 ac_install_sh="${as_dir}install-sh -c"
2448 elif test -f "${as_dir}install.sh"; then
2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2450 ac_install_sh="${as_dir}install.sh -c"
2451 elif test -f "${as_dir}shtool"; then
2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2453 ac_install_sh="${as_dir}shtool install -c"
2454 else
2455 ac_aux_dir_found=no
2456 if $ac_first_candidate; then
2457 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2458 else
2459 break
2460 fi
2461 fi
2462 else
2463 if test -f "${as_dir}${ac_aux}"; then
2464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2465 else
2466 ac_aux_dir_found=no
2467 if $ac_first_candidate; then
2468 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2469 else
2470 break
2471 fi
2472 fi
2473 fi
2474 done
2475 if test "$ac_aux_dir_found" = yes; then
2476 ac_aux_dir="$as_dir"
2477 break
2478 fi
2479 ac_first_candidate=false
2480
2481 as_found=false
2482 done
2483 IFS=$as_save_IFS
2484 if $as_found
2485 then :
2486
2487 else case e in #(
2488 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2489 esac
2490 fi
2491
2492
2493 # These three variables are undocumented and unsupported,
2494 # and are intended to be withdrawn in a future Autoconf release.
2495 # They can cause serious problems if a builder's source tree is in a directory
2496 # whose full name contains unusual characters.
2497 if test -f "${ac_aux_dir}config.guess"; then
2498 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2499 fi
2500 if test -f "${ac_aux_dir}config.sub"; then
2501 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2502 fi
2503 if test -f "$ac_aux_dir/configure"; then
2504 ac_configure="$SHELL ${ac_aux_dir}configure"
2505 fi
2506
2507 # Check that the precious variables saved in the cache have kept the same
2508 # value.
2509 ac_cache_corrupted=false
2510 for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2516 set,)
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2518 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,set)
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2522 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,);;
2525 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2532 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2534 else
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2536 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2540 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2542 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2543 fi;;
2544 esac
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2547 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 esac
2555 fi
2556 done
2557 if $ac_cache_corrupted; then
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2559 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2563 and start over" "$LINENO" 5
2564 fi
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576
2577
2578 ac_config_headers="$ac_config_headers configure.h"
2579
2580
2581
2582
2583 am__api_version='1.17'
2584
2585
2586
2587 # Find a good install program. We prefer a C program (faster),
2588 # so one script is as good as another. But avoid the broken or
2589 # incompatible versions:
2590 # SysV /etc/install, /usr/sbin/install
2591 # SunOS /usr/etc/install
2592 # IRIX /sbin/install
2593 # AIX /bin/install
2594 # AmigaOS /C/install, which installs bootblocks on floppy discs
2595 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2596 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2597 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2598 # OS/2's system install, which has a completely different semantic
2599 # ./install, which can be erroneously created by make from ./install.sh.
2600 # Reject install programs that cannot install multiple files.
2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2602 printf %s "checking for a BSD-compatible install... " >&6; }
2603 if test -z "$INSTALL"; then
2604 if test ${ac_cv_path_install+y}
2605 then :
2606 printf %s "(cached) " >&6
2607 else case e in #(
2608 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611 IFS=$as_save_IFS
2612 case $as_dir in #(((
2613 '') as_dir=./ ;;
2614 */) ;;
2615 *) as_dir=$as_dir/ ;;
2616 esac
2617 # Account for fact that we put trailing slashes in our PATH walk.
2618 case $as_dir in #((
2619 ./ | /[cC]/* | \
2620 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2621 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 /usr/ucb/* ) ;;
2623 *)
2624 # OSF1 and SCO ODT 3.0 have their own names for install.
2625 # Don't use installbsd from OSF since it installs stuff as root
2626 # by default.
2627 for ac_prog in ginstall scoinst install; do
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2630 if test $ac_prog = install &&
2631 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632 # AIX install. It has an incompatible calling convention.
2633 :
2634 elif test $ac_prog = install &&
2635 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636 # program-specific install script used by HP pwplus--don't use.
2637 :
2638 else
2639 rm -rf conftest.one conftest.two conftest.dir
2640 echo one > conftest.one
2641 echo two > conftest.two
2642 mkdir conftest.dir
2643 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2644 test -s conftest.one && test -s conftest.two &&
2645 test -s conftest.dir/conftest.one &&
2646 test -s conftest.dir/conftest.two
2647 then
2648 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2649 break 3
2650 fi
2651 fi
2652 fi
2653 done
2654 done
2655 ;;
2656 esac
2657
2658 done
2659 IFS=$as_save_IFS
2660
2661 rm -rf conftest.one conftest.two conftest.dir
2662 ;;
2663 esac
2664 fi
2665 if test ${ac_cv_path_install+y}; then
2666 INSTALL=$ac_cv_path_install
2667 else
2668 # As a last resort, use the slow shell script. Don't cache a
2669 # value for INSTALL within a source directory, because that will
2670 # break other packages using the cache if that directory is
2671 # removed, or if the value is a relative name.
2672 INSTALL=$ac_install_sh
2673 fi
2674 fi
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2676 printf "%s\n" "$INSTALL" >&6; }
2677
2678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2679 # It thinks the first close brace ends the variable substitution.
2680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2681
2682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2683
2684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2685
2686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2687 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2688 if test ${am_cv_sleep_fractional_seconds+y}
2689 then :
2690 printf %s "(cached) " >&6
2691 else case e in #(
2692 e) if sleep 0.001 2>/dev/null
2693 then :
2694 am_cv_sleep_fractional_seconds=yes
2695 else case e in #(
2696 e) am_cv_sleep_fractional_seconds=no ;;
2697 esac
2698 fi
2699 ;;
2700 esac
2701 fi
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2703 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2704
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2706 printf %s "checking filesystem timestamp resolution... " >&6; }
2707 if test ${am_cv_filesystem_timestamp_resolution+y}
2708 then :
2709 printf %s "(cached) " >&6
2710 else case e in #(
2711 e) # Default to the worst case.
2712 am_cv_filesystem_timestamp_resolution=2
2713
2714 # Only try to go finer than 1 sec if sleep can do it.
2715 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2716 # - 1 sec is not much of a win compared to 2 sec, and
2717 # - it takes 2 seconds to perform the test whether 1 sec works.
2718 #
2719 # Instead, just use the default 2s on platforms that have 1s resolution,
2720 # accept the extra 1s delay when using $sleep in the Automake tests, in
2721 # exchange for not incurring the 2s delay for running the test for all
2722 # packages.
2723 #
2724 am_try_resolutions=
2725 if test "$am_cv_sleep_fractional_seconds" = yes; then
2726 # Even a millisecond often causes a bunch of false positives,
2727 # so just try a hundredth of a second. The time saved between .001 and
2728 # .01 is not terribly consequential.
2729 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2730 fi
2731
2732 # In order to catch current-generation FAT out, we must *modify* files
2733 # that already exist; the *creation* timestamp is finer. Use names
2734 # that make ls -t sort them differently when they have equal
2735 # timestamps than when they have distinct timestamps, keeping
2736 # in mind that ls -t prints the *newest* file first.
2737 rm -f conftest.ts?
2738 : > conftest.ts1
2739 : > conftest.ts2
2740 : > conftest.ts3
2741
2742 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2743 # clobber the current shell's arguments. (Outer-level square brackets
2744 # are removed by m4; they're present so that m4 does not expand
2745 # <dollar><star>; be careful, easy to get confused.)
2746 if (
2747 set X `ls -t conftest.ts[12]` &&
2748 {
2749 test "$*" != "X conftest.ts1 conftest.ts2" ||
2750 test "$*" != "X conftest.ts2 conftest.ts1";
2751 }
2752 ); then :; else
2753 # If neither matched, then we have a broken ls. This can happen
2754 # if, for instance, CONFIG_SHELL is bash and it inherits a
2755 # broken ls alias from the environment. This has actually
2756 # happened. Such a system could not be considered "sane".
2757 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2758 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2759 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2760 as_fn_error $? "ls -t produces unexpected output.
2761 Make sure there is not a broken ls alias in your environment.
2762 See 'config.log' for more details" "$LINENO" 5; }
2763 fi
2764
2765 for am_try_res in $am_try_resolutions; do
2766 # Any one fine-grained sleep might happen to cross the boundary
2767 # between two values of a coarser actual resolution, but if we do
2768 # two fine-grained sleeps in a row, at least one of them will fall
2769 # entirely within a coarse interval.
2770 echo alpha > conftest.ts1
2771 sleep $am_try_res
2772 echo beta > conftest.ts2
2773 sleep $am_try_res
2774 echo gamma > conftest.ts3
2775
2776 # We assume that 'ls -t' will make use of high-resolution
2777 # timestamps if the operating system supports them at all.
2778 if (set X `ls -t conftest.ts?` &&
2779 test "$2" = conftest.ts3 &&
2780 test "$3" = conftest.ts2 &&
2781 test "$4" = conftest.ts1); then
2782 #
2783 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2784 # because we don't need to test make.
2785 make_ok=true
2786 if test $am_try_res != 1; then
2787 # But if we've succeeded so far with a subsecond resolution, we
2788 # have one more thing to check: make. It can happen that
2789 # everything else supports the subsecond mtimes, but make doesn't;
2790 # notably on macOS, which ships make 3.81 from 2006 (the last one
2791 # released under GPLv2). https://bugs.gnu.org/68808
2792 #
2793 # We test $MAKE if it is defined in the environment, else "make".
2794 # It might get overridden later, but our hope is that in practice
2795 # it does not matter: it is the system "make" which is (by far)
2796 # the most likely to be broken, whereas if the user overrides it,
2797 # probably they did so with a better, or at least not worse, make.
2798 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2799 #
2800 # Create a Makefile (real tab character here):
2801 rm -f conftest.mk
2802 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2803 echo ' touch conftest.ts2' >>conftest.mk
2804 #
2805 # Now, running
2806 # touch conftest.ts1; touch conftest.ts2; make
2807 # should touch ts1 because ts2 is newer. This could happen by luck,
2808 # but most often, it will fail if make's support is insufficient. So
2809 # test for several consecutive successes.
2810 #
2811 # (We reuse conftest.ts[12] because we still want to modify existing
2812 # files, not create new ones, per above.)
2813 n=0
2814 make=${MAKE-make}
2815 until test $n -eq 3; do
2816 echo one > conftest.ts1
2817 sleep $am_try_res
2818 echo two > conftest.ts2 # ts2 should now be newer than ts1
2819 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2820 make_ok=false
2821 break # out of $n loop
2822 fi
2823 n=`expr $n + 1`
2824 done
2825 fi
2826 #
2827 if $make_ok; then
2828 # Everything we know to check worked out, so call this resolution good.
2829 am_cv_filesystem_timestamp_resolution=$am_try_res
2830 break # out of $am_try_res loop
2831 fi
2832 # Otherwise, we'll go on to check the next resolution.
2833 fi
2834 done
2835 rm -f conftest.ts?
2836 # (end _am_filesystem_timestamp_resolution)
2837 ;;
2838 esac
2839 fi
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2841 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2842
2843 # This check should not be cached, as it may vary across builds of
2844 # different projects.
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2846 printf %s "checking whether build environment is sane... " >&6; }
2847 # Reject unsafe characters in $srcdir or the absolute working directory
2848 # name. Accept space and tab only in the latter.
2849 am_lf='
2850 '
2851 case `pwd` in
2852 *[\\\"\#\$\&\'\`$am_lf]*)
2853 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2854 esac
2855 case $srcdir in
2856 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2857 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2858 esac
2859
2860 # Do 'set' in a subshell so we don't clobber the current shell's
2861 # arguments. Must try -L first in case configure is actually a
2862 # symlink; some systems play weird games with the mod time of symlinks
2863 # (eg FreeBSD returns the mod time of the symlink's containing
2864 # directory).
2865 am_build_env_is_sane=no
2866 am_has_slept=no
2867 rm -f conftest.file
2868 for am_try in 1 2; do
2869 echo "timestamp, slept: $am_has_slept" > conftest.file
2870 if (
2871 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2872 if test "$*" = "X"; then
2873 # -L didn't work.
2874 set X `ls -t "$srcdir/configure" conftest.file`
2875 fi
2876 test "$2" = conftest.file
2877 ); then
2878 am_build_env_is_sane=yes
2879 break
2880 fi
2881 # Just in case.
2882 sleep "$am_cv_filesystem_timestamp_resolution"
2883 am_has_slept=yes
2884 done
2885
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2887 printf "%s\n" "$am_build_env_is_sane" >&6; }
2888 if test "$am_build_env_is_sane" = no; then
2889 as_fn_error $? "newly created file is older than distributed files!
2890 Check your system clock" "$LINENO" 5
2891 fi
2892
2893 # If we didn't sleep, we still need to ensure time stamps of config.status and
2894 # generated files are strictly newer.
2895 am_sleep_pid=
2896 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2897 then :
2898
2899 else case e in #(
2900 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2901 am_sleep_pid=$!
2902 ;;
2903 esac
2904 fi
2905
2906 rm -f conftest.file
2907
2908 test "$program_prefix" != NONE &&
2909 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE &&
2912 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was 's,x,x', remove it if useless.
2915 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2917
2918
2919 # Expand $ac_aux_dir to an absolute path.
2920 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2921
2922
2923 if test x"${MISSING+set}" != xset; then
2924 MISSING="\${SHELL} '$am_aux_dir/missing'"
2925 fi
2926 # Use eval to expand $SHELL
2927 if eval "$MISSING --is-lightweight"; then
2928 am_missing_run="$MISSING "
2929 else
2930 am_missing_run=
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2932 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2933 fi
2934
2935 if test x"${install_sh+set}" != xset; then
2936 case $am_aux_dir in
2937 *\ * | *\ *)
2938 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2939 *)
2940 install_sh="\${SHELL} $am_aux_dir/install-sh"
2941 esac
2942 fi
2943
2944 # Installed binaries are usually stripped using 'strip' when the user
2945 # run "make install-strip". However 'strip' might not be the right
2946 # tool to use in cross-compilation environments, therefore Automake
2947 # will honor the 'STRIP' environment variable to overrule this program.
2948 if test "$cross_compiling" != no; then
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}strip; ac_word=$2
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 printf %s "checking for $ac_word... " >&6; }
2954 if test ${ac_cv_prog_STRIP+y}
2955 then :
2956 printf %s "(cached) " >&6
2957 else case e in #(
2958 e) if test -n "$STRIP"; then
2959 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 case $as_dir in #(((
2966 '') as_dir=./ ;;
2967 */) ;;
2968 *) as_dir=$as_dir/ ;;
2969 esac
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi ;;
2981 esac
2982 fi
2983 STRIP=$ac_cv_prog_STRIP
2984 if test -n "$STRIP"; then
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2986 printf "%s\n" "$STRIP" >&6; }
2987 else
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 printf "%s\n" "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$ac_cv_prog_STRIP"; then
2995 ac_ct_STRIP=$STRIP
2996 # Extract the first word of "strip", so it can be a program name with args.
2997 set dummy strip; ac_word=$2
2998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 printf %s "checking for $ac_word... " >&6; }
3000 if test ${ac_cv_prog_ac_ct_STRIP+y}
3001 then :
3002 printf %s "(cached) " >&6
3003 else case e in #(
3004 e) if test -n "$ac_ct_STRIP"; then
3005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010 IFS=$as_save_IFS
3011 case $as_dir in #(((
3012 '') as_dir=./ ;;
3013 */) ;;
3014 *) as_dir=$as_dir/ ;;
3015 esac
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_STRIP="strip"
3019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi ;;
3027 esac
3028 fi
3029 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3030 if test -n "$ac_ct_STRIP"; then
3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3032 printf "%s\n" "$ac_ct_STRIP" >&6; }
3033 else
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 printf "%s\n" "no" >&6; }
3036 fi
3037
3038 if test "x$ac_ct_STRIP" = x; then
3039 STRIP=":"
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 STRIP=$ac_ct_STRIP
3048 fi
3049 else
3050 STRIP="$ac_cv_prog_STRIP"
3051 fi
3052
3053 fi
3054 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3055
3056
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3058 printf %s "checking for a race-free mkdir -p... " >&6; }
3059 if test -z "$MKDIR_P"; then
3060 if test ${ac_cv_path_mkdir+y}
3061 then :
3062 printf %s "(cached) " >&6
3063 else case e in #(
3064 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3066 do
3067 IFS=$as_save_IFS
3068 case $as_dir in #(((
3069 '') as_dir=./ ;;
3070 */) ;;
3071 *) as_dir=$as_dir/ ;;
3072 esac
3073 for ac_prog in mkdir gmkdir; do
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3076 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3077 'mkdir ('*'coreutils) '* | \
3078 *'BusyBox '* | \
3079 'mkdir (fileutils) '4.1*)
3080 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3081 break 3;;
3082 esac
3083 done
3084 done
3085 done
3086 IFS=$as_save_IFS
3087 ;;
3088 esac
3089 fi
3090
3091 test -d ./--version && rmdir ./--version
3092 if test ${ac_cv_path_mkdir+y}; then
3093 MKDIR_P="$ac_cv_path_mkdir -p"
3094 else
3095 # As a last resort, use plain mkdir -p,
3096 # in the hope it doesn't have the bugs of ancient mkdir.
3097 MKDIR_P='mkdir -p'
3098 fi
3099 fi
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101 printf "%s\n" "$MKDIR_P" >&6; }
3102
3103 for ac_prog in gawk mawk nawk awk
3104 do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 printf %s "checking for $ac_word... " >&6; }
3109 if test ${ac_cv_prog_AWK+y}
3110 then :
3111 printf %s "(cached) " >&6
3112 else case e in #(
3113 e) if test -n "$AWK"; then
3114 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 case $as_dir in #(((
3121 '') as_dir=./ ;;
3122 */) ;;
3123 *) as_dir=$as_dir/ ;;
3124 esac
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_AWK="$ac_prog"
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi ;;
3136 esac
3137 fi
3138 AWK=$ac_cv_prog_AWK
3139 if test -n "$AWK"; then
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141 printf "%s\n" "$AWK" >&6; }
3142 else
3143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 printf "%s\n" "no" >&6; }
3145 fi
3146
3147
3148 test -n "$AWK" && break
3149 done
3150
3151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153 set x ${MAKE-make}
3154 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3156 then :
3157 printf %s "(cached) " >&6
3158 else case e in #(
3159 e) cat >conftest.make <<\_ACEOF
3160 SHELL = /bin/sh
3161 all:
3162 @echo '@@@%%%=$(MAKE)=@@@%%%'
3163 _ACEOF
3164 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3166 *@@@%%%=?*=@@@%%%*)
3167 eval ac_cv_prog_make_${ac_make}_set=yes;;
3168 *)
3169 eval ac_cv_prog_make_${ac_make}_set=no;;
3170 esac
3171 rm -f conftest.make ;;
3172 esac
3173 fi
3174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3176 printf "%s\n" "yes" >&6; }
3177 SET_MAKE=
3178 else
3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 printf "%s\n" "no" >&6; }
3181 SET_MAKE="MAKE=${MAKE-make}"
3182 fi
3183
3184 rm -rf .tst 2>/dev/null
3185 mkdir .tst 2>/dev/null
3186 if test -d .tst; then
3187 am__leading_dot=.
3188 else
3189 am__leading_dot=_
3190 fi
3191 rmdir .tst 2>/dev/null
3192
3193 AM_DEFAULT_VERBOSITY=1
3194 # Check whether --enable-silent-rules was given.
3195 if test ${enable_silent_rules+y}
3196 then :
3197 enableval=$enable_silent_rules;
3198 fi
3199
3200 am_make=${MAKE-make}
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3202 printf %s "checking whether $am_make supports nested variables... " >&6; }
3203 if test ${am_cv_make_support_nested_variables+y}
3204 then :
3205 printf %s "(cached) " >&6
3206 else case e in #(
3207 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3208 BAR0=false
3209 BAR1=true
3210 V=1
3211 am__doit:
3212 @$(TRUE)
3213 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3214 am_cv_make_support_nested_variables=yes
3215 else
3216 am_cv_make_support_nested_variables=no
3217 fi ;;
3218 esac
3219 fi
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3221 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3222 AM_BACKSLASH='\'
3223
3224 am__rm_f_notfound=
3225 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3226 then :
3227
3228 else case e in #(
3229 e) am__rm_f_notfound='""' ;;
3230 esac
3231 fi
3232
3233
3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3235 printf %s "checking xargs -n works... " >&6; }
3236 if test ${am_cv_xargs_n_works+y}
3237 then :
3238 printf %s "(cached) " >&6
3239 else case e in #(
3240 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3241 3"
3242 then :
3243 am_cv_xargs_n_works=yes
3244 else case e in #(
3245 e) am_cv_xargs_n_works=no ;;
3246 esac
3247 fi ;;
3248 esac
3249 fi
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3251 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3252 if test "$am_cv_xargs_n_works" = yes
3253 then :
3254 am__xargs_n='xargs -n'
3255 else case e in #(
3256 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3257 ;;
3258 esac
3259 fi
3260
3261 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3262 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3263 # is not polluted with repeated "-I."
3264 am__isrc=' -I$(srcdir)'
3265 # test to see if srcdir already configured
3266 if test -f $srcdir/config.status; then
3267 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3268 fi
3269 fi
3270
3271 # test whether we have cygpath
3272 if test -z "$CYGPATH_W"; then
3273 if (cygpath --version) >/dev/null 2>/dev/null; then
3274 CYGPATH_W='cygpath -w'
3275 else
3276 CYGPATH_W=echo
3277 fi
3278 fi
3279
3280
3281 # Define the identity of the package.
3282 PACKAGE='libseccomp'
3283 VERSION='2.6.0'
3284
3285
3286 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3287
3288
3289 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3290
3291 # Some tools Automake needs.
3292
3293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294
3295
3296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3297
3298
3299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300
3301
3302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3303
3304
3305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3306
3307 # For better backward compatibility. To be removed once Automake 1.9.x
3308 # dies out for good. For more background, see:
3309 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3310 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3311 mkdir_p='$(MKDIR_P)'
3312
3313 # We need awk for the "check" target (and possibly the TAP driver). The
3314 # system "awk" is bad on some platforms.
3315 # Always define AMTAR for backward compatibility. Yes, it's still used
3316 # in the wild :-( We should find a proper way to deprecate it ...
3317 AMTAR='$${TAR-tar}'
3318
3319
3320 # We'll loop over all known methods to create a tar archive until one works.
3321 _am_tools='gnutar pax cpio none'
3322
3323
3324
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3326 printf %s "checking how to create a pax tar archive... " >&6; }
3327
3328 # Go ahead even if we have the value already cached. We do so because we
3329 # need to set the values for the 'am__tar' and 'am__untar' variables.
3330 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3331
3332 for _am_tool in $_am_tools; do
3333 case $_am_tool in
3334 gnutar)
3335 for _am_tar in tar gnutar gtar; do
3336 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3337 ($_am_tar --version) >&5 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && break
3341 done
3342 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3343 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3344 am__untar="$_am_tar -xf -"
3345 ;;
3346 plaintar)
3347 # Must skip GNU tar: if it does not support --format= it doesn't create
3348 # ustar tarball either.
3349 (tar --version) >/dev/null 2>&1 && continue
3350 am__tar='tar chf - "$$tardir"'
3351 am__tar_='tar chf - "$tardir"'
3352 am__untar='tar xf -'
3353 ;;
3354 pax)
3355 am__tar='pax -L -x pax -w "$$tardir"'
3356 am__tar_='pax -L -x pax -w "$tardir"'
3357 am__untar='pax -r'
3358 ;;
3359 cpio)
3360 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3361 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3362 am__untar='cpio -i -H pax -d'
3363 ;;
3364 none)
3365 am__tar=false
3366 am__tar_=false
3367 am__untar=false
3368 ;;
3369 esac
3370
3371 # If the value was cached, stop now. We just wanted to have am__tar
3372 # and am__untar set.
3373 test -n "${am_cv_prog_tar_pax}" && break
3374
3375 # tar/untar a dummy directory, and stop if the command works.
3376 rm -rf conftest.dir
3377 mkdir conftest.dir
3378 echo GrepMe > conftest.dir/file
3379 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3380 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3381 ac_status=$?
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); }
3384 rm -rf conftest.dir
3385 if test -s conftest.tar; then
3386 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3387 ($am__untar <conftest.tar) >&5 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3391 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3392 (cat conftest.dir/file) >&5 2>&5
3393 ac_status=$?
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }
3396 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3397 fi
3398 done
3399 rm -rf conftest.dir
3400
3401 if test ${am_cv_prog_tar_pax+y}
3402 then :
3403 printf %s "(cached) " >&6
3404 else case e in #(
3405 e) am_cv_prog_tar_pax=$_am_tool ;;
3406 esac
3407 fi
3408
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3410 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3411
3412
3413
3414
3415
3416 # Variables for tags utilities; see am/tags.am
3417 if test -z "$CTAGS"; then
3418 CTAGS=ctags
3419 fi
3420
3421 if test -z "$ETAGS"; then
3422 ETAGS=etags
3423 fi
3424
3425 if test -z "$CSCOPE"; then
3426 CSCOPE=cscope
3427 fi
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 printf %s "checking for $ac_word... " >&6; }
3455 if test ${ac_cv_prog_CC+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else case e in #(
3459 e) if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 case $as_dir in #(((
3467 '') as_dir=./ ;;
3468 */) ;;
3469 *) as_dir=$as_dir/ ;;
3470 esac
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi ;;
3482 esac
3483 fi
3484 CC=$ac_cv_prog_CC
3485 if test -n "$CC"; then
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 printf "%s\n" "$CC" >&6; }
3488 else
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 printf "%s\n" "no" >&6; }
3491 fi
3492
3493
3494 fi
3495 if test -z "$ac_cv_prog_CC"; then
3496 ac_ct_CC=$CC
3497 # Extract the first word of "gcc", so it can be a program name with args.
3498 set dummy gcc; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_ac_ct_CC+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else case e in #(
3505 e) if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_ac_ct_CC="gcc"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi ;;
3528 esac
3529 fi
3530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3531 if test -n "$ac_ct_CC"; then
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3533 printf "%s\n" "$ac_ct_CC" >&6; }
3534 else
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 printf "%s\n" "no" >&6; }
3537 fi
3538
3539 if test "x$ac_ct_CC" = x; then
3540 CC=""
3541 else
3542 case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548 CC=$ac_ct_CC
3549 fi
3550 else
3551 CC="$ac_cv_prog_CC"
3552 fi
3553
3554 if test -z "$CC"; then
3555 if test -n "$ac_tool_prefix"; then
3556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}cc; ac_word=$2
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 printf %s "checking for $ac_word... " >&6; }
3560 if test ${ac_cv_prog_CC+y}
3561 then :
3562 printf %s "(cached) " >&6
3563 else case e in #(
3564 e) if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570 IFS=$as_save_IFS
3571 case $as_dir in #(((
3572 '') as_dir=./ ;;
3573 */) ;;
3574 *) as_dir=$as_dir/ ;;
3575 esac
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="${ac_tool_prefix}cc"
3579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3580 break 2
3581 fi
3582 done
3583 done
3584 IFS=$as_save_IFS
3585
3586 fi ;;
3587 esac
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 printf "%s\n" "$CC" >&6; }
3593 else
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 printf "%s\n" "no" >&6; }
3596 fi
3597
3598
3599 fi
3600 fi
3601 if test -z "$CC"; then
3602 # Extract the first word of "cc", so it can be a program name with args.
3603 set dummy cc; ac_word=$2
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 printf %s "checking for $ac_word... " >&6; }
3606 if test ${ac_cv_prog_CC+y}
3607 then :
3608 printf %s "(cached) " >&6
3609 else case e in #(
3610 e) if test -n "$CC"; then
3611 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 else
3613 ac_prog_rejected=no
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 case $as_dir in #(((
3619 '') as_dir=./ ;;
3620 */) ;;
3621 *) as_dir=$as_dir/ ;;
3622 esac
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3626 ac_prog_rejected=yes
3627 continue
3628 fi
3629 ac_cv_prog_CC="cc"
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 if test $ac_prog_rejected = yes; then
3638 # We found a bogon in the path, so make sure we never use it.
3639 set dummy $ac_cv_prog_CC
3640 shift
3641 if test $# != 0; then
3642 # We chose a different compiler from the bogus one.
3643 # However, it has the same basename, so the bogon will be chosen
3644 # first if we set CC to just the basename; use the full file name.
3645 shift
3646 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3647 fi
3648 fi
3649 fi ;;
3650 esac
3651 fi
3652 CC=$ac_cv_prog_CC
3653 if test -n "$CC"; then
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 printf "%s\n" "$CC" >&6; }
3656 else
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 printf "%s\n" "no" >&6; }
3659 fi
3660
3661
3662 fi
3663 if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 for ac_prog in cl.exe
3666 do
3667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 printf %s "checking for $ac_word... " >&6; }
3671 if test ${ac_cv_prog_CC+y}
3672 then :
3673 printf %s "(cached) " >&6
3674 else case e in #(
3675 e) if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 case $as_dir in #(((
3683 '') as_dir=./ ;;
3684 */) ;;
3685 *) as_dir=$as_dir/ ;;
3686 esac
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3689 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693 done
3694 done
3695 IFS=$as_save_IFS
3696
3697 fi ;;
3698 esac
3699 fi
3700 CC=$ac_cv_prog_CC
3701 if test -n "$CC"; then
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703 printf "%s\n" "$CC" >&6; }
3704 else
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706 printf "%s\n" "no" >&6; }
3707 fi
3708
3709
3710 test -n "$CC" && break
3711 done
3712 fi
3713 if test -z "$CC"; then
3714 ac_ct_CC=$CC
3715 for ac_prog in cl.exe
3716 do
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718 set dummy $ac_prog; ac_word=$2
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 printf %s "checking for $ac_word... " >&6; }
3721 if test ${ac_cv_prog_ac_ct_CC+y}
3722 then :
3723 printf %s "(cached) " >&6
3724 else case e in #(
3725 e) if test -n "$ac_ct_CC"; then
3726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731 IFS=$as_save_IFS
3732 case $as_dir in #(((
3733 '') as_dir=./ ;;
3734 */) ;;
3735 *) as_dir=$as_dir/ ;;
3736 esac
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_ac_ct_CC="$ac_prog"
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi ;;
3748 esac
3749 fi
3750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3751 if test -n "$ac_ct_CC"; then
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3753 printf "%s\n" "$ac_ct_CC" >&6; }
3754 else
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 printf "%s\n" "no" >&6; }
3757 fi
3758
3759
3760 test -n "$ac_ct_CC" && break
3761 done
3762
3763 if test "x$ac_ct_CC" = x; then
3764 CC=""
3765 else
3766 case $cross_compiling:$ac_tool_warned in
3767 yes:)
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770 ac_tool_warned=yes ;;
3771 esac
3772 CC=$ac_ct_CC
3773 fi
3774 fi
3775
3776 fi
3777 if test -z "$CC"; then
3778 if test -n "$ac_tool_prefix"; then
3779 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3780 set dummy ${ac_tool_prefix}clang; ac_word=$2
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782 printf %s "checking for $ac_word... " >&6; }
3783 if test ${ac_cv_prog_CC+y}
3784 then :
3785 printf %s "(cached) " >&6
3786 else case e in #(
3787 e) if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 case $as_dir in #(((
3795 '') as_dir=./ ;;
3796 */) ;;
3797 *) as_dir=$as_dir/ ;;
3798 esac
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_CC="${ac_tool_prefix}clang"
3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3803 break 2
3804 fi
3805 done
3806 done
3807 IFS=$as_save_IFS
3808
3809 fi ;;
3810 esac
3811 fi
3812 CC=$ac_cv_prog_CC
3813 if test -n "$CC"; then
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815 printf "%s\n" "$CC" >&6; }
3816 else
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 printf "%s\n" "no" >&6; }
3819 fi
3820
3821
3822 fi
3823 if test -z "$ac_cv_prog_CC"; then
3824 ac_ct_CC=$CC
3825 # Extract the first word of "clang", so it can be a program name with args.
3826 set dummy clang; ac_word=$2
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 printf %s "checking for $ac_word... " >&6; }
3829 if test ${ac_cv_prog_ac_ct_CC+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else case e in #(
3833 e) if test -n "$ac_ct_CC"; then
3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839 IFS=$as_save_IFS
3840 case $as_dir in #(((
3841 '') as_dir=./ ;;
3842 */) ;;
3843 *) as_dir=$as_dir/ ;;
3844 esac
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_ac_ct_CC="clang"
3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851 done
3852 done
3853 IFS=$as_save_IFS
3854
3855 fi ;;
3856 esac
3857 fi
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 printf "%s\n" "$ac_ct_CC" >&6; }
3862 else
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 fi
3866
3867 if test "x$ac_ct_CC" = x; then
3868 CC=""
3869 else
3870 case $cross_compiling:$ac_tool_warned in
3871 yes:)
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3873 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3874 ac_tool_warned=yes ;;
3875 esac
3876 CC=$ac_ct_CC
3877 fi
3878 else
3879 CC="$ac_cv_prog_CC"
3880 fi
3881
3882 fi
3883
3884
3885 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3886 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3887 as_fn_error $? "no acceptable C compiler found in \$PATH
3888 See 'config.log' for more details" "$LINENO" 5; }
3889
3890 # Provide some information about the compiler.
3891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3892 set X $ac_compile
3893 ac_compiler=$2
3894 for ac_option in --version -v -V -qversion -version; do
3895 { { ac_try="$ac_compiler $ac_option >&5"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 printf "%s\n" "$ac_try_echo"; } >&5
3902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3903 ac_status=$?
3904 if test -s conftest.err; then
3905 sed '10a\
3906 ... rest of stderr output deleted ...
3907 10q' conftest.err >conftest.er1
3908 cat conftest.er1 >&5
3909 fi
3910 rm -f conftest.er1 conftest.err
3911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }
3913 done
3914
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3917
3918 int
3919 main (void)
3920 {
3921
3922 ;
3923 return 0;
3924 }
3925 _ACEOF
3926 ac_clean_files_save=$ac_clean_files
3927 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3928 # Try to create an executable without -o first, disregard a.out.
3929 # It will help us diagnose broken compilers, and finding out an intuition
3930 # of exeext.
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3932 printf %s "checking whether the C compiler works... " >&6; }
3933 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3934
3935 # The possible output files:
3936 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3937
3938 ac_rmfiles=
3939 for ac_file in $ac_files
3940 do
3941 case $ac_file in
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3943 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3944 esac
3945 done
3946 rm -f $ac_rmfiles
3947
3948 if { { ac_try="$ac_link_default"
3949 case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 printf "%s\n" "$ac_try_echo"; } >&5
3955 (eval "$ac_link_default") 2>&5
3956 ac_status=$?
3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }
3959 then :
3960 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3961 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3962 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3963 # so that the user can short-circuit this test for compilers unknown to
3964 # Autoconf.
3965 for ac_file in $ac_files ''
3966 do
3967 test -f "$ac_file" || continue
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3970 ;;
3971 [ab].out )
3972 # We found the default executable, but exeext='' is most
3973 # certainly right.
3974 break;;
3975 *.* )
3976 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3977 then :; else
3978 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979 fi
3980 # We set ac_cv_exeext here because the later test for it is not
3981 # safe: cross compilers may not add the suffix if given an '-o'
3982 # argument, so we may need to know it at that point already.
3983 # Even if this section looks crufty: it has the advantage of
3984 # actually working.
3985 break;;
3986 * )
3987 break;;
3988 esac
3989 done
3990 test "$ac_cv_exeext" = no && ac_cv_exeext=
3991
3992 else case e in #(
3993 e) ac_file='' ;;
3994 esac
3995 fi
3996 if test -z "$ac_file"
3997 then :
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 printf "%s\n" "no" >&6; }
4000 printf "%s\n" "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4004 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4005 as_fn_error 77 "C compiler cannot create executables
4006 See 'config.log' for more details" "$LINENO" 5; }
4007 else case e in #(
4008 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 printf "%s\n" "yes" >&6; } ;;
4010 esac
4011 fi
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4013 printf %s "checking for C compiler default output file name... " >&6; }
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4015 printf "%s\n" "$ac_file" >&6; }
4016 ac_exeext=$ac_cv_exeext
4017
4018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4019 ac_clean_files=$ac_clean_files_save
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4021 printf %s "checking for suffix of executables... " >&6; }
4022 if { { ac_try="$ac_link"
4023 case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026 esac
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 printf "%s\n" "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4030 ac_status=$?
4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 then :
4034 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4035 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4036 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4037 # 'rm'.
4038 for ac_file in conftest.exe conftest conftest.*; do
4039 test -f "$ac_file" || continue
4040 case $ac_file in
4041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4043 break;;
4044 * ) break;;
4045 esac
4046 done
4047 else case e in #(
4048 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4049 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4050 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4051 See 'config.log' for more details" "$LINENO" 5; } ;;
4052 esac
4053 fi
4054 rm -f conftest conftest$ac_cv_exeext
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4056 printf "%s\n" "$ac_cv_exeext" >&6; }
4057
4058 rm -f conftest.$ac_ext
4059 EXEEXT=$ac_cv_exeext
4060 ac_exeext=$EXEEXT
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <stdio.h>
4064 int
4065 main (void)
4066 {
4067 FILE *f = fopen ("conftest.out", "w");
4068 if (!f)
4069 return 1;
4070 return ferror (f) || fclose (f) != 0;
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 ac_clean_files="$ac_clean_files conftest.out"
4077 # Check that the compiler produces executables we can run. If not, either
4078 # the compiler is broken, or we cross compile.
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4080 printf %s "checking whether we are cross compiling... " >&6; }
4081 if test "$cross_compiling" != yes; then
4082 { { ac_try="$ac_link"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 printf "%s\n" "$ac_try_echo"; } >&5
4089 (eval "$ac_link") 2>&5
4090 ac_status=$?
4091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }
4093 if { ac_try='./conftest$ac_cv_exeext'
4094 { { case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 printf "%s\n" "$ac_try_echo"; } >&5
4100 (eval "$ac_try") 2>&5
4101 ac_status=$?
4102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; }; then
4104 cross_compiling=no
4105 else
4106 if test "$cross_compiling" = maybe; then
4107 cross_compiling=yes
4108 else
4109 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4110 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4111 as_fn_error 77 "cannot run C compiled programs.
4112 If you meant to cross compile, use '--host'.
4113 See 'config.log' for more details" "$LINENO" 5; }
4114 fi
4115 fi
4116 fi
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4118 printf "%s\n" "$cross_compiling" >&6; }
4119
4120 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4121 conftest.o conftest.obj conftest.out
4122 ac_clean_files=$ac_clean_files_save
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4124 printf %s "checking for suffix of object files... " >&6; }
4125 if test ${ac_cv_objext+y}
4126 then :
4127 printf %s "(cached) " >&6
4128 else case e in #(
4129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4131
4132 int
4133 main (void)
4134 {
4135
4136 ;
4137 return 0;
4138 }
4139 _ACEOF
4140 rm -f conftest.o conftest.obj
4141 if { { ac_try="$ac_compile"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 printf "%s\n" "$ac_try_echo"; } >&5
4148 (eval "$ac_compile") 2>&5
4149 ac_status=$?
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }
4152 then :
4153 for ac_file in conftest.o conftest.obj conftest.*; do
4154 test -f "$ac_file" || continue;
4155 case $ac_file in
4156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4157 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4158 break;;
4159 esac
4160 done
4161 else case e in #(
4162 e) printf "%s\n" "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4164
4165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4166 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4167 as_fn_error $? "cannot compute suffix of object files: cannot compile
4168 See 'config.log' for more details" "$LINENO" 5; } ;;
4169 esac
4170 fi
4171 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4172 esac
4173 fi
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4175 printf "%s\n" "$ac_cv_objext" >&6; }
4176 OBJEXT=$ac_cv_objext
4177 ac_objext=$OBJEXT
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4179 printf %s "checking whether the compiler supports GNU C... " >&6; }
4180 if test ${ac_cv_c_compiler_gnu+y}
4181 then :
4182 printf %s "(cached) " >&6
4183 else case e in #(
4184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4186
4187 int
4188 main (void)
4189 {
4190 #ifndef __GNUC__
4191 choke me
4192 #endif
4193
4194 ;
4195 return 0;
4196 }
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"
4199 then :
4200 ac_compiler_gnu=yes
4201 else case e in #(
4202 e) ac_compiler_gnu=no ;;
4203 esac
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4207 ;;
4208 esac
4209 fi
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4211 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213
4214 if test $ac_compiler_gnu = yes; then
4215 GCC=yes
4216 else
4217 GCC=
4218 fi
4219 ac_test_CFLAGS=${CFLAGS+y}
4220 ac_save_CFLAGS=$CFLAGS
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4222 printf %s "checking whether $CC accepts -g... " >&6; }
4223 if test ${ac_cv_prog_cc_g+y}
4224 then :
4225 printf %s "(cached) " >&6
4226 else case e in #(
4227 e) ac_save_c_werror_flag=$ac_c_werror_flag
4228 ac_c_werror_flag=yes
4229 ac_cv_prog_cc_g=no
4230 CFLAGS="-g"
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233
4234 int
4235 main (void)
4236 {
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 if ac_fn_c_try_compile "$LINENO"
4243 then :
4244 ac_cv_prog_cc_g=yes
4245 else case e in #(
4246 e) CFLAGS=""
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 int
4251 main (void)
4252 {
4253
4254 ;
4255 return 0;
4256 }
4257 _ACEOF
4258 if ac_fn_c_try_compile "$LINENO"
4259 then :
4260
4261 else case e in #(
4262 e) ac_c_werror_flag=$ac_save_c_werror_flag
4263 CFLAGS="-g"
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main (void)
4269 {
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"
4276 then :
4277 ac_cv_prog_cc_g=yes
4278 fi
4279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4280 esac
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4283 esac
4284 fi
4285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4286 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4287 esac
4288 fi
4289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4290 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4291 if test $ac_test_CFLAGS; then
4292 CFLAGS=$ac_save_CFLAGS
4293 elif test $ac_cv_prog_cc_g = yes; then
4294 if test "$GCC" = yes; then
4295 CFLAGS="-g -O2"
4296 else
4297 CFLAGS="-g"
4298 fi
4299 else
4300 if test "$GCC" = yes; then
4301 CFLAGS="-O2"
4302 else
4303 CFLAGS=
4304 fi
4305 fi
4306 ac_prog_cc_stdc=no
4307 if test x$ac_prog_cc_stdc = xno
4308 then :
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4310 printf %s "checking for $CC option to enable C11 features... " >&6; }
4311 if test ${ac_cv_prog_cc_c11+y}
4312 then :
4313 printf %s "(cached) " >&6
4314 else case e in #(
4315 e) ac_cv_prog_cc_c11=no
4316 ac_save_CC=$CC
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319 $ac_c_conftest_c11_program
4320 _ACEOF
4321 for ac_arg in '' -std=gnu11
4322 do
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"
4325 then :
4326 ac_cv_prog_cc_c11=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext conftest.beam
4329 test "x$ac_cv_prog_cc_c11" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC ;;
4333 esac
4334 fi
4335
4336 if test "x$ac_cv_prog_cc_c11" = xno
4337 then :
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4339 printf "%s\n" "unsupported" >&6; }
4340 else case e in #(
4341 e) if test "x$ac_cv_prog_cc_c11" = x
4342 then :
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344 printf "%s\n" "none needed" >&6; }
4345 else case e in #(
4346 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4347 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4348 CC="$CC $ac_cv_prog_cc_c11" ;;
4349 esac
4350 fi
4351 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4352 ac_prog_cc_stdc=c11 ;;
4353 esac
4354 fi
4355 fi
4356 if test x$ac_prog_cc_stdc = xno
4357 then :
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4359 printf %s "checking for $CC option to enable C99 features... " >&6; }
4360 if test ${ac_cv_prog_cc_c99+y}
4361 then :
4362 printf %s "(cached) " >&6
4363 else case e in #(
4364 e) ac_cv_prog_cc_c99=no
4365 ac_save_CC=$CC
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368 $ac_c_conftest_c99_program
4369 _ACEOF
4370 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4371 do
4372 CC="$ac_save_CC $ac_arg"
4373 if ac_fn_c_try_compile "$LINENO"
4374 then :
4375 ac_cv_prog_cc_c99=$ac_arg
4376 fi
4377 rm -f core conftest.err conftest.$ac_objext conftest.beam
4378 test "x$ac_cv_prog_cc_c99" != "xno" && break
4379 done
4380 rm -f conftest.$ac_ext
4381 CC=$ac_save_CC ;;
4382 esac
4383 fi
4384
4385 if test "x$ac_cv_prog_cc_c99" = xno
4386 then :
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388 printf "%s\n" "unsupported" >&6; }
4389 else case e in #(
4390 e) if test "x$ac_cv_prog_cc_c99" = x
4391 then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393 printf "%s\n" "none needed" >&6; }
4394 else case e in #(
4395 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4396 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4397 CC="$CC $ac_cv_prog_cc_c99" ;;
4398 esac
4399 fi
4400 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4401 ac_prog_cc_stdc=c99 ;;
4402 esac
4403 fi
4404 fi
4405 if test x$ac_prog_cc_stdc = xno
4406 then :
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4408 printf %s "checking for $CC option to enable C89 features... " >&6; }
4409 if test ${ac_cv_prog_cc_c89+y}
4410 then :
4411 printf %s "(cached) " >&6
4412 else case e in #(
4413 e) ac_cv_prog_cc_c89=no
4414 ac_save_CC=$CC
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 $ac_c_conftest_c89_program
4418 _ACEOF
4419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4420 do
4421 CC="$ac_save_CC $ac_arg"
4422 if ac_fn_c_try_compile "$LINENO"
4423 then :
4424 ac_cv_prog_cc_c89=$ac_arg
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam
4427 test "x$ac_cv_prog_cc_c89" != "xno" && break
4428 done
4429 rm -f conftest.$ac_ext
4430 CC=$ac_save_CC ;;
4431 esac
4432 fi
4433
4434 if test "x$ac_cv_prog_cc_c89" = xno
4435 then :
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4437 printf "%s\n" "unsupported" >&6; }
4438 else case e in #(
4439 e) if test "x$ac_cv_prog_cc_c89" = x
4440 then :
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 printf "%s\n" "none needed" >&6; }
4443 else case e in #(
4444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4445 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4446 CC="$CC $ac_cv_prog_cc_c89" ;;
4447 esac
4448 fi
4449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4450 ac_prog_cc_stdc=c89 ;;
4451 esac
4452 fi
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461
4462 ac_ext=c
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4468 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4469 if test ${am_cv_prog_cc_c_o+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else case e in #(
4473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main (void)
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 # Make sure it works both with $CC and with simple cc.
4485 # Following AC_PROG_CC_C_O, we do the test twice because some
4486 # compilers refuse to overwrite an existing .o file with -o,
4487 # though they will create one.
4488 am_cv_prog_cc_c_o=yes
4489 for am_i in 1 2; do
4490 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4491 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } \
4495 && test -f conftest2.$ac_objext; then
4496 : OK
4497 else
4498 am_cv_prog_cc_c_o=no
4499 break
4500 fi
4501 done
4502 rm -f core conftest*
4503 unset am_i ;;
4504 esac
4505 fi
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4507 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4508 if test "$am_cv_prog_cc_c_o" != yes; then
4509 # Losing compiler, so override with the script.
4510 # FIXME: It is wrong to rewrite CC.
4511 # But if we don't then we get into trouble of one sort or another.
4512 # A longer-term fix would be to have automake use am__CC in this case,
4513 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4514 CC="$am_aux_dir/compile $CC"
4515 fi
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521
4522 DEPDIR="${am__leading_dot}deps"
4523
4524 ac_config_commands="$ac_config_commands depfiles"
4525
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4527 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4528 cat > confinc.mk << 'END'
4529 am__doit:
4530 @echo this is the am__doit target >confinc.out
4531 .PHONY: am__doit
4532 END
4533 am__include="#"
4534 am__quote=
4535 # BSD make does it like this.
4536 echo '.include "confinc.mk" # ignored' > confmf.BSD
4537 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4538 echo 'include confinc.mk # ignored' > confmf.GNU
4539 _am_result=no
4540 for s in GNU BSD; do
4541 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4542 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }
4546 case $?:`cat confinc.out 2>/dev/null` in #(
4547 '0:this is the am__doit target') :
4548 case $s in #(
4549 BSD) :
4550 am__include='.include' am__quote='"' ;; #(
4551 *) :
4552 am__include='include' am__quote='' ;;
4553 esac ;; #(
4554 *) :
4555 ;;
4556 esac
4557 if test "$am__include" != "#"; then
4558 _am_result="yes ($s style)"
4559 break
4560 fi
4561 done
4562 rm -f confinc.* confmf.*
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4564 printf "%s\n" "${_am_result}" >&6; }
4565
4566 # Check whether --enable-dependency-tracking was given.
4567 if test ${enable_dependency_tracking+y}
4568 then :
4569 enableval=$enable_dependency_tracking;
4570 fi
4571
4572 if test "x$enable_dependency_tracking" != xno; then
4573 am_depcomp="$ac_aux_dir/depcomp"
4574 AMDEPBACKSLASH='\'
4575 am__nodep='_no'
4576 fi
4577 if test "x$enable_dependency_tracking" != xno; then
4578 AMDEP_TRUE=
4579 AMDEP_FALSE='#'
4580 else
4581 AMDEP_TRUE='#'
4582 AMDEP_FALSE=
4583 fi
4584
4585
4586
4587 depcc="$CC" am_compiler_list=
4588
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4590 printf %s "checking dependency style of $depcc... " >&6; }
4591 if test ${am_cv_CC_dependencies_compiler_type+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else case e in #(
4595 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4596 # We make a subdir and do the tests there. Otherwise we can end up
4597 # making bogus files that we don't know about and never remove. For
4598 # instance it was reported that on HP-UX the gcc test will end up
4599 # making a dummy file named 'D' -- because '-MD' means "put the output
4600 # in D".
4601 rm -rf conftest.dir
4602 mkdir conftest.dir
4603 # Copy depcomp to subdir because otherwise we won't find it if we're
4604 # using a relative directory.
4605 cp "$am_depcomp" conftest.dir
4606 cd conftest.dir
4607 # We will build objects and dependencies in a subdirectory because
4608 # it helps to detect inapplicable dependency modes. For instance
4609 # both Tru64's cc and ICC support -MD to output dependencies as a
4610 # side effect of compilation, but ICC will put the dependencies in
4611 # the current directory while Tru64 will put them in the object
4612 # directory.
4613 mkdir sub
4614
4615 am_cv_CC_dependencies_compiler_type=none
4616 if test "$am_compiler_list" = ""; then
4617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4618 fi
4619 am__universal=false
4620 case " $depcc " in #(
4621 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4622 esac
4623
4624 for depmode in $am_compiler_list; do
4625 # Setup a source with many dependencies, because some compilers
4626 # like to wrap large dependency lists on column 80 (with \), and
4627 # we should not choose a depcomp mode which is confused by this.
4628 #
4629 # We need to recreate these files for each test, as the compiler may
4630 # overwrite some of them when testing with obscure command lines.
4631 # This happens at least with the AIX C compiler.
4632 : > sub/conftest.c
4633 for i in 1 2 3 4 5 6; do
4634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4635 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4636 # Solaris 10 /bin/sh.
4637 echo '/* dummy */' > sub/conftst$i.h
4638 done
4639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4640
4641 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4642 # mode. It turns out that the SunPro C++ compiler does not properly
4643 # handle '-M -o', and we need to detect this. Also, some Intel
4644 # versions had trouble with output in subdirs.
4645 am__obj=sub/conftest.${OBJEXT-o}
4646 am__minus_obj="-o $am__obj"
4647 case $depmode in
4648 gcc)
4649 # This depmode causes a compiler race in universal mode.
4650 test "$am__universal" = false || continue
4651 ;;
4652 nosideeffect)
4653 # After this tag, mechanisms are not by side-effect, so they'll
4654 # only be used when explicitly requested.
4655 if test "x$enable_dependency_tracking" = xyes; then
4656 continue
4657 else
4658 break
4659 fi
4660 ;;
4661 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4662 # This compiler won't grok '-c -o', but also, the minuso test has
4663 # not run yet. These depmodes are late enough in the game, and
4664 # so weak that their functioning should not be impacted.
4665 am__obj=conftest.${OBJEXT-o}
4666 am__minus_obj=
4667 ;;
4668 none) break ;;
4669 esac
4670 if depmode=$depmode \
4671 source=sub/conftest.c object=$am__obj \
4672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4674 >/dev/null 2>conftest.err &&
4675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4679 # icc doesn't choke on unknown options, it will just issue warnings
4680 # or remarks (even with -Werror). So we grep stderr for any message
4681 # that says an option was ignored or not supported.
4682 # When given -MP, icc 7.0 and 7.1 complain thus:
4683 # icc: Command line warning: ignoring option '-M'; no argument required
4684 # The diagnosis changed in icc 8.0:
4685 # icc: Command line remark: option '-MP' not supported
4686 if (grep 'ignoring option' conftest.err ||
4687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4688 am_cv_CC_dependencies_compiler_type=$depmode
4689 break
4690 fi
4691 fi
4692 done
4693
4694 cd ..
4695 rm -rf conftest.dir
4696 else
4697 am_cv_CC_dependencies_compiler_type=none
4698 fi
4699 ;;
4700 esac
4701 fi
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4703 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4704 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4705
4706 if
4707 test "x$enable_dependency_tracking" != xno \
4708 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4709 am__fastdepCC_TRUE=
4710 am__fastdepCC_FALSE='#'
4711 else
4712 am__fastdepCC_TRUE='#'
4713 am__fastdepCC_FALSE=
4714 fi
4715
4716
4717
4718
4719
4720 if test -n "$ac_tool_prefix"; then
4721 for ac_prog in ar lib "link -lib"
4722 do
4723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 printf %s "checking for $ac_word... " >&6; }
4727 if test ${ac_cv_prog_AR+y}
4728 then :
4729 printf %s "(cached) " >&6
4730 else case e in #(
4731 e) if test -n "$AR"; then
4732 ac_cv_prog_AR="$AR" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 case $as_dir in #(((
4739 '') as_dir=./ ;;
4740 */) ;;
4741 *) as_dir=$as_dir/ ;;
4742 esac
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753 fi ;;
4754 esac
4755 fi
4756 AR=$ac_cv_prog_AR
4757 if test -n "$AR"; then
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4759 printf "%s\n" "$AR" >&6; }
4760 else
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 printf "%s\n" "no" >&6; }
4763 fi
4764
4765
4766 test -n "$AR" && break
4767 done
4768 fi
4769 if test -z "$AR"; then
4770 ac_ct_AR=$AR
4771 for ac_prog in ar lib "link -lib"
4772 do
4773 # Extract the first word of "$ac_prog", so it can be a program name with args.
4774 set dummy $ac_prog; ac_word=$2
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 printf %s "checking for $ac_word... " >&6; }
4777 if test ${ac_cv_prog_ac_ct_AR+y}
4778 then :
4779 printf %s "(cached) " >&6
4780 else case e in #(
4781 e) if test -n "$ac_ct_AR"; then
4782 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 case $as_dir in #(((
4789 '') as_dir=./ ;;
4790 */) ;;
4791 *) as_dir=$as_dir/ ;;
4792 esac
4793 for ac_exec_ext in '' $ac_executable_extensions; do
4794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4795 ac_cv_prog_ac_ct_AR="$ac_prog"
4796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4797 break 2
4798 fi
4799 done
4800 done
4801 IFS=$as_save_IFS
4802
4803 fi ;;
4804 esac
4805 fi
4806 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4807 if test -n "$ac_ct_AR"; then
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4809 printf "%s\n" "$ac_ct_AR" >&6; }
4810 else
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 printf "%s\n" "no" >&6; }
4813 fi
4814
4815
4816 test -n "$ac_ct_AR" && break
4817 done
4818
4819 if test "x$ac_ct_AR" = x; then
4820 AR="false"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 AR=$ac_ct_AR
4829 fi
4830 fi
4831
4832 : ${AR=ar}
4833 : ${ARFLAGS=cr}
4834
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4836 printf %s "checking the archiver ($AR) interface... " >&6; }
4837 if test ${am_cv_ar_interface+y}
4838 then :
4839 printf %s "(cached) " >&6
4840 else case e in #(
4841 e) ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847 am_cv_ar_interface=ar
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4850 int some_variable = 0;
4851 _ACEOF
4852 if ac_fn_c_try_compile "$LINENO"
4853 then :
4854 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
4855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4856 (eval $am_ar_try) 2>&5
4857 ac_status=$?
4858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4859 test $ac_status = 0; }
4860 if test "$ac_status" -eq 0; then
4861 am_cv_ar_interface=ar
4862 else
4863 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4865 (eval $am_ar_try) 2>&5
4866 ac_status=$?
4867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }
4869 if test "$ac_status" -eq 0; then
4870 am_cv_ar_interface=lib
4871 else
4872 am_cv_ar_interface=unknown
4873 fi
4874 fi
4875 rm -f conftest.lib libconftest.a
4876
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 ;;
4885 esac
4886 fi
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4888 printf "%s\n" "$am_cv_ar_interface" >&6; }
4889
4890 case $am_cv_ar_interface in
4891 ar)
4892 ;;
4893 lib)
4894 # Microsoft lib, so override with the ar-lib wrapper script.
4895 # FIXME: It is wrong to rewrite AR.
4896 # But if we don't then we get into trouble of one sort or another.
4897 # A longer-term fix would be to have automake use am__AR in this case,
4898 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4899 # similar.
4900 AR="$am_aux_dir/ar-lib $AR"
4901 ;;
4902 unknown)
4903 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4904 ;;
4905 esac
4906
4907
4908 case `pwd` in
4909 *\ * | *\ *)
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4911 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4912 esac
4913
4914
4915
4916 macro_version='2.5.4.1-baa1-dirty'
4917 macro_revision='2.5.4.1'
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 ltmain=$ac_aux_dir/ltmain.sh
4933
4934
4935
4936 # Make sure we can run config.sub.
4937 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4938 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4939
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4941 printf %s "checking build system type... " >&6; }
4942 if test ${ac_cv_build+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else case e in #(
4946 e) ac_build_alias=$build_alias
4947 test "x$ac_build_alias" = x &&
4948 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4949 test "x$ac_build_alias" = x &&
4950 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4951 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4952 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4953 ;;
4954 esac
4955 fi
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4957 printf "%s\n" "$ac_cv_build" >&6; }
4958 case $ac_cv_build in
4959 *-*-*) ;;
4960 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4961 esac
4962 build=$ac_cv_build
4963 ac_save_IFS=$IFS; IFS='-'
4964 set x $ac_cv_build
4965 shift
4966 build_cpu=$1
4967 build_vendor=$2
4968 shift; shift
4969 # Remember, the first character of IFS is used to create $*,
4970 # except with old shells:
4971 build_os=$*
4972 IFS=$ac_save_IFS
4973 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4974
4975
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4977 printf %s "checking host system type... " >&6; }
4978 if test ${ac_cv_host+y}
4979 then :
4980 printf %s "(cached) " >&6
4981 else case e in #(
4982 e) if test "x$host_alias" = x; then
4983 ac_cv_host=$ac_cv_build
4984 else
4985 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4986 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4987 fi
4988 ;;
4989 esac
4990 fi
4991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4992 printf "%s\n" "$ac_cv_host" >&6; }
4993 case $ac_cv_host in
4994 *-*-*) ;;
4995 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4996 esac
4997 host=$ac_cv_host
4998 ac_save_IFS=$IFS; IFS='-'
4999 set x $ac_cv_host
5000 shift
5001 host_cpu=$1
5002 host_vendor=$2
5003 shift; shift
5004 # Remember, the first character of IFS is used to create $*,
5005 # except with old shells:
5006 host_os=$*
5007 IFS=$ac_save_IFS
5008 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5009
5010
5011 # Backslashify metacharacters that are still active within
5012 # double-quoted strings.
5013 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5014
5015 # Same as above, but do not quote variable references.
5016 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5017
5018 # Sed substitution to delay expansion of an escaped shell variable in a
5019 # double_quote_subst'ed string.
5020 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5021
5022 # Sed substitution to delay expansion of an escaped single quote.
5023 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5024
5025 # Sed substitution to avoid accidental globbing in evaled expressions
5026 no_glob_subst='s/\*/\\\*/g'
5027
5028 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5029 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5030 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5031
5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5033 printf %s "checking how to print strings... " >&6; }
5034 # Test print first, because it will be a builtin if present.
5035 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5036 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5037 ECHO='print -r --'
5038 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5039 ECHO='printf %s\n'
5040 else
5041 # Use this function as a fallback that always works.
5042 func_fallback_echo ()
5043 {
5044 eval 'cat <<_LTECHO_EOF
5045 $1
5046 _LTECHO_EOF'
5047 }
5048 ECHO='func_fallback_echo'
5049 fi
5050
5051 # func_echo_all arg...
5052 # Invoke $ECHO with all args, space-separated.
5053 func_echo_all ()
5054 {
5055 $ECHO ""
5056 }
5057
5058 case $ECHO in
5059 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5060 printf "%s\n" "printf" >&6; } ;;
5061 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5062 printf "%s\n" "print -r" >&6; } ;;
5063 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5064 printf "%s\n" "cat" >&6; } ;;
5065 esac
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5081 printf %s "checking for a sed that does not truncate output... " >&6; }
5082 if test ${ac_cv_path_SED+y}
5083 then :
5084 printf %s "(cached) " >&6
5085 else case e in #(
5086 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5087 for ac_i in 1 2 3 4 5 6 7; do
5088 ac_script="$ac_script$as_nl$ac_script"
5089 done
5090 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5091 { ac_script=; unset ac_script;}
5092 if test -z "$SED"; then
5093 ac_path_SED_found=false
5094 # Loop through the user's path and test for each of PROGNAME-LIST
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 case $as_dir in #(((
5100 '') as_dir=./ ;;
5101 */) ;;
5102 *) as_dir=$as_dir/ ;;
5103 esac
5104 for ac_prog in sed gsed
5105 do
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5108 as_fn_executable_p "$ac_path_SED" || continue
5109 # Check for GNU ac_path_SED and select it if it is found.
5110 # Check for GNU $ac_path_SED
5111 case `"$ac_path_SED" --version 2>&1` in #(
5112 *GNU*)
5113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5114 #(
5115 *)
5116 ac_count=0
5117 printf %s 0123456789 >"conftest.in"
5118 while :
5119 do
5120 cat "conftest.in" "conftest.in" >"conftest.tmp"
5121 mv "conftest.tmp" "conftest.in"
5122 cp "conftest.in" "conftest.nl"
5123 printf "%s\n" '' >> "conftest.nl"
5124 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126 as_fn_arith $ac_count + 1 && ac_count=$as_val
5127 if test $ac_count -gt ${ac_path_SED_max-0}; then
5128 # Best one so far, save it but keep looking for a better one
5129 ac_cv_path_SED="$ac_path_SED"
5130 ac_path_SED_max=$ac_count
5131 fi
5132 # 10*(2^10) chars as input seems more than enough
5133 test $ac_count -gt 10 && break
5134 done
5135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 esac
5137
5138 $ac_path_SED_found && break 3
5139 done
5140 done
5141 done
5142 IFS=$as_save_IFS
5143 if test -z "$ac_cv_path_SED"; then
5144 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5145 fi
5146 else
5147 ac_cv_path_SED=$SED
5148 fi
5149 ;;
5150 esac
5151 fi
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153 printf "%s\n" "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5155 rm -f conftest.sed
5156
5157 test -z "$SED" && SED=sed
5158 Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5171 printf %s "checking for grep that handles long lines and -e... " >&6; }
5172 if test ${ac_cv_path_GREP+y}
5173 then :
5174 printf %s "(cached) " >&6
5175 else case e in #(
5176 e) if test -z "$GREP"; then
5177 ac_path_GREP_found=false
5178 # Loop through the user's path and test for each of PROGNAME-LIST
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5181 do
5182 IFS=$as_save_IFS
5183 case $as_dir in #(((
5184 '') as_dir=./ ;;
5185 */) ;;
5186 *) as_dir=$as_dir/ ;;
5187 esac
5188 for ac_prog in grep ggrep
5189 do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5192 as_fn_executable_p "$ac_path_GREP" || continue
5193 # Check for GNU ac_path_GREP and select it if it is found.
5194 # Check for GNU $ac_path_GREP
5195 case `"$ac_path_GREP" --version 2>&1` in #(
5196 *GNU*)
5197 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5198 #(
5199 *)
5200 ac_count=0
5201 printf %s 0123456789 >"conftest.in"
5202 while :
5203 do
5204 cat "conftest.in" "conftest.in" >"conftest.tmp"
5205 mv "conftest.tmp" "conftest.in"
5206 cp "conftest.in" "conftest.nl"
5207 printf "%s\n" 'GREP' >> "conftest.nl"
5208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5210 as_fn_arith $ac_count + 1 && ac_count=$as_val
5211 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5212 # Best one so far, save it but keep looking for a better one
5213 ac_cv_path_GREP="$ac_path_GREP"
5214 ac_path_GREP_max=$ac_count
5215 fi
5216 # 10*(2^10) chars as input seems more than enough
5217 test $ac_count -gt 10 && break
5218 done
5219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5220 esac
5221
5222 $ac_path_GREP_found && break 3
5223 done
5224 done
5225 done
5226 IFS=$as_save_IFS
5227 if test -z "$ac_cv_path_GREP"; then
5228 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5229 fi
5230 else
5231 ac_cv_path_GREP=$GREP
5232 fi
5233 ;;
5234 esac
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5238 GREP="$ac_cv_path_GREP"
5239
5240
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 printf %s "checking for egrep... " >&6; }
5243 if test ${ac_cv_path_EGREP+y}
5244 then :
5245 printf %s "(cached) " >&6
5246 else case e in #(
5247 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5248 then ac_cv_path_EGREP="$GREP -E"
5249 else
5250 if test -z "$EGREP"; then
5251 ac_path_EGREP_found=false
5252 # Loop through the user's path and test for each of PROGNAME-LIST
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 do
5256 IFS=$as_save_IFS
5257 case $as_dir in #(((
5258 '') as_dir=./ ;;
5259 */) ;;
5260 *) as_dir=$as_dir/ ;;
5261 esac
5262 for ac_prog in egrep
5263 do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5266 as_fn_executable_p "$ac_path_EGREP" || continue
5267 # Check for GNU ac_path_EGREP and select it if it is found.
5268 # Check for GNU $ac_path_EGREP
5269 case `"$ac_path_EGREP" --version 2>&1` in #(
5270 *GNU*)
5271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5272 #(
5273 *)
5274 ac_count=0
5275 printf %s 0123456789 >"conftest.in"
5276 while :
5277 do
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 printf "%s\n" 'EGREP' >> "conftest.nl"
5282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_EGREP="$ac_path_EGREP"
5288 ac_path_EGREP_max=$ac_count
5289 fi
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296 $ac_path_EGREP_found && break 3
5297 done
5298 done
5299 done
5300 IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_EGREP"; then
5302 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303 fi
5304 else
5305 ac_cv_path_EGREP=$EGREP
5306 fi
5307
5308 fi ;;
5309 esac
5310 fi
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5312 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5313 EGREP="$ac_cv_path_EGREP"
5314
5315 EGREP_TRADITIONAL=$EGREP
5316 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5317
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5319 printf %s "checking for fgrep... " >&6; }
5320 if test ${ac_cv_path_FGREP+y}
5321 then :
5322 printf %s "(cached) " >&6
5323 else case e in #(
5324 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5325 then ac_cv_path_FGREP="$GREP -F"
5326 else
5327 if test -z "$FGREP"; then
5328 ac_path_FGREP_found=false
5329 # Loop through the user's path and test for each of PROGNAME-LIST
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5332 do
5333 IFS=$as_save_IFS
5334 case $as_dir in #(((
5335 '') as_dir=./ ;;
5336 */) ;;
5337 *) as_dir=$as_dir/ ;;
5338 esac
5339 for ac_prog in fgrep
5340 do
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5343 as_fn_executable_p "$ac_path_FGREP" || continue
5344 # Check for GNU ac_path_FGREP and select it if it is found.
5345 # Check for GNU $ac_path_FGREP
5346 case `"$ac_path_FGREP" --version 2>&1` in #(
5347 *GNU*)
5348 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5349 #(
5350 *)
5351 ac_count=0
5352 printf %s 0123456789 >"conftest.in"
5353 while :
5354 do
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 printf "%s\n" 'FGREP' >> "conftest.nl"
5359 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_FGREP="$ac_path_FGREP"
5365 ac_path_FGREP_max=$ac_count
5366 fi
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5372
5373 $ac_path_FGREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_FGREP"; then
5379 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5380 fi
5381 else
5382 ac_cv_path_FGREP=$FGREP
5383 fi
5384
5385 fi ;;
5386 esac
5387 fi
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5389 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5390 FGREP="$ac_cv_path_FGREP"
5391
5392
5393 test -z "$GREP" && GREP=grep
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 # Check whether --with-gnu-ld was given.
5414 if test ${with_gnu_ld+y}
5415 then :
5416 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5417 else case e in #(
5418 e) with_gnu_ld=no ;;
5419 esac
5420 fi
5421
5422 ac_prog=ld
5423 if test yes = "$GCC"; then
5424 # Check if gcc -print-prog-name=ld gives a path.
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5426 printf %s "checking for ld used by $CC... " >&6; }
5427 case $host in
5428 *-*-mingw* | *-*-windows*)
5429 # gcc leaves a trailing carriage return, which upsets mingw
5430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5431 *)
5432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5433 esac
5434 case $ac_prog in
5435 # Accept absolute paths.
5436 [\\/]* | ?:[\\/]*)
5437 re_direlt='/[^/][^/]*/\.\./'
5438 # Canonicalize the pathname of ld
5439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5442 done
5443 test -z "$LD" && LD=$ac_prog
5444 ;;
5445 "")
5446 # If it fails, then pretend we aren't using GCC.
5447 ac_prog=ld
5448 ;;
5449 *)
5450 # If it is relative, then search for the first ld in PATH.
5451 with_gnu_ld=unknown
5452 ;;
5453 esac
5454 elif test yes = "$with_gnu_ld"; then
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5456 printf %s "checking for GNU ld... " >&6; }
5457 else
5458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5459 printf %s "checking for non-GNU ld... " >&6; }
5460 fi
5461 if test ${lt_cv_path_LD+y}
5462 then :
5463 printf %s "(cached) " >&6
5464 else case e in #(
5465 e) if test -z "$LD"; then
5466 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5467 for ac_dir in $PATH; do
5468 IFS=$lt_save_ifs
5469 test -z "$ac_dir" && ac_dir=.
5470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5471 lt_cv_path_LD=$ac_dir/$ac_prog
5472 # Check to see if the program is GNU ld. I'd rather use --version,
5473 # but apparently some variants of GNU ld only accept -v.
5474 # Break only if it was the GNU/non-GNU ld that we prefer.
5475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5476 *GNU* | *'with BFD'*)
5477 test no != "$with_gnu_ld" && break
5478 ;;
5479 *)
5480 test yes != "$with_gnu_ld" && break
5481 ;;
5482 esac
5483 fi
5484 done
5485 IFS=$lt_save_ifs
5486 else
5487 lt_cv_path_LD=$LD # Let the user override the test with a path.
5488 fi ;;
5489 esac
5490 fi
5491
5492 LD=$lt_cv_path_LD
5493 if test -n "$LD"; then
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5495 printf "%s\n" "$LD" >&6; }
5496 else
5497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 printf "%s\n" "no" >&6; }
5499 fi
5500 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5502 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5503 if test ${lt_cv_prog_gnu_ld+y}
5504 then :
5505 printf %s "(cached) " >&6
5506 else case e in #(
5507 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5508 case `$LD -v 2>&1 </dev/null` in
5509 *GNU* | *'with BFD'*)
5510 lt_cv_prog_gnu_ld=yes
5511 ;;
5512 *)
5513 lt_cv_prog_gnu_ld=no
5514 ;;
5515 esac ;;
5516 esac
5517 fi
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5519 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5520 with_gnu_ld=$lt_cv_prog_gnu_ld
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5531 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5532 if test ${lt_cv_path_NM+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e) if test -n "$NM"; then
5537 # Let the user override the test.
5538 lt_cv_path_NM=$NM
5539 else
5540 lt_nm_to_check=${ac_tool_prefix}nm
5541 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5542 lt_nm_to_check="$lt_nm_to_check nm"
5543 fi
5544 for lt_tmp_nm in $lt_nm_to_check; do
5545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5546 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5547 IFS=$lt_save_ifs
5548 test -z "$ac_dir" && ac_dir=.
5549 tmp_nm=$ac_dir/$lt_tmp_nm
5550 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5551 # Check to see if the nm accepts a BSD-compat flag.
5552 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5553 # nm: unknown option "B" ignored
5554 # Tru64's nm complains that /dev/null is an invalid object file
5555 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5556 case $build_os in
5557 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5558 *) lt_bad_file=/dev/null ;;
5559 esac
5560 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5561 *$lt_bad_file* | *'Invalid file or object type'*)
5562 lt_cv_path_NM="$tmp_nm -B"
5563 break 2
5564 ;;
5565 *)
5566 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5567 */dev/null*)
5568 lt_cv_path_NM="$tmp_nm -p"
5569 break 2
5570 ;;
5571 *)
5572 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5573 continue # so that we can try to find one that supports BSD flags
5574 ;;
5575 esac
5576 ;;
5577 esac
5578 fi
5579 done
5580 IFS=$lt_save_ifs
5581 done
5582 : ${lt_cv_path_NM=no}
5583 fi ;;
5584 esac
5585 fi
5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5587 printf "%s\n" "$lt_cv_path_NM" >&6; }
5588 if test no != "$lt_cv_path_NM"; then
5589 NM=$lt_cv_path_NM
5590 else
5591 # Didn't find any BSD compatible name lister, look for dumpbin.
5592 if test -n "$DUMPBIN"; then :
5593 # Let the user override the test.
5594 else
5595 if test -n "$ac_tool_prefix"; then
5596 for ac_prog in dumpbin "link -dump"
5597 do
5598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 printf %s "checking for $ac_word... " >&6; }
5602 if test ${ac_cv_prog_DUMPBIN+y}
5603 then :
5604 printf %s "(cached) " >&6
5605 else case e in #(
5606 e) if test -n "$DUMPBIN"; then
5607 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 case $as_dir in #(((
5614 '') as_dir=./ ;;
5615 */) ;;
5616 *) as_dir=$as_dir/ ;;
5617 esac
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi ;;
5629 esac
5630 fi
5631 DUMPBIN=$ac_cv_prog_DUMPBIN
5632 if test -n "$DUMPBIN"; then
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5634 printf "%s\n" "$DUMPBIN" >&6; }
5635 else
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 printf "%s\n" "no" >&6; }
5638 fi
5639
5640
5641 test -n "$DUMPBIN" && break
5642 done
5643 fi
5644 if test -z "$DUMPBIN"; then
5645 ac_ct_DUMPBIN=$DUMPBIN
5646 for ac_prog in dumpbin "link -dump"
5647 do
5648 # Extract the first word of "$ac_prog", so it can be a program name with args.
5649 set dummy $ac_prog; ac_word=$2
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 printf %s "checking for $ac_word... " >&6; }
5652 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5653 then :
5654 printf %s "(cached) " >&6
5655 else case e in #(
5656 e) if test -n "$ac_ct_DUMPBIN"; then
5657 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 case $as_dir in #(((
5664 '') as_dir=./ ;;
5665 */) ;;
5666 *) as_dir=$as_dir/ ;;
5667 esac
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5670 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi ;;
5679 esac
5680 fi
5681 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5682 if test -n "$ac_ct_DUMPBIN"; then
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5684 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5685 else
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 printf "%s\n" "no" >&6; }
5688 fi
5689
5690
5691 test -n "$ac_ct_DUMPBIN" && break
5692 done
5693
5694 if test "x$ac_ct_DUMPBIN" = x; then
5695 DUMPBIN=":"
5696 else
5697 case $cross_compiling:$ac_tool_warned in
5698 yes:)
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5701 ac_tool_warned=yes ;;
5702 esac
5703 DUMPBIN=$ac_ct_DUMPBIN
5704 fi
5705 fi
5706
5707 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5708 *COFF*)
5709 DUMPBIN="$DUMPBIN -symbols -headers"
5710 ;;
5711 *)
5712 DUMPBIN=:
5713 ;;
5714 esac
5715 fi
5716
5717 if test : != "$DUMPBIN"; then
5718 NM=$DUMPBIN
5719 fi
5720 fi
5721 test -z "$NM" && NM=nm
5722
5723
5724
5725
5726
5727
5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5729 printf %s "checking the name lister ($NM) interface... " >&6; }
5730 if test ${lt_cv_nm_interface+y}
5731 then :
5732 printf %s "(cached) " >&6
5733 else case e in #(
5734 e) lt_cv_nm_interface="BSD nm"
5735 echo "int some_variable = 0;" > conftest.$ac_ext
5736 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5737 (eval "$ac_compile" 2>conftest.err)
5738 cat conftest.err >&5
5739 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5741 cat conftest.err >&5
5742 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5743 cat conftest.out >&5
5744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5745 lt_cv_nm_interface="MS dumpbin"
5746 fi
5747 rm -f conftest* ;;
5748 esac
5749 fi
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5751 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5752
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5754 printf %s "checking whether ln -s works... " >&6; }
5755 LN_S=$as_ln_s
5756 if test "$LN_S" = "ln -s"; then
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5758 printf "%s\n" "yes" >&6; }
5759 else
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5761 printf "%s\n" "no, using $LN_S" >&6; }
5762 fi
5763
5764 # find the maximum length of command line arguments
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5766 printf %s "checking the maximum length of command line arguments... " >&6; }
5767 if test ${lt_cv_sys_max_cmd_len+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e) i=0
5772 teststring=ABCD
5773
5774 case $build_os in
5775 msdosdjgpp*)
5776 # On DJGPP, this test can blow up pretty badly due to problems in libc
5777 # (any single argument exceeding 2000 bytes causes a buffer overrun
5778 # during glob expansion). Even if it were fixed, the result of this
5779 # check would be larger than it should be.
5780 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5781 ;;
5782
5783 gnu* | ironclad*)
5784 # Under GNU Hurd and Ironclad, this test is not required because there
5785 # is no limit to the length of command line arguments.
5786 # Libtool will interpret -1 as no limit whatsoever
5787 lt_cv_sys_max_cmd_len=-1;
5788 ;;
5789
5790 cygwin* | mingw* | windows* | cegcc*)
5791 # On Win9x/ME, this test blows up -- it succeeds, but takes
5792 # about 5 minutes as the teststring grows exponentially.
5793 # Worse, since 9x/ME are not pre-emptively multitasking,
5794 # you end up with a "frozen" computer, even though with patience
5795 # the test eventually succeeds (with a max line length of 256k).
5796 # Instead, let's just punt: use the minimum linelength reported by
5797 # all of the supported platforms: 8192 (on NT/2K/XP).
5798 lt_cv_sys_max_cmd_len=8192;
5799 ;;
5800
5801 mint*)
5802 # On MiNT this can take a long time and run out of memory.
5803 lt_cv_sys_max_cmd_len=8192;
5804 ;;
5805
5806 amigaos*)
5807 # On AmigaOS with pdksh, this test takes hours, literally.
5808 # So we just punt and use a minimum line length of 8192.
5809 lt_cv_sys_max_cmd_len=8192;
5810 ;;
5811
5812 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5813 # This has been around since 386BSD, at least. Likely further.
5814 if test -x /sbin/sysctl; then
5815 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5816 elif test -x /usr/sbin/sysctl; then
5817 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5818 else
5819 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5820 fi
5821 # And add a safety zone
5822 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5824 ;;
5825
5826 interix*)
5827 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5828 lt_cv_sys_max_cmd_len=196608
5829 ;;
5830
5831 os2*)
5832 # The test takes a long time on OS/2.
5833 lt_cv_sys_max_cmd_len=8192
5834 ;;
5835
5836 osf*)
5837 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5838 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5839 # nice to cause kernel panics so lets avoid the loop below.
5840 # First set a reasonable default.
5841 lt_cv_sys_max_cmd_len=16384
5842 #
5843 if test -x /sbin/sysconfig; then
5844 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5845 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5846 esac
5847 fi
5848 ;;
5849 sco3.2v5*)
5850 lt_cv_sys_max_cmd_len=102400
5851 ;;
5852 sysv5* | sco5v6* | sysv4.2uw2*)
5853 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5854 if test -n "$kargmax"; then
5855 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5856 else
5857 lt_cv_sys_max_cmd_len=32768
5858 fi
5859 ;;
5860 *)
5861 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5862 if test -n "$lt_cv_sys_max_cmd_len" && \
5863 test undefined != "$lt_cv_sys_max_cmd_len"; then
5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5866 else
5867 # Make teststring a little bigger before we do anything with it.
5868 # a 1K string should be a reasonable start.
5869 for i in 1 2 3 4 5 6 7 8; do
5870 teststring=$teststring$teststring
5871 done
5872 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5873 # If test is not a shell built-in, we'll probably end up computing a
5874 # maximum length that is only half of the actual maximum length, but
5875 # we can't tell.
5876 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5877 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5878 test 17 != "$i" # 1/2 MB should be enough
5879 do
5880 i=`expr $i + 1`
5881 teststring=$teststring$teststring
5882 done
5883 # Only check the string length outside the loop.
5884 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5885 teststring=
5886 # Add a significant safety factor because C++ compilers can tack on
5887 # massive amounts of additional arguments before passing them to the
5888 # linker. It appears as though 1/2 is a usable value.
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5890 fi
5891 ;;
5892 esac
5893 ;;
5894 esac
5895 fi
5896
5897 if test -n "$lt_cv_sys_max_cmd_len"; then
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5899 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5900 else
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5902 printf "%s\n" "none" >&6; }
5903 fi
5904 max_cmd_len=$lt_cv_sys_max_cmd_len
5905
5906
5907
5908
5909
5910
5911 : ${CP="cp -f"}
5912 : ${MV="mv -f"}
5913 : ${RM="rm -f"}
5914
5915 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5916 lt_unset=unset
5917 else
5918 lt_unset=false
5919 fi
5920
5921
5922
5923
5924
5925 # test EBCDIC or ASCII
5926 case `echo X|tr X '\101'` in
5927 A) # ASCII based system
5928 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5929 lt_SP2NL='tr \040 \012'
5930 lt_NL2SP='tr \015\012 \040\040'
5931 ;;
5932 *) # EBCDIC based system
5933 lt_SP2NL='tr \100 \n'
5934 lt_NL2SP='tr \r\n \100\100'
5935 ;;
5936 esac
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5947 printf %s "checking how to convert $build file names to $host format... " >&6; }
5948 if test ${lt_cv_to_host_file_cmd+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else case e in #(
5952 e) case $host in
5953 *-*-mingw* )
5954 case $build in
5955 *-*-mingw* | *-*-windows* ) # actually msys
5956 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5957 ;;
5958 *-*-cygwin* )
5959 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5960 ;;
5961 * ) # otherwise, assume *nix
5962 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5963 ;;
5964 esac
5965 ;;
5966 *-*-cygwin* )
5967 case $build in
5968 *-*-mingw* | *-*-windows* ) # actually msys
5969 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5970 ;;
5971 *-*-cygwin* )
5972 lt_cv_to_host_file_cmd=func_convert_file_noop
5973 ;;
5974 * ) # otherwise, assume *nix
5975 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5976 ;;
5977 esac
5978 ;;
5979 * ) # unhandled hosts (and "normal" native builds)
5980 lt_cv_to_host_file_cmd=func_convert_file_noop
5981 ;;
5982 esac
5983 ;;
5984 esac
5985 fi
5986
5987 to_host_file_cmd=$lt_cv_to_host_file_cmd
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5989 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5990
5991
5992
5993
5994
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5996 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5997 if test ${lt_cv_to_tool_file_cmd+y}
5998 then :
5999 printf %s "(cached) " >&6
6000 else case e in #(
6001 e) #assume ordinary cross tools, or native build.
6002 lt_cv_to_tool_file_cmd=func_convert_file_noop
6003 case $host in
6004 *-*-mingw* | *-*-windows* )
6005 case $build in
6006 *-*-mingw* | *-*-windows* ) # actually msys
6007 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6008 ;;
6009 esac
6010 ;;
6011 esac
6012 ;;
6013 esac
6014 fi
6015
6016 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6018 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6019
6020
6021
6022
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6025 printf %s "checking for $LD option to reload object files... " >&6; }
6026 if test ${lt_cv_ld_reload_flag+y}
6027 then :
6028 printf %s "(cached) " >&6
6029 else case e in #(
6030 e) lt_cv_ld_reload_flag='-r' ;;
6031 esac
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6034 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6035 reload_flag=$lt_cv_ld_reload_flag
6036 case $reload_flag in
6037 "" | " "*) ;;
6038 *) reload_flag=" $reload_flag" ;;
6039 esac
6040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041 case $host_os in
6042 cygwin* | mingw* | windows* | pw32* | cegcc*)
6043 if test yes != "$GCC"; then
6044 reload_cmds=false
6045 fi
6046 ;;
6047 darwin*)
6048 if test yes = "$GCC"; then
6049 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6050 else
6051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6052 fi
6053 ;;
6054 esac
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064 # Extract the first word of "file", so it can be a program name with args.
6065 set dummy file; ac_word=$2
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 printf %s "checking for $ac_word... " >&6; }
6068 if test ${ac_cv_prog_FILECMD+y}
6069 then :
6070 printf %s "(cached) " >&6
6071 else case e in #(
6072 e) if test -n "$FILECMD"; then
6073 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 case $as_dir in #(((
6080 '') as_dir=./ ;;
6081 */) ;;
6082 *) as_dir=$as_dir/ ;;
6083 esac
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_FILECMD="file"
6087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6095 fi ;;
6096 esac
6097 fi
6098 FILECMD=$ac_cv_prog_FILECMD
6099 if test -n "$FILECMD"; then
6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6101 printf "%s\n" "$FILECMD" >&6; }
6102 else
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 printf "%s\n" "no" >&6; }
6105 fi
6106
6107
6108
6109
6110
6111
6112
6113
6114 if test -n "$ac_tool_prefix"; then
6115 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6116 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 printf %s "checking for $ac_word... " >&6; }
6119 if test ${ac_cv_prog_OBJDUMP+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else case e in #(
6123 e) if test -n "$OBJDUMP"; then
6124 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 case $as_dir in #(((
6131 '') as_dir=./ ;;
6132 */) ;;
6133 *) as_dir=$as_dir/ ;;
6134 esac
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi ;;
6146 esac
6147 fi
6148 OBJDUMP=$ac_cv_prog_OBJDUMP
6149 if test -n "$OBJDUMP"; then
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6151 printf "%s\n" "$OBJDUMP" >&6; }
6152 else
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 printf "%s\n" "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_OBJDUMP"; then
6160 ac_ct_OBJDUMP=$OBJDUMP
6161 # Extract the first word of "objdump", so it can be a program name with args.
6162 set dummy objdump; ac_word=$2
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 printf %s "checking for $ac_word... " >&6; }
6165 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else case e in #(
6169 e) if test -n "$ac_ct_OBJDUMP"; then
6170 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 case $as_dir in #(((
6177 '') as_dir=./ ;;
6178 */) ;;
6179 *) as_dir=$as_dir/ ;;
6180 esac
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6185 break 2
6186 fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi ;;
6192 esac
6193 fi
6194 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6195 if test -n "$ac_ct_OBJDUMP"; then
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6197 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6198 else
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 printf "%s\n" "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_OBJDUMP" = x; then
6204 OBJDUMP="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 OBJDUMP=$ac_ct_OBJDUMP
6213 fi
6214 else
6215 OBJDUMP="$ac_cv_prog_OBJDUMP"
6216 fi
6217
6218 test -z "$OBJDUMP" && OBJDUMP=objdump
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6229 printf %s "checking how to recognize dependent libraries... " >&6; }
6230 if test ${lt_cv_deplibs_check_method+y}
6231 then :
6232 printf %s "(cached) " >&6
6233 else case e in #(
6234 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6235 lt_cv_file_magic_test_file=
6236 lt_cv_deplibs_check_method='unknown'
6237 # Need to set the preceding variable on all platforms that support
6238 # interlibrary dependencies.
6239 # 'none' -- dependencies not supported.
6240 # 'unknown' -- same as none, but documents that we really don't know.
6241 # 'pass_all' -- all dependencies passed with no checks.
6242 # 'file_magic [[regex]]' -- check by looking for files in library path
6243 # that responds to the $file_magic_cmd with a given extended regex.
6244 # If you have 'file' or equivalent on your system and you're not sure
6245 # whether 'pass_all' will *always* work, you probably want this one.
6246
6247 case $host_os in
6248 aix[4-9]*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251
6252 beos*)
6253 lt_cv_deplibs_check_method=pass_all
6254 ;;
6255
6256 bsdi[45]*)
6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6258 lt_cv_file_magic_cmd='$FILECMD -L'
6259 lt_cv_file_magic_test_file=/shlib/libc.so
6260 ;;
6261
6262 cygwin*)
6263 # func_win32_libid is a shell function defined in ltmain.sh
6264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6265 lt_cv_file_magic_cmd='func_win32_libid'
6266 ;;
6267
6268 mingw* | windows* | pw32*)
6269 # Base MSYS/MinGW do not provide the 'file' command needed by
6270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6271 # unless we find 'file', for example because we are cross-compiling.
6272 if ( file / ) >/dev/null 2>&1; then
6273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274 lt_cv_file_magic_cmd='func_win32_libid'
6275 else
6276 # Keep this pattern in sync with the one in func_win32_libid.
6277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6278 lt_cv_file_magic_cmd='$OBJDUMP -f'
6279 fi
6280 ;;
6281
6282 cegcc*)
6283 # use the weaker test based on 'objdump'. See mingw*.
6284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6285 lt_cv_file_magic_cmd='$OBJDUMP -f'
6286 ;;
6287
6288 darwin* | rhapsody*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 freebsd* | dragonfly* | midnightbsd*)
6293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6294 case $host_cpu in
6295 i*86 )
6296 # Not sure whether the presence of OpenBSD here was a mistake.
6297 # Let's accept both of them until this is cleared up.
6298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6299 lt_cv_file_magic_cmd=$FILECMD
6300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6301 ;;
6302 esac
6303 else
6304 lt_cv_deplibs_check_method=pass_all
6305 fi
6306 ;;
6307
6308 haiku*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312 hpux10.20* | hpux11*)
6313 lt_cv_file_magic_cmd=$FILECMD
6314 case $host_cpu in
6315 ia64*)
6316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6318 ;;
6319 hppa*64*)
6320 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]'
6321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6322 ;;
6323 *)
6324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6326 ;;
6327 esac
6328 ;;
6329
6330 interix[3-9]*)
6331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6333 ;;
6334
6335 irix5* | irix6* | nonstopux*)
6336 case $LD in
6337 *-32|*"-32 ") libmagic=32-bit;;
6338 *-n32|*"-n32 ") libmagic=N32;;
6339 *-64|*"-64 ") libmagic=64-bit;;
6340 *) libmagic=never-match;;
6341 esac
6342 lt_cv_deplibs_check_method=pass_all
6343 ;;
6344
6345 # This must be glibc/ELF.
6346 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6347 lt_cv_deplibs_check_method=pass_all
6348 ;;
6349
6350 *-mlibc)
6351 lt_cv_deplibs_check_method=pass_all
6352 ;;
6353
6354 netbsd* | netbsdelf*-gnu)
6355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6357 else
6358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6359 fi
6360 ;;
6361
6362 newos6*)
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364 lt_cv_file_magic_cmd=$FILECMD
6365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6366 ;;
6367
6368 *nto* | *qnx*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372 openbsd*)
6373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6375 else
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377 fi
6378 ;;
6379
6380 osf3* | osf4* | osf5*)
6381 lt_cv_deplibs_check_method=pass_all
6382 ;;
6383
6384 rdos*)
6385 lt_cv_deplibs_check_method=pass_all
6386 ;;
6387
6388 serenity*)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391
6392 solaris*)
6393 lt_cv_deplibs_check_method=pass_all
6394 ;;
6395
6396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 sysv4 | sysv4.3*)
6401 case $host_vendor in
6402 motorola)
6403 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]'
6404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6405 ;;
6406 ncr)
6407 lt_cv_deplibs_check_method=pass_all
6408 ;;
6409 sequent)
6410 lt_cv_file_magic_cmd='/bin/file'
6411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6412 ;;
6413 sni)
6414 lt_cv_file_magic_cmd='/bin/file'
6415 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6416 lt_cv_file_magic_test_file=/lib/libc.so
6417 ;;
6418 siemens)
6419 lt_cv_deplibs_check_method=pass_all
6420 ;;
6421 pc)
6422 lt_cv_deplibs_check_method=pass_all
6423 ;;
6424 esac
6425 ;;
6426
6427 tpf*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430 os2*)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
6433 esac
6434 ;;
6435 esac
6436 fi
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6438 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6439
6440 file_magic_glob=
6441 want_nocaseglob=no
6442 if test "$build" = "$host"; then
6443 case $host_os in
6444 mingw* | windows* | pw32*)
6445 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6446 want_nocaseglob=yes
6447 else
6448 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6449 fi
6450 ;;
6451 esac
6452 fi
6453
6454 file_magic_cmd=$lt_cv_file_magic_cmd
6455 deplibs_check_method=$lt_cv_deplibs_check_method
6456 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 printf %s "checking for $ac_word... " >&6; }
6484 if test ${ac_cv_prog_DLLTOOL+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else case e in #(
6488 e) if test -n "$DLLTOOL"; then
6489 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi ;;
6511 esac
6512 fi
6513 DLLTOOL=$ac_cv_prog_DLLTOOL
6514 if test -n "$DLLTOOL"; then
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6516 printf "%s\n" "$DLLTOOL" >&6; }
6517 else
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 printf "%s\n" "no" >&6; }
6520 fi
6521
6522
6523 fi
6524 if test -z "$ac_cv_prog_DLLTOOL"; then
6525 ac_ct_DLLTOOL=$DLLTOOL
6526 # Extract the first word of "dlltool", so it can be a program name with args.
6527 set dummy dlltool; ac_word=$2
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 printf %s "checking for $ac_word... " >&6; }
6530 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else case e in #(
6534 e) if test -n "$ac_ct_DLLTOOL"; then
6535 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540 IFS=$as_save_IFS
6541 case $as_dir in #(((
6542 '') as_dir=./ ;;
6543 */) ;;
6544 *) as_dir=$as_dir/ ;;
6545 esac
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi ;;
6557 esac
6558 fi
6559 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6560 if test -n "$ac_ct_DLLTOOL"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6562 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568 if test "x$ac_ct_DLLTOOL" = x; then
6569 DLLTOOL="false"
6570 else
6571 case $cross_compiling:$ac_tool_warned in
6572 yes:)
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6576 esac
6577 DLLTOOL=$ac_ct_DLLTOOL
6578 fi
6579 else
6580 DLLTOOL="$ac_cv_prog_DLLTOOL"
6581 fi
6582
6583 test -z "$DLLTOOL" && DLLTOOL=dlltool
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6595 printf %s "checking how to associate runtime and link libraries... " >&6; }
6596 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else case e in #(
6600 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6601
6602 case $host_os in
6603 cygwin* | mingw* | windows* | pw32* | cegcc*)
6604 # two different shell functions defined in ltmain.sh;
6605 # decide which one to use based on capabilities of $DLLTOOL
6606 case `$DLLTOOL --help 2>&1` in
6607 *--identify-strict*)
6608 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6609 ;;
6610 *)
6611 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6612 ;;
6613 esac
6614 ;;
6615 *)
6616 # fallback: assume linklib IS sharedlib
6617 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6618 ;;
6619 esac
6620 ;;
6621 esac
6622 fi
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6624 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6625 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6626 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6627
6628
6629
6630
6631
6632
6633
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 printf %s "checking for $ac_word... " >&6; }
6639 if test ${ac_cv_prog_RANLIB+y}
6640 then :
6641 printf %s "(cached) " >&6
6642 else case e in #(
6643 e) if test -n "$RANLIB"; then
6644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 case $as_dir in #(((
6651 '') as_dir=./ ;;
6652 */) ;;
6653 *) as_dir=$as_dir/ ;;
6654 esac
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6659 break 2
6660 fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi ;;
6666 esac
6667 fi
6668 RANLIB=$ac_cv_prog_RANLIB
6669 if test -n "$RANLIB"; then
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6671 printf "%s\n" "$RANLIB" >&6; }
6672 else
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 printf "%s\n" "no" >&6; }
6675 fi
6676
6677
6678 fi
6679 if test -z "$ac_cv_prog_RANLIB"; then
6680 ac_ct_RANLIB=$RANLIB
6681 # Extract the first word of "ranlib", so it can be a program name with args.
6682 set dummy ranlib; ac_word=$2
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 printf %s "checking for $ac_word... " >&6; }
6685 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else case e in #(
6689 e) if test -n "$ac_ct_RANLIB"; then
6690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 case $as_dir in #(((
6697 '') as_dir=./ ;;
6698 */) ;;
6699 *) as_dir=$as_dir/ ;;
6700 esac
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_ac_ct_RANLIB="ranlib"
6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi ;;
6712 esac
6713 fi
6714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6715 if test -n "$ac_ct_RANLIB"; then
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6717 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6718 else
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 printf "%s\n" "no" >&6; }
6721 fi
6722
6723 if test "x$ac_ct_RANLIB" = x; then
6724 RANLIB=":"
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727 yes:)
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6731 esac
6732 RANLIB=$ac_ct_RANLIB
6733 fi
6734 else
6735 RANLIB="$ac_cv_prog_RANLIB"
6736 fi
6737
6738 if test -n "$ac_tool_prefix"; then
6739 for ac_prog in ar
6740 do
6741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 printf %s "checking for $ac_word... " >&6; }
6745 if test ${ac_cv_prog_AR+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else case e in #(
6749 e) if test -n "$AR"; then
6750 ac_cv_prog_AR="$AR" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755 IFS=$as_save_IFS
6756 case $as_dir in #(((
6757 '') as_dir=./ ;;
6758 */) ;;
6759 *) as_dir=$as_dir/ ;;
6760 esac
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767 done
6768 done
6769 IFS=$as_save_IFS
6770
6771 fi ;;
6772 esac
6773 fi
6774 AR=$ac_cv_prog_AR
6775 if test -n "$AR"; then
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6777 printf "%s\n" "$AR" >&6; }
6778 else
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780 printf "%s\n" "no" >&6; }
6781 fi
6782
6783
6784 test -n "$AR" && break
6785 done
6786 fi
6787 if test -z "$AR"; then
6788 ac_ct_AR=$AR
6789 for ac_prog in ar
6790 do
6791 # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 printf %s "checking for $ac_word... " >&6; }
6795 if test ${ac_cv_prog_ac_ct_AR+y}
6796 then :
6797 printf %s "(cached) " >&6
6798 else case e in #(
6799 e) if test -n "$ac_ct_AR"; then
6800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6801 else
6802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805 IFS=$as_save_IFS
6806 case $as_dir in #(((
6807 '') as_dir=./ ;;
6808 */) ;;
6809 *) as_dir=$as_dir/ ;;
6810 esac
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_AR="$ac_prog"
6814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 fi ;;
6822 esac
6823 fi
6824 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6825 if test -n "$ac_ct_AR"; then
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6827 printf "%s\n" "$ac_ct_AR" >&6; }
6828 else
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 printf "%s\n" "no" >&6; }
6831 fi
6832
6833
6834 test -n "$ac_ct_AR" && break
6835 done
6836
6837 if test "x$ac_ct_AR" = x; then
6838 AR="false"
6839 else
6840 case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846 AR=$ac_ct_AR
6847 fi
6848 fi
6849
6850 : ${AR=ar}
6851
6852
6853
6854
6855
6856
6857 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6858 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6859 # higher priority because that's what people were doing historically (setting
6860 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6861 # variable obsoleted/removed.
6862
6863 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6864 lt_ar_flags=$AR_FLAGS
6865
6866
6867
6868
6869
6870
6871 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6872 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6873
6874
6875
6876
6877
6878
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6880 printf %s "checking for archiver @FILE support... " >&6; }
6881 if test ${lt_cv_ar_at_file+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) lt_cv_ar_at_file=no
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888
6889 int
6890 main (void)
6891 {
6892
6893 ;
6894 return 0;
6895 }
6896 _ACEOF
6897 if ac_fn_c_try_compile "$LINENO"
6898 then :
6899 echo conftest.$ac_objext > conftest.lst
6900 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6902 (eval $lt_ar_try) 2>&5
6903 ac_status=$?
6904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }
6906 if test 0 -eq "$ac_status"; then
6907 # Ensure the archiver fails upon bogus file names.
6908 rm -f conftest.$ac_objext libconftest.a
6909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6910 (eval $lt_ar_try) 2>&5
6911 ac_status=$?
6912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }
6914 if test 0 -ne "$ac_status"; then
6915 lt_cv_ar_at_file=@
6916 fi
6917 fi
6918 rm -f conftest.* libconftest.a
6919
6920 fi
6921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6922 ;;
6923 esac
6924 fi
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6926 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6927
6928 if test no = "$lt_cv_ar_at_file"; then
6929 archiver_list_spec=
6930 else
6931 archiver_list_spec=$lt_cv_ar_at_file
6932 fi
6933
6934
6935
6936
6937
6938
6939
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}strip; ac_word=$2
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 printf %s "checking for $ac_word... " >&6; }
6945 if test ${ac_cv_prog_STRIP+y}
6946 then :
6947 printf %s "(cached) " >&6
6948 else case e in #(
6949 e) if test -n "$STRIP"; then
6950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 case $as_dir in #(((
6957 '') as_dir=./ ;;
6958 */) ;;
6959 *) as_dir=$as_dir/ ;;
6960 esac
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6965 break 2
6966 fi
6967 done
6968 done
6969 IFS=$as_save_IFS
6970
6971 fi ;;
6972 esac
6973 fi
6974 STRIP=$ac_cv_prog_STRIP
6975 if test -n "$STRIP"; then
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6977 printf "%s\n" "$STRIP" >&6; }
6978 else
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 printf "%s\n" "no" >&6; }
6981 fi
6982
6983
6984 fi
6985 if test -z "$ac_cv_prog_STRIP"; then
6986 ac_ct_STRIP=$STRIP
6987 # Extract the first word of "strip", so it can be a program name with args.
6988 set dummy strip; ac_word=$2
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 printf %s "checking for $ac_word... " >&6; }
6991 if test ${ac_cv_prog_ac_ct_STRIP+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else case e in #(
6995 e) if test -n "$ac_ct_STRIP"; then
6996 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 case $as_dir in #(((
7003 '') as_dir=./ ;;
7004 */) ;;
7005 *) as_dir=$as_dir/ ;;
7006 esac
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_ac_ct_STRIP="strip"
7010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi ;;
7018 esac
7019 fi
7020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7021 if test -n "$ac_ct_STRIP"; then
7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7023 printf "%s\n" "$ac_ct_STRIP" >&6; }
7024 else
7025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 printf "%s\n" "no" >&6; }
7027 fi
7028
7029 if test "x$ac_ct_STRIP" = x; then
7030 STRIP=":"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038 STRIP=$ac_ct_STRIP
7039 fi
7040 else
7041 STRIP="$ac_cv_prog_STRIP"
7042 fi
7043
7044 test -z "$STRIP" && STRIP=:
7045
7046
7047
7048
7049
7050
7051
7052 test -z "$RANLIB" && RANLIB=:
7053
7054
7055
7056
7057
7058
7059 # Determine commands to create old-style static archives.
7060 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7061 old_postinstall_cmds='chmod 644 $oldlib'
7062 old_postuninstall_cmds=
7063
7064 if test -n "$RANLIB"; then
7065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7066 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7067 fi
7068
7069 case $host_os in
7070 darwin*)
7071 lock_old_archive_extraction=yes ;;
7072 *)
7073 lock_old_archive_extraction=no ;;
7074 esac
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114 # If no C compiler was specified, use CC.
7115 LTCC=${LTCC-"$CC"}
7116
7117 # If no C compiler flags were specified, use CFLAGS.
7118 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7119
7120 # Allow CC to be a program name with arguments.
7121 compiler=$CC
7122
7123
7124 # Check for command to grab the raw symbol name followed by C symbol from nm.
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7126 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7127 if test ${lt_cv_sys_global_symbol_pipe+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else case e in #(
7131 e)
7132 # These are sane defaults that work on at least a few old systems.
7133 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7134
7135 # Character class describing NM global symbol codes.
7136 symcode='[BCDEGRST]'
7137
7138 # Regexp to match symbols that can be accessed directly from C.
7139 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7140
7141 # Define system-specific variables.
7142 case $host_os in
7143 aix*)
7144 symcode='[BCDT]'
7145 ;;
7146 cygwin* | mingw* | windows* | pw32* | cegcc*)
7147 symcode='[ABCDGISTW]'
7148 ;;
7149 hpux*)
7150 if test ia64 = "$host_cpu"; then
7151 symcode='[ABCDEGRST]'
7152 fi
7153 ;;
7154 irix* | nonstopux*)
7155 symcode='[BCDEGRST]'
7156 ;;
7157 osf*)
7158 symcode='[BCDEGQRST]'
7159 ;;
7160 solaris*)
7161 symcode='[BCDRT]'
7162 ;;
7163 sco3.2v5*)
7164 symcode='[DT]'
7165 ;;
7166 sysv4.2uw2*)
7167 symcode='[DT]'
7168 ;;
7169 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7170 symcode='[ABDT]'
7171 ;;
7172 sysv4)
7173 symcode='[DFNSTU]'
7174 ;;
7175 esac
7176
7177 # If we're using GNU nm, then use its standard symbol codes.
7178 case `$NM -V 2>&1` in
7179 *GNU* | *'with BFD'*)
7180 symcode='[ABCDGIRSTW]' ;;
7181 esac
7182
7183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7184 # Gets list of data symbols to import.
7185 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7186 # Adjust the below global symbol transforms to fixup imported variables.
7187 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7188 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7189 lt_c_name_lib_hook="\
7190 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7191 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7192 else
7193 # Disable hooks by default.
7194 lt_cv_sys_global_symbol_to_import=
7195 lt_cdecl_hook=
7196 lt_c_name_hook=
7197 lt_c_name_lib_hook=
7198 fi
7199
7200 # Transform an extracted symbol line into a proper C declaration.
7201 # Some systems (esp. on ia64) link data and code symbols differently,
7202 # so use this general approach.
7203 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7204 $lt_cdecl_hook\
7205 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7206 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7207
7208 # Transform an extracted symbol line into symbol name and symbol address
7209 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7210 $lt_c_name_hook\
7211 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7212 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7213
7214 # Transform an extracted symbol line into symbol name with lib prefix and
7215 # symbol address.
7216 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7217 $lt_c_name_lib_hook\
7218 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7219 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7220 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7221
7222 # Handle CRLF in mingw tool chain
7223 opt_cr=
7224 case $build_os in
7225 mingw* | windows*)
7226 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7227 ;;
7228 esac
7229
7230 # Try without a prefix underscore, then with it.
7231 for ac_symprfx in "" "_"; do
7232
7233 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7234 symxfrm="\\1 $ac_symprfx\\2 \\2"
7235
7236 # Write the raw and C identifiers.
7237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7238 # Fake it for dumpbin and say T for any non-static function,
7239 # D for any global variable and I for any imported variable.
7240 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7241 # which start with @ or ?.
7242 lt_cv_sys_global_symbol_pipe="$AWK '"\
7243 " {last_section=section; section=\$ 3};"\
7244 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7245 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7246 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7247 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7248 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7249 " \$ 0!~/External *\|/{next};"\
7250 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7251 " {if(hide[section]) next};"\
7252 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7253 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7254 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7255 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7256 " ' prfx=^$ac_symprfx"
7257 else
7258 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7259 fi
7260 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7261
7262 # Check to see that the pipe works correctly.
7263 pipe_works=no
7264
7265 rm -f conftest*
7266 cat > conftest.$ac_ext <<_LT_EOF
7267 #ifdef __cplusplus
7268 extern "C" {
7269 #endif
7270 char nm_test_var;
7271 void nm_test_func(void);
7272 void nm_test_func(void){}
7273 #ifdef __cplusplus
7274 }
7275 #endif
7276 int main(void){nm_test_var='a';nm_test_func();return(0);}
7277 _LT_EOF
7278
7279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7280 (eval $ac_compile) 2>&5
7281 ac_status=$?
7282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; }; then
7284 # Now try to grab the symbols.
7285 nlist=conftest.nm
7286 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7287 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7288 # Try sorting and uniquifying the output.
7289 if sort "$nlist" | uniq > "$nlist"T; then
7290 mv -f "$nlist"T "$nlist"
7291 else
7292 rm -f "$nlist"T
7293 fi
7294
7295 # Make sure that we snagged all the symbols we need.
7296 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7297 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7298 cat <<_LT_EOF > conftest.$ac_ext
7299 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7300 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7301 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7302 relocations are performed -- see ld's documentation on pseudo-relocs. */
7303 # define LT_DLSYM_CONST
7304 #elif defined __osf__
7305 /* This system does not cope well with relocations in const data. */
7306 # define LT_DLSYM_CONST
7307 #else
7308 # define LT_DLSYM_CONST const
7309 #endif
7310
7311 #ifdef __cplusplus
7312 extern "C" {
7313 #endif
7314
7315 _LT_EOF
7316 # Now generate the symbol file.
7317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7318
7319 cat <<_LT_EOF >> conftest.$ac_ext
7320
7321 /* The mapping between symbol names and symbols. */
7322 LT_DLSYM_CONST struct {
7323 const char *name;
7324 void *address;
7325 }
7326 lt__PROGRAM__LTX_preloaded_symbols[] =
7327 {
7328 { "@PROGRAM@", (void *) 0 },
7329 _LT_EOF
7330 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7331 cat <<\_LT_EOF >> conftest.$ac_ext
7332 {0, (void *) 0}
7333 };
7334
7335 /* This works around a problem in FreeBSD linker */
7336 #ifdef FREEBSD_WORKAROUND
7337 static const void *lt_preloaded_setup() {
7338 return lt__PROGRAM__LTX_preloaded_symbols;
7339 }
7340 #endif
7341
7342 #ifdef __cplusplus
7343 }
7344 #endif
7345 _LT_EOF
7346 # Now try linking the two files.
7347 mv conftest.$ac_objext conftstm.$ac_objext
7348 lt_globsym_save_LIBS=$LIBS
7349 lt_globsym_save_CFLAGS=$CFLAGS
7350 LIBS=conftstm.$ac_objext
7351 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7353 (eval $ac_link) 2>&5
7354 ac_status=$?
7355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7356 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7357 pipe_works=yes
7358 fi
7359 LIBS=$lt_globsym_save_LIBS
7360 CFLAGS=$lt_globsym_save_CFLAGS
7361 else
7362 echo "cannot find nm_test_func in $nlist" >&5
7363 fi
7364 else
7365 echo "cannot find nm_test_var in $nlist" >&5
7366 fi
7367 else
7368 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7369 fi
7370 else
7371 echo "$progname: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7373 fi
7374 rm -rf conftest* conftst*
7375
7376 # Do not use the global_symbol_pipe unless it works.
7377 if test yes = "$pipe_works"; then
7378 break
7379 else
7380 lt_cv_sys_global_symbol_pipe=
7381 fi
7382 done
7383 ;;
7384 esac
7385 fi
7386
7387 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7388 lt_cv_sys_global_symbol_to_cdecl=
7389 fi
7390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7392 printf "%s\n" "failed" >&6; }
7393 else
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7395 printf "%s\n" "ok" >&6; }
7396 fi
7397
7398 # Response file support.
7399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7400 nm_file_list_spec='@'
7401 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7402 nm_file_list_spec='@'
7403 fi
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7442 printf %s "checking for sysroot... " >&6; }
7443
7444 # Check whether --with-sysroot was given.
7445 if test ${with_sysroot+y}
7446 then :
7447 withval=$with_sysroot;
7448 else case e in #(
7449 e) with_sysroot=no ;;
7450 esac
7451 fi
7452
7453
7454 lt_sysroot=
7455 case $with_sysroot in #(
7456 yes)
7457 if test yes = "$GCC"; then
7458 # Trim trailing / since we'll always append absolute paths and we want
7459 # to avoid //, if only for less confusing output for the user.
7460 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7461 fi
7462 ;; #(
7463 /*)
7464 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7465 ;; #(
7466 no|'')
7467 ;; #(
7468 *)
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7470 printf "%s\n" "$with_sysroot" >&6; }
7471 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7472 ;;
7473 esac
7474
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7476 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7477
7478
7479
7480
7481
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7483 printf %s "checking for a working dd... " >&6; }
7484 if test ${ac_cv_path_lt_DD+y}
7485 then :
7486 printf %s "(cached) " >&6
7487 else case e in #(
7488 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7489 cat conftest.i conftest.i >conftest2.i
7490 : ${lt_DD:=$DD}
7491 if test -z "$lt_DD"; then
7492 ac_path_lt_DD_found=false
7493 # Loop through the user's path and test for each of PROGNAME-LIST
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7496 do
7497 IFS=$as_save_IFS
7498 case $as_dir in #(((
7499 '') as_dir=./ ;;
7500 */) ;;
7501 *) as_dir=$as_dir/ ;;
7502 esac
7503 for ac_prog in dd
7504 do
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7507 as_fn_executable_p "$ac_path_lt_DD" || continue
7508 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7509 cmp -s conftest.i conftest.out \
7510 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7511 fi
7512 $ac_path_lt_DD_found && break 3
7513 done
7514 done
7515 done
7516 IFS=$as_save_IFS
7517 if test -z "$ac_cv_path_lt_DD"; then
7518 :
7519 fi
7520 else
7521 ac_cv_path_lt_DD=$lt_DD
7522 fi
7523
7524 rm -f conftest.i conftest2.i conftest.out ;;
7525 esac
7526 fi
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7528 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7529
7530
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7532 printf %s "checking how to truncate binary pipes... " >&6; }
7533 if test ${lt_cv_truncate_bin+y}
7534 then :
7535 printf %s "(cached) " >&6
7536 else case e in #(
7537 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7538 cat conftest.i conftest.i >conftest2.i
7539 lt_cv_truncate_bin=
7540 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7541 cmp -s conftest.i conftest.out \
7542 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7543 fi
7544 rm -f conftest.i conftest2.i conftest.out
7545 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7546 esac
7547 fi
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7549 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7550
7551
7552
7553
7554
7555
7556
7557 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7558 func_cc_basename ()
7559 {
7560 for cc_temp in $*""; do
7561 case $cc_temp in
7562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7564 \-*) ;;
7565 *) break;;
7566 esac
7567 done
7568 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7569 }
7570
7571 # Check whether --enable-libtool-lock was given.
7572 if test ${enable_libtool_lock+y}
7573 then :
7574 enableval=$enable_libtool_lock;
7575 fi
7576
7577 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7578
7579 # Some flags need to be propagated to the compiler or linker for good
7580 # libtool support.
7581 case $host in
7582 ia64-*-hpux*)
7583 # Find out what ABI is being produced by ac_compile, and set mode
7584 # options accordingly.
7585 echo 'int i;' > conftest.$ac_ext
7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7587 (eval $ac_compile) 2>&5
7588 ac_status=$?
7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 test $ac_status = 0; }; then
7591 case `$FILECMD conftest.$ac_objext` in
7592 *ELF-32*)
7593 HPUX_IA64_MODE=32
7594 ;;
7595 *ELF-64*)
7596 HPUX_IA64_MODE=64
7597 ;;
7598 esac
7599 fi
7600 rm -rf conftest*
7601 ;;
7602 *-*-irix6*)
7603 # Find out what ABI is being produced by ac_compile, and set linker
7604 # options accordingly.
7605 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7608 ac_status=$?
7609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 if test yes = "$lt_cv_prog_gnu_ld"; then
7612 case `$FILECMD conftest.$ac_objext` in
7613 *32-bit*)
7614 LD="${LD-ld} -melf32bsmip"
7615 ;;
7616 *N32*)
7617 LD="${LD-ld} -melf32bmipn32"
7618 ;;
7619 *64-bit*)
7620 LD="${LD-ld} -melf64bmip"
7621 ;;
7622 esac
7623 else
7624 case `$FILECMD conftest.$ac_objext` in
7625 *32-bit*)
7626 LD="${LD-ld} -32"
7627 ;;
7628 *N32*)
7629 LD="${LD-ld} -n32"
7630 ;;
7631 *64-bit*)
7632 LD="${LD-ld} -64"
7633 ;;
7634 esac
7635 fi
7636 fi
7637 rm -rf conftest*
7638 ;;
7639
7640 mips64*-*linux*)
7641 # Find out what ABI is being produced by ac_compile, and set linker
7642 # options accordingly.
7643 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7645 (eval $ac_compile) 2>&5
7646 ac_status=$?
7647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7648 test $ac_status = 0; }; then
7649 emul=elf
7650 case `$FILECMD conftest.$ac_objext` in
7651 *32-bit*)
7652 emul="${emul}32"
7653 ;;
7654 *64-bit*)
7655 emul="${emul}64"
7656 ;;
7657 esac
7658 case `$FILECMD conftest.$ac_objext` in
7659 *MSB*)
7660 emul="${emul}btsmip"
7661 ;;
7662 *LSB*)
7663 emul="${emul}ltsmip"
7664 ;;
7665 esac
7666 case `$FILECMD conftest.$ac_objext` in
7667 *N32*)
7668 emul="${emul}n32"
7669 ;;
7670 esac
7671 LD="${LD-ld} -m $emul"
7672 fi
7673 rm -rf conftest*
7674 ;;
7675
7676 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7677 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7678 # Find out what ABI is being produced by ac_compile, and set linker
7679 # options accordingly. Note that the listed cases only cover the
7680 # situations where additional linker options are needed (such as when
7681 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7682 # vice versa); the common cases where no linker options are needed do
7683 # not appear in the list.
7684 echo 'int i;' > conftest.$ac_ext
7685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7686 (eval $ac_compile) 2>&5
7687 ac_status=$?
7688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 case `$FILECMD conftest.o` in
7691 *32-bit*)
7692 case $host in
7693 x86_64-*kfreebsd*-gnu)
7694 LD="${LD-ld} -m elf_i386_fbsd"
7695 ;;
7696 x86_64-*linux*|x86_64-gnu*)
7697 case `$FILECMD conftest.o` in
7698 *x86-64*)
7699 LD="${LD-ld} -m elf32_x86_64"
7700 ;;
7701 *)
7702 LD="${LD-ld} -m elf_i386"
7703 ;;
7704 esac
7705 ;;
7706 powerpc64le-*linux*)
7707 LD="${LD-ld} -m elf32lppclinux"
7708 ;;
7709 powerpc64-*linux*)
7710 LD="${LD-ld} -m elf32ppclinux"
7711 ;;
7712 s390x-*linux*)
7713 LD="${LD-ld} -m elf_s390"
7714 ;;
7715 sparc64-*linux*)
7716 LD="${LD-ld} -m elf32_sparc"
7717 ;;
7718 esac
7719 ;;
7720 *64-bit*)
7721 case $host in
7722 x86_64-*kfreebsd*-gnu)
7723 LD="${LD-ld} -m elf_x86_64_fbsd"
7724 ;;
7725 x86_64-*linux*|x86_64-gnu*)
7726 LD="${LD-ld} -m elf_x86_64"
7727 ;;
7728 powerpcle-*linux*)
7729 LD="${LD-ld} -m elf64lppc"
7730 ;;
7731 powerpc-*linux*)
7732 LD="${LD-ld} -m elf64ppc"
7733 ;;
7734 s390*-*linux*|s390*-*tpf*)
7735 LD="${LD-ld} -m elf64_s390"
7736 ;;
7737 sparc*-*linux*)
7738 LD="${LD-ld} -m elf64_sparc"
7739 ;;
7740 esac
7741 ;;
7742 esac
7743 fi
7744 rm -rf conftest*
7745 ;;
7746
7747 *-*-sco3.2v5*)
7748 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7749 SAVE_CFLAGS=$CFLAGS
7750 CFLAGS="$CFLAGS -belf"
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7752 printf %s "checking whether the C compiler needs -belf... " >&6; }
7753 if test ${lt_cv_cc_needs_belf+y}
7754 then :
7755 printf %s "(cached) " >&6
7756 else case e in #(
7757 e) ac_ext=c
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765
7766 int
7767 main (void)
7768 {
7769
7770 ;
7771 return 0;
7772 }
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"
7775 then :
7776 lt_cv_cc_needs_belf=yes
7777 else case e in #(
7778 e) lt_cv_cc_needs_belf=no ;;
7779 esac
7780 fi
7781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7782 conftest$ac_exeext conftest.$ac_ext
7783 ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788 ;;
7789 esac
7790 fi
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7792 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7793 if test yes != "$lt_cv_cc_needs_belf"; then
7794 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7795 CFLAGS=$SAVE_CFLAGS
7796 fi
7797 ;;
7798 *-*solaris*)
7799 # Find out what ABI is being produced by ac_compile, and set linker
7800 # options accordingly.
7801 echo 'int i;' > conftest.$ac_ext
7802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7803 (eval $ac_compile) 2>&5
7804 ac_status=$?
7805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }; then
7807 case `$FILECMD conftest.o` in
7808 *64-bit*)
7809 case $lt_cv_prog_gnu_ld in
7810 yes*)
7811 case $host in
7812 i?86-*-solaris*|x86_64-*-solaris*)
7813 LD="${LD-ld} -m elf_x86_64"
7814 ;;
7815 sparc*-*-solaris*)
7816 LD="${LD-ld} -m elf64_sparc"
7817 ;;
7818 esac
7819 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7820 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7821 LD=${LD-ld}_sol2
7822 fi
7823 ;;
7824 *)
7825 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7826 LD="${LD-ld} -64"
7827 fi
7828 ;;
7829 esac
7830 ;;
7831 esac
7832 fi
7833 rm -rf conftest*
7834 ;;
7835 esac
7836
7837 need_locks=$enable_libtool_lock
7838
7839 if test -n "$ac_tool_prefix"; then
7840 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7841 set dummy ${ac_tool_prefix}mt; ac_word=$2
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7843 printf %s "checking for $ac_word... " >&6; }
7844 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else case e in #(
7848 e) if test -n "$MANIFEST_TOOL"; then
7849 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854 IFS=$as_save_IFS
7855 case $as_dir in #(((
7856 '') as_dir=./ ;;
7857 */) ;;
7858 *) as_dir=$as_dir/ ;;
7859 esac
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 break 2
7865 fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870 fi ;;
7871 esac
7872 fi
7873 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7874 if test -n "$MANIFEST_TOOL"; then
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7876 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7877 else
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 printf "%s\n" "no" >&6; }
7880 fi
7881
7882
7883 fi
7884 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7885 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7886 # Extract the first word of "mt", so it can be a program name with args.
7887 set dummy mt; ac_word=$2
7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 printf %s "checking for $ac_word... " >&6; }
7890 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7891 then :
7892 printf %s "(cached) " >&6
7893 else case e in #(
7894 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7895 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7896 else
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898 for as_dir in $PATH
7899 do
7900 IFS=$as_save_IFS
7901 case $as_dir in #(((
7902 '') as_dir=./ ;;
7903 */) ;;
7904 *) as_dir=$as_dir/ ;;
7905 esac
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7910 break 2
7911 fi
7912 done
7913 done
7914 IFS=$as_save_IFS
7915
7916 fi ;;
7917 esac
7918 fi
7919 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7920 if test -n "$ac_ct_MANIFEST_TOOL"; then
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7922 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7923 else
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 printf "%s\n" "no" >&6; }
7926 fi
7927
7928 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7929 MANIFEST_TOOL=":"
7930 else
7931 case $cross_compiling:$ac_tool_warned in
7932 yes:)
7933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7936 esac
7937 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7938 fi
7939 else
7940 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7941 fi
7942
7943 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7945 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7946 if test ${lt_cv_path_manifest_tool+y}
7947 then :
7948 printf %s "(cached) " >&6
7949 else case e in #(
7950 e) lt_cv_path_manifest_tool=no
7951 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7952 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7953 cat conftest.err >&5
7954 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7955 lt_cv_path_manifest_tool=yes
7956 fi
7957 rm -f conftest* ;;
7958 esac
7959 fi
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
7961 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
7962 if test yes != "$lt_cv_path_manifest_tool"; then
7963 MANIFEST_TOOL=:
7964 fi
7965
7966
7967
7968
7969
7970
7971 case $host_os in
7972 rhapsody* | darwin*)
7973 if test -n "$ac_tool_prefix"; then
7974 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7975 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 printf %s "checking for $ac_word... " >&6; }
7978 if test ${ac_cv_prog_DSYMUTIL+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else case e in #(
7982 e) if test -n "$DSYMUTIL"; then
7983 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7984 else
7985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986 for as_dir in $PATH
7987 do
7988 IFS=$as_save_IFS
7989 case $as_dir in #(((
7990 '') as_dir=./ ;;
7991 */) ;;
7992 *) as_dir=$as_dir/ ;;
7993 esac
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7996 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000 done
8001 done
8002 IFS=$as_save_IFS
8003
8004 fi ;;
8005 esac
8006 fi
8007 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8008 if test -n "$DSYMUTIL"; then
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8010 printf "%s\n" "$DSYMUTIL" >&6; }
8011 else
8012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 printf "%s\n" "no" >&6; }
8014 fi
8015
8016
8017 fi
8018 if test -z "$ac_cv_prog_DSYMUTIL"; then
8019 ac_ct_DSYMUTIL=$DSYMUTIL
8020 # Extract the first word of "dsymutil", so it can be a program name with args.
8021 set dummy dsymutil; ac_word=$2
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 printf %s "checking for $ac_word... " >&6; }
8024 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8025 then :
8026 printf %s "(cached) " >&6
8027 else case e in #(
8028 e) if test -n "$ac_ct_DSYMUTIL"; then
8029 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8030 else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 for as_dir in $PATH
8033 do
8034 IFS=$as_save_IFS
8035 case $as_dir in #(((
8036 '') as_dir=./ ;;
8037 */) ;;
8038 *) as_dir=$as_dir/ ;;
8039 esac
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044 break 2
8045 fi
8046 done
8047 done
8048 IFS=$as_save_IFS
8049
8050 fi ;;
8051 esac
8052 fi
8053 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8054 if test -n "$ac_ct_DSYMUTIL"; then
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8056 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8057 else
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 printf "%s\n" "no" >&6; }
8060 fi
8061
8062 if test "x$ac_ct_DSYMUTIL" = x; then
8063 DSYMUTIL=":"
8064 else
8065 case $cross_compiling:$ac_tool_warned in
8066 yes:)
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069 ac_tool_warned=yes ;;
8070 esac
8071 DSYMUTIL=$ac_ct_DSYMUTIL
8072 fi
8073 else
8074 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8075 fi
8076
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8079 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 printf %s "checking for $ac_word... " >&6; }
8082 if test ${ac_cv_prog_NMEDIT+y}
8083 then :
8084 printf %s "(cached) " >&6
8085 else case e in #(
8086 e) if test -n "$NMEDIT"; then
8087 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8091 do
8092 IFS=$as_save_IFS
8093 case $as_dir in #(((
8094 '') as_dir=./ ;;
8095 */) ;;
8096 *) as_dir=$as_dir/ ;;
8097 esac
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104 done
8105 done
8106 IFS=$as_save_IFS
8107
8108 fi ;;
8109 esac
8110 fi
8111 NMEDIT=$ac_cv_prog_NMEDIT
8112 if test -n "$NMEDIT"; then
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8114 printf "%s\n" "$NMEDIT" >&6; }
8115 else
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 printf "%s\n" "no" >&6; }
8118 fi
8119
8120
8121 fi
8122 if test -z "$ac_cv_prog_NMEDIT"; then
8123 ac_ct_NMEDIT=$NMEDIT
8124 # Extract the first word of "nmedit", so it can be a program name with args.
8125 set dummy nmedit; ac_word=$2
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 printf %s "checking for $ac_word... " >&6; }
8128 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8129 then :
8130 printf %s "(cached) " >&6
8131 else case e in #(
8132 e) if test -n "$ac_ct_NMEDIT"; then
8133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138 IFS=$as_save_IFS
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8148 break 2
8149 fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154 fi ;;
8155 esac
8156 fi
8157 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8158 if test -n "$ac_ct_NMEDIT"; then
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8160 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8161 else
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 printf "%s\n" "no" >&6; }
8164 fi
8165
8166 if test "x$ac_ct_NMEDIT" = x; then
8167 NMEDIT=":"
8168 else
8169 case $cross_compiling:$ac_tool_warned in
8170 yes:)
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8172 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8173 ac_tool_warned=yes ;;
8174 esac
8175 NMEDIT=$ac_ct_NMEDIT
8176 fi
8177 else
8178 NMEDIT="$ac_cv_prog_NMEDIT"
8179 fi
8180
8181 if test -n "$ac_tool_prefix"; then
8182 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8183 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 printf %s "checking for $ac_word... " >&6; }
8186 if test ${ac_cv_prog_LIPO+y}
8187 then :
8188 printf %s "(cached) " >&6
8189 else case e in #(
8190 e) if test -n "$LIPO"; then
8191 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8192 else
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194 for as_dir in $PATH
8195 do
8196 IFS=$as_save_IFS
8197 case $as_dir in #(((
8198 '') as_dir=./ ;;
8199 */) ;;
8200 *) as_dir=$as_dir/ ;;
8201 esac
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8204 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8206 break 2
8207 fi
8208 done
8209 done
8210 IFS=$as_save_IFS
8211
8212 fi ;;
8213 esac
8214 fi
8215 LIPO=$ac_cv_prog_LIPO
8216 if test -n "$LIPO"; then
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8218 printf "%s\n" "$LIPO" >&6; }
8219 else
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 printf "%s\n" "no" >&6; }
8222 fi
8223
8224
8225 fi
8226 if test -z "$ac_cv_prog_LIPO"; then
8227 ac_ct_LIPO=$LIPO
8228 # Extract the first word of "lipo", so it can be a program name with args.
8229 set dummy lipo; ac_word=$2
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 printf %s "checking for $ac_word... " >&6; }
8232 if test ${ac_cv_prog_ac_ct_LIPO+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else case e in #(
8236 e) if test -n "$ac_ct_LIPO"; then
8237 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8238 else
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8241 do
8242 IFS=$as_save_IFS
8243 case $as_dir in #(((
8244 '') as_dir=./ ;;
8245 */) ;;
8246 *) as_dir=$as_dir/ ;;
8247 esac
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_LIPO="lipo"
8251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8252 break 2
8253 fi
8254 done
8255 done
8256 IFS=$as_save_IFS
8257
8258 fi ;;
8259 esac
8260 fi
8261 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8262 if test -n "$ac_ct_LIPO"; then
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8264 printf "%s\n" "$ac_ct_LIPO" >&6; }
8265 else
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 printf "%s\n" "no" >&6; }
8268 fi
8269
8270 if test "x$ac_ct_LIPO" = x; then
8271 LIPO=":"
8272 else
8273 case $cross_compiling:$ac_tool_warned in
8274 yes:)
8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8276 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8277 ac_tool_warned=yes ;;
8278 esac
8279 LIPO=$ac_ct_LIPO
8280 fi
8281 else
8282 LIPO="$ac_cv_prog_LIPO"
8283 fi
8284
8285 if test -n "$ac_tool_prefix"; then
8286 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8287 set dummy ${ac_tool_prefix}otool; ac_word=$2
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 printf %s "checking for $ac_word... " >&6; }
8290 if test ${ac_cv_prog_OTOOL+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) if test -n "$OTOOL"; then
8295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 case $as_dir in #(((
8302 '') as_dir=./ ;;
8303 */) ;;
8304 *) as_dir=$as_dir/ ;;
8305 esac
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi ;;
8317 esac
8318 fi
8319 OTOOL=$ac_cv_prog_OTOOL
8320 if test -n "$OTOOL"; then
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8322 printf "%s\n" "$OTOOL" >&6; }
8323 else
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 printf "%s\n" "no" >&6; }
8326 fi
8327
8328
8329 fi
8330 if test -z "$ac_cv_prog_OTOOL"; then
8331 ac_ct_OTOOL=$OTOOL
8332 # Extract the first word of "otool", so it can be a program name with args.
8333 set dummy otool; ac_word=$2
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335 printf %s "checking for $ac_word... " >&6; }
8336 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8337 then :
8338 printf %s "(cached) " >&6
8339 else case e in #(
8340 e) if test -n "$ac_ct_OTOOL"; then
8341 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346 IFS=$as_save_IFS
8347 case $as_dir in #(((
8348 '') as_dir=./ ;;
8349 */) ;;
8350 *) as_dir=$as_dir/ ;;
8351 esac
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8354 ac_cv_prog_ac_ct_OTOOL="otool"
8355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8356 break 2
8357 fi
8358 done
8359 done
8360 IFS=$as_save_IFS
8361
8362 fi ;;
8363 esac
8364 fi
8365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8366 if test -n "$ac_ct_OTOOL"; then
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8368 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8369 else
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 printf "%s\n" "no" >&6; }
8372 fi
8373
8374 if test "x$ac_ct_OTOOL" = x; then
8375 OTOOL=":"
8376 else
8377 case $cross_compiling:$ac_tool_warned in
8378 yes:)
8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381 ac_tool_warned=yes ;;
8382 esac
8383 OTOOL=$ac_ct_OTOOL
8384 fi
8385 else
8386 OTOOL="$ac_cv_prog_OTOOL"
8387 fi
8388
8389 if test -n "$ac_tool_prefix"; then
8390 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8393 printf %s "checking for $ac_word... " >&6; }
8394 if test ${ac_cv_prog_OTOOL64+y}
8395 then :
8396 printf %s "(cached) " >&6
8397 else case e in #(
8398 e) if test -n "$OTOOL64"; then
8399 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8400 else
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8403 do
8404 IFS=$as_save_IFS
8405 case $as_dir in #(((
8406 '') as_dir=./ ;;
8407 */) ;;
8408 *) as_dir=$as_dir/ ;;
8409 esac
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8412 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8414 break 2
8415 fi
8416 done
8417 done
8418 IFS=$as_save_IFS
8419
8420 fi ;;
8421 esac
8422 fi
8423 OTOOL64=$ac_cv_prog_OTOOL64
8424 if test -n "$OTOOL64"; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8426 printf "%s\n" "$OTOOL64" >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 printf "%s\n" "no" >&6; }
8430 fi
8431
8432
8433 fi
8434 if test -z "$ac_cv_prog_OTOOL64"; then
8435 ac_ct_OTOOL64=$OTOOL64
8436 # Extract the first word of "otool64", so it can be a program name with args.
8437 set dummy otool64; ac_word=$2
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 printf %s "checking for $ac_word... " >&6; }
8440 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else case e in #(
8444 e) if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 case $as_dir in #(((
8452 '') as_dir=./ ;;
8453 */) ;;
8454 *) as_dir=$as_dir/ ;;
8455 esac
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_ac_ct_OTOOL64="otool64"
8459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8460 break 2
8461 fi
8462 done
8463 done
8464 IFS=$as_save_IFS
8465
8466 fi ;;
8467 esac
8468 fi
8469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8470 if test -n "$ac_ct_OTOOL64"; then
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8472 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8473 else
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 printf "%s\n" "no" >&6; }
8476 fi
8477
8478 if test "x$ac_ct_OTOOL64" = x; then
8479 OTOOL64=":"
8480 else
8481 case $cross_compiling:$ac_tool_warned in
8482 yes:)
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8484 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8485 ac_tool_warned=yes ;;
8486 esac
8487 OTOOL64=$ac_ct_OTOOL64
8488 fi
8489 else
8490 OTOOL64="$ac_cv_prog_OTOOL64"
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8520 printf %s "checking for -single_module linker flag... " >&6; }
8521 if test ${lt_cv_apple_cc_single_mod+y}
8522 then :
8523 printf %s "(cached) " >&6
8524 else case e in #(
8525 e) lt_cv_apple_cc_single_mod=no
8526 if test -z "$LT_MULTI_MODULE"; then
8527 # By default we will add the -single_module flag. You can override
8528 # by either setting the environment variable LT_MULTI_MODULE
8529 # non-empty at configure time, or by adding -multi_module to the
8530 # link flags.
8531 rm -rf libconftest.dylib*
8532 echo "int foo(void){return 1;}" > conftest.c
8533 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8534 -dynamiclib -Wl,-single_module conftest.c" >&5
8535 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8537 _lt_result=$?
8538 # If there is a non-empty error log, and "single_module"
8539 # appears in it, assume the flag caused a linker warning
8540 if test -s conftest.err && $GREP single_module conftest.err; then
8541 cat conftest.err >&5
8542 # Otherwise, if the output was created with a 0 exit code from
8543 # the compiler, it worked.
8544 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8545 lt_cv_apple_cc_single_mod=yes
8546 else
8547 cat conftest.err >&5
8548 fi
8549 rm -rf libconftest.dylib*
8550 rm -f conftest.*
8551 fi ;;
8552 esac
8553 fi
8554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8555 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8556
8557 # Feature test to disable chained fixups since it is not
8558 # compatible with '-undefined dynamic_lookup'
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8560 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8561 if test ${lt_cv_support_no_fixup_chains+y}
8562 then :
8563 printf %s "(cached) " >&6
8564 else case e in #(
8565 e) save_LDFLAGS=$LDFLAGS
8566 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569
8570 int
8571 main (void)
8572 {
8573
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 if ac_fn_c_try_link "$LINENO"
8579 then :
8580 lt_cv_support_no_fixup_chains=yes
8581 else case e in #(
8582 e) lt_cv_support_no_fixup_chains=no
8583 ;;
8584 esac
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8587 conftest$ac_exeext conftest.$ac_ext
8588 LDFLAGS=$save_LDFLAGS
8589
8590 ;;
8591 esac
8592 fi
8593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8594 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8595
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8597 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8598 if test ${lt_cv_ld_exported_symbols_list+y}
8599 then :
8600 printf %s "(cached) " >&6
8601 else case e in #(
8602 e) lt_cv_ld_exported_symbols_list=no
8603 save_LDFLAGS=$LDFLAGS
8604 echo "_main" > conftest.sym
8605 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608
8609 int
8610 main (void)
8611 {
8612
8613 ;
8614 return 0;
8615 }
8616 _ACEOF
8617 if ac_fn_c_try_link "$LINENO"
8618 then :
8619 lt_cv_ld_exported_symbols_list=yes
8620 else case e in #(
8621 e) lt_cv_ld_exported_symbols_list=no ;;
8622 esac
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LDFLAGS=$save_LDFLAGS
8627 ;;
8628 esac
8629 fi
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8631 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8632
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8634 printf %s "checking for -force_load linker flag... " >&6; }
8635 if test ${lt_cv_ld_force_load+y}
8636 then :
8637 printf %s "(cached) " >&6
8638 else case e in #(
8639 e) lt_cv_ld_force_load=no
8640 cat > conftest.c << _LT_EOF
8641 int forced_loaded() { return 2;}
8642 _LT_EOF
8643 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8644 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8645 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8646 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8647 echo "$RANLIB libconftest.a" >&5
8648 $RANLIB libconftest.a 2>&5
8649 cat > conftest.c << _LT_EOF
8650 int main(void) { return 0;}
8651 _LT_EOF
8652 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8653 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8654 _lt_result=$?
8655 if test -s conftest.err && $GREP force_load conftest.err; then
8656 cat conftest.err >&5
8657 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8658 lt_cv_ld_force_load=yes
8659 else
8660 cat conftest.err >&5
8661 fi
8662 rm -f conftest.err libconftest.a conftest conftest.c
8663 rm -rf conftest.dSYM
8664 ;;
8665 esac
8666 fi
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8668 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8669 case $host_os in
8670 rhapsody* | darwin1.[012])
8671 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8672 darwin1.*)
8673 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8674 darwin*)
8675 case $MACOSX_DEPLOYMENT_TARGET,$host in
8676 10.[012],*|,*powerpc*-darwin[5-8]*)
8677 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8678 *)
8679 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8680 if test yes = "$lt_cv_support_no_fixup_chains"; then
8681 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8682 fi
8683 ;;
8684 esac
8685 ;;
8686 esac
8687 if test yes = "$lt_cv_apple_cc_single_mod"; then
8688 _lt_dar_single_mod='$single_module'
8689 fi
8690 _lt_dar_needs_single_mod=no
8691 case $host_os in
8692 rhapsody* | darwin1.*)
8693 _lt_dar_needs_single_mod=yes ;;
8694 darwin*)
8695 # When targeting Mac OS X 10.4 (darwin 8) or later,
8696 # -single_module is the default and -multi_module is unsupported.
8697 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8698 # target any OS version that needs -single_module.
8699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8700 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8701 _lt_dar_needs_single_mod=yes ;;
8702 esac
8703 ;;
8704 esac
8705 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8706 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8707 else
8708 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8709 fi
8710 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8711 _lt_dsymutil='~$DSYMUTIL $lib || :'
8712 else
8713 _lt_dsymutil=
8714 fi
8715 ;;
8716 esac
8717
8718 # func_munge_path_list VARIABLE PATH
8719 # -----------------------------------
8720 # VARIABLE is name of variable containing _space_ separated list of
8721 # directories to be munged by the contents of PATH, which is string
8722 # having a format:
8723 # "DIR[:DIR]:"
8724 # string "DIR[ DIR]" will be prepended to VARIABLE
8725 # ":DIR[:DIR]"
8726 # string "DIR[ DIR]" will be appended to VARIABLE
8727 # "DIRP[:DIRP]::[DIRA:]DIRA"
8728 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8729 # "DIRA[ DIRA]" will be appended to VARIABLE
8730 # "DIR[:DIR]"
8731 # VARIABLE will be replaced by "DIR[ DIR]"
8732 func_munge_path_list ()
8733 {
8734 case x$2 in
8735 x)
8736 ;;
8737 *:)
8738 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8739 ;;
8740 x:*)
8741 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8742 ;;
8743 *::*)
8744 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8745 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8746 ;;
8747 *)
8748 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8749 ;;
8750 esac
8751 }
8752
8753 ac_header= ac_cache=
8754 for ac_item in $ac_header_c_list
8755 do
8756 if test $ac_cache; then
8757 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8758 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8759 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8760 fi
8761 ac_header= ac_cache=
8762 elif test $ac_header; then
8763 ac_cache=$ac_item
8764 else
8765 ac_header=$ac_item
8766 fi
8767 done
8768
8769
8770
8771
8772
8773
8774
8775
8776 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8777 then :
8778
8779 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8780
8781 fi
8782 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8783 "
8784 if test "x$ac_cv_header_dlfcn_h" = xyes
8785 then :
8786 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8787
8788 fi
8789
8790
8791
8792
8793
8794 # Set options
8795 # Check whether --enable-shared was given.
8796 if test ${enable_shared+y}
8797 then :
8798 enableval=$enable_shared; p=${PACKAGE-default}
8799 case $enableval in
8800 yes) enable_shared=yes ;;
8801 no) enable_shared=no ;;
8802 *)
8803 enable_shared=no
8804 # Look at the argument we got. We use all the common list separators.
8805 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8806 for pkg in $enableval; do
8807 IFS=$lt_save_ifs
8808 if test "X$pkg" = "X$p"; then
8809 enable_shared=yes
8810 fi
8811 done
8812 IFS=$lt_save_ifs
8813 ;;
8814 esac
8815 else case e in #(
8816 e) enable_shared=yes ;;
8817 esac
8818 fi
8819
8820
8821
8822
8823
8824
8825
8826 # Check whether --enable-pic was given.
8827 if test ${enable_pic+y}
8828 then :
8829 enableval=$enable_pic; lt_p=${PACKAGE-default}
8830 case $enableval in
8831 yes|no) pic_mode=$enableval ;;
8832 *)
8833 pic_mode=default
8834 # Look at the argument we got. We use all the common list separators.
8835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8836 for lt_pkg in $enableval; do
8837 IFS=$lt_save_ifs
8838 if test "X$lt_pkg" = "X$lt_p"; then
8839 pic_mode=yes
8840 fi
8841 done
8842 IFS=$lt_save_ifs
8843 ;;
8844 esac
8845 else case e in #(
8846 e) # Check whether --with-pic was given.
8847 if test ${with_pic+y}
8848 then :
8849 withval=$with_pic; lt_p=${PACKAGE-default}
8850 case $withval in
8851 yes|no) pic_mode=$withval ;;
8852 *)
8853 pic_mode=default
8854 # Look at the argument we got. We use all the common list separators.
8855 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8856 for lt_pkg in $withval; do
8857 IFS=$lt_save_ifs
8858 if test "X$lt_pkg" = "X$lt_p"; then
8859 pic_mode=yes
8860 fi
8861 done
8862 IFS=$lt_save_ifs
8863 ;;
8864 esac
8865 else case e in #(
8866 e) pic_mode=yes ;;
8867 esac
8868 fi
8869
8870 ;;
8871 esac
8872 fi
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882 enable_dlopen=no
8883
8884
8885 enable_win32_dll=no
8886
8887
8888
8889 # Check whether --enable-static was given.
8890 if test ${enable_static+y}
8891 then :
8892 enableval=$enable_static; p=${PACKAGE-default}
8893 case $enableval in
8894 yes) enable_static=yes ;;
8895 no) enable_static=no ;;
8896 *)
8897 enable_static=no
8898 # Look at the argument we got. We use all the common list separators.
8899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8900 for pkg in $enableval; do
8901 IFS=$lt_save_ifs
8902 if test "X$pkg" = "X$p"; then
8903 enable_static=yes
8904 fi
8905 done
8906 IFS=$lt_save_ifs
8907 ;;
8908 esac
8909 else case e in #(
8910 e) enable_static=yes ;;
8911 esac
8912 fi
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 # Check whether --enable-fast-install was given.
8924 if test ${enable_fast_install+y}
8925 then :
8926 enableval=$enable_fast_install; p=${PACKAGE-default}
8927 case $enableval in
8928 yes) enable_fast_install=yes ;;
8929 no) enable_fast_install=no ;;
8930 *)
8931 enable_fast_install=no
8932 # Look at the argument we got. We use all the common list separators.
8933 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8934 for pkg in $enableval; do
8935 IFS=$lt_save_ifs
8936 if test "X$pkg" = "X$p"; then
8937 enable_fast_install=yes
8938 fi
8939 done
8940 IFS=$lt_save_ifs
8941 ;;
8942 esac
8943 else case e in #(
8944 e) enable_fast_install=yes ;;
8945 esac
8946 fi
8947
8948
8949
8950
8951
8952
8953
8954
8955 shared_archive_member_spec=
8956 case $host,$enable_shared in
8957 power*-*-aix[5-9]*,yes)
8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8959 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8960 # Check whether --enable-aix-soname was given.
8961 if test ${enable_aix_soname+y}
8962 then :
8963 enableval=$enable_aix_soname; case $enableval in
8964 aix|svr4|both)
8965 ;;
8966 *)
8967 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
8968 ;;
8969 esac
8970 lt_cv_with_aix_soname=$enable_aix_soname
8971 else case e in #(
8972 e) # Check whether --with-aix-soname was given.
8973 if test ${with_aix_soname+y}
8974 then :
8975 withval=$with_aix_soname; case $withval in
8976 aix|svr4|both)
8977 ;;
8978 *)
8979 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8980 ;;
8981 esac
8982 lt_cv_with_aix_soname=$with_aix_soname
8983 else case e in #(
8984 e) if test ${lt_cv_with_aix_soname+y}
8985 then :
8986 printf %s "(cached) " >&6
8987 else case e in #(
8988 e) lt_cv_with_aix_soname=aix ;;
8989 esac
8990 fi
8991 ;;
8992 esac
8993 fi
8994
8995 enable_aix_soname=$lt_cv_with_aix_soname ;;
8996 esac
8997 fi
8998
8999 with_aix_soname=$enable_aix_soname
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9001 printf "%s\n" "$with_aix_soname" >&6; }
9002 if test aix != "$with_aix_soname"; then
9003 # For the AIX way of multilib, we name the shared archive member
9004 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9005 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9006 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9007 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9008 if test 64 = "${OBJECT_MODE-32}"; then
9009 shared_archive_member_spec=shr_64
9010 else
9011 shared_archive_member_spec=shr
9012 fi
9013 fi
9014 ;;
9015 *)
9016 with_aix_soname=aix
9017 ;;
9018 esac
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029 # This can be used to rebuild libtool when needed
9030 LIBTOOL_DEPS=$ltmain
9031
9032 # Always use our own libtool.
9033 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 test -z "$LN_S" && LN_S="ln -s"
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079 if test -n "${ZSH_VERSION+set}"; then
9080 setopt NO_GLOB_SUBST
9081 fi
9082
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9084 printf %s "checking for objdir... " >&6; }
9085 if test ${lt_cv_objdir+y}
9086 then :
9087 printf %s "(cached) " >&6
9088 else case e in #(
9089 e) rm -f .libs 2>/dev/null
9090 mkdir .libs 2>/dev/null
9091 if test -d .libs; then
9092 lt_cv_objdir=.libs
9093 else
9094 # MS-DOS does not allow filenames that begin with a dot.
9095 lt_cv_objdir=_libs
9096 fi
9097 rmdir .libs 2>/dev/null ;;
9098 esac
9099 fi
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9101 printf "%s\n" "$lt_cv_objdir" >&6; }
9102 objdir=$lt_cv_objdir
9103
9104
9105
9106
9107
9108 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9109
9110
9111
9112
9113 case $host_os in
9114 aix3*)
9115 # AIX sometimes has problems with the GCC collect2 program. For some
9116 # reason, if we set the COLLECT_NAMES environment variable, the problems
9117 # vanish in a puff of smoke.
9118 if test set != "${COLLECT_NAMES+set}"; then
9119 COLLECT_NAMES=
9120 export COLLECT_NAMES
9121 fi
9122 ;;
9123 esac
9124
9125 # Global variables:
9126 ofile=libtool
9127 can_build_shared=yes
9128
9129 # All known linkers require a '.a' archive for static linking (except MSVC and
9130 # ICC, which need '.lib').
9131 libext=a
9132
9133 with_gnu_ld=$lt_cv_prog_gnu_ld
9134
9135 old_CC=$CC
9136 old_CFLAGS=$CFLAGS
9137
9138 # Set sane defaults for various variables
9139 test -z "$CC" && CC=cc
9140 test -z "$LTCC" && LTCC=$CC
9141 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9142 test -z "$LD" && LD=ld
9143 test -z "$ac_objext" && ac_objext=o
9144
9145 func_cc_basename $compiler
9146 cc_basename=$func_cc_basename_result
9147
9148
9149 # Only perform the check for file, if the check method requires it
9150 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9151 case $deplibs_check_method in
9152 file_magic*)
9153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9155 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9156 if test ${lt_cv_path_MAGIC_CMD+y}
9157 then :
9158 printf %s "(cached) " >&6
9159 else case e in #(
9160 e) case $MAGIC_CMD in
9161 [\\/*] | ?:[\\/]*)
9162 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9163 ;;
9164 *)
9165 lt_save_MAGIC_CMD=$MAGIC_CMD
9166 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9168 for ac_dir in $ac_dummy; do
9169 IFS=$lt_save_ifs
9170 test -z "$ac_dir" && ac_dir=.
9171 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9172 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9173 if test -n "$file_magic_test_file"; then
9174 case $deplibs_check_method in
9175 "file_magic "*)
9176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9177 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9179 $EGREP "$file_magic_regex" > /dev/null; then
9180 :
9181 else
9182 cat <<_LT_EOF 1>&2
9183
9184 *** Warning: the command libtool uses to detect shared libraries,
9185 *** $file_magic_cmd, produces output that libtool cannot recognize.
9186 *** The result is that libtool may fail to recognize shared libraries
9187 *** as such. This will affect the creation of libtool libraries that
9188 *** depend on shared libraries, but programs linked with such libtool
9189 *** libraries will work regardless of this problem. Nevertheless, you
9190 *** may want to report the problem to your system manager and/or to
9191 *** [email protected]
9192
9193 _LT_EOF
9194 fi ;;
9195 esac
9196 fi
9197 break
9198 fi
9199 done
9200 IFS=$lt_save_ifs
9201 MAGIC_CMD=$lt_save_MAGIC_CMD
9202 ;;
9203 esac ;;
9204 esac
9205 fi
9206
9207 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9208 if test -n "$MAGIC_CMD"; then
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9210 printf "%s\n" "$MAGIC_CMD" >&6; }
9211 else
9212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 printf "%s\n" "no" >&6; }
9214 fi
9215
9216
9217
9218
9219
9220 if test -z "$lt_cv_path_MAGIC_CMD"; then
9221 if test -n "$ac_tool_prefix"; then
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9223 printf %s "checking for file... " >&6; }
9224 if test ${lt_cv_path_MAGIC_CMD+y}
9225 then :
9226 printf %s "(cached) " >&6
9227 else case e in #(
9228 e) case $MAGIC_CMD in
9229 [\\/*] | ?:[\\/]*)
9230 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9231 ;;
9232 *)
9233 lt_save_MAGIC_CMD=$MAGIC_CMD
9234 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9235 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9236 for ac_dir in $ac_dummy; do
9237 IFS=$lt_save_ifs
9238 test -z "$ac_dir" && ac_dir=.
9239 if test -f "$ac_dir/file"; then
9240 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9241 if test -n "$file_magic_test_file"; then
9242 case $deplibs_check_method in
9243 "file_magic "*)
9244 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9245 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9246 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9247 $EGREP "$file_magic_regex" > /dev/null; then
9248 :
9249 else
9250 cat <<_LT_EOF 1>&2
9251
9252 *** Warning: the command libtool uses to detect shared libraries,
9253 *** $file_magic_cmd, produces output that libtool cannot recognize.
9254 *** The result is that libtool may fail to recognize shared libraries
9255 *** as such. This will affect the creation of libtool libraries that
9256 *** depend on shared libraries, but programs linked with such libtool
9257 *** libraries will work regardless of this problem. Nevertheless, you
9258 *** may want to report the problem to your system manager and/or to
9259 *** [email protected]
9260
9261 _LT_EOF
9262 fi ;;
9263 esac
9264 fi
9265 break
9266 fi
9267 done
9268 IFS=$lt_save_ifs
9269 MAGIC_CMD=$lt_save_MAGIC_CMD
9270 ;;
9271 esac ;;
9272 esac
9273 fi
9274
9275 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9276 if test -n "$MAGIC_CMD"; then
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9278 printf "%s\n" "$MAGIC_CMD" >&6; }
9279 else
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281 printf "%s\n" "no" >&6; }
9282 fi
9283
9284
9285 else
9286 MAGIC_CMD=:
9287 fi
9288 fi
9289
9290 fi
9291 ;;
9292 esac
9293
9294 # Use C for the default configuration in the libtool script
9295
9296 lt_save_CC=$CC
9297 ac_ext=c
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303
9304 # Source file extension for C test sources.
9305 ac_ext=c
9306
9307 # Object file extension for compiled C test sources.
9308 objext=o
9309 objext=$objext
9310
9311 # Code to be used in simple compile tests
9312 lt_simple_compile_test_code="int some_variable = 0;"
9313
9314 # Code to be used in simple link tests
9315 lt_simple_link_test_code='int main(void){return(0);}'
9316
9317
9318
9319
9320
9321
9322
9323 # If no C compiler was specified, use CC.
9324 LTCC=${LTCC-"$CC"}
9325
9326 # If no C compiler flags were specified, use CFLAGS.
9327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9328
9329 # Allow CC to be a program name with arguments.
9330 compiler=$CC
9331
9332 # Save the default compiler, since it gets overwritten when the other
9333 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9334 compiler_DEFAULT=$CC
9335
9336 # save warnings/boilerplate of simple test code
9337 ac_outfile=conftest.$ac_objext
9338 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9340 _lt_compiler_boilerplate=`cat conftest.err`
9341 $RM conftest*
9342
9343 ac_outfile=conftest.$ac_objext
9344 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9346 _lt_linker_boilerplate=`cat conftest.err`
9347 $RM -r conftest*
9348
9349
9350 ## CAVEAT EMPTOR:
9351 ## There is no encapsulation within the following macros, do not change
9352 ## the running order or otherwise move them around unless you know exactly
9353 ## what you are doing...
9354 if test -n "$compiler"; then
9355
9356 lt_prog_compiler_no_builtin_flag=
9357
9358 if test yes = "$GCC"; then
9359 case $cc_basename in
9360 nvcc*)
9361 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9362 *)
9363 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9364 esac
9365
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9367 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9368 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9369 then :
9370 printf %s "(cached) " >&6
9371 else case e in #(
9372 e) lt_cv_prog_compiler_rtti_exceptions=no
9373 ac_outfile=conftest.$ac_objext
9374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9375 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9376 # Insert the option either (1) after the last *FLAGS variable, or
9377 # (2) before a word containing "conftest.", or (3) at the end.
9378 # Note that $ac_compile itself does not contain backslashes and begins
9379 # with a dollar sign (not a hyphen), so the echo should work correctly.
9380 # The option is referenced via a variable to avoid confusing sed.
9381 lt_compile=`echo "$ac_compile" | $SED \
9382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9384 -e 's:$: $lt_compiler_flag:'`
9385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9386 (eval "$lt_compile" 2>conftest.err)
9387 ac_status=$?
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 if (exit $ac_status) && test -s "$ac_outfile"; then
9391 # The compiler can only warn and ignore the option if not recognized
9392 # So say no if there are warnings other than the usual output.
9393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9396 lt_cv_prog_compiler_rtti_exceptions=yes
9397 fi
9398 fi
9399 $RM conftest*
9400 ;;
9401 esac
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9404 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9405
9406 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9407 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9408 else
9409 :
9410 fi
9411
9412 fi
9413
9414
9415
9416
9417
9418
9419 lt_prog_compiler_wl=
9420 lt_prog_compiler_pic=
9421 lt_prog_compiler_static=
9422
9423
9424 if test yes = "$GCC"; then
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_static='-static'
9427
9428 case $host_os in
9429 aix*)
9430 # All AIX code is PIC.
9431 if test ia64 = "$host_cpu"; then
9432 # AIX 5 now supports IA64 processor
9433 lt_prog_compiler_static='-Bstatic'
9434 fi
9435 lt_prog_compiler_pic='-fPIC'
9436 ;;
9437
9438 amigaos*)
9439 case $host_cpu in
9440 powerpc)
9441 # see comment about AmigaOS4 .so support
9442 lt_prog_compiler_pic='-fPIC'
9443 ;;
9444 m68k)
9445 # FIXME: we need at least 68020 code to build shared libraries, but
9446 # adding the '-m68020' flag to GCC prevents building anything better,
9447 # like '-m68040'.
9448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9449 ;;
9450 esac
9451 ;;
9452
9453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9454 # PIC is the default for these OSes.
9455 ;;
9456
9457 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9458 # This hack is so that the source file can tell whether it is being
9459 # built for inclusion in a dll (and should export symbols for example).
9460 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9461 # (--disable-auto-import) libraries
9462 lt_prog_compiler_pic='-DDLL_EXPORT'
9463 case $host_os in
9464 os2*)
9465 lt_prog_compiler_static='$wl-static'
9466 ;;
9467 esac
9468 ;;
9469
9470 darwin* | rhapsody*)
9471 # PIC is the default on this platform
9472 # Common symbols not allowed in MH_DYLIB files
9473 lt_prog_compiler_pic='-fno-common'
9474 ;;
9475
9476 haiku*)
9477 # PIC is the default for Haiku.
9478 # The "-static" flag exists, but is broken.
9479 lt_prog_compiler_static=
9480 ;;
9481
9482 hpux*)
9483 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9484 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9485 # sets the default TLS model and affects inlining.
9486 case $host_cpu in
9487 hppa*64*)
9488 # +Z the default
9489 ;;
9490 *)
9491 lt_prog_compiler_pic='-fPIC'
9492 ;;
9493 esac
9494 ;;
9495
9496 interix[3-9]*)
9497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9498 # Instead, we relocate shared libraries at runtime.
9499 ;;
9500
9501 msdosdjgpp*)
9502 # Just because we use GCC doesn't mean we suddenly get shared libraries
9503 # on systems that don't support them.
9504 lt_prog_compiler_can_build_shared=no
9505 enable_shared=no
9506 ;;
9507
9508 *nto* | *qnx*)
9509 # QNX uses GNU C++, but need to define -shared option too, otherwise
9510 # it will coredump.
9511 lt_prog_compiler_pic='-fPIC -shared'
9512 ;;
9513
9514 sysv4*MP*)
9515 if test -d /usr/nec; then
9516 lt_prog_compiler_pic=-Kconform_pic
9517 fi
9518 ;;
9519
9520 *)
9521 lt_prog_compiler_pic='-fPIC'
9522 ;;
9523 esac
9524
9525 case $cc_basename in
9526 nvcc*) # Cuda Compiler Driver 2.2
9527 lt_prog_compiler_wl='-Xlinker '
9528 if test -n "$lt_prog_compiler_pic"; then
9529 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9530 fi
9531 ;;
9532 esac
9533 else
9534 # PORTME Check for flag to pass linker flags through the system compiler.
9535 case $host_os in
9536 aix*)
9537 lt_prog_compiler_wl='-Wl,'
9538 if test ia64 = "$host_cpu"; then
9539 # AIX 5 now supports IA64 processor
9540 lt_prog_compiler_static='-Bstatic'
9541 else
9542 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9543 fi
9544 ;;
9545
9546 darwin* | rhapsody*)
9547 # PIC is the default on this platform
9548 # Common symbols not allowed in MH_DYLIB files
9549 lt_prog_compiler_pic='-fno-common'
9550 case $cc_basename in
9551 nagfor*)
9552 # NAG Fortran compiler
9553 lt_prog_compiler_wl='-Wl,-Wl,,'
9554 lt_prog_compiler_pic='-PIC'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557 esac
9558 ;;
9559
9560 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9561 # This hack is so that the source file can tell whether it is being
9562 # built for inclusion in a dll (and should export symbols for example).
9563 lt_prog_compiler_pic='-DDLL_EXPORT'
9564 case $host_os in
9565 os2*)
9566 lt_prog_compiler_static='$wl-static'
9567 ;;
9568 esac
9569 ;;
9570
9571 hpux9* | hpux10* | hpux11*)
9572 lt_prog_compiler_wl='-Wl,'
9573 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9574 # not for PA HP-UX.
9575 case $host_cpu in
9576 hppa*64*|ia64*)
9577 # +Z the default
9578 ;;
9579 *)
9580 lt_prog_compiler_pic='+Z'
9581 ;;
9582 esac
9583 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9584 lt_prog_compiler_static='$wl-a ${wl}archive'
9585 ;;
9586
9587 irix5* | irix6* | nonstopux*)
9588 lt_prog_compiler_wl='-Wl,'
9589 # PIC (with -KPIC) is the default.
9590 lt_prog_compiler_static='-non_shared'
9591 ;;
9592
9593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9594 case $cc_basename in
9595 # old Intel for x86_64, which still supported -KPIC.
9596 ecc*)
9597 lt_prog_compiler_wl='-Wl,'
9598 lt_prog_compiler_pic='-KPIC'
9599 lt_prog_compiler_static='-static'
9600 ;;
9601 *flang* | ftn | f18* | f95*)
9602 # Flang compiler.
9603 lt_prog_compiler_wl='-Wl,'
9604 lt_prog_compiler_pic='-fPIC'
9605 lt_prog_compiler_static='-static'
9606 ;;
9607 # icc used to be incompatible with GCC.
9608 # ICC 10 doesn't accept -KPIC any more.
9609 icc* | ifort*)
9610 lt_prog_compiler_wl='-Wl,'
9611 lt_prog_compiler_pic='-fPIC'
9612 lt_prog_compiler_static='-static'
9613 ;;
9614 # Lahey Fortran 8.1.
9615 lf95*)
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='--shared'
9618 lt_prog_compiler_static='--static'
9619 ;;
9620 nagfor*)
9621 # NAG Fortran compiler
9622 lt_prog_compiler_wl='-Wl,-Wl,,'
9623 lt_prog_compiler_pic='-PIC'
9624 lt_prog_compiler_static='-Bstatic'
9625 ;;
9626 tcc*)
9627 # Fabrice Bellard et al's Tiny C Compiler
9628 lt_prog_compiler_wl='-Wl,'
9629 lt_prog_compiler_pic='-fPIC'
9630 lt_prog_compiler_static='-static'
9631 ;;
9632 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9633 # Portland Group compilers (*not* the Pentium gcc compiler,
9634 # which looks to be a dead project)
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-fpic'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
9639 ccc*)
9640 lt_prog_compiler_wl='-Wl,'
9641 # All Alpha code is PIC.
9642 lt_prog_compiler_static='-non_shared'
9643 ;;
9644 xl* | bgxl* | bgf* | mpixl*)
9645 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-qpic'
9648 lt_prog_compiler_static='-qstaticlink'
9649 ;;
9650 *)
9651 case `$CC -V 2>&1 | $SED 5q` in
9652 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9653 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9654 lt_prog_compiler_pic='-KPIC'
9655 lt_prog_compiler_static='-Bstatic'
9656 lt_prog_compiler_wl=''
9657 ;;
9658 *Sun\ F* | *Sun*Fortran*)
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 lt_prog_compiler_wl='-Qoption ld '
9662 ;;
9663 *Sun\ C*)
9664 # Sun C 5.9
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9667 lt_prog_compiler_wl='-Wl,'
9668 ;;
9669 *Intel*\ [CF]*Compiler*)
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_pic='-fPIC'
9672 lt_prog_compiler_static='-static'
9673 ;;
9674 *Portland\ Group*)
9675 lt_prog_compiler_wl='-Wl,'
9676 lt_prog_compiler_pic='-fpic'
9677 lt_prog_compiler_static='-Bstatic'
9678 ;;
9679 esac
9680 ;;
9681 esac
9682 ;;
9683
9684 newsos6)
9685 lt_prog_compiler_pic='-KPIC'
9686 lt_prog_compiler_static='-Bstatic'
9687 ;;
9688
9689 *-mlibc)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='-fPIC'
9692 lt_prog_compiler_static='-static'
9693 ;;
9694
9695 *nto* | *qnx*)
9696 # QNX uses GNU C++, but need to define -shared option too, otherwise
9697 # it will coredump.
9698 lt_prog_compiler_pic='-fPIC -shared'
9699 ;;
9700
9701 osf3* | osf4* | osf5*)
9702 lt_prog_compiler_wl='-Wl,'
9703 # All OSF/1 code is PIC.
9704 lt_prog_compiler_static='-non_shared'
9705 ;;
9706
9707 rdos*)
9708 lt_prog_compiler_static='-non_shared'
9709 ;;
9710
9711 serenity*)
9712 ;;
9713
9714 solaris*)
9715 lt_prog_compiler_pic='-KPIC'
9716 lt_prog_compiler_static='-Bstatic'
9717 case $cc_basename in
9718 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9719 lt_prog_compiler_wl='-Qoption ld ';;
9720 *)
9721 lt_prog_compiler_wl='-Wl,';;
9722 esac
9723 ;;
9724
9725 sunos4*)
9726 lt_prog_compiler_wl='-Qoption ld '
9727 lt_prog_compiler_pic='-PIC'
9728 lt_prog_compiler_static='-Bstatic'
9729 ;;
9730
9731 sysv4 | sysv4.2uw2* | sysv4.3*)
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 ;;
9736
9737 sysv4*MP*)
9738 if test -d /usr/nec; then
9739 lt_prog_compiler_pic='-Kconform_pic'
9740 lt_prog_compiler_static='-Bstatic'
9741 fi
9742 ;;
9743
9744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9745 lt_prog_compiler_wl='-Wl,'
9746 lt_prog_compiler_pic='-KPIC'
9747 lt_prog_compiler_static='-Bstatic'
9748 ;;
9749
9750 unicos*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_can_build_shared=no
9753 ;;
9754
9755 uts4*)
9756 lt_prog_compiler_pic='-pic'
9757 lt_prog_compiler_static='-Bstatic'
9758 ;;
9759
9760 *)
9761 lt_prog_compiler_can_build_shared=no
9762 ;;
9763 esac
9764 fi
9765
9766 case $host_os in
9767 # For platforms that do not support PIC, -DPIC is meaningless:
9768 *djgpp*)
9769 lt_prog_compiler_pic=
9770 ;;
9771 *)
9772 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9773 ;;
9774 esac
9775
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9777 printf %s "checking for $compiler option to produce PIC... " >&6; }
9778 if test ${lt_cv_prog_compiler_pic+y}
9779 then :
9780 printf %s "(cached) " >&6
9781 else case e in #(
9782 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9783 esac
9784 fi
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9786 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9787 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9788
9789 #
9790 # Check to make sure the PIC flag actually works.
9791 #
9792 if test -n "$lt_prog_compiler_pic"; then
9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9794 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9795 if test ${lt_cv_prog_compiler_pic_works+y}
9796 then :
9797 printf %s "(cached) " >&6
9798 else case e in #(
9799 e) lt_cv_prog_compiler_pic_works=no
9800 ac_outfile=conftest.$ac_objext
9801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9803 # Insert the option either (1) after the last *FLAGS variable, or
9804 # (2) before a word containing "conftest.", or (3) at the end.
9805 # Note that $ac_compile itself does not contain backslashes and begins
9806 # with a dollar sign (not a hyphen), so the echo should work correctly.
9807 # The option is referenced via a variable to avoid confusing sed.
9808 lt_compile=`echo "$ac_compile" | $SED \
9809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9811 -e 's:$: $lt_compiler_flag:'`
9812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9813 (eval "$lt_compile" 2>conftest.err)
9814 ac_status=$?
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 if (exit $ac_status) && test -s "$ac_outfile"; then
9818 # The compiler can only warn and ignore the option if not recognized
9819 # So say no if there are warnings other than the usual output.
9820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9823 lt_cv_prog_compiler_pic_works=yes
9824 fi
9825 fi
9826 $RM conftest*
9827 ;;
9828 esac
9829 fi
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9831 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9832
9833 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9834 case $lt_prog_compiler_pic in
9835 "" | " "*) ;;
9836 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9837 esac
9838 else
9839 lt_prog_compiler_pic=
9840 lt_prog_compiler_can_build_shared=no
9841 fi
9842
9843 fi
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 #
9856 # Check to make sure the static flag actually works.
9857 #
9858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9860 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9861 if test ${lt_cv_prog_compiler_static_works+y}
9862 then :
9863 printf %s "(cached) " >&6
9864 else case e in #(
9865 e) lt_cv_prog_compiler_static_works=no
9866 save_LDFLAGS=$LDFLAGS
9867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9868 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9870 # The linker can only warn and ignore the option if not recognized
9871 # So say no if there are warnings
9872 if test -s conftest.err; then
9873 # Append any errors to the config.log.
9874 cat conftest.err 1>&5
9875 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9877 if diff conftest.exp conftest.er2 >/dev/null; then
9878 lt_cv_prog_compiler_static_works=yes
9879 fi
9880 else
9881 lt_cv_prog_compiler_static_works=yes
9882 fi
9883 fi
9884 $RM -r conftest*
9885 LDFLAGS=$save_LDFLAGS
9886 ;;
9887 esac
9888 fi
9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9890 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9891
9892 if test yes = "$lt_cv_prog_compiler_static_works"; then
9893 :
9894 else
9895 lt_prog_compiler_static=
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9905 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9906 if test ${lt_cv_prog_compiler_c_o+y}
9907 then :
9908 printf %s "(cached) " >&6
9909 else case e in #(
9910 e) lt_cv_prog_compiler_c_o=no
9911 $RM -r conftest 2>/dev/null
9912 mkdir conftest
9913 cd conftest
9914 mkdir out
9915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9916
9917 lt_compiler_flag="-o out/conftest2.$ac_objext"
9918 # Insert the option either (1) after the last *FLAGS variable, or
9919 # (2) before a word containing "conftest.", or (3) at the end.
9920 # Note that $ac_compile itself does not contain backslashes and begins
9921 # with a dollar sign (not a hyphen), so the echo should work correctly.
9922 lt_compile=`echo "$ac_compile" | $SED \
9923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9925 -e 's:$: $lt_compiler_flag:'`
9926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9927 (eval "$lt_compile" 2>out/conftest.err)
9928 ac_status=$?
9929 cat out/conftest.err >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9932 then
9933 # The compiler can only warn and ignore the option if not recognized
9934 # So say no if there are warnings
9935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9938 lt_cv_prog_compiler_c_o=yes
9939 fi
9940 fi
9941 chmod u+w . 2>&5
9942 $RM conftest*
9943 # SGI C++ compiler will create directory out/ii_files/ for
9944 # template instantiation
9945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9946 $RM out/* && rmdir out
9947 cd ..
9948 $RM -r conftest
9949 $RM conftest*
9950 ;;
9951 esac
9952 fi
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9954 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9955
9956
9957
9958
9959
9960
9961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9962 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9963 if test ${lt_cv_prog_compiler_c_o+y}
9964 then :
9965 printf %s "(cached) " >&6
9966 else case e in #(
9967 e) lt_cv_prog_compiler_c_o=no
9968 $RM -r conftest 2>/dev/null
9969 mkdir conftest
9970 cd conftest
9971 mkdir out
9972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9973
9974 lt_compiler_flag="-o out/conftest2.$ac_objext"
9975 # Insert the option either (1) after the last *FLAGS variable, or
9976 # (2) before a word containing "conftest.", or (3) at the end.
9977 # Note that $ac_compile itself does not contain backslashes and begins
9978 # with a dollar sign (not a hyphen), so the echo should work correctly.
9979 lt_compile=`echo "$ac_compile" | $SED \
9980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9982 -e 's:$: $lt_compiler_flag:'`
9983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9984 (eval "$lt_compile" 2>out/conftest.err)
9985 ac_status=$?
9986 cat out/conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9989 then
9990 # The compiler can only warn and ignore the option if not recognized
9991 # So say no if there are warnings
9992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9993 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9994 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9995 lt_cv_prog_compiler_c_o=yes
9996 fi
9997 fi
9998 chmod u+w . 2>&5
9999 $RM conftest*
10000 # SGI C++ compiler will create directory out/ii_files/ for
10001 # template instantiation
10002 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10003 $RM out/* && rmdir out
10004 cd ..
10005 $RM -r conftest
10006 $RM conftest*
10007 ;;
10008 esac
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10011 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10012
10013
10014
10015
10016 hard_links=nottested
10017 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10018 # do not overwrite the value of need_locks provided by the user
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10020 printf %s "checking if we can lock with hard links... " >&6; }
10021 hard_links=yes
10022 $RM conftest*
10023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10024 touch conftest.a
10025 ln conftest.a conftest.b 2>&5 || hard_links=no
10026 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10028 printf "%s\n" "$hard_links" >&6; }
10029 if test no = "$hard_links"; then
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10031 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10032 need_locks=warn
10033 fi
10034 else
10035 need_locks=no
10036 fi
10037
10038
10039
10040
10041
10042
10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10044 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10045
10046 runpath_var=
10047 allow_undefined_flag=
10048 always_export_symbols=no
10049 archive_cmds=
10050 archive_expsym_cmds=
10051 compiler_needs_object=no
10052 enable_shared_with_static_runtimes=no
10053 export_dynamic_flag_spec=
10054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10055 hardcode_automatic=no
10056 hardcode_direct=no
10057 hardcode_direct_absolute=no
10058 hardcode_libdir_flag_spec=
10059 hardcode_libdir_separator=
10060 hardcode_minus_L=no
10061 hardcode_shlibpath_var=unsupported
10062 inherit_rpath=no
10063 link_all_deplibs=unknown
10064 module_cmds=
10065 module_expsym_cmds=
10066 old_archive_from_new_cmds=
10067 old_archive_from_expsyms_cmds=
10068 thread_safe_flag_spec=
10069 whole_archive_flag_spec=
10070 # include_expsyms should be a list of space-separated symbols to be *always*
10071 # included in the symbol list
10072 include_expsyms=
10073 # exclude_expsyms can be an extended regexp of symbols to exclude
10074 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10075 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10076 # as well as any symbol that contains 'd'.
10077 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10079 # platforms (ab)use it in PIC code, but their linkers get confused if
10080 # the symbol is explicitly referenced. Since portable code cannot
10081 # rely on this symbol name, it's probably fine to never include it in
10082 # preloaded symbol tables.
10083 # Exclude shared library initialization/finalization symbols.
10084 extract_expsyms_cmds=
10085
10086 case $host_os in
10087 cygwin* | mingw* | windows* | pw32* | cegcc*)
10088 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10089 # When not using gcc, we currently assume that we are using
10090 # Microsoft Visual C++ or Intel C++ Compiler.
10091 if test yes != "$GCC"; then
10092 with_gnu_ld=no
10093 fi
10094 ;;
10095 interix*)
10096 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10097 with_gnu_ld=yes
10098 ;;
10099 esac
10100
10101 ld_shlibs=yes
10102
10103 # On some targets, GNU ld is compatible enough with the native linker
10104 # that we're better off using the native interface for both.
10105 lt_use_gnu_ld_interface=no
10106 if test yes = "$with_gnu_ld"; then
10107 case $host_os in
10108 aix*)
10109 # The AIX port of GNU ld has always aspired to compatibility
10110 # with the native linker. However, as the warning in the GNU ld
10111 # block says, versions before 2.19.5* couldn't really create working
10112 # shared libraries, regardless of the interface used.
10113 case `$LD -v 2>&1` in
10114 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10115 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10116 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10117 *)
10118 lt_use_gnu_ld_interface=yes
10119 ;;
10120 esac
10121 ;;
10122 *)
10123 lt_use_gnu_ld_interface=yes
10124 ;;
10125 esac
10126 fi
10127
10128 if test yes = "$lt_use_gnu_ld_interface"; then
10129 # If archive_cmds runs LD, not CC, wlarc should be empty
10130 wlarc='$wl'
10131
10132 # Set some defaults for GNU ld with shared library support. These
10133 # are reset later if shared libraries are not supported. Putting them
10134 # here allows them to be overridden if necessary.
10135 runpath_var=LD_RUN_PATH
10136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10137 export_dynamic_flag_spec='$wl--export-dynamic'
10138 # ancient GNU ld didn't support --whole-archive et. al.
10139 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10140 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10141 else
10142 whole_archive_flag_spec=
10143 fi
10144 supports_anon_versioning=no
10145 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10146 *GNU\ gold*) supports_anon_versioning=yes ;;
10147 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10148 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10149 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10150 *\ 2.11.*) ;; # other 2.11 versions
10151 *) supports_anon_versioning=yes ;;
10152 esac
10153
10154 # See if GNU ld supports shared libraries.
10155 case $host_os in
10156 aix[3-9]*)
10157 # On AIX/PPC, the GNU linker is very broken
10158 if test ia64 != "$host_cpu"; then
10159 ld_shlibs=no
10160 cat <<_LT_EOF 1>&2
10161
10162 *** Warning: the GNU linker, at least up to release 2.19, is reported
10163 *** to be unable to reliably create shared libraries on AIX.
10164 *** Therefore, libtool is disabling shared libraries support. If you
10165 *** really care for shared libraries, you may want to install binutils
10166 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10167 *** You will then need to restart the configuration process.
10168
10169 _LT_EOF
10170 fi
10171 ;;
10172
10173 amigaos*)
10174 case $host_cpu in
10175 powerpc)
10176 # see comment about AmigaOS4 .so support
10177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10178 archive_expsym_cmds=''
10179 ;;
10180 m68k)
10181 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)'
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_minus_L=yes
10184 ;;
10185 esac
10186 ;;
10187
10188 beos*)
10189 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10190 allow_undefined_flag=unsupported
10191 # Joseph Beckenbach <[email protected]> says some releases of gcc
10192 # support --undefined. This deserves some investigation. FIXME
10193 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10194 else
10195 ld_shlibs=no
10196 fi
10197 ;;
10198
10199 cygwin* | mingw* | windows* | pw32* | cegcc*)
10200 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10201 # as there is no search path for DLLs.
10202 hardcode_libdir_flag_spec='-L$libdir'
10203 export_dynamic_flag_spec='$wl--export-all-symbols'
10204 allow_undefined_flag=unsupported
10205 always_export_symbols=no
10206 enable_shared_with_static_runtimes=yes
10207 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'
10208 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10209 file_list_spec='@'
10210
10211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10213 # If the export-symbols file already is a .def file, use it as
10214 # is; otherwise, prepend EXPORTS...
10215 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10216 cp $export_symbols $output_objdir/$soname.def;
10217 else
10218 echo EXPORTS > $output_objdir/$soname.def;
10219 cat $export_symbols >> $output_objdir/$soname.def;
10220 fi~
10221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10222 else
10223 ld_shlibs=no
10224 fi
10225 ;;
10226
10227 haiku*)
10228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10229 link_all_deplibs=no
10230 ;;
10231
10232 os2*)
10233 hardcode_libdir_flag_spec='-L$libdir'
10234 hardcode_minus_L=yes
10235 allow_undefined_flag=unsupported
10236 shrext_cmds=.dll
10237 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10238 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10239 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10240 $ECHO EXPORTS >> $output_objdir/$libname.def~
10241 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10243 emximp -o $lib $output_objdir/$libname.def'
10244 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10245 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10246 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10247 $ECHO EXPORTS >> $output_objdir/$libname.def~
10248 prefix_cmds="$SED"~
10249 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10250 prefix_cmds="$prefix_cmds -e 1d";
10251 fi~
10252 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10253 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10254 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10255 emximp -o $lib $output_objdir/$libname.def'
10256 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10257 enable_shared_with_static_runtimes=yes
10258 file_list_spec='@'
10259 ;;
10260
10261 interix[3-9]*)
10262 hardcode_direct=no
10263 hardcode_shlibpath_var=no
10264 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10265 export_dynamic_flag_spec='$wl-E'
10266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10267 # Instead, shared libraries are loaded at an image base (0x10000000 by
10268 # default) and relocated if they conflict, which is a slow very memory
10269 # consuming and fragmenting process. To avoid this, we pick a random,
10270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10273 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'
10274 ;;
10275
10276 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10277 tmp_diet=no
10278 if test linux-dietlibc = "$host_os"; then
10279 case $cc_basename in
10280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10281 esac
10282 fi
10283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10284 && test no = "$tmp_diet"
10285 then
10286 tmp_addflag=' $pic_flag'
10287 tmp_sharedflag='-shared'
10288 case $cc_basename,$host_cpu in
10289 pgcc*) # Portland Group C compiler
10290 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'
10291 tmp_addflag=' $pic_flag'
10292 ;;
10293 pgf77* | pgf90* | pgf95* | pgfortran*)
10294 # Portland Group f77 and f90 compilers
10295 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'
10296 tmp_addflag=' $pic_flag -Mnomain' ;;
10297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10298 tmp_addflag=' -i_dynamic' ;;
10299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10300 tmp_addflag=' -i_dynamic -nofor_main' ;;
10301 ifc* | ifort*) # Intel Fortran compiler
10302 tmp_addflag=' -nofor_main' ;;
10303 lf95*) # Lahey Fortran 8.1
10304 whole_archive_flag_spec=
10305 tmp_sharedflag='--shared' ;;
10306 nagfor*) # NAGFOR 5.3
10307 tmp_sharedflag='-Wl,-shared' ;;
10308 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10309 tmp_sharedflag='-qmkshrobj'
10310 tmp_addflag= ;;
10311 nvcc*) # Cuda Compiler Driver 2.2
10312 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'
10313 compiler_needs_object=yes
10314 ;;
10315 esac
10316 case `$CC -V 2>&1 | $SED 5q` in
10317 *Sun\ C*) # Sun C 5.9
10318 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'
10319 compiler_needs_object=yes
10320 tmp_sharedflag='-G' ;;
10321 *Sun\ F*) # Sun Fortran 8.3
10322 tmp_sharedflag='-G' ;;
10323 esac
10324 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10325
10326 if test yes = "$supports_anon_versioning"; then
10327 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10328 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10329 echo "local: *; };" >> $output_objdir/$libname.ver~
10330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10331 fi
10332
10333 case $cc_basename in
10334 tcc*)
10335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10336 export_dynamic_flag_spec='-rdynamic'
10337 ;;
10338 xlf* | bgf* | bgxlf* | mpixlf*)
10339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10342 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10343 if test yes = "$supports_anon_versioning"; then
10344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10345 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10346 echo "local: *; };" >> $output_objdir/$libname.ver~
10347 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10348 fi
10349 ;;
10350 esac
10351 else
10352 ld_shlibs=no
10353 fi
10354 ;;
10355
10356 *-mlibc)
10357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10358 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10359 ;;
10360
10361 netbsd* | netbsdelf*-gnu)
10362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10363 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10364 wlarc=
10365 else
10366 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10367 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10368 fi
10369 ;;
10370
10371 solaris*)
10372 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10373 ld_shlibs=no
10374 cat <<_LT_EOF 1>&2
10375
10376 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10377 *** create shared libraries on Solaris systems. Therefore, libtool
10378 *** is disabling shared libraries support. We urge you to upgrade GNU
10379 *** binutils to release 2.9.1 or newer. Another option is to modify
10380 *** your PATH or compiler configuration so that the native linker is
10381 *** used, and then restart.
10382
10383 _LT_EOF
10384 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10386 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10387 else
10388 ld_shlibs=no
10389 fi
10390 ;;
10391
10392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10393 case `$LD -v 2>&1` in
10394 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10395 ld_shlibs=no
10396 cat <<_LT_EOF 1>&2
10397
10398 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10399 *** reliably create shared libraries on SCO systems. Therefore, libtool
10400 *** is disabling shared libraries support. We urge you to upgrade GNU
10401 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10402 *** your PATH or compiler configuration so that the native linker is
10403 *** used, and then restart.
10404
10405 _LT_EOF
10406 ;;
10407 *)
10408 # For security reasons, it is highly recommended that you always
10409 # use absolute paths for naming shared libraries, and exclude the
10410 # DT_RUNPATH tag from executables and libraries. But doing so
10411 # requires that you compile everything twice, which is a pain.
10412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10413 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10416 else
10417 ld_shlibs=no
10418 fi
10419 ;;
10420 esac
10421 ;;
10422
10423 sunos4*)
10424 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10425 wlarc=
10426 hardcode_direct=yes
10427 hardcode_shlibpath_var=no
10428 ;;
10429
10430 *)
10431 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10434 else
10435 ld_shlibs=no
10436 fi
10437 ;;
10438 esac
10439
10440 if test no = "$ld_shlibs"; then
10441 runpath_var=
10442 hardcode_libdir_flag_spec=
10443 export_dynamic_flag_spec=
10444 whole_archive_flag_spec=
10445 fi
10446 else
10447 # PORTME fill in a description of your system's linker (not GNU ld)
10448 case $host_os in
10449 aix3*)
10450 allow_undefined_flag=unsupported
10451 always_export_symbols=yes
10452 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'
10453 # Note: this linker hardcodes the directories in LIBPATH if there
10454 # are no directories specified by -L.
10455 hardcode_minus_L=yes
10456 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10457 # Neither direct hardcoding nor static linking is supported with a
10458 # broken collect2.
10459 hardcode_direct=unsupported
10460 fi
10461 ;;
10462
10463 aix[4-9]*)
10464 if test ia64 = "$host_cpu"; then
10465 # On IA64, the linker does run time linking by default, so we don't
10466 # have to do anything special.
10467 aix_use_runtimelinking=no
10468 exp_sym_flag='-Bexport'
10469 no_entry_flag=
10470 else
10471 # If we're using GNU nm, then we don't want the "-C" option.
10472 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10473 # Without the "-l" option, or with the "-B" option, AIX nm treats
10474 # weak defined symbols like other global defined symbols, whereas
10475 # GNU nm marks them as "W".
10476 # While the 'weak' keyword is ignored in the Export File, we need
10477 # it in the Import File for the 'aix-soname' feature, so we have
10478 # to replace the "-B" option with "-P" for AIX nm.
10479 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10480 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'
10481 else
10482 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'
10483 fi
10484 aix_use_runtimelinking=no
10485
10486 # Test if we are trying to use run time linking or normal
10487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10488 # have runtime linking enabled, and use it for executables.
10489 # For shared libraries, we enable/disable runtime linking
10490 # depending on the kind of the shared library created -
10491 # when "with_aix_soname,aix_use_runtimelinking" is:
10492 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10493 # "aix,yes" lib.so shared, rtl:yes, for executables
10494 # lib.a static archive
10495 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10496 # lib.a(lib.so.V) shared, rtl:no, for executables
10497 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10498 # lib.a(lib.so.V) shared, rtl:no
10499 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10500 # lib.a static archive
10501 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10502 for ld_flag in $LDFLAGS; do
10503 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10504 aix_use_runtimelinking=yes
10505 break
10506 fi
10507 done
10508 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10509 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10510 # so we don't have lib.a shared libs to link our executables.
10511 # We have to force runtime linking in this case.
10512 aix_use_runtimelinking=yes
10513 LDFLAGS="$LDFLAGS -Wl,-brtl"
10514 fi
10515 ;;
10516 esac
10517
10518 exp_sym_flag='-bexport'
10519 no_entry_flag='-bnoentry'
10520 fi
10521
10522 # When large executables or shared objects are built, AIX ld can
10523 # have problems creating the table of contents. If linking a library
10524 # or program results in "error TOC overflow" add -mminimal-toc to
10525 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10526 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10527
10528 archive_cmds=''
10529 hardcode_direct=yes
10530 hardcode_direct_absolute=yes
10531 hardcode_libdir_separator=':'
10532 link_all_deplibs=yes
10533 file_list_spec='$wl-f,'
10534 case $with_aix_soname,$aix_use_runtimelinking in
10535 aix,*) ;; # traditional, no import file
10536 svr4,* | *,yes) # use import file
10537 # The Import File defines what to hardcode.
10538 hardcode_direct=no
10539 hardcode_direct_absolute=no
10540 ;;
10541 esac
10542
10543 if test yes = "$GCC"; then
10544 case $host_os in aix4.[012]|aix4.[012].*)
10545 # We only want to do this on AIX 4.2 and lower, the check
10546 # below for broken collect2 doesn't work under 4.3+
10547 collect2name=`$CC -print-prog-name=collect2`
10548 if test -f "$collect2name" &&
10549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10550 then
10551 # We have reworked collect2
10552 :
10553 else
10554 # We have old collect2
10555 hardcode_direct=unsupported
10556 # It fails to find uninstalled libraries when the uninstalled
10557 # path is not listed in the libpath. Setting hardcode_minus_L
10558 # to unsupported forces relinking
10559 hardcode_minus_L=yes
10560 hardcode_libdir_flag_spec='-L$libdir'
10561 hardcode_libdir_separator=
10562 fi
10563 ;;
10564 esac
10565 shared_flag='-shared'
10566 if test yes = "$aix_use_runtimelinking"; then
10567 shared_flag="$shared_flag "'$wl-G'
10568 fi
10569 # Need to ensure runtime linking is disabled for the traditional
10570 # shared library, or the linker may eventually find shared libraries
10571 # /with/ Import File - we do not want to mix them.
10572 shared_flag_aix='-shared'
10573 shared_flag_svr4='-shared $wl-G'
10574 else
10575 # not using gcc
10576 if test ia64 = "$host_cpu"; then
10577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10578 # chokes on -Wl,-G. The following line is correct:
10579 shared_flag='-G'
10580 else
10581 if test yes = "$aix_use_runtimelinking"; then
10582 shared_flag='$wl-G'
10583 else
10584 shared_flag='$wl-bM:SRE'
10585 fi
10586 shared_flag_aix='$wl-bM:SRE'
10587 shared_flag_svr4='$wl-G'
10588 fi
10589 fi
10590
10591 export_dynamic_flag_spec='$wl-bexpall'
10592 # It seems that -bexpall does not export symbols beginning with
10593 # underscore (_), so it is better to generate a list of symbols to export.
10594 always_export_symbols=yes
10595 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10596 # Warning - without using the other runtime loading flags (-brtl),
10597 # -berok will link without error, but may produce a broken library.
10598 allow_undefined_flag='-berok'
10599 # Determine the default libpath from the value encoded in an
10600 # empty executable.
10601 if test set = "${lt_cv_aix_libpath+set}"; then
10602 aix_libpath=$lt_cv_aix_libpath
10603 else
10604 if test ${lt_cv_aix_libpath_+y}
10605 then :
10606 printf %s "(cached) " >&6
10607 else case e in #(
10608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610
10611 int
10612 main (void)
10613 {
10614
10615 ;
10616 return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"
10620 then :
10621
10622 lt_aix_libpath_sed='
10623 /Import File Strings/,/^$/ {
10624 /^0/ {
10625 s/^0 *\([^ ]*\) *$/\1/
10626 p
10627 }
10628 }'
10629 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10630 # Check for a 64-bit object if we didn't find anything.
10631 if test -z "$lt_cv_aix_libpath_"; then
10632 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10633 fi
10634 fi
10635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10636 conftest$ac_exeext conftest.$ac_ext
10637 if test -z "$lt_cv_aix_libpath_"; then
10638 lt_cv_aix_libpath_=/usr/lib:/lib
10639 fi
10640 ;;
10641 esac
10642 fi
10643
10644 aix_libpath=$lt_cv_aix_libpath_
10645 fi
10646
10647 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10648 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
10649 else
10650 if test ia64 = "$host_cpu"; then
10651 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10652 allow_undefined_flag="-z nodefs"
10653 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"
10654 else
10655 # Determine the default libpath from the value encoded in an
10656 # empty executable.
10657 if test set = "${lt_cv_aix_libpath+set}"; then
10658 aix_libpath=$lt_cv_aix_libpath
10659 else
10660 if test ${lt_cv_aix_libpath_+y}
10661 then :
10662 printf %s "(cached) " >&6
10663 else case e in #(
10664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666
10667 int
10668 main (void)
10669 {
10670
10671 ;
10672 return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"
10676 then :
10677
10678 lt_aix_libpath_sed='
10679 /Import File Strings/,/^$/ {
10680 /^0/ {
10681 s/^0 *\([^ ]*\) *$/\1/
10682 p
10683 }
10684 }'
10685 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10686 # Check for a 64-bit object if we didn't find anything.
10687 if test -z "$lt_cv_aix_libpath_"; then
10688 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10689 fi
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10692 conftest$ac_exeext conftest.$ac_ext
10693 if test -z "$lt_cv_aix_libpath_"; then
10694 lt_cv_aix_libpath_=/usr/lib:/lib
10695 fi
10696 ;;
10697 esac
10698 fi
10699
10700 aix_libpath=$lt_cv_aix_libpath_
10701 fi
10702
10703 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10704 # Warning - without using the other run time loading flags,
10705 # -berok will link without error, but may produce a broken library.
10706 no_undefined_flag=' $wl-bernotok'
10707 allow_undefined_flag=' $wl-berok'
10708 if test yes = "$with_gnu_ld"; then
10709 # We only use this code for GNU lds that support --whole-archive.
10710 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10711 else
10712 # Exported symbols can be pulled into shared objects from archives
10713 whole_archive_flag_spec='$convenience'
10714 fi
10715 archive_cmds_need_lc=yes
10716 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10717 # -brtl affects multiple linker settings, -berok does not and is overridden later
10718 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10719 if test svr4 != "$with_aix_soname"; then
10720 # This is similar to how AIX traditionally builds its shared libraries.
10721 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'
10722 fi
10723 if test aix != "$with_aix_soname"; then
10724 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'
10725 else
10726 # used by -dlpreopen to get the symbols
10727 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10728 fi
10729 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10730 fi
10731 fi
10732 ;;
10733
10734 amigaos*)
10735 case $host_cpu in
10736 powerpc)
10737 # see comment about AmigaOS4 .so support
10738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10739 archive_expsym_cmds=''
10740 ;;
10741 m68k)
10742 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)'
10743 hardcode_libdir_flag_spec='-L$libdir'
10744 hardcode_minus_L=yes
10745 ;;
10746 esac
10747 ;;
10748
10749 bsdi[45]*)
10750 export_dynamic_flag_spec=-rdynamic
10751 ;;
10752
10753 cygwin* | mingw* | windows* | pw32* | cegcc*)
10754 # When not using gcc, we currently assume that we are using
10755 # Microsoft Visual C++ or Intel C++ Compiler.
10756 # hardcode_libdir_flag_spec is actually meaningless, as there is
10757 # no search path for DLLs.
10758 case $cc_basename in
10759 cl* | icl*)
10760 # Native MSVC or ICC
10761 hardcode_libdir_flag_spec=' '
10762 allow_undefined_flag=unsupported
10763 always_export_symbols=yes
10764 file_list_spec='@'
10765 # Tell ltmain to make .lib files, not .a files.
10766 libext=lib
10767 # Tell ltmain to make .dll files, not .so files.
10768 shrext_cmds=.dll
10769 # FIXME: Setting linknames here is a bad hack.
10770 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10771 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10772 cp "$export_symbols" "$output_objdir/$soname.def";
10773 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10774 else
10775 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10776 fi~
10777 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10778 linknames='
10779 # The linker will not automatically build a static lib if we build a DLL.
10780 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10781 enable_shared_with_static_runtimes=yes
10782 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10783 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10784 # Don't use ranlib
10785 old_postinstall_cmds='chmod 644 $oldlib'
10786 postlink_cmds='lt_outputfile="@OUTPUT@"~
10787 lt_tool_outputfile="@TOOL_OUTPUT@"~
10788 case $lt_outputfile in
10789 *.exe|*.EXE) ;;
10790 *)
10791 lt_outputfile=$lt_outputfile.exe
10792 lt_tool_outputfile=$lt_tool_outputfile.exe
10793 ;;
10794 esac~
10795 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10796 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10797 $RM "$lt_outputfile.manifest";
10798 fi'
10799 ;;
10800 *)
10801 # Assume MSVC and ICC wrapper
10802 hardcode_libdir_flag_spec=' '
10803 allow_undefined_flag=unsupported
10804 # Tell ltmain to make .lib files, not .a files.
10805 libext=lib
10806 # Tell ltmain to make .dll files, not .so files.
10807 shrext_cmds=.dll
10808 # FIXME: Setting linknames here is a bad hack.
10809 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10810 # The linker will automatically build a .lib file if we build a DLL.
10811 old_archive_from_new_cmds='true'
10812 # FIXME: Should let the user specify the lib program.
10813 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10814 enable_shared_with_static_runtimes=yes
10815 ;;
10816 esac
10817 ;;
10818
10819 darwin* | rhapsody*)
10820
10821
10822 archive_cmds_need_lc=no
10823 hardcode_direct=no
10824 hardcode_automatic=yes
10825 hardcode_shlibpath_var=unsupported
10826 if test yes = "$lt_cv_ld_force_load"; then
10827 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\"`'
10828
10829 else
10830 whole_archive_flag_spec=''
10831 fi
10832 link_all_deplibs=yes
10833 allow_undefined_flag=$_lt_dar_allow_undefined
10834 case $cc_basename in
10835 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10836 *) _lt_dar_can_shared=$GCC ;;
10837 esac
10838 if test yes = "$_lt_dar_can_shared"; then
10839 output_verbose_link_cmd=func_echo_all
10840 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10841 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10842 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"
10843 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"
10844
10845 else
10846 ld_shlibs=no
10847 fi
10848
10849 ;;
10850
10851 dgux*)
10852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853 hardcode_libdir_flag_spec='-L$libdir'
10854 hardcode_shlibpath_var=no
10855 ;;
10856
10857 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10858 # support. Future versions do this automatically, but an explicit c++rt0.o
10859 # does not break anything, and helps significantly (at the cost of a little
10860 # extra space).
10861 freebsd2.2*)
10862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10863 hardcode_libdir_flag_spec='-R$libdir'
10864 hardcode_direct=yes
10865 hardcode_shlibpath_var=no
10866 ;;
10867
10868 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10869 freebsd2.*)
10870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10871 hardcode_direct=yes
10872 hardcode_minus_L=yes
10873 hardcode_shlibpath_var=no
10874 ;;
10875
10876 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10877 freebsd* | dragonfly* | midnightbsd*)
10878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10879 hardcode_libdir_flag_spec='-R$libdir'
10880 hardcode_direct=yes
10881 hardcode_shlibpath_var=no
10882 ;;
10883
10884 hpux9*)
10885 if test yes = "$GCC"; then
10886 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'
10887 else
10888 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'
10889 fi
10890 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10891 hardcode_libdir_separator=:
10892 hardcode_direct=yes
10893
10894 # hardcode_minus_L: Not really in the search PATH,
10895 # but as the default location of the library.
10896 hardcode_minus_L=yes
10897 export_dynamic_flag_spec='$wl-E'
10898 ;;
10899
10900 hpux10*)
10901 if test yes,no = "$GCC,$with_gnu_ld"; then
10902 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10903 else
10904 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10905 fi
10906 if test no = "$with_gnu_ld"; then
10907 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10908 hardcode_libdir_separator=:
10909 hardcode_direct=yes
10910 hardcode_direct_absolute=yes
10911 export_dynamic_flag_spec='$wl-E'
10912 # hardcode_minus_L: Not really in the search PATH,
10913 # but as the default location of the library.
10914 hardcode_minus_L=yes
10915 fi
10916 ;;
10917
10918 hpux11*)
10919 if test yes,no = "$GCC,$with_gnu_ld"; then
10920 case $host_cpu in
10921 hppa*64*)
10922 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10923 ;;
10924 ia64*)
10925 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10926 ;;
10927 *)
10928 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10929 ;;
10930 esac
10931 else
10932 case $host_cpu in
10933 hppa*64*)
10934 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 ;;
10936 ia64*)
10937 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10938 ;;
10939 *)
10940
10941 # Older versions of the 11.00 compiler do not understand -b yet
10942 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10944 printf %s "checking if $CC understands -b... " >&6; }
10945 if test ${lt_cv_prog_compiler__b+y}
10946 then :
10947 printf %s "(cached) " >&6
10948 else case e in #(
10949 e) lt_cv_prog_compiler__b=no
10950 save_LDFLAGS=$LDFLAGS
10951 LDFLAGS="$LDFLAGS -b"
10952 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10953 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10954 # The linker can only warn and ignore the option if not recognized
10955 # So say no if there are warnings
10956 if test -s conftest.err; then
10957 # Append any errors to the config.log.
10958 cat conftest.err 1>&5
10959 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10961 if diff conftest.exp conftest.er2 >/dev/null; then
10962 lt_cv_prog_compiler__b=yes
10963 fi
10964 else
10965 lt_cv_prog_compiler__b=yes
10966 fi
10967 fi
10968 $RM -r conftest*
10969 LDFLAGS=$save_LDFLAGS
10970 ;;
10971 esac
10972 fi
10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10974 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10975
10976 if test yes = "$lt_cv_prog_compiler__b"; then
10977 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10978 else
10979 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10980 fi
10981
10982 ;;
10983 esac
10984 fi
10985 if test no = "$with_gnu_ld"; then
10986 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10987 hardcode_libdir_separator=:
10988
10989 case $host_cpu in
10990 hppa*64*|ia64*)
10991 hardcode_direct=no
10992 hardcode_shlibpath_var=no
10993 ;;
10994 *)
10995 hardcode_direct=yes
10996 hardcode_direct_absolute=yes
10997 export_dynamic_flag_spec='$wl-E'
10998
10999 # hardcode_minus_L: Not really in the search PATH,
11000 # but as the default location of the library.
11001 hardcode_minus_L=yes
11002 ;;
11003 esac
11004 fi
11005 ;;
11006
11007 irix5* | irix6* | nonstopux*)
11008 if test yes = "$GCC"; then
11009 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'
11010 # Try to use the -exported_symbol ld option, if it does not
11011 # work, assume that -exports_file does not work either and
11012 # implicitly export all symbols.
11013 # This should be the same for all languages, so no per-tag cache variable.
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11015 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11016 if test ${lt_cv_irix_exported_symbol+y}
11017 then :
11018 printf %s "(cached) " >&6
11019 else case e in #(
11020 e) save_LDFLAGS=$LDFLAGS
11021 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 int foo (void) { return 0; }
11025 _ACEOF
11026 if ac_fn_c_try_link "$LINENO"
11027 then :
11028 lt_cv_irix_exported_symbol=yes
11029 else case e in #(
11030 e) lt_cv_irix_exported_symbol=no ;;
11031 esac
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11034 conftest$ac_exeext conftest.$ac_ext
11035 LDFLAGS=$save_LDFLAGS ;;
11036 esac
11037 fi
11038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11039 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11040 if test yes = "$lt_cv_irix_exported_symbol"; then
11041 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'
11042 fi
11043 else
11044 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'
11045 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'
11046 fi
11047 archive_cmds_need_lc='no'
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 hardcode_libdir_separator=:
11050 inherit_rpath=yes
11051 link_all_deplibs=yes
11052 ;;
11053
11054 linux*)
11055 case $cc_basename in
11056 tcc*)
11057 # Fabrice Bellard et al's Tiny C Compiler
11058 ld_shlibs=yes
11059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11060 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11061 ;;
11062 esac
11063 ;;
11064
11065 *-mlibc)
11066 ;;
11067
11068 netbsd* | netbsdelf*-gnu)
11069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11071 else
11072 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11073 fi
11074 hardcode_libdir_flag_spec='-R$libdir'
11075 hardcode_direct=yes
11076 hardcode_shlibpath_var=no
11077 ;;
11078
11079 newsos6)
11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11081 hardcode_direct=yes
11082 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11083 hardcode_libdir_separator=:
11084 hardcode_shlibpath_var=no
11085 ;;
11086
11087 *nto* | *qnx*)
11088 ;;
11089
11090 openbsd*)
11091 if test -f /usr/libexec/ld.so; then
11092 hardcode_direct=yes
11093 hardcode_shlibpath_var=no
11094 hardcode_direct_absolute=yes
11095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11096 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11097 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11098 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11099 export_dynamic_flag_spec='$wl-E'
11100 else
11101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11102 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11103 fi
11104 else
11105 ld_shlibs=no
11106 fi
11107 ;;
11108
11109 os2*)
11110 hardcode_libdir_flag_spec='-L$libdir'
11111 hardcode_minus_L=yes
11112 allow_undefined_flag=unsupported
11113 shrext_cmds=.dll
11114 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11115 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11116 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11117 $ECHO EXPORTS >> $output_objdir/$libname.def~
11118 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11119 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11120 emximp -o $lib $output_objdir/$libname.def'
11121 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11124 $ECHO EXPORTS >> $output_objdir/$libname.def~
11125 prefix_cmds="$SED"~
11126 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11127 prefix_cmds="$prefix_cmds -e 1d";
11128 fi~
11129 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11130 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11131 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11132 emximp -o $lib $output_objdir/$libname.def'
11133 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11134 enable_shared_with_static_runtimes=yes
11135 file_list_spec='@'
11136 ;;
11137
11138 osf3*)
11139 if test yes = "$GCC"; then
11140 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11141 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'
11142 else
11143 allow_undefined_flag=' -expect_unresolved \*'
11144 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'
11145 fi
11146 archive_cmds_need_lc='no'
11147 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11148 hardcode_libdir_separator=:
11149 ;;
11150
11151 osf4* | osf5*) # as osf3* with the addition of -msym flag
11152 if test yes = "$GCC"; then
11153 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11154 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'
11155 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11156 else
11157 allow_undefined_flag=' -expect_unresolved \*'
11158 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'
11159 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~
11160 $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'
11161
11162 # Both c and cxx compiler support -rpath directly
11163 hardcode_libdir_flag_spec='-rpath $libdir'
11164 fi
11165 archive_cmds_need_lc='no'
11166 hardcode_libdir_separator=:
11167 ;;
11168
11169 serenity*)
11170 ;;
11171
11172 solaris*)
11173 no_undefined_flag=' -z defs'
11174 if test yes = "$GCC"; then
11175 wlarc='$wl'
11176 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11178 $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'
11179 else
11180 case `$CC -V 2>&1` in
11181 *"Compilers 5.0"*)
11182 wlarc=''
11183 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11184 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11185 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11186 ;;
11187 *)
11188 wlarc='$wl'
11189 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11191 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11192 ;;
11193 esac
11194 fi
11195 hardcode_libdir_flag_spec='-R$libdir'
11196 hardcode_shlibpath_var=no
11197 case $host_os in
11198 solaris2.[0-5] | solaris2.[0-5].*) ;;
11199 *)
11200 # The compiler driver will combine and reorder linker options,
11201 # but understands '-z linker_flag'. GCC discards it without '$wl',
11202 # but is careful enough not to reorder.
11203 # Supported since Solaris 2.6 (maybe 2.5.1?)
11204 if test yes = "$GCC"; then
11205 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11206 else
11207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11208 fi
11209 ;;
11210 esac
11211 link_all_deplibs=yes
11212 ;;
11213
11214 sunos4*)
11215 if test sequent = "$host_vendor"; then
11216 # Use $CC to link under sequent, because it throws in some extra .o
11217 # files that make .init and .fini sections work.
11218 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11219 else
11220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11221 fi
11222 hardcode_libdir_flag_spec='-L$libdir'
11223 hardcode_direct=yes
11224 hardcode_minus_L=yes
11225 hardcode_shlibpath_var=no
11226 ;;
11227
11228 sysv4)
11229 case $host_vendor in
11230 sni)
11231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_direct=yes # is this really true???
11233 ;;
11234 siemens)
11235 ## LD is ld it makes a PLAMLIB
11236 ## CC just makes a GrossModule.
11237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11238 reload_cmds='$CC -r -o $output$reload_objs'
11239 hardcode_direct=no
11240 ;;
11241 motorola)
11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11244 ;;
11245 esac
11246 runpath_var='LD_RUN_PATH'
11247 hardcode_shlibpath_var=no
11248 ;;
11249
11250 sysv4.3*)
11251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11252 hardcode_shlibpath_var=no
11253 export_dynamic_flag_spec='-Bexport'
11254 ;;
11255
11256 sysv4*MP*)
11257 if test -d /usr/nec; then
11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_shlibpath_var=no
11260 runpath_var=LD_RUN_PATH
11261 hardcode_runpath_var=yes
11262 ld_shlibs=yes
11263 fi
11264 ;;
11265
11266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11267 no_undefined_flag='$wl-z,text'
11268 archive_cmds_need_lc=no
11269 hardcode_shlibpath_var=no
11270 runpath_var='LD_RUN_PATH'
11271
11272 if test yes = "$GCC"; then
11273 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11274 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11275 else
11276 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11277 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11278 fi
11279 ;;
11280
11281 sysv5* | sco3.2v5* | sco5v6*)
11282 # Note: We CANNOT use -z defs as we might desire, because we do not
11283 # link with -lc, and that would cause any symbols used from libc to
11284 # always be unresolved, which means just about no library would
11285 # ever link correctly. If we're not using GNU ld we use -z text
11286 # though, which does catch some bad symbols but isn't as heavy-handed
11287 # as -z defs.
11288 no_undefined_flag='$wl-z,text'
11289 allow_undefined_flag='$wl-z,nodefs'
11290 archive_cmds_need_lc=no
11291 hardcode_shlibpath_var=no
11292 hardcode_libdir_flag_spec='$wl-R,$libdir'
11293 hardcode_libdir_separator=':'
11294 link_all_deplibs=yes
11295 export_dynamic_flag_spec='$wl-Bexport'
11296 runpath_var='LD_RUN_PATH'
11297
11298 if test yes = "$GCC"; then
11299 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 else
11302 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11303 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 fi
11305 ;;
11306
11307 uts4*)
11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_shlibpath_var=no
11311 ;;
11312
11313 *)
11314 ld_shlibs=no
11315 ;;
11316 esac
11317
11318 if test sni = "$host_vendor"; then
11319 case $host in
11320 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11321 export_dynamic_flag_spec='$wl-Blargedynsym'
11322 ;;
11323 esac
11324 fi
11325 fi
11326
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11328 printf "%s\n" "$ld_shlibs" >&6; }
11329 test no = "$ld_shlibs" && can_build_shared=no
11330
11331 with_gnu_ld=$with_gnu_ld
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 #
11348 # Do we need to explicitly link libc?
11349 #
11350 case "x$archive_cmds_need_lc" in
11351 x|xyes)
11352 # Assume -lc should be added
11353 archive_cmds_need_lc=yes
11354
11355 if test yes,yes = "$GCC,$enable_shared"; then
11356 case $archive_cmds in
11357 *'~'*)
11358 # FIXME: we may have to deal with multi-command sequences.
11359 ;;
11360 '$CC '*)
11361 # Test whether the compiler implicitly links with -lc since on some
11362 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11363 # to ld, don't add -lc before -lgcc.
11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11365 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11366 if test ${lt_cv_archive_cmds_need_lc+y}
11367 then :
11368 printf %s "(cached) " >&6
11369 else case e in #(
11370 e) $RM conftest*
11371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11372
11373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11374 (eval $ac_compile) 2>&5
11375 ac_status=$?
11376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11377 test $ac_status = 0; } 2>conftest.err; then
11378 soname=conftest
11379 lib=conftest
11380 libobjs=conftest.$ac_objext
11381 deplibs=
11382 wl=$lt_prog_compiler_wl
11383 pic_flag=$lt_prog_compiler_pic
11384 compiler_flags=-v
11385 linker_flags=-v
11386 verstring=
11387 output_objdir=.
11388 libname=conftest
11389 lt_save_allow_undefined_flag=$allow_undefined_flag
11390 allow_undefined_flag=
11391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11392 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11393 ac_status=$?
11394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11395 test $ac_status = 0; }
11396 then
11397 lt_cv_archive_cmds_need_lc=no
11398 else
11399 lt_cv_archive_cmds_need_lc=yes
11400 fi
11401 allow_undefined_flag=$lt_save_allow_undefined_flag
11402 else
11403 cat conftest.err 1>&5
11404 fi
11405 $RM conftest*
11406 ;;
11407 esac
11408 fi
11409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11410 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11411 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11412 ;;
11413 esac
11414 fi
11415 ;;
11416 esac
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11570 printf %s "checking dynamic linker characteristics... " >&6; }
11571
11572 if test yes = "$GCC"; then
11573 case $host_os in
11574 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11575 *) lt_awk_arg='/^libraries:/' ;;
11576 esac
11577 case $host_os in
11578 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11579 *) lt_sed_strip_eq='s|=/|/|g' ;;
11580 esac
11581 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11582 case $lt_search_path_spec in
11583 *\;*)
11584 # if the path contains ";" then we assume it to be the separator
11585 # otherwise default to the standard path separator (i.e. ":") - it is
11586 # assumed that no part of a normal pathname contains ";" but that should
11587 # okay in the real world where ";" in dirpaths is itself problematic.
11588 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11589 ;;
11590 *)
11591 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11592 ;;
11593 esac
11594 # Ok, now we have the path, separated by spaces, we can step through it
11595 # and add multilib dir if necessary...
11596 lt_tmp_lt_search_path_spec=
11597 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11598 # ...but if some path component already ends with the multilib dir we assume
11599 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11600 case "$lt_multi_os_dir; $lt_search_path_spec " in
11601 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11602 lt_multi_os_dir=
11603 ;;
11604 esac
11605 for lt_sys_path in $lt_search_path_spec; do
11606 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11607 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11608 elif test -n "$lt_multi_os_dir"; then
11609 test -d "$lt_sys_path" && \
11610 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11611 fi
11612 done
11613 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11614 BEGIN {RS = " "; FS = "/|\n";} {
11615 lt_foo = "";
11616 lt_count = 0;
11617 for (lt_i = NF; lt_i > 0; lt_i--) {
11618 if ($lt_i != "" && $lt_i != ".") {
11619 if ($lt_i == "..") {
11620 lt_count++;
11621 } else {
11622 if (lt_count == 0) {
11623 lt_foo = "/" $lt_i lt_foo;
11624 } else {
11625 lt_count--;
11626 }
11627 }
11628 }
11629 }
11630 if (lt_foo != "") { lt_freq[lt_foo]++; }
11631 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11632 }'`
11633 # AWK program above erroneously prepends '/' to C:/dos/paths
11634 # for these hosts.
11635 case $host_os in
11636 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11637 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11638 esac
11639 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11640 else
11641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11642 fi
11643 library_names_spec=
11644 libname_spec='lib$name'
11645 soname_spec=
11646 shrext_cmds=.so
11647 postinstall_cmds=
11648 postuninstall_cmds=
11649 finish_cmds=
11650 finish_eval=
11651 shlibpath_var=
11652 shlibpath_overrides_runpath=unknown
11653 version_type=none
11654 dynamic_linker="$host_os ld.so"
11655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11656 need_lib_prefix=unknown
11657 hardcode_into_libs=no
11658
11659 # when you set need_version to no, make sure it does not cause -set_version
11660 # flags to be left without arguments
11661 need_version=unknown
11662
11663
11664
11665 case $host_os in
11666 aix3*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11669 shlibpath_var=LIBPATH
11670
11671 # AIX 3 has no versioning support, so we append a major version to the name.
11672 soname_spec='$libname$release$shared_ext$major'
11673 ;;
11674
11675 aix[4-9]*)
11676 version_type=linux # correct to gnu/linux during the next big refactor
11677 need_lib_prefix=no
11678 need_version=no
11679 hardcode_into_libs=yes
11680 if test ia64 = "$host_cpu"; then
11681 # AIX 5 supports IA64
11682 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11683 shlibpath_var=LD_LIBRARY_PATH
11684 else
11685 # With GCC up to 2.95.x, collect2 would create an import file
11686 # for dependence libraries. The import file would start with
11687 # the line '#! .'. This would cause the generated library to
11688 # depend on '.', always an invalid library. This was fixed in
11689 # development snapshots of GCC prior to 3.0.
11690 case $host_os in
11691 aix4 | aix4.[01] | aix4.[01].*)
11692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11693 echo ' yes '
11694 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11695 :
11696 else
11697 can_build_shared=no
11698 fi
11699 ;;
11700 esac
11701 # Using Import Files as archive members, it is possible to support
11702 # filename-based versioning of shared library archives on AIX. While
11703 # this would work for both with and without runtime linking, it will
11704 # prevent static linking of such archives. So we do filename-based
11705 # shared library versioning with .so extension only, which is used
11706 # when both runtime linking and shared linking is enabled.
11707 # Unfortunately, runtime linking may impact performance, so we do
11708 # not want this to be the default eventually. Also, we use the
11709 # versioned .so libs for executables only if there is the -brtl
11710 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11711 # To allow for filename-based versioning support, we need to create
11712 # libNAME.so.V as an archive file, containing:
11713 # *) an Import File, referring to the versioned filename of the
11714 # archive as well as the shared archive member, telling the
11715 # bitwidth (32 or 64) of that shared object, and providing the
11716 # list of exported symbols of that shared object, eventually
11717 # decorated with the 'weak' keyword
11718 # *) the shared object with the F_LOADONLY flag set, to really avoid
11719 # it being seen by the linker.
11720 # At run time we better use the real file rather than another symlink,
11721 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11722
11723 case $with_aix_soname,$aix_use_runtimelinking in
11724 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11725 # soname into executable. Probably we can add versioning support to
11726 # collect2, so additional links can be useful in future.
11727 aix,yes) # traditional libtool
11728 dynamic_linker='AIX unversionable lib.so'
11729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11730 # instead of lib<name>.a to let people know that these are not
11731 # typical AIX shared libraries.
11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11733 ;;
11734 aix,no) # traditional AIX only
11735 dynamic_linker='AIX lib.a(lib.so.V)'
11736 # We preserve .a as extension for shared libraries through AIX4.2
11737 # and later when we are not doing run time linking.
11738 library_names_spec='$libname$release.a $libname.a'
11739 soname_spec='$libname$release$shared_ext$major'
11740 ;;
11741 svr4,*) # full svr4 only
11742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11744 # We do not specify a path in Import Files, so LIBPATH fires.
11745 shlibpath_overrides_runpath=yes
11746 ;;
11747 *,yes) # both, prefer svr4
11748 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11749 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11750 # unpreferred sharedlib libNAME.a needs extra handling
11751 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"'
11752 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"'
11753 # We do not specify a path in Import Files, so LIBPATH fires.
11754 shlibpath_overrides_runpath=yes
11755 ;;
11756 *,no) # both, prefer aix
11757 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11758 library_names_spec='$libname$release.a $libname.a'
11759 soname_spec='$libname$release$shared_ext$major'
11760 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11761 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)'
11762 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"'
11763 ;;
11764 esac
11765 shlibpath_var=LIBPATH
11766 fi
11767 ;;
11768
11769 amigaos*)
11770 case $host_cpu in
11771 powerpc)
11772 # Since July 2007 AmigaOS4 officially supports .so libraries.
11773 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 ;;
11776 m68k)
11777 library_names_spec='$libname.ixlibrary $libname.a'
11778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11779 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'
11780 ;;
11781 esac
11782 ;;
11783
11784 beos*)
11785 library_names_spec='$libname$shared_ext'
11786 dynamic_linker="$host_os ld.so"
11787 shlibpath_var=LIBRARY_PATH
11788 ;;
11789
11790 bsdi[45]*)
11791 version_type=linux # correct to gnu/linux during the next big refactor
11792 need_version=no
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11794 soname_spec='$libname$release$shared_ext$major'
11795 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11798 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11799 # the default ld.so.conf also contains /usr/contrib/lib and
11800 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11801 # libtool to hard-code these into programs
11802 ;;
11803
11804 cygwin* | mingw* | windows* | pw32* | cegcc*)
11805 version_type=windows
11806 shrext_cmds=.dll
11807 need_version=no
11808 need_lib_prefix=no
11809
11810 case $GCC,$cc_basename in
11811 yes,*)
11812 # gcc
11813 library_names_spec='$libname.dll.a'
11814 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11815 # If user builds GCC with multilib enabled,
11816 # it should just install on $(libdir)
11817 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11818 if test xyes = x"$multilib"; then
11819 postinstall_cmds='base_file=`basename \$file`~
11820 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11821 dldir=$destdir/`dirname \$dlpath`~
11822 $install_prog $dir/$dlname $destdir/$dlname~
11823 chmod a+x $destdir/$dlname~
11824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11825 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11826 fi'
11827 else
11828 postinstall_cmds='base_file=`basename \$file`~
11829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11830 dldir=$destdir/`dirname \$dlpath`~
11831 test -d \$dldir || mkdir -p \$dldir~
11832 $install_prog $dir/$dlname \$dldir/$dlname~
11833 chmod a+x \$dldir/$dlname~
11834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11836 fi'
11837 fi
11838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11839 dlpath=$dir/\$dldll~
11840 $RM \$dlpath'
11841 shlibpath_overrides_runpath=yes
11842
11843 case $host_os in
11844 cygwin*)
11845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11846 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11847
11848 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11849 ;;
11850 mingw* | windows* | cegcc*)
11851 # MinGW DLLs use traditional 'lib' prefix
11852 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11853 ;;
11854 pw32*)
11855 # pw32 DLLs use 'pw' prefix rather than 'lib'
11856 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11857 ;;
11858 esac
11859 dynamic_linker='Win32 ld.exe'
11860 ;;
11861
11862 *,cl* | *,icl*)
11863 # Native MSVC or ICC
11864 libname_spec='$name'
11865 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11866 library_names_spec='$libname.dll.lib'
11867
11868 case $build_os in
11869 mingw* | windows*)
11870 sys_lib_search_path_spec=
11871 lt_save_ifs=$IFS
11872 IFS=';'
11873 for lt_path in $LIB
11874 do
11875 IFS=$lt_save_ifs
11876 # Let DOS variable expansion print the short 8.3 style file name.
11877 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11878 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11879 done
11880 IFS=$lt_save_ifs
11881 # Convert to MSYS style.
11882 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11883 ;;
11884 cygwin*)
11885 # Convert to unix form, then to dos form, then back to unix form
11886 # but this time dos style (no spaces!) so that the unix form looks
11887 # like /cygdrive/c/PROGRA~1:/cygdr...
11888 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11889 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11890 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11891 ;;
11892 *)
11893 sys_lib_search_path_spec=$LIB
11894 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11895 # It is most probably a Windows format PATH.
11896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11897 else
11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11899 fi
11900 # FIXME: find the short name or the path components, as spaces are
11901 # common. (e.g. "Program Files" -> "PROGRA~1")
11902 ;;
11903 esac
11904
11905 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11906 postinstall_cmds='base_file=`basename \$file`~
11907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11908 dldir=$destdir/`dirname \$dlpath`~
11909 test -d \$dldir || mkdir -p \$dldir~
11910 $install_prog $dir/$dlname \$dldir/$dlname'
11911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11912 dlpath=$dir/\$dldll~
11913 $RM \$dlpath'
11914 shlibpath_overrides_runpath=yes
11915 dynamic_linker='Win32 link.exe'
11916 ;;
11917
11918 *)
11919 # Assume MSVC and ICC wrapper
11920 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11921 dynamic_linker='Win32 ld.exe'
11922 ;;
11923 esac
11924 # FIXME: first we should search . and the directory the executable is in
11925 shlibpath_var=PATH
11926 ;;
11927
11928 darwin* | rhapsody*)
11929 dynamic_linker="$host_os dyld"
11930 version_type=darwin
11931 need_lib_prefix=no
11932 need_version=no
11933 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11934 soname_spec='$libname$release$major$shared_ext'
11935 shlibpath_overrides_runpath=yes
11936 shlibpath_var=DYLD_LIBRARY_PATH
11937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11938
11939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11941 ;;
11942
11943 dgux*)
11944 version_type=linux # correct to gnu/linux during the next big refactor
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948 soname_spec='$libname$release$shared_ext$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 ;;
11951
11952 freebsd* | dragonfly* | midnightbsd*)
11953 # DragonFly does not have aout. When/if they implement a new
11954 # versioning mechanism, adjust this.
11955 if test -x /usr/bin/objformat; then
11956 objformat=`/usr/bin/objformat`
11957 else
11958 case $host_os in
11959 freebsd[23].*) objformat=aout ;;
11960 *) objformat=elf ;;
11961 esac
11962 fi
11963 version_type=freebsd-$objformat
11964 case $version_type in
11965 freebsd-elf*)
11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec='$libname$release$shared_ext$major'
11968 need_version=no
11969 need_lib_prefix=no
11970 ;;
11971 freebsd-*)
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11973 need_version=yes
11974 ;;
11975 esac
11976 case $host_cpu in
11977 powerpc64)
11978 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
11979 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 int test_pointer_size[sizeof (void *) - 5];
11983
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"
11986 then :
11987 shlibpath_var=LD_LIBRARY_PATH
11988 else case e in #(
11989 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
11990 esac
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11993 ;;
11994 *)
11995 shlibpath_var=LD_LIBRARY_PATH
11996 ;;
11997 esac
11998 case $host_os in
11999 freebsd2.*)
12000 shlibpath_overrides_runpath=yes
12001 ;;
12002 freebsd3.[01]* | freebsdelf3.[01]*)
12003 shlibpath_overrides_runpath=yes
12004 hardcode_into_libs=yes
12005 ;;
12006 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12007 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12008 shlibpath_overrides_runpath=no
12009 hardcode_into_libs=yes
12010 ;;
12011 *) # from 4.6 on, and DragonFly
12012 shlibpath_overrides_runpath=yes
12013 hardcode_into_libs=yes
12014 ;;
12015 esac
12016 ;;
12017
12018 haiku*)
12019 version_type=linux # correct to gnu/linux during the next big refactor
12020 need_lib_prefix=no
12021 need_version=no
12022 dynamic_linker="$host_os runtime_loader"
12023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 soname_spec='$libname$release$shared_ext$major'
12025 shlibpath_var=LIBRARY_PATH
12026 shlibpath_overrides_runpath=no
12027 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12028 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12029 hardcode_into_libs=no
12030 ;;
12031
12032 hpux9* | hpux10* | hpux11*)
12033 # Give a soname corresponding to the major version so that dld.sl refuses to
12034 # link against other versions.
12035 version_type=sunos
12036 need_lib_prefix=no
12037 need_version=no
12038 case $host_cpu in
12039 ia64*)
12040 shrext_cmds='.so'
12041 hardcode_into_libs=yes
12042 dynamic_linker="$host_os dld.so"
12043 shlibpath_var=LD_LIBRARY_PATH
12044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 soname_spec='$libname$release$shared_ext$major'
12047 if test 32 = "$HPUX_IA64_MODE"; then
12048 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12049 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12050 else
12051 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12053 fi
12054 ;;
12055 hppa*64*)
12056 shrext_cmds='.sl'
12057 hardcode_into_libs=yes
12058 dynamic_linker="$host_os dld.sl"
12059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12062 soname_spec='$libname$release$shared_ext$major'
12063 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065 ;;
12066 *)
12067 shrext_cmds='.sl'
12068 dynamic_linker="$host_os dld.sl"
12069 shlibpath_var=SHLIB_PATH
12070 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 ;;
12074 esac
12075 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12076 postinstall_cmds='chmod 555 $lib'
12077 # or fails outright, so override atomically:
12078 install_override_mode=555
12079 ;;
12080
12081 interix[3-9]*)
12082 version_type=linux # correct to gnu/linux during the next big refactor
12083 need_lib_prefix=no
12084 need_version=no
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12086 soname_spec='$libname$release$shared_ext$major'
12087 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12088 shlibpath_var=LD_LIBRARY_PATH
12089 shlibpath_overrides_runpath=no
12090 hardcode_into_libs=yes
12091 ;;
12092
12093 irix5* | irix6* | nonstopux*)
12094 case $host_os in
12095 nonstopux*) version_type=nonstopux ;;
12096 *)
12097 if test yes = "$lt_cv_prog_gnu_ld"; then
12098 version_type=linux # correct to gnu/linux during the next big refactor
12099 else
12100 version_type=irix
12101 fi ;;
12102 esac
12103 need_lib_prefix=no
12104 need_version=no
12105 soname_spec='$libname$release$shared_ext$major'
12106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12107 case $host_os in
12108 irix5* | nonstopux*)
12109 libsuff= shlibsuff=
12110 ;;
12111 *)
12112 case $LD in # libtool.m4 will add one of these switches to LD
12113 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12114 libsuff= shlibsuff= libmagic=32-bit;;
12115 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12116 libsuff=32 shlibsuff=N32 libmagic=N32;;
12117 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12118 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12119 *) libsuff= shlibsuff= libmagic=never-match;;
12120 esac
12121 ;;
12122 esac
12123 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12124 shlibpath_overrides_runpath=no
12125 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12126 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12127 hardcode_into_libs=yes
12128 ;;
12129
12130 # No shared lib support for Linux oldld, aout, or coff.
12131 linux*oldld* | linux*aout* | linux*coff*)
12132 dynamic_linker=no
12133 ;;
12134
12135 linux*android*)
12136 version_type=none # Android doesn't support versioned libraries.
12137 need_lib_prefix=no
12138 need_version=no
12139 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12140 soname_spec='$libname$release$shared_ext'
12141 finish_cmds=
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12144
12145 # This implies no fast_install, which is unacceptable.
12146 # Some rework will be needed to allow for fast_install
12147 # before this can be enabled.
12148 hardcode_into_libs=yes
12149
12150 dynamic_linker='Android linker'
12151 # -rpath works at least for libraries that are not overridden by
12152 # libraries installed in system locations.
12153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12154 ;;
12155
12156 # This must be glibc/ELF.
12157 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12158 version_type=linux # correct to gnu/linux during the next big refactor
12159 need_lib_prefix=no
12160 need_version=no
12161 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12162 soname_spec='$libname$release$shared_ext$major'
12163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12164 shlibpath_var=LD_LIBRARY_PATH
12165 shlibpath_overrides_runpath=no
12166
12167 # Some binutils ld are patched to set DT_RUNPATH
12168 if test ${lt_cv_shlibpath_overrides_runpath+y}
12169 then :
12170 printf %s "(cached) " >&6
12171 else case e in #(
12172 e) lt_cv_shlibpath_overrides_runpath=no
12173 save_LDFLAGS=$LDFLAGS
12174 save_libdir=$libdir
12175 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12176 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179
12180 int
12181 main (void)
12182 {
12183
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 if ac_fn_c_try_link "$LINENO"
12189 then :
12190 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12191 then :
12192 lt_cv_shlibpath_overrides_runpath=yes
12193 fi
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LDFLAGS=$save_LDFLAGS
12198 libdir=$save_libdir
12199 ;;
12200 esac
12201 fi
12202
12203 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12204
12205 # This implies no fast_install, which is unacceptable.
12206 # Some rework will be needed to allow for fast_install
12207 # before this can be enabled.
12208 hardcode_into_libs=yes
12209
12210 # Ideally, we could use ldconfig to report *all* directories which are
12211 # searched for libraries, however this is still not possible. Aside from not
12212 # being certain /sbin/ldconfig is available, command
12213 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12214 # even though it is searched at run-time. Try to do the best guess by
12215 # appending ld.so.conf contents (and includes) to the search path.
12216 if test -f /etc/ld.so.conf; then
12217 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' ' '`
12218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12219 fi
12220
12221 # We used to test for /lib/ld.so.1 and disable shared libraries on
12222 # powerpc, because MkLinux only supported shared libraries with the
12223 # GNU dynamic linker. Since this was broken with cross compilers,
12224 # most powerpc-linux boxes support dynamic linking these days and
12225 # people can always --disable-shared, the test was removed, and we
12226 # assume the GNU/Linux dynamic linker is in use.
12227 dynamic_linker='GNU/Linux ld.so'
12228 ;;
12229
12230 netbsdelf*-gnu)
12231 version_type=linux
12232 need_lib_prefix=no
12233 need_version=no
12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12235 soname_spec='$libname$release$shared_ext$major'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=no
12238 hardcode_into_libs=yes
12239 dynamic_linker='NetBSD ld.elf_so'
12240 ;;
12241
12242 netbsd*)
12243 version_type=sunos
12244 need_lib_prefix=no
12245 need_version=no
12246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12249 dynamic_linker='NetBSD (a.out) ld.so'
12250 else
12251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12252 soname_spec='$libname$release$shared_ext$major'
12253 dynamic_linker='NetBSD ld.elf_so'
12254 fi
12255 shlibpath_var=LD_LIBRARY_PATH
12256 shlibpath_overrides_runpath=yes
12257 hardcode_into_libs=yes
12258 ;;
12259
12260 *-mlibc)
12261 version_type=linux # correct to gnu/linux during the next big refactor
12262 need_lib_prefix=no
12263 need_version=no
12264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12265 soname_spec='$libname$release$shared_ext$major'
12266 dynamic_linker='mlibc ld.so'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=no
12269 hardcode_into_libs=yes
12270 ;;
12271
12272 newsos6)
12273 version_type=linux # correct to gnu/linux during the next big refactor
12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12275 shlibpath_var=LD_LIBRARY_PATH
12276 shlibpath_overrides_runpath=yes
12277 ;;
12278
12279 *nto* | *qnx*)
12280 version_type=qnx
12281 need_lib_prefix=no
12282 need_version=no
12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284 soname_spec='$libname$release$shared_ext$major'
12285 shlibpath_var=LD_LIBRARY_PATH
12286 shlibpath_overrides_runpath=no
12287 hardcode_into_libs=yes
12288 dynamic_linker='ldqnx.so'
12289 ;;
12290
12291 openbsd*)
12292 version_type=sunos
12293 sys_lib_dlsearch_path_spec=/usr/lib
12294 need_lib_prefix=no
12295 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12296 need_version=no
12297 else
12298 need_version=yes
12299 fi
12300 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12302 shlibpath_var=LD_LIBRARY_PATH
12303 shlibpath_overrides_runpath=yes
12304 ;;
12305
12306 os2*)
12307 libname_spec='$name'
12308 version_type=windows
12309 shrext_cmds=.dll
12310 need_version=no
12311 need_lib_prefix=no
12312 # OS/2 can only load a DLL with a base name of 8 characters or less.
12313 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12314 v=$($ECHO $release$versuffix | tr -d .-);
12315 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12316 $ECHO $n$v`$shared_ext'
12317 library_names_spec='${libname}_dll.$libext'
12318 dynamic_linker='OS/2 ld.exe'
12319 shlibpath_var=BEGINLIBPATH
12320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12322 postinstall_cmds='base_file=`basename \$file`~
12323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12324 dldir=$destdir/`dirname \$dlpath`~
12325 test -d \$dldir || mkdir -p \$dldir~
12326 $install_prog $dir/$dlname \$dldir/$dlname~
12327 chmod a+x \$dldir/$dlname~
12328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12330 fi'
12331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12332 dlpath=$dir/\$dldll~
12333 $RM \$dlpath'
12334 ;;
12335
12336 osf3* | osf4* | osf5*)
12337 version_type=osf
12338 need_lib_prefix=no
12339 need_version=no
12340 soname_spec='$libname$release$shared_ext$major'
12341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342 shlibpath_var=LD_LIBRARY_PATH
12343 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12345 ;;
12346
12347 rdos*)
12348 dynamic_linker=no
12349 ;;
12350
12351 serenity*)
12352 version_type=linux # correct to gnu/linux during the next big refactor
12353 need_lib_prefix=no
12354 need_version=no
12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12356 soname_spec='$libname$release$shared_ext$major'
12357 shlibpath_var=LD_LIBRARY_PATH
12358 shlibpath_overrides_runpath=no
12359 dynamic_linker='SerenityOS LibELF'
12360 ;;
12361
12362 solaris*)
12363 version_type=linux # correct to gnu/linux during the next big refactor
12364 need_lib_prefix=no
12365 need_version=no
12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12367 soname_spec='$libname$release$shared_ext$major'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=yes
12370 hardcode_into_libs=yes
12371 # ldd complains unless libraries are executable
12372 postinstall_cmds='chmod +x $lib'
12373 ;;
12374
12375 sunos4*)
12376 version_type=sunos
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes
12381 if test yes = "$with_gnu_ld"; then
12382 need_lib_prefix=no
12383 fi
12384 need_version=yes
12385 ;;
12386
12387 sysv4 | sysv4.3*)
12388 version_type=linux # correct to gnu/linux during the next big refactor
12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12390 soname_spec='$libname$release$shared_ext$major'
12391 shlibpath_var=LD_LIBRARY_PATH
12392 case $host_vendor in
12393 sni)
12394 shlibpath_overrides_runpath=no
12395 need_lib_prefix=no
12396 runpath_var=LD_RUN_PATH
12397 ;;
12398 siemens)
12399 need_lib_prefix=no
12400 ;;
12401 motorola)
12402 need_lib_prefix=no
12403 need_version=no
12404 shlibpath_overrides_runpath=no
12405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12406 ;;
12407 esac
12408 ;;
12409
12410 sysv4*MP*)
12411 if test -d /usr/nec; then
12412 version_type=linux # correct to gnu/linux during the next big refactor
12413 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12414 soname_spec='$libname$shared_ext.$major'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 fi
12417 ;;
12418
12419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12420 version_type=sco
12421 need_lib_prefix=no
12422 need_version=no
12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12424 soname_spec='$libname$release$shared_ext$major'
12425 shlibpath_var=LD_LIBRARY_PATH
12426 shlibpath_overrides_runpath=yes
12427 hardcode_into_libs=yes
12428 if test yes = "$with_gnu_ld"; then
12429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12430 else
12431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12432 case $host_os in
12433 sco3.2v5*)
12434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12435 ;;
12436 esac
12437 fi
12438 sys_lib_dlsearch_path_spec='/usr/lib'
12439 ;;
12440
12441 tpf*)
12442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12443 version_type=linux # correct to gnu/linux during the next big refactor
12444 need_lib_prefix=no
12445 need_version=no
12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12447 shlibpath_var=LD_LIBRARY_PATH
12448 shlibpath_overrides_runpath=no
12449 hardcode_into_libs=yes
12450 ;;
12451
12452 uts4*)
12453 version_type=linux # correct to gnu/linux during the next big refactor
12454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12455 soname_spec='$libname$release$shared_ext$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12457 ;;
12458
12459 emscripten*)
12460 version_type=none
12461 need_lib_prefix=no
12462 need_version=no
12463 library_names_spec='$libname$release$shared_ext'
12464 soname_spec='$libname$release$shared_ext'
12465 finish_cmds=
12466 dynamic_linker="Emscripten linker"
12467 lt_prog_compiler_wl=
12468 lt_prog_compiler_pic=
12469 lt_prog_compiler_static=
12470
12471
12472 if test yes = "$GCC"; then
12473 lt_prog_compiler_wl='-Wl,'
12474 lt_prog_compiler_static='-static'
12475
12476 case $host_os in
12477 aix*)
12478 # All AIX code is PIC.
12479 if test ia64 = "$host_cpu"; then
12480 # AIX 5 now supports IA64 processor
12481 lt_prog_compiler_static='-Bstatic'
12482 fi
12483 lt_prog_compiler_pic='-fPIC'
12484 ;;
12485
12486 amigaos*)
12487 case $host_cpu in
12488 powerpc)
12489 # see comment about AmigaOS4 .so support
12490 lt_prog_compiler_pic='-fPIC'
12491 ;;
12492 m68k)
12493 # FIXME: we need at least 68020 code to build shared libraries, but
12494 # adding the '-m68020' flag to GCC prevents building anything better,
12495 # like '-m68040'.
12496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12497 ;;
12498 esac
12499 ;;
12500
12501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12502 # PIC is the default for these OSes.
12503 ;;
12504
12505 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12506 # This hack is so that the source file can tell whether it is being
12507 # built for inclusion in a dll (and should export symbols for example).
12508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12509 # (--disable-auto-import) libraries
12510 lt_prog_compiler_pic='-DDLL_EXPORT'
12511 case $host_os in
12512 os2*)
12513 lt_prog_compiler_static='$wl-static'
12514 ;;
12515 esac
12516 ;;
12517
12518 darwin* | rhapsody*)
12519 # PIC is the default on this platform
12520 # Common symbols not allowed in MH_DYLIB files
12521 lt_prog_compiler_pic='-fno-common'
12522 ;;
12523
12524 haiku*)
12525 # PIC is the default for Haiku.
12526 # The "-static" flag exists, but is broken.
12527 lt_prog_compiler_static=
12528 ;;
12529
12530 hpux*)
12531 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12532 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12533 # sets the default TLS model and affects inlining.
12534 case $host_cpu in
12535 hppa*64*)
12536 # +Z the default
12537 ;;
12538 *)
12539 lt_prog_compiler_pic='-fPIC'
12540 ;;
12541 esac
12542 ;;
12543
12544 interix[3-9]*)
12545 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12546 # Instead, we relocate shared libraries at runtime.
12547 ;;
12548
12549 msdosdjgpp*)
12550 # Just because we use GCC doesn't mean we suddenly get shared libraries
12551 # on systems that don't support them.
12552 lt_prog_compiler_can_build_shared=no
12553 enable_shared=no
12554 ;;
12555
12556 *nto* | *qnx*)
12557 # QNX uses GNU C++, but need to define -shared option too, otherwise
12558 # it will coredump.
12559 lt_prog_compiler_pic='-fPIC -shared'
12560 ;;
12561
12562 sysv4*MP*)
12563 if test -d /usr/nec; then
12564 lt_prog_compiler_pic=-Kconform_pic
12565 fi
12566 ;;
12567
12568 *)
12569 lt_prog_compiler_pic='-fPIC'
12570 ;;
12571 esac
12572
12573 case $cc_basename in
12574 nvcc*) # Cuda Compiler Driver 2.2
12575 lt_prog_compiler_wl='-Xlinker '
12576 if test -n "$lt_prog_compiler_pic"; then
12577 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12578 fi
12579 ;;
12580 esac
12581 else
12582 # PORTME Check for flag to pass linker flags through the system compiler.
12583 case $host_os in
12584 aix*)
12585 lt_prog_compiler_wl='-Wl,'
12586 if test ia64 = "$host_cpu"; then
12587 # AIX 5 now supports IA64 processor
12588 lt_prog_compiler_static='-Bstatic'
12589 else
12590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12591 fi
12592 ;;
12593
12594 darwin* | rhapsody*)
12595 # PIC is the default on this platform
12596 # Common symbols not allowed in MH_DYLIB files
12597 lt_prog_compiler_pic='-fno-common'
12598 case $cc_basename in
12599 nagfor*)
12600 # NAG Fortran compiler
12601 lt_prog_compiler_wl='-Wl,-Wl,,'
12602 lt_prog_compiler_pic='-PIC'
12603 lt_prog_compiler_static='-Bstatic'
12604 ;;
12605 esac
12606 ;;
12607
12608 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12609 # This hack is so that the source file can tell whether it is being
12610 # built for inclusion in a dll (and should export symbols for example).
12611 lt_prog_compiler_pic='-DDLL_EXPORT'
12612 case $host_os in
12613 os2*)
12614 lt_prog_compiler_static='$wl-static'
12615 ;;
12616 esac
12617 ;;
12618
12619 hpux9* | hpux10* | hpux11*)
12620 lt_prog_compiler_wl='-Wl,'
12621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12622 # not for PA HP-UX.
12623 case $host_cpu in
12624 hppa*64*|ia64*)
12625 # +Z the default
12626 ;;
12627 *)
12628 lt_prog_compiler_pic='+Z'
12629 ;;
12630 esac
12631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12632 lt_prog_compiler_static='$wl-a ${wl}archive'
12633 ;;
12634
12635 irix5* | irix6* | nonstopux*)
12636 lt_prog_compiler_wl='-Wl,'
12637 # PIC (with -KPIC) is the default.
12638 lt_prog_compiler_static='-non_shared'
12639 ;;
12640
12641 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12642 case $cc_basename in
12643 # old Intel for x86_64, which still supported -KPIC.
12644 ecc*)
12645 lt_prog_compiler_wl='-Wl,'
12646 lt_prog_compiler_pic='-KPIC'
12647 lt_prog_compiler_static='-static'
12648 ;;
12649 *flang* | ftn | f18* | f95*)
12650 # Flang compiler.
12651 lt_prog_compiler_wl='-Wl,'
12652 lt_prog_compiler_pic='-fPIC'
12653 lt_prog_compiler_static='-static'
12654 ;;
12655 # icc used to be incompatible with GCC.
12656 # ICC 10 doesn't accept -KPIC any more.
12657 icc* | ifort*)
12658 lt_prog_compiler_wl='-Wl,'
12659 lt_prog_compiler_pic='-fPIC'
12660 lt_prog_compiler_static='-static'
12661 ;;
12662 # Lahey Fortran 8.1.
12663 lf95*)
12664 lt_prog_compiler_wl='-Wl,'
12665 lt_prog_compiler_pic='--shared'
12666 lt_prog_compiler_static='--static'
12667 ;;
12668 nagfor*)
12669 # NAG Fortran compiler
12670 lt_prog_compiler_wl='-Wl,-Wl,,'
12671 lt_prog_compiler_pic='-PIC'
12672 lt_prog_compiler_static='-Bstatic'
12673 ;;
12674 tcc*)
12675 # Fabrice Bellard et al's Tiny C Compiler
12676 lt_prog_compiler_wl='-Wl,'
12677 lt_prog_compiler_pic='-fPIC'
12678 lt_prog_compiler_static='-static'
12679 ;;
12680 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12681 # Portland Group compilers (*not* the Pentium gcc compiler,
12682 # which looks to be a dead project)
12683 lt_prog_compiler_wl='-Wl,'
12684 lt_prog_compiler_pic='-fpic'
12685 lt_prog_compiler_static='-Bstatic'
12686 ;;
12687 ccc*)
12688 lt_prog_compiler_wl='-Wl,'
12689 # All Alpha code is PIC.
12690 lt_prog_compiler_static='-non_shared'
12691 ;;
12692 xl* | bgxl* | bgf* | mpixl*)
12693 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12694 lt_prog_compiler_wl='-Wl,'
12695 lt_prog_compiler_pic='-qpic'
12696 lt_prog_compiler_static='-qstaticlink'
12697 ;;
12698 *)
12699 case `$CC -V 2>&1 | $SED 5q` in
12700 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12701 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12702 lt_prog_compiler_pic='-KPIC'
12703 lt_prog_compiler_static='-Bstatic'
12704 lt_prog_compiler_wl=''
12705 ;;
12706 *Sun\ F* | *Sun*Fortran*)
12707 lt_prog_compiler_pic='-KPIC'
12708 lt_prog_compiler_static='-Bstatic'
12709 lt_prog_compiler_wl='-Qoption ld '
12710 ;;
12711 *Sun\ C*)
12712 # Sun C 5.9
12713 lt_prog_compiler_pic='-KPIC'
12714 lt_prog_compiler_static='-Bstatic'
12715 lt_prog_compiler_wl='-Wl,'
12716 ;;
12717 *Intel*\ [CF]*Compiler*)
12718 lt_prog_compiler_wl='-Wl,'
12719 lt_prog_compiler_pic='-fPIC'
12720 lt_prog_compiler_static='-static'
12721 ;;
12722 *Portland\ Group*)
12723 lt_prog_compiler_wl='-Wl,'
12724 lt_prog_compiler_pic='-fpic'
12725 lt_prog_compiler_static='-Bstatic'
12726 ;;
12727 esac
12728 ;;
12729 esac
12730 ;;
12731
12732 newsos6)
12733 lt_prog_compiler_pic='-KPIC'
12734 lt_prog_compiler_static='-Bstatic'
12735 ;;
12736
12737 *-mlibc)
12738 lt_prog_compiler_wl='-Wl,'
12739 lt_prog_compiler_pic='-fPIC'
12740 lt_prog_compiler_static='-static'
12741 ;;
12742
12743 *nto* | *qnx*)
12744 # QNX uses GNU C++, but need to define -shared option too, otherwise
12745 # it will coredump.
12746 lt_prog_compiler_pic='-fPIC -shared'
12747 ;;
12748
12749 osf3* | osf4* | osf5*)
12750 lt_prog_compiler_wl='-Wl,'
12751 # All OSF/1 code is PIC.
12752 lt_prog_compiler_static='-non_shared'
12753 ;;
12754
12755 rdos*)
12756 lt_prog_compiler_static='-non_shared'
12757 ;;
12758
12759 serenity*)
12760 ;;
12761
12762 solaris*)
12763 lt_prog_compiler_pic='-KPIC'
12764 lt_prog_compiler_static='-Bstatic'
12765 case $cc_basename in
12766 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12767 lt_prog_compiler_wl='-Qoption ld ';;
12768 *)
12769 lt_prog_compiler_wl='-Wl,';;
12770 esac
12771 ;;
12772
12773 sunos4*)
12774 lt_prog_compiler_wl='-Qoption ld '
12775 lt_prog_compiler_pic='-PIC'
12776 lt_prog_compiler_static='-Bstatic'
12777 ;;
12778
12779 sysv4 | sysv4.2uw2* | sysv4.3*)
12780 lt_prog_compiler_wl='-Wl,'
12781 lt_prog_compiler_pic='-KPIC'
12782 lt_prog_compiler_static='-Bstatic'
12783 ;;
12784
12785 sysv4*MP*)
12786 if test -d /usr/nec; then
12787 lt_prog_compiler_pic='-Kconform_pic'
12788 lt_prog_compiler_static='-Bstatic'
12789 fi
12790 ;;
12791
12792 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12793 lt_prog_compiler_wl='-Wl,'
12794 lt_prog_compiler_pic='-KPIC'
12795 lt_prog_compiler_static='-Bstatic'
12796 ;;
12797
12798 unicos*)
12799 lt_prog_compiler_wl='-Wl,'
12800 lt_prog_compiler_can_build_shared=no
12801 ;;
12802
12803 uts4*)
12804 lt_prog_compiler_pic='-pic'
12805 lt_prog_compiler_static='-Bstatic'
12806 ;;
12807
12808 *)
12809 lt_prog_compiler_can_build_shared=no
12810 ;;
12811 esac
12812 fi
12813
12814 case $host_os in
12815 # For platforms that do not support PIC, -DPIC is meaningless:
12816 *djgpp*)
12817 lt_prog_compiler_pic=
12818 ;;
12819 *)
12820 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12821 ;;
12822 esac
12823
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12825 printf %s "checking for $compiler option to produce PIC... " >&6; }
12826 if test ${lt_cv_prog_compiler_pic+y}
12827 then :
12828 printf %s "(cached) " >&6
12829 else case e in #(
12830 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12831 esac
12832 fi
12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12834 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12835 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12836
12837 #
12838 # Check to make sure the PIC flag actually works.
12839 #
12840 if test -n "$lt_prog_compiler_pic"; then
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12842 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12843 if test ${lt_cv_prog_compiler_pic_works+y}
12844 then :
12845 printf %s "(cached) " >&6
12846 else case e in #(
12847 e) lt_cv_prog_compiler_pic_works=no
12848 ac_outfile=conftest.$ac_objext
12849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12850 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12851 # Insert the option either (1) after the last *FLAGS variable, or
12852 # (2) before a word containing "conftest.", or (3) at the end.
12853 # Note that $ac_compile itself does not contain backslashes and begins
12854 # with a dollar sign (not a hyphen), so the echo should work correctly.
12855 # The option is referenced via a variable to avoid confusing sed.
12856 lt_compile=`echo "$ac_compile" | $SED \
12857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12859 -e 's:$: $lt_compiler_flag:'`
12860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12861 (eval "$lt_compile" 2>conftest.err)
12862 ac_status=$?
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 if (exit $ac_status) && test -s "$ac_outfile"; then
12866 # The compiler can only warn and ignore the option if not recognized
12867 # So say no if there are warnings other than the usual output.
12868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12871 lt_cv_prog_compiler_pic_works=yes
12872 fi
12873 fi
12874 $RM conftest*
12875 ;;
12876 esac
12877 fi
12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12879 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12880
12881 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12882 case $lt_prog_compiler_pic in
12883 "" | " "*) ;;
12884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12885 esac
12886 else
12887 lt_prog_compiler_pic=
12888 lt_prog_compiler_can_build_shared=no
12889 fi
12890
12891 fi
12892
12893
12894
12895
12896
12897 #
12898 # Check to make sure the static flag actually works.
12899 #
12900 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12902 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12903 if test ${lt_cv_prog_compiler_static_works+y}
12904 then :
12905 printf %s "(cached) " >&6
12906 else case e in #(
12907 e) lt_cv_prog_compiler_static_works=no
12908 save_LDFLAGS=$LDFLAGS
12909 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12910 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12911 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12912 # The linker can only warn and ignore the option if not recognized
12913 # So say no if there are warnings
12914 if test -s conftest.err; then
12915 # Append any errors to the config.log.
12916 cat conftest.err 1>&5
12917 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12919 if diff conftest.exp conftest.er2 >/dev/null; then
12920 lt_cv_prog_compiler_static_works=yes
12921 fi
12922 else
12923 lt_cv_prog_compiler_static_works=yes
12924 fi
12925 fi
12926 $RM -r conftest*
12927 LDFLAGS=$save_LDFLAGS
12928 ;;
12929 esac
12930 fi
12931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12932 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12933
12934 if test yes = "$lt_cv_prog_compiler_static_works"; then
12935 :
12936 else
12937 lt_prog_compiler_static=
12938 fi
12939
12940
12941
12942 ='-fPIC'
12943 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
12944 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'
12945 archive_cmds_need_lc=no
12946 no_undefined_flag=
12947 ;;
12948
12949 *)
12950 dynamic_linker=no
12951 ;;
12952 esac
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12954 printf "%s\n" "$dynamic_linker" >&6; }
12955 test no = "$dynamic_linker" && can_build_shared=no
12956
12957 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12958 if test yes = "$GCC"; then
12959 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12960 fi
12961
12962 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12963 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12964 fi
12965
12966 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12967 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12968 fi
12969
12970 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12971 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12972
12973 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12974 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12975
12976 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12977 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13076 printf %s "checking how to hardcode library paths into programs... " >&6; }
13077 hardcode_action=
13078 if test -n "$hardcode_libdir_flag_spec" ||
13079 test -n "$runpath_var" ||
13080 test yes = "$hardcode_automatic"; then
13081
13082 # We can hardcode non-existent directories.
13083 if test no != "$hardcode_direct" &&
13084 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13085 # have to relink, otherwise we might link with an installed library
13086 # when we should be linking with a yet-to-be-installed one
13087 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13088 test no != "$hardcode_minus_L"; then
13089 # Linking always hardcodes the temporary library directory.
13090 hardcode_action=relink
13091 else
13092 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13093 hardcode_action=immediate
13094 fi
13095 else
13096 # We cannot hardcode anything, or else we can only hardcode existing
13097 # directories.
13098 hardcode_action=unsupported
13099 fi
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13101 printf "%s\n" "$hardcode_action" >&6; }
13102
13103 if test relink = "$hardcode_action" ||
13104 test yes = "$inherit_rpath"; then
13105 # Fast installation is not supported
13106 enable_fast_install=no
13107 elif test yes = "$shlibpath_overrides_runpath" ||
13108 test no = "$enable_shared"; then
13109 # Fast installation is not necessary
13110 enable_fast_install=needless
13111 fi
13112
13113
13114
13115
13116
13117
13118 if test yes != "$enable_dlopen"; then
13119 enable_dlopen=unknown
13120 enable_dlopen_self=unknown
13121 enable_dlopen_self_static=unknown
13122 else
13123 lt_cv_dlopen=no
13124 lt_cv_dlopen_libs=
13125
13126 case $host_os in
13127 beos*)
13128 lt_cv_dlopen=load_add_on
13129 lt_cv_dlopen_libs=
13130 lt_cv_dlopen_self=yes
13131 ;;
13132
13133 mingw* | windows* | pw32* | cegcc*)
13134 lt_cv_dlopen=LoadLibrary
13135 lt_cv_dlopen_libs=
13136 ;;
13137
13138 cygwin*)
13139 lt_cv_dlopen=dlopen
13140 lt_cv_dlopen_libs=
13141 ;;
13142
13143 darwin*)
13144 # if libdl is installed we need to link against it
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13146 printf %s "checking for dlopen in -ldl... " >&6; }
13147 if test ${ac_cv_lib_dl_dlopen+y}
13148 then :
13149 printf %s "(cached) " >&6
13150 else case e in #(
13151 e) ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-ldl $LIBS"
13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155
13156 /* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply.
13159 The 'extern "C"' is for builds by C++ compilers;
13160 although this is not generally supported in C code supporting it here
13161 has little cost and some practical benefit (sr 110532). */
13162 #ifdef __cplusplus
13163 extern "C"
13164 #endif
13165 char dlopen (void);
13166 int
13167 main (void)
13168 {
13169 return dlopen ();
13170 ;
13171 return 0;
13172 }
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"
13175 then :
13176 ac_cv_lib_dl_dlopen=yes
13177 else case e in #(
13178 e) ac_cv_lib_dl_dlopen=no ;;
13179 esac
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13182 conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS ;;
13184 esac
13185 fi
13186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13187 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13188 if test "x$ac_cv_lib_dl_dlopen" = xyes
13189 then :
13190 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13191 else case e in #(
13192 e)
13193 lt_cv_dlopen=dyld
13194 lt_cv_dlopen_libs=
13195 lt_cv_dlopen_self=yes
13196 ;;
13197 esac
13198 fi
13199
13200 ;;
13201
13202 tpf*)
13203 # Don't try to run any link tests for TPF. We know it's impossible
13204 # because TPF is a cross-compiler, and we know how we open DSOs.
13205 lt_cv_dlopen=dlopen
13206 lt_cv_dlopen_libs=
13207 lt_cv_dlopen_self=no
13208 ;;
13209
13210 *)
13211 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13212 if test "x$ac_cv_func_shl_load" = xyes
13213 then :
13214 lt_cv_dlopen=shl_load
13215 else case e in #(
13216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13217 printf %s "checking for shl_load in -ldld... " >&6; }
13218 if test ${ac_cv_lib_dld_shl_load+y}
13219 then :
13220 printf %s "(cached) " >&6
13221 else case e in #(
13222 e) ac_check_lib_save_LIBS=$LIBS
13223 LIBS="-ldld $LIBS"
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226
13227 /* Override any GCC internal prototype to avoid an error.
13228 Use char because int might match the return type of a GCC
13229 builtin and then its argument prototype would still apply.
13230 The 'extern "C"' is for builds by C++ compilers;
13231 although this is not generally supported in C code supporting it here
13232 has little cost and some practical benefit (sr 110532). */
13233 #ifdef __cplusplus
13234 extern "C"
13235 #endif
13236 char shl_load (void);
13237 int
13238 main (void)
13239 {
13240 return shl_load ();
13241 ;
13242 return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_link "$LINENO"
13246 then :
13247 ac_cv_lib_dld_shl_load=yes
13248 else case e in #(
13249 e) ac_cv_lib_dld_shl_load=no ;;
13250 esac
13251 fi
13252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS ;;
13255 esac
13256 fi
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13258 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13259 if test "x$ac_cv_lib_dld_shl_load" = xyes
13260 then :
13261 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13262 else case e in #(
13263 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13264 if test "x$ac_cv_func_dlopen" = xyes
13265 then :
13266 lt_cv_dlopen=dlopen
13267 else case e in #(
13268 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13269 printf %s "checking for dlopen in -ldl... " >&6; }
13270 if test ${ac_cv_lib_dl_dlopen+y}
13271 then :
13272 printf %s "(cached) " >&6
13273 else case e in #(
13274 e) ac_check_lib_save_LIBS=$LIBS
13275 LIBS="-ldl $LIBS"
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278
13279 /* Override any GCC internal prototype to avoid an error.
13280 Use char because int might match the return type of a GCC
13281 builtin and then its argument prototype would still apply.
13282 The 'extern "C"' is for builds by C++ compilers;
13283 although this is not generally supported in C code supporting it here
13284 has little cost and some practical benefit (sr 110532). */
13285 #ifdef __cplusplus
13286 extern "C"
13287 #endif
13288 char dlopen (void);
13289 int
13290 main (void)
13291 {
13292 return dlopen ();
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"
13298 then :
13299 ac_cv_lib_dl_dlopen=yes
13300 else case e in #(
13301 e) ac_cv_lib_dl_dlopen=no ;;
13302 esac
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS ;;
13307 esac
13308 fi
13309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13310 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13311 if test "x$ac_cv_lib_dl_dlopen" = xyes
13312 then :
13313 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13314 else case e in #(
13315 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13316 printf %s "checking for dlopen in -lsvld... " >&6; }
13317 if test ${ac_cv_lib_svld_dlopen+y}
13318 then :
13319 printf %s "(cached) " >&6
13320 else case e in #(
13321 e) ac_check_lib_save_LIBS=$LIBS
13322 LIBS="-lsvld $LIBS"
13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324 /* end confdefs.h. */
13325
13326 /* Override any GCC internal prototype to avoid an error.
13327 Use char because int might match the return type of a GCC
13328 builtin and then its argument prototype would still apply.
13329 The 'extern "C"' is for builds by C++ compilers;
13330 although this is not generally supported in C code supporting it here
13331 has little cost and some practical benefit (sr 110532). */
13332 #ifdef __cplusplus
13333 extern "C"
13334 #endif
13335 char dlopen (void);
13336 int
13337 main (void)
13338 {
13339 return dlopen ();
13340 ;
13341 return 0;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_link "$LINENO"
13345 then :
13346 ac_cv_lib_svld_dlopen=yes
13347 else case e in #(
13348 e) ac_cv_lib_svld_dlopen=no ;;
13349 esac
13350 fi
13351 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS ;;
13354 esac
13355 fi
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13357 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13358 if test "x$ac_cv_lib_svld_dlopen" = xyes
13359 then :
13360 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13361 else case e in #(
13362 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13363 printf %s "checking for dld_link in -ldld... " >&6; }
13364 if test ${ac_cv_lib_dld_dld_link+y}
13365 then :
13366 printf %s "(cached) " >&6
13367 else case e in #(
13368 e) ac_check_lib_save_LIBS=$LIBS
13369 LIBS="-ldld $LIBS"
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372
13373 /* Override any GCC internal prototype to avoid an error.
13374 Use char because int might match the return type of a GCC
13375 builtin and then its argument prototype would still apply.
13376 The 'extern "C"' is for builds by C++ compilers;
13377 although this is not generally supported in C code supporting it here
13378 has little cost and some practical benefit (sr 110532). */
13379 #ifdef __cplusplus
13380 extern "C"
13381 #endif
13382 char dld_link (void);
13383 int
13384 main (void)
13385 {
13386 return dld_link ();
13387 ;
13388 return 0;
13389 }
13390 _ACEOF
13391 if ac_fn_c_try_link "$LINENO"
13392 then :
13393 ac_cv_lib_dld_dld_link=yes
13394 else case e in #(
13395 e) ac_cv_lib_dld_dld_link=no ;;
13396 esac
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS ;;
13401 esac
13402 fi
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13404 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13405 if test "x$ac_cv_lib_dld_dld_link" = xyes
13406 then :
13407 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13408 fi
13409
13410 ;;
13411 esac
13412 fi
13413
13414 ;;
13415 esac
13416 fi
13417
13418 ;;
13419 esac
13420 fi
13421
13422 ;;
13423 esac
13424 fi
13425
13426 ;;
13427 esac
13428 fi
13429
13430 ;;
13431 esac
13432
13433 if test no = "$lt_cv_dlopen"; then
13434 enable_dlopen=no
13435 else
13436 enable_dlopen=yes
13437 fi
13438
13439 case $lt_cv_dlopen in
13440 dlopen)
13441 save_CPPFLAGS=$CPPFLAGS
13442 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13443
13444 save_LDFLAGS=$LDFLAGS
13445 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13446
13447 save_LIBS=$LIBS
13448 LIBS="$lt_cv_dlopen_libs $LIBS"
13449
13450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13451 printf %s "checking whether a program can dlopen itself... " >&6; }
13452 if test ${lt_cv_dlopen_self+y}
13453 then :
13454 printf %s "(cached) " >&6
13455 else case e in #(
13456 e) if test yes = "$cross_compiling"; then :
13457 lt_cv_dlopen_self=cross
13458 else
13459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13460 lt_status=$lt_dlunknown
13461 cat > conftest.$ac_ext <<_LT_EOF
13462 #line $LINENO "configure"
13463 #include "confdefs.h"
13464
13465 #if HAVE_DLFCN_H
13466 #include <dlfcn.h>
13467 #endif
13468
13469 #include <stdio.h>
13470
13471 #ifdef RTLD_GLOBAL
13472 # define LT_DLGLOBAL RTLD_GLOBAL
13473 #else
13474 # ifdef DL_GLOBAL
13475 # define LT_DLGLOBAL DL_GLOBAL
13476 # else
13477 # define LT_DLGLOBAL 0
13478 # endif
13479 #endif
13480
13481 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13482 find out it does not work in some platform. */
13483 #ifndef LT_DLLAZY_OR_NOW
13484 # ifdef RTLD_LAZY
13485 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13486 # else
13487 # ifdef DL_LAZY
13488 # define LT_DLLAZY_OR_NOW DL_LAZY
13489 # else
13490 # ifdef RTLD_NOW
13491 # define LT_DLLAZY_OR_NOW RTLD_NOW
13492 # else
13493 # ifdef DL_NOW
13494 # define LT_DLLAZY_OR_NOW DL_NOW
13495 # else
13496 # define LT_DLLAZY_OR_NOW 0
13497 # endif
13498 # endif
13499 # endif
13500 # endif
13501 #endif
13502
13503 /* When -fvisibility=hidden is used, assume the code has been annotated
13504 correspondingly for the symbols needed. */
13505 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13506 int fnord (void) __attribute__((visibility("default")));
13507 #endif
13508
13509 int fnord (void) { return 42; }
13510 int main (void)
13511 {
13512 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13513 int status = $lt_dlunknown;
13514
13515 if (self)
13516 {
13517 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13518 else
13519 {
13520 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13521 else puts (dlerror ());
13522 }
13523 /* dlclose (self); */
13524 }
13525 else
13526 puts (dlerror ());
13527
13528 return status;
13529 }
13530 _LT_EOF
13531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13532 (eval $ac_link) 2>&5
13533 ac_status=$?
13534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13535 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13536 (./conftest; exit; ) >&5 2>/dev/null
13537 lt_status=$?
13538 case x$lt_status in
13539 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13540 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13541 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13542 esac
13543 else :
13544 # compilation failed
13545 lt_cv_dlopen_self=no
13546 fi
13547 fi
13548 rm -fr conftest*
13549
13550 ;;
13551 esac
13552 fi
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13554 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13555
13556 if test yes = "$lt_cv_dlopen_self"; then
13557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13559 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13560 if test ${lt_cv_dlopen_self_static+y}
13561 then :
13562 printf %s "(cached) " >&6
13563 else case e in #(
13564 e) if test yes = "$cross_compiling"; then :
13565 lt_cv_dlopen_self_static=cross
13566 else
13567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13568 lt_status=$lt_dlunknown
13569 cat > conftest.$ac_ext <<_LT_EOF
13570 #line $LINENO "configure"
13571 #include "confdefs.h"
13572
13573 #if HAVE_DLFCN_H
13574 #include <dlfcn.h>
13575 #endif
13576
13577 #include <stdio.h>
13578
13579 #ifdef RTLD_GLOBAL
13580 # define LT_DLGLOBAL RTLD_GLOBAL
13581 #else
13582 # ifdef DL_GLOBAL
13583 # define LT_DLGLOBAL DL_GLOBAL
13584 # else
13585 # define LT_DLGLOBAL 0
13586 # endif
13587 #endif
13588
13589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13590 find out it does not work in some platform. */
13591 #ifndef LT_DLLAZY_OR_NOW
13592 # ifdef RTLD_LAZY
13593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13594 # else
13595 # ifdef DL_LAZY
13596 # define LT_DLLAZY_OR_NOW DL_LAZY
13597 # else
13598 # ifdef RTLD_NOW
13599 # define LT_DLLAZY_OR_NOW RTLD_NOW
13600 # else
13601 # ifdef DL_NOW
13602 # define LT_DLLAZY_OR_NOW DL_NOW
13603 # else
13604 # define LT_DLLAZY_OR_NOW 0
13605 # endif
13606 # endif
13607 # endif
13608 # endif
13609 #endif
13610
13611 /* When -fvisibility=hidden is used, assume the code has been annotated
13612 correspondingly for the symbols needed. */
13613 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13614 int fnord (void) __attribute__((visibility("default")));
13615 #endif
13616
13617 int fnord (void) { return 42; }
13618 int main (void)
13619 {
13620 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13621 int status = $lt_dlunknown;
13622
13623 if (self)
13624 {
13625 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13626 else
13627 {
13628 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13629 else puts (dlerror ());
13630 }
13631 /* dlclose (self); */
13632 }
13633 else
13634 puts (dlerror ());
13635
13636 return status;
13637 }
13638 _LT_EOF
13639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13640 (eval $ac_link) 2>&5
13641 ac_status=$?
13642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13643 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13644 (./conftest; exit; ) >&5 2>/dev/null
13645 lt_status=$?
13646 case x$lt_status in
13647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13649 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13650 esac
13651 else :
13652 # compilation failed
13653 lt_cv_dlopen_self_static=no
13654 fi
13655 fi
13656 rm -fr conftest*
13657
13658 ;;
13659 esac
13660 fi
13661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13662 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13663 fi
13664
13665 CPPFLAGS=$save_CPPFLAGS
13666 LDFLAGS=$save_LDFLAGS
13667 LIBS=$save_LIBS
13668 ;;
13669 esac
13670
13671 case $lt_cv_dlopen_self in
13672 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13673 *) enable_dlopen_self=unknown ;;
13674 esac
13675
13676 case $lt_cv_dlopen_self_static in
13677 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13678 *) enable_dlopen_self_static=unknown ;;
13679 esac
13680 fi
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698 striplib=
13699 old_striplib=
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13701 printf %s "checking whether stripping libraries is possible... " >&6; }
13702 if test -z "$STRIP"; then
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 printf "%s\n" "no" >&6; }
13705 else
13706 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13707 old_striplib="$STRIP --strip-debug"
13708 striplib="$STRIP --strip-unneeded"
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 printf "%s\n" "yes" >&6; }
13711 else
13712 case $host_os in
13713 darwin*)
13714 # FIXME - insert some real tests, host_os isn't really good enough
13715 striplib="$STRIP -x"
13716 old_striplib="$STRIP -S"
13717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13718 printf "%s\n" "yes" >&6; }
13719 ;;
13720 freebsd*)
13721 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13722 old_striplib="$STRIP --strip-debug"
13723 striplib="$STRIP --strip-unneeded"
13724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13725 printf "%s\n" "yes" >&6; }
13726 else
13727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13728 printf "%s\n" "no" >&6; }
13729 fi
13730 ;;
13731 *)
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13733 printf "%s\n" "no" >&6; }
13734 ;;
13735 esac
13736 fi
13737 fi
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750 # Report what library types will actually be built
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13752 printf %s "checking if libtool supports shared libraries... " >&6; }
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13754 printf "%s\n" "$can_build_shared" >&6; }
13755
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13757 printf %s "checking whether to build shared libraries... " >&6; }
13758 test no = "$can_build_shared" && enable_shared=no
13759
13760 # On AIX, shared libraries and static libraries use the same namespace, and
13761 # are all built from PIC.
13762 case $host_os in
13763 aix3*)
13764 test yes = "$enable_shared" && enable_static=no
13765 if test -n "$RANLIB"; then
13766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13767 postinstall_cmds='$RANLIB $lib'
13768 fi
13769 ;;
13770
13771 aix[4-9]*)
13772 if test ia64 != "$host_cpu"; then
13773 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13774 yes,aix,yes) ;; # shared object as lib.so file only
13775 yes,svr4,*) ;; # shared object as lib.so archive member only
13776 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13777 esac
13778 fi
13779 ;;
13780 esac
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13782 printf "%s\n" "$enable_shared" >&6; }
13783
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13785 printf %s "checking whether to build static libraries... " >&6; }
13786 # Make sure either enable_shared or enable_static is yes.
13787 test yes = "$enable_shared" || enable_static=yes
13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13789 printf "%s\n" "$enable_static" >&6; }
13790
13791
13792
13793
13794 fi
13795 ac_ext=c
13796 ac_cpp='$CPP $CPPFLAGS'
13797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13800
13801 CC=$lt_save_CC
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817 ac_config_commands="$ac_config_commands libtool"
13818
13819
13820
13821
13822 # Only expand once:
13823
13824
13825
13826
13827 AM_DEFAULT_VERBOSITY=0
13828
13829 AM_CPPFLAGS="-I\${top_srcdir}/include -I\${top_builddir}/include"
13830 AM_CFLAGS="-Wall -Umips"
13831 AM_LDFLAGS="-Wl,-z -Wl,relro"
13832
13833
13834
13835
13836
13837
13838
13839 VERSION_MAJOR=$(echo ${VERSION} | cut -d'.' -f 1)
13840 VERSION_MINOR=$(echo ${VERSION} | cut -d'.' -f 2)
13841 VERSION_MICRO=$(echo ${VERSION} | cut -d'.' -f 3)
13842
13843
13844
13845
13846 for ac_prog in cython3 cython
13847 do
13848 # Extract the first word of "$ac_prog", so it can be a program name with args.
13849 set dummy $ac_prog; ac_word=$2
13850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 printf %s "checking for $ac_word... " >&6; }
13852 if test ${ac_cv_prog_cython+y}
13853 then :
13854 printf %s "(cached) " >&6
13855 else case e in #(
13856 e) if test -n "$cython"; then
13857 ac_cv_prog_cython="$cython" # Let the user override the test.
13858 else
13859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13861 do
13862 IFS=$as_save_IFS
13863 case $as_dir in #(((
13864 '') as_dir=./ ;;
13865 */) ;;
13866 *) as_dir=$as_dir/ ;;
13867 esac
13868 for ac_exec_ext in '' $ac_executable_extensions; do
13869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13870 ac_cv_prog_cython="$ac_prog"
13871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13872 break 2
13873 fi
13874 done
13875 done
13876 IFS=$as_save_IFS
13877
13878 fi ;;
13879 esac
13880 fi
13881 cython=$ac_cv_prog_cython
13882 if test -n "$cython"; then
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cython" >&5
13884 printf "%s\n" "$cython" >&6; }
13885 else
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887 printf "%s\n" "no" >&6; }
13888 fi
13889
13890
13891 test -n "$cython" && break
13892 done
13893 test -n "$cython" || cython=""no""
13894
13895 if test "$cython" != no
13896 then :
13897
13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking cython version" >&5
13899 printf %s "checking cython version... " >&6; }
13900 CYTHON_VER_FULL=$(cython -V 2>&1 | cut -d' ' -f 3);
13901 CYTHON_VER_MAJ=$(echo $CYTHON_VER_FULL | cut -d'.' -f 1);
13902 CYTHON_VER_MIN=$(echo $CYTHON_VER_FULL | cut -d'.' -f 2);
13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CYTHON_VER_FULL" >&5
13904 printf "%s\n" "$CYTHON_VER_FULL" >&6; }
13905
13906 else case e in #(
13907 e)
13908 CYTHON_VER_MAJ=0
13909 CYTHON_VER_MIN=0
13910 ;;
13911 esac
13912 fi
13913
13914 # Check whether --enable-python was given.
13915 if test ${enable_python+y}
13916 then :
13917 enableval=$enable_python;
13918 fi
13919
13920 if test "$enable_python" = yes
13921 then :
13922
13923 # cython version check
13924 if test "$CYTHON_VER_MAJ" -eq 0 -a "$CYTHON_VER_MIN" -lt 29
13925 then :
13926
13927 as_fn_error $? "python bindings require cython 0.29 or higher" "$LINENO" 5
13928
13929 fi
13930
13931
13932
13933
13934
13935
13936 if test -n "$PYTHON"; then
13937 # If the user set $PYTHON, use it and don't search something else.
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
13939 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
13940 prog="import sys
13941 # split strings by '.' and convert to numeric. Append some zeros
13942 # because we need at least 4 digits for the hex conversion.
13943 # map returns an iterator in Python 3.0 and a list in 2.x
13944 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13945 minverhex = 0
13946 # xrange is not present in Python 3.0 and range returns an iterator
13947 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13948 sys.exit(sys.hexversion < minverhex)"
13949 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13950 ($PYTHON -c "$prog") >&5 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }
13954 then :
13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13956 printf "%s\n" "yes" >&6; }
13957 else case e in #(
13958 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13959 printf "%s\n" "no" >&6; }
13960 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
13961 esac
13962 fi
13963 am_display_PYTHON=$PYTHON
13964 else
13965 # Otherwise, try each interpreter until we find one that satisfies
13966 # VERSION.
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
13968 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
13969 if test ${am_cv_pathless_PYTHON+y}
13970 then :
13971 printf %s "(cached) " >&6
13972 else case e in #(
13973 e)
13974 for am_cv_pathless_PYTHON in python python3 python3.20 python3.19 python3.18 python3.17 python3.16 python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
13975 test "$am_cv_pathless_PYTHON" = none && break
13976 prog="import sys
13977 # split strings by '.' and convert to numeric. Append some zeros
13978 # because we need at least 4 digits for the hex conversion.
13979 # map returns an iterator in Python 3.0 and a list in 2.x
13980 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13981 minverhex = 0
13982 # xrange is not present in Python 3.0 and range returns an iterator
13983 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13984 sys.exit(sys.hexversion < minverhex)"
13985 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13986 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }
13990 then :
13991 break
13992 fi
13993 done ;;
13994 esac
13995 fi
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13997 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
13998 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13999 if test "$am_cv_pathless_PYTHON" = none; then
14000 PYTHON=:
14001 else
14002 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14003 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14005 printf %s "checking for $ac_word... " >&6; }
14006 if test ${ac_cv_path_PYTHON+y}
14007 then :
14008 printf %s "(cached) " >&6
14009 else case e in #(
14010 e) case $PYTHON in
14011 [\\/]* | ?:[\\/]*)
14012 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14013 ;;
14014 *)
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018 IFS=$as_save_IFS
14019 case $as_dir in #(((
14020 '') as_dir=./ ;;
14021 */) ;;
14022 *) as_dir=$as_dir/ ;;
14023 esac
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14026 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
14027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14028 break 2
14029 fi
14030 done
14031 done
14032 IFS=$as_save_IFS
14033
14034 ;;
14035 esac ;;
14036 esac
14037 fi
14038 PYTHON=$ac_cv_path_PYTHON
14039 if test -n "$PYTHON"; then
14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14041 printf "%s\n" "$PYTHON" >&6; }
14042 else
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044 printf "%s\n" "no" >&6; }
14045 fi
14046
14047
14048 fi
14049 am_display_PYTHON=$am_cv_pathless_PYTHON
14050 fi
14051
14052
14053 if test "$PYTHON" = :; then
14054 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14055 else
14056
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14058 printf %s "checking for $am_display_PYTHON version... " >&6; }
14059 if test ${am_cv_python_version+y}
14060 then :
14061 printf %s "(cached) " >&6
14062 else case e in #(
14063 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
14064 esac
14065 fi
14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14067 printf "%s\n" "$am_cv_python_version" >&6; }
14068 PYTHON_VERSION=$am_cv_python_version
14069
14070
14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14072 printf %s "checking for $am_display_PYTHON platform... " >&6; }
14073 if test ${am_cv_python_platform+y}
14074 then :
14075 printf %s "(cached) " >&6
14076 else case e in #(
14077 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
14078 esac
14079 fi
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14081 printf "%s\n" "$am_cv_python_platform" >&6; }
14082 PYTHON_PLATFORM=$am_cv_python_platform
14083
14084
14085 if test "x$prefix" = xNONE; then
14086 am__usable_prefix=$ac_default_prefix
14087 else
14088 am__usable_prefix=$prefix
14089 fi
14090
14091 # Allow user to request using sys.* values from Python,
14092 # instead of the GNU $prefix values.
14093
14094 # Check whether --with-python-sys-prefix was given.
14095 if test ${with_python_sys_prefix+y}
14096 then :
14097 withval=$with_python_sys_prefix; am_use_python_sys=:
14098 else case e in #(
14099 e) am_use_python_sys=false ;;
14100 esac
14101 fi
14102
14103
14104 # Allow user to override whatever the default Python prefix is.
14105
14106 # Check whether --with-python_prefix was given.
14107 if test ${with_python_prefix+y}
14108 then :
14109 withval=$with_python_prefix; am_python_prefix_subst=$withval
14110 am_cv_python_prefix=$withval
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
14112 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14114 printf "%s\n" "$am_cv_python_prefix" >&6; }
14115 else case e in #(
14116 e)
14117 if $am_use_python_sys; then
14118 # using python sys.prefix value, not GNU
14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
14120 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
14121 if test ${am_cv_python_prefix+y}
14122 then :
14123 printf %s "(cached) " >&6
14124 else case e in #(
14125 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
14126 esac
14127 fi
14128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14129 printf "%s\n" "$am_cv_python_prefix" >&6; }
14130
14131 case $am_cv_python_prefix in
14132 $am__usable_prefix*)
14133 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
14134 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
14135 ;;
14136 *)
14137 am_python_prefix_subst=$am_cv_python_prefix
14138 ;;
14139 esac
14140 else # using GNU prefix value, not python sys.prefix
14141 am_python_prefix_subst='${prefix}'
14142 am_python_prefix=$am_python_prefix_subst
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
14144 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
14146 printf "%s\n" "$am_python_prefix" >&6; }
14147 fi ;;
14148 esac
14149 fi
14150
14151 # Substituting python_prefix_subst value.
14152 PYTHON_PREFIX=$am_python_prefix_subst
14153
14154
14155 # emacs-page Now do it all over again for Python exec_prefix, but with yet
14156 # another conditional: fall back to regular prefix if that was specified.
14157
14158 # Check whether --with-python_exec_prefix was given.
14159 if test ${with_python_exec_prefix+y}
14160 then :
14161 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
14162 am_cv_python_exec_prefix=$withval
14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
14164 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14166 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14167 else case e in #(
14168 e)
14169 # no explicit --with-python_exec_prefix, but if
14170 # --with-python_prefix was given, use its value for python_exec_prefix too.
14171 if test -n "$with_python_prefix"
14172 then :
14173 am_python_exec_prefix_subst=$with_python_prefix
14174 am_cv_python_exec_prefix=$with_python_prefix
14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
14176 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14178 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14179 else case e in #(
14180 e)
14181 # Set am__usable_exec_prefix whether using GNU or Python values,
14182 # since we use that variable for pyexecdir.
14183 if test "x$exec_prefix" = xNONE; then
14184 am__usable_exec_prefix=$am__usable_prefix
14185 else
14186 am__usable_exec_prefix=$exec_prefix
14187 fi
14188 #
14189 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
14191 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
14192 if test ${am_cv_python_exec_prefix+y}
14193 then :
14194 printf %s "(cached) " >&6
14195 else case e in #(
14196 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
14197 esac
14198 fi
14199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14200 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14201 case $am_cv_python_exec_prefix in
14202 $am__usable_exec_prefix*)
14203 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
14204 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
14205 ;;
14206 *)
14207 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
14208 ;;
14209 esac
14210 else # using GNU $exec_prefix, not python sys.exec_prefix
14211 am_python_exec_prefix_subst='${exec_prefix}'
14212 am_python_exec_prefix=$am_python_exec_prefix_subst
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
14214 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
14216 printf "%s\n" "$am_python_exec_prefix" >&6; }
14217 fi ;;
14218 esac
14219 fi ;;
14220 esac
14221 fi
14222
14223 # Substituting python_exec_prefix_subst.
14224 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
14225
14226
14227 # Factor out some code duplication into this shell variable.
14228 am_python_setup_sysconfig="\
14229 import sys
14230 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14231 # with python 3.x. See automake bug#10227.
14232 try:
14233 import sysconfig
14234 except ImportError:
14235 can_use_sysconfig = 0
14236 else:
14237 can_use_sysconfig = 1
14238 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14239 # <https://github.com/pypa/virtualenv/issues/118>
14240 try:
14241 from platform import python_implementation
14242 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14243 can_use_sysconfig = 0
14244 except ImportError:
14245 pass" # end of am_python_setup_sysconfig
14246
14247 # More repeated code, for figuring out the installation scheme to use.
14248 am_python_setup_scheme="if hasattr(sysconfig, 'get_default_scheme'):
14249 scheme = sysconfig.get_default_scheme()
14250 else:
14251 scheme = sysconfig._get_default_scheme()
14252 if scheme == 'posix_local':
14253 if '$am_py_prefix' == '/usr':
14254 scheme = 'deb_system' # should only happen during Debian package builds
14255 else:
14256 # Debian's default scheme installs to /usr/local/ but we want to
14257 # follow the prefix, as we always have.
14258 # See bugs#54412, #64837, et al.
14259 scheme = 'posix_prefix'" # end of am_python_setup_scheme
14260
14261
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
14263 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
14264 if test ${am_cv_python_pythondir+y}
14265 then :
14266 printf %s "(cached) " >&6
14267 else case e in #(
14268 e) if test "x$am_cv_python_prefix" = x; then
14269 am_py_prefix=$am__usable_prefix
14270 else
14271 am_py_prefix=$am_cv_python_prefix
14272 fi
14273 am_cv_python_pythondir=`$PYTHON -c "
14274 $am_python_setup_sysconfig
14275 if can_use_sysconfig:
14276 try:
14277 $am_python_setup_scheme
14278 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
14279 except:
14280 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14281 else:
14282 from distutils import sysconfig
14283 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14284 sys.stdout.write(sitedir)"`
14285 #
14286 case $am_cv_python_pythondir in
14287 $am_py_prefix*)
14288 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14289 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
14290 ;;
14291 *)
14292 case $am_py_prefix in
14293 /usr|/System*) ;;
14294 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14295 ;;
14296 esac
14297 ;;
14298 esac
14299 ;;
14300 esac
14301 fi
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14303 printf "%s\n" "$am_cv_python_pythondir" >&6; }
14304 pythondir=$am_cv_python_pythondir
14305
14306
14307 pkgpythondir=\${pythondir}/$PACKAGE
14308
14309
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
14311 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
14312 if test ${am_cv_python_pyexecdir+y}
14313 then :
14314 printf %s "(cached) " >&6
14315 else case e in #(
14316 e) if test "x$am_cv_python_exec_prefix" = x; then
14317 am_py_exec_prefix=$am__usable_exec_prefix
14318 else
14319 am_py_exec_prefix=$am_cv_python_exec_prefix
14320 fi
14321 am_cv_python_pyexecdir=`$PYTHON -c "
14322 $am_python_setup_sysconfig
14323 if can_use_sysconfig:
14324 try:
14325 $am_python_setup_scheme
14326 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
14327 except:
14328 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
14329 else:
14330 from distutils import sysconfig
14331 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
14332 sys.stdout.write(sitedir)"`
14333 #
14334 case $am_cv_python_pyexecdir in
14335 $am_py_exec_prefix*)
14336 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14337 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
14338 ;;
14339 *)
14340 case $am_py_exec_prefix in
14341 /usr|/System*) ;;
14342 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14343 ;;
14344 esac
14345 ;;
14346 esac
14347 ;;
14348 esac
14349 fi
14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14351 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
14352 pyexecdir=$am_cv_python_pyexecdir
14353
14354
14355 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14356
14357
14358
14359 fi
14360
14361
14362 fi
14363 if test "$enable_python" = yes; then
14364 ENABLE_PYTHON_TRUE=
14365 ENABLE_PYTHON_FALSE='#'
14366 else
14367 ENABLE_PYTHON_TRUE='#'
14368 ENABLE_PYTHON_FALSE=
14369 fi
14370
14371
14372 printf "%s\n" "#define ENABLE_PYTHON $(test \"$enable_python\" = \"yes\" && echo 1 || echo 0)" >>confdefs.h
14373
14374
14375 if test -n "$ac_tool_prefix"; then
14376 # Extract the first word of "${ac_tool_prefix}gperf", so it can be a program name with args.
14377 set dummy ${ac_tool_prefix}gperf; ac_word=$2
14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 printf %s "checking for $ac_word... " >&6; }
14380 if test ${ac_cv_prog_GPERF+y}
14381 then :
14382 printf %s "(cached) " >&6
14383 else case e in #(
14384 e) if test -n "$GPERF"; then
14385 ac_cv_prog_GPERF="$GPERF" # Let the user override the test.
14386 else
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14389 do
14390 IFS=$as_save_IFS
14391 case $as_dir in #(((
14392 '') as_dir=./ ;;
14393 */) ;;
14394 *) as_dir=$as_dir/ ;;
14395 esac
14396 for ac_exec_ext in '' $ac_executable_extensions; do
14397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14398 ac_cv_prog_GPERF="${ac_tool_prefix}gperf"
14399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402 done
14403 done
14404 IFS=$as_save_IFS
14405
14406 fi ;;
14407 esac
14408 fi
14409 GPERF=$ac_cv_prog_GPERF
14410 if test -n "$GPERF"; then
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
14412 printf "%s\n" "$GPERF" >&6; }
14413 else
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 printf "%s\n" "no" >&6; }
14416 fi
14417
14418
14419 fi
14420 if test -z "$ac_cv_prog_GPERF"; then
14421 ac_ct_GPERF=$GPERF
14422 # Extract the first word of "gperf", so it can be a program name with args.
14423 set dummy gperf; ac_word=$2
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14425 printf %s "checking for $ac_word... " >&6; }
14426 if test ${ac_cv_prog_ac_ct_GPERF+y}
14427 then :
14428 printf %s "(cached) " >&6
14429 else case e in #(
14430 e) if test -n "$ac_ct_GPERF"; then
14431 ac_cv_prog_ac_ct_GPERF="$ac_ct_GPERF" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436 IFS=$as_save_IFS
14437 case $as_dir in #(((
14438 '') as_dir=./ ;;
14439 */) ;;
14440 *) as_dir=$as_dir/ ;;
14441 esac
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14444 ac_cv_prog_ac_ct_GPERF="gperf"
14445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14446 break 2
14447 fi
14448 done
14449 done
14450 IFS=$as_save_IFS
14451
14452 fi ;;
14453 esac
14454 fi
14455 ac_ct_GPERF=$ac_cv_prog_ac_ct_GPERF
14456 if test -n "$ac_ct_GPERF"; then
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GPERF" >&5
14458 printf "%s\n" "$ac_ct_GPERF" >&6; }
14459 else
14460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14461 printf "%s\n" "no" >&6; }
14462 fi
14463
14464 if test "x$ac_ct_GPERF" = x; then
14465 GPERF=""
14466 else
14467 case $cross_compiling:$ac_tool_warned in
14468 yes:)
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14470 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14471 ac_tool_warned=yes ;;
14472 esac
14473 GPERF=$ac_ct_GPERF
14474 fi
14475 else
14476 GPERF="$ac_cv_prog_GPERF"
14477 fi
14478
14479 if test -z "$GPERF"; then
14480 as_fn_error $? "please install gperf" "$LINENO" 5
14481 fi
14482
14483 # Extract the first word of "cov-build", so it can be a program name with args.
14484 set dummy cov-build; ac_word=$2
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14486 printf %s "checking for $ac_word... " >&6; }
14487 if test ${ac_cv_prog_have_coverity+y}
14488 then :
14489 printf %s "(cached) " >&6
14490 else case e in #(
14491 e) if test -n "$have_coverity"; then
14492 ac_cv_prog_have_coverity="$have_coverity" # Let the user override the test.
14493 else
14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14495 for as_dir in $PATH
14496 do
14497 IFS=$as_save_IFS
14498 case $as_dir in #(((
14499 '') as_dir=./ ;;
14500 */) ;;
14501 *) as_dir=$as_dir/ ;;
14502 esac
14503 for ac_exec_ext in '' $ac_executable_extensions; do
14504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14505 ac_cv_prog_have_coverity=""yes""
14506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14507 break 2
14508 fi
14509 done
14510 done
14511 IFS=$as_save_IFS
14512
14513 test -z "$ac_cv_prog_have_coverity" && ac_cv_prog_have_coverity=""no""
14514 fi ;;
14515 esac
14516 fi
14517 have_coverity=$ac_cv_prog_have_coverity
14518 if test -n "$have_coverity"; then
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_coverity" >&5
14520 printf "%s\n" "$have_coverity" >&6; }
14521 else
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523 printf "%s\n" "no" >&6; }
14524 fi
14525
14526
14527 if test "$have_coverity" = yes; then
14528 COVERITY_TRUE=
14529 COVERITY_FALSE='#'
14530 else
14531 COVERITY_TRUE='#'
14532 COVERITY_FALSE=
14533 fi
14534
14535
14536
14537
14538
14539 # allow to override gcov location
14540
14541 # Check whether --with-gcov was given.
14542 if test ${with_gcov+y}
14543 then :
14544 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
14545 else case e in #(
14546 e) _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov ;;
14547 esac
14548 fi
14549
14550
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14552 printf %s "checking whether to build with code coverage support... " >&6; }
14553 # Check whether --enable-code-coverage was given.
14554 if test ${enable_code_coverage+y}
14555 then :
14556 enableval=$enable_code_coverage;
14557 else case e in #(
14558 e) enable_code_coverage=no ;;
14559 esac
14560 fi
14561
14562
14563 if test x$enable_code_coverage = xyes; then
14564 CODE_COVERAGE_ENABLED_TRUE=
14565 CODE_COVERAGE_ENABLED_FALSE='#'
14566 else
14567 CODE_COVERAGE_ENABLED_TRUE='#'
14568 CODE_COVERAGE_ENABLED_FALSE=
14569 fi
14570
14571 CODE_COVERAGE_ENABLED=$enable_code_coverage
14572
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14574 printf "%s\n" "$enable_code_coverage" >&6; }
14575
14576 if test "$enable_code_coverage" = "yes"
14577 then :
14578
14579 # check for gcov
14580 if test -n "$ac_tool_prefix"; then
14581 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14582 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14584 printf %s "checking for $ac_word... " >&6; }
14585 if test ${ac_cv_prog_GCOV+y}
14586 then :
14587 printf %s "(cached) " >&6
14588 else case e in #(
14589 e) if test -n "$GCOV"; then
14590 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
14591 else
14592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14593 for as_dir in $PATH
14594 do
14595 IFS=$as_save_IFS
14596 case $as_dir in #(((
14597 '') as_dir=./ ;;
14598 */) ;;
14599 *) as_dir=$as_dir/ ;;
14600 esac
14601 for ac_exec_ext in '' $ac_executable_extensions; do
14602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14603 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14605 break 2
14606 fi
14607 done
14608 done
14609 IFS=$as_save_IFS
14610
14611 fi ;;
14612 esac
14613 fi
14614 GCOV=$ac_cv_prog_GCOV
14615 if test -n "$GCOV"; then
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
14617 printf "%s\n" "$GCOV" >&6; }
14618 else
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 printf "%s\n" "no" >&6; }
14621 fi
14622
14623
14624 fi
14625 if test -z "$ac_cv_prog_GCOV"; then
14626 ac_ct_GCOV=$GCOV
14627 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
14628 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14630 printf %s "checking for $ac_word... " >&6; }
14631 if test ${ac_cv_prog_ac_ct_GCOV+y}
14632 then :
14633 printf %s "(cached) " >&6
14634 else case e in #(
14635 e) if test -n "$ac_ct_GCOV"; then
14636 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
14637 else
14638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14639 for as_dir in $PATH
14640 do
14641 IFS=$as_save_IFS
14642 case $as_dir in #(((
14643 '') as_dir=./ ;;
14644 */) ;;
14645 *) as_dir=$as_dir/ ;;
14646 esac
14647 for ac_exec_ext in '' $ac_executable_extensions; do
14648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14649 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
14650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14651 break 2
14652 fi
14653 done
14654 done
14655 IFS=$as_save_IFS
14656
14657 fi ;;
14658 esac
14659 fi
14660 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
14661 if test -n "$ac_ct_GCOV"; then
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
14663 printf "%s\n" "$ac_ct_GCOV" >&6; }
14664 else
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 printf "%s\n" "no" >&6; }
14667 fi
14668
14669 if test "x$ac_ct_GCOV" = x; then
14670 GCOV=":"
14671 else
14672 case $cross_compiling:$ac_tool_warned in
14673 yes:)
14674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14676 ac_tool_warned=yes ;;
14677 esac
14678 GCOV=$ac_ct_GCOV
14679 fi
14680 else
14681 GCOV="$ac_cv_prog_GCOV"
14682 fi
14683
14684 if test "X$GCOV" = "X:"
14685 then :
14686 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
14687 fi
14688
14689
14690 if test "$GCC" = "no"
14691 then :
14692
14693 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14694
14695 fi
14696
14697 # Extract the first word of "lcov", so it can be a program name with args.
14698 set dummy lcov; ac_word=$2
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700 printf %s "checking for $ac_word... " >&6; }
14701 if test ${ac_cv_prog_LCOV+y}
14702 then :
14703 printf %s "(cached) " >&6
14704 else case e in #(
14705 e) if test -n "$LCOV"; then
14706 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14707 else
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14710 do
14711 IFS=$as_save_IFS
14712 case $as_dir in #(((
14713 '') as_dir=./ ;;
14714 */) ;;
14715 *) as_dir=$as_dir/ ;;
14716 esac
14717 for ac_exec_ext in '' $ac_executable_extensions; do
14718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14719 ac_cv_prog_LCOV="lcov"
14720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14721 break 2
14722 fi
14723 done
14724 done
14725 IFS=$as_save_IFS
14726
14727 fi ;;
14728 esac
14729 fi
14730 LCOV=$ac_cv_prog_LCOV
14731 if test -n "$LCOV"; then
14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14733 printf "%s\n" "$LCOV" >&6; }
14734 else
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14736 printf "%s\n" "no" >&6; }
14737 fi
14738
14739
14740 # Extract the first word of "genhtml", so it can be a program name with args.
14741 set dummy genhtml; ac_word=$2
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14743 printf %s "checking for $ac_word... " >&6; }
14744 if test ${ac_cv_prog_GENHTML+y}
14745 then :
14746 printf %s "(cached) " >&6
14747 else case e in #(
14748 e) if test -n "$GENHTML"; then
14749 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14750 else
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14753 do
14754 IFS=$as_save_IFS
14755 case $as_dir in #(((
14756 '') as_dir=./ ;;
14757 */) ;;
14758 *) as_dir=$as_dir/ ;;
14759 esac
14760 for ac_exec_ext in '' $ac_executable_extensions; do
14761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_GENHTML="genhtml"
14763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14764 break 2
14765 fi
14766 done
14767 done
14768 IFS=$as_save_IFS
14769
14770 fi ;;
14771 esac
14772 fi
14773 GENHTML=$ac_cv_prog_GENHTML
14774 if test -n "$GENHTML"; then
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14776 printf "%s\n" "$GENHTML" >&6; }
14777 else
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779 printf "%s\n" "no" >&6; }
14780 fi
14781
14782
14783
14784 if test -z "$LCOV"
14785 then :
14786
14787 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
14788
14789 fi
14790
14791 if test -z "$GENHTML"
14792 then :
14793
14794 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14795
14796 fi
14797
14798 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
14799 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14800 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14801 CODE_COVERAGE_LIBS="-lgcov"
14802 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
14803
14804
14805
14806
14807
14808
14809
14810 CODE_COVERAGE_RULES_CHECK='
14811 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
14812 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14813 '
14814 CODE_COVERAGE_RULES_CAPTURE='
14815 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
14816 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
14817 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14818 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
14819 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14820 '
14821 CODE_COVERAGE_RULES_CLEAN='
14822 clean: code-coverage-clean
14823 distclean: code-coverage-clean
14824 code-coverage-clean:
14825 -$(LCOV) --directory $(top_builddir) -z
14826 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14827 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
14828 '
14829
14830 else case e in #(
14831 e)
14832 CODE_COVERAGE_RULES_CHECK='
14833 @echo "Need to reconfigure with --enable-code-coverage"
14834 '
14835 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
14836 CODE_COVERAGE_RULES_CLEAN=''
14837 ;;
14838 esac
14839 fi
14840
14841 CODE_COVERAGE_RULES='
14842 # Code coverage
14843 #
14844 # Optional:
14845 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14846 # Multiple directories may be specified, separated by whitespace.
14847 # (Default: $(top_builddir))
14848 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14849 # by lcov for code coverage. (Default:
14850 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14851 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14852 # reports to be created. (Default:
14853 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14854 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
14855 # set to 0 to disable it and leave empty to stay with the default.
14856 # (Default: empty)
14857 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
14858 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
14859 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
14860 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
14861 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
14862 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
14863 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14864 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
14865 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14866 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
14867 # lcov instance. (Default: empty)
14868 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
14869 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
14870 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
14871 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
14872 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14873 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
14874 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14875 #
14876 # The generated report will be titled using the $(PACKAGE_NAME) and
14877 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14878 # use the git-version-gen script, available online.
14879
14880 # Optional variables
14881 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14882 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14883 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14884 CODE_COVERAGE_BRANCH_COVERAGE ?=
14885 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
14886 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
14887 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
14888 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
14889 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
14890 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
14891 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
14892 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
14893 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
14894 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
14895 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
14896 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULTS)
14897 CODE_COVERAGE_IGNORE_PATTERN ?=
14898
14899 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
14900 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
14901 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
14902 $(CODE_COVERAGE_OUTPUT_FILE);
14903 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
14904 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
14905 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
14906 $(CODE_COVERAGE_IGNORE_PATTERN);
14907 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
14908 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
14909 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
14910 code_coverage_quiet = $(code_coverage_quiet_$(V))
14911 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14912 code_coverage_quiet_0 = --quiet
14913
14914 # sanitizes the test-name: replaces with underscores: dashes and dots
14915 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
14916
14917 # Use recursive makes in order to ignore errors during check
14918 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
14919
14920 # Capture code coverage data
14921 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
14922
14923 # Hook rule executed before code-coverage-capture, overridable by the user
14924 code-coverage-capture-hook:
14925
14926 '"$CODE_COVERAGE_RULES_CLEAN"'
14927
14928 GITIGNOREFILES ?=
14929 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14930
14931 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
14932 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14933
14934 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14935 '
14936
14937
14938
14939
14940
14941 ac_config_files="$ac_config_files libseccomp.pc include/seccomp.h"
14942
14943
14944 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/python/Makefile tools/Makefile tests/Makefile doc/Makefile"
14945
14946
14947 cat >confcache <<\_ACEOF
14948 # This file is a shell script that caches the results of configure
14949 # tests run on this system so they can be shared between configure
14950 # scripts and configure runs, see configure's option --config-cache.
14951 # It is not useful on other systems. If it contains results you don't
14952 # want to keep, you may remove or edit it.
14953 #
14954 # config.status only pays attention to the cache file if you give it
14955 # the --recheck option to rerun configure.
14956 #
14957 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
14958 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
14959 # following values.
14960
14961 _ACEOF
14962
14963 # The following way of writing the cache mishandles newlines in values,
14964 # but we know of no workaround that is simple, portable, and efficient.
14965 # So, we kill variables containing newlines.
14966 # Ultrix sh set writes to stderr and can't be redirected directly,
14967 # and sets the high bit in the cache file unless we assign to the vars.
14968 (
14969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14970 eval ac_val=\$$ac_var
14971 case $ac_val in #(
14972 *${as_nl}*)
14973 case $ac_var in #(
14974 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14975 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14976 esac
14977 case $ac_var in #(
14978 _ | IFS | as_nl) ;; #(
14979 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14980 *) { eval $ac_var=; unset $ac_var;} ;;
14981 esac ;;
14982 esac
14983 done
14984
14985 (set) 2>&1 |
14986 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14987 *${as_nl}ac_space=\ *)
14988 # 'set' does not quote correctly, so add quotes: double-quote
14989 # substitution turns \\\\ into \\, and sed turns \\ into \.
14990 sed -n \
14991 "s/'/'\\\\''/g;
14992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14993 ;; #(
14994 *)
14995 # 'set' quotes correctly as required by POSIX, so do not add quotes.
14996 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14997 ;;
14998 esac |
14999 sort
15000 ) |
15001 sed '
15002 /^ac_cv_env_/b end
15003 t clear
15004 :clear
15005 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15006 t end
15007 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15008 :end' >>confcache
15009 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15010 if test -w "$cache_file"; then
15011 if test "x$cache_file" != "x/dev/null"; then
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15013 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15014 if test ! -f "$cache_file" || test -h "$cache_file"; then
15015 cat confcache >"$cache_file"
15016 else
15017 case $cache_file in #(
15018 */* | ?:*)
15019 mv -f confcache "$cache_file"$$ &&
15020 mv -f "$cache_file"$$ "$cache_file" ;; #(
15021 *)
15022 mv -f confcache "$cache_file" ;;
15023 esac
15024 fi
15025 fi
15026 else
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15028 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15029 fi
15030 fi
15031 rm -f confcache
15032
15033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15034 # Let make expand exec_prefix.
15035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15036
15037 DEFS=-DHAVE_CONFIG_H
15038
15039 ac_libobjs=
15040 ac_ltlibobjs=
15041 U=
15042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15043 # 1. Remove the extension, and $U if already installed.
15044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15045 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15047 # will be set to the directory where LIBOBJS objects are built.
15048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15050 done
15051 LIBOBJS=$ac_libobjs
15052
15053 LTLIBOBJS=$ac_ltlibobjs
15054
15055
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15057 printf %s "checking that generated files are newer than configure... " >&6; }
15058 if test -n "$am_sleep_pid"; then
15059 # Hide warnings about reused PIDs.
15060 wait $am_sleep_pid 2>/dev/null
15061 fi
15062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15063 printf "%s\n" "done" >&6; }
15064 case $enable_silent_rules in # (((
15065 yes) AM_DEFAULT_VERBOSITY=0;;
15066 no) AM_DEFAULT_VERBOSITY=1;;
15067 esac
15068 if test $am_cv_make_support_nested_variables = yes; then
15069 AM_V='$(V)'
15070 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15071 else
15072 AM_V=$AM_DEFAULT_VERBOSITY
15073 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15074 fi
15075
15076 if test -n "$EXEEXT"; then
15077 am__EXEEXT_TRUE=
15078 am__EXEEXT_FALSE='#'
15079 else
15080 am__EXEEXT_TRUE='#'
15081 am__EXEEXT_FALSE=
15082 fi
15083
15084 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15085 as_fn_error $? "conditional \"AMDEP\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15089 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 fi
15092 if test -z "${ENABLE_PYTHON_TRUE}" && test -z "${ENABLE_PYTHON_FALSE}"; then
15093 as_fn_error $? "conditional \"ENABLE_PYTHON\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 fi
15096 if test -z "${COVERITY_TRUE}" && test -z "${COVERITY_FALSE}"; then
15097 as_fn_error $? "conditional \"COVERITY\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 fi
15100 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
15101 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 fi
15104
15105 : "${CONFIG_STATUS=./config.status}"
15106 ac_write_fail=0
15107 ac_clean_files_save=$ac_clean_files
15108 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15110 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15111 as_write_fail=0
15112 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15113 #! $SHELL
15114 # Generated by $as_me.
15115 # Run this file to recreate the current configuration.
15116 # Compiler output produced by configure, useful for debugging
15117 # configure, is in config.log if it exists.
15118
15119 debug=false
15120 ac_cs_recheck=false
15121 ac_cs_silent=false
15122
15123 SHELL=\${CONFIG_SHELL-$SHELL}
15124 export SHELL
15125 _ASEOF
15126 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15127 ## -------------------- ##
15128 ## M4sh Initialization. ##
15129 ## -------------------- ##
15130
15131 # Be more Bourne compatible
15132 DUALCASE=1; export DUALCASE # for MKS sh
15133 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15134 then :
15135 emulate sh
15136 NULLCMD=:
15137 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15138 # is contrary to our usage. Disable this feature.
15139 alias -g '${1+"$@"}'='"$@"'
15140 setopt NO_GLOB_SUBST
15141 else case e in #(
15142 e) case `(set -o) 2>/dev/null` in #(
15143 *posix*) :
15144 set -o posix ;; #(
15145 *) :
15146 ;;
15147 esac ;;
15148 esac
15149 fi
15150
15151
15152
15153 # Reset variables that may have inherited troublesome values from
15154 # the environment.
15155
15156 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15157 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15158 # side effect of setting IFS to empty, thus disabling word splitting.)
15159 # Quoting is to prevent editors from complaining about space-tab.
15160 as_nl='
15161 '
15162 export as_nl
15163 IFS=" "" $as_nl"
15164
15165 PS1='$ '
15166 PS2='> '
15167 PS4='+ '
15168
15169 # Ensure predictable behavior from utilities with locale-dependent output.
15170 LC_ALL=C
15171 export LC_ALL
15172 LANGUAGE=C
15173 export LANGUAGE
15174
15175 # We cannot yet rely on "unset" to work, but we need these variables
15176 # to be unset--not just set to an empty or harmless value--now, to
15177 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15178 # also avoids known problems related to "unset" and subshell syntax
15179 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15180 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15181 do eval test \${$as_var+y} \
15182 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15183 done
15184
15185 # Ensure that fds 0, 1, and 2 are open.
15186 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15187 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15188 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15189
15190 # The user is always right.
15191 if ${PATH_SEPARATOR+false} :; then
15192 PATH_SEPARATOR=:
15193 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15194 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15195 PATH_SEPARATOR=';'
15196 }
15197 fi
15198
15199
15200 # Find who we are. Look in the path if we contain no directory separator.
15201 as_myself=
15202 case $0 in #((
15203 *[\\/]* ) as_myself=$0 ;;
15204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15205 for as_dir in $PATH
15206 do
15207 IFS=$as_save_IFS
15208 case $as_dir in #(((
15209 '') as_dir=./ ;;
15210 */) ;;
15211 *) as_dir=$as_dir/ ;;
15212 esac
15213 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15214 done
15215 IFS=$as_save_IFS
15216
15217 ;;
15218 esac
15219 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15220 # in which case we are not to be found in the path.
15221 if test "x$as_myself" = x; then
15222 as_myself=$0
15223 fi
15224 if test ! -f "$as_myself"; then
15225 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15226 exit 1
15227 fi
15228
15229
15230
15231 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15232 # ----------------------------------------
15233 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15234 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15235 # script with STATUS, using 1 if that was 0.
15236 as_fn_error ()
15237 {
15238 as_status=$1; test $as_status -eq 0 && as_status=1
15239 if test "$4"; then
15240 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15242 fi
15243 printf "%s\n" "$as_me: error: $2" >&2
15244 as_fn_exit $as_status
15245 } # as_fn_error
15246
15247
15248 # as_fn_set_status STATUS
15249 # -----------------------
15250 # Set $? to STATUS, without forking.
15251 as_fn_set_status ()
15252 {
15253 return $1
15254 } # as_fn_set_status
15255
15256 # as_fn_exit STATUS
15257 # -----------------
15258 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15259 as_fn_exit ()
15260 {
15261 set +e
15262 as_fn_set_status $1
15263 exit $1
15264 } # as_fn_exit
15265
15266 # as_fn_unset VAR
15267 # ---------------
15268 # Portably unset VAR.
15269 as_fn_unset ()
15270 {
15271 { eval $1=; unset $1;}
15272 }
15273 as_unset=as_fn_unset
15274
15275 # as_fn_append VAR VALUE
15276 # ----------------------
15277 # Append the text in VALUE to the end of the definition contained in VAR. Take
15278 # advantage of any shell optimizations that allow amortized linear growth over
15279 # repeated appends, instead of the typical quadratic growth present in naive
15280 # implementations.
15281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15282 then :
15283 eval 'as_fn_append ()
15284 {
15285 eval $1+=\$2
15286 }'
15287 else case e in #(
15288 e) as_fn_append ()
15289 {
15290 eval $1=\$$1\$2
15291 } ;;
15292 esac
15293 fi # as_fn_append
15294
15295 # as_fn_arith ARG...
15296 # ------------------
15297 # Perform arithmetic evaluation on the ARGs, and store the result in the
15298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15299 # must be portable across $(()) and expr.
15300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15301 then :
15302 eval 'as_fn_arith ()
15303 {
15304 as_val=$(( $* ))
15305 }'
15306 else case e in #(
15307 e) as_fn_arith ()
15308 {
15309 as_val=`expr "$@" || test $? -eq 1`
15310 } ;;
15311 esac
15312 fi # as_fn_arith
15313
15314
15315 if expr a : '\(a\)' >/dev/null 2>&1 &&
15316 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15317 as_expr=expr
15318 else
15319 as_expr=false
15320 fi
15321
15322 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15323 as_basename=basename
15324 else
15325 as_basename=false
15326 fi
15327
15328 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15329 as_dirname=dirname
15330 else
15331 as_dirname=false
15332 fi
15333
15334 as_me=`$as_basename -- "$0" ||
15335 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15336 X"$0" : 'X\(//\)$' \| \
15337 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15338 printf "%s\n" X/"$0" |
15339 sed '/^.*\/\([^/][^/]*\)\/*$/{
15340 s//\1/
15341 q
15342 }
15343 /^X\/\(\/\/\)$/{
15344 s//\1/
15345 q
15346 }
15347 /^X\/\(\/\).*/{
15348 s//\1/
15349 q
15350 }
15351 s/.*/./; q'`
15352
15353 # Avoid depending upon Character Ranges.
15354 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15355 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15356 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15357 as_cr_digits='0123456789'
15358 as_cr_alnum=$as_cr_Letters$as_cr_digits
15359
15360
15361 # Determine whether it's possible to make 'echo' print without a newline.
15362 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15363 # for compatibility with existing Makefiles.
15364 ECHO_C= ECHO_N= ECHO_T=
15365 case `echo -n x` in #(((((
15366 -n*)
15367 case `echo 'xy\c'` in
15368 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15369 xy) ECHO_C='\c';;
15370 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15371 ECHO_T=' ';;
15372 esac;;
15373 *)
15374 ECHO_N='-n';;
15375 esac
15376
15377 # For backward compatibility with old third-party macros, we provide
15378 # the shell variables $as_echo and $as_echo_n. New code should use
15379 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15380 as_echo='printf %s\n'
15381 as_echo_n='printf %s'
15382
15383 rm -f conf$$ conf$$.exe conf$$.file
15384 if test -d conf$$.dir; then
15385 rm -f conf$$.dir/conf$$.file
15386 else
15387 rm -f conf$$.dir
15388 mkdir conf$$.dir 2>/dev/null
15389 fi
15390 if (echo >conf$$.file) 2>/dev/null; then
15391 if ln -s conf$$.file conf$$ 2>/dev/null; then
15392 as_ln_s='ln -s'
15393 # ... but there are two gotchas:
15394 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15395 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15396 # In both cases, we have to default to 'cp -pR'.
15397 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15398 as_ln_s='cp -pR'
15399 elif ln conf$$.file conf$$ 2>/dev/null; then
15400 as_ln_s=ln
15401 else
15402 as_ln_s='cp -pR'
15403 fi
15404 else
15405 as_ln_s='cp -pR'
15406 fi
15407 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15408 rmdir conf$$.dir 2>/dev/null
15409
15410
15411 # as_fn_mkdir_p
15412 # -------------
15413 # Create "$as_dir" as a directory, including parents if necessary.
15414 as_fn_mkdir_p ()
15415 {
15416
15417 case $as_dir in #(
15418 -*) as_dir=./$as_dir;;
15419 esac
15420 test -d "$as_dir" || eval $as_mkdir_p || {
15421 as_dirs=
15422 while :; do
15423 case $as_dir in #(
15424 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15425 *) as_qdir=$as_dir;;
15426 esac
15427 as_dirs="'$as_qdir' $as_dirs"
15428 as_dir=`$as_dirname -- "$as_dir" ||
15429 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15430 X"$as_dir" : 'X\(//\)[^/]' \| \
15431 X"$as_dir" : 'X\(//\)$' \| \
15432 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15433 printf "%s\n" X"$as_dir" |
15434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15435 s//\1/
15436 q
15437 }
15438 /^X\(\/\/\)[^/].*/{
15439 s//\1/
15440 q
15441 }
15442 /^X\(\/\/\)$/{
15443 s//\1/
15444 q
15445 }
15446 /^X\(\/\).*/{
15447 s//\1/
15448 q
15449 }
15450 s/.*/./; q'`
15451 test -d "$as_dir" && break
15452 done
15453 test -z "$as_dirs" || eval "mkdir $as_dirs"
15454 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15455
15456
15457 } # as_fn_mkdir_p
15458 if mkdir -p . 2>/dev/null; then
15459 as_mkdir_p='mkdir -p "$as_dir"'
15460 else
15461 test -d ./-p && rmdir ./-p
15462 as_mkdir_p=false
15463 fi
15464
15465
15466 # as_fn_executable_p FILE
15467 # -----------------------
15468 # Test if FILE is an executable regular file.
15469 as_fn_executable_p ()
15470 {
15471 test -f "$1" && test -x "$1"
15472 } # as_fn_executable_p
15473 as_test_x='test -x'
15474 as_executable_p=as_fn_executable_p
15475
15476 # Sed expression to map a string onto a valid CPP name.
15477 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15478 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15479
15480 # Sed expression to map a string onto a valid variable name.
15481 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15482 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15483
15484
15485 exec 6>&1
15486 ## ----------------------------------- ##
15487 ## Main body of $CONFIG_STATUS script. ##
15488 ## ----------------------------------- ##
15489 _ASEOF
15490 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15491
15492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15493 # Save the log message, to keep $0 and so on meaningful, and to
15494 # report actual input values of CONFIG_FILES etc. instead of their
15495 # values after options handling.
15496 ac_log="
15497 This file was extended by libseccomp $as_me 2.6.0, which was
15498 generated by GNU Autoconf 2.72. Invocation command line was
15499
15500 CONFIG_FILES = $CONFIG_FILES
15501 CONFIG_HEADERS = $CONFIG_HEADERS
15502 CONFIG_LINKS = $CONFIG_LINKS
15503 CONFIG_COMMANDS = $CONFIG_COMMANDS
15504 $ $0 $@
15505
15506 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15507 "
15508
15509 _ACEOF
15510
15511 case $ac_config_files in *"
15512 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15513 esac
15514
15515 case $ac_config_headers in *"
15516 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15517 esac
15518
15519
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 # Files that config.status was made for.
15522 config_files="$ac_config_files"
15523 config_headers="$ac_config_headers"
15524 config_commands="$ac_config_commands"
15525
15526 _ACEOF
15527
15528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15529 ac_cs_usage="\
15530 '$as_me' instantiates files and other configuration actions
15531 from templates according to the current configuration. Unless the files
15532 and actions are specified as TAGs, all are instantiated by default.
15533
15534 Usage: $0 [OPTION]... [TAG]...
15535
15536 -h, --help print this help, then exit
15537 -V, --version print version number and configuration settings, then exit
15538 --config print configuration, then exit
15539 -q, --quiet, --silent
15540 do not print progress messages
15541 -d, --debug don't remove temporary files
15542 --recheck update $as_me by reconfiguring in the same conditions
15543 --file=FILE[:TEMPLATE]
15544 instantiate the configuration file FILE
15545 --header=FILE[:TEMPLATE]
15546 instantiate the configuration header FILE
15547
15548 Configuration files:
15549 $config_files
15550
15551 Configuration headers:
15552 $config_headers
15553
15554 Configuration commands:
15555 $config_commands
15556
15557 Report bugs to the package provider."
15558
15559 _ACEOF
15560 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15561 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15563 ac_cs_config='$ac_cs_config_escaped'
15564 ac_cs_version="\\
15565 libseccomp config.status 2.6.0
15566 configured by $0, generated by GNU Autoconf 2.72,
15567 with options \\"\$ac_cs_config\\"
15568
15569 Copyright (C) 2023 Free Software Foundation, Inc.
15570 This config.status script is free software; the Free Software Foundation
15571 gives unlimited permission to copy, distribute and modify it."
15572
15573 ac_pwd='$ac_pwd'
15574 srcdir='$srcdir'
15575 INSTALL='$INSTALL'
15576 MKDIR_P='$MKDIR_P'
15577 AWK='$AWK'
15578 test -n "\$AWK" || AWK=awk
15579 _ACEOF
15580
15581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582 # The default lists apply if the user does not specify any file.
15583 ac_need_defaults=:
15584 while test $# != 0
15585 do
15586 case $1 in
15587 --*=?*)
15588 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15589 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15590 ac_shift=:
15591 ;;
15592 --*=)
15593 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15594 ac_optarg=
15595 ac_shift=:
15596 ;;
15597 *)
15598 ac_option=$1
15599 ac_optarg=$2
15600 ac_shift=shift
15601 ;;
15602 esac
15603
15604 case $ac_option in
15605 # Handling of the options.
15606 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15607 ac_cs_recheck=: ;;
15608 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15609 printf "%s\n" "$ac_cs_version"; exit ;;
15610 --config | --confi | --conf | --con | --co | --c )
15611 printf "%s\n" "$ac_cs_config"; exit ;;
15612 --debug | --debu | --deb | --de | --d | -d )
15613 debug=: ;;
15614 --file | --fil | --fi | --f )
15615 $ac_shift
15616 case $ac_optarg in
15617 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15618 '') as_fn_error $? "missing file argument" ;;
15619 esac
15620 as_fn_append CONFIG_FILES " '$ac_optarg'"
15621 ac_need_defaults=false;;
15622 --header | --heade | --head | --hea )
15623 $ac_shift
15624 case $ac_optarg in
15625 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15626 esac
15627 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15628 ac_need_defaults=false;;
15629 --he | --h)
15630 # Conflict between --help and --header
15631 as_fn_error $? "ambiguous option: '$1'
15632 Try '$0 --help' for more information.";;
15633 --help | --hel | -h )
15634 printf "%s\n" "$ac_cs_usage"; exit ;;
15635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15636 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15637 ac_cs_silent=: ;;
15638
15639 # This is an error.
15640 -*) as_fn_error $? "unrecognized option: '$1'
15641 Try '$0 --help' for more information." ;;
15642
15643 *) as_fn_append ac_config_targets " $1"
15644 ac_need_defaults=false ;;
15645
15646 esac
15647 shift
15648 done
15649
15650 ac_configure_extra_args=
15651
15652 if $ac_cs_silent; then
15653 exec 6>/dev/null
15654 ac_configure_extra_args="$ac_configure_extra_args --silent"
15655 fi
15656
15657 _ACEOF
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 if \$ac_cs_recheck; then
15660 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15661 shift
15662 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15663 CONFIG_SHELL='$SHELL'
15664 export CONFIG_SHELL
15665 exec "\$@"
15666 fi
15667
15668 _ACEOF
15669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15670 exec 5>>config.log
15671 {
15672 echo
15673 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15674 ## Running $as_me. ##
15675 _ASBOX
15676 printf "%s\n" "$ac_log"
15677 } >&5
15678
15679 _ACEOF
15680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15681 #
15682 # INIT-COMMANDS
15683 #
15684 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15685
15686
15687 # The HP-UX ksh and POSIX shell print the target directory to stdout
15688 # if CDPATH is set.
15689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15690
15691 sed_quote_subst='$sed_quote_subst'
15692 double_quote_subst='$double_quote_subst'
15693 delay_variable_subst='$delay_variable_subst'
15694 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15695 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15696 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15697 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15698 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15699 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15700 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15701 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15702 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15703 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15704 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15705 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15706 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15707 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15708 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15709 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15710 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15711 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15712 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15713 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15714 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15715 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15716 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15717 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15718 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15719 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15720 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15721 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15722 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15723 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15724 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15725 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15726 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15727 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15728 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
15729 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15730 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15731 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15732 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15733 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15734 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15735 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15736 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15737 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
15738 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15739 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15740 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15741 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15742 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15743 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15744 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15745 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15746 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15747 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15748 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15749 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15750 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15751 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15752 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15753 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15754 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"`'
15755 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15756 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15757 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15758 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15759 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15760 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15761 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15762 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15763 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15764 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15765 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15766 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15767 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15768 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15769 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15770 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15771 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15772 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15773 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15774 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15775 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15776 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15777 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15778 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15779 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15780 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15781 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15782 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15783 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15784 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15785 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15786 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15787 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15788 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15789 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15790 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15791 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15792 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15793 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15794 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15795 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15796 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15797 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15798 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15799 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15800 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15801 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15802 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15803 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15804 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15805 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15806 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15807 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15808 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15809 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15810 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15811 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15812 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15813 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15814 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15815 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15816 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15817 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15818 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15819 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15820 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15821 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15822 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15823 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15824 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15825 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15826 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15827 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15828 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15829 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15830 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15831
15832 LTCC='$LTCC'
15833 LTCFLAGS='$LTCFLAGS'
15834 compiler='$compiler_DEFAULT'
15835
15836 # A function that is used when there is no print builtin or printf.
15837 func_fallback_echo ()
15838 {
15839 eval 'cat <<_LTECHO_EOF
15840 \$1
15841 _LTECHO_EOF'
15842 }
15843
15844 # Quote evaled strings.
15845 for var in SHELL \
15846 ECHO \
15847 PATH_SEPARATOR \
15848 SED \
15849 GREP \
15850 EGREP \
15851 FGREP \
15852 LD \
15853 NM \
15854 LN_S \
15855 lt_SP2NL \
15856 lt_NL2SP \
15857 reload_flag \
15858 FILECMD \
15859 OBJDUMP \
15860 deplibs_check_method \
15861 file_magic_cmd \
15862 file_magic_glob \
15863 want_nocaseglob \
15864 DLLTOOL \
15865 sharedlib_from_linklib_cmd \
15866 AR \
15867 archiver_list_spec \
15868 STRIP \
15869 RANLIB \
15870 CC \
15871 CFLAGS \
15872 compiler \
15873 lt_cv_sys_global_symbol_pipe \
15874 lt_cv_sys_global_symbol_to_cdecl \
15875 lt_cv_sys_global_symbol_to_import \
15876 lt_cv_sys_global_symbol_to_c_name_address \
15877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15878 lt_cv_nm_interface \
15879 nm_file_list_spec \
15880 lt_cv_truncate_bin \
15881 lt_prog_compiler_no_builtin_flag \
15882 lt_prog_compiler_pic \
15883 lt_prog_compiler_wl \
15884 lt_prog_compiler_static \
15885 lt_cv_prog_compiler_c_o \
15886 need_locks \
15887 MANIFEST_TOOL \
15888 DSYMUTIL \
15889 NMEDIT \
15890 LIPO \
15891 OTOOL \
15892 OTOOL64 \
15893 shrext_cmds \
15894 export_dynamic_flag_spec \
15895 whole_archive_flag_spec \
15896 compiler_needs_object \
15897 with_gnu_ld \
15898 allow_undefined_flag \
15899 no_undefined_flag \
15900 hardcode_libdir_flag_spec \
15901 hardcode_libdir_separator \
15902 exclude_expsyms \
15903 include_expsyms \
15904 file_list_spec \
15905 variables_saved_for_relink \
15906 libname_spec \
15907 library_names_spec \
15908 soname_spec \
15909 install_override_mode \
15910 finish_eval \
15911 old_striplib \
15912 striplib; do
15913 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15914 *[\\\\\\\`\\"\\\$]*)
15915 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15916 ;;
15917 *)
15918 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15919 ;;
15920 esac
15921 done
15922
15923 # Double-quote double-evaled strings.
15924 for var in reload_cmds \
15925 old_postinstall_cmds \
15926 old_postuninstall_cmds \
15927 old_archive_cmds \
15928 extract_expsyms_cmds \
15929 old_archive_from_new_cmds \
15930 old_archive_from_expsyms_cmds \
15931 archive_cmds \
15932 archive_expsym_cmds \
15933 module_cmds \
15934 module_expsym_cmds \
15935 export_symbols_cmds \
15936 prelink_cmds \
15937 postlink_cmds \
15938 postinstall_cmds \
15939 postuninstall_cmds \
15940 finish_cmds \
15941 sys_lib_search_path_spec \
15942 configure_time_dlsearch_path \
15943 configure_time_lt_sys_library_path; do
15944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945 *[\\\\\\\`\\"\\\$]*)
15946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15947 ;;
15948 *)
15949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15950 ;;
15951 esac
15952 done
15953
15954 ac_aux_dir='$ac_aux_dir'
15955
15956 # See if we are running on zsh, and set the options that allow our
15957 # commands through without removal of \ escapes INIT.
15958 if test -n "\${ZSH_VERSION+set}"; then
15959 setopt NO_GLOB_SUBST
15960 fi
15961
15962
15963 PACKAGE='$PACKAGE'
15964 VERSION='$VERSION'
15965 RM='$RM'
15966 ofile='$ofile'
15967
15968
15969
15970
15971 _ACEOF
15972
15973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15974
15975 # Handling of arguments.
15976 for ac_config_target in $ac_config_targets
15977 do
15978 case $ac_config_target in
15979 "configure.h") CONFIG_HEADERS="$CONFIG_HEADERS configure.h" ;;
15980 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15981 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15982 "libseccomp.pc") CONFIG_FILES="$CONFIG_FILES libseccomp.pc" ;;
15983 "include/seccomp.h") CONFIG_FILES="$CONFIG_FILES include/seccomp.h" ;;
15984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15985 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15986 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15987 "src/python/Makefile") CONFIG_FILES="$CONFIG_FILES src/python/Makefile" ;;
15988 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15989 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15990 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15991
15992 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
15993 esac
15994 done
15995
15996
15997 # If the user did not use the arguments to specify the items to instantiate,
15998 # then the envvar interface is used. Set only those that are not.
15999 # We use the long form for the default assignment because of an extremely
16000 # bizarre bug on SunOS 4.1.3.
16001 if $ac_need_defaults; then
16002 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16003 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16004 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16005 fi
16006
16007 # Have a temporary directory for convenience. Make it in the build tree
16008 # simply because there is no reason against having it here, and in addition,
16009 # creating and moving files from /tmp can sometimes cause problems.
16010 # Hook for its removal unless debugging.
16011 # Note that there is a small window in which the directory will not be cleaned:
16012 # after its creation but before its name has been assigned to '$tmp'.
16013 $debug ||
16014 {
16015 tmp= ac_tmp=
16016 trap 'exit_status=$?
16017 : "${ac_tmp:=$tmp}"
16018 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16019 ' 0
16020 trap 'as_fn_exit 1' 1 2 13 15
16021 }
16022 # Create a (secure) tmp directory for tmp files.
16023
16024 {
16025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16026 test -d "$tmp"
16027 } ||
16028 {
16029 tmp=./conf$$-$RANDOM
16030 (umask 077 && mkdir "$tmp")
16031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16032 ac_tmp=$tmp
16033
16034 # Set up the scripts for CONFIG_FILES section.
16035 # No need to generate them if there are no CONFIG_FILES.
16036 # This happens for instance with './config.status config.h'.
16037 if test -n "$CONFIG_FILES"; then
16038
16039
16040 ac_cr=`echo X | tr X '\015'`
16041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16042 # But we know of no other shell where ac_cr would be empty at this
16043 # point, so we can use a bashism as a fallback.
16044 if test "x$ac_cr" = x; then
16045 eval ac_cr=\$\'\\r\'
16046 fi
16047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16049 ac_cs_awk_cr='\\r'
16050 else
16051 ac_cs_awk_cr=$ac_cr
16052 fi
16053
16054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16055 _ACEOF
16056
16057
16058 {
16059 echo "cat >conf$$subs.awk <<_ACEOF" &&
16060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16061 echo "_ACEOF"
16062 } >conf$$subs.sh ||
16063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16065 ac_delim='%!_!# '
16066 for ac_last_try in false false false false false :; do
16067 . ./conf$$subs.sh ||
16068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16069
16070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16071 if test $ac_delim_n = $ac_delim_num; then
16072 break
16073 elif $ac_last_try; then
16074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16075 else
16076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16077 fi
16078 done
16079 rm -f conf$$subs.sh
16080
16081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16083 _ACEOF
16084 sed -n '
16085 h
16086 s/^/S["/; s/!.*/"]=/
16087 p
16088 g
16089 s/^[^!]*!//
16090 :repl
16091 t repl
16092 s/'"$ac_delim"'$//
16093 t delim
16094 :nl
16095 h
16096 s/\(.\{148\}\)..*/\1/
16097 t more1
16098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16099 p
16100 n
16101 b repl
16102 :more1
16103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16104 p
16105 g
16106 s/.\{148\}//
16107 t nl
16108 :delim
16109 h
16110 s/\(.\{148\}\)..*/\1/
16111 t more2
16112 s/["\\]/\\&/g; s/^/"/; s/$/"/
16113 p
16114 b
16115 :more2
16116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16117 p
16118 g
16119 s/.\{148\}//
16120 t delim
16121 ' <conf$$subs.awk | sed '
16122 /^[^""]/{
16123 N
16124 s/\n//
16125 }
16126 ' >>$CONFIG_STATUS || ac_write_fail=1
16127 rm -f conf$$subs.awk
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 _ACAWK
16130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16131 for (key in S) S_is_set[key] = 1
16132 FS = ""
16133
16134 }
16135 {
16136 line = $ 0
16137 nfields = split(line, field, "@")
16138 substed = 0
16139 len = length(field[1])
16140 for (i = 2; i < nfields; i++) {
16141 key = field[i]
16142 keylen = length(key)
16143 if (S_is_set[key]) {
16144 value = S[key]
16145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16146 len += length(value) + length(field[++i])
16147 substed = 1
16148 } else
16149 len += 1 + keylen
16150 }
16151
16152 print line
16153 }
16154
16155 _ACAWK
16156 _ACEOF
16157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16160 else
16161 cat
16162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16164 _ACEOF
16165
16166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16168 # trailing colons and then remove the whole line if VPATH becomes empty
16169 # (actually we leave an empty line to preserve line numbers).
16170 if test "x$srcdir" = x.; then
16171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16172 h
16173 s///
16174 s/^/:/
16175 s/[ ]*$/:/
16176 s/:\$(srcdir):/:/g
16177 s/:\${srcdir}:/:/g
16178 s/:@srcdir@:/:/g
16179 s/^:*//
16180 s/:*$//
16181 x
16182 s/\(=[ ]*\).*/\1/
16183 G
16184 s/\n//
16185 s/^[^=]*=[ ]*$//
16186 }'
16187 fi
16188
16189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16190 fi # test -n "$CONFIG_FILES"
16191
16192 # Set up the scripts for CONFIG_HEADERS section.
16193 # No need to generate them if there are no CONFIG_HEADERS.
16194 # This happens for instance with './config.status Makefile'.
16195 if test -n "$CONFIG_HEADERS"; then
16196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16197 BEGIN {
16198 _ACEOF
16199
16200 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16201 # here-document in config.status, that substitutes the proper values into
16202 # config.h.in to produce config.h.
16203
16204 # Create a delimiter string that does not exist in confdefs.h, to ease
16205 # handling of long lines.
16206 ac_delim='%!_!# '
16207 for ac_last_try in false false :; do
16208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16209 if test -z "$ac_tt"; then
16210 break
16211 elif $ac_last_try; then
16212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16213 else
16214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16215 fi
16216 done
16217
16218 # For the awk script, D is an array of macro values keyed by name,
16219 # likewise P contains macro parameters if any. Preserve backslash
16220 # newline sequences.
16221
16222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16223 sed -n '
16224 s/.\{148\}/&'"$ac_delim"'/g
16225 t rset
16226 :rset
16227 s/^[ ]*#[ ]*define[ ][ ]*/ /
16228 t def
16229 d
16230 :def
16231 s/\\$//
16232 t bsnl
16233 s/["\\]/\\&/g
16234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16235 D["\1"]=" \3"/p
16236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16237 d
16238 :bsnl
16239 s/["\\]/\\&/g
16240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16241 D["\1"]=" \3\\\\\\n"\\/p
16242 t cont
16243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16244 t cont
16245 d
16246 :cont
16247 n
16248 s/.\{148\}/&'"$ac_delim"'/g
16249 t clear
16250 :clear
16251 s/\\$//
16252 t bsnlc
16253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16254 d
16255 :bsnlc
16256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16257 b cont
16258 ' <confdefs.h | sed '
16259 s/'"$ac_delim"'/"\\\
16260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16261
16262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16263 for (key in D) D_is_set[key] = 1
16264 FS = ""
16265 }
16266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16267 line = \$ 0
16268 split(line, arg, " ")
16269 if (arg[1] == "#") {
16270 defundef = arg[2]
16271 mac1 = arg[3]
16272 } else {
16273 defundef = substr(arg[1], 2)
16274 mac1 = arg[2]
16275 }
16276 split(mac1, mac2, "(") #)
16277 macro = mac2[1]
16278 prefix = substr(line, 1, index(line, defundef) - 1)
16279 if (D_is_set[macro]) {
16280 # Preserve the white space surrounding the "#".
16281 print prefix "define", macro P[macro] D[macro]
16282 next
16283 } else {
16284 # Replace #undef with comments. This is necessary, for example,
16285 # in the case of _POSIX_SOURCE, which is predefined and required
16286 # on some systems where configure will not decide to define it.
16287 if (defundef == "undef") {
16288 print "/*", prefix defundef, macro, "*/"
16289 next
16290 }
16291 }
16292 }
16293 { print }
16294 _ACAWK
16295 _ACEOF
16296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16298 fi # test -n "$CONFIG_HEADERS"
16299
16300
16301 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16302 shift
16303 for ac_tag
16304 do
16305 case $ac_tag in
16306 :[FHLC]) ac_mode=$ac_tag; continue;;
16307 esac
16308 case $ac_mode$ac_tag in
16309 :[FHL]*:*);;
16310 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16311 :[FH]-) ac_tag=-:-;;
16312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16313 esac
16314 ac_save_IFS=$IFS
16315 IFS=:
16316 set x $ac_tag
16317 IFS=$ac_save_IFS
16318 shift
16319 ac_file=$1
16320 shift
16321
16322 case $ac_mode in
16323 :L) ac_source=$1;;
16324 :[FH])
16325 ac_file_inputs=
16326 for ac_f
16327 do
16328 case $ac_f in
16329 -) ac_f="$ac_tmp/stdin";;
16330 *) # Look for the file first in the build tree, then in the source tree
16331 # (if the path is not absolute). The absolute path cannot be DOS-style,
16332 # because $ac_f cannot contain ':'.
16333 test -f "$ac_f" ||
16334 case $ac_f in
16335 [\\/$]*) false;;
16336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16337 esac ||
16338 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16339 esac
16340 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16341 as_fn_append ac_file_inputs " '$ac_f'"
16342 done
16343
16344 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16345 # use $as_me), people would be surprised to read:
16346 # /* config.h. Generated by config.status. */
16347 configure_input='Generated from '`
16348 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16349 `' by configure.'
16350 if test x"$ac_file" != x-; then
16351 configure_input="$ac_file. $configure_input"
16352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16353 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16354 fi
16355 # Neutralize special characters interpreted by sed in replacement strings.
16356 case $configure_input in #(
16357 *\&* | *\|* | *\\* )
16358 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16360 *) ac_sed_conf_input=$configure_input;;
16361 esac
16362
16363 case $ac_tag in
16364 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16366 esac
16367 ;;
16368 esac
16369
16370 ac_dir=`$as_dirname -- "$ac_file" ||
16371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16372 X"$ac_file" : 'X\(//\)[^/]' \| \
16373 X"$ac_file" : 'X\(//\)$' \| \
16374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16375 printf "%s\n" X"$ac_file" |
16376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16377 s//\1/
16378 q
16379 }
16380 /^X\(\/\/\)[^/].*/{
16381 s//\1/
16382 q
16383 }
16384 /^X\(\/\/\)$/{
16385 s//\1/
16386 q
16387 }
16388 /^X\(\/\).*/{
16389 s//\1/
16390 q
16391 }
16392 s/.*/./; q'`
16393 as_dir="$ac_dir"; as_fn_mkdir_p
16394 ac_builddir=.
16395
16396 case "$ac_dir" in
16397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16398 *)
16399 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16400 # A ".." for each directory in $ac_dir_suffix.
16401 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16402 case $ac_top_builddir_sub in
16403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16405 esac ;;
16406 esac
16407 ac_abs_top_builddir=$ac_pwd
16408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16409 # for backward compatibility:
16410 ac_top_builddir=$ac_top_build_prefix
16411
16412 case $srcdir in
16413 .) # We are building in place.
16414 ac_srcdir=.
16415 ac_top_srcdir=$ac_top_builddir_sub
16416 ac_abs_top_srcdir=$ac_pwd ;;
16417 [\\/]* | ?:[\\/]* ) # Absolute name.
16418 ac_srcdir=$srcdir$ac_dir_suffix;
16419 ac_top_srcdir=$srcdir
16420 ac_abs_top_srcdir=$srcdir ;;
16421 *) # Relative name.
16422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16423 ac_top_srcdir=$ac_top_build_prefix$srcdir
16424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16425 esac
16426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16427
16428
16429 case $ac_mode in
16430 :F)
16431 #
16432 # CONFIG_FILE
16433 #
16434
16435 case $INSTALL in
16436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16438 esac
16439 ac_MKDIR_P=$MKDIR_P
16440 case $MKDIR_P in
16441 [\\/$]* | ?:[\\/]* ) ;;
16442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16443 esac
16444 _ACEOF
16445
16446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16447 # If the template does not know about datarootdir, expand it.
16448 # FIXME: This hack should be removed a few years after 2.60.
16449 ac_datarootdir_hack=; ac_datarootdir_seen=
16450 ac_sed_dataroot='
16451 /datarootdir/ {
16452 p
16453 q
16454 }
16455 /@datadir@/p
16456 /@docdir@/p
16457 /@infodir@/p
16458 /@localedir@/p
16459 /@mandir@/p'
16460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16461 *datarootdir*) ac_datarootdir_seen=yes;;
16462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16464 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16465 _ACEOF
16466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16467 ac_datarootdir_hack='
16468 s&@datadir@&$datadir&g
16469 s&@docdir@&$docdir&g
16470 s&@infodir@&$infodir&g
16471 s&@localedir@&$localedir&g
16472 s&@mandir@&$mandir&g
16473 s&\\\${datarootdir}&$datarootdir&g' ;;
16474 esac
16475 _ACEOF
16476
16477 # Neutralize VPATH when '$srcdir' = '.'.
16478 # Shell code in configure.ac might set extrasub.
16479 # FIXME: do we really want to maintain this feature?
16480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16481 ac_sed_extra="$ac_vpsub
16482 $extrasub
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16485 :t
16486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16487 s|@configure_input@|$ac_sed_conf_input|;t t
16488 s&@top_builddir@&$ac_top_builddir_sub&;t t
16489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16490 s&@srcdir@&$ac_srcdir&;t t
16491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16492 s&@top_srcdir@&$ac_top_srcdir&;t t
16493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16494 s&@builddir@&$ac_builddir&;t t
16495 s&@abs_builddir@&$ac_abs_builddir&;t t
16496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16497 s&@INSTALL@&$ac_INSTALL&;t t
16498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16499 $ac_datarootdir_hack
16500 "
16501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16503
16504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16507 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16509 which seems to be undefined. Please make sure it is defined" >&5
16510 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16511 which seems to be undefined. Please make sure it is defined" >&2;}
16512
16513 rm -f "$ac_tmp/stdin"
16514 case $ac_file in
16515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16517 esac \
16518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16519 ;;
16520 :H)
16521 #
16522 # CONFIG_HEADER
16523 #
16524 if test x"$ac_file" != x-; then
16525 {
16526 printf "%s\n" "/* $configure_input */" >&1 \
16527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16528 } >"$ac_tmp/config.h" \
16529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16532 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16533 else
16534 rm -f "$ac_file"
16535 mv "$ac_tmp/config.h" "$ac_file" \
16536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16537 fi
16538 else
16539 printf "%s\n" "/* $configure_input */" >&1 \
16540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16541 || as_fn_error $? "could not create -" "$LINENO" 5
16542 fi
16543 # Compute "$ac_file"'s index in $config_headers.
16544 _am_arg="$ac_file"
16545 _am_stamp_count=1
16546 for _am_header in $config_headers :; do
16547 case $_am_header in
16548 $_am_arg | $_am_arg:* )
16549 break ;;
16550 * )
16551 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16552 esac
16553 done
16554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16556 X"$_am_arg" : 'X\(//\)[^/]' \| \
16557 X"$_am_arg" : 'X\(//\)$' \| \
16558 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16559 printf "%s\n" X"$_am_arg" |
16560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16561 s//\1/
16562 q
16563 }
16564 /^X\(\/\/\)[^/].*/{
16565 s//\1/
16566 q
16567 }
16568 /^X\(\/\/\)$/{
16569 s//\1/
16570 q
16571 }
16572 /^X\(\/\).*/{
16573 s//\1/
16574 q
16575 }
16576 s/.*/./; q'`/stamp-h$_am_stamp_count
16577 ;;
16578
16579 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16580 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16581 ;;
16582 esac
16583
16584
16585 case $ac_file$ac_mode in
16586 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16587 # Older Autoconf quotes --file arguments for eval, but not when files
16588 # are listed without --file. Let's play safe and only enable the eval
16589 # if we detect the quoting.
16590 # TODO: see whether this extra hack can be removed once we start
16591 # requiring Autoconf 2.70 or later.
16592 case $CONFIG_FILES in #(
16593 *\'*) :
16594 eval set x "$CONFIG_FILES" ;; #(
16595 *) :
16596 set x $CONFIG_FILES ;; #(
16597 *) :
16598 ;;
16599 esac
16600 shift
16601 # Used to flag and report bootstrapping failures.
16602 am_rc=0
16603 for am_mf
16604 do
16605 # Strip MF so we end up with the name of the file.
16606 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16607 # Check whether this is an Automake generated Makefile which includes
16608 # dependency-tracking related rules and includes.
16609 # Grep'ing the whole file directly is not great: AIX grep has a line
16610 # limit of 2048, but all sed's we know have understand at least 4000.
16611 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16612 || continue
16613 am_dirpart=`$as_dirname -- "$am_mf" ||
16614 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16615 X"$am_mf" : 'X\(//\)[^/]' \| \
16616 X"$am_mf" : 'X\(//\)$' \| \
16617 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16618 printf "%s\n" X"$am_mf" |
16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16620 s//\1/
16621 q
16622 }
16623 /^X\(\/\/\)[^/].*/{
16624 s//\1/
16625 q
16626 }
16627 /^X\(\/\/\)$/{
16628 s//\1/
16629 q
16630 }
16631 /^X\(\/\).*/{
16632 s//\1/
16633 q
16634 }
16635 s/.*/./; q'`
16636 am_filepart=`$as_basename -- "$am_mf" ||
16637 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16638 X"$am_mf" : 'X\(//\)$' \| \
16639 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16640 printf "%s\n" X/"$am_mf" |
16641 sed '/^.*\/\([^/][^/]*\)\/*$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\/\(\/\/\)$/{
16646 s//\1/
16647 q
16648 }
16649 /^X\/\(\/\).*/{
16650 s//\1/
16651 q
16652 }
16653 s/.*/./; q'`
16654 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16655 && sed -e '/# am--include-marker/d' "$am_filepart" \
16656 | $MAKE -f - am--depfiles" >&5
16657 (cd "$am_dirpart" \
16658 && sed -e '/# am--include-marker/d' "$am_filepart" \
16659 | $MAKE -f - am--depfiles) >&5 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } || am_rc=$?
16663 done
16664 if test $am_rc -ne 0; then
16665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16666 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16667 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16668 for automatic dependency tracking. If GNU make was not used, consider
16669 re-running the configure script with MAKE=\"gmake\" (or whatever is
16670 necessary). You can also try re-running configure with the
16671 '--disable-dependency-tracking' option to at least be able to build
16672 the package (albeit without support for automatic dependency tracking).
16673 See 'config.log' for more details" "$LINENO" 5; }
16674 fi
16675 { am_dirpart=; unset am_dirpart;}
16676 { am_filepart=; unset am_filepart;}
16677 { am_mf=; unset am_mf;}
16678 { am_rc=; unset am_rc;}
16679 rm -f conftest-deps.mk
16680 }
16681 ;;
16682 "libtool":C)
16683
16684 # See if we are running on zsh, and set the options that allow our
16685 # commands through without removal of \ escapes.
16686 if test -n "${ZSH_VERSION+set}"; then
16687 setopt NO_GLOB_SUBST
16688 fi
16689
16690 cfgfile=${ofile}T
16691 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16692 $RM "$cfgfile"
16693
16694 cat <<_LT_EOF >> "$cfgfile"
16695 #! $SHELL
16696 # Generated automatically by $as_me ($PACKAGE) $VERSION
16697 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16698
16699 # Provide generalized library-building support services.
16700 # Written by Gordon Matzigkeit, 1996
16701
16702 # Copyright (C) 2024 Free Software Foundation, Inc.
16703 # This is free software; see the source for copying conditions. There is NO
16704 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16705
16706 # GNU Libtool is free software; you can redistribute it and/or modify
16707 # it under the terms of the GNU General Public License as published by
16708 # the Free Software Foundation; either version 2 of the License, or
16709 # (at your option) any later version.
16710 #
16711 # As a special exception to the GNU General Public License, if you
16712 # distribute this file as part of a program or library that is built
16713 # using GNU Libtool, you may include this file under the same
16714 # distribution terms that you use for the rest of that program.
16715 #
16716 # GNU Libtool is distributed in the hope that it will be useful, but
16717 # WITHOUT ANY WARRANTY; without even the implied warranty of
16718 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16719 # GNU General Public License for more details.
16720 #
16721 # You should have received a copy of the GNU General Public License
16722 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16723
16724
16725 # The names of the tagged configurations supported by this script.
16726 available_tags=''
16727
16728 # Configured defaults for sys_lib_dlsearch_path munging.
16729 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16730
16731 # ### BEGIN LIBTOOL CONFIG
16732
16733 # Which release of libtool.m4 was used?
16734 macro_version=$macro_version
16735 macro_revision=$macro_revision
16736
16737 # Whether or not to build shared libraries.
16738 build_libtool_libs=$enable_shared
16739
16740 # What type of objects to build.
16741 pic_mode=$pic_mode
16742
16743 # Whether or not to build static libraries.
16744 build_old_libs=$enable_static
16745
16746 # Whether or not to optimize for fast installation.
16747 fast_install=$enable_fast_install
16748
16749 # Shared archive member basename,for filename based shared library versioning on AIX.
16750 shared_archive_member_spec=$shared_archive_member_spec
16751
16752 # Shell to use when invoking shell scripts.
16753 SHELL=$lt_SHELL
16754
16755 # An echo program that protects backslashes.
16756 ECHO=$lt_ECHO
16757
16758 # The PATH separator for the build system.
16759 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16760
16761 # The host system.
16762 host_alias=$host_alias
16763 host=$host
16764 host_os=$host_os
16765
16766 # The build system.
16767 build_alias=$build_alias
16768 build=$build
16769 build_os=$build_os
16770
16771 # A sed program that does not truncate output.
16772 SED=$lt_SED
16773
16774 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16775 Xsed="\$SED -e 1s/^X//"
16776
16777 # A grep program that handles long lines.
16778 GREP=$lt_GREP
16779
16780 # An ERE matcher.
16781 EGREP=$lt_EGREP
16782
16783 # A literal string matcher.
16784 FGREP=$lt_FGREP
16785
16786 # A BSD- or MS-compatible name lister.
16787 NM=$lt_NM
16788
16789 # Whether we need soft or hard links.
16790 LN_S=$lt_LN_S
16791
16792 # What is the maximum length of a command?
16793 max_cmd_len=$max_cmd_len
16794
16795 # Object file suffix (normally "o").
16796 objext=$ac_objext
16797
16798 # Executable file suffix (normally "").
16799 exeext=$exeext
16800
16801 # whether the shell understands "unset".
16802 lt_unset=$lt_unset
16803
16804 # turn spaces into newlines.
16805 SP2NL=$lt_lt_SP2NL
16806
16807 # turn newlines into spaces.
16808 NL2SP=$lt_lt_NL2SP
16809
16810 # convert \$build file names to \$host format.
16811 to_host_file_cmd=$lt_cv_to_host_file_cmd
16812
16813 # convert \$build files to toolchain format.
16814 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16815
16816 # A file(cmd) program that detects file types.
16817 FILECMD=$lt_FILECMD
16818
16819 # An object symbol dumper.
16820 OBJDUMP=$lt_OBJDUMP
16821
16822 # Method to check whether dependent libraries are shared objects.
16823 deplibs_check_method=$lt_deplibs_check_method
16824
16825 # Command to use when deplibs_check_method = "file_magic".
16826 file_magic_cmd=$lt_file_magic_cmd
16827
16828 # How to find potential files when deplibs_check_method = "file_magic".
16829 file_magic_glob=$lt_file_magic_glob
16830
16831 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16832 want_nocaseglob=$lt_want_nocaseglob
16833
16834 # DLL creation program.
16835 DLLTOOL=$lt_DLLTOOL
16836
16837 # Command to associate shared and link libraries.
16838 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16839
16840 # The archiver.
16841 AR=$lt_AR
16842
16843 # Flags to create an archive (by configure).
16844 lt_ar_flags=$lt_ar_flags
16845
16846 # Flags to create an archive.
16847 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
16848
16849 # How to feed a file listing to the archiver.
16850 archiver_list_spec=$lt_archiver_list_spec
16851
16852 # A symbol stripping program.
16853 STRIP=$lt_STRIP
16854
16855 # Commands used to install an old-style archive.
16856 RANLIB=$lt_RANLIB
16857 old_postinstall_cmds=$lt_old_postinstall_cmds
16858 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16859
16860 # Whether to use a lock for old archive extraction.
16861 lock_old_archive_extraction=$lock_old_archive_extraction
16862
16863 # A C compiler.
16864 LTCC=$lt_CC
16865
16866 # LTCC compiler flags.
16867 LTCFLAGS=$lt_CFLAGS
16868
16869 # Take the output of nm and produce a listing of raw symbols and C names.
16870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16871
16872 # Transform the output of nm in a proper C declaration.
16873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16874
16875 # Transform the output of nm into a list of symbols to manually relocate.
16876 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16877
16878 # Transform the output of nm in a C name address pair.
16879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16880
16881 # Transform the output of nm in a C name address pair when lib prefix is needed.
16882 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16883
16884 # The name lister interface.
16885 nm_interface=$lt_lt_cv_nm_interface
16886
16887 # Specify filename containing input files for \$NM.
16888 nm_file_list_spec=$lt_nm_file_list_spec
16889
16890 # The root where to search for dependent libraries,and where our libraries should be installed.
16891 lt_sysroot=$lt_sysroot
16892
16893 # Command to truncate a binary pipe.
16894 lt_truncate_bin=$lt_lt_cv_truncate_bin
16895
16896 # The name of the directory that contains temporary libtool files.
16897 objdir=$objdir
16898
16899 # Used to examine libraries when file_magic_cmd begins with "file".
16900 MAGIC_CMD=$MAGIC_CMD
16901
16902 # Must we lock files when doing compilation?
16903 need_locks=$lt_need_locks
16904
16905 # Manifest tool.
16906 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16907
16908 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16909 DSYMUTIL=$lt_DSYMUTIL
16910
16911 # Tool to change global to local symbols on Mac OS X.
16912 NMEDIT=$lt_NMEDIT
16913
16914 # Tool to manipulate fat objects and archives on Mac OS X.
16915 LIPO=$lt_LIPO
16916
16917 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16918 OTOOL=$lt_OTOOL
16919
16920 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16921 OTOOL64=$lt_OTOOL64
16922
16923 # Old archive suffix (normally "a").
16924 libext=$libext
16925
16926 # Shared library suffix (normally ".so").
16927 shrext_cmds=$lt_shrext_cmds
16928
16929 # The commands to extract the exported symbol list from a shared archive.
16930 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16931
16932 # Variables whose values should be saved in libtool wrapper scripts and
16933 # restored at link time.
16934 variables_saved_for_relink=$lt_variables_saved_for_relink
16935
16936 # Do we need the "lib" prefix for modules?
16937 need_lib_prefix=$need_lib_prefix
16938
16939 # Do we need a version for libraries?
16940 need_version=$need_version
16941
16942 # Library versioning type.
16943 version_type=$version_type
16944
16945 # Shared library runtime path variable.
16946 runpath_var=$runpath_var
16947
16948 # Shared library path variable.
16949 shlibpath_var=$shlibpath_var
16950
16951 # Is shlibpath searched before the hard-coded library search path?
16952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16953
16954 # Format of library name prefix.
16955 libname_spec=$lt_libname_spec
16956
16957 # List of archive names. First name is the real one, the rest are links.
16958 # The last name is the one that the linker finds with -lNAME
16959 library_names_spec=$lt_library_names_spec
16960
16961 # The coded name of the library, if different from the real name.
16962 soname_spec=$lt_soname_spec
16963
16964 # Permission mode override for installation of shared libraries.
16965 install_override_mode=$lt_install_override_mode
16966
16967 # Command to use after installation of a shared archive.
16968 postinstall_cmds=$lt_postinstall_cmds
16969
16970 # Command to use after uninstallation of a shared archive.
16971 postuninstall_cmds=$lt_postuninstall_cmds
16972
16973 # Commands used to finish a libtool library installation in a directory.
16974 finish_cmds=$lt_finish_cmds
16975
16976 # As "finish_cmds", except a single script fragment to be evaled but
16977 # not shown.
16978 finish_eval=$lt_finish_eval
16979
16980 # Whether we should hardcode library paths into libraries.
16981 hardcode_into_libs=$hardcode_into_libs
16982
16983 # Compile-time system search path for libraries.
16984 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16985
16986 # Detected run-time system search path for libraries.
16987 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16988
16989 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16990 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16991
16992 # Whether dlopen is supported.
16993 dlopen_support=$enable_dlopen
16994
16995 # Whether dlopen of programs is supported.
16996 dlopen_self=$enable_dlopen_self
16997
16998 # Whether dlopen of statically linked programs is supported.
16999 dlopen_self_static=$enable_dlopen_self_static
17000
17001 # Commands to strip libraries.
17002 old_striplib=$lt_old_striplib
17003 striplib=$lt_striplib
17004
17005
17006 # The linker used to build libraries.
17007 LD=$lt_LD
17008
17009 # How to create reloadable object files.
17010 reload_flag=$lt_reload_flag
17011 reload_cmds=$lt_reload_cmds
17012
17013 # Commands used to build an old-style archive.
17014 old_archive_cmds=$lt_old_archive_cmds
17015
17016 # A language specific compiler.
17017 CC=$lt_compiler
17018
17019 # Is the compiler the GNU compiler?
17020 with_gcc=$GCC
17021
17022 # Compiler flag to turn off builtin functions.
17023 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17024
17025 # Additional compiler flags for building library objects.
17026 pic_flag=$lt_lt_prog_compiler_pic
17027
17028 # How to pass a linker flag through the compiler.
17029 wl=$lt_lt_prog_compiler_wl
17030
17031 # Compiler flag to prevent dynamic linking.
17032 link_static_flag=$lt_lt_prog_compiler_static
17033
17034 # Does compiler simultaneously support -c and -o options?
17035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17036
17037 # Whether or not to add -lc for building shared libraries.
17038 build_libtool_need_lc=$archive_cmds_need_lc
17039
17040 # Whether or not to disallow shared libs when runtime libs are static.
17041 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17042
17043 # Compiler flag to allow reflexive dlopens.
17044 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17045
17046 # Compiler flag to generate shared objects directly from archives.
17047 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17048
17049 # Whether the compiler copes with passing no objects directly.
17050 compiler_needs_object=$lt_compiler_needs_object
17051
17052 # Create an old-style archive from a shared archive.
17053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17054
17055 # Create a temporary old-style archive to link instead of a shared archive.
17056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17057
17058 # Commands used to build a shared archive.
17059 archive_cmds=$lt_archive_cmds
17060 archive_expsym_cmds=$lt_archive_expsym_cmds
17061
17062 # Commands used to build a loadable module if different from building
17063 # a shared archive.
17064 module_cmds=$lt_module_cmds
17065 module_expsym_cmds=$lt_module_expsym_cmds
17066
17067 # Whether we are building with GNU ld or not.
17068 with_gnu_ld=$lt_with_gnu_ld
17069
17070 # Flag that allows shared libraries with undefined symbols to be built.
17071 allow_undefined_flag=$lt_allow_undefined_flag
17072
17073 # Flag that enforces no undefined symbols.
17074 no_undefined_flag=$lt_no_undefined_flag
17075
17076 # Flag to hardcode \$libdir into a binary during linking.
17077 # This must work even if \$libdir does not exist
17078 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17079
17080 # Whether we need a single "-rpath" flag with a separated argument.
17081 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17082
17083 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17084 # DIR into the resulting binary.
17085 hardcode_direct=$hardcode_direct
17086
17087 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17088 # DIR into the resulting binary and the resulting library dependency is
17089 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17090 # library is relocated.
17091 hardcode_direct_absolute=$hardcode_direct_absolute
17092
17093 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17094 # into the resulting binary.
17095 hardcode_minus_L=$hardcode_minus_L
17096
17097 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17098 # into the resulting binary.
17099 hardcode_shlibpath_var=$hardcode_shlibpath_var
17100
17101 # Set to "yes" if building a shared library automatically hardcodes DIR
17102 # into the library and all subsequent libraries and executables linked
17103 # against it.
17104 hardcode_automatic=$hardcode_automatic
17105
17106 # Set to yes if linker adds runtime paths of dependent libraries
17107 # to runtime path list.
17108 inherit_rpath=$inherit_rpath
17109
17110 # Whether libtool must link a program against all its dependency libraries.
17111 link_all_deplibs=$link_all_deplibs
17112
17113 # Set to "yes" if exported symbols are required.
17114 always_export_symbols=$always_export_symbols
17115
17116 # The commands to list exported symbols.
17117 export_symbols_cmds=$lt_export_symbols_cmds
17118
17119 # Symbols that should not be listed in the preloaded symbols.
17120 exclude_expsyms=$lt_exclude_expsyms
17121
17122 # Symbols that must always be exported.
17123 include_expsyms=$lt_include_expsyms
17124
17125 # Commands necessary for linking programs (against libraries) with templates.
17126 prelink_cmds=$lt_prelink_cmds
17127
17128 # Commands necessary for finishing linking programs.
17129 postlink_cmds=$lt_postlink_cmds
17130
17131 # Specify filename containing input files.
17132 file_list_spec=$lt_file_list_spec
17133
17134 # How to hardcode a shared library path into an executable.
17135 hardcode_action=$hardcode_action
17136
17137 # ### END LIBTOOL CONFIG
17138
17139 _LT_EOF
17140
17141 cat <<'_LT_EOF' >> "$cfgfile"
17142
17143 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17144
17145 # func_munge_path_list VARIABLE PATH
17146 # -----------------------------------
17147 # VARIABLE is name of variable containing _space_ separated list of
17148 # directories to be munged by the contents of PATH, which is string
17149 # having a format:
17150 # "DIR[:DIR]:"
17151 # string "DIR[ DIR]" will be prepended to VARIABLE
17152 # ":DIR[:DIR]"
17153 # string "DIR[ DIR]" will be appended to VARIABLE
17154 # "DIRP[:DIRP]::[DIRA:]DIRA"
17155 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17156 # "DIRA[ DIRA]" will be appended to VARIABLE
17157 # "DIR[:DIR]"
17158 # VARIABLE will be replaced by "DIR[ DIR]"
17159 func_munge_path_list ()
17160 {
17161 case x$2 in
17162 x)
17163 ;;
17164 *:)
17165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17166 ;;
17167 x:*)
17168 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17169 ;;
17170 *::*)
17171 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17172 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17173 ;;
17174 *)
17175 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17176 ;;
17177 esac
17178 }
17179
17180
17181 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17182 func_cc_basename ()
17183 {
17184 for cc_temp in $*""; do
17185 case $cc_temp in
17186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17188 \-*) ;;
17189 *) break;;
17190 esac
17191 done
17192 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17193 }
17194
17195
17196 # ### END FUNCTIONS SHARED WITH CONFIGURE
17197
17198 _LT_EOF
17199
17200 case $host_os in
17201 aix3*)
17202 cat <<\_LT_EOF >> "$cfgfile"
17203 # AIX sometimes has problems with the GCC collect2 program. For some
17204 # reason, if we set the COLLECT_NAMES environment variable, the problems
17205 # vanish in a puff of smoke.
17206 if test set != "${COLLECT_NAMES+set}"; then
17207 COLLECT_NAMES=
17208 export COLLECT_NAMES
17209 fi
17210 _LT_EOF
17211 ;;
17212 esac
17213
17214
17215
17216 ltmain=$ac_aux_dir/ltmain.sh
17217
17218
17219 # We use sed instead of cat because bash on DJGPP gets confused if
17220 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17221 # text mode, it properly converts lines to CR/LF. This bash problem
17222 # is reportedly fixed, but why not run on old versions too?
17223 $SED '$q' "$ltmain" >> "$cfgfile" \
17224 || (rm -f "$cfgfile"; exit 1)
17225
17226 mv -f "$cfgfile" "$ofile" ||
17227 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17228 chmod +x "$ofile"
17229
17230 ;;
17231
17232 esac
17233 done # for ac_tag
17234
17235
17236 as_fn_exit 0
17237 _ACEOF
17238 ac_clean_files=$ac_clean_files_save
17239
17240 test $ac_write_fail = 0 ||
17241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17242
17243
17244 # configure is writing to config.log, and then calls config.status.
17245 # config.status does its own redirection, appending to config.log.
17246 # Unfortunately, on DOS this fails, as config.log is still kept open
17247 # by configure, so config.status won't be able to write to it; its
17248 # output is simply discarded. So we exec the FD to /dev/null,
17249 # effectively closing config.log, so it can be properly (re)opened and
17250 # appended to by config.status. When coming back to configure, we
17251 # need to make the FD available again.
17252 if test "$no_create" != yes; then
17253 ac_cs_success=:
17254 ac_config_status_args=
17255 test "$silent" = yes &&
17256 ac_config_status_args="$ac_config_status_args --quiet"
17257 exec 5>/dev/null
17258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17259 exec 5>>config.log
17260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17261 # would make configure fail if this is the last instruction.
17262 $ac_cs_success || as_fn_exit 1
17263 fi
17264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17266 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17267 fi
17268
17269