Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libnetfilter_conntrack 1.1.1.
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='libnetfilter_conntrack'
613 PACKAGE_TARNAME='libnetfilter_conntrack'
614 PACKAGE_VERSION='1.1.1'
615 PACKAGE_STRING='libnetfilter_conntrack 1.1.1'
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 LIBMNL_LIBS
656 LIBMNL_CFLAGS
657 LIBNFNETLINK_LIBS
658 LIBNFNETLINK_CFLAGS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 LT_SYS_LIBRARY_PATH
663 OTOOL64
664 OTOOL
665 LIPO
666 NMEDIT
667 DSYMUTIL
668 MANIFEST_TOOL
669 RANLIB
670 DLLTOOL
671 OBJDUMP
672 FILECMD
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 EGREP
680 GREP
681 SED
682 LIBTOOL
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 am__nodep
687 AMDEPBACKSLASH
688 AMDEP_FALSE
689 AMDEP_TRUE
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 ac_ct_AR
700 AR
701 am__xargs_n
702 am__rm_f_notfound
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 CSCOPE
708 ETAGS
709 CTAGS
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL
780 am__quote'
781 ac_subst_files=''
782 ac_user_opts='
783 enable_option_checking
784 enable_silent_rules
785 enable_dependency_tracking
786 enable_static
787 enable_shared
788 enable_pic
789 with_pic
790 enable_fast_install
791 enable_aix_soname
792 with_aix_soname
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 '
797 ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 LIBS
804 CPPFLAGS
805 LT_SYS_LIBRARY_PATH
806 PKG_CONFIG
807 PKG_CONFIG_PATH
808 PKG_CONFIG_LIBDIR
809 LIBNFNETLINK_CFLAGS
810 LIBNFNETLINK_LIBS
811 LIBMNL_CFLAGS
812 LIBMNL_LIBS'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 runstatedir='${localstatedir}/run'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: '$ac_useropt'"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: '$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -runstatedir | --runstatedir | --runstatedi | --runstated \
1103 | --runstate | --runstat | --runsta | --runst | --runs \
1104 | --run | --ru | --r)
1105 ac_prev=runstatedir ;;
1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1108 | --run=* | --ru=* | --r=*)
1109 runstatedir=$ac_optarg ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: '$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: '$ac_useropt'"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: '$ac_option'
1207 Try '$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir runstatedir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: '$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 printf "%s\n" X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 'configure' configures libnetfilter_conntrack 1.1.1 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print 'checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for '--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or '..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, 'make install' will install all the files in
1388 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than '$ac_default_prefix' using '--prefix',
1390 for instance '--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root
1411 [DATAROOTDIR/doc/libnetfilter_conntrack]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1417
1418 cat <<\_ACEOF
1419
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1424
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of libnetfilter_conntrack 1.1.1:";;
1434 esac
1435 cat <<\_ACEOF
1436
1437 Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-silent-rules less verbose build output (undo: "make V=1")
1442 --disable-silent-rules verbose build output (undo: "make V=0")
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-static[=PKGS] build static libraries [default=no]
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1450 both]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --enable-aix-soname=aix|svr4|both
1454 shared library versioning (aka "SONAME") variant to
1455 provide on AIX, [default=aix].
1456 --disable-libtool-lock avoid locking (might break parallel builds)
1457
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1463 compiler's sysroot if not specified).
1464
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 LT_SYS_LIBRARY_PATH
1474 User-defined run-time library search path.
1475 PKG_CONFIG path to pkg-config utility
1476 PKG_CONFIG_PATH
1477 directories to add to pkg-config's search path
1478 PKG_CONFIG_LIBDIR
1479 path overriding pkg-config's built-in search path
1480 LIBNFNETLINK_CFLAGS
1481 C compiler flags for LIBNFNETLINK, overriding pkg-config
1482 LIBNFNETLINK_LIBS
1483 linker flags for LIBNFNETLINK, overriding pkg-config
1484 LIBMNL_CFLAGS
1485 C compiler flags for LIBMNL, overriding pkg-config
1486 LIBMNL_LIBS linker flags for LIBMNL, overriding pkg-config
1487
1488 Use these variables to override the choices made by 'configure' or to help
1489 it to find libraries and programs with nonstandard names/locations.
1490
1491 Report bugs to the package provider.
1492 _ACEOF
1493 ac_status=$?
1494 fi
1495
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501 continue
1502 ac_builddir=.
1503
1504 case "$ac_dir" in
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *)
1507 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513 esac ;;
1514 esac
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1519
1520 case $srcdir in
1521 .) # We are building in place.
1522 ac_srcdir=.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1529 *) # Relative name.
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533 esac
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for configure.gnu first; this name is used for a wrapper for
1538 # Metaconfig's "Configure" on case-insensitive file systems.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 libnetfilter_conntrack configure 1.1.1
1556 generated by GNU Autoconf 2.72
1557
1558 Copyright (C) 2023 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext conftest.beam
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 printf "%s\n" "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext
1595 then :
1596 ac_retval=0
1597 else case e in #(
1598 e) printf "%s\n" "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601 ac_retval=1 ;;
1602 esac
1603 fi
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605 as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_try_link LINENO
1610 # -----------------------
1611 # Try to link conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_link ()
1613 {
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1616 if { { ac_try="$ac_link"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 printf "%s\n" "$ac_try_echo"; } >&5
1623 (eval "$ac_link") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } && {
1632 test -z "$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 } && test -s conftest$ac_exeext && {
1635 test "$cross_compiling" = yes ||
1636 test -x conftest$ac_exeext
1637 }
1638 then :
1639 ac_retval=0
1640 else case e in #(
1641 e) printf "%s\n" "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1 ;;
1645 esac
1646 fi
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_link
1656
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 printf %s "checking for $2... " >&6; }
1666 if eval test \${$3+y}
1667 then :
1668 printf %s "(cached) " >&6
1669 else case e in #(
1670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 $4
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_compile "$LINENO"
1676 then :
1677 eval "$3=yes"
1678 else case e in #(
1679 e) eval "$3=no" ;;
1680 esac
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1683 esac
1684 fi
1685 eval ac_res=\$$3
1686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 printf "%s\n" "$ac_res" >&6; }
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689
1690 } # ac_fn_c_check_header_compile
1691
1692 # ac_fn_c_check_func LINENO FUNC VAR
1693 # ----------------------------------
1694 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1695 ac_fn_c_check_func ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1699 printf %s "checking for $2... " >&6; }
1700 if eval test \${$3+y}
1701 then :
1702 printf %s "(cached) " >&6
1703 else case e in #(
1704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1708 #define $2 innocuous_$2
1709
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $2 (void); below. */
1712
1713 #include <limits.h>
1714 #undef $2
1715
1716 /* Override any GCC internal prototype to avoid an error.
1717 Use char because int might match the return type of a GCC
1718 builtin and then its argument prototype would still apply. */
1719 #ifdef __cplusplus
1720 extern "C"
1721 #endif
1722 char $2 (void);
1723 /* The GNU C library defines this for functions which it implements
1724 to always fail with ENOSYS. Some functions are actually named
1725 something starting with __ and the normal name is an alias. */
1726 #if defined __stub_$2 || defined __stub___$2
1727 choke me
1728 #endif
1729
1730 int
1731 main (void)
1732 {
1733 return $2 ();
1734 ;
1735 return 0;
1736 }
1737 _ACEOF
1738 if ac_fn_c_try_link "$LINENO"
1739 then :
1740 eval "$3=yes"
1741 else case e in #(
1742 e) eval "$3=no" ;;
1743 esac
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1746 conftest$ac_exeext conftest.$ac_ext ;;
1747 esac
1748 fi
1749 eval ac_res=\$$3
1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 printf "%s\n" "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_func
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1759 # executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 printf "%s\n" "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }
1784 then :
1785 ac_retval=0
1786 else case e in #(
1787 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1788 printf "%s\n" "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=$ac_status ;;
1792 esac
1793 fi
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798 } # ac_fn_c_try_run
1799 ac_configure_args_raw=
1800 for ac_arg
1801 do
1802 case $ac_arg in
1803 *\'*)
1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805 esac
1806 as_fn_append ac_configure_args_raw " '$ac_arg'"
1807 done
1808
1809 case $ac_configure_args_raw in
1810 *$as_nl*)
1811 ac_safe_unquote= ;;
1812 *)
1813 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1814 ac_unsafe_a="$ac_unsafe_z#~"
1815 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1816 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1817 esac
1818
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by libnetfilter_conntrack $as_me 1.1.1, which was
1824 generated by GNU Autoconf 2.72. Invocation command line was
1825
1826 $ $0$ac_configure_args_raw
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 case $as_dir in #(((
1860 '') as_dir=./ ;;
1861 */) ;;
1862 *) as_dir=$as_dir/ ;;
1863 esac
1864 printf "%s\n" "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Sanitize IFS.
1935 IFS=" "" $as_nl"
1936 # Save into config.log some information that might help in debugging.
1937 {
1938 echo
1939
1940 printf "%s\n" "## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##"
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 printf "%s\n" "## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##"
1979 echo
1980 for ac_var in $ac_subst_vars
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 printf "%s\n" "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989
1990 if test -n "$ac_subst_files"; then
1991 printf "%s\n" "## ------------------- ##
1992 ## File substitutions. ##
1993 ## ------------------- ##"
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 printf "%s\n" "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 printf "%s\n" "## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##"
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 printf "%s\n" "$as_me: caught signal $ac_signal"
2016 printf "%s\n" "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021 ' 0
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024 done
2025 ac_signal=0
2026
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2029
2030 printf "%s\n" "/* confdefs.h */" > confdefs.h
2031
2032 # Predefined preprocessor variables.
2033
2034 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2045
2046
2047 # Let the site file select an alternate cache file if it wants to.
2048 # Prefer an explicitly selected file to automatically selected ones.
2049 if test -n "$CONFIG_SITE"; then
2050 ac_site_files="$CONFIG_SITE"
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2053 else
2054 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2055 fi
2056
2057 for ac_site_file in $ac_site_files
2058 do
2059 case $ac_site_file in #(
2060 */*) :
2061 ;; #(
2062 *) :
2063 ac_site_file=./$ac_site_file ;;
2064 esac
2065 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2068 sed 's/^/| /' "$ac_site_file" >&5
2069 . "$ac_site_file" \
2070 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2071 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2072 as_fn_error $? "failed to load site script $ac_site_file
2073 See 'config.log' for more details" "$LINENO" 5; }
2074 fi
2075 done
2076
2077 if test -r "$cache_file"; then
2078 # Some versions of bash will fail to source /dev/null (special files
2079 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2080 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2082 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2083 case $cache_file in
2084 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2085 *) . "./$cache_file";;
2086 esac
2087 fi
2088 else
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2090 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2091 >$cache_file
2092 fi
2093
2094 # Test code for whether the C compiler supports C89 (global declarations)
2095 ac_c_conftest_c89_globals='
2096 /* Does the compiler advertise C89 conformance?
2097 Do not test the value of __STDC__, because some compilers set it to 0
2098 while being otherwise adequately conformant. */
2099 #if !defined __STDC__
2100 # error "Compiler does not advertise C89 conformance"
2101 #endif
2102
2103 #include <stddef.h>
2104 #include <stdarg.h>
2105 struct stat;
2106 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2107 struct buf { int x; };
2108 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2109 static char *e (char **p, int i)
2110 {
2111 return p[i];
2112 }
2113 static char *f (char * (*g) (char **, int), char **p, ...)
2114 {
2115 char *s;
2116 va_list v;
2117 va_start (v,p);
2118 s = g (p, va_arg (v,int));
2119 va_end (v);
2120 return s;
2121 }
2122
2123 /* C89 style stringification. */
2124 #define noexpand_stringify(a) #a
2125 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2126
2127 /* C89 style token pasting. Exercises some of the corner cases that
2128 e.g. old MSVC gets wrong, but not very hard. */
2129 #define noexpand_concat(a,b) a##b
2130 #define expand_concat(a,b) noexpand_concat(a,b)
2131 extern int vA;
2132 extern int vbee;
2133 #define aye A
2134 #define bee B
2135 int *pvA = &expand_concat(v,aye);
2136 int *pvbee = &noexpand_concat(v,bee);
2137
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not \xHH hex character constants.
2140 These do not provoke an error unfortunately, instead are silently treated
2141 as an "x". The following induces an error, until -std is added to get
2142 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2143 array size at least. It is necessary to write \x00 == 0 to get something
2144 that is true only with -std. */
2145 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2146
2147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2148 inside strings and character constants. */
2149 #define FOO(x) '\''x'\''
2150 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2151
2152 int test (int i, double x);
2153 struct s1 {int (*f) (int a);};
2154 struct s2 {int (*f) (double a);};
2155 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2156 int, int);'
2157
2158 # Test code for whether the C compiler supports C89 (body of main).
2159 ac_c_conftest_c89_main='
2160 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2161 '
2162
2163 # Test code for whether the C compiler supports C99 (global declarations)
2164 ac_c_conftest_c99_globals='
2165 /* Does the compiler advertise C99 conformance? */
2166 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2167 # error "Compiler does not advertise C99 conformance"
2168 #endif
2169
2170 // See if C++-style comments work.
2171
2172 #include <stdbool.h>
2173 extern int puts (const char *);
2174 extern int printf (const char *, ...);
2175 extern int dprintf (int, const char *, ...);
2176 extern void *malloc (size_t);
2177 extern void free (void *);
2178
2179 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2180 // dprintf is used instead of fprintf to avoid needing to declare
2181 // FILE and stderr.
2182 #define debug(...) dprintf (2, __VA_ARGS__)
2183 #define showlist(...) puts (#__VA_ARGS__)
2184 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2185 static void
2186 test_varargs_macros (void)
2187 {
2188 int x = 1234;
2189 int y = 5678;
2190 debug ("Flag");
2191 debug ("X = %d\n", x);
2192 showlist (The first, second, and third items.);
2193 report (x>y, "x is %d but y is %d", x, y);
2194 }
2195
2196 // Check long long types.
2197 #define BIG64 18446744073709551615ull
2198 #define BIG32 4294967295ul
2199 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2200 #if !BIG_OK
2201 #error "your preprocessor is broken"
2202 #endif
2203 #if BIG_OK
2204 #else
2205 #error "your preprocessor is broken"
2206 #endif
2207 static long long int bignum = -9223372036854775807LL;
2208 static unsigned long long int ubignum = BIG64;
2209
2210 struct incomplete_array
2211 {
2212 int datasize;
2213 double data[];
2214 };
2215
2216 struct named_init {
2217 int number;
2218 const wchar_t *name;
2219 double average;
2220 };
2221
2222 typedef const char *ccp;
2223
2224 static inline int
2225 test_restrict (ccp restrict text)
2226 {
2227 // Iterate through items via the restricted pointer.
2228 // Also check for declarations in for loops.
2229 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2230 continue;
2231 return 0;
2232 }
2233
2234 // Check varargs and va_copy.
2235 static bool
2236 test_varargs (const char *format, ...)
2237 {
2238 va_list args;
2239 va_start (args, format);
2240 va_list args_copy;
2241 va_copy (args_copy, args);
2242
2243 const char *str = "";
2244 int number = 0;
2245 float fnumber = 0;
2246
2247 while (*format)
2248 {
2249 switch (*format++)
2250 {
2251 case '\''s'\'': // string
2252 str = va_arg (args_copy, const char *);
2253 break;
2254 case '\''d'\'': // int
2255 number = va_arg (args_copy, int);
2256 break;
2257 case '\''f'\'': // float
2258 fnumber = va_arg (args_copy, double);
2259 break;
2260 default:
2261 break;
2262 }
2263 }
2264 va_end (args_copy);
2265 va_end (args);
2266
2267 return *str && number && fnumber;
2268 }
2269 '
2270
2271 # Test code for whether the C compiler supports C99 (body of main).
2272 ac_c_conftest_c99_main='
2273 // Check bool.
2274 _Bool success = false;
2275 success |= (argc != 0);
2276
2277 // Check restrict.
2278 if (test_restrict ("String literal") == 0)
2279 success = true;
2280 char *restrict newvar = "Another string";
2281
2282 // Check varargs.
2283 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2284 test_varargs_macros ();
2285
2286 // Check flexible array members.
2287 struct incomplete_array *ia =
2288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2289 ia->datasize = 10;
2290 for (int i = 0; i < ia->datasize; ++i)
2291 ia->data[i] = i * 1.234;
2292 // Work around memory leak warnings.
2293 free (ia);
2294
2295 // Check named initializers.
2296 struct named_init ni = {
2297 .number = 34,
2298 .name = L"Test wide string",
2299 .average = 543.34343,
2300 };
2301
2302 ni.number = 58;
2303
2304 int dynamic_array[ni.number];
2305 dynamic_array[0] = argv[0][0];
2306 dynamic_array[ni.number - 1] = 543;
2307
2308 // work around unused variable warnings
2309 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2310 || dynamic_array[ni.number - 1] != 543);
2311 '
2312
2313 # Test code for whether the C compiler supports C11 (global declarations)
2314 ac_c_conftest_c11_globals='
2315 /* Does the compiler advertise C11 conformance? */
2316 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2317 # error "Compiler does not advertise C11 conformance"
2318 #endif
2319
2320 // Check _Alignas.
2321 char _Alignas (double) aligned_as_double;
2322 char _Alignas (0) no_special_alignment;
2323 extern char aligned_as_int;
2324 char _Alignas (0) _Alignas (int) aligned_as_int;
2325
2326 // Check _Alignof.
2327 enum
2328 {
2329 int_alignment = _Alignof (int),
2330 int_array_alignment = _Alignof (int[100]),
2331 char_alignment = _Alignof (char)
2332 };
2333 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2334
2335 // Check _Noreturn.
2336 int _Noreturn does_not_return (void) { for (;;) continue; }
2337
2338 // Check _Static_assert.
2339 struct test_static_assert
2340 {
2341 int x;
2342 _Static_assert (sizeof (int) <= sizeof (long int),
2343 "_Static_assert does not work in struct");
2344 long int y;
2345 };
2346
2347 // Check UTF-8 literals.
2348 #define u8 syntax error!
2349 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2350
2351 // Check duplicate typedefs.
2352 typedef long *long_ptr;
2353 typedef long int *long_ptr;
2354 typedef long_ptr long_ptr;
2355
2356 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2357 struct anonymous
2358 {
2359 union {
2360 struct { int i; int j; };
2361 struct { int k; long int l; } w;
2362 };
2363 int m;
2364 } v1;
2365 '
2366
2367 # Test code for whether the C compiler supports C11 (body of main).
2368 ac_c_conftest_c11_main='
2369 _Static_assert ((offsetof (struct anonymous, i)
2370 == offsetof (struct anonymous, w.k)),
2371 "Anonymous union alignment botch");
2372 v1.i = 2;
2373 v1.w.k = 5;
2374 ok |= v1.i != 5;
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (complete).
2378 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2379 ${ac_c_conftest_c99_globals}
2380 ${ac_c_conftest_c11_globals}
2381
2382 int
2383 main (int argc, char **argv)
2384 {
2385 int ok = 0;
2386 ${ac_c_conftest_c89_main}
2387 ${ac_c_conftest_c99_main}
2388 ${ac_c_conftest_c11_main}
2389 return ok;
2390 }
2391 "
2392
2393 # Test code for whether the C compiler supports C99 (complete).
2394 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2395 ${ac_c_conftest_c99_globals}
2396
2397 int
2398 main (int argc, char **argv)
2399 {
2400 int ok = 0;
2401 ${ac_c_conftest_c89_main}
2402 ${ac_c_conftest_c99_main}
2403 return ok;
2404 }
2405 "
2406
2407 # Test code for whether the C compiler supports C89 (complete).
2408 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 return ok;
2416 }
2417 "
2418
2419 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2420 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2421 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2422 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2423 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2424 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2425 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2426 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2427 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2428
2429 # Auxiliary files required by this configure script.
2430 ac_aux_files="ltmain.sh compile ar-lib missing install-sh config.guess config.sub"
2431
2432 # Locations in which to look for auxiliary files.
2433 ac_aux_dir_candidates="${srcdir}/build-aux"
2434
2435 # Search for a directory containing all of the required auxiliary files,
2436 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2437 # If we don't find one directory that contains all the files we need,
2438 # we report the set of missing files from the *first* directory in
2439 # $ac_aux_dir_candidates and give up.
2440 ac_missing_aux_files=""
2441 ac_first_candidate=:
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 as_found=false
2445 for as_dir in $ac_aux_dir_candidates
2446 do
2447 IFS=$as_save_IFS
2448 case $as_dir in #(((
2449 '') as_dir=./ ;;
2450 */) ;;
2451 *) as_dir=$as_dir/ ;;
2452 esac
2453 as_found=:
2454
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2456 ac_aux_dir_found=yes
2457 ac_install_sh=
2458 for ac_aux in $ac_aux_files
2459 do
2460 # As a special case, if "install-sh" is required, that requirement
2461 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2462 # and $ac_install_sh is set appropriately for whichever one is found.
2463 if test x"$ac_aux" = x"install-sh"
2464 then
2465 if test -f "${as_dir}install-sh"; then
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2467 ac_install_sh="${as_dir}install-sh -c"
2468 elif test -f "${as_dir}install.sh"; then
2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2470 ac_install_sh="${as_dir}install.sh -c"
2471 elif test -f "${as_dir}shtool"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2473 ac_install_sh="${as_dir}shtool install -c"
2474 else
2475 ac_aux_dir_found=no
2476 if $ac_first_candidate; then
2477 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2478 else
2479 break
2480 fi
2481 fi
2482 else
2483 if test -f "${as_dir}${ac_aux}"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2485 else
2486 ac_aux_dir_found=no
2487 if $ac_first_candidate; then
2488 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2489 else
2490 break
2491 fi
2492 fi
2493 fi
2494 done
2495 if test "$ac_aux_dir_found" = yes; then
2496 ac_aux_dir="$as_dir"
2497 break
2498 fi
2499 ac_first_candidate=false
2500
2501 as_found=false
2502 done
2503 IFS=$as_save_IFS
2504 if $as_found
2505 then :
2506
2507 else case e in #(
2508 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2509 esac
2510 fi
2511
2512
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 if test -f "${ac_aux_dir}config.guess"; then
2518 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2519 fi
2520 if test -f "${ac_aux_dir}config.sub"; then
2521 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2522 fi
2523 if test -f "$ac_aux_dir/configure"; then
2524 ac_configure="$SHELL ${ac_aux_dir}configure"
2525 fi
2526
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2538 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2542 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2545 *)
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2552 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2556 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2558 fi
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2560 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2562 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2575 fi
2576 done
2577 if $ac_cache_corrupted; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2583 and start over" "$LINENO" 5
2584 fi
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596
2597
2598
2599
2600 # Make sure we can run config.sub.
2601 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2602 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2603
2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2605 printf %s "checking build system type... " >&6; }
2606 if test ${ac_cv_build+y}
2607 then :
2608 printf %s "(cached) " >&6
2609 else case e in #(
2610 e) ac_build_alias=$build_alias
2611 test "x$ac_build_alias" = x &&
2612 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2613 test "x$ac_build_alias" = x &&
2614 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2615 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2616 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2617 ;;
2618 esac
2619 fi
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 printf "%s\n" "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2623 *-*-*) ;;
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625 esac
2626 build=$ac_cv_build
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_build
2629 shift
2630 build_cpu=$1
2631 build_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 build_os=$*
2636 IFS=$ac_save_IFS
2637 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 printf %s "checking host system type... " >&6; }
2642 if test ${ac_cv_host+y}
2643 then :
2644 printf %s "(cached) " >&6
2645 else case e in #(
2646 e) if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648 else
2649 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2650 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2651 fi
2652 ;;
2653 esac
2654 fi
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2656 printf "%s\n" "$ac_cv_host" >&6; }
2657 case $ac_cv_host in
2658 *-*-*) ;;
2659 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2660 esac
2661 host=$ac_cv_host
2662 ac_save_IFS=$IFS; IFS='-'
2663 set x $ac_cv_host
2664 shift
2665 host_cpu=$1
2666 host_vendor=$2
2667 shift; shift
2668 # Remember, the first character of IFS is used to create $*,
2669 # except with old shells:
2670 host_os=$*
2671 IFS=$ac_save_IFS
2672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673
2674
2675 ac_config_headers="$ac_config_headers config.h"
2676
2677
2678
2679 am__api_version='1.17'
2680
2681
2682 # Find a good install program. We prefer a C program (faster),
2683 # so one script is as good as another. But avoid the broken or
2684 # incompatible versions:
2685 # SysV /etc/install, /usr/sbin/install
2686 # SunOS /usr/etc/install
2687 # IRIX /sbin/install
2688 # AIX /bin/install
2689 # AmigaOS /C/install, which installs bootblocks on floppy discs
2690 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2691 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2692 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2693 # OS/2's system install, which has a completely different semantic
2694 # ./install, which can be erroneously created by make from ./install.sh.
2695 # Reject install programs that cannot install multiple files.
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2697 printf %s "checking for a BSD-compatible install... " >&6; }
2698 if test -z "$INSTALL"; then
2699 if test ${ac_cv_path_install+y}
2700 then :
2701 printf %s "(cached) " >&6
2702 else case e in #(
2703 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 case $as_dir in #(((
2708 '') as_dir=./ ;;
2709 */) ;;
2710 *) as_dir=$as_dir/ ;;
2711 esac
2712 # Account for fact that we put trailing slashes in our PATH walk.
2713 case $as_dir in #((
2714 ./ | /[cC]/* | \
2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2717 /usr/ucb/* ) ;;
2718 *)
2719 # OSF1 and SCO ODT 3.0 have their own names for install.
2720 # Don't use installbsd from OSF since it installs stuff as root
2721 # by default.
2722 for ac_prog in ginstall scoinst install; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2725 if test $ac_prog = install &&
2726 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # AIX install. It has an incompatible calling convention.
2728 :
2729 elif test $ac_prog = install &&
2730 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # program-specific install script used by HP pwplus--don't use.
2732 :
2733 else
2734 rm -rf conftest.one conftest.two conftest.dir
2735 echo one > conftest.one
2736 echo two > conftest.two
2737 mkdir conftest.dir
2738 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2739 test -s conftest.one && test -s conftest.two &&
2740 test -s conftest.dir/conftest.one &&
2741 test -s conftest.dir/conftest.two
2742 then
2743 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2744 break 3
2745 fi
2746 fi
2747 fi
2748 done
2749 done
2750 ;;
2751 esac
2752
2753 done
2754 IFS=$as_save_IFS
2755
2756 rm -rf conftest.one conftest.two conftest.dir
2757 ;;
2758 esac
2759 fi
2760 if test ${ac_cv_path_install+y}; then
2761 INSTALL=$ac_cv_path_install
2762 else
2763 # As a last resort, use the slow shell script. Don't cache a
2764 # value for INSTALL within a source directory, because that will
2765 # break other packages using the cache if that directory is
2766 # removed, or if the value is a relative name.
2767 INSTALL=$ac_install_sh
2768 fi
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2771 printf "%s\n" "$INSTALL" >&6; }
2772
2773 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2774 # It thinks the first close brace ends the variable substitution.
2775 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2776
2777 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2778
2779 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2780
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
2782 printf %s "checking whether sleep supports fractional seconds... " >&6; }
2783 if test ${am_cv_sleep_fractional_seconds+y}
2784 then :
2785 printf %s "(cached) " >&6
2786 else case e in #(
2787 e) if sleep 0.001 2>/dev/null
2788 then :
2789 am_cv_sleep_fractional_seconds=yes
2790 else case e in #(
2791 e) am_cv_sleep_fractional_seconds=no ;;
2792 esac
2793 fi
2794 ;;
2795 esac
2796 fi
2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
2798 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
2799
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
2801 printf %s "checking filesystem timestamp resolution... " >&6; }
2802 if test ${am_cv_filesystem_timestamp_resolution+y}
2803 then :
2804 printf %s "(cached) " >&6
2805 else case e in #(
2806 e) # Default to the worst case.
2807 am_cv_filesystem_timestamp_resolution=2
2808
2809 # Only try to go finer than 1 sec if sleep can do it.
2810 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
2811 # - 1 sec is not much of a win compared to 2 sec, and
2812 # - it takes 2 seconds to perform the test whether 1 sec works.
2813 #
2814 # Instead, just use the default 2s on platforms that have 1s resolution,
2815 # accept the extra 1s delay when using $sleep in the Automake tests, in
2816 # exchange for not incurring the 2s delay for running the test for all
2817 # packages.
2818 #
2819 am_try_resolutions=
2820 if test "$am_cv_sleep_fractional_seconds" = yes; then
2821 # Even a millisecond often causes a bunch of false positives,
2822 # so just try a hundredth of a second. The time saved between .001 and
2823 # .01 is not terribly consequential.
2824 am_try_resolutions="0.01 0.1 $am_try_resolutions"
2825 fi
2826
2827 # In order to catch current-generation FAT out, we must *modify* files
2828 # that already exist; the *creation* timestamp is finer. Use names
2829 # that make ls -t sort them differently when they have equal
2830 # timestamps than when they have distinct timestamps, keeping
2831 # in mind that ls -t prints the *newest* file first.
2832 rm -f conftest.ts?
2833 : > conftest.ts1
2834 : > conftest.ts2
2835 : > conftest.ts3
2836
2837 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
2838 # clobber the current shell's arguments. (Outer-level square brackets
2839 # are removed by m4; they're present so that m4 does not expand
2840 # <dollar><star>; be careful, easy to get confused.)
2841 if (
2842 set X `ls -t conftest.ts[12]` &&
2843 {
2844 test "$*" != "X conftest.ts1 conftest.ts2" ||
2845 test "$*" != "X conftest.ts2 conftest.ts1";
2846 }
2847 ); then :; else
2848 # If neither matched, then we have a broken ls. This can happen
2849 # if, for instance, CONFIG_SHELL is bash and it inherits a
2850 # broken ls alias from the environment. This has actually
2851 # happened. Such a system could not be considered "sane".
2852 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
2853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2854 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2855 as_fn_error $? "ls -t produces unexpected output.
2856 Make sure there is not a broken ls alias in your environment.
2857 See 'config.log' for more details" "$LINENO" 5; }
2858 fi
2859
2860 for am_try_res in $am_try_resolutions; do
2861 # Any one fine-grained sleep might happen to cross the boundary
2862 # between two values of a coarser actual resolution, but if we do
2863 # two fine-grained sleeps in a row, at least one of them will fall
2864 # entirely within a coarse interval.
2865 echo alpha > conftest.ts1
2866 sleep $am_try_res
2867 echo beta > conftest.ts2
2868 sleep $am_try_res
2869 echo gamma > conftest.ts3
2870
2871 # We assume that 'ls -t' will make use of high-resolution
2872 # timestamps if the operating system supports them at all.
2873 if (set X `ls -t conftest.ts?` &&
2874 test "$2" = conftest.ts3 &&
2875 test "$3" = conftest.ts2 &&
2876 test "$4" = conftest.ts1); then
2877 #
2878 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
2879 # because we don't need to test make.
2880 make_ok=true
2881 if test $am_try_res != 1; then
2882 # But if we've succeeded so far with a subsecond resolution, we
2883 # have one more thing to check: make. It can happen that
2884 # everything else supports the subsecond mtimes, but make doesn't;
2885 # notably on macOS, which ships make 3.81 from 2006 (the last one
2886 # released under GPLv2). https://bugs.gnu.org/68808
2887 #
2888 # We test $MAKE if it is defined in the environment, else "make".
2889 # It might get overridden later, but our hope is that in practice
2890 # it does not matter: it is the system "make" which is (by far)
2891 # the most likely to be broken, whereas if the user overrides it,
2892 # probably they did so with a better, or at least not worse, make.
2893 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
2894 #
2895 # Create a Makefile (real tab character here):
2896 rm -f conftest.mk
2897 echo 'conftest.ts1: conftest.ts2' >conftest.mk
2898 echo ' touch conftest.ts2' >>conftest.mk
2899 #
2900 # Now, running
2901 # touch conftest.ts1; touch conftest.ts2; make
2902 # should touch ts1 because ts2 is newer. This could happen by luck,
2903 # but most often, it will fail if make's support is insufficient. So
2904 # test for several consecutive successes.
2905 #
2906 # (We reuse conftest.ts[12] because we still want to modify existing
2907 # files, not create new ones, per above.)
2908 n=0
2909 make=${MAKE-make}
2910 until test $n -eq 3; do
2911 echo one > conftest.ts1
2912 sleep $am_try_res
2913 echo two > conftest.ts2 # ts2 should now be newer than ts1
2914 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
2915 make_ok=false
2916 break # out of $n loop
2917 fi
2918 n=`expr $n + 1`
2919 done
2920 fi
2921 #
2922 if $make_ok; then
2923 # Everything we know to check worked out, so call this resolution good.
2924 am_cv_filesystem_timestamp_resolution=$am_try_res
2925 break # out of $am_try_res loop
2926 fi
2927 # Otherwise, we'll go on to check the next resolution.
2928 fi
2929 done
2930 rm -f conftest.ts?
2931 # (end _am_filesystem_timestamp_resolution)
2932 ;;
2933 esac
2934 fi
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
2936 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
2937
2938 # This check should not be cached, as it may vary across builds of
2939 # different projects.
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2941 printf %s "checking whether build environment is sane... " >&6; }
2942 # Reject unsafe characters in $srcdir or the absolute working directory
2943 # name. Accept space and tab only in the latter.
2944 am_lf='
2945 '
2946 case `pwd` in
2947 *[\\\"\#\$\&\'\`$am_lf]*)
2948 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2949 esac
2950 case $srcdir in
2951 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2952 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2953 esac
2954
2955 # Do 'set' in a subshell so we don't clobber the current shell's
2956 # arguments. Must try -L first in case configure is actually a
2957 # symlink; some systems play weird games with the mod time of symlinks
2958 # (eg FreeBSD returns the mod time of the symlink's containing
2959 # directory).
2960 am_build_env_is_sane=no
2961 am_has_slept=no
2962 rm -f conftest.file
2963 for am_try in 1 2; do
2964 echo "timestamp, slept: $am_has_slept" > conftest.file
2965 if (
2966 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2967 if test "$*" = "X"; then
2968 # -L didn't work.
2969 set X `ls -t "$srcdir/configure" conftest.file`
2970 fi
2971 test "$2" = conftest.file
2972 ); then
2973 am_build_env_is_sane=yes
2974 break
2975 fi
2976 # Just in case.
2977 sleep "$am_cv_filesystem_timestamp_resolution"
2978 am_has_slept=yes
2979 done
2980
2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
2982 printf "%s\n" "$am_build_env_is_sane" >&6; }
2983 if test "$am_build_env_is_sane" = no; then
2984 as_fn_error $? "newly created file is older than distributed files!
2985 Check your system clock" "$LINENO" 5
2986 fi
2987
2988 # If we didn't sleep, we still need to ensure time stamps of config.status and
2989 # generated files are strictly newer.
2990 am_sleep_pid=
2991 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
2992 then :
2993
2994 else case e in #(
2995 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
2996 am_sleep_pid=$!
2997 ;;
2998 esac
2999 fi
3000
3001 rm -f conftest.file
3002
3003 test "$program_prefix" != NONE &&
3004 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3005 # Use a double $ so make ignores it.
3006 test "$program_suffix" != NONE &&
3007 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3008 # Double any \ or $.
3009 # By default was 's,x,x', remove it if useless.
3010 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3011 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3012
3013
3014 # Expand $ac_aux_dir to an absolute path.
3015 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3016
3017
3018 if test x"${MISSING+set}" != xset; then
3019 MISSING="\${SHELL} '$am_aux_dir/missing'"
3020 fi
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --is-lightweight"; then
3023 am_missing_run="$MISSING "
3024 else
3025 am_missing_run=
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3027 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3028 fi
3029
3030 if test x"${install_sh+set}" != xset; then
3031 case $am_aux_dir in
3032 *\ * | *\ *)
3033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3034 *)
3035 install_sh="\${SHELL} $am_aux_dir/install-sh"
3036 esac
3037 fi
3038
3039 # Installed binaries are usually stripped using 'strip' when the user
3040 # run "make install-strip". However 'strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the 'STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 printf %s "checking for $ac_word... " >&6; }
3049 if test ${ac_cv_prog_STRIP+y}
3050 then :
3051 printf %s "(cached) " >&6
3052 else case e in #(
3053 e) if test -n "$STRIP"; then
3054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059 IFS=$as_save_IFS
3060 case $as_dir in #(((
3061 '') as_dir=./ ;;
3062 */) ;;
3063 *) as_dir=$as_dir/ ;;
3064 esac
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi ;;
3076 esac
3077 fi
3078 STRIP=$ac_cv_prog_STRIP
3079 if test -n "$STRIP"; then
3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3081 printf "%s\n" "$STRIP" >&6; }
3082 else
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 printf "%s\n" "no" >&6; }
3085 fi
3086
3087
3088 fi
3089 if test -z "$ac_cv_prog_STRIP"; then
3090 ac_ct_STRIP=$STRIP
3091 # Extract the first word of "strip", so it can be a program name with args.
3092 set dummy strip; ac_word=$2
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 printf %s "checking for $ac_word... " >&6; }
3095 if test ${ac_cv_prog_ac_ct_STRIP+y}
3096 then :
3097 printf %s "(cached) " >&6
3098 else case e in #(
3099 e) if test -n "$ac_ct_STRIP"; then
3100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 case $as_dir in #(((
3107 '') as_dir=./ ;;
3108 */) ;;
3109 *) as_dir=$as_dir/ ;;
3110 esac
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3113 ac_cv_prog_ac_ct_STRIP="strip"
3114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi ;;
3122 esac
3123 fi
3124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3127 printf "%s\n" "$ac_ct_STRIP" >&6; }
3128 else
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 printf "%s\n" "no" >&6; }
3131 fi
3132
3133 if test "x$ac_ct_STRIP" = x; then
3134 STRIP=":"
3135 else
3136 case $cross_compiling:$ac_tool_warned in
3137 yes:)
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3141 esac
3142 STRIP=$ac_ct_STRIP
3143 fi
3144 else
3145 STRIP="$ac_cv_prog_STRIP"
3146 fi
3147
3148 fi
3149 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3150
3151
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3153 printf %s "checking for a race-free mkdir -p... " >&6; }
3154 if test -z "$MKDIR_P"; then
3155 if test ${ac_cv_path_mkdir+y}
3156 then :
3157 printf %s "(cached) " >&6
3158 else case e in #(
3159 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3161 do
3162 IFS=$as_save_IFS
3163 case $as_dir in #(((
3164 '') as_dir=./ ;;
3165 */) ;;
3166 *) as_dir=$as_dir/ ;;
3167 esac
3168 for ac_prog in mkdir gmkdir; do
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3171 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3172 'mkdir ('*'coreutils) '* | \
3173 *'BusyBox '* | \
3174 'mkdir (fileutils) '4.1*)
3175 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3176 break 3;;
3177 esac
3178 done
3179 done
3180 done
3181 IFS=$as_save_IFS
3182 ;;
3183 esac
3184 fi
3185
3186 test -d ./--version && rmdir ./--version
3187 if test ${ac_cv_path_mkdir+y}; then
3188 MKDIR_P="$ac_cv_path_mkdir -p"
3189 else
3190 # As a last resort, use plain mkdir -p,
3191 # in the hope it doesn't have the bugs of ancient mkdir.
3192 MKDIR_P='mkdir -p'
3193 fi
3194 fi
3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3196 printf "%s\n" "$MKDIR_P" >&6; }
3197
3198 for ac_prog in gawk mawk nawk awk
3199 do
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 printf %s "checking for $ac_word... " >&6; }
3204 if test ${ac_cv_prog_AWK+y}
3205 then :
3206 printf %s "(cached) " >&6
3207 else case e in #(
3208 e) if test -n "$AWK"; then
3209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 case $as_dir in #(((
3216 '') as_dir=./ ;;
3217 */) ;;
3218 *) as_dir=$as_dir/ ;;
3219 esac
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3222 ac_cv_prog_AWK="$ac_prog"
3223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi ;;
3231 esac
3232 fi
3233 AWK=$ac_cv_prog_AWK
3234 if test -n "$AWK"; then
3235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3236 printf "%s\n" "$AWK" >&6; }
3237 else
3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239 printf "%s\n" "no" >&6; }
3240 fi
3241
3242
3243 test -n "$AWK" && break
3244 done
3245
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3247 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3248 set x ${MAKE-make}
3249 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3250 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3251 then :
3252 printf %s "(cached) " >&6
3253 else case e in #(
3254 e) cat >conftest.make <<\_ACEOF
3255 SHELL = /bin/sh
3256 all:
3257 @echo '@@@%%%=$(MAKE)=@@@%%%'
3258 _ACEOF
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261 *@@@%%%=?*=@@@%%%*)
3262 eval ac_cv_prog_make_${ac_make}_set=yes;;
3263 *)
3264 eval ac_cv_prog_make_${ac_make}_set=no;;
3265 esac
3266 rm -f conftest.make ;;
3267 esac
3268 fi
3269 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 printf "%s\n" "yes" >&6; }
3272 SET_MAKE=
3273 else
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 printf "%s\n" "no" >&6; }
3276 SET_MAKE="MAKE=${MAKE-make}"
3277 fi
3278
3279 rm -rf .tst 2>/dev/null
3280 mkdir .tst 2>/dev/null
3281 if test -d .tst; then
3282 am__leading_dot=.
3283 else
3284 am__leading_dot=_
3285 fi
3286 rmdir .tst 2>/dev/null
3287
3288 AM_DEFAULT_VERBOSITY=1
3289 # Check whether --enable-silent-rules was given.
3290 if test ${enable_silent_rules+y}
3291 then :
3292 enableval=$enable_silent_rules;
3293 fi
3294
3295 am_make=${MAKE-make}
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3297 printf %s "checking whether $am_make supports nested variables... " >&6; }
3298 if test ${am_cv_make_support_nested_variables+y}
3299 then :
3300 printf %s "(cached) " >&6
3301 else case e in #(
3302 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3303 BAR0=false
3304 BAR1=true
3305 V=1
3306 am__doit:
3307 @$(TRUE)
3308 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3309 am_cv_make_support_nested_variables=yes
3310 else
3311 am_cv_make_support_nested_variables=no
3312 fi ;;
3313 esac
3314 fi
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3317 AM_BACKSLASH='\'
3318
3319 am__rm_f_notfound=
3320 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3321 then :
3322
3323 else case e in #(
3324 e) am__rm_f_notfound='""' ;;
3325 esac
3326 fi
3327
3328
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3330 printf %s "checking xargs -n works... " >&6; }
3331 if test ${am_cv_xargs_n_works+y}
3332 then :
3333 printf %s "(cached) " >&6
3334 else case e in #(
3335 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3336 3"
3337 then :
3338 am_cv_xargs_n_works=yes
3339 else case e in #(
3340 e) am_cv_xargs_n_works=no ;;
3341 esac
3342 fi ;;
3343 esac
3344 fi
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3346 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3347 if test "$am_cv_xargs_n_works" = yes
3348 then :
3349 am__xargs_n='xargs -n'
3350 else case e in #(
3351 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3352 ;;
3353 esac
3354 fi
3355
3356 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3358 # is not polluted with repeated "-I."
3359 am__isrc=' -I$(srcdir)'
3360 # test to see if srcdir already configured
3361 if test -f $srcdir/config.status; then
3362 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3363 fi
3364 fi
3365
3366 # test whether we have cygpath
3367 if test -z "$CYGPATH_W"; then
3368 if (cygpath --version) >/dev/null 2>/dev/null; then
3369 CYGPATH_W='cygpath -w'
3370 else
3371 CYGPATH_W=echo
3372 fi
3373 fi
3374
3375
3376 # Define the identity of the package.
3377 PACKAGE='libnetfilter_conntrack'
3378 VERSION='1.1.1'
3379
3380
3381 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3382
3383
3384 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 # For better backward compatibility. To be removed once Automake 1.9.x
3403 # dies out for good. For more background, see:
3404 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3405 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3406 mkdir_p='$(MKDIR_P)'
3407
3408 # We need awk for the "check" target (and possibly the TAP driver). The
3409 # system "awk" is bad on some platforms.
3410 # Always define AMTAR for backward compatibility. Yes, it's still used
3411 # in the wild :-( We should find a proper way to deprecate it ...
3412 AMTAR='$${TAR-tar}'
3413
3414
3415 # We'll loop over all known methods to create a tar archive until one works.
3416 _am_tools='gnutar pax cpio none'
3417
3418
3419
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
3421 printf %s "checking how to create a pax tar archive... " >&6; }
3422
3423 # Go ahead even if we have the value already cached. We do so because we
3424 # need to set the values for the 'am__tar' and 'am__untar' variables.
3425 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
3426
3427 for _am_tool in $_am_tools; do
3428 case $_am_tool in
3429 gnutar)
3430 for _am_tar in tar gnutar gtar; do
3431 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3432 ($_am_tar --version) >&5 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && break
3436 done
3437 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
3438 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
3439 am__untar="$_am_tar -xf -"
3440 ;;
3441 plaintar)
3442 # Must skip GNU tar: if it does not support --format= it doesn't create
3443 # ustar tarball either.
3444 (tar --version) >/dev/null 2>&1 && continue
3445 am__tar='tar chf - "$$tardir"'
3446 am__tar_='tar chf - "$tardir"'
3447 am__untar='tar xf -'
3448 ;;
3449 pax)
3450 am__tar='pax -L -x pax -w "$$tardir"'
3451 am__tar_='pax -L -x pax -w "$tardir"'
3452 am__untar='pax -r'
3453 ;;
3454 cpio)
3455 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
3456 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
3457 am__untar='cpio -i -H pax -d'
3458 ;;
3459 none)
3460 am__tar=false
3461 am__tar_=false
3462 am__untar=false
3463 ;;
3464 esac
3465
3466 # If the value was cached, stop now. We just wanted to have am__tar
3467 # and am__untar set.
3468 test -n "${am_cv_prog_tar_pax}" && break
3469
3470 # tar/untar a dummy directory, and stop if the command works.
3471 rm -rf conftest.dir
3472 mkdir conftest.dir
3473 echo GrepMe > conftest.dir/file
3474 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3475 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3479 rm -rf conftest.dir
3480 if test -s conftest.tar; then
3481 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3482 ($am__untar <conftest.tar) >&5 2>&5
3483 ac_status=$?
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }
3486 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3487 (cat conftest.dir/file) >&5 2>&5
3488 ac_status=$?
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); }
3491 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3492 fi
3493 done
3494 rm -rf conftest.dir
3495
3496 if test ${am_cv_prog_tar_pax+y}
3497 then :
3498 printf %s "(cached) " >&6
3499 else case e in #(
3500 e) am_cv_prog_tar_pax=$_am_tool ;;
3501 esac
3502 fi
3503
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
3505 printf "%s\n" "$am_cv_prog_tar_pax" >&6; }
3506
3507
3508
3509
3510
3511 # Variables for tags utilities; see am/tags.am
3512 if test -z "$CTAGS"; then
3513 CTAGS=ctags
3514 fi
3515
3516 if test -z "$ETAGS"; then
3517 ETAGS=etags
3518 fi
3519
3520 if test -z "$CSCOPE"; then
3521 CSCOPE=cscope
3522 fi
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539 DEPDIR="${am__leading_dot}deps"
3540
3541 ac_config_commands="$ac_config_commands depfiles"
3542
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3544 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3545 cat > confinc.mk << 'END'
3546 am__doit:
3547 @echo this is the am__doit target >confinc.out
3548 .PHONY: am__doit
3549 END
3550 am__include="#"
3551 am__quote=
3552 # BSD make does it like this.
3553 echo '.include "confinc.mk" # ignored' > confmf.BSD
3554 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3555 echo 'include confinc.mk # ignored' > confmf.GNU
3556 _am_result=no
3557 for s in GNU BSD; do
3558 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3559 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 case $?:`cat confinc.out 2>/dev/null` in #(
3564 '0:this is the am__doit target') :
3565 case $s in #(
3566 BSD) :
3567 am__include='.include' am__quote='"' ;; #(
3568 *) :
3569 am__include='include' am__quote='' ;;
3570 esac ;; #(
3571 *) :
3572 ;;
3573 esac
3574 if test "$am__include" != "#"; then
3575 _am_result="yes ($s style)"
3576 break
3577 fi
3578 done
3579 rm -f confinc.* confmf.*
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3581 printf "%s\n" "${_am_result}" >&6; }
3582
3583 # Check whether --enable-dependency-tracking was given.
3584 if test ${enable_dependency_tracking+y}
3585 then :
3586 enableval=$enable_dependency_tracking;
3587 fi
3588
3589 if test "x$enable_dependency_tracking" != xno; then
3590 am_depcomp="$ac_aux_dir/depcomp"
3591 AMDEPBACKSLASH='\'
3592 am__nodep='_no'
3593 fi
3594 if test "x$enable_dependency_tracking" != xno; then
3595 AMDEP_TRUE=
3596 AMDEP_FALSE='#'
3597 else
3598 AMDEP_TRUE='#'
3599 AMDEP_FALSE=
3600 fi
3601
3602
3603 ac_ext=c
3604 ac_cpp='$CPP $CPPFLAGS'
3605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 printf %s "checking for $ac_word... " >&6; }
3613 if test ${ac_cv_prog_CC+y}
3614 then :
3615 printf %s "(cached) " >&6
3616 else case e in #(
3617 e) if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi ;;
3640 esac
3641 fi
3642 CC=$ac_cv_prog_CC
3643 if test -n "$CC"; then
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3645 printf "%s\n" "$CC" >&6; }
3646 else
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 printf "%s\n" "no" >&6; }
3649 fi
3650
3651
3652 fi
3653 if test -z "$ac_cv_prog_CC"; then
3654 ac_ct_CC=$CC
3655 # Extract the first word of "gcc", so it can be a program name with args.
3656 set dummy gcc; ac_word=$2
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 printf %s "checking for $ac_word... " >&6; }
3659 if test ${ac_cv_prog_ac_ct_CC+y}
3660 then :
3661 printf %s "(cached) " >&6
3662 else case e in #(
3663 e) if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669 IFS=$as_save_IFS
3670 case $as_dir in #(((
3671 '') as_dir=./ ;;
3672 */) ;;
3673 *) as_dir=$as_dir/ ;;
3674 esac
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_ac_ct_CC="gcc"
3678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681 done
3682 done
3683 IFS=$as_save_IFS
3684
3685 fi ;;
3686 esac
3687 fi
3688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3689 if test -n "$ac_ct_CC"; then
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3691 printf "%s\n" "$ac_ct_CC" >&6; }
3692 else
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 printf "%s\n" "no" >&6; }
3695 fi
3696
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701 yes:)
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned=yes ;;
3705 esac
3706 CC=$ac_ct_CC
3707 fi
3708 else
3709 CC="$ac_cv_prog_CC"
3710 fi
3711
3712 if test -z "$CC"; then
3713 if test -n "$ac_tool_prefix"; then
3714 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3715 set dummy ${ac_tool_prefix}cc; ac_word=$2
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 printf %s "checking for $ac_word... " >&6; }
3718 if test ${ac_cv_prog_CC+y}
3719 then :
3720 printf %s "(cached) " >&6
3721 else case e in #(
3722 e) if test -n "$CC"; then
3723 ac_cv_prog_CC="$CC" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 case $as_dir in #(((
3730 '') as_dir=./ ;;
3731 */) ;;
3732 *) as_dir=$as_dir/ ;;
3733 esac
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_CC="${ac_tool_prefix}cc"
3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740 done
3741 done
3742 IFS=$as_save_IFS
3743
3744 fi ;;
3745 esac
3746 fi
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 printf "%s\n" "$CC" >&6; }
3751 else
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 printf "%s\n" "no" >&6; }
3754 fi
3755
3756
3757 fi
3758 fi
3759 if test -z "$CC"; then
3760 # Extract the first word of "cc", so it can be a program name with args.
3761 set dummy cc; ac_word=$2
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 printf %s "checking for $ac_word... " >&6; }
3764 if test ${ac_cv_prog_CC+y}
3765 then :
3766 printf %s "(cached) " >&6
3767 else case e in #(
3768 e) if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 ac_prog_rejected=no
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 case $as_dir in #(((
3777 '') as_dir=./ ;;
3778 */) ;;
3779 *) as_dir=$as_dir/ ;;
3780 esac
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3783 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3784 ac_prog_rejected=yes
3785 continue
3786 fi
3787 ac_cv_prog_CC="cc"
3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 if test $ac_prog_rejected = yes; then
3796 # We found a bogon in the path, so make sure we never use it.
3797 set dummy $ac_cv_prog_CC
3798 shift
3799 if test $# != 0; then
3800 # We chose a different compiler from the bogus one.
3801 # However, it has the same basename, so the bogon will be chosen
3802 # first if we set CC to just the basename; use the full file name.
3803 shift
3804 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3805 fi
3806 fi
3807 fi ;;
3808 esac
3809 fi
3810 CC=$ac_cv_prog_CC
3811 if test -n "$CC"; then
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3813 printf "%s\n" "$CC" >&6; }
3814 else
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 printf "%s\n" "no" >&6; }
3817 fi
3818
3819
3820 fi
3821 if test -z "$CC"; then
3822 if test -n "$ac_tool_prefix"; then
3823 for ac_prog in cl.exe
3824 do
3825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3826 set dummy $ac_tool_prefix$ac_prog; 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_CC+y}
3830 then :
3831 printf %s "(cached) " >&6
3832 else case e in #(
3833 e) if test -n "$CC"; then
3834 ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 printf "%s\n" "$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
3868 test -n "$CC" && break
3869 done
3870 fi
3871 if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3874 do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_ac_ct_CC+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else case e in #(
3883 e) if test -n "$ac_ct_CC"; then
3884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi ;;
3906 esac
3907 fi
3908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909 if test -n "$ac_ct_CC"; then
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3911 printf "%s\n" "$ac_ct_CC" >&6; }
3912 else
3913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 printf "%s\n" "no" >&6; }
3915 fi
3916
3917
3918 test -n "$ac_ct_CC" && break
3919 done
3920
3921 if test "x$ac_ct_CC" = x; then
3922 CC=""
3923 else
3924 case $cross_compiling:$ac_tool_warned in
3925 yes:)
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3927 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3928 ac_tool_warned=yes ;;
3929 esac
3930 CC=$ac_ct_CC
3931 fi
3932 fi
3933
3934 fi
3935 if test -z "$CC"; then
3936 if test -n "$ac_tool_prefix"; then
3937 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3938 set dummy ${ac_tool_prefix}clang; ac_word=$2
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 printf %s "checking for $ac_word... " >&6; }
3941 if test ${ac_cv_prog_CC+y}
3942 then :
3943 printf %s "(cached) " >&6
3944 else case e in #(
3945 e) if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951 IFS=$as_save_IFS
3952 case $as_dir in #(((
3953 '') as_dir=./ ;;
3954 */) ;;
3955 *) as_dir=$as_dir/ ;;
3956 esac
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3959 ac_cv_prog_CC="${ac_tool_prefix}clang"
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965 IFS=$as_save_IFS
3966
3967 fi ;;
3968 esac
3969 fi
3970 CC=$ac_cv_prog_CC
3971 if test -n "$CC"; then
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3973 printf "%s\n" "$CC" >&6; }
3974 else
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 fi
3978
3979
3980 fi
3981 if test -z "$ac_cv_prog_CC"; then
3982 ac_ct_CC=$CC
3983 # Extract the first word of "clang", so it can be a program name with args.
3984 set dummy clang; ac_word=$2
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3986 printf %s "checking for $ac_word... " >&6; }
3987 if test ${ac_cv_prog_ac_ct_CC+y}
3988 then :
3989 printf %s "(cached) " >&6
3990 else case e in #(
3991 e) if test -n "$ac_ct_CC"; then
3992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 case $as_dir in #(((
3999 '') as_dir=./ ;;
4000 */) ;;
4001 *) as_dir=$as_dir/ ;;
4002 esac
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_ac_ct_CC="clang"
4006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009 done
4010 done
4011 IFS=$as_save_IFS
4012
4013 fi ;;
4014 esac
4015 fi
4016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4017 if test -n "$ac_ct_CC"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4019 printf "%s\n" "$ac_ct_CC" >&6; }
4020 else
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025 if test "x$ac_ct_CC" = x; then
4026 CC=""
4027 else
4028 case $cross_compiling:$ac_tool_warned in
4029 yes:)
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4033 esac
4034 CC=$ac_ct_CC
4035 fi
4036 else
4037 CC="$ac_cv_prog_CC"
4038 fi
4039
4040 fi
4041
4042
4043 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4044 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4045 as_fn_error $? "no acceptable C compiler found in \$PATH
4046 See 'config.log' for more details" "$LINENO" 5; }
4047
4048 # Provide some information about the compiler.
4049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4050 set X $ac_compile
4051 ac_compiler=$2
4052 for ac_option in --version -v -V -qversion -version; do
4053 { { ac_try="$ac_compiler $ac_option >&5"
4054 case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 printf "%s\n" "$ac_try_echo"; } >&5
4060 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4061 ac_status=$?
4062 if test -s conftest.err; then
4063 sed '10a\
4064 ... rest of stderr output deleted ...
4065 10q' conftest.err >conftest.er1
4066 cat conftest.er1 >&5
4067 fi
4068 rm -f conftest.er1 conftest.err
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071 done
4072
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075
4076 int
4077 main (void)
4078 {
4079
4080 ;
4081 return 0;
4082 }
4083 _ACEOF
4084 ac_clean_files_save=$ac_clean_files
4085 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4086 # Try to create an executable without -o first, disregard a.out.
4087 # It will help us diagnose broken compilers, and finding out an intuition
4088 # of exeext.
4089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4090 printf %s "checking whether the C compiler works... " >&6; }
4091 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4092
4093 # The possible output files:
4094 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4095
4096 ac_rmfiles=
4097 for ac_file in $ac_files
4098 do
4099 case $ac_file in
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4102 esac
4103 done
4104 rm -f $ac_rmfiles
4105
4106 if { { ac_try="$ac_link_default"
4107 case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110 esac
4111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112 printf "%s\n" "$ac_try_echo"; } >&5
4113 (eval "$ac_link_default") 2>&5
4114 ac_status=$?
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4117 then :
4118 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4119 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4120 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4121 # so that the user can short-circuit this test for compilers unknown to
4122 # Autoconf.
4123 for ac_file in $ac_files ''
4124 do
4125 test -f "$ac_file" || continue
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4128 ;;
4129 [ab].out )
4130 # We found the default executable, but exeext='' is most
4131 # certainly right.
4132 break;;
4133 *.* )
4134 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4135 then :; else
4136 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4137 fi
4138 # We set ac_cv_exeext here because the later test for it is not
4139 # safe: cross compilers may not add the suffix if given an '-o'
4140 # argument, so we may need to know it at that point already.
4141 # Even if this section looks crufty: it has the advantage of
4142 # actually working.
4143 break;;
4144 * )
4145 break;;
4146 esac
4147 done
4148 test "$ac_cv_exeext" = no && ac_cv_exeext=
4149
4150 else case e in #(
4151 e) ac_file='' ;;
4152 esac
4153 fi
4154 if test -z "$ac_file"
4155 then :
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 printf "%s\n" "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4162 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4163 as_fn_error 77 "C compiler cannot create executables
4164 See 'config.log' for more details" "$LINENO" 5; }
4165 else case e in #(
4166 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4167 printf "%s\n" "yes" >&6; } ;;
4168 esac
4169 fi
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4171 printf %s "checking for C compiler default output file name... " >&6; }
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4173 printf "%s\n" "$ac_file" >&6; }
4174 ac_exeext=$ac_cv_exeext
4175
4176 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4177 ac_clean_files=$ac_clean_files_save
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4179 printf %s "checking for suffix of executables... " >&6; }
4180 if { { ac_try="$ac_link"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 printf "%s\n" "$ac_try_echo"; } >&5
4187 (eval "$ac_link") 2>&5
4188 ac_status=$?
4189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; }
4191 then :
4192 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4193 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4194 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4195 # 'rm'.
4196 for ac_file in conftest.exe conftest conftest.*; do
4197 test -f "$ac_file" || continue
4198 case $ac_file in
4199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4200 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4201 break;;
4202 * ) break;;
4203 esac
4204 done
4205 else case e in #(
4206 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4208 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4209 See 'config.log' for more details" "$LINENO" 5; } ;;
4210 esac
4211 fi
4212 rm -f conftest conftest$ac_cv_exeext
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4214 printf "%s\n" "$ac_cv_exeext" >&6; }
4215
4216 rm -f conftest.$ac_ext
4217 EXEEXT=$ac_cv_exeext
4218 ac_exeext=$EXEEXT
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <stdio.h>
4222 int
4223 main (void)
4224 {
4225 FILE *f = fopen ("conftest.out", "w");
4226 if (!f)
4227 return 1;
4228 return ferror (f) || fclose (f) != 0;
4229
4230 ;
4231 return 0;
4232 }
4233 _ACEOF
4234 ac_clean_files="$ac_clean_files conftest.out"
4235 # Check that the compiler produces executables we can run. If not, either
4236 # the compiler is broken, or we cross compile.
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4238 printf %s "checking whether we are cross compiling... " >&6; }
4239 if test "$cross_compiling" != yes; then
4240 { { ac_try="$ac_link"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 printf "%s\n" "$ac_try_echo"; } >&5
4247 (eval "$ac_link") 2>&5
4248 ac_status=$?
4249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }
4251 if { ac_try='./conftest$ac_cv_exeext'
4252 { { case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 printf "%s\n" "$ac_try_echo"; } >&5
4258 (eval "$ac_try") 2>&5
4259 ac_status=$?
4260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }; }; then
4262 cross_compiling=no
4263 else
4264 if test "$cross_compiling" = maybe; then
4265 cross_compiling=yes
4266 else
4267 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4268 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4269 as_fn_error 77 "cannot run C compiled programs.
4270 If you meant to cross compile, use '--host'.
4271 See 'config.log' for more details" "$LINENO" 5; }
4272 fi
4273 fi
4274 fi
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4276 printf "%s\n" "$cross_compiling" >&6; }
4277
4278 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4279 conftest.o conftest.obj conftest.out
4280 ac_clean_files=$ac_clean_files_save
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4282 printf %s "checking for suffix of object files... " >&6; }
4283 if test ${ac_cv_objext+y}
4284 then :
4285 printf %s "(cached) " >&6
4286 else case e in #(
4287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289
4290 int
4291 main (void)
4292 {
4293
4294 ;
4295 return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.o conftest.obj
4299 if { { ac_try="$ac_compile"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 printf "%s\n" "$ac_try_echo"; } >&5
4306 (eval "$ac_compile") 2>&5
4307 ac_status=$?
4308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }
4310 then :
4311 for ac_file in conftest.o conftest.obj conftest.*; do
4312 test -f "$ac_file" || continue;
4313 case $ac_file in
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4316 break;;
4317 esac
4318 done
4319 else case e in #(
4320 e) printf "%s\n" "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4324 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4325 as_fn_error $? "cannot compute suffix of object files: cannot compile
4326 See 'config.log' for more details" "$LINENO" 5; } ;;
4327 esac
4328 fi
4329 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4330 esac
4331 fi
4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4333 printf "%s\n" "$ac_cv_objext" >&6; }
4334 OBJEXT=$ac_cv_objext
4335 ac_objext=$OBJEXT
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4337 printf %s "checking whether the compiler supports GNU C... " >&6; }
4338 if test ${ac_cv_c_compiler_gnu+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else case e in #(
4342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main (void)
4347 {
4348 #ifndef __GNUC__
4349 choke me
4350 #endif
4351
4352 ;
4353 return 0;
4354 }
4355 _ACEOF
4356 if ac_fn_c_try_compile "$LINENO"
4357 then :
4358 ac_compiler_gnu=yes
4359 else case e in #(
4360 e) ac_compiler_gnu=no ;;
4361 esac
4362 fi
4363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4365 ;;
4366 esac
4367 fi
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4369 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371
4372 if test $ac_compiler_gnu = yes; then
4373 GCC=yes
4374 else
4375 GCC=
4376 fi
4377 ac_test_CFLAGS=${CFLAGS+y}
4378 ac_save_CFLAGS=$CFLAGS
4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4380 printf %s "checking whether $CC accepts -g... " >&6; }
4381 if test ${ac_cv_prog_cc_g+y}
4382 then :
4383 printf %s "(cached) " >&6
4384 else case e in #(
4385 e) ac_save_c_werror_flag=$ac_c_werror_flag
4386 ac_c_werror_flag=yes
4387 ac_cv_prog_cc_g=no
4388 CFLAGS="-g"
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391
4392 int
4393 main (void)
4394 {
4395
4396 ;
4397 return 0;
4398 }
4399 _ACEOF
4400 if ac_fn_c_try_compile "$LINENO"
4401 then :
4402 ac_cv_prog_cc_g=yes
4403 else case e in #(
4404 e) CFLAGS=""
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407
4408 int
4409 main (void)
4410 {
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 if ac_fn_c_try_compile "$LINENO"
4417 then :
4418
4419 else case e in #(
4420 e) ac_c_werror_flag=$ac_save_c_werror_flag
4421 CFLAGS="-g"
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4424
4425 int
4426 main (void)
4427 {
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"
4434 then :
4435 ac_cv_prog_cc_g=yes
4436 fi
4437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4438 esac
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4441 esac
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4445 esac
4446 fi
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4448 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4449 if test $ac_test_CFLAGS; then
4450 CFLAGS=$ac_save_CFLAGS
4451 elif test $ac_cv_prog_cc_g = yes; then
4452 if test "$GCC" = yes; then
4453 CFLAGS="-g -O2"
4454 else
4455 CFLAGS="-g"
4456 fi
4457 else
4458 if test "$GCC" = yes; then
4459 CFLAGS="-O2"
4460 else
4461 CFLAGS=
4462 fi
4463 fi
4464 ac_prog_cc_stdc=no
4465 if test x$ac_prog_cc_stdc = xno
4466 then :
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4468 printf %s "checking for $CC option to enable C11 features... " >&6; }
4469 if test ${ac_cv_prog_cc_c11+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else case e in #(
4473 e) ac_cv_prog_cc_c11=no
4474 ac_save_CC=$CC
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 $ac_c_conftest_c11_program
4478 _ACEOF
4479 for ac_arg in '' -std=gnu11
4480 do
4481 CC="$ac_save_CC $ac_arg"
4482 if ac_fn_c_try_compile "$LINENO"
4483 then :
4484 ac_cv_prog_cc_c11=$ac_arg
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.beam
4487 test "x$ac_cv_prog_cc_c11" != "xno" && break
4488 done
4489 rm -f conftest.$ac_ext
4490 CC=$ac_save_CC ;;
4491 esac
4492 fi
4493
4494 if test "x$ac_cv_prog_cc_c11" = xno
4495 then :
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4497 printf "%s\n" "unsupported" >&6; }
4498 else case e in #(
4499 e) if test "x$ac_cv_prog_cc_c11" = x
4500 then :
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4502 printf "%s\n" "none needed" >&6; }
4503 else case e in #(
4504 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4505 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4506 CC="$CC $ac_cv_prog_cc_c11" ;;
4507 esac
4508 fi
4509 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4510 ac_prog_cc_stdc=c11 ;;
4511 esac
4512 fi
4513 fi
4514 if test x$ac_prog_cc_stdc = xno
4515 then :
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4517 printf %s "checking for $CC option to enable C99 features... " >&6; }
4518 if test ${ac_cv_prog_cc_c99+y}
4519 then :
4520 printf %s "(cached) " >&6
4521 else case e in #(
4522 e) ac_cv_prog_cc_c99=no
4523 ac_save_CC=$CC
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 $ac_c_conftest_c99_program
4527 _ACEOF
4528 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4529 do
4530 CC="$ac_save_CC $ac_arg"
4531 if ac_fn_c_try_compile "$LINENO"
4532 then :
4533 ac_cv_prog_cc_c99=$ac_arg
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.beam
4536 test "x$ac_cv_prog_cc_c99" != "xno" && break
4537 done
4538 rm -f conftest.$ac_ext
4539 CC=$ac_save_CC ;;
4540 esac
4541 fi
4542
4543 if test "x$ac_cv_prog_cc_c99" = xno
4544 then :
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4546 printf "%s\n" "unsupported" >&6; }
4547 else case e in #(
4548 e) if test "x$ac_cv_prog_cc_c99" = x
4549 then :
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4551 printf "%s\n" "none needed" >&6; }
4552 else case e in #(
4553 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4554 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4555 CC="$CC $ac_cv_prog_cc_c99" ;;
4556 esac
4557 fi
4558 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4559 ac_prog_cc_stdc=c99 ;;
4560 esac
4561 fi
4562 fi
4563 if test x$ac_prog_cc_stdc = xno
4564 then :
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4566 printf %s "checking for $CC option to enable C89 features... " >&6; }
4567 if test ${ac_cv_prog_cc_c89+y}
4568 then :
4569 printf %s "(cached) " >&6
4570 else case e in #(
4571 e) ac_cv_prog_cc_c89=no
4572 ac_save_CC=$CC
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 $ac_c_conftest_c89_program
4576 _ACEOF
4577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4578 do
4579 CC="$ac_save_CC $ac_arg"
4580 if ac_fn_c_try_compile "$LINENO"
4581 then :
4582 ac_cv_prog_cc_c89=$ac_arg
4583 fi
4584 rm -f core conftest.err conftest.$ac_objext conftest.beam
4585 test "x$ac_cv_prog_cc_c89" != "xno" && break
4586 done
4587 rm -f conftest.$ac_ext
4588 CC=$ac_save_CC ;;
4589 esac
4590 fi
4591
4592 if test "x$ac_cv_prog_cc_c89" = xno
4593 then :
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4595 printf "%s\n" "unsupported" >&6; }
4596 else case e in #(
4597 e) if test "x$ac_cv_prog_cc_c89" = x
4598 then :
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4600 printf "%s\n" "none needed" >&6; }
4601 else case e in #(
4602 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4603 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4604 CC="$CC $ac_cv_prog_cc_c89" ;;
4605 esac
4606 fi
4607 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4608 ac_prog_cc_stdc=c89 ;;
4609 esac
4610 fi
4611 fi
4612
4613 ac_ext=c
4614 ac_cpp='$CPP $CPPFLAGS'
4615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4618
4619
4620 ac_ext=c
4621 ac_cpp='$CPP $CPPFLAGS'
4622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4626 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4627 if test ${am_cv_prog_cc_c_o+y}
4628 then :
4629 printf %s "(cached) " >&6
4630 else case e in #(
4631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633
4634 int
4635 main (void)
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 # Make sure it works both with $CC and with simple cc.
4643 # Following AC_PROG_CC_C_O, we do the test twice because some
4644 # compilers refuse to overwrite an existing .o file with -o,
4645 # though they will create one.
4646 am_cv_prog_cc_c_o=yes
4647 for am_i in 1 2; do
4648 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4649 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } \
4653 && test -f conftest2.$ac_objext; then
4654 : OK
4655 else
4656 am_cv_prog_cc_c_o=no
4657 break
4658 fi
4659 done
4660 rm -f core conftest*
4661 unset am_i ;;
4662 esac
4663 fi
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4665 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4666 if test "$am_cv_prog_cc_c_o" != yes; then
4667 # Losing compiler, so override with the script.
4668 # FIXME: It is wrong to rewrite CC.
4669 # But if we don't then we get into trouble of one sort or another.
4670 # A longer-term fix would be to have automake use am__CC in this case,
4671 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4672 CC="$am_aux_dir/compile $CC"
4673 fi
4674 ac_ext=c
4675 ac_cpp='$CPP $CPPFLAGS'
4676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4679
4680
4681 depcc="$CC" am_compiler_list=
4682
4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684 printf %s "checking dependency style of $depcc... " >&6; }
4685 if test ${am_cv_CC_dependencies_compiler_type+y}
4686 then :
4687 printf %s "(cached) " >&6
4688 else case e in #(
4689 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4690 # We make a subdir and do the tests there. Otherwise we can end up
4691 # making bogus files that we don't know about and never remove. For
4692 # instance it was reported that on HP-UX the gcc test will end up
4693 # making a dummy file named 'D' -- because '-MD' means "put the output
4694 # in D".
4695 rm -rf conftest.dir
4696 mkdir conftest.dir
4697 # Copy depcomp to subdir because otherwise we won't find it if we're
4698 # using a relative directory.
4699 cp "$am_depcomp" conftest.dir
4700 cd conftest.dir
4701 # We will build objects and dependencies in a subdirectory because
4702 # it helps to detect inapplicable dependency modes. For instance
4703 # both Tru64's cc and ICC support -MD to output dependencies as a
4704 # side effect of compilation, but ICC will put the dependencies in
4705 # the current directory while Tru64 will put them in the object
4706 # directory.
4707 mkdir sub
4708
4709 am_cv_CC_dependencies_compiler_type=none
4710 if test "$am_compiler_list" = ""; then
4711 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4712 fi
4713 am__universal=false
4714 case " $depcc " in #(
4715 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4716 esac
4717
4718 for depmode in $am_compiler_list; do
4719 # Setup a source with many dependencies, because some compilers
4720 # like to wrap large dependency lists on column 80 (with \), and
4721 # we should not choose a depcomp mode which is confused by this.
4722 #
4723 # We need to recreate these files for each test, as the compiler may
4724 # overwrite some of them when testing with obscure command lines.
4725 # This happens at least with the AIX C compiler.
4726 : > sub/conftest.c
4727 for i in 1 2 3 4 5 6; do
4728 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4729 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4730 # Solaris 10 /bin/sh.
4731 echo '/* dummy */' > sub/conftst$i.h
4732 done
4733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4734
4735 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4736 # mode. It turns out that the SunPro C++ compiler does not properly
4737 # handle '-M -o', and we need to detect this. Also, some Intel
4738 # versions had trouble with output in subdirs.
4739 am__obj=sub/conftest.${OBJEXT-o}
4740 am__minus_obj="-o $am__obj"
4741 case $depmode in
4742 gcc)
4743 # This depmode causes a compiler race in universal mode.
4744 test "$am__universal" = false || continue
4745 ;;
4746 nosideeffect)
4747 # After this tag, mechanisms are not by side-effect, so they'll
4748 # only be used when explicitly requested.
4749 if test "x$enable_dependency_tracking" = xyes; then
4750 continue
4751 else
4752 break
4753 fi
4754 ;;
4755 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4756 # This compiler won't grok '-c -o', but also, the minuso test has
4757 # not run yet. These depmodes are late enough in the game, and
4758 # so weak that their functioning should not be impacted.
4759 am__obj=conftest.${OBJEXT-o}
4760 am__minus_obj=
4761 ;;
4762 none) break ;;
4763 esac
4764 if depmode=$depmode \
4765 source=sub/conftest.c object=$am__obj \
4766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4768 >/dev/null 2>conftest.err &&
4769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4773 # icc doesn't choke on unknown options, it will just issue warnings
4774 # or remarks (even with -Werror). So we grep stderr for any message
4775 # that says an option was ignored or not supported.
4776 # When given -MP, icc 7.0 and 7.1 complain thus:
4777 # icc: Command line warning: ignoring option '-M'; no argument required
4778 # The diagnosis changed in icc 8.0:
4779 # icc: Command line remark: option '-MP' not supported
4780 if (grep 'ignoring option' conftest.err ||
4781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4782 am_cv_CC_dependencies_compiler_type=$depmode
4783 break
4784 fi
4785 fi
4786 done
4787
4788 cd ..
4789 rm -rf conftest.dir
4790 else
4791 am_cv_CC_dependencies_compiler_type=none
4792 fi
4793 ;;
4794 esac
4795 fi
4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4797 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4799
4800 if
4801 test "x$enable_dependency_tracking" != xno \
4802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4803 am__fastdepCC_TRUE=
4804 am__fastdepCC_FALSE='#'
4805 else
4806 am__fastdepCC_TRUE='#'
4807 am__fastdepCC_FALSE=
4808 fi
4809
4810
4811
4812
4813 if test -n "$ac_tool_prefix"; then
4814 for ac_prog in ar lib "link -lib"
4815 do
4816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 printf %s "checking for $ac_word... " >&6; }
4820 if test ${ac_cv_prog_AR+y}
4821 then :
4822 printf %s "(cached) " >&6
4823 else case e in #(
4824 e) if test -n "$AR"; then
4825 ac_cv_prog_AR="$AR" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 case $as_dir in #(((
4832 '') as_dir=./ ;;
4833 */) ;;
4834 *) as_dir=$as_dir/ ;;
4835 esac
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4840 break 2
4841 fi
4842 done
4843 done
4844 IFS=$as_save_IFS
4845
4846 fi ;;
4847 esac
4848 fi
4849 AR=$ac_cv_prog_AR
4850 if test -n "$AR"; then
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4852 printf "%s\n" "$AR" >&6; }
4853 else
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 printf "%s\n" "no" >&6; }
4856 fi
4857
4858
4859 test -n "$AR" && break
4860 done
4861 fi
4862 if test -z "$AR"; then
4863 ac_ct_AR=$AR
4864 for ac_prog in ar lib "link -lib"
4865 do
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867 set dummy $ac_prog; ac_word=$2
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 printf %s "checking for $ac_word... " >&6; }
4870 if test ${ac_cv_prog_ac_ct_AR+y}
4871 then :
4872 printf %s "(cached) " >&6
4873 else case e in #(
4874 e) if test -n "$ac_ct_AR"; then
4875 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4876 else
4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878 for as_dir in $PATH
4879 do
4880 IFS=$as_save_IFS
4881 case $as_dir in #(((
4882 '') as_dir=./ ;;
4883 */) ;;
4884 *) as_dir=$as_dir/ ;;
4885 esac
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4888 ac_cv_prog_ac_ct_AR="$ac_prog"
4889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4890 break 2
4891 fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896 fi ;;
4897 esac
4898 fi
4899 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4900 if test -n "$ac_ct_AR"; then
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4902 printf "%s\n" "$ac_ct_AR" >&6; }
4903 else
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 printf "%s\n" "no" >&6; }
4906 fi
4907
4908
4909 test -n "$ac_ct_AR" && break
4910 done
4911
4912 if test "x$ac_ct_AR" = x; then
4913 AR="false"
4914 else
4915 case $cross_compiling:$ac_tool_warned in
4916 yes:)
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4918 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4919 ac_tool_warned=yes ;;
4920 esac
4921 AR=$ac_ct_AR
4922 fi
4923 fi
4924
4925 : ${AR=ar}
4926 : ${ARFLAGS=cr}
4927
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4929 printf %s "checking the archiver ($AR) interface... " >&6; }
4930 if test ${am_cv_ar_interface+y}
4931 then :
4932 printf %s "(cached) " >&6
4933 else case e in #(
4934 e) ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940 am_cv_ar_interface=ar
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 int some_variable = 0;
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"
4946 then :
4947 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
4948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4949 (eval $am_ar_try) 2>&5
4950 ac_status=$?
4951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; }
4953 if test "$ac_status" -eq 0; then
4954 am_cv_ar_interface=ar
4955 else
4956 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4958 (eval $am_ar_try) 2>&5
4959 ac_status=$?
4960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }
4962 if test "$ac_status" -eq 0; then
4963 am_cv_ar_interface=lib
4964 else
4965 am_cv_ar_interface=unknown
4966 fi
4967 fi
4968 rm -f conftest.lib libconftest.a
4969
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 ;;
4978 esac
4979 fi
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4981 printf "%s\n" "$am_cv_ar_interface" >&6; }
4982
4983 case $am_cv_ar_interface in
4984 ar)
4985 ;;
4986 lib)
4987 # Microsoft lib, so override with the ar-lib wrapper script.
4988 # FIXME: It is wrong to rewrite AR.
4989 # But if we don't then we get into trouble of one sort or another.
4990 # A longer-term fix would be to have automake use am__AR in this case,
4991 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4992 # similar.
4993 AR="$am_aux_dir/ar-lib $AR"
4994 ;;
4995 unknown)
4996 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4997 ;;
4998 esac
4999
5000
5001
5002 AM_DEFAULT_VERBOSITY=0
5003
5004 ac_ext=c
5005 ac_cpp='$CPP $CPPFLAGS'
5006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 if test -n "$ac_tool_prefix"; then
5010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013 printf %s "checking for $ac_word... " >&6; }
5014 if test ${ac_cv_prog_CC+y}
5015 then :
5016 printf %s "(cached) " >&6
5017 else case e in #(
5018 e) if test -n "$CC"; then
5019 ac_cv_prog_CC="$CC" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024 IFS=$as_save_IFS
5025 case $as_dir in #(((
5026 '') as_dir=./ ;;
5027 */) ;;
5028 *) as_dir=$as_dir/ ;;
5029 esac
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5034 break 2
5035 fi
5036 done
5037 done
5038 IFS=$as_save_IFS
5039
5040 fi ;;
5041 esac
5042 fi
5043 CC=$ac_cv_prog_CC
5044 if test -n "$CC"; then
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046 printf "%s\n" "$CC" >&6; }
5047 else
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 printf "%s\n" "no" >&6; }
5050 fi
5051
5052
5053 fi
5054 if test -z "$ac_cv_prog_CC"; then
5055 ac_ct_CC=$CC
5056 # Extract the first word of "gcc", so it can be a program name with args.
5057 set dummy gcc; ac_word=$2
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 printf %s "checking for $ac_word... " >&6; }
5060 if test ${ac_cv_prog_ac_ct_CC+y}
5061 then :
5062 printf %s "(cached) " >&6
5063 else case e in #(
5064 e) if test -n "$ac_ct_CC"; then
5065 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070 IFS=$as_save_IFS
5071 case $as_dir in #(((
5072 '') as_dir=./ ;;
5073 */) ;;
5074 *) as_dir=$as_dir/ ;;
5075 esac
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_CC="gcc"
5079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi ;;
5087 esac
5088 fi
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5092 printf "%s\n" "$ac_ct_CC" >&6; }
5093 else
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 printf "%s\n" "no" >&6; }
5096 fi
5097
5098 if test "x$ac_ct_CC" = x; then
5099 CC=""
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5106 esac
5107 CC=$ac_ct_CC
5108 fi
5109 else
5110 CC="$ac_cv_prog_CC"
5111 fi
5112
5113 if test -z "$CC"; then
5114 if test -n "$ac_tool_prefix"; then
5115 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5116 set dummy ${ac_tool_prefix}cc; ac_word=$2
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 printf %s "checking for $ac_word... " >&6; }
5119 if test ${ac_cv_prog_CC+y}
5120 then :
5121 printf %s "(cached) " >&6
5122 else case e in #(
5123 e) if test -n "$CC"; then
5124 ac_cv_prog_CC="$CC" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 case $as_dir in #(((
5131 '') as_dir=./ ;;
5132 */) ;;
5133 *) as_dir=$as_dir/ ;;
5134 esac
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_CC="${ac_tool_prefix}cc"
5138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5139 break 2
5140 fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi ;;
5146 esac
5147 fi
5148 CC=$ac_cv_prog_CC
5149 if test -n "$CC"; then
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5151 printf "%s\n" "$CC" >&6; }
5152 else
5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 printf "%s\n" "no" >&6; }
5155 fi
5156
5157
5158 fi
5159 fi
5160 if test -z "$CC"; then
5161 # Extract the first word of "cc", so it can be a program name with args.
5162 set dummy cc; ac_word=$2
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 printf %s "checking for $ac_word... " >&6; }
5165 if test ${ac_cv_prog_CC+y}
5166 then :
5167 printf %s "(cached) " >&6
5168 else case e in #(
5169 e) if test -n "$CC"; then
5170 ac_cv_prog_CC="$CC" # Let the user override the test.
5171 else
5172 ac_prog_rejected=no
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 case $as_dir in #(((
5178 '') as_dir=./ ;;
5179 */) ;;
5180 *) as_dir=$as_dir/ ;;
5181 esac
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5184 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5185 ac_prog_rejected=yes
5186 continue
5187 fi
5188 ac_cv_prog_CC="cc"
5189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 if test $ac_prog_rejected = yes; then
5197 # We found a bogon in the path, so make sure we never use it.
5198 set dummy $ac_cv_prog_CC
5199 shift
5200 if test $# != 0; then
5201 # We chose a different compiler from the bogus one.
5202 # However, it has the same basename, so the bogon will be chosen
5203 # first if we set CC to just the basename; use the full file name.
5204 shift
5205 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5206 fi
5207 fi
5208 fi ;;
5209 esac
5210 fi
5211 CC=$ac_cv_prog_CC
5212 if test -n "$CC"; then
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5214 printf "%s\n" "$CC" >&6; }
5215 else
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 printf "%s\n" "no" >&6; }
5218 fi
5219
5220
5221 fi
5222 if test -z "$CC"; then
5223 if test -n "$ac_tool_prefix"; then
5224 for ac_prog in cl.exe
5225 do
5226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 printf %s "checking for $ac_word... " >&6; }
5230 if test ${ac_cv_prog_CC+y}
5231 then :
5232 printf %s "(cached) " >&6
5233 else case e in #(
5234 e) if test -n "$CC"; then
5235 ac_cv_prog_CC="$CC" # Let the user override the test.
5236 else
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH
5239 do
5240 IFS=$as_save_IFS
5241 case $as_dir in #(((
5242 '') as_dir=./ ;;
5243 */) ;;
5244 *) as_dir=$as_dir/ ;;
5245 esac
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252 done
5253 done
5254 IFS=$as_save_IFS
5255
5256 fi ;;
5257 esac
5258 fi
5259 CC=$ac_cv_prog_CC
5260 if test -n "$CC"; then
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5262 printf "%s\n" "$CC" >&6; }
5263 else
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265 printf "%s\n" "no" >&6; }
5266 fi
5267
5268
5269 test -n "$CC" && break
5270 done
5271 fi
5272 if test -z "$CC"; then
5273 ac_ct_CC=$CC
5274 for ac_prog in cl.exe
5275 do
5276 # Extract the first word of "$ac_prog", so it can be a program name with args.
5277 set dummy $ac_prog; ac_word=$2
5278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 printf %s "checking for $ac_word... " >&6; }
5280 if test ${ac_cv_prog_ac_ct_CC+y}
5281 then :
5282 printf %s "(cached) " >&6
5283 else case e in #(
5284 e) if test -n "$ac_ct_CC"; then
5285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290 IFS=$as_save_IFS
5291 case $as_dir in #(((
5292 '') as_dir=./ ;;
5293 */) ;;
5294 *) as_dir=$as_dir/ ;;
5295 esac
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5298 ac_cv_prog_ac_ct_CC="$ac_prog"
5299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5305
5306 fi ;;
5307 esac
5308 fi
5309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5310 if test -n "$ac_ct_CC"; then
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5312 printf "%s\n" "$ac_ct_CC" >&6; }
5313 else
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 printf "%s\n" "no" >&6; }
5316 fi
5317
5318
5319 test -n "$ac_ct_CC" && break
5320 done
5321
5322 if test "x$ac_ct_CC" = x; then
5323 CC=""
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326 yes:)
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5328 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329 ac_tool_warned=yes ;;
5330 esac
5331 CC=$ac_ct_CC
5332 fi
5333 fi
5334
5335 fi
5336 if test -z "$CC"; then
5337 if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5339 set dummy ${ac_tool_prefix}clang; ac_word=$2
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 printf %s "checking for $ac_word... " >&6; }
5342 if test ${ac_cv_prog_CC+y}
5343 then :
5344 printf %s "(cached) " >&6
5345 else case e in #(
5346 e) if test -n "$CC"; then
5347 ac_cv_prog_CC="$CC" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352 IFS=$as_save_IFS
5353 case $as_dir in #(((
5354 '') as_dir=./ ;;
5355 */) ;;
5356 *) as_dir=$as_dir/ ;;
5357 esac
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_CC="${ac_tool_prefix}clang"
5361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 fi ;;
5369 esac
5370 fi
5371 CC=$ac_cv_prog_CC
5372 if test -n "$CC"; then
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5374 printf "%s\n" "$CC" >&6; }
5375 else
5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 printf "%s\n" "no" >&6; }
5378 fi
5379
5380
5381 fi
5382 if test -z "$ac_cv_prog_CC"; then
5383 ac_ct_CC=$CC
5384 # Extract the first word of "clang", so it can be a program name with args.
5385 set dummy clang; ac_word=$2
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 printf %s "checking for $ac_word... " >&6; }
5388 if test ${ac_cv_prog_ac_ct_CC+y}
5389 then :
5390 printf %s "(cached) " >&6
5391 else case e in #(
5392 e) if test -n "$ac_ct_CC"; then
5393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 case $as_dir in #(((
5400 '') as_dir=./ ;;
5401 */) ;;
5402 *) as_dir=$as_dir/ ;;
5403 esac
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_CC="clang"
5407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi ;;
5415 esac
5416 fi
5417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5418 if test -n "$ac_ct_CC"; then
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5420 printf "%s\n" "$ac_ct_CC" >&6; }
5421 else
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 printf "%s\n" "no" >&6; }
5424 fi
5425
5426 if test "x$ac_ct_CC" = x; then
5427 CC=""
5428 else
5429 case $cross_compiling:$ac_tool_warned in
5430 yes:)
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5434 esac
5435 CC=$ac_ct_CC
5436 fi
5437 else
5438 CC="$ac_cv_prog_CC"
5439 fi
5440
5441 fi
5442
5443
5444 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5445 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5446 as_fn_error $? "no acceptable C compiler found in \$PATH
5447 See 'config.log' for more details" "$LINENO" 5; }
5448
5449 # Provide some information about the compiler.
5450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5451 set X $ac_compile
5452 ac_compiler=$2
5453 for ac_option in --version -v -V -qversion -version; do
5454 { { ac_try="$ac_compiler $ac_option >&5"
5455 case "(($ac_try" in
5456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5457 *) ac_try_echo=$ac_try;;
5458 esac
5459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5460 printf "%s\n" "$ac_try_echo"; } >&5
5461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5462 ac_status=$?
5463 if test -s conftest.err; then
5464 sed '10a\
5465 ... rest of stderr output deleted ...
5466 10q' conftest.err >conftest.er1
5467 cat conftest.er1 >&5
5468 fi
5469 rm -f conftest.er1 conftest.err
5470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471 test $ac_status = 0; }
5472 done
5473
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5475 printf %s "checking whether the compiler supports GNU C... " >&6; }
5476 if test ${ac_cv_c_compiler_gnu+y}
5477 then :
5478 printf %s "(cached) " >&6
5479 else case e in #(
5480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482
5483 int
5484 main (void)
5485 {
5486 #ifndef __GNUC__
5487 choke me
5488 #endif
5489
5490 ;
5491 return 0;
5492 }
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"
5495 then :
5496 ac_compiler_gnu=yes
5497 else case e in #(
5498 e) ac_compiler_gnu=no ;;
5499 esac
5500 fi
5501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5503 ;;
5504 esac
5505 fi
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5507 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510 if test $ac_compiler_gnu = yes; then
5511 GCC=yes
5512 else
5513 GCC=
5514 fi
5515 ac_test_CFLAGS=${CFLAGS+y}
5516 ac_save_CFLAGS=$CFLAGS
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5518 printf %s "checking whether $CC accepts -g... " >&6; }
5519 if test ${ac_cv_prog_cc_g+y}
5520 then :
5521 printf %s "(cached) " >&6
5522 else case e in #(
5523 e) ac_save_c_werror_flag=$ac_c_werror_flag
5524 ac_c_werror_flag=yes
5525 ac_cv_prog_cc_g=no
5526 CFLAGS="-g"
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529
5530 int
5531 main (void)
5532 {
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 if ac_fn_c_try_compile "$LINENO"
5539 then :
5540 ac_cv_prog_cc_g=yes
5541 else case e in #(
5542 e) CFLAGS=""
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545
5546 int
5547 main (void)
5548 {
5549
5550 ;
5551 return 0;
5552 }
5553 _ACEOF
5554 if ac_fn_c_try_compile "$LINENO"
5555 then :
5556
5557 else case e in #(
5558 e) ac_c_werror_flag=$ac_save_c_werror_flag
5559 CFLAGS="-g"
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"
5572 then :
5573 ac_cv_prog_cc_g=yes
5574 fi
5575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5576 esac
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5579 esac
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5583 esac
5584 fi
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5586 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5587 if test $ac_test_CFLAGS; then
5588 CFLAGS=$ac_save_CFLAGS
5589 elif test $ac_cv_prog_cc_g = yes; then
5590 if test "$GCC" = yes; then
5591 CFLAGS="-g -O2"
5592 else
5593 CFLAGS="-g"
5594 fi
5595 else
5596 if test "$GCC" = yes; then
5597 CFLAGS="-O2"
5598 else
5599 CFLAGS=
5600 fi
5601 fi
5602 ac_prog_cc_stdc=no
5603 if test x$ac_prog_cc_stdc = xno
5604 then :
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5606 printf %s "checking for $CC option to enable C11 features... " >&6; }
5607 if test ${ac_cv_prog_cc_c11+y}
5608 then :
5609 printf %s "(cached) " >&6
5610 else case e in #(
5611 e) ac_cv_prog_cc_c11=no
5612 ac_save_CC=$CC
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 $ac_c_conftest_c11_program
5616 _ACEOF
5617 for ac_arg in '' -std=gnu11
5618 do
5619 CC="$ac_save_CC $ac_arg"
5620 if ac_fn_c_try_compile "$LINENO"
5621 then :
5622 ac_cv_prog_cc_c11=$ac_arg
5623 fi
5624 rm -f core conftest.err conftest.$ac_objext conftest.beam
5625 test "x$ac_cv_prog_cc_c11" != "xno" && break
5626 done
5627 rm -f conftest.$ac_ext
5628 CC=$ac_save_CC ;;
5629 esac
5630 fi
5631
5632 if test "x$ac_cv_prog_cc_c11" = xno
5633 then :
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5635 printf "%s\n" "unsupported" >&6; }
5636 else case e in #(
5637 e) if test "x$ac_cv_prog_cc_c11" = x
5638 then :
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5640 printf "%s\n" "none needed" >&6; }
5641 else case e in #(
5642 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5643 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5644 CC="$CC $ac_cv_prog_cc_c11" ;;
5645 esac
5646 fi
5647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5648 ac_prog_cc_stdc=c11 ;;
5649 esac
5650 fi
5651 fi
5652 if test x$ac_prog_cc_stdc = xno
5653 then :
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5655 printf %s "checking for $CC option to enable C99 features... " >&6; }
5656 if test ${ac_cv_prog_cc_c99+y}
5657 then :
5658 printf %s "(cached) " >&6
5659 else case e in #(
5660 e) ac_cv_prog_cc_c99=no
5661 ac_save_CC=$CC
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 $ac_c_conftest_c99_program
5665 _ACEOF
5666 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5667 do
5668 CC="$ac_save_CC $ac_arg"
5669 if ac_fn_c_try_compile "$LINENO"
5670 then :
5671 ac_cv_prog_cc_c99=$ac_arg
5672 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam
5674 test "x$ac_cv_prog_cc_c99" != "xno" && break
5675 done
5676 rm -f conftest.$ac_ext
5677 CC=$ac_save_CC ;;
5678 esac
5679 fi
5680
5681 if test "x$ac_cv_prog_cc_c99" = xno
5682 then :
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5684 printf "%s\n" "unsupported" >&6; }
5685 else case e in #(
5686 e) if test "x$ac_cv_prog_cc_c99" = x
5687 then :
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5689 printf "%s\n" "none needed" >&6; }
5690 else case e in #(
5691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5692 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5693 CC="$CC $ac_cv_prog_cc_c99" ;;
5694 esac
5695 fi
5696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5697 ac_prog_cc_stdc=c99 ;;
5698 esac
5699 fi
5700 fi
5701 if test x$ac_prog_cc_stdc = xno
5702 then :
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5704 printf %s "checking for $CC option to enable C89 features... " >&6; }
5705 if test ${ac_cv_prog_cc_c89+y}
5706 then :
5707 printf %s "(cached) " >&6
5708 else case e in #(
5709 e) ac_cv_prog_cc_c89=no
5710 ac_save_CC=$CC
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 $ac_c_conftest_c89_program
5714 _ACEOF
5715 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5716 do
5717 CC="$ac_save_CC $ac_arg"
5718 if ac_fn_c_try_compile "$LINENO"
5719 then :
5720 ac_cv_prog_cc_c89=$ac_arg
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.beam
5723 test "x$ac_cv_prog_cc_c89" != "xno" && break
5724 done
5725 rm -f conftest.$ac_ext
5726 CC=$ac_save_CC ;;
5727 esac
5728 fi
5729
5730 if test "x$ac_cv_prog_cc_c89" = xno
5731 then :
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5733 printf "%s\n" "unsupported" >&6; }
5734 else case e in #(
5735 e) if test "x$ac_cv_prog_cc_c89" = x
5736 then :
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5738 printf "%s\n" "none needed" >&6; }
5739 else case e in #(
5740 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5741 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5742 CC="$CC $ac_cv_prog_cc_c89" ;;
5743 esac
5744 fi
5745 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5746 ac_prog_cc_stdc=c89 ;;
5747 esac
5748 fi
5749 fi
5750
5751 ac_ext=c
5752 ac_cpp='$CPP $CPPFLAGS'
5753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5756
5757
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5764 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5765 if test ${am_cv_prog_cc_c_o+y}
5766 then :
5767 printf %s "(cached) " >&6
5768 else case e in #(
5769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771
5772 int
5773 main (void)
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 # Make sure it works both with $CC and with simple cc.
5781 # Following AC_PROG_CC_C_O, we do the test twice because some
5782 # compilers refuse to overwrite an existing .o file with -o,
5783 # though they will create one.
5784 am_cv_prog_cc_c_o=yes
5785 for am_i in 1 2; do
5786 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5787 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5788 ac_status=$?
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } \
5791 && test -f conftest2.$ac_objext; then
5792 : OK
5793 else
5794 am_cv_prog_cc_c_o=no
5795 break
5796 fi
5797 done
5798 rm -f core conftest*
5799 unset am_i ;;
5800 esac
5801 fi
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5803 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5804 if test "$am_cv_prog_cc_c_o" != yes; then
5805 # Losing compiler, so override with the script.
5806 # FIXME: It is wrong to rewrite CC.
5807 # But if we don't then we get into trouble of one sort or another.
5808 # A longer-term fix would be to have automake use am__CC in this case,
5809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5810 CC="$am_aux_dir/compile $CC"
5811 fi
5812 ac_ext=c
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5817
5818
5819 depcc="$CC" am_compiler_list=
5820
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5822 printf %s "checking dependency style of $depcc... " >&6; }
5823 if test ${am_cv_CC_dependencies_compiler_type+y}
5824 then :
5825 printf %s "(cached) " >&6
5826 else case e in #(
5827 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5828 # We make a subdir and do the tests there. Otherwise we can end up
5829 # making bogus files that we don't know about and never remove. For
5830 # instance it was reported that on HP-UX the gcc test will end up
5831 # making a dummy file named 'D' -- because '-MD' means "put the output
5832 # in D".
5833 rm -rf conftest.dir
5834 mkdir conftest.dir
5835 # Copy depcomp to subdir because otherwise we won't find it if we're
5836 # using a relative directory.
5837 cp "$am_depcomp" conftest.dir
5838 cd conftest.dir
5839 # We will build objects and dependencies in a subdirectory because
5840 # it helps to detect inapplicable dependency modes. For instance
5841 # both Tru64's cc and ICC support -MD to output dependencies as a
5842 # side effect of compilation, but ICC will put the dependencies in
5843 # the current directory while Tru64 will put them in the object
5844 # directory.
5845 mkdir sub
5846
5847 am_cv_CC_dependencies_compiler_type=none
5848 if test "$am_compiler_list" = ""; then
5849 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5850 fi
5851 am__universal=false
5852 case " $depcc " in #(
5853 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5854 esac
5855
5856 for depmode in $am_compiler_list; do
5857 # Setup a source with many dependencies, because some compilers
5858 # like to wrap large dependency lists on column 80 (with \), and
5859 # we should not choose a depcomp mode which is confused by this.
5860 #
5861 # We need to recreate these files for each test, as the compiler may
5862 # overwrite some of them when testing with obscure command lines.
5863 # This happens at least with the AIX C compiler.
5864 : > sub/conftest.c
5865 for i in 1 2 3 4 5 6; do
5866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5867 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5868 # Solaris 10 /bin/sh.
5869 echo '/* dummy */' > sub/conftst$i.h
5870 done
5871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5872
5873 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5874 # mode. It turns out that the SunPro C++ compiler does not properly
5875 # handle '-M -o', and we need to detect this. Also, some Intel
5876 # versions had trouble with output in subdirs.
5877 am__obj=sub/conftest.${OBJEXT-o}
5878 am__minus_obj="-o $am__obj"
5879 case $depmode in
5880 gcc)
5881 # This depmode causes a compiler race in universal mode.
5882 test "$am__universal" = false || continue
5883 ;;
5884 nosideeffect)
5885 # After this tag, mechanisms are not by side-effect, so they'll
5886 # only be used when explicitly requested.
5887 if test "x$enable_dependency_tracking" = xyes; then
5888 continue
5889 else
5890 break
5891 fi
5892 ;;
5893 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5894 # This compiler won't grok '-c -o', but also, the minuso test has
5895 # not run yet. These depmodes are late enough in the game, and
5896 # so weak that their functioning should not be impacted.
5897 am__obj=conftest.${OBJEXT-o}
5898 am__minus_obj=
5899 ;;
5900 none) break ;;
5901 esac
5902 if depmode=$depmode \
5903 source=sub/conftest.c object=$am__obj \
5904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5905 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5906 >/dev/null 2>conftest.err &&
5907 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5908 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5909 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5910 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5911 # icc doesn't choke on unknown options, it will just issue warnings
5912 # or remarks (even with -Werror). So we grep stderr for any message
5913 # that says an option was ignored or not supported.
5914 # When given -MP, icc 7.0 and 7.1 complain thus:
5915 # icc: Command line warning: ignoring option '-M'; no argument required
5916 # The diagnosis changed in icc 8.0:
5917 # icc: Command line remark: option '-MP' not supported
5918 if (grep 'ignoring option' conftest.err ||
5919 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5920 am_cv_CC_dependencies_compiler_type=$depmode
5921 break
5922 fi
5923 fi
5924 done
5925
5926 cd ..
5927 rm -rf conftest.dir
5928 else
5929 am_cv_CC_dependencies_compiler_type=none
5930 fi
5931 ;;
5932 esac
5933 fi
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5935 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5936 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5937
5938 if
5939 test "x$enable_dependency_tracking" != xno \
5940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5941 am__fastdepCC_TRUE=
5942 am__fastdepCC_FALSE='#'
5943 else
5944 am__fastdepCC_TRUE='#'
5945 am__fastdepCC_FALSE=
5946 fi
5947
5948
5949 case `pwd` in
5950 *\ * | *\ *)
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5952 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5953 esac
5954
5955
5956
5957 macro_version='2.5.4'
5958 macro_revision='2.5.4'
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 ltmain=$ac_aux_dir/ltmain.sh
5974
5975 # Backslashify metacharacters that are still active within
5976 # double-quoted strings.
5977 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5978
5979 # Same as above, but do not quote variable references.
5980 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5981
5982 # Sed substitution to delay expansion of an escaped shell variable in a
5983 # double_quote_subst'ed string.
5984 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5985
5986 # Sed substitution to delay expansion of an escaped single quote.
5987 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5988
5989 # Sed substitution to avoid accidental globbing in evaled expressions
5990 no_glob_subst='s/\*/\\\*/g'
5991
5992 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5993 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5995
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5997 printf %s "checking how to print strings... " >&6; }
5998 # Test print first, because it will be a builtin if present.
5999 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6000 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6001 ECHO='print -r --'
6002 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6003 ECHO='printf %s\n'
6004 else
6005 # Use this function as a fallback that always works.
6006 func_fallback_echo ()
6007 {
6008 eval 'cat <<_LTECHO_EOF
6009 $1
6010 _LTECHO_EOF'
6011 }
6012 ECHO='func_fallback_echo'
6013 fi
6014
6015 # func_echo_all arg...
6016 # Invoke $ECHO with all args, space-separated.
6017 func_echo_all ()
6018 {
6019 $ECHO ""
6020 }
6021
6022 case $ECHO in
6023 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6024 printf "%s\n" "printf" >&6; } ;;
6025 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6026 printf "%s\n" "print -r" >&6; } ;;
6027 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6028 printf "%s\n" "cat" >&6; } ;;
6029 esac
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6045 printf %s "checking for a sed that does not truncate output... " >&6; }
6046 if test ${ac_cv_path_SED+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else case e in #(
6050 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051 for ac_i in 1 2 3 4 5 6 7; do
6052 ac_script="$ac_script$as_nl$ac_script"
6053 done
6054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055 { ac_script=; unset ac_script;}
6056 if test -z "$SED"; then
6057 ac_path_SED_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 case $as_dir in #(((
6064 '') as_dir=./ ;;
6065 */) ;;
6066 *) as_dir=$as_dir/ ;;
6067 esac
6068 for ac_prog in sed gsed
6069 do
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6072 as_fn_executable_p "$ac_path_SED" || continue
6073 # Check for GNU ac_path_SED and select it if it is found.
6074 # Check for GNU $ac_path_SED
6075 case `"$ac_path_SED" --version 2>&1` in #(
6076 *GNU*)
6077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6078 #(
6079 *)
6080 ac_count=0
6081 printf %s 0123456789 >"conftest.in"
6082 while :
6083 do
6084 cat "conftest.in" "conftest.in" >"conftest.tmp"
6085 mv "conftest.tmp" "conftest.in"
6086 cp "conftest.in" "conftest.nl"
6087 printf "%s\n" '' >> "conftest.nl"
6088 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6090 as_fn_arith $ac_count + 1 && ac_count=$as_val
6091 if test $ac_count -gt ${ac_path_SED_max-0}; then
6092 # Best one so far, save it but keep looking for a better one
6093 ac_cv_path_SED="$ac_path_SED"
6094 ac_path_SED_max=$ac_count
6095 fi
6096 # 10*(2^10) chars as input seems more than enough
6097 test $ac_count -gt 10 && break
6098 done
6099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6100 esac
6101
6102 $ac_path_SED_found && break 3
6103 done
6104 done
6105 done
6106 IFS=$as_save_IFS
6107 if test -z "$ac_cv_path_SED"; then
6108 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6109 fi
6110 else
6111 ac_cv_path_SED=$SED
6112 fi
6113 ;;
6114 esac
6115 fi
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6117 printf "%s\n" "$ac_cv_path_SED" >&6; }
6118 SED="$ac_cv_path_SED"
6119 rm -f conftest.sed
6120
6121 test -z "$SED" && SED=sed
6122 Xsed="$SED -e 1s/^X//"
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6135 printf %s "checking for grep that handles long lines and -e... " >&6; }
6136 if test ${ac_cv_path_GREP+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else case e in #(
6140 e) if test -z "$GREP"; then
6141 ac_path_GREP_found=false
6142 # Loop through the user's path and test for each of PROGNAME-LIST
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6145 do
6146 IFS=$as_save_IFS
6147 case $as_dir in #(((
6148 '') as_dir=./ ;;
6149 */) ;;
6150 *) as_dir=$as_dir/ ;;
6151 esac
6152 for ac_prog in grep ggrep
6153 do
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6156 as_fn_executable_p "$ac_path_GREP" || continue
6157 # Check for GNU ac_path_GREP and select it if it is found.
6158 # Check for GNU $ac_path_GREP
6159 case `"$ac_path_GREP" --version 2>&1` in #(
6160 *GNU*)
6161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6162 #(
6163 *)
6164 ac_count=0
6165 printf %s 0123456789 >"conftest.in"
6166 while :
6167 do
6168 cat "conftest.in" "conftest.in" >"conftest.tmp"
6169 mv "conftest.tmp" "conftest.in"
6170 cp "conftest.in" "conftest.nl"
6171 printf "%s\n" 'GREP' >> "conftest.nl"
6172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6174 as_fn_arith $ac_count + 1 && ac_count=$as_val
6175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6176 # Best one so far, save it but keep looking for a better one
6177 ac_cv_path_GREP="$ac_path_GREP"
6178 ac_path_GREP_max=$ac_count
6179 fi
6180 # 10*(2^10) chars as input seems more than enough
6181 test $ac_count -gt 10 && break
6182 done
6183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6184 esac
6185
6186 $ac_path_GREP_found && break 3
6187 done
6188 done
6189 done
6190 IFS=$as_save_IFS
6191 if test -z "$ac_cv_path_GREP"; then
6192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6193 fi
6194 else
6195 ac_cv_path_GREP=$GREP
6196 fi
6197 ;;
6198 esac
6199 fi
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6201 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6202 GREP="$ac_cv_path_GREP"
6203
6204
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6206 printf %s "checking for egrep... " >&6; }
6207 if test ${ac_cv_path_EGREP+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else case e in #(
6211 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6212 then ac_cv_path_EGREP="$GREP -E"
6213 else
6214 if test -z "$EGREP"; then
6215 ac_path_EGREP_found=false
6216 # Loop through the user's path and test for each of PROGNAME-LIST
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6219 do
6220 IFS=$as_save_IFS
6221 case $as_dir in #(((
6222 '') as_dir=./ ;;
6223 */) ;;
6224 *) as_dir=$as_dir/ ;;
6225 esac
6226 for ac_prog in egrep
6227 do
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6230 as_fn_executable_p "$ac_path_EGREP" || continue
6231 # Check for GNU ac_path_EGREP and select it if it is found.
6232 # Check for GNU $ac_path_EGREP
6233 case `"$ac_path_EGREP" --version 2>&1` in #(
6234 *GNU*)
6235 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6236 #(
6237 *)
6238 ac_count=0
6239 printf %s 0123456789 >"conftest.in"
6240 while :
6241 do
6242 cat "conftest.in" "conftest.in" >"conftest.tmp"
6243 mv "conftest.tmp" "conftest.in"
6244 cp "conftest.in" "conftest.nl"
6245 printf "%s\n" 'EGREP' >> "conftest.nl"
6246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6248 as_fn_arith $ac_count + 1 && ac_count=$as_val
6249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6250 # Best one so far, save it but keep looking for a better one
6251 ac_cv_path_EGREP="$ac_path_EGREP"
6252 ac_path_EGREP_max=$ac_count
6253 fi
6254 # 10*(2^10) chars as input seems more than enough
6255 test $ac_count -gt 10 && break
6256 done
6257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6258 esac
6259
6260 $ac_path_EGREP_found && break 3
6261 done
6262 done
6263 done
6264 IFS=$as_save_IFS
6265 if test -z "$ac_cv_path_EGREP"; then
6266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6267 fi
6268 else
6269 ac_cv_path_EGREP=$EGREP
6270 fi
6271
6272 fi ;;
6273 esac
6274 fi
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6276 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6277 EGREP="$ac_cv_path_EGREP"
6278
6279 EGREP_TRADITIONAL=$EGREP
6280 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6281
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6283 printf %s "checking for fgrep... " >&6; }
6284 if test ${ac_cv_path_FGREP+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else case e in #(
6288 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6289 then ac_cv_path_FGREP="$GREP -F"
6290 else
6291 if test -z "$FGREP"; then
6292 ac_path_FGREP_found=false
6293 # Loop through the user's path and test for each of PROGNAME-LIST
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6296 do
6297 IFS=$as_save_IFS
6298 case $as_dir in #(((
6299 '') as_dir=./ ;;
6300 */) ;;
6301 *) as_dir=$as_dir/ ;;
6302 esac
6303 for ac_prog in fgrep
6304 do
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6307 as_fn_executable_p "$ac_path_FGREP" || continue
6308 # Check for GNU ac_path_FGREP and select it if it is found.
6309 # Check for GNU $ac_path_FGREP
6310 case `"$ac_path_FGREP" --version 2>&1` in #(
6311 *GNU*)
6312 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6313 #(
6314 *)
6315 ac_count=0
6316 printf %s 0123456789 >"conftest.in"
6317 while :
6318 do
6319 cat "conftest.in" "conftest.in" >"conftest.tmp"
6320 mv "conftest.tmp" "conftest.in"
6321 cp "conftest.in" "conftest.nl"
6322 printf "%s\n" 'FGREP' >> "conftest.nl"
6323 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6325 as_fn_arith $ac_count + 1 && ac_count=$as_val
6326 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6327 # Best one so far, save it but keep looking for a better one
6328 ac_cv_path_FGREP="$ac_path_FGREP"
6329 ac_path_FGREP_max=$ac_count
6330 fi
6331 # 10*(2^10) chars as input seems more than enough
6332 test $ac_count -gt 10 && break
6333 done
6334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6335 esac
6336
6337 $ac_path_FGREP_found && break 3
6338 done
6339 done
6340 done
6341 IFS=$as_save_IFS
6342 if test -z "$ac_cv_path_FGREP"; then
6343 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6344 fi
6345 else
6346 ac_cv_path_FGREP=$FGREP
6347 fi
6348
6349 fi ;;
6350 esac
6351 fi
6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6353 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6354 FGREP="$ac_cv_path_FGREP"
6355
6356
6357 test -z "$GREP" && GREP=grep
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 # Check whether --with-gnu-ld was given.
6378 if test ${with_gnu_ld+y}
6379 then :
6380 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6381 else case e in #(
6382 e) with_gnu_ld=no ;;
6383 esac
6384 fi
6385
6386 ac_prog=ld
6387 if test yes = "$GCC"; then
6388 # Check if gcc -print-prog-name=ld gives a path.
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6390 printf %s "checking for ld used by $CC... " >&6; }
6391 case $host in
6392 *-*-mingw* | *-*-windows*)
6393 # gcc leaves a trailing carriage return, which upsets mingw
6394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6395 *)
6396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6397 esac
6398 case $ac_prog in
6399 # Accept absolute paths.
6400 [\\/]* | ?:[\\/]*)
6401 re_direlt='/[^/][^/]*/\.\./'
6402 # Canonicalize the pathname of ld
6403 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6404 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6405 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6406 done
6407 test -z "$LD" && LD=$ac_prog
6408 ;;
6409 "")
6410 # If it fails, then pretend we aren't using GCC.
6411 ac_prog=ld
6412 ;;
6413 *)
6414 # If it is relative, then search for the first ld in PATH.
6415 with_gnu_ld=unknown
6416 ;;
6417 esac
6418 elif test yes = "$with_gnu_ld"; then
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6420 printf %s "checking for GNU ld... " >&6; }
6421 else
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6423 printf %s "checking for non-GNU ld... " >&6; }
6424 fi
6425 if test ${lt_cv_path_LD+y}
6426 then :
6427 printf %s "(cached) " >&6
6428 else case e in #(
6429 e) if test -z "$LD"; then
6430 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6431 for ac_dir in $PATH; do
6432 IFS=$lt_save_ifs
6433 test -z "$ac_dir" && ac_dir=.
6434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6435 lt_cv_path_LD=$ac_dir/$ac_prog
6436 # Check to see if the program is GNU ld. I'd rather use --version,
6437 # but apparently some variants of GNU ld only accept -v.
6438 # Break only if it was the GNU/non-GNU ld that we prefer.
6439 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6440 *GNU* | *'with BFD'*)
6441 test no != "$with_gnu_ld" && break
6442 ;;
6443 *)
6444 test yes != "$with_gnu_ld" && break
6445 ;;
6446 esac
6447 fi
6448 done
6449 IFS=$lt_save_ifs
6450 else
6451 lt_cv_path_LD=$LD # Let the user override the test with a path.
6452 fi ;;
6453 esac
6454 fi
6455
6456 LD=$lt_cv_path_LD
6457 if test -n "$LD"; then
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6459 printf "%s\n" "$LD" >&6; }
6460 else
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 printf "%s\n" "no" >&6; }
6463 fi
6464 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6466 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6467 if test ${lt_cv_prog_gnu_ld+y}
6468 then :
6469 printf %s "(cached) " >&6
6470 else case e in #(
6471 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6472 case `$LD -v 2>&1 </dev/null` in
6473 *GNU* | *'with BFD'*)
6474 lt_cv_prog_gnu_ld=yes
6475 ;;
6476 *)
6477 lt_cv_prog_gnu_ld=no
6478 ;;
6479 esac ;;
6480 esac
6481 fi
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6483 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6484 with_gnu_ld=$lt_cv_prog_gnu_ld
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6495 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6496 if test ${lt_cv_path_NM+y}
6497 then :
6498 printf %s "(cached) " >&6
6499 else case e in #(
6500 e) if test -n "$NM"; then
6501 # Let the user override the test.
6502 lt_cv_path_NM=$NM
6503 else
6504 lt_nm_to_check=${ac_tool_prefix}nm
6505 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6506 lt_nm_to_check="$lt_nm_to_check nm"
6507 fi
6508 for lt_tmp_nm in $lt_nm_to_check; do
6509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6510 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6511 IFS=$lt_save_ifs
6512 test -z "$ac_dir" && ac_dir=.
6513 tmp_nm=$ac_dir/$lt_tmp_nm
6514 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6515 # Check to see if the nm accepts a BSD-compat flag.
6516 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6517 # nm: unknown option "B" ignored
6518 # Tru64's nm complains that /dev/null is an invalid object file
6519 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6520 case $build_os in
6521 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6522 *) lt_bad_file=/dev/null ;;
6523 esac
6524 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6525 *$lt_bad_file* | *'Invalid file or object type'*)
6526 lt_cv_path_NM="$tmp_nm -B"
6527 break 2
6528 ;;
6529 *)
6530 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6531 */dev/null*)
6532 lt_cv_path_NM="$tmp_nm -p"
6533 break 2
6534 ;;
6535 *)
6536 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6537 continue # so that we can try to find one that supports BSD flags
6538 ;;
6539 esac
6540 ;;
6541 esac
6542 fi
6543 done
6544 IFS=$lt_save_ifs
6545 done
6546 : ${lt_cv_path_NM=no}
6547 fi ;;
6548 esac
6549 fi
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6551 printf "%s\n" "$lt_cv_path_NM" >&6; }
6552 if test no != "$lt_cv_path_NM"; then
6553 NM=$lt_cv_path_NM
6554 else
6555 # Didn't find any BSD compatible name lister, look for dumpbin.
6556 if test -n "$DUMPBIN"; then :
6557 # Let the user override the test.
6558 else
6559 if test -n "$ac_tool_prefix"; then
6560 for ac_prog in dumpbin "link -dump"
6561 do
6562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 printf %s "checking for $ac_word... " >&6; }
6566 if test ${ac_cv_prog_DUMPBIN+y}
6567 then :
6568 printf %s "(cached) " >&6
6569 else case e in #(
6570 e) if test -n "$DUMPBIN"; then
6571 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 case $as_dir in #(((
6578 '') as_dir=./ ;;
6579 */) ;;
6580 *) as_dir=$as_dir/ ;;
6581 esac
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6584 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6586 break 2
6587 fi
6588 done
6589 done
6590 IFS=$as_save_IFS
6591
6592 fi ;;
6593 esac
6594 fi
6595 DUMPBIN=$ac_cv_prog_DUMPBIN
6596 if test -n "$DUMPBIN"; then
6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6598 printf "%s\n" "$DUMPBIN" >&6; }
6599 else
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 printf "%s\n" "no" >&6; }
6602 fi
6603
6604
6605 test -n "$DUMPBIN" && break
6606 done
6607 fi
6608 if test -z "$DUMPBIN"; then
6609 ac_ct_DUMPBIN=$DUMPBIN
6610 for ac_prog in dumpbin "link -dump"
6611 do
6612 # Extract the first word of "$ac_prog", so it can be a program name with args.
6613 set dummy $ac_prog; ac_word=$2
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 printf %s "checking for $ac_word... " >&6; }
6616 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else case e in #(
6620 e) if test -n "$ac_ct_DUMPBIN"; then
6621 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626 IFS=$as_save_IFS
6627 case $as_dir in #(((
6628 '') as_dir=./ ;;
6629 */) ;;
6630 *) as_dir=$as_dir/ ;;
6631 esac
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6634 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6636 break 2
6637 fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642 fi ;;
6643 esac
6644 fi
6645 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6646 if test -n "$ac_ct_DUMPBIN"; then
6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6648 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6649 else
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651 printf "%s\n" "no" >&6; }
6652 fi
6653
6654
6655 test -n "$ac_ct_DUMPBIN" && break
6656 done
6657
6658 if test "x$ac_ct_DUMPBIN" = x; then
6659 DUMPBIN=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667 DUMPBIN=$ac_ct_DUMPBIN
6668 fi
6669 fi
6670
6671 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6672 *COFF*)
6673 DUMPBIN="$DUMPBIN -symbols -headers"
6674 ;;
6675 *)
6676 DUMPBIN=:
6677 ;;
6678 esac
6679 fi
6680
6681 if test : != "$DUMPBIN"; then
6682 NM=$DUMPBIN
6683 fi
6684 fi
6685 test -z "$NM" && NM=nm
6686
6687
6688
6689
6690
6691
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6693 printf %s "checking the name lister ($NM) interface... " >&6; }
6694 if test ${lt_cv_nm_interface+y}
6695 then :
6696 printf %s "(cached) " >&6
6697 else case e in #(
6698 e) lt_cv_nm_interface="BSD nm"
6699 echo "int some_variable = 0;" > conftest.$ac_ext
6700 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6701 (eval "$ac_compile" 2>conftest.err)
6702 cat conftest.err >&5
6703 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6704 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6705 cat conftest.err >&5
6706 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6707 cat conftest.out >&5
6708 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6709 lt_cv_nm_interface="MS dumpbin"
6710 fi
6711 rm -f conftest* ;;
6712 esac
6713 fi
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6715 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6716
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6718 printf %s "checking whether ln -s works... " >&6; }
6719 LN_S=$as_ln_s
6720 if test "$LN_S" = "ln -s"; then
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6722 printf "%s\n" "yes" >&6; }
6723 else
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6725 printf "%s\n" "no, using $LN_S" >&6; }
6726 fi
6727
6728 # find the maximum length of command line arguments
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6730 printf %s "checking the maximum length of command line arguments... " >&6; }
6731 if test ${lt_cv_sys_max_cmd_len+y}
6732 then :
6733 printf %s "(cached) " >&6
6734 else case e in #(
6735 e) i=0
6736 teststring=ABCD
6737
6738 case $build_os in
6739 msdosdjgpp*)
6740 # On DJGPP, this test can blow up pretty badly due to problems in libc
6741 # (any single argument exceeding 2000 bytes causes a buffer overrun
6742 # during glob expansion). Even if it were fixed, the result of this
6743 # check would be larger than it should be.
6744 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6745 ;;
6746
6747 gnu* | ironclad*)
6748 # Under GNU Hurd and Ironclad, this test is not required because there
6749 # is no limit to the length of command line arguments.
6750 # Libtool will interpret -1 as no limit whatsoever
6751 lt_cv_sys_max_cmd_len=-1;
6752 ;;
6753
6754 cygwin* | mingw* | windows* | cegcc*)
6755 # On Win9x/ME, this test blows up -- it succeeds, but takes
6756 # about 5 minutes as the teststring grows exponentially.
6757 # Worse, since 9x/ME are not pre-emptively multitasking,
6758 # you end up with a "frozen" computer, even though with patience
6759 # the test eventually succeeds (with a max line length of 256k).
6760 # Instead, let's just punt: use the minimum linelength reported by
6761 # all of the supported platforms: 8192 (on NT/2K/XP).
6762 lt_cv_sys_max_cmd_len=8192;
6763 ;;
6764
6765 mint*)
6766 # On MiNT this can take a long time and run out of memory.
6767 lt_cv_sys_max_cmd_len=8192;
6768 ;;
6769
6770 amigaos*)
6771 # On AmigaOS with pdksh, this test takes hours, literally.
6772 # So we just punt and use a minimum line length of 8192.
6773 lt_cv_sys_max_cmd_len=8192;
6774 ;;
6775
6776 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6777 # This has been around since 386BSD, at least. Likely further.
6778 if test -x /sbin/sysctl; then
6779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6780 elif test -x /usr/sbin/sysctl; then
6781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6782 else
6783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6784 fi
6785 # And add a safety zone
6786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6788 ;;
6789
6790 interix*)
6791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6792 lt_cv_sys_max_cmd_len=196608
6793 ;;
6794
6795 os2*)
6796 # The test takes a long time on OS/2.
6797 lt_cv_sys_max_cmd_len=8192
6798 ;;
6799
6800 osf*)
6801 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6802 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6803 # nice to cause kernel panics so lets avoid the loop below.
6804 # First set a reasonable default.
6805 lt_cv_sys_max_cmd_len=16384
6806 #
6807 if test -x /sbin/sysconfig; then
6808 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6809 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6810 esac
6811 fi
6812 ;;
6813 sco3.2v5*)
6814 lt_cv_sys_max_cmd_len=102400
6815 ;;
6816 sysv5* | sco5v6* | sysv4.2uw2*)
6817 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6818 if test -n "$kargmax"; then
6819 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6820 else
6821 lt_cv_sys_max_cmd_len=32768
6822 fi
6823 ;;
6824 *)
6825 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6826 if test -n "$lt_cv_sys_max_cmd_len" && \
6827 test undefined != "$lt_cv_sys_max_cmd_len"; then
6828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6830 else
6831 # Make teststring a little bigger before we do anything with it.
6832 # a 1K string should be a reasonable start.
6833 for i in 1 2 3 4 5 6 7 8; do
6834 teststring=$teststring$teststring
6835 done
6836 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6837 # If test is not a shell built-in, we'll probably end up computing a
6838 # maximum length that is only half of the actual maximum length, but
6839 # we can't tell.
6840 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6841 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6842 test 17 != "$i" # 1/2 MB should be enough
6843 do
6844 i=`expr $i + 1`
6845 teststring=$teststring$teststring
6846 done
6847 # Only check the string length outside the loop.
6848 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6849 teststring=
6850 # Add a significant safety factor because C++ compilers can tack on
6851 # massive amounts of additional arguments before passing them to the
6852 # linker. It appears as though 1/2 is a usable value.
6853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6854 fi
6855 ;;
6856 esac
6857 ;;
6858 esac
6859 fi
6860
6861 if test -n "$lt_cv_sys_max_cmd_len"; then
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6863 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6864 else
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6866 printf "%s\n" "none" >&6; }
6867 fi
6868 max_cmd_len=$lt_cv_sys_max_cmd_len
6869
6870
6871
6872
6873
6874
6875 : ${CP="cp -f"}
6876 : ${MV="mv -f"}
6877 : ${RM="rm -f"}
6878
6879 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6880 lt_unset=unset
6881 else
6882 lt_unset=false
6883 fi
6884
6885
6886
6887
6888
6889 # test EBCDIC or ASCII
6890 case `echo X|tr X '\101'` in
6891 A) # ASCII based system
6892 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6893 lt_SP2NL='tr \040 \012'
6894 lt_NL2SP='tr \015\012 \040\040'
6895 ;;
6896 *) # EBCDIC based system
6897 lt_SP2NL='tr \100 \n'
6898 lt_NL2SP='tr \r\n \100\100'
6899 ;;
6900 esac
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6911 printf %s "checking how to convert $build file names to $host format... " >&6; }
6912 if test ${lt_cv_to_host_file_cmd+y}
6913 then :
6914 printf %s "(cached) " >&6
6915 else case e in #(
6916 e) case $host in
6917 *-*-mingw* )
6918 case $build in
6919 *-*-mingw* | *-*-windows* ) # actually msys
6920 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6921 ;;
6922 *-*-cygwin* )
6923 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6924 ;;
6925 * ) # otherwise, assume *nix
6926 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6927 ;;
6928 esac
6929 ;;
6930 *-*-cygwin* )
6931 case $build in
6932 *-*-mingw* | *-*-windows* ) # actually msys
6933 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6934 ;;
6935 *-*-cygwin* )
6936 lt_cv_to_host_file_cmd=func_convert_file_noop
6937 ;;
6938 * ) # otherwise, assume *nix
6939 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6940 ;;
6941 esac
6942 ;;
6943 * ) # unhandled hosts (and "normal" native builds)
6944 lt_cv_to_host_file_cmd=func_convert_file_noop
6945 ;;
6946 esac
6947 ;;
6948 esac
6949 fi
6950
6951 to_host_file_cmd=$lt_cv_to_host_file_cmd
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6953 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6954
6955
6956
6957
6958
6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6960 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6961 if test ${lt_cv_to_tool_file_cmd+y}
6962 then :
6963 printf %s "(cached) " >&6
6964 else case e in #(
6965 e) #assume ordinary cross tools, or native build.
6966 lt_cv_to_tool_file_cmd=func_convert_file_noop
6967 case $host in
6968 *-*-mingw* | *-*-windows* )
6969 case $build in
6970 *-*-mingw* | *-*-windows* ) # actually msys
6971 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6972 ;;
6973 esac
6974 ;;
6975 esac
6976 ;;
6977 esac
6978 fi
6979
6980 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6982 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6983
6984
6985
6986
6987
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6989 printf %s "checking for $LD option to reload object files... " >&6; }
6990 if test ${lt_cv_ld_reload_flag+y}
6991 then :
6992 printf %s "(cached) " >&6
6993 else case e in #(
6994 e) lt_cv_ld_reload_flag='-r' ;;
6995 esac
6996 fi
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6998 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6999 reload_flag=$lt_cv_ld_reload_flag
7000 case $reload_flag in
7001 "" | " "*) ;;
7002 *) reload_flag=" $reload_flag" ;;
7003 esac
7004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7005 case $host_os in
7006 cygwin* | mingw* | windows* | pw32* | cegcc*)
7007 if test yes != "$GCC"; then
7008 reload_cmds=false
7009 fi
7010 ;;
7011 darwin*)
7012 if test yes = "$GCC"; then
7013 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7014 else
7015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7016 fi
7017 ;;
7018 esac
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028 # Extract the first word of "file", so it can be a program name with args.
7029 set dummy file; ac_word=$2
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 printf %s "checking for $ac_word... " >&6; }
7032 if test ${ac_cv_prog_FILECMD+y}
7033 then :
7034 printf %s "(cached) " >&6
7035 else case e in #(
7036 e) if test -n "$FILECMD"; then
7037 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 case $as_dir in #(((
7044 '') as_dir=./ ;;
7045 */) ;;
7046 *) as_dir=$as_dir/ ;;
7047 esac
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_FILECMD="file"
7051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7052 break 2
7053 fi
7054 done
7055 done
7056 IFS=$as_save_IFS
7057
7058 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7059 fi ;;
7060 esac
7061 fi
7062 FILECMD=$ac_cv_prog_FILECMD
7063 if test -n "$FILECMD"; then
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7065 printf "%s\n" "$FILECMD" >&6; }
7066 else
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 printf "%s\n" "no" >&6; }
7069 fi
7070
7071
7072
7073
7074
7075
7076
7077
7078 if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7080 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 printf %s "checking for $ac_word... " >&6; }
7083 if test ${ac_cv_prog_OBJDUMP+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else case e in #(
7087 e) if test -n "$OBJDUMP"; then
7088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093 IFS=$as_save_IFS
7094 case $as_dir in #(((
7095 '') as_dir=./ ;;
7096 */) ;;
7097 *) as_dir=$as_dir/ ;;
7098 esac
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109 fi ;;
7110 esac
7111 fi
7112 OBJDUMP=$ac_cv_prog_OBJDUMP
7113 if test -n "$OBJDUMP"; then
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7115 printf "%s\n" "$OBJDUMP" >&6; }
7116 else
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 printf "%s\n" "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_OBJDUMP"; then
7124 ac_ct_OBJDUMP=$OBJDUMP
7125 # Extract the first word of "objdump", so it can be a program name with args.
7126 set dummy objdump; ac_word=$2
7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 printf %s "checking for $ac_word... " >&6; }
7129 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7130 then :
7131 printf %s "(cached) " >&6
7132 else case e in #(
7133 e) if test -n "$ac_ct_OBJDUMP"; then
7134 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139 IFS=$as_save_IFS
7140 case $as_dir in #(((
7141 '') as_dir=./ ;;
7142 */) ;;
7143 *) as_dir=$as_dir/ ;;
7144 esac
7145 for ac_exec_ext in '' $ac_executable_extensions; do
7146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7147 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151 done
7152 done
7153 IFS=$as_save_IFS
7154
7155 fi ;;
7156 esac
7157 fi
7158 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7159 if test -n "$ac_ct_OBJDUMP"; then
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7161 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7162 else
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 printf "%s\n" "no" >&6; }
7165 fi
7166
7167 if test "x$ac_ct_OBJDUMP" = x; then
7168 OBJDUMP="false"
7169 else
7170 case $cross_compiling:$ac_tool_warned in
7171 yes:)
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174 ac_tool_warned=yes ;;
7175 esac
7176 OBJDUMP=$ac_ct_OBJDUMP
7177 fi
7178 else
7179 OBJDUMP="$ac_cv_prog_OBJDUMP"
7180 fi
7181
7182 test -z "$OBJDUMP" && OBJDUMP=objdump
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7193 printf %s "checking how to recognize dependent libraries... " >&6; }
7194 if test ${lt_cv_deplibs_check_method+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else case e in #(
7198 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7199 lt_cv_file_magic_test_file=
7200 lt_cv_deplibs_check_method='unknown'
7201 # Need to set the preceding variable on all platforms that support
7202 # interlibrary dependencies.
7203 # 'none' -- dependencies not supported.
7204 # 'unknown' -- same as none, but documents that we really don't know.
7205 # 'pass_all' -- all dependencies passed with no checks.
7206 # 'file_magic [[regex]]' -- check by looking for files in library path
7207 # that responds to the $file_magic_cmd with a given extended regex.
7208 # If you have 'file' or equivalent on your system and you're not sure
7209 # whether 'pass_all' will *always* work, you probably want this one.
7210
7211 case $host_os in
7212 aix[4-9]*)
7213 lt_cv_deplibs_check_method=pass_all
7214 ;;
7215
7216 beos*)
7217 lt_cv_deplibs_check_method=pass_all
7218 ;;
7219
7220 bsdi[45]*)
7221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7222 lt_cv_file_magic_cmd='$FILECMD -L'
7223 lt_cv_file_magic_test_file=/shlib/libc.so
7224 ;;
7225
7226 cygwin*)
7227 # func_win32_libid is a shell function defined in ltmain.sh
7228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7229 lt_cv_file_magic_cmd='func_win32_libid'
7230 ;;
7231
7232 mingw* | windows* | pw32*)
7233 # Base MSYS/MinGW do not provide the 'file' command needed by
7234 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7235 # unless we find 'file', for example because we are cross-compiling.
7236 if ( file / ) >/dev/null 2>&1; then
7237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7238 lt_cv_file_magic_cmd='func_win32_libid'
7239 else
7240 # Keep this pattern in sync with the one in func_win32_libid.
7241 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7242 lt_cv_file_magic_cmd='$OBJDUMP -f'
7243 fi
7244 ;;
7245
7246 cegcc*)
7247 # use the weaker test based on 'objdump'. See mingw*.
7248 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7249 lt_cv_file_magic_cmd='$OBJDUMP -f'
7250 ;;
7251
7252 darwin* | rhapsody*)
7253 lt_cv_deplibs_check_method=pass_all
7254 ;;
7255
7256 freebsd* | dragonfly* | midnightbsd*)
7257 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7258 case $host_cpu in
7259 i*86 )
7260 # Not sure whether the presence of OpenBSD here was a mistake.
7261 # Let's accept both of them until this is cleared up.
7262 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7263 lt_cv_file_magic_cmd=$FILECMD
7264 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7265 ;;
7266 esac
7267 else
7268 lt_cv_deplibs_check_method=pass_all
7269 fi
7270 ;;
7271
7272 haiku*)
7273 lt_cv_deplibs_check_method=pass_all
7274 ;;
7275
7276 hpux10.20* | hpux11*)
7277 lt_cv_file_magic_cmd=$FILECMD
7278 case $host_cpu in
7279 ia64*)
7280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7281 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7282 ;;
7283 hppa*64*)
7284 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]'
7285 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7286 ;;
7287 *)
7288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7289 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7290 ;;
7291 esac
7292 ;;
7293
7294 interix[3-9]*)
7295 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7297 ;;
7298
7299 irix5* | irix6* | nonstopux*)
7300 case $LD in
7301 *-32|*"-32 ") libmagic=32-bit;;
7302 *-n32|*"-n32 ") libmagic=N32;;
7303 *-64|*"-64 ") libmagic=64-bit;;
7304 *) libmagic=never-match;;
7305 esac
7306 lt_cv_deplibs_check_method=pass_all
7307 ;;
7308
7309 # This must be glibc/ELF.
7310 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7311 lt_cv_deplibs_check_method=pass_all
7312 ;;
7313
7314 *-mlibc)
7315 lt_cv_deplibs_check_method=pass_all
7316 ;;
7317
7318 netbsd* | netbsdelf*-gnu)
7319 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7321 else
7322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7323 fi
7324 ;;
7325
7326 newos6*)
7327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7328 lt_cv_file_magic_cmd=$FILECMD
7329 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7330 ;;
7331
7332 *nto* | *qnx*)
7333 lt_cv_deplibs_check_method=pass_all
7334 ;;
7335
7336 openbsd*)
7337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7339 else
7340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7341 fi
7342 ;;
7343
7344 osf3* | osf4* | osf5*)
7345 lt_cv_deplibs_check_method=pass_all
7346 ;;
7347
7348 rdos*)
7349 lt_cv_deplibs_check_method=pass_all
7350 ;;
7351
7352 serenity*)
7353 lt_cv_deplibs_check_method=pass_all
7354 ;;
7355
7356 solaris*)
7357 lt_cv_deplibs_check_method=pass_all
7358 ;;
7359
7360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7361 lt_cv_deplibs_check_method=pass_all
7362 ;;
7363
7364 sysv4 | sysv4.3*)
7365 case $host_vendor in
7366 motorola)
7367 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]'
7368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7369 ;;
7370 ncr)
7371 lt_cv_deplibs_check_method=pass_all
7372 ;;
7373 sequent)
7374 lt_cv_file_magic_cmd='/bin/file'
7375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7376 ;;
7377 sni)
7378 lt_cv_file_magic_cmd='/bin/file'
7379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7380 lt_cv_file_magic_test_file=/lib/libc.so
7381 ;;
7382 siemens)
7383 lt_cv_deplibs_check_method=pass_all
7384 ;;
7385 pc)
7386 lt_cv_deplibs_check_method=pass_all
7387 ;;
7388 esac
7389 ;;
7390
7391 tpf*)
7392 lt_cv_deplibs_check_method=pass_all
7393 ;;
7394 os2*)
7395 lt_cv_deplibs_check_method=pass_all
7396 ;;
7397 esac
7398 ;;
7399 esac
7400 fi
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7402 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7403
7404 file_magic_glob=
7405 want_nocaseglob=no
7406 if test "$build" = "$host"; then
7407 case $host_os in
7408 mingw* | windows* | pw32*)
7409 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7410 want_nocaseglob=yes
7411 else
7412 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7413 fi
7414 ;;
7415 esac
7416 fi
7417
7418 file_magic_cmd=$lt_cv_file_magic_cmd
7419 deplibs_check_method=$lt_cv_deplibs_check_method
7420 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443 if test -n "$ac_tool_prefix"; then
7444 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7445 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447 printf %s "checking for $ac_word... " >&6; }
7448 if test ${ac_cv_prog_DLLTOOL+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else case e in #(
7452 e) if test -n "$DLLTOOL"; then
7453 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458 IFS=$as_save_IFS
7459 case $as_dir in #(((
7460 '') as_dir=./ ;;
7461 */) ;;
7462 *) as_dir=$as_dir/ ;;
7463 esac
7464 for ac_exec_ext in '' $ac_executable_extensions; do
7465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7466 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470 done
7471 done
7472 IFS=$as_save_IFS
7473
7474 fi ;;
7475 esac
7476 fi
7477 DLLTOOL=$ac_cv_prog_DLLTOOL
7478 if test -n "$DLLTOOL"; then
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7480 printf "%s\n" "$DLLTOOL" >&6; }
7481 else
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 printf "%s\n" "no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_DLLTOOL"; then
7489 ac_ct_DLLTOOL=$DLLTOOL
7490 # Extract the first word of "dlltool", so it can be a program name with args.
7491 set dummy dlltool; ac_word=$2
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 printf %s "checking for $ac_word... " >&6; }
7494 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7495 then :
7496 printf %s "(cached) " >&6
7497 else case e in #(
7498 e) if test -n "$ac_ct_DLLTOOL"; then
7499 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 case $as_dir in #(((
7506 '') as_dir=./ ;;
7507 */) ;;
7508 *) as_dir=$as_dir/ ;;
7509 esac
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi ;;
7521 esac
7522 fi
7523 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7524 if test -n "$ac_ct_DLLTOOL"; then
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7526 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7527 else
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 printf "%s\n" "no" >&6; }
7530 fi
7531
7532 if test "x$ac_ct_DLLTOOL" = x; then
7533 DLLTOOL="false"
7534 else
7535 case $cross_compiling:$ac_tool_warned in
7536 yes:)
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7539 ac_tool_warned=yes ;;
7540 esac
7541 DLLTOOL=$ac_ct_DLLTOOL
7542 fi
7543 else
7544 DLLTOOL="$ac_cv_prog_DLLTOOL"
7545 fi
7546
7547 test -z "$DLLTOOL" && DLLTOOL=dlltool
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7559 printf %s "checking how to associate runtime and link libraries... " >&6; }
7560 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else case e in #(
7564 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7565
7566 case $host_os in
7567 cygwin* | mingw* | windows* | pw32* | cegcc*)
7568 # two different shell functions defined in ltmain.sh;
7569 # decide which one to use based on capabilities of $DLLTOOL
7570 case `$DLLTOOL --help 2>&1` in
7571 *--identify-strict*)
7572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7573 ;;
7574 *)
7575 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7576 ;;
7577 esac
7578 ;;
7579 *)
7580 # fallback: assume linklib IS sharedlib
7581 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7582 ;;
7583 esac
7584 ;;
7585 esac
7586 fi
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7588 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7589 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7590 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7591
7592
7593
7594
7595
7596
7597
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 printf %s "checking for $ac_word... " >&6; }
7603 if test ${ac_cv_prog_RANLIB+y}
7604 then :
7605 printf %s "(cached) " >&6
7606 else case e in #(
7607 e) if test -n "$RANLIB"; then
7608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7609 else
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 for as_dir in $PATH
7612 do
7613 IFS=$as_save_IFS
7614 case $as_dir in #(((
7615 '') as_dir=./ ;;
7616 */) ;;
7617 *) as_dir=$as_dir/ ;;
7618 esac
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi ;;
7630 esac
7631 fi
7632 RANLIB=$ac_cv_prog_RANLIB
7633 if test -n "$RANLIB"; then
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7635 printf "%s\n" "$RANLIB" >&6; }
7636 else
7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 printf "%s\n" "no" >&6; }
7639 fi
7640
7641
7642 fi
7643 if test -z "$ac_cv_prog_RANLIB"; then
7644 ac_ct_RANLIB=$RANLIB
7645 # Extract the first word of "ranlib", so it can be a program name with args.
7646 set dummy ranlib; ac_word=$2
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 printf %s "checking for $ac_word... " >&6; }
7649 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else case e in #(
7653 e) if test -n "$ac_ct_RANLIB"; then
7654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 case $as_dir in #(((
7661 '') as_dir=./ ;;
7662 */) ;;
7663 *) as_dir=$as_dir/ ;;
7664 esac
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_RANLIB="ranlib"
7668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7669 break 2
7670 fi
7671 done
7672 done
7673 IFS=$as_save_IFS
7674
7675 fi ;;
7676 esac
7677 fi
7678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7679 if test -n "$ac_ct_RANLIB"; then
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7681 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7682 else
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 printf "%s\n" "no" >&6; }
7685 fi
7686
7687 if test "x$ac_ct_RANLIB" = x; then
7688 RANLIB=":"
7689 else
7690 case $cross_compiling:$ac_tool_warned in
7691 yes:)
7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7694 ac_tool_warned=yes ;;
7695 esac
7696 RANLIB=$ac_ct_RANLIB
7697 fi
7698 else
7699 RANLIB="$ac_cv_prog_RANLIB"
7700 fi
7701
7702 if test -n "$ac_tool_prefix"; then
7703 for ac_prog in ar
7704 do
7705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 printf %s "checking for $ac_word... " >&6; }
7709 if test ${ac_cv_prog_AR+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else case e in #(
7713 e) if test -n "$AR"; then
7714 ac_cv_prog_AR="$AR" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 case $as_dir in #(((
7721 '') as_dir=./ ;;
7722 */) ;;
7723 *) as_dir=$as_dir/ ;;
7724 esac
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi ;;
7736 esac
7737 fi
7738 AR=$ac_cv_prog_AR
7739 if test -n "$AR"; then
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7741 printf "%s\n" "$AR" >&6; }
7742 else
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746
7747
7748 test -n "$AR" && break
7749 done
7750 fi
7751 if test -z "$AR"; then
7752 ac_ct_AR=$AR
7753 for ac_prog in ar
7754 do
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756 set dummy $ac_prog; ac_word=$2
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 printf %s "checking for $ac_word... " >&6; }
7759 if test ${ac_cv_prog_ac_ct_AR+y}
7760 then :
7761 printf %s "(cached) " >&6
7762 else case e in #(
7763 e) if test -n "$ac_ct_AR"; then
7764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7765 else
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 case $as_dir in #(((
7771 '') as_dir=./ ;;
7772 */) ;;
7773 *) as_dir=$as_dir/ ;;
7774 esac
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_ac_ct_AR="$ac_prog"
7778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7779 break 2
7780 fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi ;;
7786 esac
7787 fi
7788 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7789 if test -n "$ac_ct_AR"; then
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7791 printf "%s\n" "$ac_ct_AR" >&6; }
7792 else
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 printf "%s\n" "no" >&6; }
7795 fi
7796
7797
7798 test -n "$ac_ct_AR" && break
7799 done
7800
7801 if test "x$ac_ct_AR" = x; then
7802 AR="false"
7803 else
7804 case $cross_compiling:$ac_tool_warned in
7805 yes:)
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808 ac_tool_warned=yes ;;
7809 esac
7810 AR=$ac_ct_AR
7811 fi
7812 fi
7813
7814 : ${AR=ar}
7815
7816
7817
7818
7819
7820
7821 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7822 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7823 # higher priority because that's what people were doing historically (setting
7824 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7825 # variable obsoleted/removed.
7826
7827 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7828 lt_ar_flags=$AR_FLAGS
7829
7830
7831
7832
7833
7834
7835 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7836 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7837
7838
7839
7840
7841
7842
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7844 printf %s "checking for archiver @FILE support... " >&6; }
7845 if test ${lt_cv_ar_at_file+y}
7846 then :
7847 printf %s "(cached) " >&6
7848 else case e in #(
7849 e) lt_cv_ar_at_file=no
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852
7853 int
7854 main (void)
7855 {
7856
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_compile "$LINENO"
7862 then :
7863 echo conftest.$ac_objext > conftest.lst
7864 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7866 (eval $lt_ar_try) 2>&5
7867 ac_status=$?
7868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869 test $ac_status = 0; }
7870 if test 0 -eq "$ac_status"; then
7871 # Ensure the archiver fails upon bogus file names.
7872 rm -f conftest.$ac_objext libconftest.a
7873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7874 (eval $lt_ar_try) 2>&5
7875 ac_status=$?
7876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877 test $ac_status = 0; }
7878 if test 0 -ne "$ac_status"; then
7879 lt_cv_ar_at_file=@
7880 fi
7881 fi
7882 rm -f conftest.* libconftest.a
7883
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7886 ;;
7887 esac
7888 fi
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7890 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7891
7892 if test no = "$lt_cv_ar_at_file"; then
7893 archiver_list_spec=
7894 else
7895 archiver_list_spec=$lt_cv_ar_at_file
7896 fi
7897
7898
7899
7900
7901
7902
7903
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}strip; ac_word=$2
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 printf %s "checking for $ac_word... " >&6; }
7909 if test ${ac_cv_prog_STRIP+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else case e in #(
7913 e) if test -n "$STRIP"; then
7914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7915 else
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919 IFS=$as_save_IFS
7920 case $as_dir in #(((
7921 '') as_dir=./ ;;
7922 */) ;;
7923 *) as_dir=$as_dir/ ;;
7924 esac
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7929 break 2
7930 fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi ;;
7936 esac
7937 fi
7938 STRIP=$ac_cv_prog_STRIP
7939 if test -n "$STRIP"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7941 printf "%s\n" "$STRIP" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947
7948 fi
7949 if test -z "$ac_cv_prog_STRIP"; then
7950 ac_ct_STRIP=$STRIP
7951 # Extract the first word of "strip", so it can be a program name with args.
7952 set dummy strip; ac_word=$2
7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954 printf %s "checking for $ac_word... " >&6; }
7955 if test ${ac_cv_prog_ac_ct_STRIP+y}
7956 then :
7957 printf %s "(cached) " >&6
7958 else case e in #(
7959 e) if test -n "$ac_ct_STRIP"; then
7960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965 IFS=$as_save_IFS
7966 case $as_dir in #(((
7967 '') as_dir=./ ;;
7968 */) ;;
7969 *) as_dir=$as_dir/ ;;
7970 esac
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7973 ac_cv_prog_ac_ct_STRIP="strip"
7974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7975 break 2
7976 fi
7977 done
7978 done
7979 IFS=$as_save_IFS
7980
7981 fi ;;
7982 esac
7983 fi
7984 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7985 if test -n "$ac_ct_STRIP"; then
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7987 printf "%s\n" "$ac_ct_STRIP" >&6; }
7988 else
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 printf "%s\n" "no" >&6; }
7991 fi
7992
7993 if test "x$ac_ct_STRIP" = x; then
7994 STRIP=":"
7995 else
7996 case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002 STRIP=$ac_ct_STRIP
8003 fi
8004 else
8005 STRIP="$ac_cv_prog_STRIP"
8006 fi
8007
8008 test -z "$STRIP" && STRIP=:
8009
8010
8011
8012
8013
8014
8015
8016 test -z "$RANLIB" && RANLIB=:
8017
8018
8019
8020
8021
8022
8023 # Determine commands to create old-style static archives.
8024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8025 old_postinstall_cmds='chmod 644 $oldlib'
8026 old_postuninstall_cmds=
8027
8028 if test -n "$RANLIB"; then
8029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8031 fi
8032
8033 case $host_os in
8034 darwin*)
8035 lock_old_archive_extraction=yes ;;
8036 *)
8037 lock_old_archive_extraction=no ;;
8038 esac
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # If no C compiler was specified, use CC.
8079 LTCC=${LTCC-"$CC"}
8080
8081 # If no C compiler flags were specified, use CFLAGS.
8082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8083
8084 # Allow CC to be a program name with arguments.
8085 compiler=$CC
8086
8087
8088 # Check for command to grab the raw symbol name followed by C symbol from nm.
8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8090 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8091 if test ${lt_cv_sys_global_symbol_pipe+y}
8092 then :
8093 printf %s "(cached) " >&6
8094 else case e in #(
8095 e)
8096 # These are sane defaults that work on at least a few old systems.
8097 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8098
8099 # Character class describing NM global symbol codes.
8100 symcode='[BCDEGRST]'
8101
8102 # Regexp to match symbols that can be accessed directly from C.
8103 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8104
8105 # Define system-specific variables.
8106 case $host_os in
8107 aix*)
8108 symcode='[BCDT]'
8109 ;;
8110 cygwin* | mingw* | windows* | pw32* | cegcc*)
8111 symcode='[ABCDGISTW]'
8112 ;;
8113 hpux*)
8114 if test ia64 = "$host_cpu"; then
8115 symcode='[ABCDEGRST]'
8116 fi
8117 ;;
8118 irix* | nonstopux*)
8119 symcode='[BCDEGRST]'
8120 ;;
8121 osf*)
8122 symcode='[BCDEGQRST]'
8123 ;;
8124 solaris*)
8125 symcode='[BCDRT]'
8126 ;;
8127 sco3.2v5*)
8128 symcode='[DT]'
8129 ;;
8130 sysv4.2uw2*)
8131 symcode='[DT]'
8132 ;;
8133 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8134 symcode='[ABDT]'
8135 ;;
8136 sysv4)
8137 symcode='[DFNSTU]'
8138 ;;
8139 esac
8140
8141 # If we're using GNU nm, then use its standard symbol codes.
8142 case `$NM -V 2>&1` in
8143 *GNU* | *'with BFD'*)
8144 symcode='[ABCDGIRSTW]' ;;
8145 esac
8146
8147 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8148 # Gets list of data symbols to import.
8149 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8150 # Adjust the below global symbol transforms to fixup imported variables.
8151 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8152 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8153 lt_c_name_lib_hook="\
8154 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8155 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8156 else
8157 # Disable hooks by default.
8158 lt_cv_sys_global_symbol_to_import=
8159 lt_cdecl_hook=
8160 lt_c_name_hook=
8161 lt_c_name_lib_hook=
8162 fi
8163
8164 # Transform an extracted symbol line into a proper C declaration.
8165 # Some systems (esp. on ia64) link data and code symbols differently,
8166 # so use this general approach.
8167 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8168 $lt_cdecl_hook\
8169 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8170 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8171
8172 # Transform an extracted symbol line into symbol name and symbol address
8173 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8174 $lt_c_name_hook\
8175 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8176 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8177
8178 # Transform an extracted symbol line into symbol name with lib prefix and
8179 # symbol address.
8180 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8181 $lt_c_name_lib_hook\
8182 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8183 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8184 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8185
8186 # Handle CRLF in mingw tool chain
8187 opt_cr=
8188 case $build_os in
8189 mingw* | windows*)
8190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8191 ;;
8192 esac
8193
8194 # Try without a prefix underscore, then with it.
8195 for ac_symprfx in "" "_"; do
8196
8197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8198 symxfrm="\\1 $ac_symprfx\\2 \\2"
8199
8200 # Write the raw and C identifiers.
8201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8202 # Fake it for dumpbin and say T for any non-static function,
8203 # D for any global variable and I for any imported variable.
8204 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8205 # which start with @ or ?.
8206 lt_cv_sys_global_symbol_pipe="$AWK '"\
8207 " {last_section=section; section=\$ 3};"\
8208 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8209 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8210 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8211 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8212 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8213 " \$ 0!~/External *\|/{next};"\
8214 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8215 " {if(hide[section]) next};"\
8216 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8217 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8218 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8219 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8220 " ' prfx=^$ac_symprfx"
8221 else
8222 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8223 fi
8224 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8225
8226 # Check to see that the pipe works correctly.
8227 pipe_works=no
8228
8229 rm -f conftest*
8230 cat > conftest.$ac_ext <<_LT_EOF
8231 #ifdef __cplusplus
8232 extern "C" {
8233 #endif
8234 char nm_test_var;
8235 void nm_test_func(void);
8236 void nm_test_func(void){}
8237 #ifdef __cplusplus
8238 }
8239 #endif
8240 int main(void){nm_test_var='a';nm_test_func();return(0);}
8241 _LT_EOF
8242
8243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8244 (eval $ac_compile) 2>&5
8245 ac_status=$?
8246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8247 test $ac_status = 0; }; then
8248 # Now try to grab the symbols.
8249 nlist=conftest.nm
8250 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8251 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8252 # Try sorting and uniquifying the output.
8253 if sort "$nlist" | uniq > "$nlist"T; then
8254 mv -f "$nlist"T "$nlist"
8255 else
8256 rm -f "$nlist"T
8257 fi
8258
8259 # Make sure that we snagged all the symbols we need.
8260 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8261 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8262 cat <<_LT_EOF > conftest.$ac_ext
8263 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8264 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8265 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8266 relocations are performed -- see ld's documentation on pseudo-relocs. */
8267 # define LT_DLSYM_CONST
8268 #elif defined __osf__
8269 /* This system does not cope well with relocations in const data. */
8270 # define LT_DLSYM_CONST
8271 #else
8272 # define LT_DLSYM_CONST const
8273 #endif
8274
8275 #ifdef __cplusplus
8276 extern "C" {
8277 #endif
8278
8279 _LT_EOF
8280 # Now generate the symbol file.
8281 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8282
8283 cat <<_LT_EOF >> conftest.$ac_ext
8284
8285 /* The mapping between symbol names and symbols. */
8286 LT_DLSYM_CONST struct {
8287 const char *name;
8288 void *address;
8289 }
8290 lt__PROGRAM__LTX_preloaded_symbols[] =
8291 {
8292 { "@PROGRAM@", (void *) 0 },
8293 _LT_EOF
8294 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8295 cat <<\_LT_EOF >> conftest.$ac_ext
8296 {0, (void *) 0}
8297 };
8298
8299 /* This works around a problem in FreeBSD linker */
8300 #ifdef FREEBSD_WORKAROUND
8301 static const void *lt_preloaded_setup() {
8302 return lt__PROGRAM__LTX_preloaded_symbols;
8303 }
8304 #endif
8305
8306 #ifdef __cplusplus
8307 }
8308 #endif
8309 _LT_EOF
8310 # Now try linking the two files.
8311 mv conftest.$ac_objext conftstm.$ac_objext
8312 lt_globsym_save_LIBS=$LIBS
8313 lt_globsym_save_CFLAGS=$CFLAGS
8314 LIBS=conftstm.$ac_objext
8315 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8321 pipe_works=yes
8322 fi
8323 LIBS=$lt_globsym_save_LIBS
8324 CFLAGS=$lt_globsym_save_CFLAGS
8325 else
8326 echo "cannot find nm_test_func in $nlist" >&5
8327 fi
8328 else
8329 echo "cannot find nm_test_var in $nlist" >&5
8330 fi
8331 else
8332 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8333 fi
8334 else
8335 echo "$progname: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 fi
8338 rm -rf conftest* conftst*
8339
8340 # Do not use the global_symbol_pipe unless it works.
8341 if test yes = "$pipe_works"; then
8342 break
8343 else
8344 lt_cv_sys_global_symbol_pipe=
8345 fi
8346 done
8347 ;;
8348 esac
8349 fi
8350
8351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8352 lt_cv_sys_global_symbol_to_cdecl=
8353 fi
8354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8356 printf "%s\n" "failed" >&6; }
8357 else
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8359 printf "%s\n" "ok" >&6; }
8360 fi
8361
8362 # Response file support.
8363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8364 nm_file_list_spec='@'
8365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8366 nm_file_list_spec='@'
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8406 printf %s "checking for sysroot... " >&6; }
8407
8408 # Check whether --with-sysroot was given.
8409 if test ${with_sysroot+y}
8410 then :
8411 withval=$with_sysroot;
8412 else case e in #(
8413 e) with_sysroot=no ;;
8414 esac
8415 fi
8416
8417
8418 lt_sysroot=
8419 case $with_sysroot in #(
8420 yes)
8421 if test yes = "$GCC"; then
8422 # Trim trailing / since we'll always append absolute paths and we want
8423 # to avoid //, if only for less confusing output for the user.
8424 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8425 fi
8426 ;; #(
8427 /*)
8428 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8429 ;; #(
8430 no|'')
8431 ;; #(
8432 *)
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8434 printf "%s\n" "$with_sysroot" >&6; }
8435 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8436 ;;
8437 esac
8438
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8440 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8441
8442
8443
8444
8445
8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8447 printf %s "checking for a working dd... " >&6; }
8448 if test ${ac_cv_path_lt_DD+y}
8449 then :
8450 printf %s "(cached) " >&6
8451 else case e in #(
8452 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8453 cat conftest.i conftest.i >conftest2.i
8454 : ${lt_DD:=$DD}
8455 if test -z "$lt_DD"; then
8456 ac_path_lt_DD_found=false
8457 # Loop through the user's path and test for each of PROGNAME-LIST
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 case $as_dir in #(((
8463 '') as_dir=./ ;;
8464 */) ;;
8465 *) as_dir=$as_dir/ ;;
8466 esac
8467 for ac_prog in dd
8468 do
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8471 as_fn_executable_p "$ac_path_lt_DD" || continue
8472 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8473 cmp -s conftest.i conftest.out \
8474 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8475 fi
8476 $ac_path_lt_DD_found && break 3
8477 done
8478 done
8479 done
8480 IFS=$as_save_IFS
8481 if test -z "$ac_cv_path_lt_DD"; then
8482 :
8483 fi
8484 else
8485 ac_cv_path_lt_DD=$lt_DD
8486 fi
8487
8488 rm -f conftest.i conftest2.i conftest.out ;;
8489 esac
8490 fi
8491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8492 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8493
8494
8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8496 printf %s "checking how to truncate binary pipes... " >&6; }
8497 if test ${lt_cv_truncate_bin+y}
8498 then :
8499 printf %s "(cached) " >&6
8500 else case e in #(
8501 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8502 cat conftest.i conftest.i >conftest2.i
8503 lt_cv_truncate_bin=
8504 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8505 cmp -s conftest.i conftest.out \
8506 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8507 fi
8508 rm -f conftest.i conftest2.i conftest.out
8509 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8510 esac
8511 fi
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8513 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8514
8515
8516
8517
8518
8519
8520
8521 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8522 func_cc_basename ()
8523 {
8524 for cc_temp in $*""; do
8525 case $cc_temp in
8526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8528 \-*) ;;
8529 *) break;;
8530 esac
8531 done
8532 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8533 }
8534
8535 # Check whether --enable-libtool-lock was given.
8536 if test ${enable_libtool_lock+y}
8537 then :
8538 enableval=$enable_libtool_lock;
8539 fi
8540
8541 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8542
8543 # Some flags need to be propagated to the compiler or linker for good
8544 # libtool support.
8545 case $host in
8546 ia64-*-hpux*)
8547 # Find out what ABI is being produced by ac_compile, and set mode
8548 # options accordingly.
8549 echo 'int i;' > conftest.$ac_ext
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8551 (eval $ac_compile) 2>&5
8552 ac_status=$?
8553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; }; then
8555 case `$FILECMD conftest.$ac_objext` in
8556 *ELF-32*)
8557 HPUX_IA64_MODE=32
8558 ;;
8559 *ELF-64*)
8560 HPUX_IA64_MODE=64
8561 ;;
8562 esac
8563 fi
8564 rm -rf conftest*
8565 ;;
8566 *-*-irix6*)
8567 # Find out what ABI is being produced by ac_compile, and set linker
8568 # options accordingly.
8569 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8571 (eval $ac_compile) 2>&5
8572 ac_status=$?
8573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8574 test $ac_status = 0; }; then
8575 if test yes = "$lt_cv_prog_gnu_ld"; then
8576 case `$FILECMD conftest.$ac_objext` in
8577 *32-bit*)
8578 LD="${LD-ld} -melf32bsmip"
8579 ;;
8580 *N32*)
8581 LD="${LD-ld} -melf32bmipn32"
8582 ;;
8583 *64-bit*)
8584 LD="${LD-ld} -melf64bmip"
8585 ;;
8586 esac
8587 else
8588 case `$FILECMD conftest.$ac_objext` in
8589 *32-bit*)
8590 LD="${LD-ld} -32"
8591 ;;
8592 *N32*)
8593 LD="${LD-ld} -n32"
8594 ;;
8595 *64-bit*)
8596 LD="${LD-ld} -64"
8597 ;;
8598 esac
8599 fi
8600 fi
8601 rm -rf conftest*
8602 ;;
8603
8604 mips64*-*linux*)
8605 # Find out what ABI is being produced by ac_compile, and set linker
8606 # options accordingly.
8607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8609 (eval $ac_compile) 2>&5
8610 ac_status=$?
8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8612 test $ac_status = 0; }; then
8613 emul=elf
8614 case `$FILECMD conftest.$ac_objext` in
8615 *32-bit*)
8616 emul="${emul}32"
8617 ;;
8618 *64-bit*)
8619 emul="${emul}64"
8620 ;;
8621 esac
8622 case `$FILECMD conftest.$ac_objext` in
8623 *MSB*)
8624 emul="${emul}btsmip"
8625 ;;
8626 *LSB*)
8627 emul="${emul}ltsmip"
8628 ;;
8629 esac
8630 case `$FILECMD conftest.$ac_objext` in
8631 *N32*)
8632 emul="${emul}n32"
8633 ;;
8634 esac
8635 LD="${LD-ld} -m $emul"
8636 fi
8637 rm -rf conftest*
8638 ;;
8639
8640 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8641 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8642 # Find out what ABI is being produced by ac_compile, and set linker
8643 # options accordingly. Note that the listed cases only cover the
8644 # situations where additional linker options are needed (such as when
8645 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8646 # vice versa); the common cases where no linker options are needed do
8647 # not appear in the list.
8648 echo 'int i;' > conftest.$ac_ext
8649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8650 (eval $ac_compile) 2>&5
8651 ac_status=$?
8652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8653 test $ac_status = 0; }; then
8654 case `$FILECMD conftest.o` in
8655 *32-bit*)
8656 case $host in
8657 x86_64-*kfreebsd*-gnu)
8658 LD="${LD-ld} -m elf_i386_fbsd"
8659 ;;
8660 x86_64-*linux*|x86_64-gnu*)
8661 case `$FILECMD conftest.o` in
8662 *x86-64*)
8663 LD="${LD-ld} -m elf32_x86_64"
8664 ;;
8665 *)
8666 LD="${LD-ld} -m elf_i386"
8667 ;;
8668 esac
8669 ;;
8670 powerpc64le-*linux*)
8671 LD="${LD-ld} -m elf32lppclinux"
8672 ;;
8673 powerpc64-*linux*)
8674 LD="${LD-ld} -m elf32ppclinux"
8675 ;;
8676 s390x-*linux*)
8677 LD="${LD-ld} -m elf_s390"
8678 ;;
8679 sparc64-*linux*)
8680 LD="${LD-ld} -m elf32_sparc"
8681 ;;
8682 esac
8683 ;;
8684 *64-bit*)
8685 case $host in
8686 x86_64-*kfreebsd*-gnu)
8687 LD="${LD-ld} -m elf_x86_64_fbsd"
8688 ;;
8689 x86_64-*linux*|x86_64-gnu*)
8690 LD="${LD-ld} -m elf_x86_64"
8691 ;;
8692 powerpcle-*linux*)
8693 LD="${LD-ld} -m elf64lppc"
8694 ;;
8695 powerpc-*linux*)
8696 LD="${LD-ld} -m elf64ppc"
8697 ;;
8698 s390*-*linux*|s390*-*tpf*)
8699 LD="${LD-ld} -m elf64_s390"
8700 ;;
8701 sparc*-*linux*)
8702 LD="${LD-ld} -m elf64_sparc"
8703 ;;
8704 esac
8705 ;;
8706 esac
8707 fi
8708 rm -rf conftest*
8709 ;;
8710
8711 *-*-sco3.2v5*)
8712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8713 SAVE_CFLAGS=$CFLAGS
8714 CFLAGS="$CFLAGS -belf"
8715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8716 printf %s "checking whether the C compiler needs -belf... " >&6; }
8717 if test ${lt_cv_cc_needs_belf+y}
8718 then :
8719 printf %s "(cached) " >&6
8720 else case e in #(
8721 e) ac_ext=c
8722 ac_cpp='$CPP $CPPFLAGS'
8723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8726
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730 int
8731 main (void)
8732 {
8733
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"
8739 then :
8740 lt_cv_cc_needs_belf=yes
8741 else case e in #(
8742 e) lt_cv_cc_needs_belf=no ;;
8743 esac
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8746 conftest$ac_exeext conftest.$ac_ext
8747 ac_ext=c
8748 ac_cpp='$CPP $CPPFLAGS'
8749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8752 ;;
8753 esac
8754 fi
8755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8756 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8757 if test yes != "$lt_cv_cc_needs_belf"; then
8758 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8759 CFLAGS=$SAVE_CFLAGS
8760 fi
8761 ;;
8762 *-*solaris*)
8763 # Find out what ABI is being produced by ac_compile, and set linker
8764 # options accordingly.
8765 echo 'int i;' > conftest.$ac_ext
8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8767 (eval $ac_compile) 2>&5
8768 ac_status=$?
8769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8770 test $ac_status = 0; }; then
8771 case `$FILECMD conftest.o` in
8772 *64-bit*)
8773 case $lt_cv_prog_gnu_ld in
8774 yes*)
8775 case $host in
8776 i?86-*-solaris*|x86_64-*-solaris*)
8777 LD="${LD-ld} -m elf_x86_64"
8778 ;;
8779 sparc*-*-solaris*)
8780 LD="${LD-ld} -m elf64_sparc"
8781 ;;
8782 esac
8783 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8784 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8785 LD=${LD-ld}_sol2
8786 fi
8787 ;;
8788 *)
8789 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8790 LD="${LD-ld} -64"
8791 fi
8792 ;;
8793 esac
8794 ;;
8795 esac
8796 fi
8797 rm -rf conftest*
8798 ;;
8799 esac
8800
8801 need_locks=$enable_libtool_lock
8802
8803 if test -n "$ac_tool_prefix"; then
8804 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8805 set dummy ${ac_tool_prefix}mt; ac_word=$2
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 printf %s "checking for $ac_word... " >&6; }
8808 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8809 then :
8810 printf %s "(cached) " >&6
8811 else case e in #(
8812 e) if test -n "$MANIFEST_TOOL"; then
8813 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8814 else
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8817 do
8818 IFS=$as_save_IFS
8819 case $as_dir in #(((
8820 '') as_dir=./ ;;
8821 */) ;;
8822 *) as_dir=$as_dir/ ;;
8823 esac
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8826 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8828 break 2
8829 fi
8830 done
8831 done
8832 IFS=$as_save_IFS
8833
8834 fi ;;
8835 esac
8836 fi
8837 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8838 if test -n "$MANIFEST_TOOL"; then
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8840 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8841 else
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 printf "%s\n" "no" >&6; }
8844 fi
8845
8846
8847 fi
8848 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8849 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8850 # Extract the first word of "mt", so it can be a program name with args.
8851 set dummy mt; ac_word=$2
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853 printf %s "checking for $ac_word... " >&6; }
8854 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8855 then :
8856 printf %s "(cached) " >&6
8857 else case e in #(
8858 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8859 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8860 else
8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8862 for as_dir in $PATH
8863 do
8864 IFS=$as_save_IFS
8865 case $as_dir in #(((
8866 '') as_dir=./ ;;
8867 */) ;;
8868 *) as_dir=$as_dir/ ;;
8869 esac
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8872 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8874 break 2
8875 fi
8876 done
8877 done
8878 IFS=$as_save_IFS
8879
8880 fi ;;
8881 esac
8882 fi
8883 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8884 if test -n "$ac_ct_MANIFEST_TOOL"; then
8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8886 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8887 else
8888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 printf "%s\n" "no" >&6; }
8890 fi
8891
8892 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8893 MANIFEST_TOOL=":"
8894 else
8895 case $cross_compiling:$ac_tool_warned in
8896 yes:)
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8898 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8899 ac_tool_warned=yes ;;
8900 esac
8901 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8902 fi
8903 else
8904 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8905 fi
8906
8907 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8909 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8910 if test ${lt_cv_path_manifest_tool+y}
8911 then :
8912 printf %s "(cached) " >&6
8913 else case e in #(
8914 e) lt_cv_path_manifest_tool=no
8915 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8916 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8917 cat conftest.err >&5
8918 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8919 lt_cv_path_manifest_tool=yes
8920 fi
8921 rm -f conftest* ;;
8922 esac
8923 fi
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8925 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8926 if test yes != "$lt_cv_path_manifest_tool"; then
8927 MANIFEST_TOOL=:
8928 fi
8929
8930
8931
8932
8933
8934
8935 case $host_os in
8936 rhapsody* | darwin*)
8937 if test -n "$ac_tool_prefix"; then
8938 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8939 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_DSYMUTIL+y}
8943 then :
8944 printf %s "(cached) " >&6
8945 else case e in #(
8946 e) if test -n "$DSYMUTIL"; then
8947 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8948 else
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952 IFS=$as_save_IFS
8953 case $as_dir in #(((
8954 '') as_dir=./ ;;
8955 */) ;;
8956 *) as_dir=$as_dir/ ;;
8957 esac
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962 break 2
8963 fi
8964 done
8965 done
8966 IFS=$as_save_IFS
8967
8968 fi ;;
8969 esac
8970 fi
8971 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8972 if test -n "$DSYMUTIL"; then
8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8974 printf "%s\n" "$DSYMUTIL" >&6; }
8975 else
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977 printf "%s\n" "no" >&6; }
8978 fi
8979
8980
8981 fi
8982 if test -z "$ac_cv_prog_DSYMUTIL"; then
8983 ac_ct_DSYMUTIL=$DSYMUTIL
8984 # Extract the first word of "dsymutil", so it can be a program name with args.
8985 set dummy dsymutil; ac_word=$2
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987 printf %s "checking for $ac_word... " >&6; }
8988 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8989 then :
8990 printf %s "(cached) " >&6
8991 else case e in #(
8992 e) if test -n "$ac_ct_DSYMUTIL"; then
8993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8994 else
8995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998 IFS=$as_save_IFS
8999 case $as_dir in #(((
9000 '') as_dir=./ ;;
9001 */) ;;
9002 *) as_dir=$as_dir/ ;;
9003 esac
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9006 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9008 break 2
9009 fi
9010 done
9011 done
9012 IFS=$as_save_IFS
9013
9014 fi ;;
9015 esac
9016 fi
9017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9018 if test -n "$ac_ct_DSYMUTIL"; then
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9020 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9021 else
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 printf "%s\n" "no" >&6; }
9024 fi
9025
9026 if test "x$ac_ct_DSYMUTIL" = x; then
9027 DSYMUTIL=":"
9028 else
9029 case $cross_compiling:$ac_tool_warned in
9030 yes:)
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9033 ac_tool_warned=yes ;;
9034 esac
9035 DSYMUTIL=$ac_ct_DSYMUTIL
9036 fi
9037 else
9038 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9039 fi
9040
9041 if test -n "$ac_tool_prefix"; then
9042 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9045 printf %s "checking for $ac_word... " >&6; }
9046 if test ${ac_cv_prog_NMEDIT+y}
9047 then :
9048 printf %s "(cached) " >&6
9049 else case e in #(
9050 e) if test -n "$NMEDIT"; then
9051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056 IFS=$as_save_IFS
9057 case $as_dir in #(((
9058 '') as_dir=./ ;;
9059 */) ;;
9060 *) as_dir=$as_dir/ ;;
9061 esac
9062 for ac_exec_ext in '' $ac_executable_extensions; do
9063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9064 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9066 break 2
9067 fi
9068 done
9069 done
9070 IFS=$as_save_IFS
9071
9072 fi ;;
9073 esac
9074 fi
9075 NMEDIT=$ac_cv_prog_NMEDIT
9076 if test -n "$NMEDIT"; then
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9078 printf "%s\n" "$NMEDIT" >&6; }
9079 else
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 printf "%s\n" "no" >&6; }
9082 fi
9083
9084
9085 fi
9086 if test -z "$ac_cv_prog_NMEDIT"; then
9087 ac_ct_NMEDIT=$NMEDIT
9088 # Extract the first word of "nmedit", so it can be a program name with args.
9089 set dummy nmedit; ac_word=$2
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091 printf %s "checking for $ac_word... " >&6; }
9092 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else case e in #(
9096 e) if test -n "$ac_ct_NMEDIT"; then
9097 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102 IFS=$as_save_IFS
9103 case $as_dir in #(((
9104 '') as_dir=./ ;;
9105 */) ;;
9106 *) as_dir=$as_dir/ ;;
9107 esac
9108 for ac_exec_ext in '' $ac_executable_extensions; do
9109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9110 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9112 break 2
9113 fi
9114 done
9115 done
9116 IFS=$as_save_IFS
9117
9118 fi ;;
9119 esac
9120 fi
9121 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9122 if test -n "$ac_ct_NMEDIT"; then
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9124 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9125 else
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 printf "%s\n" "no" >&6; }
9128 fi
9129
9130 if test "x$ac_ct_NMEDIT" = x; then
9131 NMEDIT=":"
9132 else
9133 case $cross_compiling:$ac_tool_warned in
9134 yes:)
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9137 ac_tool_warned=yes ;;
9138 esac
9139 NMEDIT=$ac_ct_NMEDIT
9140 fi
9141 else
9142 NMEDIT="$ac_cv_prog_NMEDIT"
9143 fi
9144
9145 if test -n "$ac_tool_prefix"; then
9146 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_LIPO+y}
9151 then :
9152 printf %s "(cached) " >&6
9153 else case e in #(
9154 e) if test -n "$LIPO"; then
9155 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9156 else
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160 IFS=$as_save_IFS
9161 case $as_dir in #(((
9162 '') as_dir=./ ;;
9163 */) ;;
9164 *) as_dir=$as_dir/ ;;
9165 esac
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172 done
9173 done
9174 IFS=$as_save_IFS
9175
9176 fi ;;
9177 esac
9178 fi
9179 LIPO=$ac_cv_prog_LIPO
9180 if test -n "$LIPO"; then
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9182 printf "%s\n" "$LIPO" >&6; }
9183 else
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9185 printf "%s\n" "no" >&6; }
9186 fi
9187
9188
9189 fi
9190 if test -z "$ac_cv_prog_LIPO"; then
9191 ac_ct_LIPO=$LIPO
9192 # Extract the first word of "lipo", so it can be a program name with args.
9193 set dummy lipo; ac_word=$2
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 printf %s "checking for $ac_word... " >&6; }
9196 if test ${ac_cv_prog_ac_ct_LIPO+y}
9197 then :
9198 printf %s "(cached) " >&6
9199 else case e in #(
9200 e) if test -n "$ac_ct_LIPO"; then
9201 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9202 else
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204 for as_dir in $PATH
9205 do
9206 IFS=$as_save_IFS
9207 case $as_dir in #(((
9208 '') as_dir=./ ;;
9209 */) ;;
9210 *) as_dir=$as_dir/ ;;
9211 esac
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9214 ac_cv_prog_ac_ct_LIPO="lipo"
9215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9216 break 2
9217 fi
9218 done
9219 done
9220 IFS=$as_save_IFS
9221
9222 fi ;;
9223 esac
9224 fi
9225 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9226 if test -n "$ac_ct_LIPO"; then
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9228 printf "%s\n" "$ac_ct_LIPO" >&6; }
9229 else
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 printf "%s\n" "no" >&6; }
9232 fi
9233
9234 if test "x$ac_ct_LIPO" = x; then
9235 LIPO=":"
9236 else
9237 case $cross_compiling:$ac_tool_warned in
9238 yes:)
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9241 ac_tool_warned=yes ;;
9242 esac
9243 LIPO=$ac_ct_LIPO
9244 fi
9245 else
9246 LIPO="$ac_cv_prog_LIPO"
9247 fi
9248
9249 if test -n "$ac_tool_prefix"; then
9250 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9251 set dummy ${ac_tool_prefix}otool; ac_word=$2
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 printf %s "checking for $ac_word... " >&6; }
9254 if test ${ac_cv_prog_OTOOL+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else case e in #(
9258 e) if test -n "$OTOOL"; then
9259 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9263 do
9264 IFS=$as_save_IFS
9265 case $as_dir in #(((
9266 '') as_dir=./ ;;
9267 */) ;;
9268 *) as_dir=$as_dir/ ;;
9269 esac
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9272 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9274 break 2
9275 fi
9276 done
9277 done
9278 IFS=$as_save_IFS
9279
9280 fi ;;
9281 esac
9282 fi
9283 OTOOL=$ac_cv_prog_OTOOL
9284 if test -n "$OTOOL"; then
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9286 printf "%s\n" "$OTOOL" >&6; }
9287 else
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 printf "%s\n" "no" >&6; }
9290 fi
9291
9292
9293 fi
9294 if test -z "$ac_cv_prog_OTOOL"; then
9295 ac_ct_OTOOL=$OTOOL
9296 # Extract the first word of "otool", so it can be a program name with args.
9297 set dummy otool; ac_word=$2
9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 printf %s "checking for $ac_word... " >&6; }
9300 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9301 then :
9302 printf %s "(cached) " >&6
9303 else case e in #(
9304 e) if test -n "$ac_ct_OTOOL"; then
9305 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9306 else
9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 for as_dir in $PATH
9309 do
9310 IFS=$as_save_IFS
9311 case $as_dir in #(((
9312 '') as_dir=./ ;;
9313 */) ;;
9314 *) as_dir=$as_dir/ ;;
9315 esac
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9318 ac_cv_prog_ac_ct_OTOOL="otool"
9319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9320 break 2
9321 fi
9322 done
9323 done
9324 IFS=$as_save_IFS
9325
9326 fi ;;
9327 esac
9328 fi
9329 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9330 if test -n "$ac_ct_OTOOL"; then
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9332 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9333 else
9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 printf "%s\n" "no" >&6; }
9336 fi
9337
9338 if test "x$ac_ct_OTOOL" = x; then
9339 OTOOL=":"
9340 else
9341 case $cross_compiling:$ac_tool_warned in
9342 yes:)
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9344 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9345 ac_tool_warned=yes ;;
9346 esac
9347 OTOOL=$ac_ct_OTOOL
9348 fi
9349 else
9350 OTOOL="$ac_cv_prog_OTOOL"
9351 fi
9352
9353 if test -n "$ac_tool_prefix"; then
9354 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9355 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 printf %s "checking for $ac_word... " >&6; }
9358 if test ${ac_cv_prog_OTOOL64+y}
9359 then :
9360 printf %s "(cached) " >&6
9361 else case e in #(
9362 e) if test -n "$OTOOL64"; then
9363 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9364 else
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9367 do
9368 IFS=$as_save_IFS
9369 case $as_dir in #(((
9370 '') as_dir=./ ;;
9371 */) ;;
9372 *) as_dir=$as_dir/ ;;
9373 esac
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9376 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9378 break 2
9379 fi
9380 done
9381 done
9382 IFS=$as_save_IFS
9383
9384 fi ;;
9385 esac
9386 fi
9387 OTOOL64=$ac_cv_prog_OTOOL64
9388 if test -n "$OTOOL64"; then
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9390 printf "%s\n" "$OTOOL64" >&6; }
9391 else
9392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 printf "%s\n" "no" >&6; }
9394 fi
9395
9396
9397 fi
9398 if test -z "$ac_cv_prog_OTOOL64"; then
9399 ac_ct_OTOOL64=$OTOOL64
9400 # Extract the first word of "otool64", so it can be a program name with args.
9401 set dummy otool64; ac_word=$2
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 printf %s "checking for $ac_word... " >&6; }
9404 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9405 then :
9406 printf %s "(cached) " >&6
9407 else case e in #(
9408 e) if test -n "$ac_ct_OTOOL64"; then
9409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9413 do
9414 IFS=$as_save_IFS
9415 case $as_dir in #(((
9416 '') as_dir=./ ;;
9417 */) ;;
9418 *) as_dir=$as_dir/ ;;
9419 esac
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9422 ac_cv_prog_ac_ct_OTOOL64="otool64"
9423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9424 break 2
9425 fi
9426 done
9427 done
9428 IFS=$as_save_IFS
9429
9430 fi ;;
9431 esac
9432 fi
9433 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9434 if test -n "$ac_ct_OTOOL64"; then
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9436 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9437 else
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 printf "%s\n" "no" >&6; }
9440 fi
9441
9442 if test "x$ac_ct_OTOOL64" = x; then
9443 OTOOL64=":"
9444 else
9445 case $cross_compiling:$ac_tool_warned in
9446 yes:)
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9448 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9449 ac_tool_warned=yes ;;
9450 esac
9451 OTOOL64=$ac_ct_OTOOL64
9452 fi
9453 else
9454 OTOOL64="$ac_cv_prog_OTOOL64"
9455 fi
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9484 printf %s "checking for -single_module linker flag... " >&6; }
9485 if test ${lt_cv_apple_cc_single_mod+y}
9486 then :
9487 printf %s "(cached) " >&6
9488 else case e in #(
9489 e) lt_cv_apple_cc_single_mod=no
9490 if test -z "$LT_MULTI_MODULE"; then
9491 # By default we will add the -single_module flag. You can override
9492 # by either setting the environment variable LT_MULTI_MODULE
9493 # non-empty at configure time, or by adding -multi_module to the
9494 # link flags.
9495 rm -rf libconftest.dylib*
9496 echo "int foo(void){return 1;}" > conftest.c
9497 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9498 -dynamiclib -Wl,-single_module conftest.c" >&5
9499 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9500 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9501 _lt_result=$?
9502 # If there is a non-empty error log, and "single_module"
9503 # appears in it, assume the flag caused a linker warning
9504 if test -s conftest.err && $GREP single_module conftest.err; then
9505 cat conftest.err >&5
9506 # Otherwise, if the output was created with a 0 exit code from
9507 # the compiler, it worked.
9508 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9509 lt_cv_apple_cc_single_mod=yes
9510 else
9511 cat conftest.err >&5
9512 fi
9513 rm -rf libconftest.dylib*
9514 rm -f conftest.*
9515 fi ;;
9516 esac
9517 fi
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9519 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9520
9521 # Feature test to disable chained fixups since it is not
9522 # compatible with '-undefined dynamic_lookup'
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9524 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9525 if test ${lt_cv_support_no_fixup_chains+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else case e in #(
9529 e) save_LDFLAGS=$LDFLAGS
9530 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9532 /* end confdefs.h. */
9533
9534 int
9535 main (void)
9536 {
9537
9538 ;
9539 return 0;
9540 }
9541 _ACEOF
9542 if ac_fn_c_try_link "$LINENO"
9543 then :
9544 lt_cv_support_no_fixup_chains=yes
9545 else case e in #(
9546 e) lt_cv_support_no_fixup_chains=no
9547 ;;
9548 esac
9549 fi
9550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9551 conftest$ac_exeext conftest.$ac_ext
9552 LDFLAGS=$save_LDFLAGS
9553
9554 ;;
9555 esac
9556 fi
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9558 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9559
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9561 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9562 if test ${lt_cv_ld_exported_symbols_list+y}
9563 then :
9564 printf %s "(cached) " >&6
9565 else case e in #(
9566 e) lt_cv_ld_exported_symbols_list=no
9567 save_LDFLAGS=$LDFLAGS
9568 echo "_main" > conftest.sym
9569 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 int
9574 main (void)
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"
9582 then :
9583 lt_cv_ld_exported_symbols_list=yes
9584 else case e in #(
9585 e) lt_cv_ld_exported_symbols_list=no ;;
9586 esac
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589 conftest$ac_exeext conftest.$ac_ext
9590 LDFLAGS=$save_LDFLAGS
9591 ;;
9592 esac
9593 fi
9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9595 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9596
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9598 printf %s "checking for -force_load linker flag... " >&6; }
9599 if test ${lt_cv_ld_force_load+y}
9600 then :
9601 printf %s "(cached) " >&6
9602 else case e in #(
9603 e) lt_cv_ld_force_load=no
9604 cat > conftest.c << _LT_EOF
9605 int forced_loaded() { return 2;}
9606 _LT_EOF
9607 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9608 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9609 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9610 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9611 echo "$RANLIB libconftest.a" >&5
9612 $RANLIB libconftest.a 2>&5
9613 cat > conftest.c << _LT_EOF
9614 int main(void) { return 0;}
9615 _LT_EOF
9616 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9617 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9618 _lt_result=$?
9619 if test -s conftest.err && $GREP force_load conftest.err; then
9620 cat conftest.err >&5
9621 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9622 lt_cv_ld_force_load=yes
9623 else
9624 cat conftest.err >&5
9625 fi
9626 rm -f conftest.err libconftest.a conftest conftest.c
9627 rm -rf conftest.dSYM
9628 ;;
9629 esac
9630 fi
9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9632 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9633 case $host_os in
9634 rhapsody* | darwin1.[012])
9635 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9636 darwin1.*)
9637 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9638 darwin*)
9639 case $MACOSX_DEPLOYMENT_TARGET,$host in
9640 10.[012],*|,*powerpc*-darwin[5-8]*)
9641 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9642 *)
9643 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9644 if test yes = "$lt_cv_support_no_fixup_chains"; then
9645 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9646 fi
9647 ;;
9648 esac
9649 ;;
9650 esac
9651 if test yes = "$lt_cv_apple_cc_single_mod"; then
9652 _lt_dar_single_mod='$single_module'
9653 fi
9654 _lt_dar_needs_single_mod=no
9655 case $host_os in
9656 rhapsody* | darwin1.*)
9657 _lt_dar_needs_single_mod=yes ;;
9658 darwin*)
9659 # When targeting Mac OS X 10.4 (darwin 8) or later,
9660 # -single_module is the default and -multi_module is unsupported.
9661 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9662 # target any OS version that needs -single_module.
9663 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9664 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9665 _lt_dar_needs_single_mod=yes ;;
9666 esac
9667 ;;
9668 esac
9669 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9670 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9671 else
9672 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9673 fi
9674 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9675 _lt_dsymutil='~$DSYMUTIL $lib || :'
9676 else
9677 _lt_dsymutil=
9678 fi
9679 ;;
9680 esac
9681
9682 # func_munge_path_list VARIABLE PATH
9683 # -----------------------------------
9684 # VARIABLE is name of variable containing _space_ separated list of
9685 # directories to be munged by the contents of PATH, which is string
9686 # having a format:
9687 # "DIR[:DIR]:"
9688 # string "DIR[ DIR]" will be prepended to VARIABLE
9689 # ":DIR[:DIR]"
9690 # string "DIR[ DIR]" will be appended to VARIABLE
9691 # "DIRP[:DIRP]::[DIRA:]DIRA"
9692 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9693 # "DIRA[ DIRA]" will be appended to VARIABLE
9694 # "DIR[:DIR]"
9695 # VARIABLE will be replaced by "DIR[ DIR]"
9696 func_munge_path_list ()
9697 {
9698 case x$2 in
9699 x)
9700 ;;
9701 *:)
9702 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9703 ;;
9704 x:*)
9705 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9706 ;;
9707 *::*)
9708 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9709 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9710 ;;
9711 *)
9712 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9713 ;;
9714 esac
9715 }
9716
9717 ac_header= ac_cache=
9718 for ac_item in $ac_header_c_list
9719 do
9720 if test $ac_cache; then
9721 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9722 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9723 printf "%s\n" "#define $ac_item 1" >> confdefs.h
9724 fi
9725 ac_header= ac_cache=
9726 elif test $ac_header; then
9727 ac_cache=$ac_item
9728 else
9729 ac_header=$ac_item
9730 fi
9731 done
9732
9733
9734
9735
9736
9737
9738
9739
9740 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9741 then :
9742
9743 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9744
9745 fi
9746 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9747 "
9748 if test "x$ac_cv_header_dlfcn_h" = xyes
9749 then :
9750 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9751
9752 fi
9753
9754
9755
9756
9757
9758 # Set options
9759 # Check whether --enable-static was given.
9760 if test ${enable_static+y}
9761 then :
9762 enableval=$enable_static; p=${PACKAGE-default}
9763 case $enableval in
9764 yes) enable_static=yes ;;
9765 no) enable_static=no ;;
9766 *)
9767 enable_static=no
9768 # Look at the argument we got. We use all the common list separators.
9769 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9770 for pkg in $enableval; do
9771 IFS=$lt_save_ifs
9772 if test "X$pkg" = "X$p"; then
9773 enable_static=yes
9774 fi
9775 done
9776 IFS=$lt_save_ifs
9777 ;;
9778 esac
9779 else case e in #(
9780 e) enable_static=no ;;
9781 esac
9782 fi
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793 enable_dlopen=no
9794
9795
9796 enable_win32_dll=no
9797
9798
9799 # Check whether --enable-shared was given.
9800 if test ${enable_shared+y}
9801 then :
9802 enableval=$enable_shared; p=${PACKAGE-default}
9803 case $enableval in
9804 yes) enable_shared=yes ;;
9805 no) enable_shared=no ;;
9806 *)
9807 enable_shared=no
9808 # Look at the argument we got. We use all the common list separators.
9809 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9810 for pkg in $enableval; do
9811 IFS=$lt_save_ifs
9812 if test "X$pkg" = "X$p"; then
9813 enable_shared=yes
9814 fi
9815 done
9816 IFS=$lt_save_ifs
9817 ;;
9818 esac
9819 else case e in #(
9820 e) enable_shared=yes ;;
9821 esac
9822 fi
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833 # Check whether --enable-pic was given.
9834 if test ${enable_pic+y}
9835 then :
9836 enableval=$enable_pic; lt_p=${PACKAGE-default}
9837 case $enableval in
9838 yes|no) pic_mode=$enableval ;;
9839 *)
9840 pic_mode=default
9841 # Look at the argument we got. We use all the common list separators.
9842 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9843 for lt_pkg in $enableval; do
9844 IFS=$lt_save_ifs
9845 if test "X$lt_pkg" = "X$lt_p"; then
9846 pic_mode=yes
9847 fi
9848 done
9849 IFS=$lt_save_ifs
9850 ;;
9851 esac
9852 else case e in #(
9853 e) # Check whether --with-pic was given.
9854 if test ${with_pic+y}
9855 then :
9856 withval=$with_pic; lt_p=${PACKAGE-default}
9857 case $withval in
9858 yes|no) pic_mode=$withval ;;
9859 *)
9860 pic_mode=default
9861 # Look at the argument we got. We use all the common list separators.
9862 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9863 for lt_pkg in $withval; do
9864 IFS=$lt_save_ifs
9865 if test "X$lt_pkg" = "X$lt_p"; then
9866 pic_mode=yes
9867 fi
9868 done
9869 IFS=$lt_save_ifs
9870 ;;
9871 esac
9872 else case e in #(
9873 e) pic_mode=default ;;
9874 esac
9875 fi
9876
9877 ;;
9878 esac
9879 fi
9880
9881
9882
9883
9884
9885
9886
9887
9888 # Check whether --enable-fast-install was given.
9889 if test ${enable_fast_install+y}
9890 then :
9891 enableval=$enable_fast_install; p=${PACKAGE-default}
9892 case $enableval in
9893 yes) enable_fast_install=yes ;;
9894 no) enable_fast_install=no ;;
9895 *)
9896 enable_fast_install=no
9897 # Look at the argument we got. We use all the common list separators.
9898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9899 for pkg in $enableval; do
9900 IFS=$lt_save_ifs
9901 if test "X$pkg" = "X$p"; then
9902 enable_fast_install=yes
9903 fi
9904 done
9905 IFS=$lt_save_ifs
9906 ;;
9907 esac
9908 else case e in #(
9909 e) enable_fast_install=yes ;;
9910 esac
9911 fi
9912
9913
9914
9915
9916
9917
9918
9919
9920 shared_archive_member_spec=
9921 case $host,$enable_shared in
9922 power*-*-aix[5-9]*,yes)
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9924 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9925 # Check whether --enable-aix-soname was given.
9926 if test ${enable_aix_soname+y}
9927 then :
9928 enableval=$enable_aix_soname; case $enableval in
9929 aix|svr4|both)
9930 ;;
9931 *)
9932 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9933 ;;
9934 esac
9935 lt_cv_with_aix_soname=$enable_aix_soname
9936 else case e in #(
9937 e) # Check whether --with-aix-soname was given.
9938 if test ${with_aix_soname+y}
9939 then :
9940 withval=$with_aix_soname; case $withval in
9941 aix|svr4|both)
9942 ;;
9943 *)
9944 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9945 ;;
9946 esac
9947 lt_cv_with_aix_soname=$with_aix_soname
9948 else case e in #(
9949 e) if test ${lt_cv_with_aix_soname+y}
9950 then :
9951 printf %s "(cached) " >&6
9952 else case e in #(
9953 e) lt_cv_with_aix_soname=aix ;;
9954 esac
9955 fi
9956 ;;
9957 esac
9958 fi
9959
9960 enable_aix_soname=$lt_cv_with_aix_soname ;;
9961 esac
9962 fi
9963
9964 with_aix_soname=$enable_aix_soname
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9966 printf "%s\n" "$with_aix_soname" >&6; }
9967 if test aix != "$with_aix_soname"; then
9968 # For the AIX way of multilib, we name the shared archive member
9969 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9970 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9971 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9972 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9973 if test 64 = "${OBJECT_MODE-32}"; then
9974 shared_archive_member_spec=shr_64
9975 else
9976 shared_archive_member_spec=shr
9977 fi
9978 fi
9979 ;;
9980 *)
9981 with_aix_soname=aix
9982 ;;
9983 esac
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994 # This can be used to rebuild libtool when needed
9995 LIBTOOL_DEPS=$ltmain
9996
9997 # Always use our own libtool.
9998 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029 test -z "$LN_S" && LN_S="ln -s"
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 if test -n "${ZSH_VERSION+set}"; then
10045 setopt NO_GLOB_SUBST
10046 fi
10047
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10049 printf %s "checking for objdir... " >&6; }
10050 if test ${lt_cv_objdir+y}
10051 then :
10052 printf %s "(cached) " >&6
10053 else case e in #(
10054 e) rm -f .libs 2>/dev/null
10055 mkdir .libs 2>/dev/null
10056 if test -d .libs; then
10057 lt_cv_objdir=.libs
10058 else
10059 # MS-DOS does not allow filenames that begin with a dot.
10060 lt_cv_objdir=_libs
10061 fi
10062 rmdir .libs 2>/dev/null ;;
10063 esac
10064 fi
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10066 printf "%s\n" "$lt_cv_objdir" >&6; }
10067 objdir=$lt_cv_objdir
10068
10069
10070
10071
10072
10073 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10074
10075
10076
10077
10078 case $host_os in
10079 aix3*)
10080 # AIX sometimes has problems with the GCC collect2 program. For some
10081 # reason, if we set the COLLECT_NAMES environment variable, the problems
10082 # vanish in a puff of smoke.
10083 if test set != "${COLLECT_NAMES+set}"; then
10084 COLLECT_NAMES=
10085 export COLLECT_NAMES
10086 fi
10087 ;;
10088 esac
10089
10090 # Global variables:
10091 ofile=libtool
10092 can_build_shared=yes
10093
10094 # All known linkers require a '.a' archive for static linking (except MSVC and
10095 # ICC, which need '.lib').
10096 libext=a
10097
10098 with_gnu_ld=$lt_cv_prog_gnu_ld
10099
10100 old_CC=$CC
10101 old_CFLAGS=$CFLAGS
10102
10103 # Set sane defaults for various variables
10104 test -z "$CC" && CC=cc
10105 test -z "$LTCC" && LTCC=$CC
10106 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10107 test -z "$LD" && LD=ld
10108 test -z "$ac_objext" && ac_objext=o
10109
10110 func_cc_basename $compiler
10111 cc_basename=$func_cc_basename_result
10112
10113
10114 # Only perform the check for file, if the check method requires it
10115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10116 case $deplibs_check_method in
10117 file_magic*)
10118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10120 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10121 if test ${lt_cv_path_MAGIC_CMD+y}
10122 then :
10123 printf %s "(cached) " >&6
10124 else case e in #(
10125 e) case $MAGIC_CMD in
10126 [\\/*] | ?:[\\/]*)
10127 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10128 ;;
10129 *)
10130 lt_save_MAGIC_CMD=$MAGIC_CMD
10131 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10132 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10133 for ac_dir in $ac_dummy; do
10134 IFS=$lt_save_ifs
10135 test -z "$ac_dir" && ac_dir=.
10136 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10137 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10138 if test -n "$file_magic_test_file"; then
10139 case $deplibs_check_method in
10140 "file_magic "*)
10141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10142 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10144 $EGREP "$file_magic_regex" > /dev/null; then
10145 :
10146 else
10147 cat <<_LT_EOF 1>&2
10148
10149 *** Warning: the command libtool uses to detect shared libraries,
10150 *** $file_magic_cmd, produces output that libtool cannot recognize.
10151 *** The result is that libtool may fail to recognize shared libraries
10152 *** as such. This will affect the creation of libtool libraries that
10153 *** depend on shared libraries, but programs linked with such libtool
10154 *** libraries will work regardless of this problem. Nevertheless, you
10155 *** may want to report the problem to your system manager and/or to
10156 *** [email protected]
10157
10158 _LT_EOF
10159 fi ;;
10160 esac
10161 fi
10162 break
10163 fi
10164 done
10165 IFS=$lt_save_ifs
10166 MAGIC_CMD=$lt_save_MAGIC_CMD
10167 ;;
10168 esac ;;
10169 esac
10170 fi
10171
10172 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10173 if test -n "$MAGIC_CMD"; then
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10175 printf "%s\n" "$MAGIC_CMD" >&6; }
10176 else
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 printf "%s\n" "no" >&6; }
10179 fi
10180
10181
10182
10183
10184
10185 if test -z "$lt_cv_path_MAGIC_CMD"; then
10186 if test -n "$ac_tool_prefix"; then
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10188 printf %s "checking for file... " >&6; }
10189 if test ${lt_cv_path_MAGIC_CMD+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else case e in #(
10193 e) case $MAGIC_CMD in
10194 [\\/*] | ?:[\\/]*)
10195 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10196 ;;
10197 *)
10198 lt_save_MAGIC_CMD=$MAGIC_CMD
10199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10201 for ac_dir in $ac_dummy; do
10202 IFS=$lt_save_ifs
10203 test -z "$ac_dir" && ac_dir=.
10204 if test -f "$ac_dir/file"; then
10205 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10206 if test -n "$file_magic_test_file"; then
10207 case $deplibs_check_method in
10208 "file_magic "*)
10209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10210 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10212 $EGREP "$file_magic_regex" > /dev/null; then
10213 :
10214 else
10215 cat <<_LT_EOF 1>&2
10216
10217 *** Warning: the command libtool uses to detect shared libraries,
10218 *** $file_magic_cmd, produces output that libtool cannot recognize.
10219 *** The result is that libtool may fail to recognize shared libraries
10220 *** as such. This will affect the creation of libtool libraries that
10221 *** depend on shared libraries, but programs linked with such libtool
10222 *** libraries will work regardless of this problem. Nevertheless, you
10223 *** may want to report the problem to your system manager and/or to
10224 *** [email protected]
10225
10226 _LT_EOF
10227 fi ;;
10228 esac
10229 fi
10230 break
10231 fi
10232 done
10233 IFS=$lt_save_ifs
10234 MAGIC_CMD=$lt_save_MAGIC_CMD
10235 ;;
10236 esac ;;
10237 esac
10238 fi
10239
10240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10241 if test -n "$MAGIC_CMD"; then
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10243 printf "%s\n" "$MAGIC_CMD" >&6; }
10244 else
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10246 printf "%s\n" "no" >&6; }
10247 fi
10248
10249
10250 else
10251 MAGIC_CMD=:
10252 fi
10253 fi
10254
10255 fi
10256 ;;
10257 esac
10258
10259 # Use C for the default configuration in the libtool script
10260
10261 lt_save_CC=$CC
10262 ac_ext=c
10263 ac_cpp='$CPP $CPPFLAGS'
10264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10267
10268
10269 # Source file extension for C test sources.
10270 ac_ext=c
10271
10272 # Object file extension for compiled C test sources.
10273 objext=o
10274 objext=$objext
10275
10276 # Code to be used in simple compile tests
10277 lt_simple_compile_test_code="int some_variable = 0;"
10278
10279 # Code to be used in simple link tests
10280 lt_simple_link_test_code='int main(void){return(0);}'
10281
10282
10283
10284
10285
10286
10287
10288 # If no C compiler was specified, use CC.
10289 LTCC=${LTCC-"$CC"}
10290
10291 # If no C compiler flags were specified, use CFLAGS.
10292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10293
10294 # Allow CC to be a program name with arguments.
10295 compiler=$CC
10296
10297 # Save the default compiler, since it gets overwritten when the other
10298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10299 compiler_DEFAULT=$CC
10300
10301 # save warnings/boilerplate of simple test code
10302 ac_outfile=conftest.$ac_objext
10303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10305 _lt_compiler_boilerplate=`cat conftest.err`
10306 $RM conftest*
10307
10308 ac_outfile=conftest.$ac_objext
10309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10311 _lt_linker_boilerplate=`cat conftest.err`
10312 $RM -r conftest*
10313
10314
10315 ## CAVEAT EMPTOR:
10316 ## There is no encapsulation within the following macros, do not change
10317 ## the running order or otherwise move them around unless you know exactly
10318 ## what you are doing...
10319 if test -n "$compiler"; then
10320
10321 lt_prog_compiler_no_builtin_flag=
10322
10323 if test yes = "$GCC"; then
10324 case $cc_basename in
10325 nvcc*)
10326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10327 *)
10328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10329 esac
10330
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10332 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10333 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10334 then :
10335 printf %s "(cached) " >&6
10336 else case e in #(
10337 e) lt_cv_prog_compiler_rtti_exceptions=no
10338 ac_outfile=conftest.$ac_objext
10339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10341 # Insert the option either (1) after the last *FLAGS variable, or
10342 # (2) before a word containing "conftest.", or (3) at the end.
10343 # Note that $ac_compile itself does not contain backslashes and begins
10344 # with a dollar sign (not a hyphen), so the echo should work correctly.
10345 # The option is referenced via a variable to avoid confusing sed.
10346 lt_compile=`echo "$ac_compile" | $SED \
10347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10349 -e 's:$: $lt_compiler_flag:'`
10350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10351 (eval "$lt_compile" 2>conftest.err)
10352 ac_status=$?
10353 cat conftest.err >&5
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 if (exit $ac_status) && test -s "$ac_outfile"; then
10356 # The compiler can only warn and ignore the option if not recognized
10357 # So say no if there are warnings other than the usual output.
10358 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10361 lt_cv_prog_compiler_rtti_exceptions=yes
10362 fi
10363 fi
10364 $RM conftest*
10365 ;;
10366 esac
10367 fi
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10369 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10370
10371 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10372 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10373 else
10374 :
10375 fi
10376
10377 fi
10378
10379
10380
10381
10382
10383
10384 lt_prog_compiler_wl=
10385 lt_prog_compiler_pic=
10386 lt_prog_compiler_static=
10387
10388
10389 if test yes = "$GCC"; then
10390 lt_prog_compiler_wl='-Wl,'
10391 lt_prog_compiler_static='-static'
10392
10393 case $host_os in
10394 aix*)
10395 # All AIX code is PIC.
10396 if test ia64 = "$host_cpu"; then
10397 # AIX 5 now supports IA64 processor
10398 lt_prog_compiler_static='-Bstatic'
10399 fi
10400 lt_prog_compiler_pic='-fPIC'
10401 ;;
10402
10403 amigaos*)
10404 case $host_cpu in
10405 powerpc)
10406 # see comment about AmigaOS4 .so support
10407 lt_prog_compiler_pic='-fPIC'
10408 ;;
10409 m68k)
10410 # FIXME: we need at least 68020 code to build shared libraries, but
10411 # adding the '-m68020' flag to GCC prevents building anything better,
10412 # like '-m68040'.
10413 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10414 ;;
10415 esac
10416 ;;
10417
10418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10419 # PIC is the default for these OSes.
10420 ;;
10421
10422 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10423 # This hack is so that the source file can tell whether it is being
10424 # built for inclusion in a dll (and should export symbols for example).
10425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10426 # (--disable-auto-import) libraries
10427 lt_prog_compiler_pic='-DDLL_EXPORT'
10428 case $host_os in
10429 os2*)
10430 lt_prog_compiler_static='$wl-static'
10431 ;;
10432 esac
10433 ;;
10434
10435 darwin* | rhapsody*)
10436 # PIC is the default on this platform
10437 # Common symbols not allowed in MH_DYLIB files
10438 lt_prog_compiler_pic='-fno-common'
10439 ;;
10440
10441 haiku*)
10442 # PIC is the default for Haiku.
10443 # The "-static" flag exists, but is broken.
10444 lt_prog_compiler_static=
10445 ;;
10446
10447 hpux*)
10448 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10449 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10450 # sets the default TLS model and affects inlining.
10451 case $host_cpu in
10452 hppa*64*)
10453 # +Z the default
10454 ;;
10455 *)
10456 lt_prog_compiler_pic='-fPIC'
10457 ;;
10458 esac
10459 ;;
10460
10461 interix[3-9]*)
10462 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10463 # Instead, we relocate shared libraries at runtime.
10464 ;;
10465
10466 msdosdjgpp*)
10467 # Just because we use GCC doesn't mean we suddenly get shared libraries
10468 # on systems that don't support them.
10469 lt_prog_compiler_can_build_shared=no
10470 enable_shared=no
10471 ;;
10472
10473 *nto* | *qnx*)
10474 # QNX uses GNU C++, but need to define -shared option too, otherwise
10475 # it will coredump.
10476 lt_prog_compiler_pic='-fPIC -shared'
10477 ;;
10478
10479 sysv4*MP*)
10480 if test -d /usr/nec; then
10481 lt_prog_compiler_pic=-Kconform_pic
10482 fi
10483 ;;
10484
10485 *)
10486 lt_prog_compiler_pic='-fPIC'
10487 ;;
10488 esac
10489
10490 case $cc_basename in
10491 nvcc*) # Cuda Compiler Driver 2.2
10492 lt_prog_compiler_wl='-Xlinker '
10493 if test -n "$lt_prog_compiler_pic"; then
10494 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10495 fi
10496 ;;
10497 esac
10498 else
10499 # PORTME Check for flag to pass linker flags through the system compiler.
10500 case $host_os in
10501 aix*)
10502 lt_prog_compiler_wl='-Wl,'
10503 if test ia64 = "$host_cpu"; then
10504 # AIX 5 now supports IA64 processor
10505 lt_prog_compiler_static='-Bstatic'
10506 else
10507 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10508 fi
10509 ;;
10510
10511 darwin* | rhapsody*)
10512 # PIC is the default on this platform
10513 # Common symbols not allowed in MH_DYLIB files
10514 lt_prog_compiler_pic='-fno-common'
10515 case $cc_basename in
10516 nagfor*)
10517 # NAG Fortran compiler
10518 lt_prog_compiler_wl='-Wl,-Wl,,'
10519 lt_prog_compiler_pic='-PIC'
10520 lt_prog_compiler_static='-Bstatic'
10521 ;;
10522 esac
10523 ;;
10524
10525 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10526 # This hack is so that the source file can tell whether it is being
10527 # built for inclusion in a dll (and should export symbols for example).
10528 lt_prog_compiler_pic='-DDLL_EXPORT'
10529 case $host_os in
10530 os2*)
10531 lt_prog_compiler_static='$wl-static'
10532 ;;
10533 esac
10534 ;;
10535
10536 hpux9* | hpux10* | hpux11*)
10537 lt_prog_compiler_wl='-Wl,'
10538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10539 # not for PA HP-UX.
10540 case $host_cpu in
10541 hppa*64*|ia64*)
10542 # +Z the default
10543 ;;
10544 *)
10545 lt_prog_compiler_pic='+Z'
10546 ;;
10547 esac
10548 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10549 lt_prog_compiler_static='$wl-a ${wl}archive'
10550 ;;
10551
10552 irix5* | irix6* | nonstopux*)
10553 lt_prog_compiler_wl='-Wl,'
10554 # PIC (with -KPIC) is the default.
10555 lt_prog_compiler_static='-non_shared'
10556 ;;
10557
10558 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10559 case $cc_basename in
10560 # old Intel for x86_64, which still supported -KPIC.
10561 ecc*)
10562 lt_prog_compiler_wl='-Wl,'
10563 lt_prog_compiler_pic='-KPIC'
10564 lt_prog_compiler_static='-static'
10565 ;;
10566 *flang* | ftn | f18* | f95*)
10567 # Flang compiler.
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-fPIC'
10570 lt_prog_compiler_static='-static'
10571 ;;
10572 # flang / f18. f95 an alias for gfortran or flang on Debian
10573 flang* | f18* | f95*)
10574 lt_prog_compiler_wl='-Wl,'
10575 lt_prog_compiler_pic='-fPIC'
10576 lt_prog_compiler_static='-static'
10577 ;;
10578 # icc used to be incompatible with GCC.
10579 # ICC 10 doesn't accept -KPIC any more.
10580 icc* | ifort*)
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='-fPIC'
10583 lt_prog_compiler_static='-static'
10584 ;;
10585 # Lahey Fortran 8.1.
10586 lf95*)
10587 lt_prog_compiler_wl='-Wl,'
10588 lt_prog_compiler_pic='--shared'
10589 lt_prog_compiler_static='--static'
10590 ;;
10591 nagfor*)
10592 # NAG Fortran compiler
10593 lt_prog_compiler_wl='-Wl,-Wl,,'
10594 lt_prog_compiler_pic='-PIC'
10595 lt_prog_compiler_static='-Bstatic'
10596 ;;
10597 tcc*)
10598 # Fabrice Bellard et al's Tiny C Compiler
10599 lt_prog_compiler_wl='-Wl,'
10600 lt_prog_compiler_pic='-fPIC'
10601 lt_prog_compiler_static='-static'
10602 ;;
10603 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10604 # Portland Group compilers (*not* the Pentium gcc compiler,
10605 # which looks to be a dead project)
10606 lt_prog_compiler_wl='-Wl,'
10607 lt_prog_compiler_pic='-fpic'
10608 lt_prog_compiler_static='-Bstatic'
10609 ;;
10610 ccc*)
10611 lt_prog_compiler_wl='-Wl,'
10612 # All Alpha code is PIC.
10613 lt_prog_compiler_static='-non_shared'
10614 ;;
10615 xl* | bgxl* | bgf* | mpixl*)
10616 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10617 lt_prog_compiler_wl='-Wl,'
10618 lt_prog_compiler_pic='-qpic'
10619 lt_prog_compiler_static='-qstaticlink'
10620 ;;
10621 *)
10622 case `$CC -V 2>&1 | $SED 5q` in
10623 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10624 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10625 lt_prog_compiler_pic='-KPIC'
10626 lt_prog_compiler_static='-Bstatic'
10627 lt_prog_compiler_wl=''
10628 ;;
10629 *Sun\ F* | *Sun*Fortran*)
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 lt_prog_compiler_wl='-Qoption ld '
10633 ;;
10634 *Sun\ C*)
10635 # Sun C 5.9
10636 lt_prog_compiler_pic='-KPIC'
10637 lt_prog_compiler_static='-Bstatic'
10638 lt_prog_compiler_wl='-Wl,'
10639 ;;
10640 *Intel*\ [CF]*Compiler*)
10641 lt_prog_compiler_wl='-Wl,'
10642 lt_prog_compiler_pic='-fPIC'
10643 lt_prog_compiler_static='-static'
10644 ;;
10645 *Portland\ Group*)
10646 lt_prog_compiler_wl='-Wl,'
10647 lt_prog_compiler_pic='-fpic'
10648 lt_prog_compiler_static='-Bstatic'
10649 ;;
10650 esac
10651 ;;
10652 esac
10653 ;;
10654
10655 newsos6)
10656 lt_prog_compiler_pic='-KPIC'
10657 lt_prog_compiler_static='-Bstatic'
10658 ;;
10659
10660 *-mlibc)
10661 lt_prog_compiler_wl='-Wl,'
10662 lt_prog_compiler_pic='-fPIC'
10663 lt_prog_compiler_static='-static'
10664 ;;
10665
10666 *nto* | *qnx*)
10667 # QNX uses GNU C++, but need to define -shared option too, otherwise
10668 # it will coredump.
10669 lt_prog_compiler_pic='-fPIC -shared'
10670 ;;
10671
10672 osf3* | osf4* | osf5*)
10673 lt_prog_compiler_wl='-Wl,'
10674 # All OSF/1 code is PIC.
10675 lt_prog_compiler_static='-non_shared'
10676 ;;
10677
10678 rdos*)
10679 lt_prog_compiler_static='-non_shared'
10680 ;;
10681
10682 serenity*)
10683 ;;
10684
10685 solaris*)
10686 lt_prog_compiler_pic='-KPIC'
10687 lt_prog_compiler_static='-Bstatic'
10688 case $cc_basename in
10689 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10690 lt_prog_compiler_wl='-Qoption ld ';;
10691 *)
10692 lt_prog_compiler_wl='-Wl,';;
10693 esac
10694 ;;
10695
10696 sunos4*)
10697 lt_prog_compiler_wl='-Qoption ld '
10698 lt_prog_compiler_pic='-PIC'
10699 lt_prog_compiler_static='-Bstatic'
10700 ;;
10701
10702 sysv4 | sysv4.2uw2* | sysv4.3*)
10703 lt_prog_compiler_wl='-Wl,'
10704 lt_prog_compiler_pic='-KPIC'
10705 lt_prog_compiler_static='-Bstatic'
10706 ;;
10707
10708 sysv4*MP*)
10709 if test -d /usr/nec; then
10710 lt_prog_compiler_pic='-Kconform_pic'
10711 lt_prog_compiler_static='-Bstatic'
10712 fi
10713 ;;
10714
10715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10716 lt_prog_compiler_wl='-Wl,'
10717 lt_prog_compiler_pic='-KPIC'
10718 lt_prog_compiler_static='-Bstatic'
10719 ;;
10720
10721 unicos*)
10722 lt_prog_compiler_wl='-Wl,'
10723 lt_prog_compiler_can_build_shared=no
10724 ;;
10725
10726 uts4*)
10727 lt_prog_compiler_pic='-pic'
10728 lt_prog_compiler_static='-Bstatic'
10729 ;;
10730
10731 *)
10732 lt_prog_compiler_can_build_shared=no
10733 ;;
10734 esac
10735 fi
10736
10737 case $host_os in
10738 # For platforms that do not support PIC, -DPIC is meaningless:
10739 *djgpp*)
10740 lt_prog_compiler_pic=
10741 ;;
10742 *)
10743 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10744 ;;
10745 esac
10746
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10748 printf %s "checking for $compiler option to produce PIC... " >&6; }
10749 if test ${lt_cv_prog_compiler_pic+y}
10750 then :
10751 printf %s "(cached) " >&6
10752 else case e in #(
10753 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10754 esac
10755 fi
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10757 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10758 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10759
10760 #
10761 # Check to make sure the PIC flag actually works.
10762 #
10763 if test -n "$lt_prog_compiler_pic"; then
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10765 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10766 if test ${lt_cv_prog_compiler_pic_works+y}
10767 then :
10768 printf %s "(cached) " >&6
10769 else case e in #(
10770 e) lt_cv_prog_compiler_pic_works=no
10771 ac_outfile=conftest.$ac_objext
10772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10773 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10774 # Insert the option either (1) after the last *FLAGS variable, or
10775 # (2) before a word containing "conftest.", or (3) at the end.
10776 # Note that $ac_compile itself does not contain backslashes and begins
10777 # with a dollar sign (not a hyphen), so the echo should work correctly.
10778 # The option is referenced via a variable to avoid confusing sed.
10779 lt_compile=`echo "$ac_compile" | $SED \
10780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10782 -e 's:$: $lt_compiler_flag:'`
10783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10784 (eval "$lt_compile" 2>conftest.err)
10785 ac_status=$?
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 if (exit $ac_status) && test -s "$ac_outfile"; then
10789 # The compiler can only warn and ignore the option if not recognized
10790 # So say no if there are warnings other than the usual output.
10791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler_pic_works=yes
10795 fi
10796 fi
10797 $RM conftest*
10798 ;;
10799 esac
10800 fi
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10802 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10803
10804 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10805 case $lt_prog_compiler_pic in
10806 "" | " "*) ;;
10807 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10808 esac
10809 else
10810 lt_prog_compiler_pic=
10811 lt_prog_compiler_can_build_shared=no
10812 fi
10813
10814 fi
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826 #
10827 # Check to make sure the static flag actually works.
10828 #
10829 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10831 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10832 if test ${lt_cv_prog_compiler_static_works+y}
10833 then :
10834 printf %s "(cached) " >&6
10835 else case e in #(
10836 e) lt_cv_prog_compiler_static_works=no
10837 save_LDFLAGS=$LDFLAGS
10838 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10839 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10840 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10841 # The linker can only warn and ignore the option if not recognized
10842 # So say no if there are warnings
10843 if test -s conftest.err; then
10844 # Append any errors to the config.log.
10845 cat conftest.err 1>&5
10846 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10848 if diff conftest.exp conftest.er2 >/dev/null; then
10849 lt_cv_prog_compiler_static_works=yes
10850 fi
10851 else
10852 lt_cv_prog_compiler_static_works=yes
10853 fi
10854 fi
10855 $RM -r conftest*
10856 LDFLAGS=$save_LDFLAGS
10857 ;;
10858 esac
10859 fi
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10861 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10862
10863 if test yes = "$lt_cv_prog_compiler_static_works"; then
10864 :
10865 else
10866 lt_prog_compiler_static=
10867 fi
10868
10869
10870
10871
10872
10873
10874
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10876 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10877 if test ${lt_cv_prog_compiler_c_o+y}
10878 then :
10879 printf %s "(cached) " >&6
10880 else case e in #(
10881 e) lt_cv_prog_compiler_c_o=no
10882 $RM -r conftest 2>/dev/null
10883 mkdir conftest
10884 cd conftest
10885 mkdir out
10886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10887
10888 lt_compiler_flag="-o out/conftest2.$ac_objext"
10889 # Insert the option either (1) after the last *FLAGS variable, or
10890 # (2) before a word containing "conftest.", or (3) at the end.
10891 # Note that $ac_compile itself does not contain backslashes and begins
10892 # with a dollar sign (not a hyphen), so the echo should work correctly.
10893 lt_compile=`echo "$ac_compile" | $SED \
10894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10896 -e 's:$: $lt_compiler_flag:'`
10897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10898 (eval "$lt_compile" 2>out/conftest.err)
10899 ac_status=$?
10900 cat out/conftest.err >&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10903 then
10904 # The compiler can only warn and ignore the option if not recognized
10905 # So say no if there are warnings
10906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10909 lt_cv_prog_compiler_c_o=yes
10910 fi
10911 fi
10912 chmod u+w . 2>&5
10913 $RM conftest*
10914 # SGI C++ compiler will create directory out/ii_files/ for
10915 # template instantiation
10916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10917 $RM out/* && rmdir out
10918 cd ..
10919 $RM -r conftest
10920 $RM conftest*
10921 ;;
10922 esac
10923 fi
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10925 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10926
10927
10928
10929
10930
10931
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10933 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10934 if test ${lt_cv_prog_compiler_c_o+y}
10935 then :
10936 printf %s "(cached) " >&6
10937 else case e in #(
10938 e) lt_cv_prog_compiler_c_o=no
10939 $RM -r conftest 2>/dev/null
10940 mkdir conftest
10941 cd conftest
10942 mkdir out
10943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10944
10945 lt_compiler_flag="-o out/conftest2.$ac_objext"
10946 # Insert the option either (1) after the last *FLAGS variable, or
10947 # (2) before a word containing "conftest.", or (3) at the end.
10948 # Note that $ac_compile itself does not contain backslashes and begins
10949 # with a dollar sign (not a hyphen), so the echo should work correctly.
10950 lt_compile=`echo "$ac_compile" | $SED \
10951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10953 -e 's:$: $lt_compiler_flag:'`
10954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10955 (eval "$lt_compile" 2>out/conftest.err)
10956 ac_status=$?
10957 cat out/conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10960 then
10961 # The compiler can only warn and ignore the option if not recognized
10962 # So say no if there are warnings
10963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10966 lt_cv_prog_compiler_c_o=yes
10967 fi
10968 fi
10969 chmod u+w . 2>&5
10970 $RM conftest*
10971 # SGI C++ compiler will create directory out/ii_files/ for
10972 # template instantiation
10973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10974 $RM out/* && rmdir out
10975 cd ..
10976 $RM -r conftest
10977 $RM conftest*
10978 ;;
10979 esac
10980 fi
10981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10982 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10983
10984
10985
10986
10987 hard_links=nottested
10988 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10989 # do not overwrite the value of need_locks provided by the user
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10991 printf %s "checking if we can lock with hard links... " >&6; }
10992 hard_links=yes
10993 $RM conftest*
10994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10995 touch conftest.a
10996 ln conftest.a conftest.b 2>&5 || hard_links=no
10997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10999 printf "%s\n" "$hard_links" >&6; }
11000 if test no = "$hard_links"; then
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11002 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11003 need_locks=warn
11004 fi
11005 else
11006 need_locks=no
11007 fi
11008
11009
11010
11011
11012
11013
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11015 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11016
11017 runpath_var=
11018 allow_undefined_flag=
11019 always_export_symbols=no
11020 archive_cmds=
11021 archive_expsym_cmds=
11022 compiler_needs_object=no
11023 enable_shared_with_static_runtimes=no
11024 export_dynamic_flag_spec=
11025 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11026 hardcode_automatic=no
11027 hardcode_direct=no
11028 hardcode_direct_absolute=no
11029 hardcode_libdir_flag_spec=
11030 hardcode_libdir_separator=
11031 hardcode_minus_L=no
11032 hardcode_shlibpath_var=unsupported
11033 inherit_rpath=no
11034 link_all_deplibs=unknown
11035 module_cmds=
11036 module_expsym_cmds=
11037 old_archive_from_new_cmds=
11038 old_archive_from_expsyms_cmds=
11039 thread_safe_flag_spec=
11040 whole_archive_flag_spec=
11041 # include_expsyms should be a list of space-separated symbols to be *always*
11042 # included in the symbol list
11043 include_expsyms=
11044 # exclude_expsyms can be an extended regexp of symbols to exclude
11045 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11046 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11047 # as well as any symbol that contains 'd'.
11048 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11050 # platforms (ab)use it in PIC code, but their linkers get confused if
11051 # the symbol is explicitly referenced. Since portable code cannot
11052 # rely on this symbol name, it's probably fine to never include it in
11053 # preloaded symbol tables.
11054 # Exclude shared library initialization/finalization symbols.
11055 extract_expsyms_cmds=
11056
11057 case $host_os in
11058 cygwin* | mingw* | windows* | pw32* | cegcc*)
11059 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11060 # When not using gcc, we currently assume that we are using
11061 # Microsoft Visual C++ or Intel C++ Compiler.
11062 if test yes != "$GCC"; then
11063 with_gnu_ld=no
11064 fi
11065 ;;
11066 interix*)
11067 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11068 with_gnu_ld=yes
11069 ;;
11070 linux* | k*bsd*-gnu | gnu*)
11071 link_all_deplibs=no
11072 ;;
11073 esac
11074
11075 ld_shlibs=yes
11076
11077 # On some targets, GNU ld is compatible enough with the native linker
11078 # that we're better off using the native interface for both.
11079 lt_use_gnu_ld_interface=no
11080 if test yes = "$with_gnu_ld"; then
11081 case $host_os in
11082 aix*)
11083 # The AIX port of GNU ld has always aspired to compatibility
11084 # with the native linker. However, as the warning in the GNU ld
11085 # block says, versions before 2.19.5* couldn't really create working
11086 # shared libraries, regardless of the interface used.
11087 case `$LD -v 2>&1` in
11088 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11089 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11090 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11091 *)
11092 lt_use_gnu_ld_interface=yes
11093 ;;
11094 esac
11095 ;;
11096 *)
11097 lt_use_gnu_ld_interface=yes
11098 ;;
11099 esac
11100 fi
11101
11102 if test yes = "$lt_use_gnu_ld_interface"; then
11103 # If archive_cmds runs LD, not CC, wlarc should be empty
11104 wlarc='$wl'
11105
11106 # Set some defaults for GNU ld with shared library support. These
11107 # are reset later if shared libraries are not supported. Putting them
11108 # here allows them to be overridden if necessary.
11109 runpath_var=LD_RUN_PATH
11110 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11111 export_dynamic_flag_spec='$wl--export-dynamic'
11112 # ancient GNU ld didn't support --whole-archive et. al.
11113 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11114 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11115 else
11116 whole_archive_flag_spec=
11117 fi
11118 supports_anon_versioning=no
11119 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11120 *GNU\ gold*) supports_anon_versioning=yes ;;
11121 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11122 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11123 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11124 *\ 2.11.*) ;; # other 2.11 versions
11125 *) supports_anon_versioning=yes ;;
11126 esac
11127
11128 # See if GNU ld supports shared libraries.
11129 case $host_os in
11130 aix[3-9]*)
11131 # On AIX/PPC, the GNU linker is very broken
11132 if test ia64 != "$host_cpu"; then
11133 ld_shlibs=no
11134 cat <<_LT_EOF 1>&2
11135
11136 *** Warning: the GNU linker, at least up to release 2.19, is reported
11137 *** to be unable to reliably create shared libraries on AIX.
11138 *** Therefore, libtool is disabling shared libraries support. If you
11139 *** really care for shared libraries, you may want to install binutils
11140 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11141 *** You will then need to restart the configuration process.
11142
11143 _LT_EOF
11144 fi
11145 ;;
11146
11147 amigaos*)
11148 case $host_cpu in
11149 powerpc)
11150 # see comment about AmigaOS4 .so support
11151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11152 archive_expsym_cmds=''
11153 ;;
11154 m68k)
11155 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)'
11156 hardcode_libdir_flag_spec='-L$libdir'
11157 hardcode_minus_L=yes
11158 ;;
11159 esac
11160 ;;
11161
11162 beos*)
11163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11164 allow_undefined_flag=unsupported
11165 # Joseph Beckenbach <[email protected]> says some releases of gcc
11166 # support --undefined. This deserves some investigation. FIXME
11167 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11168 else
11169 ld_shlibs=no
11170 fi
11171 ;;
11172
11173 cygwin* | mingw* | windows* | pw32* | cegcc*)
11174 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11175 # as there is no search path for DLLs.
11176 hardcode_libdir_flag_spec='-L$libdir'
11177 export_dynamic_flag_spec='$wl--export-all-symbols'
11178 allow_undefined_flag=unsupported
11179 always_export_symbols=no
11180 enable_shared_with_static_runtimes=yes
11181 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'
11182 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11183 file_list_spec='@'
11184
11185 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11187 # If the export-symbols file already is a .def file, use it as
11188 # is; otherwise, prepend EXPORTS...
11189 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11190 cp $export_symbols $output_objdir/$soname.def;
11191 else
11192 echo EXPORTS > $output_objdir/$soname.def;
11193 cat $export_symbols >> $output_objdir/$soname.def;
11194 fi~
11195 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11196 else
11197 ld_shlibs=no
11198 fi
11199 ;;
11200
11201 haiku*)
11202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11203 link_all_deplibs=no
11204 ;;
11205
11206 os2*)
11207 hardcode_libdir_flag_spec='-L$libdir'
11208 hardcode_minus_L=yes
11209 allow_undefined_flag=unsupported
11210 shrext_cmds=.dll
11211 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11214 $ECHO EXPORTS >> $output_objdir/$libname.def~
11215 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11217 emximp -o $lib $output_objdir/$libname.def'
11218 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11219 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11220 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11221 $ECHO EXPORTS >> $output_objdir/$libname.def~
11222 prefix_cmds="$SED"~
11223 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11224 prefix_cmds="$prefix_cmds -e 1d";
11225 fi~
11226 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11227 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11229 emximp -o $lib $output_objdir/$libname.def'
11230 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11231 enable_shared_with_static_runtimes=yes
11232 file_list_spec='@'
11233 ;;
11234
11235 interix[3-9]*)
11236 hardcode_direct=no
11237 hardcode_shlibpath_var=no
11238 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11239 export_dynamic_flag_spec='$wl-E'
11240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11241 # Instead, shared libraries are loaded at an image base (0x10000000 by
11242 # default) and relocated if they conflict, which is a slow very memory
11243 # consuming and fragmenting process. To avoid this, we pick a random,
11244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11247 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'
11248 ;;
11249
11250 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11251 tmp_diet=no
11252 if test linux-dietlibc = "$host_os"; then
11253 case $cc_basename in
11254 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11255 esac
11256 fi
11257 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11258 && test no = "$tmp_diet"
11259 then
11260 tmp_addflag=' $pic_flag'
11261 tmp_sharedflag='-shared'
11262 case $cc_basename,$host_cpu in
11263 pgcc*) # Portland Group C compiler
11264 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'
11265 tmp_addflag=' $pic_flag'
11266 ;;
11267 pgf77* | pgf90* | pgf95* | pgfortran*)
11268 # Portland Group f77 and f90 compilers
11269 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'
11270 tmp_addflag=' $pic_flag -Mnomain' ;;
11271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11272 tmp_addflag=' -i_dynamic' ;;
11273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11274 tmp_addflag=' -i_dynamic -nofor_main' ;;
11275 ifc* | ifort*) # Intel Fortran compiler
11276 tmp_addflag=' -nofor_main' ;;
11277 lf95*) # Lahey Fortran 8.1
11278 whole_archive_flag_spec=
11279 tmp_sharedflag='--shared' ;;
11280 nagfor*) # NAGFOR 5.3
11281 tmp_sharedflag='-Wl,-shared' ;;
11282 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11283 tmp_sharedflag='-qmkshrobj'
11284 tmp_addflag= ;;
11285 nvcc*) # Cuda Compiler Driver 2.2
11286 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'
11287 compiler_needs_object=yes
11288 ;;
11289 esac
11290 case `$CC -V 2>&1 | $SED 5q` in
11291 *Sun\ C*) # Sun C 5.9
11292 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'
11293 compiler_needs_object=yes
11294 tmp_sharedflag='-G' ;;
11295 *Sun\ F*) # Sun Fortran 8.3
11296 tmp_sharedflag='-G' ;;
11297 esac
11298 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11299
11300 if test yes = "$supports_anon_versioning"; then
11301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11302 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11303 echo "local: *; };" >> $output_objdir/$libname.ver~
11304 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11305 fi
11306
11307 case $cc_basename in
11308 tcc*)
11309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11310 export_dynamic_flag_spec='-rdynamic'
11311 ;;
11312 xlf* | bgf* | bgxlf* | mpixlf*)
11313 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11314 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11315 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11316 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11317 if test yes = "$supports_anon_versioning"; then
11318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11319 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11320 echo "local: *; };" >> $output_objdir/$libname.ver~
11321 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11322 fi
11323 ;;
11324 esac
11325 else
11326 ld_shlibs=no
11327 fi
11328 ;;
11329
11330 *-mlibc)
11331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11332 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11333 ;;
11334
11335 netbsd* | netbsdelf*-gnu)
11336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11337 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11338 wlarc=
11339 else
11340 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11341 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11342 fi
11343 ;;
11344
11345 solaris*)
11346 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11347 ld_shlibs=no
11348 cat <<_LT_EOF 1>&2
11349
11350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11351 *** create shared libraries on Solaris systems. Therefore, libtool
11352 *** is disabling shared libraries support. We urge you to upgrade GNU
11353 *** binutils to release 2.9.1 or newer. Another option is to modify
11354 *** your PATH or compiler configuration so that the native linker is
11355 *** used, and then restart.
11356
11357 _LT_EOF
11358 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11359 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11360 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11361 else
11362 ld_shlibs=no
11363 fi
11364 ;;
11365
11366 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11367 case `$LD -v 2>&1` in
11368 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11369 ld_shlibs=no
11370 cat <<_LT_EOF 1>&2
11371
11372 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11373 *** reliably create shared libraries on SCO systems. Therefore, libtool
11374 *** is disabling shared libraries support. We urge you to upgrade GNU
11375 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11376 *** your PATH or compiler configuration so that the native linker is
11377 *** used, and then restart.
11378
11379 _LT_EOF
11380 ;;
11381 *)
11382 # For security reasons, it is highly recommended that you always
11383 # use absolute paths for naming shared libraries, and exclude the
11384 # DT_RUNPATH tag from executables and libraries. But doing so
11385 # requires that you compile everything twice, which is a pain.
11386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11387 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11388 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11389 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11390 else
11391 ld_shlibs=no
11392 fi
11393 ;;
11394 esac
11395 ;;
11396
11397 sunos4*)
11398 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11399 wlarc=
11400 hardcode_direct=yes
11401 hardcode_shlibpath_var=no
11402 ;;
11403
11404 *)
11405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11407 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11408 else
11409 ld_shlibs=no
11410 fi
11411 ;;
11412 esac
11413
11414 if test no = "$ld_shlibs"; then
11415 runpath_var=
11416 hardcode_libdir_flag_spec=
11417 export_dynamic_flag_spec=
11418 whole_archive_flag_spec=
11419 fi
11420 else
11421 # PORTME fill in a description of your system's linker (not GNU ld)
11422 case $host_os in
11423 aix3*)
11424 allow_undefined_flag=unsupported
11425 always_export_symbols=yes
11426 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'
11427 # Note: this linker hardcodes the directories in LIBPATH if there
11428 # are no directories specified by -L.
11429 hardcode_minus_L=yes
11430 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11431 # Neither direct hardcoding nor static linking is supported with a
11432 # broken collect2.
11433 hardcode_direct=unsupported
11434 fi
11435 ;;
11436
11437 aix[4-9]*)
11438 if test ia64 = "$host_cpu"; then
11439 # On IA64, the linker does run time linking by default, so we don't
11440 # have to do anything special.
11441 aix_use_runtimelinking=no
11442 exp_sym_flag='-Bexport'
11443 no_entry_flag=
11444 else
11445 # If we're using GNU nm, then we don't want the "-C" option.
11446 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11447 # Without the "-l" option, or with the "-B" option, AIX nm treats
11448 # weak defined symbols like other global defined symbols, whereas
11449 # GNU nm marks them as "W".
11450 # While the 'weak' keyword is ignored in the Export File, we need
11451 # it in the Import File for the 'aix-soname' feature, so we have
11452 # to replace the "-B" option with "-P" for AIX nm.
11453 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11454 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'
11455 else
11456 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'
11457 fi
11458 aix_use_runtimelinking=no
11459
11460 # Test if we are trying to use run time linking or normal
11461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11462 # have runtime linking enabled, and use it for executables.
11463 # For shared libraries, we enable/disable runtime linking
11464 # depending on the kind of the shared library created -
11465 # when "with_aix_soname,aix_use_runtimelinking" is:
11466 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11467 # "aix,yes" lib.so shared, rtl:yes, for executables
11468 # lib.a static archive
11469 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11470 # lib.a(lib.so.V) shared, rtl:no, for executables
11471 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11472 # lib.a(lib.so.V) shared, rtl:no
11473 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11474 # lib.a static archive
11475 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11476 for ld_flag in $LDFLAGS; do
11477 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11478 aix_use_runtimelinking=yes
11479 break
11480 fi
11481 done
11482 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11483 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11484 # so we don't have lib.a shared libs to link our executables.
11485 # We have to force runtime linking in this case.
11486 aix_use_runtimelinking=yes
11487 LDFLAGS="$LDFLAGS -Wl,-brtl"
11488 fi
11489 ;;
11490 esac
11491
11492 exp_sym_flag='-bexport'
11493 no_entry_flag='-bnoentry'
11494 fi
11495
11496 # When large executables or shared objects are built, AIX ld can
11497 # have problems creating the table of contents. If linking a library
11498 # or program results in "error TOC overflow" add -mminimal-toc to
11499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11501
11502 archive_cmds=''
11503 hardcode_direct=yes
11504 hardcode_direct_absolute=yes
11505 hardcode_libdir_separator=':'
11506 link_all_deplibs=yes
11507 file_list_spec='$wl-f,'
11508 case $with_aix_soname,$aix_use_runtimelinking in
11509 aix,*) ;; # traditional, no import file
11510 svr4,* | *,yes) # use import file
11511 # The Import File defines what to hardcode.
11512 hardcode_direct=no
11513 hardcode_direct_absolute=no
11514 ;;
11515 esac
11516
11517 if test yes = "$GCC"; then
11518 case $host_os in aix4.[012]|aix4.[012].*)
11519 # We only want to do this on AIX 4.2 and lower, the check
11520 # below for broken collect2 doesn't work under 4.3+
11521 collect2name=`$CC -print-prog-name=collect2`
11522 if test -f "$collect2name" &&
11523 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11524 then
11525 # We have reworked collect2
11526 :
11527 else
11528 # We have old collect2
11529 hardcode_direct=unsupported
11530 # It fails to find uninstalled libraries when the uninstalled
11531 # path is not listed in the libpath. Setting hardcode_minus_L
11532 # to unsupported forces relinking
11533 hardcode_minus_L=yes
11534 hardcode_libdir_flag_spec='-L$libdir'
11535 hardcode_libdir_separator=
11536 fi
11537 ;;
11538 esac
11539 shared_flag='-shared'
11540 if test yes = "$aix_use_runtimelinking"; then
11541 shared_flag="$shared_flag "'$wl-G'
11542 fi
11543 # Need to ensure runtime linking is disabled for the traditional
11544 # shared library, or the linker may eventually find shared libraries
11545 # /with/ Import File - we do not want to mix them.
11546 shared_flag_aix='-shared'
11547 shared_flag_svr4='-shared $wl-G'
11548 else
11549 # not using gcc
11550 if test ia64 = "$host_cpu"; then
11551 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11552 # chokes on -Wl,-G. The following line is correct:
11553 shared_flag='-G'
11554 else
11555 if test yes = "$aix_use_runtimelinking"; then
11556 shared_flag='$wl-G'
11557 else
11558 shared_flag='$wl-bM:SRE'
11559 fi
11560 shared_flag_aix='$wl-bM:SRE'
11561 shared_flag_svr4='$wl-G'
11562 fi
11563 fi
11564
11565 export_dynamic_flag_spec='$wl-bexpall'
11566 # It seems that -bexpall does not export symbols beginning with
11567 # underscore (_), so it is better to generate a list of symbols to export.
11568 always_export_symbols=yes
11569 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11570 # Warning - without using the other runtime loading flags (-brtl),
11571 # -berok will link without error, but may produce a broken library.
11572 allow_undefined_flag='-berok'
11573 # Determine the default libpath from the value encoded in an
11574 # empty executable.
11575 if test set = "${lt_cv_aix_libpath+set}"; then
11576 aix_libpath=$lt_cv_aix_libpath
11577 else
11578 if test ${lt_cv_aix_libpath_+y}
11579 then :
11580 printf %s "(cached) " >&6
11581 else case e in #(
11582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11584
11585 int
11586 main (void)
11587 {
11588
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"
11594 then :
11595
11596 lt_aix_libpath_sed='
11597 /Import File Strings/,/^$/ {
11598 /^0/ {
11599 s/^0 *\([^ ]*\) *$/\1/
11600 p
11601 }
11602 }'
11603 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11604 # Check for a 64-bit object if we didn't find anything.
11605 if test -z "$lt_cv_aix_libpath_"; then
11606 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607 fi
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11610 conftest$ac_exeext conftest.$ac_ext
11611 if test -z "$lt_cv_aix_libpath_"; then
11612 lt_cv_aix_libpath_=/usr/lib:/lib
11613 fi
11614 ;;
11615 esac
11616 fi
11617
11618 aix_libpath=$lt_cv_aix_libpath_
11619 fi
11620
11621 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11622 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
11623 else
11624 if test ia64 = "$host_cpu"; then
11625 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11626 allow_undefined_flag="-z nodefs"
11627 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"
11628 else
11629 # Determine the default libpath from the value encoded in an
11630 # empty executable.
11631 if test set = "${lt_cv_aix_libpath+set}"; then
11632 aix_libpath=$lt_cv_aix_libpath
11633 else
11634 if test ${lt_cv_aix_libpath_+y}
11635 then :
11636 printf %s "(cached) " >&6
11637 else case e in #(
11638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h. */
11640
11641 int
11642 main (void)
11643 {
11644
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_link "$LINENO"
11650 then :
11651
11652 lt_aix_libpath_sed='
11653 /Import File Strings/,/^$/ {
11654 /^0/ {
11655 s/^0 *\([^ ]*\) *$/\1/
11656 p
11657 }
11658 }'
11659 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$lt_cv_aix_libpath_"; then
11662 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 fi
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11666 conftest$ac_exeext conftest.$ac_ext
11667 if test -z "$lt_cv_aix_libpath_"; then
11668 lt_cv_aix_libpath_=/usr/lib:/lib
11669 fi
11670 ;;
11671 esac
11672 fi
11673
11674 aix_libpath=$lt_cv_aix_libpath_
11675 fi
11676
11677 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11678 # Warning - without using the other run time loading flags,
11679 # -berok will link without error, but may produce a broken library.
11680 no_undefined_flag=' $wl-bernotok'
11681 allow_undefined_flag=' $wl-berok'
11682 if test yes = "$with_gnu_ld"; then
11683 # We only use this code for GNU lds that support --whole-archive.
11684 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11685 else
11686 # Exported symbols can be pulled into shared objects from archives
11687 whole_archive_flag_spec='$convenience'
11688 fi
11689 archive_cmds_need_lc=yes
11690 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11691 # -brtl affects multiple linker settings, -berok does not and is overridden later
11692 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11693 if test svr4 != "$with_aix_soname"; then
11694 # This is similar to how AIX traditionally builds its shared libraries.
11695 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'
11696 fi
11697 if test aix != "$with_aix_soname"; then
11698 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'
11699 else
11700 # used by -dlpreopen to get the symbols
11701 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11702 fi
11703 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11704 fi
11705 fi
11706 ;;
11707
11708 amigaos*)
11709 case $host_cpu in
11710 powerpc)
11711 # see comment about AmigaOS4 .so support
11712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11713 archive_expsym_cmds=''
11714 ;;
11715 m68k)
11716 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)'
11717 hardcode_libdir_flag_spec='-L$libdir'
11718 hardcode_minus_L=yes
11719 ;;
11720 esac
11721 ;;
11722
11723 bsdi[45]*)
11724 export_dynamic_flag_spec=-rdynamic
11725 ;;
11726
11727 cygwin* | mingw* | windows* | pw32* | cegcc*)
11728 # When not using gcc, we currently assume that we are using
11729 # Microsoft Visual C++ or Intel C++ Compiler.
11730 # hardcode_libdir_flag_spec is actually meaningless, as there is
11731 # no search path for DLLs.
11732 case $cc_basename in
11733 cl* | icl*)
11734 # Native MSVC or ICC
11735 hardcode_libdir_flag_spec=' '
11736 allow_undefined_flag=unsupported
11737 always_export_symbols=yes
11738 file_list_spec='@'
11739 # Tell ltmain to make .lib files, not .a files.
11740 libext=lib
11741 # Tell ltmain to make .dll files, not .so files.
11742 shrext_cmds=.dll
11743 # FIXME: Setting linknames here is a bad hack.
11744 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11745 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11746 cp "$export_symbols" "$output_objdir/$soname.def";
11747 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11748 else
11749 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11750 fi~
11751 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11752 linknames='
11753 # The linker will not automatically build a static lib if we build a DLL.
11754 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11755 enable_shared_with_static_runtimes=yes
11756 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11758 # Don't use ranlib
11759 old_postinstall_cmds='chmod 644 $oldlib'
11760 postlink_cmds='lt_outputfile="@OUTPUT@"~
11761 lt_tool_outputfile="@TOOL_OUTPUT@"~
11762 case $lt_outputfile in
11763 *.exe|*.EXE) ;;
11764 *)
11765 lt_outputfile=$lt_outputfile.exe
11766 lt_tool_outputfile=$lt_tool_outputfile.exe
11767 ;;
11768 esac~
11769 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11770 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11771 $RM "$lt_outputfile.manifest";
11772 fi'
11773 ;;
11774 *)
11775 # Assume MSVC and ICC wrapper
11776 hardcode_libdir_flag_spec=' '
11777 allow_undefined_flag=unsupported
11778 # Tell ltmain to make .lib files, not .a files.
11779 libext=lib
11780 # Tell ltmain to make .dll files, not .so files.
11781 shrext_cmds=.dll
11782 # FIXME: Setting linknames here is a bad hack.
11783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11784 # The linker will automatically build a .lib file if we build a DLL.
11785 old_archive_from_new_cmds='true'
11786 # FIXME: Should let the user specify the lib program.
11787 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11788 enable_shared_with_static_runtimes=yes
11789 ;;
11790 esac
11791 ;;
11792
11793 darwin* | rhapsody*)
11794
11795
11796 archive_cmds_need_lc=no
11797 hardcode_direct=no
11798 hardcode_automatic=yes
11799 hardcode_shlibpath_var=unsupported
11800 if test yes = "$lt_cv_ld_force_load"; then
11801 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\"`'
11802
11803 else
11804 whole_archive_flag_spec=''
11805 fi
11806 link_all_deplibs=yes
11807 allow_undefined_flag=$_lt_dar_allow_undefined
11808 case $cc_basename in
11809 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11810 *) _lt_dar_can_shared=$GCC ;;
11811 esac
11812 if test yes = "$_lt_dar_can_shared"; then
11813 output_verbose_link_cmd=func_echo_all
11814 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11815 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11816 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"
11817 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"
11818
11819 else
11820 ld_shlibs=no
11821 fi
11822
11823 ;;
11824
11825 dgux*)
11826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11827 hardcode_libdir_flag_spec='-L$libdir'
11828 hardcode_shlibpath_var=no
11829 ;;
11830
11831 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11832 # support. Future versions do this automatically, but an explicit c++rt0.o
11833 # does not break anything, and helps significantly (at the cost of a little
11834 # extra space).
11835 freebsd2.2*)
11836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11837 hardcode_libdir_flag_spec='-R$libdir'
11838 hardcode_direct=yes
11839 hardcode_shlibpath_var=no
11840 ;;
11841
11842 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11843 freebsd2.*)
11844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11845 hardcode_direct=yes
11846 hardcode_minus_L=yes
11847 hardcode_shlibpath_var=no
11848 ;;
11849
11850 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11851 freebsd* | dragonfly* | midnightbsd*)
11852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11853 hardcode_libdir_flag_spec='-R$libdir'
11854 hardcode_direct=yes
11855 hardcode_shlibpath_var=no
11856 ;;
11857
11858 hpux9*)
11859 if test yes = "$GCC"; then
11860 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'
11861 else
11862 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'
11863 fi
11864 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11865 hardcode_libdir_separator=:
11866 hardcode_direct=yes
11867
11868 # hardcode_minus_L: Not really in the search PATH,
11869 # but as the default location of the library.
11870 hardcode_minus_L=yes
11871 export_dynamic_flag_spec='$wl-E'
11872 ;;
11873
11874 hpux10*)
11875 if test yes,no = "$GCC,$with_gnu_ld"; then
11876 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11877 else
11878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11879 fi
11880 if test no = "$with_gnu_ld"; then
11881 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11882 hardcode_libdir_separator=:
11883 hardcode_direct=yes
11884 hardcode_direct_absolute=yes
11885 export_dynamic_flag_spec='$wl-E'
11886 # hardcode_minus_L: Not really in the search PATH,
11887 # but as the default location of the library.
11888 hardcode_minus_L=yes
11889 fi
11890 ;;
11891
11892 hpux11*)
11893 if test yes,no = "$GCC,$with_gnu_ld"; then
11894 case $host_cpu in
11895 hppa*64*)
11896 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11897 ;;
11898 ia64*)
11899 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11900 ;;
11901 *)
11902 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11903 ;;
11904 esac
11905 else
11906 case $host_cpu in
11907 hppa*64*)
11908 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11909 ;;
11910 ia64*)
11911 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11912 ;;
11913 *)
11914
11915 # Older versions of the 11.00 compiler do not understand -b yet
11916 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11918 printf %s "checking if $CC understands -b... " >&6; }
11919 if test ${lt_cv_prog_compiler__b+y}
11920 then :
11921 printf %s "(cached) " >&6
11922 else case e in #(
11923 e) lt_cv_prog_compiler__b=no
11924 save_LDFLAGS=$LDFLAGS
11925 LDFLAGS="$LDFLAGS -b"
11926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11928 # The linker can only warn and ignore the option if not recognized
11929 # So say no if there are warnings
11930 if test -s conftest.err; then
11931 # Append any errors to the config.log.
11932 cat conftest.err 1>&5
11933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11935 if diff conftest.exp conftest.er2 >/dev/null; then
11936 lt_cv_prog_compiler__b=yes
11937 fi
11938 else
11939 lt_cv_prog_compiler__b=yes
11940 fi
11941 fi
11942 $RM -r conftest*
11943 LDFLAGS=$save_LDFLAGS
11944 ;;
11945 esac
11946 fi
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11948 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11949
11950 if test yes = "$lt_cv_prog_compiler__b"; then
11951 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11952 else
11953 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11954 fi
11955
11956 ;;
11957 esac
11958 fi
11959 if test no = "$with_gnu_ld"; then
11960 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11961 hardcode_libdir_separator=:
11962
11963 case $host_cpu in
11964 hppa*64*|ia64*)
11965 hardcode_direct=no
11966 hardcode_shlibpath_var=no
11967 ;;
11968 *)
11969 hardcode_direct=yes
11970 hardcode_direct_absolute=yes
11971 export_dynamic_flag_spec='$wl-E'
11972
11973 # hardcode_minus_L: Not really in the search PATH,
11974 # but as the default location of the library.
11975 hardcode_minus_L=yes
11976 ;;
11977 esac
11978 fi
11979 ;;
11980
11981 irix5* | irix6* | nonstopux*)
11982 if test yes = "$GCC"; then
11983 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'
11984 # Try to use the -exported_symbol ld option, if it does not
11985 # work, assume that -exports_file does not work either and
11986 # implicitly export all symbols.
11987 # This should be the same for all languages, so no per-tag cache variable.
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11989 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11990 if test ${lt_cv_irix_exported_symbol+y}
11991 then :
11992 printf %s "(cached) " >&6
11993 else case e in #(
11994 e) save_LDFLAGS=$LDFLAGS
11995 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 int foo (void) { return 0; }
11999 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"
12001 then :
12002 lt_cv_irix_exported_symbol=yes
12003 else case e in #(
12004 e) lt_cv_irix_exported_symbol=no ;;
12005 esac
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LDFLAGS=$save_LDFLAGS ;;
12010 esac
12011 fi
12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12013 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12014 if test yes = "$lt_cv_irix_exported_symbol"; then
12015 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'
12016 fi
12017 link_all_deplibs=no
12018 else
12019 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'
12020 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'
12021 fi
12022 archive_cmds_need_lc='no'
12023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12024 hardcode_libdir_separator=:
12025 inherit_rpath=yes
12026 link_all_deplibs=yes
12027 ;;
12028
12029 linux*)
12030 case $cc_basename in
12031 tcc*)
12032 # Fabrice Bellard et al's Tiny C Compiler
12033 ld_shlibs=yes
12034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12036 ;;
12037 esac
12038 ;;
12039
12040 *-mlibc)
12041 ;;
12042
12043 netbsd* | netbsdelf*-gnu)
12044 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12046 else
12047 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12048 fi
12049 hardcode_libdir_flag_spec='-R$libdir'
12050 hardcode_direct=yes
12051 hardcode_shlibpath_var=no
12052 ;;
12053
12054 newsos6)
12055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12056 hardcode_direct=yes
12057 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12058 hardcode_libdir_separator=:
12059 hardcode_shlibpath_var=no
12060 ;;
12061
12062 *nto* | *qnx*)
12063 ;;
12064
12065 openbsd*)
12066 if test -f /usr/libexec/ld.so; then
12067 hardcode_direct=yes
12068 hardcode_shlibpath_var=no
12069 hardcode_direct_absolute=yes
12070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12072 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12073 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12074 export_dynamic_flag_spec='$wl-E'
12075 else
12076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12077 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12078 fi
12079 else
12080 ld_shlibs=no
12081 fi
12082 ;;
12083
12084 os2*)
12085 hardcode_libdir_flag_spec='-L$libdir'
12086 hardcode_minus_L=yes
12087 allow_undefined_flag=unsupported
12088 shrext_cmds=.dll
12089 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12090 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12091 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12092 $ECHO EXPORTS >> $output_objdir/$libname.def~
12093 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12094 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12095 emximp -o $lib $output_objdir/$libname.def'
12096 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12097 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12098 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12099 $ECHO EXPORTS >> $output_objdir/$libname.def~
12100 prefix_cmds="$SED"~
12101 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12102 prefix_cmds="$prefix_cmds -e 1d";
12103 fi~
12104 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12105 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12106 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12107 emximp -o $lib $output_objdir/$libname.def'
12108 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12109 enable_shared_with_static_runtimes=yes
12110 file_list_spec='@'
12111 ;;
12112
12113 osf3*)
12114 if test yes = "$GCC"; then
12115 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12116 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'
12117 else
12118 allow_undefined_flag=' -expect_unresolved \*'
12119 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'
12120 fi
12121 archive_cmds_need_lc='no'
12122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12123 hardcode_libdir_separator=:
12124 ;;
12125
12126 osf4* | osf5*) # as osf3* with the addition of -msym flag
12127 if test yes = "$GCC"; then
12128 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12129 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'
12130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12131 else
12132 allow_undefined_flag=' -expect_unresolved \*'
12133 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'
12134 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~
12135 $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'
12136
12137 # Both c and cxx compiler support -rpath directly
12138 hardcode_libdir_flag_spec='-rpath $libdir'
12139 fi
12140 archive_cmds_need_lc='no'
12141 hardcode_libdir_separator=:
12142 ;;
12143
12144 serenity*)
12145 ;;
12146
12147 solaris*)
12148 no_undefined_flag=' -z defs'
12149 if test yes = "$GCC"; then
12150 wlarc='$wl'
12151 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12153 $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'
12154 else
12155 case `$CC -V 2>&1` in
12156 *"Compilers 5.0"*)
12157 wlarc=''
12158 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12160 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12161 ;;
12162 *)
12163 wlarc='$wl'
12164 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12166 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12167 ;;
12168 esac
12169 fi
12170 hardcode_libdir_flag_spec='-R$libdir'
12171 hardcode_shlibpath_var=no
12172 case $host_os in
12173 solaris2.[0-5] | solaris2.[0-5].*) ;;
12174 *)
12175 # The compiler driver will combine and reorder linker options,
12176 # but understands '-z linker_flag'. GCC discards it without '$wl',
12177 # but is careful enough not to reorder.
12178 # Supported since Solaris 2.6 (maybe 2.5.1?)
12179 if test yes = "$GCC"; then
12180 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12181 else
12182 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12183 fi
12184 ;;
12185 esac
12186 link_all_deplibs=yes
12187 ;;
12188
12189 sunos4*)
12190 if test sequent = "$host_vendor"; then
12191 # Use $CC to link under sequent, because it throws in some extra .o
12192 # files that make .init and .fini sections work.
12193 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12194 else
12195 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12196 fi
12197 hardcode_libdir_flag_spec='-L$libdir'
12198 hardcode_direct=yes
12199 hardcode_minus_L=yes
12200 hardcode_shlibpath_var=no
12201 ;;
12202
12203 sysv4)
12204 case $host_vendor in
12205 sni)
12206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12207 hardcode_direct=yes # is this really true???
12208 ;;
12209 siemens)
12210 ## LD is ld it makes a PLAMLIB
12211 ## CC just makes a GrossModule.
12212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12213 reload_cmds='$CC -r -o $output$reload_objs'
12214 hardcode_direct=no
12215 ;;
12216 motorola)
12217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12218 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12219 ;;
12220 esac
12221 runpath_var='LD_RUN_PATH'
12222 hardcode_shlibpath_var=no
12223 ;;
12224
12225 sysv4.3*)
12226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227 hardcode_shlibpath_var=no
12228 export_dynamic_flag_spec='-Bexport'
12229 ;;
12230
12231 sysv4*MP*)
12232 if test -d /usr/nec; then
12233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12234 hardcode_shlibpath_var=no
12235 runpath_var=LD_RUN_PATH
12236 hardcode_runpath_var=yes
12237 ld_shlibs=yes
12238 fi
12239 ;;
12240
12241 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12242 no_undefined_flag='$wl-z,text'
12243 archive_cmds_need_lc=no
12244 hardcode_shlibpath_var=no
12245 runpath_var='LD_RUN_PATH'
12246
12247 if test yes = "$GCC"; then
12248 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12249 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12250 else
12251 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12252 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12253 fi
12254 ;;
12255
12256 sysv5* | sco3.2v5* | sco5v6*)
12257 # Note: We CANNOT use -z defs as we might desire, because we do not
12258 # link with -lc, and that would cause any symbols used from libc to
12259 # always be unresolved, which means just about no library would
12260 # ever link correctly. If we're not using GNU ld we use -z text
12261 # though, which does catch some bad symbols but isn't as heavy-handed
12262 # as -z defs.
12263 no_undefined_flag='$wl-z,text'
12264 allow_undefined_flag='$wl-z,nodefs'
12265 archive_cmds_need_lc=no
12266 hardcode_shlibpath_var=no
12267 hardcode_libdir_flag_spec='$wl-R,$libdir'
12268 hardcode_libdir_separator=':'
12269 link_all_deplibs=yes
12270 export_dynamic_flag_spec='$wl-Bexport'
12271 runpath_var='LD_RUN_PATH'
12272
12273 if test yes = "$GCC"; then
12274 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12275 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12276 else
12277 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12278 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12279 fi
12280 ;;
12281
12282 uts4*)
12283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12284 hardcode_libdir_flag_spec='-L$libdir'
12285 hardcode_shlibpath_var=no
12286 ;;
12287
12288 *)
12289 ld_shlibs=no
12290 ;;
12291 esac
12292
12293 if test sni = "$host_vendor"; then
12294 case $host in
12295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12296 export_dynamic_flag_spec='$wl-Blargedynsym'
12297 ;;
12298 esac
12299 fi
12300 fi
12301
12302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12303 printf "%s\n" "$ld_shlibs" >&6; }
12304 test no = "$ld_shlibs" && can_build_shared=no
12305
12306 with_gnu_ld=$with_gnu_ld
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322 #
12323 # Do we need to explicitly link libc?
12324 #
12325 case "x$archive_cmds_need_lc" in
12326 x|xyes)
12327 # Assume -lc should be added
12328 archive_cmds_need_lc=yes
12329
12330 if test yes,yes = "$GCC,$enable_shared"; then
12331 case $archive_cmds in
12332 *'~'*)
12333 # FIXME: we may have to deal with multi-command sequences.
12334 ;;
12335 '$CC '*)
12336 # Test whether the compiler implicitly links with -lc since on some
12337 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12338 # to ld, don't add -lc before -lgcc.
12339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12340 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12341 if test ${lt_cv_archive_cmds_need_lc+y}
12342 then :
12343 printf %s "(cached) " >&6
12344 else case e in #(
12345 e) $RM conftest*
12346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12347
12348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12349 (eval $ac_compile) 2>&5
12350 ac_status=$?
12351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; } 2>conftest.err; then
12353 soname=conftest
12354 lib=conftest
12355 libobjs=conftest.$ac_objext
12356 deplibs=
12357 wl=$lt_prog_compiler_wl
12358 pic_flag=$lt_prog_compiler_pic
12359 compiler_flags=-v
12360 linker_flags=-v
12361 verstring=
12362 output_objdir=.
12363 libname=conftest
12364 lt_save_allow_undefined_flag=$allow_undefined_flag
12365 allow_undefined_flag=
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12367 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12368 ac_status=$?
12369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; }
12371 then
12372 lt_cv_archive_cmds_need_lc=no
12373 else
12374 lt_cv_archive_cmds_need_lc=yes
12375 fi
12376 allow_undefined_flag=$lt_save_allow_undefined_flag
12377 else
12378 cat conftest.err 1>&5
12379 fi
12380 $RM conftest*
12381 ;;
12382 esac
12383 fi
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12385 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12386 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12387 ;;
12388 esac
12389 fi
12390 ;;
12391 esac
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12545 printf %s "checking dynamic linker characteristics... " >&6; }
12546
12547 if test yes = "$GCC"; then
12548 case $host_os in
12549 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12550 *) lt_awk_arg='/^libraries:/' ;;
12551 esac
12552 case $host_os in
12553 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12554 *) lt_sed_strip_eq='s|=/|/|g' ;;
12555 esac
12556 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12557 case $lt_search_path_spec in
12558 *\;*)
12559 # if the path contains ";" then we assume it to be the separator
12560 # otherwise default to the standard path separator (i.e. ":") - it is
12561 # assumed that no part of a normal pathname contains ";" but that should
12562 # okay in the real world where ";" in dirpaths is itself problematic.
12563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12564 ;;
12565 *)
12566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12567 ;;
12568 esac
12569 # Ok, now we have the path, separated by spaces, we can step through it
12570 # and add multilib dir if necessary...
12571 lt_tmp_lt_search_path_spec=
12572 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12573 # ...but if some path component already ends with the multilib dir we assume
12574 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12575 case "$lt_multi_os_dir; $lt_search_path_spec " in
12576 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12577 lt_multi_os_dir=
12578 ;;
12579 esac
12580 for lt_sys_path in $lt_search_path_spec; do
12581 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12583 elif test -n "$lt_multi_os_dir"; then
12584 test -d "$lt_sys_path" && \
12585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12586 fi
12587 done
12588 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12589 BEGIN {RS = " "; FS = "/|\n";} {
12590 lt_foo = "";
12591 lt_count = 0;
12592 for (lt_i = NF; lt_i > 0; lt_i--) {
12593 if ($lt_i != "" && $lt_i != ".") {
12594 if ($lt_i == "..") {
12595 lt_count++;
12596 } else {
12597 if (lt_count == 0) {
12598 lt_foo = "/" $lt_i lt_foo;
12599 } else {
12600 lt_count--;
12601 }
12602 }
12603 }
12604 }
12605 if (lt_foo != "") { lt_freq[lt_foo]++; }
12606 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12607 }'`
12608 # AWK program above erroneously prepends '/' to C:/dos/paths
12609 # for these hosts.
12610 case $host_os in
12611 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12612 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12613 esac
12614 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12615 else
12616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12617 fi
12618 library_names_spec=
12619 libname_spec='lib$name'
12620 soname_spec=
12621 shrext_cmds=.so
12622 postinstall_cmds=
12623 postuninstall_cmds=
12624 finish_cmds=
12625 finish_eval=
12626 shlibpath_var=
12627 shlibpath_overrides_runpath=unknown
12628 version_type=none
12629 dynamic_linker="$host_os ld.so"
12630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12631 need_lib_prefix=unknown
12632 hardcode_into_libs=no
12633
12634 # when you set need_version to no, make sure it does not cause -set_version
12635 # flags to be left without arguments
12636 need_version=unknown
12637
12638
12639
12640 case $host_os in
12641 aix3*)
12642 version_type=linux # correct to gnu/linux during the next big refactor
12643 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12644 shlibpath_var=LIBPATH
12645
12646 # AIX 3 has no versioning support, so we append a major version to the name.
12647 soname_spec='$libname$release$shared_ext$major'
12648 ;;
12649
12650 aix[4-9]*)
12651 version_type=linux # correct to gnu/linux during the next big refactor
12652 need_lib_prefix=no
12653 need_version=no
12654 hardcode_into_libs=yes
12655 if test ia64 = "$host_cpu"; then
12656 # AIX 5 supports IA64
12657 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12658 shlibpath_var=LD_LIBRARY_PATH
12659 else
12660 # With GCC up to 2.95.x, collect2 would create an import file
12661 # for dependence libraries. The import file would start with
12662 # the line '#! .'. This would cause the generated library to
12663 # depend on '.', always an invalid library. This was fixed in
12664 # development snapshots of GCC prior to 3.0.
12665 case $host_os in
12666 aix4 | aix4.[01] | aix4.[01].*)
12667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12668 echo ' yes '
12669 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12670 :
12671 else
12672 can_build_shared=no
12673 fi
12674 ;;
12675 esac
12676 # Using Import Files as archive members, it is possible to support
12677 # filename-based versioning of shared library archives on AIX. While
12678 # this would work for both with and without runtime linking, it will
12679 # prevent static linking of such archives. So we do filename-based
12680 # shared library versioning with .so extension only, which is used
12681 # when both runtime linking and shared linking is enabled.
12682 # Unfortunately, runtime linking may impact performance, so we do
12683 # not want this to be the default eventually. Also, we use the
12684 # versioned .so libs for executables only if there is the -brtl
12685 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12686 # To allow for filename-based versioning support, we need to create
12687 # libNAME.so.V as an archive file, containing:
12688 # *) an Import File, referring to the versioned filename of the
12689 # archive as well as the shared archive member, telling the
12690 # bitwidth (32 or 64) of that shared object, and providing the
12691 # list of exported symbols of that shared object, eventually
12692 # decorated with the 'weak' keyword
12693 # *) the shared object with the F_LOADONLY flag set, to really avoid
12694 # it being seen by the linker.
12695 # At run time we better use the real file rather than another symlink,
12696 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12697
12698 case $with_aix_soname,$aix_use_runtimelinking in
12699 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12700 # soname into executable. Probably we can add versioning support to
12701 # collect2, so additional links can be useful in future.
12702 aix,yes) # traditional libtool
12703 dynamic_linker='AIX unversionable lib.so'
12704 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12705 # instead of lib<name>.a to let people know that these are not
12706 # typical AIX shared libraries.
12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12708 ;;
12709 aix,no) # traditional AIX only
12710 dynamic_linker='AIX lib.a(lib.so.V)'
12711 # We preserve .a as extension for shared libraries through AIX4.2
12712 # and later when we are not doing run time linking.
12713 library_names_spec='$libname$release.a $libname.a'
12714 soname_spec='$libname$release$shared_ext$major'
12715 ;;
12716 svr4,*) # full svr4 only
12717 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12718 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12719 # We do not specify a path in Import Files, so LIBPATH fires.
12720 shlibpath_overrides_runpath=yes
12721 ;;
12722 *,yes) # both, prefer svr4
12723 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12724 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12725 # unpreferred sharedlib libNAME.a needs extra handling
12726 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"'
12727 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"'
12728 # We do not specify a path in Import Files, so LIBPATH fires.
12729 shlibpath_overrides_runpath=yes
12730 ;;
12731 *,no) # both, prefer aix
12732 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12733 library_names_spec='$libname$release.a $libname.a'
12734 soname_spec='$libname$release$shared_ext$major'
12735 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12736 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)'
12737 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"'
12738 ;;
12739 esac
12740 shlibpath_var=LIBPATH
12741 fi
12742 ;;
12743
12744 amigaos*)
12745 case $host_cpu in
12746 powerpc)
12747 # Since July 2007 AmigaOS4 officially supports .so libraries.
12748 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12750 ;;
12751 m68k)
12752 library_names_spec='$libname.ixlibrary $libname.a'
12753 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12754 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'
12755 ;;
12756 esac
12757 ;;
12758
12759 beos*)
12760 library_names_spec='$libname$shared_ext'
12761 dynamic_linker="$host_os ld.so"
12762 shlibpath_var=LIBRARY_PATH
12763 ;;
12764
12765 bsdi[45]*)
12766 version_type=linux # correct to gnu/linux during the next big refactor
12767 need_version=no
12768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12769 soname_spec='$libname$release$shared_ext$major'
12770 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12771 shlibpath_var=LD_LIBRARY_PATH
12772 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12773 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12774 # the default ld.so.conf also contains /usr/contrib/lib and
12775 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12776 # libtool to hard-code these into programs
12777 ;;
12778
12779 cygwin* | mingw* | windows* | pw32* | cegcc*)
12780 version_type=windows
12781 shrext_cmds=.dll
12782 need_version=no
12783 need_lib_prefix=no
12784
12785 case $GCC,$cc_basename in
12786 yes,*)
12787 # gcc
12788 library_names_spec='$libname.dll.a'
12789 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12790 # If user builds GCC with multilib enabled,
12791 # it should just install on $(libdir)
12792 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12793 if test xyes = x"$multilib"; then
12794 postinstall_cmds='base_file=`basename \$file`~
12795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12796 dldir=$destdir/`dirname \$dlpath`~
12797 $install_prog $dir/$dlname $destdir/$dlname~
12798 chmod a+x $destdir/$dlname~
12799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12800 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12801 fi'
12802 else
12803 postinstall_cmds='base_file=`basename \$file`~
12804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12805 dldir=$destdir/`dirname \$dlpath`~
12806 test -d \$dldir || mkdir -p \$dldir~
12807 $install_prog $dir/$dlname \$dldir/$dlname~
12808 chmod a+x \$dldir/$dlname~
12809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12811 fi'
12812 fi
12813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12814 dlpath=$dir/\$dldll~
12815 $RM \$dlpath'
12816 shlibpath_overrides_runpath=yes
12817
12818 case $host_os in
12819 cygwin*)
12820 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12821 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12822
12823 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12824 ;;
12825 mingw* | windows* | cegcc*)
12826 # MinGW DLLs use traditional 'lib' prefix
12827 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12828 ;;
12829 pw32*)
12830 # pw32 DLLs use 'pw' prefix rather than 'lib'
12831 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12832 ;;
12833 esac
12834 dynamic_linker='Win32 ld.exe'
12835 ;;
12836
12837 *,cl* | *,icl*)
12838 # Native MSVC or ICC
12839 libname_spec='$name'
12840 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12841 library_names_spec='$libname.dll.lib'
12842
12843 case $build_os in
12844 mingw* | windows*)
12845 sys_lib_search_path_spec=
12846 lt_save_ifs=$IFS
12847 IFS=';'
12848 for lt_path in $LIB
12849 do
12850 IFS=$lt_save_ifs
12851 # Let DOS variable expansion print the short 8.3 style file name.
12852 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12853 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12854 done
12855 IFS=$lt_save_ifs
12856 # Convert to MSYS style.
12857 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12858 ;;
12859 cygwin*)
12860 # Convert to unix form, then to dos form, then back to unix form
12861 # but this time dos style (no spaces!) so that the unix form looks
12862 # like /cygdrive/c/PROGRA~1:/cygdr...
12863 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12864 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12865 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12866 ;;
12867 *)
12868 sys_lib_search_path_spec=$LIB
12869 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12870 # It is most probably a Windows format PATH.
12871 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12872 else
12873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12874 fi
12875 # FIXME: find the short name or the path components, as spaces are
12876 # common. (e.g. "Program Files" -> "PROGRA~1")
12877 ;;
12878 esac
12879
12880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12881 postinstall_cmds='base_file=`basename \$file`~
12882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12883 dldir=$destdir/`dirname \$dlpath`~
12884 test -d \$dldir || mkdir -p \$dldir~
12885 $install_prog $dir/$dlname \$dldir/$dlname'
12886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12887 dlpath=$dir/\$dldll~
12888 $RM \$dlpath'
12889 shlibpath_overrides_runpath=yes
12890 dynamic_linker='Win32 link.exe'
12891 ;;
12892
12893 *)
12894 # Assume MSVC and ICC wrapper
12895 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12896 dynamic_linker='Win32 ld.exe'
12897 ;;
12898 esac
12899 # FIXME: first we should search . and the directory the executable is in
12900 shlibpath_var=PATH
12901 ;;
12902
12903 darwin* | rhapsody*)
12904 dynamic_linker="$host_os dyld"
12905 version_type=darwin
12906 need_lib_prefix=no
12907 need_version=no
12908 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12909 soname_spec='$libname$release$major$shared_ext'
12910 shlibpath_overrides_runpath=yes
12911 shlibpath_var=DYLD_LIBRARY_PATH
12912 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12913
12914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12916 ;;
12917
12918 dgux*)
12919 version_type=linux # correct to gnu/linux during the next big refactor
12920 need_lib_prefix=no
12921 need_version=no
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 ;;
12926
12927 freebsd* | dragonfly* | midnightbsd*)
12928 # DragonFly does not have aout. When/if they implement a new
12929 # versioning mechanism, adjust this.
12930 if test -x /usr/bin/objformat; then
12931 objformat=`/usr/bin/objformat`
12932 else
12933 case $host_os in
12934 freebsd[23].*) objformat=aout ;;
12935 *) objformat=elf ;;
12936 esac
12937 fi
12938 version_type=freebsd-$objformat
12939 case $version_type in
12940 freebsd-elf*)
12941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12942 soname_spec='$libname$release$shared_ext$major'
12943 need_version=no
12944 need_lib_prefix=no
12945 ;;
12946 freebsd-*)
12947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12948 need_version=yes
12949 ;;
12950 esac
12951 case $host_cpu in
12952 powerpc64)
12953 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12954 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12957 int test_pointer_size[sizeof (void *) - 5];
12958
12959 _ACEOF
12960 if ac_fn_c_try_compile "$LINENO"
12961 then :
12962 shlibpath_var=LD_LIBRARY_PATH
12963 else case e in #(
12964 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12965 esac
12966 fi
12967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12968 ;;
12969 *)
12970 shlibpath_var=LD_LIBRARY_PATH
12971 ;;
12972 esac
12973 case $host_os in
12974 freebsd2.*)
12975 shlibpath_overrides_runpath=yes
12976 ;;
12977 freebsd3.[01]* | freebsdelf3.[01]*)
12978 shlibpath_overrides_runpath=yes
12979 hardcode_into_libs=yes
12980 ;;
12981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12983 shlibpath_overrides_runpath=no
12984 hardcode_into_libs=yes
12985 ;;
12986 *) # from 4.6 on, and DragonFly
12987 shlibpath_overrides_runpath=yes
12988 hardcode_into_libs=yes
12989 ;;
12990 esac
12991 ;;
12992
12993 haiku*)
12994 version_type=linux # correct to gnu/linux during the next big refactor
12995 need_lib_prefix=no
12996 need_version=no
12997 dynamic_linker="$host_os runtime_loader"
12998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12999 soname_spec='$libname$release$shared_ext$major'
13000 shlibpath_var=LIBRARY_PATH
13001 shlibpath_overrides_runpath=no
13002 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
13003 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
13004 hardcode_into_libs=no
13005 ;;
13006
13007 hpux9* | hpux10* | hpux11*)
13008 # Give a soname corresponding to the major version so that dld.sl refuses to
13009 # link against other versions.
13010 version_type=sunos
13011 need_lib_prefix=no
13012 need_version=no
13013 case $host_cpu in
13014 ia64*)
13015 shrext_cmds='.so'
13016 hardcode_into_libs=yes
13017 dynamic_linker="$host_os dld.so"
13018 shlibpath_var=LD_LIBRARY_PATH
13019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13021 soname_spec='$libname$release$shared_ext$major'
13022 if test 32 = "$HPUX_IA64_MODE"; then
13023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13024 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13025 else
13026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13027 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13028 fi
13029 ;;
13030 hppa*64*)
13031 shrext_cmds='.sl'
13032 hardcode_into_libs=yes
13033 dynamic_linker="$host_os dld.sl"
13034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13037 soname_spec='$libname$release$shared_ext$major'
13038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13040 ;;
13041 *)
13042 shrext_cmds='.sl'
13043 dynamic_linker="$host_os dld.sl"
13044 shlibpath_var=SHLIB_PATH
13045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13047 soname_spec='$libname$release$shared_ext$major'
13048 ;;
13049 esac
13050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13051 postinstall_cmds='chmod 555 $lib'
13052 # or fails outright, so override atomically:
13053 install_override_mode=555
13054 ;;
13055
13056 interix[3-9]*)
13057 version_type=linux # correct to gnu/linux during the next big refactor
13058 need_lib_prefix=no
13059 need_version=no
13060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13061 soname_spec='$libname$release$shared_ext$major'
13062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13063 shlibpath_var=LD_LIBRARY_PATH
13064 shlibpath_overrides_runpath=no
13065 hardcode_into_libs=yes
13066 ;;
13067
13068 irix5* | irix6* | nonstopux*)
13069 case $host_os in
13070 nonstopux*) version_type=nonstopux ;;
13071 *)
13072 if test yes = "$lt_cv_prog_gnu_ld"; then
13073 version_type=linux # correct to gnu/linux during the next big refactor
13074 else
13075 version_type=irix
13076 fi ;;
13077 esac
13078 need_lib_prefix=no
13079 need_version=no
13080 soname_spec='$libname$release$shared_ext$major'
13081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13082 case $host_os in
13083 irix5* | nonstopux*)
13084 libsuff= shlibsuff=
13085 ;;
13086 *)
13087 case $LD in # libtool.m4 will add one of these switches to LD
13088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13089 libsuff= shlibsuff= libmagic=32-bit;;
13090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13091 libsuff=32 shlibsuff=N32 libmagic=N32;;
13092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13094 *) libsuff= shlibsuff= libmagic=never-match;;
13095 esac
13096 ;;
13097 esac
13098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13099 shlibpath_overrides_runpath=no
13100 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13101 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13102 hardcode_into_libs=yes
13103 ;;
13104
13105 # No shared lib support for Linux oldld, aout, or coff.
13106 linux*oldld* | linux*aout* | linux*coff*)
13107 dynamic_linker=no
13108 ;;
13109
13110 linux*android*)
13111 version_type=none # Android doesn't support versioned libraries.
13112 need_lib_prefix=no
13113 need_version=no
13114 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
13115 soname_spec='$libname$release$shared_ext'
13116 finish_cmds=
13117 shlibpath_var=LD_LIBRARY_PATH
13118 shlibpath_overrides_runpath=yes
13119
13120 # This implies no fast_install, which is unacceptable.
13121 # Some rework will be needed to allow for fast_install
13122 # before this can be enabled.
13123 hardcode_into_libs=yes
13124
13125 dynamic_linker='Android linker'
13126 # -rpath works at least for libraries that are not overridden by
13127 # libraries installed in system locations.
13128 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13129 ;;
13130
13131 # This must be glibc/ELF.
13132 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13133 version_type=linux # correct to gnu/linux during the next big refactor
13134 need_lib_prefix=no
13135 need_version=no
13136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13137 soname_spec='$libname$release$shared_ext$major'
13138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13139 shlibpath_var=LD_LIBRARY_PATH
13140 shlibpath_overrides_runpath=no
13141
13142 # Some binutils ld are patched to set DT_RUNPATH
13143 if test ${lt_cv_shlibpath_overrides_runpath+y}
13144 then :
13145 printf %s "(cached) " >&6
13146 else case e in #(
13147 e) lt_cv_shlibpath_overrides_runpath=no
13148 save_LDFLAGS=$LDFLAGS
13149 save_libdir=$libdir
13150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154
13155 int
13156 main (void)
13157 {
13158
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_link "$LINENO"
13164 then :
13165 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13166 then :
13167 lt_cv_shlibpath_overrides_runpath=yes
13168 fi
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LDFLAGS=$save_LDFLAGS
13173 libdir=$save_libdir
13174 ;;
13175 esac
13176 fi
13177
13178 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13179
13180 # This implies no fast_install, which is unacceptable.
13181 # Some rework will be needed to allow for fast_install
13182 # before this can be enabled.
13183 hardcode_into_libs=yes
13184
13185 # Ideally, we could use ldconfig to report *all* directories which are
13186 # searched for libraries, however this is still not possible. Aside from not
13187 # being certain /sbin/ldconfig is available, command
13188 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13189 # even though it is searched at run-time. Try to do the best guess by
13190 # appending ld.so.conf contents (and includes) to the search path.
13191 if test -f /etc/ld.so.conf; then
13192 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' ' '`
13193 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13194 fi
13195
13196 # We used to test for /lib/ld.so.1 and disable shared libraries on
13197 # powerpc, because MkLinux only supported shared libraries with the
13198 # GNU dynamic linker. Since this was broken with cross compilers,
13199 # most powerpc-linux boxes support dynamic linking these days and
13200 # people can always --disable-shared, the test was removed, and we
13201 # assume the GNU/Linux dynamic linker is in use.
13202 dynamic_linker='GNU/Linux ld.so'
13203 ;;
13204
13205 netbsdelf*-gnu)
13206 version_type=linux
13207 need_lib_prefix=no
13208 need_version=no
13209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13210 soname_spec='$libname$release$shared_ext$major'
13211 shlibpath_var=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath=no
13213 hardcode_into_libs=yes
13214 dynamic_linker='NetBSD ld.elf_so'
13215 ;;
13216
13217 netbsdelf*-gnu)
13218 version_type=linux
13219 need_lib_prefix=no
13220 need_version=no
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=no
13225 hardcode_into_libs=yes
13226 dynamic_linker='NetBSD ld.elf_so'
13227 ;;
13228
13229 netbsd*)
13230 version_type=sunos
13231 need_lib_prefix=no
13232 need_version=no
13233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13234 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13236 dynamic_linker='NetBSD (a.out) ld.so'
13237 else
13238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13239 soname_spec='$libname$release$shared_ext$major'
13240 dynamic_linker='NetBSD ld.elf_so'
13241 fi
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13244 hardcode_into_libs=yes
13245 ;;
13246
13247 *-mlibc)
13248 version_type=linux # correct to gnu/linux during the next big refactor
13249 need_lib_prefix=no
13250 need_version=no
13251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13252 soname_spec='$libname$release$shared_ext$major'
13253 dynamic_linker='mlibc ld.so'
13254 shlibpath_var=LD_LIBRARY_PATH
13255 shlibpath_overrides_runpath=no
13256 hardcode_into_libs=yes
13257 ;;
13258
13259 newsos6)
13260 version_type=linux # correct to gnu/linux during the next big refactor
13261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13262 shlibpath_var=LD_LIBRARY_PATH
13263 shlibpath_overrides_runpath=yes
13264 ;;
13265
13266 *nto* | *qnx*)
13267 version_type=qnx
13268 need_lib_prefix=no
13269 need_version=no
13270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13271 soname_spec='$libname$release$shared_ext$major'
13272 shlibpath_var=LD_LIBRARY_PATH
13273 shlibpath_overrides_runpath=no
13274 hardcode_into_libs=yes
13275 dynamic_linker='ldqnx.so'
13276 ;;
13277
13278 openbsd*)
13279 version_type=sunos
13280 sys_lib_dlsearch_path_spec=/usr/lib
13281 need_lib_prefix=no
13282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13283 need_version=no
13284 else
13285 need_version=yes
13286 fi
13287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13289 shlibpath_var=LD_LIBRARY_PATH
13290 shlibpath_overrides_runpath=yes
13291 ;;
13292
13293 os2*)
13294 libname_spec='$name'
13295 version_type=windows
13296 shrext_cmds=.dll
13297 need_version=no
13298 need_lib_prefix=no
13299 # OS/2 can only load a DLL with a base name of 8 characters or less.
13300 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13301 v=$($ECHO $release$versuffix | tr -d .-);
13302 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13303 $ECHO $n$v`$shared_ext'
13304 library_names_spec='${libname}_dll.$libext'
13305 dynamic_linker='OS/2 ld.exe'
13306 shlibpath_var=BEGINLIBPATH
13307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13309 postinstall_cmds='base_file=`basename \$file`~
13310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13311 dldir=$destdir/`dirname \$dlpath`~
13312 test -d \$dldir || mkdir -p \$dldir~
13313 $install_prog $dir/$dlname \$dldir/$dlname~
13314 chmod a+x \$dldir/$dlname~
13315 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13316 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13317 fi'
13318 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13319 dlpath=$dir/\$dldll~
13320 $RM \$dlpath'
13321 ;;
13322
13323 osf3* | osf4* | osf5*)
13324 version_type=osf
13325 need_lib_prefix=no
13326 need_version=no
13327 soname_spec='$libname$release$shared_ext$major'
13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329 shlibpath_var=LD_LIBRARY_PATH
13330 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13332 ;;
13333
13334 rdos*)
13335 dynamic_linker=no
13336 ;;
13337
13338 serenity*)
13339 version_type=linux # correct to gnu/linux during the next big refactor
13340 need_lib_prefix=no
13341 need_version=no
13342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13343 soname_spec='$libname$release$shared_ext$major'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 shlibpath_overrides_runpath=no
13346 dynamic_linker='SerenityOS LibELF'
13347 ;;
13348
13349 solaris*)
13350 version_type=linux # correct to gnu/linux during the next big refactor
13351 need_lib_prefix=no
13352 need_version=no
13353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13354 soname_spec='$libname$release$shared_ext$major'
13355 shlibpath_var=LD_LIBRARY_PATH
13356 shlibpath_overrides_runpath=yes
13357 hardcode_into_libs=yes
13358 # ldd complains unless libraries are executable
13359 postinstall_cmds='chmod +x $lib'
13360 ;;
13361
13362 sunos4*)
13363 version_type=sunos
13364 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13366 shlibpath_var=LD_LIBRARY_PATH
13367 shlibpath_overrides_runpath=yes
13368 if test yes = "$with_gnu_ld"; then
13369 need_lib_prefix=no
13370 fi
13371 need_version=yes
13372 ;;
13373
13374 sysv4 | sysv4.3*)
13375 version_type=linux # correct to gnu/linux during the next big refactor
13376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13377 soname_spec='$libname$release$shared_ext$major'
13378 shlibpath_var=LD_LIBRARY_PATH
13379 case $host_vendor in
13380 sni)
13381 shlibpath_overrides_runpath=no
13382 need_lib_prefix=no
13383 runpath_var=LD_RUN_PATH
13384 ;;
13385 siemens)
13386 need_lib_prefix=no
13387 ;;
13388 motorola)
13389 need_lib_prefix=no
13390 need_version=no
13391 shlibpath_overrides_runpath=no
13392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13393 ;;
13394 esac
13395 ;;
13396
13397 sysv4*MP*)
13398 if test -d /usr/nec; then
13399 version_type=linux # correct to gnu/linux during the next big refactor
13400 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13401 soname_spec='$libname$shared_ext.$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 fi
13404 ;;
13405
13406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13407 version_type=sco
13408 need_lib_prefix=no
13409 need_version=no
13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13411 soname_spec='$libname$release$shared_ext$major'
13412 shlibpath_var=LD_LIBRARY_PATH
13413 shlibpath_overrides_runpath=yes
13414 hardcode_into_libs=yes
13415 if test yes = "$with_gnu_ld"; then
13416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13417 else
13418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13419 case $host_os in
13420 sco3.2v5*)
13421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13422 ;;
13423 esac
13424 fi
13425 sys_lib_dlsearch_path_spec='/usr/lib'
13426 ;;
13427
13428 tpf*)
13429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13430 version_type=linux # correct to gnu/linux during the next big refactor
13431 need_lib_prefix=no
13432 need_version=no
13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13434 shlibpath_var=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath=no
13436 hardcode_into_libs=yes
13437 ;;
13438
13439 uts4*)
13440 version_type=linux # correct to gnu/linux during the next big refactor
13441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13442 soname_spec='$libname$release$shared_ext$major'
13443 shlibpath_var=LD_LIBRARY_PATH
13444 ;;
13445
13446 emscripten*)
13447 version_type=none
13448 need_lib_prefix=no
13449 need_version=no
13450 library_names_spec='$libname$release$shared_ext'
13451 soname_spec='$libname$release$shared_ext'
13452 finish_cmds=
13453 dynamic_linker="Emscripten linker"
13454 lt_prog_compiler_wl=
13455 lt_prog_compiler_pic=
13456 lt_prog_compiler_static=
13457
13458
13459 if test yes = "$GCC"; then
13460 lt_prog_compiler_wl='-Wl,'
13461 lt_prog_compiler_static='-static'
13462
13463 case $host_os in
13464 aix*)
13465 # All AIX code is PIC.
13466 if test ia64 = "$host_cpu"; then
13467 # AIX 5 now supports IA64 processor
13468 lt_prog_compiler_static='-Bstatic'
13469 fi
13470 lt_prog_compiler_pic='-fPIC'
13471 ;;
13472
13473 amigaos*)
13474 case $host_cpu in
13475 powerpc)
13476 # see comment about AmigaOS4 .so support
13477 lt_prog_compiler_pic='-fPIC'
13478 ;;
13479 m68k)
13480 # FIXME: we need at least 68020 code to build shared libraries, but
13481 # adding the '-m68020' flag to GCC prevents building anything better,
13482 # like '-m68040'.
13483 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13484 ;;
13485 esac
13486 ;;
13487
13488 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13489 # PIC is the default for these OSes.
13490 ;;
13491
13492 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13493 # This hack is so that the source file can tell whether it is being
13494 # built for inclusion in a dll (and should export symbols for example).
13495 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13496 # (--disable-auto-import) libraries
13497 lt_prog_compiler_pic='-DDLL_EXPORT'
13498 case $host_os in
13499 os2*)
13500 lt_prog_compiler_static='$wl-static'
13501 ;;
13502 esac
13503 ;;
13504
13505 darwin* | rhapsody*)
13506 # PIC is the default on this platform
13507 # Common symbols not allowed in MH_DYLIB files
13508 lt_prog_compiler_pic='-fno-common'
13509 ;;
13510
13511 haiku*)
13512 # PIC is the default for Haiku.
13513 # The "-static" flag exists, but is broken.
13514 lt_prog_compiler_static=
13515 ;;
13516
13517 hpux*)
13518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13520 # sets the default TLS model and affects inlining.
13521 case $host_cpu in
13522 hppa*64*)
13523 # +Z the default
13524 ;;
13525 *)
13526 lt_prog_compiler_pic='-fPIC'
13527 ;;
13528 esac
13529 ;;
13530
13531 interix[3-9]*)
13532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13533 # Instead, we relocate shared libraries at runtime.
13534 ;;
13535
13536 msdosdjgpp*)
13537 # Just because we use GCC doesn't mean we suddenly get shared libraries
13538 # on systems that don't support them.
13539 lt_prog_compiler_can_build_shared=no
13540 enable_shared=no
13541 ;;
13542
13543 *nto* | *qnx*)
13544 # QNX uses GNU C++, but need to define -shared option too, otherwise
13545 # it will coredump.
13546 lt_prog_compiler_pic='-fPIC -shared'
13547 ;;
13548
13549 sysv4*MP*)
13550 if test -d /usr/nec; then
13551 lt_prog_compiler_pic=-Kconform_pic
13552 fi
13553 ;;
13554
13555 *)
13556 lt_prog_compiler_pic='-fPIC'
13557 ;;
13558 esac
13559
13560 case $cc_basename in
13561 nvcc*) # Cuda Compiler Driver 2.2
13562 lt_prog_compiler_wl='-Xlinker '
13563 if test -n "$lt_prog_compiler_pic"; then
13564 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13565 fi
13566 ;;
13567 esac
13568 else
13569 # PORTME Check for flag to pass linker flags through the system compiler.
13570 case $host_os in
13571 aix*)
13572 lt_prog_compiler_wl='-Wl,'
13573 if test ia64 = "$host_cpu"; then
13574 # AIX 5 now supports IA64 processor
13575 lt_prog_compiler_static='-Bstatic'
13576 else
13577 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13578 fi
13579 ;;
13580
13581 darwin* | rhapsody*)
13582 # PIC is the default on this platform
13583 # Common symbols not allowed in MH_DYLIB files
13584 lt_prog_compiler_pic='-fno-common'
13585 case $cc_basename in
13586 nagfor*)
13587 # NAG Fortran compiler
13588 lt_prog_compiler_wl='-Wl,-Wl,,'
13589 lt_prog_compiler_pic='-PIC'
13590 lt_prog_compiler_static='-Bstatic'
13591 ;;
13592 esac
13593 ;;
13594
13595 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13596 # This hack is so that the source file can tell whether it is being
13597 # built for inclusion in a dll (and should export symbols for example).
13598 lt_prog_compiler_pic='-DDLL_EXPORT'
13599 case $host_os in
13600 os2*)
13601 lt_prog_compiler_static='$wl-static'
13602 ;;
13603 esac
13604 ;;
13605
13606 hpux9* | hpux10* | hpux11*)
13607 lt_prog_compiler_wl='-Wl,'
13608 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13609 # not for PA HP-UX.
13610 case $host_cpu in
13611 hppa*64*|ia64*)
13612 # +Z the default
13613 ;;
13614 *)
13615 lt_prog_compiler_pic='+Z'
13616 ;;
13617 esac
13618 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13619 lt_prog_compiler_static='$wl-a ${wl}archive'
13620 ;;
13621
13622 irix5* | irix6* | nonstopux*)
13623 lt_prog_compiler_wl='-Wl,'
13624 # PIC (with -KPIC) is the default.
13625 lt_prog_compiler_static='-non_shared'
13626 ;;
13627
13628 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13629 case $cc_basename in
13630 # old Intel for x86_64, which still supported -KPIC.
13631 ecc*)
13632 lt_prog_compiler_wl='-Wl,'
13633 lt_prog_compiler_pic='-KPIC'
13634 lt_prog_compiler_static='-static'
13635 ;;
13636 *flang* | ftn | f18* | f95*)
13637 # Flang compiler.
13638 lt_prog_compiler_wl='-Wl,'
13639 lt_prog_compiler_pic='-fPIC'
13640 lt_prog_compiler_static='-static'
13641 ;;
13642 # flang / f18. f95 an alias for gfortran or flang on Debian
13643 flang* | f18* | f95*)
13644 lt_prog_compiler_wl='-Wl,'
13645 lt_prog_compiler_pic='-fPIC'
13646 lt_prog_compiler_static='-static'
13647 ;;
13648 # icc used to be incompatible with GCC.
13649 # ICC 10 doesn't accept -KPIC any more.
13650 icc* | ifort*)
13651 lt_prog_compiler_wl='-Wl,'
13652 lt_prog_compiler_pic='-fPIC'
13653 lt_prog_compiler_static='-static'
13654 ;;
13655 # Lahey Fortran 8.1.
13656 lf95*)
13657 lt_prog_compiler_wl='-Wl,'
13658 lt_prog_compiler_pic='--shared'
13659 lt_prog_compiler_static='--static'
13660 ;;
13661 nagfor*)
13662 # NAG Fortran compiler
13663 lt_prog_compiler_wl='-Wl,-Wl,,'
13664 lt_prog_compiler_pic='-PIC'
13665 lt_prog_compiler_static='-Bstatic'
13666 ;;
13667 tcc*)
13668 # Fabrice Bellard et al's Tiny C Compiler
13669 lt_prog_compiler_wl='-Wl,'
13670 lt_prog_compiler_pic='-fPIC'
13671 lt_prog_compiler_static='-static'
13672 ;;
13673 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13674 # Portland Group compilers (*not* the Pentium gcc compiler,
13675 # which looks to be a dead project)
13676 lt_prog_compiler_wl='-Wl,'
13677 lt_prog_compiler_pic='-fpic'
13678 lt_prog_compiler_static='-Bstatic'
13679 ;;
13680 ccc*)
13681 lt_prog_compiler_wl='-Wl,'
13682 # All Alpha code is PIC.
13683 lt_prog_compiler_static='-non_shared'
13684 ;;
13685 xl* | bgxl* | bgf* | mpixl*)
13686 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13687 lt_prog_compiler_wl='-Wl,'
13688 lt_prog_compiler_pic='-qpic'
13689 lt_prog_compiler_static='-qstaticlink'
13690 ;;
13691 *)
13692 case `$CC -V 2>&1 | $SED 5q` in
13693 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13694 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13695 lt_prog_compiler_pic='-KPIC'
13696 lt_prog_compiler_static='-Bstatic'
13697 lt_prog_compiler_wl=''
13698 ;;
13699 *Sun\ F* | *Sun*Fortran*)
13700 lt_prog_compiler_pic='-KPIC'
13701 lt_prog_compiler_static='-Bstatic'
13702 lt_prog_compiler_wl='-Qoption ld '
13703 ;;
13704 *Sun\ C*)
13705 # Sun C 5.9
13706 lt_prog_compiler_pic='-KPIC'
13707 lt_prog_compiler_static='-Bstatic'
13708 lt_prog_compiler_wl='-Wl,'
13709 ;;
13710 *Intel*\ [CF]*Compiler*)
13711 lt_prog_compiler_wl='-Wl,'
13712 lt_prog_compiler_pic='-fPIC'
13713 lt_prog_compiler_static='-static'
13714 ;;
13715 *Portland\ Group*)
13716 lt_prog_compiler_wl='-Wl,'
13717 lt_prog_compiler_pic='-fpic'
13718 lt_prog_compiler_static='-Bstatic'
13719 ;;
13720 esac
13721 ;;
13722 esac
13723 ;;
13724
13725 newsos6)
13726 lt_prog_compiler_pic='-KPIC'
13727 lt_prog_compiler_static='-Bstatic'
13728 ;;
13729
13730 *-mlibc)
13731 lt_prog_compiler_wl='-Wl,'
13732 lt_prog_compiler_pic='-fPIC'
13733 lt_prog_compiler_static='-static'
13734 ;;
13735
13736 *nto* | *qnx*)
13737 # QNX uses GNU C++, but need to define -shared option too, otherwise
13738 # it will coredump.
13739 lt_prog_compiler_pic='-fPIC -shared'
13740 ;;
13741
13742 osf3* | osf4* | osf5*)
13743 lt_prog_compiler_wl='-Wl,'
13744 # All OSF/1 code is PIC.
13745 lt_prog_compiler_static='-non_shared'
13746 ;;
13747
13748 rdos*)
13749 lt_prog_compiler_static='-non_shared'
13750 ;;
13751
13752 serenity*)
13753 ;;
13754
13755 solaris*)
13756 lt_prog_compiler_pic='-KPIC'
13757 lt_prog_compiler_static='-Bstatic'
13758 case $cc_basename in
13759 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13760 lt_prog_compiler_wl='-Qoption ld ';;
13761 *)
13762 lt_prog_compiler_wl='-Wl,';;
13763 esac
13764 ;;
13765
13766 sunos4*)
13767 lt_prog_compiler_wl='-Qoption ld '
13768 lt_prog_compiler_pic='-PIC'
13769 lt_prog_compiler_static='-Bstatic'
13770 ;;
13771
13772 sysv4 | sysv4.2uw2* | sysv4.3*)
13773 lt_prog_compiler_wl='-Wl,'
13774 lt_prog_compiler_pic='-KPIC'
13775 lt_prog_compiler_static='-Bstatic'
13776 ;;
13777
13778 sysv4*MP*)
13779 if test -d /usr/nec; then
13780 lt_prog_compiler_pic='-Kconform_pic'
13781 lt_prog_compiler_static='-Bstatic'
13782 fi
13783 ;;
13784
13785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13786 lt_prog_compiler_wl='-Wl,'
13787 lt_prog_compiler_pic='-KPIC'
13788 lt_prog_compiler_static='-Bstatic'
13789 ;;
13790
13791 unicos*)
13792 lt_prog_compiler_wl='-Wl,'
13793 lt_prog_compiler_can_build_shared=no
13794 ;;
13795
13796 uts4*)
13797 lt_prog_compiler_pic='-pic'
13798 lt_prog_compiler_static='-Bstatic'
13799 ;;
13800
13801 *)
13802 lt_prog_compiler_can_build_shared=no
13803 ;;
13804 esac
13805 fi
13806
13807 case $host_os in
13808 # For platforms that do not support PIC, -DPIC is meaningless:
13809 *djgpp*)
13810 lt_prog_compiler_pic=
13811 ;;
13812 *)
13813 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13814 ;;
13815 esac
13816
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13818 printf %s "checking for $compiler option to produce PIC... " >&6; }
13819 if test ${lt_cv_prog_compiler_pic+y}
13820 then :
13821 printf %s "(cached) " >&6
13822 else case e in #(
13823 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13824 esac
13825 fi
13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13827 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13828 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13829
13830 #
13831 # Check to make sure the PIC flag actually works.
13832 #
13833 if test -n "$lt_prog_compiler_pic"; then
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13835 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13836 if test ${lt_cv_prog_compiler_pic_works+y}
13837 then :
13838 printf %s "(cached) " >&6
13839 else case e in #(
13840 e) lt_cv_prog_compiler_pic_works=no
13841 ac_outfile=conftest.$ac_objext
13842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13843 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13844 # Insert the option either (1) after the last *FLAGS variable, or
13845 # (2) before a word containing "conftest.", or (3) at the end.
13846 # Note that $ac_compile itself does not contain backslashes and begins
13847 # with a dollar sign (not a hyphen), so the echo should work correctly.
13848 # The option is referenced via a variable to avoid confusing sed.
13849 lt_compile=`echo "$ac_compile" | $SED \
13850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13852 -e 's:$: $lt_compiler_flag:'`
13853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13854 (eval "$lt_compile" 2>conftest.err)
13855 ac_status=$?
13856 cat conftest.err >&5
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 if (exit $ac_status) && test -s "$ac_outfile"; then
13859 # The compiler can only warn and ignore the option if not recognized
13860 # So say no if there are warnings other than the usual output.
13861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13864 lt_cv_prog_compiler_pic_works=yes
13865 fi
13866 fi
13867 $RM conftest*
13868 ;;
13869 esac
13870 fi
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13872 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13873
13874 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13875 case $lt_prog_compiler_pic in
13876 "" | " "*) ;;
13877 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13878 esac
13879 else
13880 lt_prog_compiler_pic=
13881 lt_prog_compiler_can_build_shared=no
13882 fi
13883
13884 fi
13885
13886
13887
13888
13889
13890 #
13891 # Check to make sure the static flag actually works.
13892 #
13893 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13895 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13896 if test ${lt_cv_prog_compiler_static_works+y}
13897 then :
13898 printf %s "(cached) " >&6
13899 else case e in #(
13900 e) lt_cv_prog_compiler_static_works=no
13901 save_LDFLAGS=$LDFLAGS
13902 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13905 # The linker can only warn and ignore the option if not recognized
13906 # So say no if there are warnings
13907 if test -s conftest.err; then
13908 # Append any errors to the config.log.
13909 cat conftest.err 1>&5
13910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13912 if diff conftest.exp conftest.er2 >/dev/null; then
13913 lt_cv_prog_compiler_static_works=yes
13914 fi
13915 else
13916 lt_cv_prog_compiler_static_works=yes
13917 fi
13918 fi
13919 $RM -r conftest*
13920 LDFLAGS=$save_LDFLAGS
13921 ;;
13922 esac
13923 fi
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13925 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13926
13927 if test yes = "$lt_cv_prog_compiler_static_works"; then
13928 :
13929 else
13930 lt_prog_compiler_static=
13931 fi
13932
13933
13934
13935 ='-fPIC'
13936 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13937 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'
13938 archive_cmds_need_lc=no
13939 no_undefined_flag=
13940 ;;
13941
13942 *)
13943 dynamic_linker=no
13944 ;;
13945 esac
13946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13947 printf "%s\n" "$dynamic_linker" >&6; }
13948 test no = "$dynamic_linker" && can_build_shared=no
13949
13950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13951 if test yes = "$GCC"; then
13952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13953 fi
13954
13955 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13956 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13957 fi
13958
13959 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13960 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13961 fi
13962
13963 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13964 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13965
13966 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13967 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13968
13969 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13970 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14069 printf %s "checking how to hardcode library paths into programs... " >&6; }
14070 hardcode_action=
14071 if test -n "$hardcode_libdir_flag_spec" ||
14072 test -n "$runpath_var" ||
14073 test yes = "$hardcode_automatic"; then
14074
14075 # We can hardcode non-existent directories.
14076 if test no != "$hardcode_direct" &&
14077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14078 # have to relink, otherwise we might link with an installed library
14079 # when we should be linking with a yet-to-be-installed one
14080 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14081 test no != "$hardcode_minus_L"; then
14082 # Linking always hardcodes the temporary library directory.
14083 hardcode_action=relink
14084 else
14085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14086 hardcode_action=immediate
14087 fi
14088 else
14089 # We cannot hardcode anything, or else we can only hardcode existing
14090 # directories.
14091 hardcode_action=unsupported
14092 fi
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14094 printf "%s\n" "$hardcode_action" >&6; }
14095
14096 if test relink = "$hardcode_action" ||
14097 test yes = "$inherit_rpath"; then
14098 # Fast installation is not supported
14099 enable_fast_install=no
14100 elif test yes = "$shlibpath_overrides_runpath" ||
14101 test no = "$enable_shared"; then
14102 # Fast installation is not necessary
14103 enable_fast_install=needless
14104 fi
14105
14106
14107
14108
14109
14110
14111 if test yes != "$enable_dlopen"; then
14112 enable_dlopen=unknown
14113 enable_dlopen_self=unknown
14114 enable_dlopen_self_static=unknown
14115 else
14116 lt_cv_dlopen=no
14117 lt_cv_dlopen_libs=
14118
14119 case $host_os in
14120 beos*)
14121 lt_cv_dlopen=load_add_on
14122 lt_cv_dlopen_libs=
14123 lt_cv_dlopen_self=yes
14124 ;;
14125
14126 mingw* | windows* | pw32* | cegcc*)
14127 lt_cv_dlopen=LoadLibrary
14128 lt_cv_dlopen_libs=
14129 ;;
14130
14131 cygwin*)
14132 lt_cv_dlopen=dlopen
14133 lt_cv_dlopen_libs=
14134 ;;
14135
14136 darwin*)
14137 # if libdl is installed we need to link against it
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14139 printf %s "checking for dlopen in -ldl... " >&6; }
14140 if test ${ac_cv_lib_dl_dlopen+y}
14141 then :
14142 printf %s "(cached) " >&6
14143 else case e in #(
14144 e) ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-ldl $LIBS"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148
14149 /* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply.
14152 The 'extern "C"' is for builds by C++ compilers;
14153 although this is not generally supported in C code supporting it here
14154 has little cost and some practical benefit (sr 110532). */
14155 #ifdef __cplusplus
14156 extern "C"
14157 #endif
14158 char dlopen (void);
14159 int
14160 main (void)
14161 {
14162 return dlopen ();
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_link "$LINENO"
14168 then :
14169 ac_cv_lib_dl_dlopen=yes
14170 else case e in #(
14171 e) ac_cv_lib_dl_dlopen=no ;;
14172 esac
14173 fi
14174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14175 conftest$ac_exeext conftest.$ac_ext
14176 LIBS=$ac_check_lib_save_LIBS ;;
14177 esac
14178 fi
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14180 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14181 if test "x$ac_cv_lib_dl_dlopen" = xyes
14182 then :
14183 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14184 else case e in #(
14185 e)
14186 lt_cv_dlopen=dyld
14187 lt_cv_dlopen_libs=
14188 lt_cv_dlopen_self=yes
14189 ;;
14190 esac
14191 fi
14192
14193 ;;
14194
14195 tpf*)
14196 # Don't try to run any link tests for TPF. We know it's impossible
14197 # because TPF is a cross-compiler, and we know how we open DSOs.
14198 lt_cv_dlopen=dlopen
14199 lt_cv_dlopen_libs=
14200 lt_cv_dlopen_self=no
14201 ;;
14202
14203 *)
14204 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14205 if test "x$ac_cv_func_shl_load" = xyes
14206 then :
14207 lt_cv_dlopen=shl_load
14208 else case e in #(
14209 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14210 printf %s "checking for shl_load in -ldld... " >&6; }
14211 if test ${ac_cv_lib_dld_shl_load+y}
14212 then :
14213 printf %s "(cached) " >&6
14214 else case e in #(
14215 e) ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-ldld $LIBS"
14217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h. */
14219
14220 /* Override any GCC internal prototype to avoid an error.
14221 Use char because int might match the return type of a GCC
14222 builtin and then its argument prototype would still apply.
14223 The 'extern "C"' is for builds by C++ compilers;
14224 although this is not generally supported in C code supporting it here
14225 has little cost and some practical benefit (sr 110532). */
14226 #ifdef __cplusplus
14227 extern "C"
14228 #endif
14229 char shl_load (void);
14230 int
14231 main (void)
14232 {
14233 return shl_load ();
14234 ;
14235 return 0;
14236 }
14237 _ACEOF
14238 if ac_fn_c_try_link "$LINENO"
14239 then :
14240 ac_cv_lib_dld_shl_load=yes
14241 else case e in #(
14242 e) ac_cv_lib_dld_shl_load=no ;;
14243 esac
14244 fi
14245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14246 conftest$ac_exeext conftest.$ac_ext
14247 LIBS=$ac_check_lib_save_LIBS ;;
14248 esac
14249 fi
14250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14251 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14252 if test "x$ac_cv_lib_dld_shl_load" = xyes
14253 then :
14254 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14255 else case e in #(
14256 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14257 if test "x$ac_cv_func_dlopen" = xyes
14258 then :
14259 lt_cv_dlopen=dlopen
14260 else case e in #(
14261 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14262 printf %s "checking for dlopen in -ldl... " >&6; }
14263 if test ${ac_cv_lib_dl_dlopen+y}
14264 then :
14265 printf %s "(cached) " >&6
14266 else case e in #(
14267 e) ac_check_lib_save_LIBS=$LIBS
14268 LIBS="-ldl $LIBS"
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271
14272 /* Override any GCC internal prototype to avoid an error.
14273 Use char because int might match the return type of a GCC
14274 builtin and then its argument prototype would still apply.
14275 The 'extern "C"' is for builds by C++ compilers;
14276 although this is not generally supported in C code supporting it here
14277 has little cost and some practical benefit (sr 110532). */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char dlopen (void);
14282 int
14283 main (void)
14284 {
14285 return dlopen ();
14286 ;
14287 return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"
14291 then :
14292 ac_cv_lib_dl_dlopen=yes
14293 else case e in #(
14294 e) ac_cv_lib_dl_dlopen=no ;;
14295 esac
14296 fi
14297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14298 conftest$ac_exeext conftest.$ac_ext
14299 LIBS=$ac_check_lib_save_LIBS ;;
14300 esac
14301 fi
14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14303 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14304 if test "x$ac_cv_lib_dl_dlopen" = xyes
14305 then :
14306 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14307 else case e in #(
14308 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14309 printf %s "checking for dlopen in -lsvld... " >&6; }
14310 if test ${ac_cv_lib_svld_dlopen+y}
14311 then :
14312 printf %s "(cached) " >&6
14313 else case e in #(
14314 e) ac_check_lib_save_LIBS=$LIBS
14315 LIBS="-lsvld $LIBS"
14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h. */
14318
14319 /* Override any GCC internal prototype to avoid an error.
14320 Use char because int might match the return type of a GCC
14321 builtin and then its argument prototype would still apply.
14322 The 'extern "C"' is for builds by C++ compilers;
14323 although this is not generally supported in C code supporting it here
14324 has little cost and some practical benefit (sr 110532). */
14325 #ifdef __cplusplus
14326 extern "C"
14327 #endif
14328 char dlopen (void);
14329 int
14330 main (void)
14331 {
14332 return dlopen ();
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"
14338 then :
14339 ac_cv_lib_svld_dlopen=yes
14340 else case e in #(
14341 e) ac_cv_lib_svld_dlopen=no ;;
14342 esac
14343 fi
14344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS ;;
14347 esac
14348 fi
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14350 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14351 if test "x$ac_cv_lib_svld_dlopen" = xyes
14352 then :
14353 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14354 else case e in #(
14355 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14356 printf %s "checking for dld_link in -ldld... " >&6; }
14357 if test ${ac_cv_lib_dld_dld_link+y}
14358 then :
14359 printf %s "(cached) " >&6
14360 else case e in #(
14361 e) ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-ldld $LIBS"
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply.
14369 The 'extern "C"' is for builds by C++ compilers;
14370 although this is not generally supported in C code supporting it here
14371 has little cost and some practical benefit (sr 110532). */
14372 #ifdef __cplusplus
14373 extern "C"
14374 #endif
14375 char dld_link (void);
14376 int
14377 main (void)
14378 {
14379 return dld_link ();
14380 ;
14381 return 0;
14382 }
14383 _ACEOF
14384 if ac_fn_c_try_link "$LINENO"
14385 then :
14386 ac_cv_lib_dld_dld_link=yes
14387 else case e in #(
14388 e) ac_cv_lib_dld_dld_link=no ;;
14389 esac
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS ;;
14394 esac
14395 fi
14396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14397 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14398 if test "x$ac_cv_lib_dld_dld_link" = xyes
14399 then :
14400 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14401 fi
14402
14403 ;;
14404 esac
14405 fi
14406
14407 ;;
14408 esac
14409 fi
14410
14411 ;;
14412 esac
14413 fi
14414
14415 ;;
14416 esac
14417 fi
14418
14419 ;;
14420 esac
14421 fi
14422
14423 ;;
14424 esac
14425
14426 if test no = "$lt_cv_dlopen"; then
14427 enable_dlopen=no
14428 else
14429 enable_dlopen=yes
14430 fi
14431
14432 case $lt_cv_dlopen in
14433 dlopen)
14434 save_CPPFLAGS=$CPPFLAGS
14435 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14436
14437 save_LDFLAGS=$LDFLAGS
14438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14439
14440 save_LIBS=$LIBS
14441 LIBS="$lt_cv_dlopen_libs $LIBS"
14442
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14444 printf %s "checking whether a program can dlopen itself... " >&6; }
14445 if test ${lt_cv_dlopen_self+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else case e in #(
14449 e) if test yes = "$cross_compiling"; then :
14450 lt_cv_dlopen_self=cross
14451 else
14452 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14453 lt_status=$lt_dlunknown
14454 cat > conftest.$ac_ext <<_LT_EOF
14455 #line $LINENO "configure"
14456 #include "confdefs.h"
14457
14458 #if HAVE_DLFCN_H
14459 #include <dlfcn.h>
14460 #endif
14461
14462 #include <stdio.h>
14463
14464 #ifdef RTLD_GLOBAL
14465 # define LT_DLGLOBAL RTLD_GLOBAL
14466 #else
14467 # ifdef DL_GLOBAL
14468 # define LT_DLGLOBAL DL_GLOBAL
14469 # else
14470 # define LT_DLGLOBAL 0
14471 # endif
14472 #endif
14473
14474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14475 find out it does not work in some platform. */
14476 #ifndef LT_DLLAZY_OR_NOW
14477 # ifdef RTLD_LAZY
14478 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14479 # else
14480 # ifdef DL_LAZY
14481 # define LT_DLLAZY_OR_NOW DL_LAZY
14482 # else
14483 # ifdef RTLD_NOW
14484 # define LT_DLLAZY_OR_NOW RTLD_NOW
14485 # else
14486 # ifdef DL_NOW
14487 # define LT_DLLAZY_OR_NOW DL_NOW
14488 # else
14489 # define LT_DLLAZY_OR_NOW 0
14490 # endif
14491 # endif
14492 # endif
14493 # endif
14494 #endif
14495
14496 /* When -fvisibility=hidden is used, assume the code has been annotated
14497 correspondingly for the symbols needed. */
14498 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14499 int fnord (void) __attribute__((visibility("default")));
14500 #endif
14501
14502 int fnord (void) { return 42; }
14503 int main (void)
14504 {
14505 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14506 int status = $lt_dlunknown;
14507
14508 if (self)
14509 {
14510 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14511 else
14512 {
14513 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14514 else puts (dlerror ());
14515 }
14516 /* dlclose (self); */
14517 }
14518 else
14519 puts (dlerror ());
14520
14521 return status;
14522 }
14523 _LT_EOF
14524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14525 (eval $ac_link) 2>&5
14526 ac_status=$?
14527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14528 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14529 (./conftest; exit; ) >&5 2>/dev/null
14530 lt_status=$?
14531 case x$lt_status in
14532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14535 esac
14536 else :
14537 # compilation failed
14538 lt_cv_dlopen_self=no
14539 fi
14540 fi
14541 rm -fr conftest*
14542
14543 ;;
14544 esac
14545 fi
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14547 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14548
14549 if test yes = "$lt_cv_dlopen_self"; then
14550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14552 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14553 if test ${lt_cv_dlopen_self_static+y}
14554 then :
14555 printf %s "(cached) " >&6
14556 else case e in #(
14557 e) if test yes = "$cross_compiling"; then :
14558 lt_cv_dlopen_self_static=cross
14559 else
14560 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14561 lt_status=$lt_dlunknown
14562 cat > conftest.$ac_ext <<_LT_EOF
14563 #line $LINENO "configure"
14564 #include "confdefs.h"
14565
14566 #if HAVE_DLFCN_H
14567 #include <dlfcn.h>
14568 #endif
14569
14570 #include <stdio.h>
14571
14572 #ifdef RTLD_GLOBAL
14573 # define LT_DLGLOBAL RTLD_GLOBAL
14574 #else
14575 # ifdef DL_GLOBAL
14576 # define LT_DLGLOBAL DL_GLOBAL
14577 # else
14578 # define LT_DLGLOBAL 0
14579 # endif
14580 #endif
14581
14582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14583 find out it does not work in some platform. */
14584 #ifndef LT_DLLAZY_OR_NOW
14585 # ifdef RTLD_LAZY
14586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14587 # else
14588 # ifdef DL_LAZY
14589 # define LT_DLLAZY_OR_NOW DL_LAZY
14590 # else
14591 # ifdef RTLD_NOW
14592 # define LT_DLLAZY_OR_NOW RTLD_NOW
14593 # else
14594 # ifdef DL_NOW
14595 # define LT_DLLAZY_OR_NOW DL_NOW
14596 # else
14597 # define LT_DLLAZY_OR_NOW 0
14598 # endif
14599 # endif
14600 # endif
14601 # endif
14602 #endif
14603
14604 /* When -fvisibility=hidden is used, assume the code has been annotated
14605 correspondingly for the symbols needed. */
14606 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14607 int fnord (void) __attribute__((visibility("default")));
14608 #endif
14609
14610 int fnord (void) { return 42; }
14611 int main (void)
14612 {
14613 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14614 int status = $lt_dlunknown;
14615
14616 if (self)
14617 {
14618 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14619 else
14620 {
14621 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14622 else puts (dlerror ());
14623 }
14624 /* dlclose (self); */
14625 }
14626 else
14627 puts (dlerror ());
14628
14629 return status;
14630 }
14631 _LT_EOF
14632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14633 (eval $ac_link) 2>&5
14634 ac_status=$?
14635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14636 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14637 (./conftest; exit; ) >&5 2>/dev/null
14638 lt_status=$?
14639 case x$lt_status in
14640 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14641 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14642 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14643 esac
14644 else :
14645 # compilation failed
14646 lt_cv_dlopen_self_static=no
14647 fi
14648 fi
14649 rm -fr conftest*
14650
14651 ;;
14652 esac
14653 fi
14654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14655 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14656 fi
14657
14658 CPPFLAGS=$save_CPPFLAGS
14659 LDFLAGS=$save_LDFLAGS
14660 LIBS=$save_LIBS
14661 ;;
14662 esac
14663
14664 case $lt_cv_dlopen_self in
14665 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14666 *) enable_dlopen_self=unknown ;;
14667 esac
14668
14669 case $lt_cv_dlopen_self_static in
14670 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14671 *) enable_dlopen_self_static=unknown ;;
14672 esac
14673 fi
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691 striplib=
14692 old_striplib=
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14694 printf %s "checking whether stripping libraries is possible... " >&6; }
14695 if test -z "$STRIP"; then
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 printf "%s\n" "no" >&6; }
14698 else
14699 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14700 old_striplib="$STRIP --strip-debug"
14701 striplib="$STRIP --strip-unneeded"
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14703 printf "%s\n" "yes" >&6; }
14704 else
14705 case $host_os in
14706 darwin*)
14707 # FIXME - insert some real tests, host_os isn't really good enough
14708 striplib="$STRIP -x"
14709 old_striplib="$STRIP -S"
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14711 printf "%s\n" "yes" >&6; }
14712 ;;
14713 freebsd*)
14714 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14715 old_striplib="$STRIP --strip-debug"
14716 striplib="$STRIP --strip-unneeded"
14717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14718 printf "%s\n" "yes" >&6; }
14719 else
14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14721 printf "%s\n" "no" >&6; }
14722 fi
14723 ;;
14724 *)
14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 printf "%s\n" "no" >&6; }
14727 ;;
14728 esac
14729 fi
14730 fi
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743 # Report what library types will actually be built
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14745 printf %s "checking if libtool supports shared libraries... " >&6; }
14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14747 printf "%s\n" "$can_build_shared" >&6; }
14748
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14750 printf %s "checking whether to build shared libraries... " >&6; }
14751 test no = "$can_build_shared" && enable_shared=no
14752
14753 # On AIX, shared libraries and static libraries use the same namespace, and
14754 # are all built from PIC.
14755 case $host_os in
14756 aix3*)
14757 test yes = "$enable_shared" && enable_static=no
14758 if test -n "$RANLIB"; then
14759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14760 postinstall_cmds='$RANLIB $lib'
14761 fi
14762 ;;
14763
14764 aix[4-9]*)
14765 if test ia64 != "$host_cpu"; then
14766 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14767 yes,aix,yes) ;; # shared object as lib.so file only
14768 yes,svr4,*) ;; # shared object as lib.so archive member only
14769 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14770 esac
14771 fi
14772 ;;
14773 esac
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14775 printf "%s\n" "$enable_shared" >&6; }
14776
14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14778 printf %s "checking whether to build static libraries... " >&6; }
14779 # Make sure either enable_shared or enable_static is yes.
14780 test yes = "$enable_shared" || enable_static=yes
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14782 printf "%s\n" "$enable_static" >&6; }
14783
14784
14785
14786
14787 fi
14788 ac_ext=c
14789 ac_cpp='$CPP $CPPFLAGS'
14790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14793
14794 CC=$lt_save_CC
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810 ac_config_commands="$ac_config_commands libtool"
14811
14812
14813
14814
14815 # Only expand once:
14816
14817
14818
14819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14820 printf %s "checking whether ln -s works... " >&6; }
14821 LN_S=$as_ln_s
14822 if test "$LN_S" = "ln -s"; then
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14824 printf "%s\n" "yes" >&6; }
14825 else
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14827 printf "%s\n" "no, using $LN_S" >&6; }
14828 fi
14829
14830
14831 case "$host" in
14832 *-*-linux* | *-*-uclinux*) ;;
14833 *) as_fn_error $? "Linux only, dude!" "$LINENO" 5;;
14834 esac
14835
14836
14837
14838
14839
14840
14841
14842
14843 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14844 if test -n "$ac_tool_prefix"; then
14845 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14846 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14848 printf %s "checking for $ac_word... " >&6; }
14849 if test ${ac_cv_path_PKG_CONFIG+y}
14850 then :
14851 printf %s "(cached) " >&6
14852 else case e in #(
14853 e) case $PKG_CONFIG in
14854 [\\/]* | ?:[\\/]*)
14855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14856 ;;
14857 *)
14858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14859 for as_dir in $PATH
14860 do
14861 IFS=$as_save_IFS
14862 case $as_dir in #(((
14863 '') as_dir=./ ;;
14864 */) ;;
14865 *) as_dir=$as_dir/ ;;
14866 esac
14867 for ac_exec_ext in '' $ac_executable_extensions; do
14868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14869 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14871 break 2
14872 fi
14873 done
14874 done
14875 IFS=$as_save_IFS
14876
14877 ;;
14878 esac ;;
14879 esac
14880 fi
14881 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14882 if test -n "$PKG_CONFIG"; then
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14884 printf "%s\n" "$PKG_CONFIG" >&6; }
14885 else
14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887 printf "%s\n" "no" >&6; }
14888 fi
14889
14890
14891 fi
14892 if test -z "$ac_cv_path_PKG_CONFIG"; then
14893 ac_pt_PKG_CONFIG=$PKG_CONFIG
14894 # Extract the first word of "pkg-config", so it can be a program name with args.
14895 set dummy pkg-config; ac_word=$2
14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14897 printf %s "checking for $ac_word... " >&6; }
14898 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14899 then :
14900 printf %s "(cached) " >&6
14901 else case e in #(
14902 e) case $ac_pt_PKG_CONFIG in
14903 [\\/]* | ?:[\\/]*)
14904 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14905 ;;
14906 *)
14907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14908 for as_dir in $PATH
14909 do
14910 IFS=$as_save_IFS
14911 case $as_dir in #(((
14912 '') as_dir=./ ;;
14913 */) ;;
14914 *) as_dir=$as_dir/ ;;
14915 esac
14916 for ac_exec_ext in '' $ac_executable_extensions; do
14917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14918 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14920 break 2
14921 fi
14922 done
14923 done
14924 IFS=$as_save_IFS
14925
14926 ;;
14927 esac ;;
14928 esac
14929 fi
14930 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14931 if test -n "$ac_pt_PKG_CONFIG"; then
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14933 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14934 else
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 printf "%s\n" "no" >&6; }
14937 fi
14938
14939 if test "x$ac_pt_PKG_CONFIG" = x; then
14940 PKG_CONFIG=""
14941 else
14942 case $cross_compiling:$ac_tool_warned in
14943 yes:)
14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14946 ac_tool_warned=yes ;;
14947 esac
14948 PKG_CONFIG=$ac_pt_PKG_CONFIG
14949 fi
14950 else
14951 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14952 fi
14953
14954 fi
14955 if test -n "$PKG_CONFIG"; then
14956 _pkg_min_version=0.9.0
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14958 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14959 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14961 printf "%s\n" "yes" >&6; }
14962 else
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14964 printf "%s\n" "no" >&6; }
14965 PKG_CONFIG=""
14966 fi
14967 fi
14968
14969 pkg_failed=no
14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnfnetlink >= 1.0.0" >&5
14971 printf %s "checking for libnfnetlink >= 1.0.0... " >&6; }
14972
14973 if test -n "$LIBNFNETLINK_CFLAGS"; then
14974 pkg_cv_LIBNFNETLINK_CFLAGS="$LIBNFNETLINK_CFLAGS"
14975 elif test -n "$PKG_CONFIG"; then
14976 if test -n "$PKG_CONFIG" && \
14977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0.0\""; } >&5
14978 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0.0") 2>&5
14979 ac_status=$?
14980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; }; then
14982 pkg_cv_LIBNFNETLINK_CFLAGS=`$PKG_CONFIG --cflags "libnfnetlink >= 1.0.0" 2>/dev/null`
14983 test "x$?" != "x0" && pkg_failed=yes
14984 else
14985 pkg_failed=yes
14986 fi
14987 else
14988 pkg_failed=untried
14989 fi
14990 if test -n "$LIBNFNETLINK_LIBS"; then
14991 pkg_cv_LIBNFNETLINK_LIBS="$LIBNFNETLINK_LIBS"
14992 elif test -n "$PKG_CONFIG"; then
14993 if test -n "$PKG_CONFIG" && \
14994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0.0\""; } >&5
14995 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0.0") 2>&5
14996 ac_status=$?
14997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }; then
14999 pkg_cv_LIBNFNETLINK_LIBS=`$PKG_CONFIG --libs "libnfnetlink >= 1.0.0" 2>/dev/null`
15000 test "x$?" != "x0" && pkg_failed=yes
15001 else
15002 pkg_failed=yes
15003 fi
15004 else
15005 pkg_failed=untried
15006 fi
15007
15008
15009
15010 if test $pkg_failed = yes; then
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15012 printf "%s\n" "no" >&6; }
15013
15014 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15015 _pkg_short_errors_supported=yes
15016 else
15017 _pkg_short_errors_supported=no
15018 fi
15019 if test $_pkg_short_errors_supported = yes; then
15020 LIBNFNETLINK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnfnetlink >= 1.0.0" 2>&1`
15021 else
15022 LIBNFNETLINK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnfnetlink >= 1.0.0" 2>&1`
15023 fi
15024 # Put the nasty error message in config.log where it belongs
15025 echo "$LIBNFNETLINK_PKG_ERRORS" >&5
15026
15027 as_fn_error $? "Package requirements (libnfnetlink >= 1.0.0) were not met:
15028
15029 $LIBNFNETLINK_PKG_ERRORS
15030
15031 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15032 installed software in a non-standard prefix.
15033
15034 Alternatively, you may set the environment variables LIBNFNETLINK_CFLAGS
15035 and LIBNFNETLINK_LIBS to avoid the need to call pkg-config.
15036 See the pkg-config man page for more details." "$LINENO" 5
15037 elif test $pkg_failed = untried; then
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 printf "%s\n" "no" >&6; }
15040 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15041 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15042 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15043 is in your PATH or set the PKG_CONFIG environment variable to the full
15044 path to pkg-config.
15045
15046 Alternatively, you may set the environment variables LIBNFNETLINK_CFLAGS
15047 and LIBNFNETLINK_LIBS to avoid the need to call pkg-config.
15048 See the pkg-config man page for more details.
15049
15050 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15051 See 'config.log' for more details" "$LINENO" 5; }
15052 else
15053 LIBNFNETLINK_CFLAGS=$pkg_cv_LIBNFNETLINK_CFLAGS
15054 LIBNFNETLINK_LIBS=$pkg_cv_LIBNFNETLINK_LIBS
15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15056 printf "%s\n" "yes" >&6; }
15057
15058 fi
15059
15060 pkg_failed=no
15061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmnl >= 1.0.3" >&5
15062 printf %s "checking for libmnl >= 1.0.3... " >&6; }
15063
15064 if test -n "$LIBMNL_CFLAGS"; then
15065 pkg_cv_LIBMNL_CFLAGS="$LIBMNL_CFLAGS"
15066 elif test -n "$PKG_CONFIG"; then
15067 if test -n "$PKG_CONFIG" && \
15068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl >= 1.0.3\""; } >&5
15069 ($PKG_CONFIG --exists --print-errors "libmnl >= 1.0.3") 2>&5
15070 ac_status=$?
15071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072 test $ac_status = 0; }; then
15073 pkg_cv_LIBMNL_CFLAGS=`$PKG_CONFIG --cflags "libmnl >= 1.0.3" 2>/dev/null`
15074 test "x$?" != "x0" && pkg_failed=yes
15075 else
15076 pkg_failed=yes
15077 fi
15078 else
15079 pkg_failed=untried
15080 fi
15081 if test -n "$LIBMNL_LIBS"; then
15082 pkg_cv_LIBMNL_LIBS="$LIBMNL_LIBS"
15083 elif test -n "$PKG_CONFIG"; then
15084 if test -n "$PKG_CONFIG" && \
15085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl >= 1.0.3\""; } >&5
15086 ($PKG_CONFIG --exists --print-errors "libmnl >= 1.0.3") 2>&5
15087 ac_status=$?
15088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15089 test $ac_status = 0; }; then
15090 pkg_cv_LIBMNL_LIBS=`$PKG_CONFIG --libs "libmnl >= 1.0.3" 2>/dev/null`
15091 test "x$?" != "x0" && pkg_failed=yes
15092 else
15093 pkg_failed=yes
15094 fi
15095 else
15096 pkg_failed=untried
15097 fi
15098
15099
15100
15101 if test $pkg_failed = yes; then
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103 printf "%s\n" "no" >&6; }
15104
15105 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15106 _pkg_short_errors_supported=yes
15107 else
15108 _pkg_short_errors_supported=no
15109 fi
15110 if test $_pkg_short_errors_supported = yes; then
15111 LIBMNL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmnl >= 1.0.3" 2>&1`
15112 else
15113 LIBMNL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmnl >= 1.0.3" 2>&1`
15114 fi
15115 # Put the nasty error message in config.log where it belongs
15116 echo "$LIBMNL_PKG_ERRORS" >&5
15117
15118 as_fn_error $? "Package requirements (libmnl >= 1.0.3) were not met:
15119
15120 $LIBMNL_PKG_ERRORS
15121
15122 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15123 installed software in a non-standard prefix.
15124
15125 Alternatively, you may set the environment variables LIBMNL_CFLAGS
15126 and LIBMNL_LIBS to avoid the need to call pkg-config.
15127 See the pkg-config man page for more details." "$LINENO" 5
15128 elif test $pkg_failed = untried; then
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130 printf "%s\n" "no" >&6; }
15131 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15132 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15133 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15134 is in your PATH or set the PKG_CONFIG environment variable to the full
15135 path to pkg-config.
15136
15137 Alternatively, you may set the environment variables LIBMNL_CFLAGS
15138 and LIBMNL_LIBS to avoid the need to call pkg-config.
15139 See the pkg-config man page for more details.
15140
15141 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15142 See 'config.log' for more details" "$LINENO" 5; }
15143 else
15144 LIBMNL_CFLAGS=$pkg_cv_LIBMNL_CFLAGS
15145 LIBMNL_LIBS=$pkg_cv_LIBMNL_LIBS
15146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15147 printf "%s\n" "yes" >&6; }
15148
15149 fi
15150
15151 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15152 if test "x$ac_cv_header_arpa_inet_h" = xyes
15153 then :
15154 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
15155
15156 fi
15157
15158 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
15159 if test "x$ac_cv_func_inet_ntop" = xyes
15160 then :
15161 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
15162
15163 fi
15164
15165 ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns"
15166 if test "x$ac_cv_func_setns" = xyes
15167 then :
15168 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
15169
15170 fi
15171
15172 if test "$ac_cv_func_inet_ntop" = "yes" ; then
15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop supports IPv6" >&5
15174 printf %s "checking if inet_ntop supports IPv6... " >&6; }
15175 if test "$cross_compiling" = yes
15176 then :
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15178 printf "%s\n" "no" >&6; }
15179 else case e in #(
15180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182
15183 #ifdef HAVE_SYS_TYPES_H
15184 #include <sys/types.h>
15185 #endif
15186 #ifdef HAVE_SYS_SOCKET_H
15187 #include <sys/socket.h>
15188 #endif
15189 #ifdef HAVE_NETINET_IN_H
15190 #include <netinet/in.h>
15191 #endif
15192 #ifdef HAVE_ARPA_INET_H
15193 #include <arpa/inet.h>
15194 #endif
15195 #include <errno.h>
15196 int main()
15197 {
15198 struct in6_addr addr6;
15199 char buf[128];
15200 if (inet_ntop(AF_INET6, &addr6, buf, 128) == 0 && errno == EAFNOSUPPORT)
15201 return 1;
15202 else
15203 return 0;
15204 }
15205
15206 _ACEOF
15207 if ac_fn_c_try_run "$LINENO"
15208 then :
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15210 printf "%s\n" "yes" >&6; }
15211
15212 printf "%s\n" "#define HAVE_INET_NTOP_IPV6 1" >>confdefs.h
15213
15214
15215 else case e in #(
15216 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 printf "%s\n" "no" >&6; } ;;
15218 esac
15219 fi
15220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15221 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15222 esac
15223 fi
15224
15225 fi
15226
15227 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile utils/Makefile examples/Makefile tests/Makefile include/libnetfilter_conntrack/Makefile include/internal/Makefile src/conntrack/Makefile src/expect/Makefile libnetfilter_conntrack.pc doxygen.cfg"
15228
15229 cat >confcache <<\_ACEOF
15230 # This file is a shell script that caches the results of configure
15231 # tests run on this system so they can be shared between configure
15232 # scripts and configure runs, see configure's option --config-cache.
15233 # It is not useful on other systems. If it contains results you don't
15234 # want to keep, you may remove or edit it.
15235 #
15236 # config.status only pays attention to the cache file if you give it
15237 # the --recheck option to rerun configure.
15238 #
15239 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
15240 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
15241 # following values.
15242
15243 _ACEOF
15244
15245 # The following way of writing the cache mishandles newlines in values,
15246 # but we know of no workaround that is simple, portable, and efficient.
15247 # So, we kill variables containing newlines.
15248 # Ultrix sh set writes to stderr and can't be redirected directly,
15249 # and sets the high bit in the cache file unless we assign to the vars.
15250 (
15251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15252 eval ac_val=\$$ac_var
15253 case $ac_val in #(
15254 *${as_nl}*)
15255 case $ac_var in #(
15256 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15257 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15258 esac
15259 case $ac_var in #(
15260 _ | IFS | as_nl) ;; #(
15261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15262 *) { eval $ac_var=; unset $ac_var;} ;;
15263 esac ;;
15264 esac
15265 done
15266
15267 (set) 2>&1 |
15268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15269 *${as_nl}ac_space=\ *)
15270 # 'set' does not quote correctly, so add quotes: double-quote
15271 # substitution turns \\\\ into \\, and sed turns \\ into \.
15272 sed -n \
15273 "s/'/'\\\\''/g;
15274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15275 ;; #(
15276 *)
15277 # 'set' quotes correctly as required by POSIX, so do not add quotes.
15278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15279 ;;
15280 esac |
15281 sort
15282 ) |
15283 sed '
15284 /^ac_cv_env_/b end
15285 t clear
15286 :clear
15287 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15288 t end
15289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15290 :end' >>confcache
15291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15292 if test -w "$cache_file"; then
15293 if test "x$cache_file" != "x/dev/null"; then
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15295 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15296 if test ! -f "$cache_file" || test -h "$cache_file"; then
15297 cat confcache >"$cache_file"
15298 else
15299 case $cache_file in #(
15300 */* | ?:*)
15301 mv -f confcache "$cache_file"$$ &&
15302 mv -f "$cache_file"$$ "$cache_file" ;; #(
15303 *)
15304 mv -f confcache "$cache_file" ;;
15305 esac
15306 fi
15307 fi
15308 else
15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15310 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15311 fi
15312 fi
15313 rm -f confcache
15314
15315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15316 # Let make expand exec_prefix.
15317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15318
15319 DEFS=-DHAVE_CONFIG_H
15320
15321 ac_libobjs=
15322 ac_ltlibobjs=
15323 U=
15324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15325 # 1. Remove the extension, and $U if already installed.
15326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15327 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15329 # will be set to the directory where LIBOBJS objects are built.
15330 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15331 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15332 done
15333 LIBOBJS=$ac_libobjs
15334
15335 LTLIBOBJS=$ac_ltlibobjs
15336
15337
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15339 printf %s "checking that generated files are newer than configure... " >&6; }
15340 if test -n "$am_sleep_pid"; then
15341 # Hide warnings about reused PIDs.
15342 wait $am_sleep_pid 2>/dev/null
15343 fi
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15345 printf "%s\n" "done" >&6; }
15346 case $enable_silent_rules in # (((
15347 yes) AM_DEFAULT_VERBOSITY=0;;
15348 no) AM_DEFAULT_VERBOSITY=1;;
15349 esac
15350 if test $am_cv_make_support_nested_variables = yes; then
15351 AM_V='$(V)'
15352 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15353 else
15354 AM_V=$AM_DEFAULT_VERBOSITY
15355 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15356 fi
15357
15358 if test -n "$EXEEXT"; then
15359 am__EXEEXT_TRUE=
15360 am__EXEEXT_FALSE='#'
15361 else
15362 am__EXEEXT_TRUE='#'
15363 am__EXEEXT_FALSE=
15364 fi
15365
15366 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15367 as_fn_error $? "conditional \"AMDEP\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15369 fi
15370 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15371 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15373 fi
15374 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15375 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15377 fi
15378
15379 : "${CONFIG_STATUS=./config.status}"
15380 ac_write_fail=0
15381 ac_clean_files_save=$ac_clean_files
15382 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15384 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15385 as_write_fail=0
15386 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15387 #! $SHELL
15388 # Generated by $as_me.
15389 # Run this file to recreate the current configuration.
15390 # Compiler output produced by configure, useful for debugging
15391 # configure, is in config.log if it exists.
15392
15393 debug=false
15394 ac_cs_recheck=false
15395 ac_cs_silent=false
15396
15397 SHELL=\${CONFIG_SHELL-$SHELL}
15398 export SHELL
15399 _ASEOF
15400 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15401 ## -------------------- ##
15402 ## M4sh Initialization. ##
15403 ## -------------------- ##
15404
15405 # Be more Bourne compatible
15406 DUALCASE=1; export DUALCASE # for MKS sh
15407 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15408 then :
15409 emulate sh
15410 NULLCMD=:
15411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15412 # is contrary to our usage. Disable this feature.
15413 alias -g '${1+"$@"}'='"$@"'
15414 setopt NO_GLOB_SUBST
15415 else case e in #(
15416 e) case `(set -o) 2>/dev/null` in #(
15417 *posix*) :
15418 set -o posix ;; #(
15419 *) :
15420 ;;
15421 esac ;;
15422 esac
15423 fi
15424
15425
15426
15427 # Reset variables that may have inherited troublesome values from
15428 # the environment.
15429
15430 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15431 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15432 # side effect of setting IFS to empty, thus disabling word splitting.)
15433 # Quoting is to prevent editors from complaining about space-tab.
15434 as_nl='
15435 '
15436 export as_nl
15437 IFS=" "" $as_nl"
15438
15439 PS1='$ '
15440 PS2='> '
15441 PS4='+ '
15442
15443 # Ensure predictable behavior from utilities with locale-dependent output.
15444 LC_ALL=C
15445 export LC_ALL
15446 LANGUAGE=C
15447 export LANGUAGE
15448
15449 # We cannot yet rely on "unset" to work, but we need these variables
15450 # to be unset--not just set to an empty or harmless value--now, to
15451 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15452 # also avoids known problems related to "unset" and subshell syntax
15453 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15454 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15455 do eval test \${$as_var+y} \
15456 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15457 done
15458
15459 # Ensure that fds 0, 1, and 2 are open.
15460 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15461 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15462 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15463
15464 # The user is always right.
15465 if ${PATH_SEPARATOR+false} :; then
15466 PATH_SEPARATOR=:
15467 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15468 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15469 PATH_SEPARATOR=';'
15470 }
15471 fi
15472
15473
15474 # Find who we are. Look in the path if we contain no directory separator.
15475 as_myself=
15476 case $0 in #((
15477 *[\\/]* ) as_myself=$0 ;;
15478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15480 do
15481 IFS=$as_save_IFS
15482 case $as_dir in #(((
15483 '') as_dir=./ ;;
15484 */) ;;
15485 *) as_dir=$as_dir/ ;;
15486 esac
15487 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15488 done
15489 IFS=$as_save_IFS
15490
15491 ;;
15492 esac
15493 # We did not find ourselves, most probably we were run as 'sh COMMAND'
15494 # in which case we are not to be found in the path.
15495 if test "x$as_myself" = x; then
15496 as_myself=$0
15497 fi
15498 if test ! -f "$as_myself"; then
15499 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15500 exit 1
15501 fi
15502
15503
15504
15505 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15506 # ----------------------------------------
15507 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15508 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15509 # script with STATUS, using 1 if that was 0.
15510 as_fn_error ()
15511 {
15512 as_status=$1; test $as_status -eq 0 && as_status=1
15513 if test "$4"; then
15514 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15516 fi
15517 printf "%s\n" "$as_me: error: $2" >&2
15518 as_fn_exit $as_status
15519 } # as_fn_error
15520
15521
15522 # as_fn_set_status STATUS
15523 # -----------------------
15524 # Set $? to STATUS, without forking.
15525 as_fn_set_status ()
15526 {
15527 return $1
15528 } # as_fn_set_status
15529
15530 # as_fn_exit STATUS
15531 # -----------------
15532 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15533 as_fn_exit ()
15534 {
15535 set +e
15536 as_fn_set_status $1
15537 exit $1
15538 } # as_fn_exit
15539
15540 # as_fn_unset VAR
15541 # ---------------
15542 # Portably unset VAR.
15543 as_fn_unset ()
15544 {
15545 { eval $1=; unset $1;}
15546 }
15547 as_unset=as_fn_unset
15548
15549 # as_fn_append VAR VALUE
15550 # ----------------------
15551 # Append the text in VALUE to the end of the definition contained in VAR. Take
15552 # advantage of any shell optimizations that allow amortized linear growth over
15553 # repeated appends, instead of the typical quadratic growth present in naive
15554 # implementations.
15555 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15556 then :
15557 eval 'as_fn_append ()
15558 {
15559 eval $1+=\$2
15560 }'
15561 else case e in #(
15562 e) as_fn_append ()
15563 {
15564 eval $1=\$$1\$2
15565 } ;;
15566 esac
15567 fi # as_fn_append
15568
15569 # as_fn_arith ARG...
15570 # ------------------
15571 # Perform arithmetic evaluation on the ARGs, and store the result in the
15572 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15573 # must be portable across $(()) and expr.
15574 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15575 then :
15576 eval 'as_fn_arith ()
15577 {
15578 as_val=$(( $* ))
15579 }'
15580 else case e in #(
15581 e) as_fn_arith ()
15582 {
15583 as_val=`expr "$@" || test $? -eq 1`
15584 } ;;
15585 esac
15586 fi # as_fn_arith
15587
15588
15589 if expr a : '\(a\)' >/dev/null 2>&1 &&
15590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15591 as_expr=expr
15592 else
15593 as_expr=false
15594 fi
15595
15596 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15597 as_basename=basename
15598 else
15599 as_basename=false
15600 fi
15601
15602 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15603 as_dirname=dirname
15604 else
15605 as_dirname=false
15606 fi
15607
15608 as_me=`$as_basename -- "$0" ||
15609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15610 X"$0" : 'X\(//\)$' \| \
15611 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15612 printf "%s\n" X/"$0" |
15613 sed '/^.*\/\([^/][^/]*\)\/*$/{
15614 s//\1/
15615 q
15616 }
15617 /^X\/\(\/\/\)$/{
15618 s//\1/
15619 q
15620 }
15621 /^X\/\(\/\).*/{
15622 s//\1/
15623 q
15624 }
15625 s/.*/./; q'`
15626
15627 # Avoid depending upon Character Ranges.
15628 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15629 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15630 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15631 as_cr_digits='0123456789'
15632 as_cr_alnum=$as_cr_Letters$as_cr_digits
15633
15634
15635 # Determine whether it's possible to make 'echo' print without a newline.
15636 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15637 # for compatibility with existing Makefiles.
15638 ECHO_C= ECHO_N= ECHO_T=
15639 case `echo -n x` in #(((((
15640 -n*)
15641 case `echo 'xy\c'` in
15642 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15643 xy) ECHO_C='\c';;
15644 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15645 ECHO_T=' ';;
15646 esac;;
15647 *)
15648 ECHO_N='-n';;
15649 esac
15650
15651 # For backward compatibility with old third-party macros, we provide
15652 # the shell variables $as_echo and $as_echo_n. New code should use
15653 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15654 as_echo='printf %s\n'
15655 as_echo_n='printf %s'
15656
15657 rm -f conf$$ conf$$.exe conf$$.file
15658 if test -d conf$$.dir; then
15659 rm -f conf$$.dir/conf$$.file
15660 else
15661 rm -f conf$$.dir
15662 mkdir conf$$.dir 2>/dev/null
15663 fi
15664 if (echo >conf$$.file) 2>/dev/null; then
15665 if ln -s conf$$.file conf$$ 2>/dev/null; then
15666 as_ln_s='ln -s'
15667 # ... but there are two gotchas:
15668 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
15669 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
15670 # In both cases, we have to default to 'cp -pR'.
15671 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15672 as_ln_s='cp -pR'
15673 elif ln conf$$.file conf$$ 2>/dev/null; then
15674 as_ln_s=ln
15675 else
15676 as_ln_s='cp -pR'
15677 fi
15678 else
15679 as_ln_s='cp -pR'
15680 fi
15681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15682 rmdir conf$$.dir 2>/dev/null
15683
15684
15685 # as_fn_mkdir_p
15686 # -------------
15687 # Create "$as_dir" as a directory, including parents if necessary.
15688 as_fn_mkdir_p ()
15689 {
15690
15691 case $as_dir in #(
15692 -*) as_dir=./$as_dir;;
15693 esac
15694 test -d "$as_dir" || eval $as_mkdir_p || {
15695 as_dirs=
15696 while :; do
15697 case $as_dir in #(
15698 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15699 *) as_qdir=$as_dir;;
15700 esac
15701 as_dirs="'$as_qdir' $as_dirs"
15702 as_dir=`$as_dirname -- "$as_dir" ||
15703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15704 X"$as_dir" : 'X\(//\)[^/]' \| \
15705 X"$as_dir" : 'X\(//\)$' \| \
15706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15707 printf "%s\n" X"$as_dir" |
15708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15709 s//\1/
15710 q
15711 }
15712 /^X\(\/\/\)[^/].*/{
15713 s//\1/
15714 q
15715 }
15716 /^X\(\/\/\)$/{
15717 s//\1/
15718 q
15719 }
15720 /^X\(\/\).*/{
15721 s//\1/
15722 q
15723 }
15724 s/.*/./; q'`
15725 test -d "$as_dir" && break
15726 done
15727 test -z "$as_dirs" || eval "mkdir $as_dirs"
15728 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15729
15730
15731 } # as_fn_mkdir_p
15732 if mkdir -p . 2>/dev/null; then
15733 as_mkdir_p='mkdir -p "$as_dir"'
15734 else
15735 test -d ./-p && rmdir ./-p
15736 as_mkdir_p=false
15737 fi
15738
15739
15740 # as_fn_executable_p FILE
15741 # -----------------------
15742 # Test if FILE is an executable regular file.
15743 as_fn_executable_p ()
15744 {
15745 test -f "$1" && test -x "$1"
15746 } # as_fn_executable_p
15747 as_test_x='test -x'
15748 as_executable_p=as_fn_executable_p
15749
15750 # Sed expression to map a string onto a valid CPP name.
15751 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15752 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
15753
15754 # Sed expression to map a string onto a valid variable name.
15755 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15756 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
15757
15758
15759 exec 6>&1
15760 ## ----------------------------------- ##
15761 ## Main body of $CONFIG_STATUS script. ##
15762 ## ----------------------------------- ##
15763 _ASEOF
15764 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15765
15766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15767 # Save the log message, to keep $0 and so on meaningful, and to
15768 # report actual input values of CONFIG_FILES etc. instead of their
15769 # values after options handling.
15770 ac_log="
15771 This file was extended by libnetfilter_conntrack $as_me 1.1.1, which was
15772 generated by GNU Autoconf 2.72. Invocation command line was
15773
15774 CONFIG_FILES = $CONFIG_FILES
15775 CONFIG_HEADERS = $CONFIG_HEADERS
15776 CONFIG_LINKS = $CONFIG_LINKS
15777 CONFIG_COMMANDS = $CONFIG_COMMANDS
15778 $ $0 $@
15779
15780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15781 "
15782
15783 _ACEOF
15784
15785 case $ac_config_files in *"
15786 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15787 esac
15788
15789 case $ac_config_headers in *"
15790 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15791 esac
15792
15793
15794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15795 # Files that config.status was made for.
15796 config_files="$ac_config_files"
15797 config_headers="$ac_config_headers"
15798 config_commands="$ac_config_commands"
15799
15800 _ACEOF
15801
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 ac_cs_usage="\
15804 '$as_me' instantiates files and other configuration actions
15805 from templates according to the current configuration. Unless the files
15806 and actions are specified as TAGs, all are instantiated by default.
15807
15808 Usage: $0 [OPTION]... [TAG]...
15809
15810 -h, --help print this help, then exit
15811 -V, --version print version number and configuration settings, then exit
15812 --config print configuration, then exit
15813 -q, --quiet, --silent
15814 do not print progress messages
15815 -d, --debug don't remove temporary files
15816 --recheck update $as_me by reconfiguring in the same conditions
15817 --file=FILE[:TEMPLATE]
15818 instantiate the configuration file FILE
15819 --header=FILE[:TEMPLATE]
15820 instantiate the configuration header FILE
15821
15822 Configuration files:
15823 $config_files
15824
15825 Configuration headers:
15826 $config_headers
15827
15828 Configuration commands:
15829 $config_commands
15830
15831 Report bugs to the package provider."
15832
15833 _ACEOF
15834 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15835 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837 ac_cs_config='$ac_cs_config_escaped'
15838 ac_cs_version="\\
15839 libnetfilter_conntrack config.status 1.1.1
15840 configured by $0, generated by GNU Autoconf 2.72,
15841 with options \\"\$ac_cs_config\\"
15842
15843 Copyright (C) 2023 Free Software Foundation, Inc.
15844 This config.status script is free software; the Free Software Foundation
15845 gives unlimited permission to copy, distribute and modify it."
15846
15847 ac_pwd='$ac_pwd'
15848 srcdir='$srcdir'
15849 INSTALL='$INSTALL'
15850 MKDIR_P='$MKDIR_P'
15851 AWK='$AWK'
15852 test -n "\$AWK" || AWK=awk
15853 _ACEOF
15854
15855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15856 # The default lists apply if the user does not specify any file.
15857 ac_need_defaults=:
15858 while test $# != 0
15859 do
15860 case $1 in
15861 --*=?*)
15862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15864 ac_shift=:
15865 ;;
15866 --*=)
15867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15868 ac_optarg=
15869 ac_shift=:
15870 ;;
15871 *)
15872 ac_option=$1
15873 ac_optarg=$2
15874 ac_shift=shift
15875 ;;
15876 esac
15877
15878 case $ac_option in
15879 # Handling of the options.
15880 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15881 ac_cs_recheck=: ;;
15882 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15883 printf "%s\n" "$ac_cs_version"; exit ;;
15884 --config | --confi | --conf | --con | --co | --c )
15885 printf "%s\n" "$ac_cs_config"; exit ;;
15886 --debug | --debu | --deb | --de | --d | -d )
15887 debug=: ;;
15888 --file | --fil | --fi | --f )
15889 $ac_shift
15890 case $ac_optarg in
15891 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15892 '') as_fn_error $? "missing file argument" ;;
15893 esac
15894 as_fn_append CONFIG_FILES " '$ac_optarg'"
15895 ac_need_defaults=false;;
15896 --header | --heade | --head | --hea )
15897 $ac_shift
15898 case $ac_optarg in
15899 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15900 esac
15901 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15902 ac_need_defaults=false;;
15903 --he | --h)
15904 # Conflict between --help and --header
15905 as_fn_error $? "ambiguous option: '$1'
15906 Try '$0 --help' for more information.";;
15907 --help | --hel | -h )
15908 printf "%s\n" "$ac_cs_usage"; exit ;;
15909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15911 ac_cs_silent=: ;;
15912
15913 # This is an error.
15914 -*) as_fn_error $? "unrecognized option: '$1'
15915 Try '$0 --help' for more information." ;;
15916
15917 *) as_fn_append ac_config_targets " $1"
15918 ac_need_defaults=false ;;
15919
15920 esac
15921 shift
15922 done
15923
15924 ac_configure_extra_args=
15925
15926 if $ac_cs_silent; then
15927 exec 6>/dev/null
15928 ac_configure_extra_args="$ac_configure_extra_args --silent"
15929 fi
15930
15931 _ACEOF
15932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15933 if \$ac_cs_recheck; then
15934 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15935 shift
15936 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15937 CONFIG_SHELL='$SHELL'
15938 export CONFIG_SHELL
15939 exec "\$@"
15940 fi
15941
15942 _ACEOF
15943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15944 exec 5>>config.log
15945 {
15946 echo
15947 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15948 ## Running $as_me. ##
15949 _ASBOX
15950 printf "%s\n" "$ac_log"
15951 } >&5
15952
15953 _ACEOF
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 #
15956 # INIT-COMMANDS
15957 #
15958 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15959
15960
15961 # The HP-UX ksh and POSIX shell print the target directory to stdout
15962 # if CDPATH is set.
15963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15964
15965 sed_quote_subst='$sed_quote_subst'
15966 double_quote_subst='$double_quote_subst'
15967 delay_variable_subst='$delay_variable_subst'
15968 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15969 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15970 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15971 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15972 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15973 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15974 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15975 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15976 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15977 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15978 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15979 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15980 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15981 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15982 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15983 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15984 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15985 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15986 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15987 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15988 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15989 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15990 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15991 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15992 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15993 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15994 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15995 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15996 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15997 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15998 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15999 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16000 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16001 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16002 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16003 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16004 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16005 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16006 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16007 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16008 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16009 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16010 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16011 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16012 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16013 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16014 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16015 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16016 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16017 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16018 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16019 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16020 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16021 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16022 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16023 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16024 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16025 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16026 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16027 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16028 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"`'
16029 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16030 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16031 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16032 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16033 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16034 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16035 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16036 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16037 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16038 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16039 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16040 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16041 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16042 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16043 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16044 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16045 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16046 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16047 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16048 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16049 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16050 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16051 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16052 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16053 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16054 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16055 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16056 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16057 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16058 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16059 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16060 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16061 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16062 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16063 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16064 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16065 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16066 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16067 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16068 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16069 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16070 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16071 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16072 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16073 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16074 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16075 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16076 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16077 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16078 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16079 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16080 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16081 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16082 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16083 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16084 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16085 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16086 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16087 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16088 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16089 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16090 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16091 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16092 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16093 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16094 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16095 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16096 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16097 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16098 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16099 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16100 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16101 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16102 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16103 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16104 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16105
16106 LTCC='$LTCC'
16107 LTCFLAGS='$LTCFLAGS'
16108 compiler='$compiler_DEFAULT'
16109
16110 # A function that is used when there is no print builtin or printf.
16111 func_fallback_echo ()
16112 {
16113 eval 'cat <<_LTECHO_EOF
16114 \$1
16115 _LTECHO_EOF'
16116 }
16117
16118 # Quote evaled strings.
16119 for var in SHELL \
16120 ECHO \
16121 PATH_SEPARATOR \
16122 SED \
16123 GREP \
16124 EGREP \
16125 FGREP \
16126 LD \
16127 NM \
16128 LN_S \
16129 lt_SP2NL \
16130 lt_NL2SP \
16131 reload_flag \
16132 FILECMD \
16133 OBJDUMP \
16134 deplibs_check_method \
16135 file_magic_cmd \
16136 file_magic_glob \
16137 want_nocaseglob \
16138 DLLTOOL \
16139 sharedlib_from_linklib_cmd \
16140 AR \
16141 archiver_list_spec \
16142 STRIP \
16143 RANLIB \
16144 CC \
16145 CFLAGS \
16146 compiler \
16147 lt_cv_sys_global_symbol_pipe \
16148 lt_cv_sys_global_symbol_to_cdecl \
16149 lt_cv_sys_global_symbol_to_import \
16150 lt_cv_sys_global_symbol_to_c_name_address \
16151 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16152 lt_cv_nm_interface \
16153 nm_file_list_spec \
16154 lt_cv_truncate_bin \
16155 lt_prog_compiler_no_builtin_flag \
16156 lt_prog_compiler_pic \
16157 lt_prog_compiler_wl \
16158 lt_prog_compiler_static \
16159 lt_cv_prog_compiler_c_o \
16160 need_locks \
16161 MANIFEST_TOOL \
16162 DSYMUTIL \
16163 NMEDIT \
16164 LIPO \
16165 OTOOL \
16166 OTOOL64 \
16167 shrext_cmds \
16168 export_dynamic_flag_spec \
16169 whole_archive_flag_spec \
16170 compiler_needs_object \
16171 with_gnu_ld \
16172 allow_undefined_flag \
16173 no_undefined_flag \
16174 hardcode_libdir_flag_spec \
16175 hardcode_libdir_separator \
16176 exclude_expsyms \
16177 include_expsyms \
16178 file_list_spec \
16179 variables_saved_for_relink \
16180 libname_spec \
16181 library_names_spec \
16182 soname_spec \
16183 install_override_mode \
16184 finish_eval \
16185 old_striplib \
16186 striplib; do
16187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16188 *[\\\\\\\`\\"\\\$]*)
16189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16190 ;;
16191 *)
16192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16193 ;;
16194 esac
16195 done
16196
16197 # Double-quote double-evaled strings.
16198 for var in reload_cmds \
16199 old_postinstall_cmds \
16200 old_postuninstall_cmds \
16201 old_archive_cmds \
16202 extract_expsyms_cmds \
16203 old_archive_from_new_cmds \
16204 old_archive_from_expsyms_cmds \
16205 archive_cmds \
16206 archive_expsym_cmds \
16207 module_cmds \
16208 module_expsym_cmds \
16209 export_symbols_cmds \
16210 prelink_cmds \
16211 postlink_cmds \
16212 postinstall_cmds \
16213 postuninstall_cmds \
16214 finish_cmds \
16215 sys_lib_search_path_spec \
16216 configure_time_dlsearch_path \
16217 configure_time_lt_sys_library_path; do
16218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16219 *[\\\\\\\`\\"\\\$]*)
16220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16221 ;;
16222 *)
16223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16224 ;;
16225 esac
16226 done
16227
16228 ac_aux_dir='$ac_aux_dir'
16229
16230 # See if we are running on zsh, and set the options that allow our
16231 # commands through without removal of \ escapes INIT.
16232 if test -n "\${ZSH_VERSION+set}"; then
16233 setopt NO_GLOB_SUBST
16234 fi
16235
16236
16237 PACKAGE='$PACKAGE'
16238 VERSION='$VERSION'
16239 RM='$RM'
16240 ofile='$ofile'
16241
16242
16243
16244
16245 _ACEOF
16246
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248
16249 # Handling of arguments.
16250 for ac_config_target in $ac_config_targets
16251 do
16252 case $ac_config_target in
16253 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16254 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16255 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16256 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16257 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16258 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16259 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16260 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
16261 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16262 "include/libnetfilter_conntrack/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnetfilter_conntrack/Makefile" ;;
16263 "include/internal/Makefile") CONFIG_FILES="$CONFIG_FILES include/internal/Makefile" ;;
16264 "src/conntrack/Makefile") CONFIG_FILES="$CONFIG_FILES src/conntrack/Makefile" ;;
16265 "src/expect/Makefile") CONFIG_FILES="$CONFIG_FILES src/expect/Makefile" ;;
16266 "libnetfilter_conntrack.pc") CONFIG_FILES="$CONFIG_FILES libnetfilter_conntrack.pc" ;;
16267 "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
16268
16269 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
16270 esac
16271 done
16272
16273
16274 # If the user did not use the arguments to specify the items to instantiate,
16275 # then the envvar interface is used. Set only those that are not.
16276 # We use the long form for the default assignment because of an extremely
16277 # bizarre bug on SunOS 4.1.3.
16278 if $ac_need_defaults; then
16279 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16280 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16281 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16282 fi
16283
16284 # Have a temporary directory for convenience. Make it in the build tree
16285 # simply because there is no reason against having it here, and in addition,
16286 # creating and moving files from /tmp can sometimes cause problems.
16287 # Hook for its removal unless debugging.
16288 # Note that there is a small window in which the directory will not be cleaned:
16289 # after its creation but before its name has been assigned to '$tmp'.
16290 $debug ||
16291 {
16292 tmp= ac_tmp=
16293 trap 'exit_status=$?
16294 : "${ac_tmp:=$tmp}"
16295 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16296 ' 0
16297 trap 'as_fn_exit 1' 1 2 13 15
16298 }
16299 # Create a (secure) tmp directory for tmp files.
16300
16301 {
16302 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16303 test -d "$tmp"
16304 } ||
16305 {
16306 tmp=./conf$$-$RANDOM
16307 (umask 077 && mkdir "$tmp")
16308 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16309 ac_tmp=$tmp
16310
16311 # Set up the scripts for CONFIG_FILES section.
16312 # No need to generate them if there are no CONFIG_FILES.
16313 # This happens for instance with './config.status config.h'.
16314 if test -n "$CONFIG_FILES"; then
16315
16316
16317 ac_cr=`echo X | tr X '\015'`
16318 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16319 # But we know of no other shell where ac_cr would be empty at this
16320 # point, so we can use a bashism as a fallback.
16321 if test "x$ac_cr" = x; then
16322 eval ac_cr=\$\'\\r\'
16323 fi
16324 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16325 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16326 ac_cs_awk_cr='\\r'
16327 else
16328 ac_cs_awk_cr=$ac_cr
16329 fi
16330
16331 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16332 _ACEOF
16333
16334
16335 {
16336 echo "cat >conf$$subs.awk <<_ACEOF" &&
16337 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16338 echo "_ACEOF"
16339 } >conf$$subs.sh ||
16340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16341 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16342 ac_delim='%!_!# '
16343 for ac_last_try in false false false false false :; do
16344 . ./conf$$subs.sh ||
16345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16346
16347 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16348 if test $ac_delim_n = $ac_delim_num; then
16349 break
16350 elif $ac_last_try; then
16351 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16352 else
16353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16354 fi
16355 done
16356 rm -f conf$$subs.sh
16357
16358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16359 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16360 _ACEOF
16361 sed -n '
16362 h
16363 s/^/S["/; s/!.*/"]=/
16364 p
16365 g
16366 s/^[^!]*!//
16367 :repl
16368 t repl
16369 s/'"$ac_delim"'$//
16370 t delim
16371 :nl
16372 h
16373 s/\(.\{148\}\)..*/\1/
16374 t more1
16375 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16376 p
16377 n
16378 b repl
16379 :more1
16380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16381 p
16382 g
16383 s/.\{148\}//
16384 t nl
16385 :delim
16386 h
16387 s/\(.\{148\}\)..*/\1/
16388 t more2
16389 s/["\\]/\\&/g; s/^/"/; s/$/"/
16390 p
16391 b
16392 :more2
16393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16394 p
16395 g
16396 s/.\{148\}//
16397 t delim
16398 ' <conf$$subs.awk | sed '
16399 /^[^""]/{
16400 N
16401 s/\n//
16402 }
16403 ' >>$CONFIG_STATUS || ac_write_fail=1
16404 rm -f conf$$subs.awk
16405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16406 _ACAWK
16407 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16408 for (key in S) S_is_set[key] = 1
16409 FS = ""
16410
16411 }
16412 {
16413 line = $ 0
16414 nfields = split(line, field, "@")
16415 substed = 0
16416 len = length(field[1])
16417 for (i = 2; i < nfields; i++) {
16418 key = field[i]
16419 keylen = length(key)
16420 if (S_is_set[key]) {
16421 value = S[key]
16422 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16423 len += length(value) + length(field[++i])
16424 substed = 1
16425 } else
16426 len += 1 + keylen
16427 }
16428
16429 print line
16430 }
16431
16432 _ACAWK
16433 _ACEOF
16434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16435 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16436 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16437 else
16438 cat
16439 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16440 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16441 _ACEOF
16442
16443 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16444 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16445 # trailing colons and then remove the whole line if VPATH becomes empty
16446 # (actually we leave an empty line to preserve line numbers).
16447 if test "x$srcdir" = x.; then
16448 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16449 h
16450 s///
16451 s/^/:/
16452 s/[ ]*$/:/
16453 s/:\$(srcdir):/:/g
16454 s/:\${srcdir}:/:/g
16455 s/:@srcdir@:/:/g
16456 s/^:*//
16457 s/:*$//
16458 x
16459 s/\(=[ ]*\).*/\1/
16460 G
16461 s/\n//
16462 s/^[^=]*=[ ]*$//
16463 }'
16464 fi
16465
16466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16467 fi # test -n "$CONFIG_FILES"
16468
16469 # Set up the scripts for CONFIG_HEADERS section.
16470 # No need to generate them if there are no CONFIG_HEADERS.
16471 # This happens for instance with './config.status Makefile'.
16472 if test -n "$CONFIG_HEADERS"; then
16473 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16474 BEGIN {
16475 _ACEOF
16476
16477 # Transform confdefs.h into an awk script 'defines.awk', embedded as
16478 # here-document in config.status, that substitutes the proper values into
16479 # config.h.in to produce config.h.
16480
16481 # Create a delimiter string that does not exist in confdefs.h, to ease
16482 # handling of long lines.
16483 ac_delim='%!_!# '
16484 for ac_last_try in false false :; do
16485 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16486 if test -z "$ac_tt"; then
16487 break
16488 elif $ac_last_try; then
16489 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16490 else
16491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16492 fi
16493 done
16494
16495 # For the awk script, D is an array of macro values keyed by name,
16496 # likewise P contains macro parameters if any. Preserve backslash
16497 # newline sequences.
16498
16499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16500 sed -n '
16501 s/.\{148\}/&'"$ac_delim"'/g
16502 t rset
16503 :rset
16504 s/^[ ]*#[ ]*define[ ][ ]*/ /
16505 t def
16506 d
16507 :def
16508 s/\\$//
16509 t bsnl
16510 s/["\\]/\\&/g
16511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16512 D["\1"]=" \3"/p
16513 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16514 d
16515 :bsnl
16516 s/["\\]/\\&/g
16517 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16518 D["\1"]=" \3\\\\\\n"\\/p
16519 t cont
16520 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16521 t cont
16522 d
16523 :cont
16524 n
16525 s/.\{148\}/&'"$ac_delim"'/g
16526 t clear
16527 :clear
16528 s/\\$//
16529 t bsnlc
16530 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16531 d
16532 :bsnlc
16533 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16534 b cont
16535 ' <confdefs.h | sed '
16536 s/'"$ac_delim"'/"\\\
16537 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16538
16539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16540 for (key in D) D_is_set[key] = 1
16541 FS = ""
16542 }
16543 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16544 line = \$ 0
16545 split(line, arg, " ")
16546 if (arg[1] == "#") {
16547 defundef = arg[2]
16548 mac1 = arg[3]
16549 } else {
16550 defundef = substr(arg[1], 2)
16551 mac1 = arg[2]
16552 }
16553 split(mac1, mac2, "(") #)
16554 macro = mac2[1]
16555 prefix = substr(line, 1, index(line, defundef) - 1)
16556 if (D_is_set[macro]) {
16557 # Preserve the white space surrounding the "#".
16558 print prefix "define", macro P[macro] D[macro]
16559 next
16560 } else {
16561 # Replace #undef with comments. This is necessary, for example,
16562 # in the case of _POSIX_SOURCE, which is predefined and required
16563 # on some systems where configure will not decide to define it.
16564 if (defundef == "undef") {
16565 print "/*", prefix defundef, macro, "*/"
16566 next
16567 }
16568 }
16569 }
16570 { print }
16571 _ACAWK
16572 _ACEOF
16573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16574 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16575 fi # test -n "$CONFIG_HEADERS"
16576
16577
16578 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16579 shift
16580 for ac_tag
16581 do
16582 case $ac_tag in
16583 :[FHLC]) ac_mode=$ac_tag; continue;;
16584 esac
16585 case $ac_mode$ac_tag in
16586 :[FHL]*:*);;
16587 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
16588 :[FH]-) ac_tag=-:-;;
16589 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16590 esac
16591 ac_save_IFS=$IFS
16592 IFS=:
16593 set x $ac_tag
16594 IFS=$ac_save_IFS
16595 shift
16596 ac_file=$1
16597 shift
16598
16599 case $ac_mode in
16600 :L) ac_source=$1;;
16601 :[FH])
16602 ac_file_inputs=
16603 for ac_f
16604 do
16605 case $ac_f in
16606 -) ac_f="$ac_tmp/stdin";;
16607 *) # Look for the file first in the build tree, then in the source tree
16608 # (if the path is not absolute). The absolute path cannot be DOS-style,
16609 # because $ac_f cannot contain ':'.
16610 test -f "$ac_f" ||
16611 case $ac_f in
16612 [\\/$]*) false;;
16613 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16614 esac ||
16615 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
16616 esac
16617 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16618 as_fn_append ac_file_inputs " '$ac_f'"
16619 done
16620
16621 # Let's still pretend it is 'configure' which instantiates (i.e., don't
16622 # use $as_me), people would be surprised to read:
16623 # /* config.h. Generated by config.status. */
16624 configure_input='Generated from '`
16625 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16626 `' by configure.'
16627 if test x"$ac_file" != x-; then
16628 configure_input="$ac_file. $configure_input"
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16630 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16631 fi
16632 # Neutralize special characters interpreted by sed in replacement strings.
16633 case $configure_input in #(
16634 *\&* | *\|* | *\\* )
16635 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16636 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16637 *) ac_sed_conf_input=$configure_input;;
16638 esac
16639
16640 case $ac_tag in
16641 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16643 esac
16644 ;;
16645 esac
16646
16647 ac_dir=`$as_dirname -- "$ac_file" ||
16648 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16649 X"$ac_file" : 'X\(//\)[^/]' \| \
16650 X"$ac_file" : 'X\(//\)$' \| \
16651 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16652 printf "%s\n" X"$ac_file" |
16653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16654 s//\1/
16655 q
16656 }
16657 /^X\(\/\/\)[^/].*/{
16658 s//\1/
16659 q
16660 }
16661 /^X\(\/\/\)$/{
16662 s//\1/
16663 q
16664 }
16665 /^X\(\/\).*/{
16666 s//\1/
16667 q
16668 }
16669 s/.*/./; q'`
16670 as_dir="$ac_dir"; as_fn_mkdir_p
16671 ac_builddir=.
16672
16673 case "$ac_dir" in
16674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16675 *)
16676 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16677 # A ".." for each directory in $ac_dir_suffix.
16678 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16679 case $ac_top_builddir_sub in
16680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16682 esac ;;
16683 esac
16684 ac_abs_top_builddir=$ac_pwd
16685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16686 # for backward compatibility:
16687 ac_top_builddir=$ac_top_build_prefix
16688
16689 case $srcdir in
16690 .) # We are building in place.
16691 ac_srcdir=.
16692 ac_top_srcdir=$ac_top_builddir_sub
16693 ac_abs_top_srcdir=$ac_pwd ;;
16694 [\\/]* | ?:[\\/]* ) # Absolute name.
16695 ac_srcdir=$srcdir$ac_dir_suffix;
16696 ac_top_srcdir=$srcdir
16697 ac_abs_top_srcdir=$srcdir ;;
16698 *) # Relative name.
16699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16700 ac_top_srcdir=$ac_top_build_prefix$srcdir
16701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16702 esac
16703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16704
16705
16706 case $ac_mode in
16707 :F)
16708 #
16709 # CONFIG_FILE
16710 #
16711
16712 case $INSTALL in
16713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16714 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16715 esac
16716 ac_MKDIR_P=$MKDIR_P
16717 case $MKDIR_P in
16718 [\\/$]* | ?:[\\/]* ) ;;
16719 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16720 esac
16721 _ACEOF
16722
16723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16724 # If the template does not know about datarootdir, expand it.
16725 # FIXME: This hack should be removed a few years after 2.60.
16726 ac_datarootdir_hack=; ac_datarootdir_seen=
16727 ac_sed_dataroot='
16728 /datarootdir/ {
16729 p
16730 q
16731 }
16732 /@datadir@/p
16733 /@docdir@/p
16734 /@infodir@/p
16735 /@localedir@/p
16736 /@mandir@/p'
16737 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16738 *datarootdir*) ac_datarootdir_seen=yes;;
16739 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16741 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16742 _ACEOF
16743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16744 ac_datarootdir_hack='
16745 s&@datadir@&$datadir&g
16746 s&@docdir@&$docdir&g
16747 s&@infodir@&$infodir&g
16748 s&@localedir@&$localedir&g
16749 s&@mandir@&$mandir&g
16750 s&\\\${datarootdir}&$datarootdir&g' ;;
16751 esac
16752 _ACEOF
16753
16754 # Neutralize VPATH when '$srcdir' = '.'.
16755 # Shell code in configure.ac might set extrasub.
16756 # FIXME: do we really want to maintain this feature?
16757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16758 ac_sed_extra="$ac_vpsub
16759 $extrasub
16760 _ACEOF
16761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16762 :t
16763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16764 s|@configure_input@|$ac_sed_conf_input|;t t
16765 s&@top_builddir@&$ac_top_builddir_sub&;t t
16766 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16767 s&@srcdir@&$ac_srcdir&;t t
16768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16769 s&@top_srcdir@&$ac_top_srcdir&;t t
16770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16771 s&@builddir@&$ac_builddir&;t t
16772 s&@abs_builddir@&$ac_abs_builddir&;t t
16773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16774 s&@INSTALL@&$ac_INSTALL&;t t
16775 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16776 $ac_datarootdir_hack
16777 "
16778 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16779 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16780
16781 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16782 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16783 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16784 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16786 which seems to be undefined. Please make sure it is defined" >&5
16787 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
16788 which seems to be undefined. Please make sure it is defined" >&2;}
16789
16790 rm -f "$ac_tmp/stdin"
16791 case $ac_file in
16792 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16793 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16794 esac \
16795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16796 ;;
16797 :H)
16798 #
16799 # CONFIG_HEADER
16800 #
16801 if test x"$ac_file" != x-; then
16802 {
16803 printf "%s\n" "/* $configure_input */" >&1 \
16804 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16805 } >"$ac_tmp/config.h" \
16806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16807 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16809 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16810 else
16811 rm -f "$ac_file"
16812 mv "$ac_tmp/config.h" "$ac_file" \
16813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16814 fi
16815 else
16816 printf "%s\n" "/* $configure_input */" >&1 \
16817 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16818 || as_fn_error $? "could not create -" "$LINENO" 5
16819 fi
16820 # Compute "$ac_file"'s index in $config_headers.
16821 _am_arg="$ac_file"
16822 _am_stamp_count=1
16823 for _am_header in $config_headers :; do
16824 case $_am_header in
16825 $_am_arg | $_am_arg:* )
16826 break ;;
16827 * )
16828 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16829 esac
16830 done
16831 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16832 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16833 X"$_am_arg" : 'X\(//\)[^/]' \| \
16834 X"$_am_arg" : 'X\(//\)$' \| \
16835 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16836 printf "%s\n" X"$_am_arg" |
16837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16838 s//\1/
16839 q
16840 }
16841 /^X\(\/\/\)[^/].*/{
16842 s//\1/
16843 q
16844 }
16845 /^X\(\/\/\)$/{
16846 s//\1/
16847 q
16848 }
16849 /^X\(\/\).*/{
16850 s//\1/
16851 q
16852 }
16853 s/.*/./; q'`/stamp-h$_am_stamp_count
16854 ;;
16855
16856 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16857 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16858 ;;
16859 esac
16860
16861
16862 case $ac_file$ac_mode in
16863 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16864 # Older Autoconf quotes --file arguments for eval, but not when files
16865 # are listed without --file. Let's play safe and only enable the eval
16866 # if we detect the quoting.
16867 # TODO: see whether this extra hack can be removed once we start
16868 # requiring Autoconf 2.70 or later.
16869 case $CONFIG_FILES in #(
16870 *\'*) :
16871 eval set x "$CONFIG_FILES" ;; #(
16872 *) :
16873 set x $CONFIG_FILES ;; #(
16874 *) :
16875 ;;
16876 esac
16877 shift
16878 # Used to flag and report bootstrapping failures.
16879 am_rc=0
16880 for am_mf
16881 do
16882 # Strip MF so we end up with the name of the file.
16883 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16884 # Check whether this is an Automake generated Makefile which includes
16885 # dependency-tracking related rules and includes.
16886 # Grep'ing the whole file directly is not great: AIX grep has a line
16887 # limit of 2048, but all sed's we know have understand at least 4000.
16888 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16889 || continue
16890 am_dirpart=`$as_dirname -- "$am_mf" ||
16891 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16892 X"$am_mf" : 'X\(//\)[^/]' \| \
16893 X"$am_mf" : 'X\(//\)$' \| \
16894 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16895 printf "%s\n" X"$am_mf" |
16896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16897 s//\1/
16898 q
16899 }
16900 /^X\(\/\/\)[^/].*/{
16901 s//\1/
16902 q
16903 }
16904 /^X\(\/\/\)$/{
16905 s//\1/
16906 q
16907 }
16908 /^X\(\/\).*/{
16909 s//\1/
16910 q
16911 }
16912 s/.*/./; q'`
16913 am_filepart=`$as_basename -- "$am_mf" ||
16914 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16915 X"$am_mf" : 'X\(//\)$' \| \
16916 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16917 printf "%s\n" X/"$am_mf" |
16918 sed '/^.*\/\([^/][^/]*\)\/*$/{
16919 s//\1/
16920 q
16921 }
16922 /^X\/\(\/\/\)$/{
16923 s//\1/
16924 q
16925 }
16926 /^X\/\(\/\).*/{
16927 s//\1/
16928 q
16929 }
16930 s/.*/./; q'`
16931 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16932 && sed -e '/# am--include-marker/d' "$am_filepart" \
16933 | $MAKE -f - am--depfiles" >&5
16934 (cd "$am_dirpart" \
16935 && sed -e '/# am--include-marker/d' "$am_filepart" \
16936 | $MAKE -f - am--depfiles) >&5 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } || am_rc=$?
16940 done
16941 if test $am_rc -ne 0; then
16942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16943 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16944 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16945 for automatic dependency tracking. If GNU make was not used, consider
16946 re-running the configure script with MAKE=\"gmake\" (or whatever is
16947 necessary). You can also try re-running configure with the
16948 '--disable-dependency-tracking' option to at least be able to build
16949 the package (albeit without support for automatic dependency tracking).
16950 See 'config.log' for more details" "$LINENO" 5; }
16951 fi
16952 { am_dirpart=; unset am_dirpart;}
16953 { am_filepart=; unset am_filepart;}
16954 { am_mf=; unset am_mf;}
16955 { am_rc=; unset am_rc;}
16956 rm -f conftest-deps.mk
16957 }
16958 ;;
16959 "libtool":C)
16960
16961 # See if we are running on zsh, and set the options that allow our
16962 # commands through without removal of \ escapes.
16963 if test -n "${ZSH_VERSION+set}"; then
16964 setopt NO_GLOB_SUBST
16965 fi
16966
16967 cfgfile=${ofile}T
16968 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16969 $RM "$cfgfile"
16970
16971 cat <<_LT_EOF >> "$cfgfile"
16972 #! $SHELL
16973 # Generated automatically by $as_me ($PACKAGE) $VERSION
16974 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16975
16976 # Provide generalized library-building support services.
16977 # Written by Gordon Matzigkeit, 1996
16978
16979 # Copyright (C) 2024 Free Software Foundation, Inc.
16980 # This is free software; see the source for copying conditions. There is NO
16981 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16982
16983 # GNU Libtool is free software; you can redistribute it and/or modify
16984 # it under the terms of the GNU General Public License as published by
16985 # the Free Software Foundation; either version 2 of the License, or
16986 # (at your option) any later version.
16987 #
16988 # As a special exception to the GNU General Public License, if you
16989 # distribute this file as part of a program or library that is built
16990 # using GNU Libtool, you may include this file under the same
16991 # distribution terms that you use for the rest of that program.
16992 #
16993 # GNU Libtool is distributed in the hope that it will be useful, but
16994 # WITHOUT ANY WARRANTY; without even the implied warranty of
16995 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16996 # GNU General Public License for more details.
16997 #
16998 # You should have received a copy of the GNU General Public License
16999 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17000
17001
17002 # The names of the tagged configurations supported by this script.
17003 available_tags=''
17004
17005 # Configured defaults for sys_lib_dlsearch_path munging.
17006 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17007
17008 # ### BEGIN LIBTOOL CONFIG
17009
17010 # Which release of libtool.m4 was used?
17011 macro_version=$macro_version
17012 macro_revision=$macro_revision
17013
17014 # Whether or not to build static libraries.
17015 build_old_libs=$enable_static
17016
17017 # Whether or not to build shared libraries.
17018 build_libtool_libs=$enable_shared
17019
17020 # What type of objects to build.
17021 pic_mode=$pic_mode
17022
17023 # Whether or not to optimize for fast installation.
17024 fast_install=$enable_fast_install
17025
17026 # Shared archive member basename,for filename based shared library versioning on AIX.
17027 shared_archive_member_spec=$shared_archive_member_spec
17028
17029 # Shell to use when invoking shell scripts.
17030 SHELL=$lt_SHELL
17031
17032 # An echo program that protects backslashes.
17033 ECHO=$lt_ECHO
17034
17035 # The PATH separator for the build system.
17036 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17037
17038 # The host system.
17039 host_alias=$host_alias
17040 host=$host
17041 host_os=$host_os
17042
17043 # The build system.
17044 build_alias=$build_alias
17045 build=$build
17046 build_os=$build_os
17047
17048 # A sed program that does not truncate output.
17049 SED=$lt_SED
17050
17051 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17052 Xsed="\$SED -e 1s/^X//"
17053
17054 # A grep program that handles long lines.
17055 GREP=$lt_GREP
17056
17057 # An ERE matcher.
17058 EGREP=$lt_EGREP
17059
17060 # A literal string matcher.
17061 FGREP=$lt_FGREP
17062
17063 # A BSD- or MS-compatible name lister.
17064 NM=$lt_NM
17065
17066 # Whether we need soft or hard links.
17067 LN_S=$lt_LN_S
17068
17069 # What is the maximum length of a command?
17070 max_cmd_len=$max_cmd_len
17071
17072 # Object file suffix (normally "o").
17073 objext=$ac_objext
17074
17075 # Executable file suffix (normally "").
17076 exeext=$exeext
17077
17078 # whether the shell understands "unset".
17079 lt_unset=$lt_unset
17080
17081 # turn spaces into newlines.
17082 SP2NL=$lt_lt_SP2NL
17083
17084 # turn newlines into spaces.
17085 NL2SP=$lt_lt_NL2SP
17086
17087 # convert \$build file names to \$host format.
17088 to_host_file_cmd=$lt_cv_to_host_file_cmd
17089
17090 # convert \$build files to toolchain format.
17091 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17092
17093 # A file(cmd) program that detects file types.
17094 FILECMD=$lt_FILECMD
17095
17096 # An object symbol dumper.
17097 OBJDUMP=$lt_OBJDUMP
17098
17099 # Method to check whether dependent libraries are shared objects.
17100 deplibs_check_method=$lt_deplibs_check_method
17101
17102 # Command to use when deplibs_check_method = "file_magic".
17103 file_magic_cmd=$lt_file_magic_cmd
17104
17105 # How to find potential files when deplibs_check_method = "file_magic".
17106 file_magic_glob=$lt_file_magic_glob
17107
17108 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17109 want_nocaseglob=$lt_want_nocaseglob
17110
17111 # DLL creation program.
17112 DLLTOOL=$lt_DLLTOOL
17113
17114 # Command to associate shared and link libraries.
17115 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17116
17117 # The archiver.
17118 AR=$lt_AR
17119
17120 # Flags to create an archive (by configure).
17121 lt_ar_flags=$lt_ar_flags
17122
17123 # Flags to create an archive.
17124 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17125
17126 # How to feed a file listing to the archiver.
17127 archiver_list_spec=$lt_archiver_list_spec
17128
17129 # A symbol stripping program.
17130 STRIP=$lt_STRIP
17131
17132 # Commands used to install an old-style archive.
17133 RANLIB=$lt_RANLIB
17134 old_postinstall_cmds=$lt_old_postinstall_cmds
17135 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17136
17137 # Whether to use a lock for old archive extraction.
17138 lock_old_archive_extraction=$lock_old_archive_extraction
17139
17140 # A C compiler.
17141 LTCC=$lt_CC
17142
17143 # LTCC compiler flags.
17144 LTCFLAGS=$lt_CFLAGS
17145
17146 # Take the output of nm and produce a listing of raw symbols and C names.
17147 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17148
17149 # Transform the output of nm in a proper C declaration.
17150 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17151
17152 # Transform the output of nm into a list of symbols to manually relocate.
17153 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17154
17155 # Transform the output of nm in a C name address pair.
17156 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17157
17158 # Transform the output of nm in a C name address pair when lib prefix is needed.
17159 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17160
17161 # The name lister interface.
17162 nm_interface=$lt_lt_cv_nm_interface
17163
17164 # Specify filename containing input files for \$NM.
17165 nm_file_list_spec=$lt_nm_file_list_spec
17166
17167 # The root where to search for dependent libraries,and where our libraries should be installed.
17168 lt_sysroot=$lt_sysroot
17169
17170 # Command to truncate a binary pipe.
17171 lt_truncate_bin=$lt_lt_cv_truncate_bin
17172
17173 # The name of the directory that contains temporary libtool files.
17174 objdir=$objdir
17175
17176 # Used to examine libraries when file_magic_cmd begins with "file".
17177 MAGIC_CMD=$MAGIC_CMD
17178
17179 # Must we lock files when doing compilation?
17180 need_locks=$lt_need_locks
17181
17182 # Manifest tool.
17183 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17184
17185 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17186 DSYMUTIL=$lt_DSYMUTIL
17187
17188 # Tool to change global to local symbols on Mac OS X.
17189 NMEDIT=$lt_NMEDIT
17190
17191 # Tool to manipulate fat objects and archives on Mac OS X.
17192 LIPO=$lt_LIPO
17193
17194 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17195 OTOOL=$lt_OTOOL
17196
17197 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17198 OTOOL64=$lt_OTOOL64
17199
17200 # Old archive suffix (normally "a").
17201 libext=$libext
17202
17203 # Shared library suffix (normally ".so").
17204 shrext_cmds=$lt_shrext_cmds
17205
17206 # The commands to extract the exported symbol list from a shared archive.
17207 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17208
17209 # Variables whose values should be saved in libtool wrapper scripts and
17210 # restored at link time.
17211 variables_saved_for_relink=$lt_variables_saved_for_relink
17212
17213 # Do we need the "lib" prefix for modules?
17214 need_lib_prefix=$need_lib_prefix
17215
17216 # Do we need a version for libraries?
17217 need_version=$need_version
17218
17219 # Library versioning type.
17220 version_type=$version_type
17221
17222 # Shared library runtime path variable.
17223 runpath_var=$runpath_var
17224
17225 # Shared library path variable.
17226 shlibpath_var=$shlibpath_var
17227
17228 # Is shlibpath searched before the hard-coded library search path?
17229 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17230
17231 # Format of library name prefix.
17232 libname_spec=$lt_libname_spec
17233
17234 # List of archive names. First name is the real one, the rest are links.
17235 # The last name is the one that the linker finds with -lNAME
17236 library_names_spec=$lt_library_names_spec
17237
17238 # The coded name of the library, if different from the real name.
17239 soname_spec=$lt_soname_spec
17240
17241 # Permission mode override for installation of shared libraries.
17242 install_override_mode=$lt_install_override_mode
17243
17244 # Command to use after installation of a shared archive.
17245 postinstall_cmds=$lt_postinstall_cmds
17246
17247 # Command to use after uninstallation of a shared archive.
17248 postuninstall_cmds=$lt_postuninstall_cmds
17249
17250 # Commands used to finish a libtool library installation in a directory.
17251 finish_cmds=$lt_finish_cmds
17252
17253 # As "finish_cmds", except a single script fragment to be evaled but
17254 # not shown.
17255 finish_eval=$lt_finish_eval
17256
17257 # Whether we should hardcode library paths into libraries.
17258 hardcode_into_libs=$hardcode_into_libs
17259
17260 # Compile-time system search path for libraries.
17261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17262
17263 # Detected run-time system search path for libraries.
17264 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17265
17266 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17267 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17268
17269 # Whether dlopen is supported.
17270 dlopen_support=$enable_dlopen
17271
17272 # Whether dlopen of programs is supported.
17273 dlopen_self=$enable_dlopen_self
17274
17275 # Whether dlopen of statically linked programs is supported.
17276 dlopen_self_static=$enable_dlopen_self_static
17277
17278 # Commands to strip libraries.
17279 old_striplib=$lt_old_striplib
17280 striplib=$lt_striplib
17281
17282
17283 # The linker used to build libraries.
17284 LD=$lt_LD
17285
17286 # How to create reloadable object files.
17287 reload_flag=$lt_reload_flag
17288 reload_cmds=$lt_reload_cmds
17289
17290 # Commands used to build an old-style archive.
17291 old_archive_cmds=$lt_old_archive_cmds
17292
17293 # A language specific compiler.
17294 CC=$lt_compiler
17295
17296 # Is the compiler the GNU compiler?
17297 with_gcc=$GCC
17298
17299 # Compiler flag to turn off builtin functions.
17300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17301
17302 # Additional compiler flags for building library objects.
17303 pic_flag=$lt_lt_prog_compiler_pic
17304
17305 # How to pass a linker flag through the compiler.
17306 wl=$lt_lt_prog_compiler_wl
17307
17308 # Compiler flag to prevent dynamic linking.
17309 link_static_flag=$lt_lt_prog_compiler_static
17310
17311 # Does compiler simultaneously support -c and -o options?
17312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17313
17314 # Whether or not to add -lc for building shared libraries.
17315 build_libtool_need_lc=$archive_cmds_need_lc
17316
17317 # Whether or not to disallow shared libs when runtime libs are static.
17318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17319
17320 # Compiler flag to allow reflexive dlopens.
17321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17322
17323 # Compiler flag to generate shared objects directly from archives.
17324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17325
17326 # Whether the compiler copes with passing no objects directly.
17327 compiler_needs_object=$lt_compiler_needs_object
17328
17329 # Create an old-style archive from a shared archive.
17330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17331
17332 # Create a temporary old-style archive to link instead of a shared archive.
17333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17334
17335 # Commands used to build a shared archive.
17336 archive_cmds=$lt_archive_cmds
17337 archive_expsym_cmds=$lt_archive_expsym_cmds
17338
17339 # Commands used to build a loadable module if different from building
17340 # a shared archive.
17341 module_cmds=$lt_module_cmds
17342 module_expsym_cmds=$lt_module_expsym_cmds
17343
17344 # Whether we are building with GNU ld or not.
17345 with_gnu_ld=$lt_with_gnu_ld
17346
17347 # Flag that allows shared libraries with undefined symbols to be built.
17348 allow_undefined_flag=$lt_allow_undefined_flag
17349
17350 # Flag that enforces no undefined symbols.
17351 no_undefined_flag=$lt_no_undefined_flag
17352
17353 # Flag to hardcode \$libdir into a binary during linking.
17354 # This must work even if \$libdir does not exist
17355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17356
17357 # Whether we need a single "-rpath" flag with a separated argument.
17358 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17359
17360 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17361 # DIR into the resulting binary.
17362 hardcode_direct=$hardcode_direct
17363
17364 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17365 # DIR into the resulting binary and the resulting library dependency is
17366 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
17367 # library is relocated.
17368 hardcode_direct_absolute=$hardcode_direct_absolute
17369
17370 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17371 # into the resulting binary.
17372 hardcode_minus_L=$hardcode_minus_L
17373
17374 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17375 # into the resulting binary.
17376 hardcode_shlibpath_var=$hardcode_shlibpath_var
17377
17378 # Set to "yes" if building a shared library automatically hardcodes DIR
17379 # into the library and all subsequent libraries and executables linked
17380 # against it.
17381 hardcode_automatic=$hardcode_automatic
17382
17383 # Set to yes if linker adds runtime paths of dependent libraries
17384 # to runtime path list.
17385 inherit_rpath=$inherit_rpath
17386
17387 # Whether libtool must link a program against all its dependency libraries.
17388 link_all_deplibs=$link_all_deplibs
17389
17390 # Set to "yes" if exported symbols are required.
17391 always_export_symbols=$always_export_symbols
17392
17393 # The commands to list exported symbols.
17394 export_symbols_cmds=$lt_export_symbols_cmds
17395
17396 # Symbols that should not be listed in the preloaded symbols.
17397 exclude_expsyms=$lt_exclude_expsyms
17398
17399 # Symbols that must always be exported.
17400 include_expsyms=$lt_include_expsyms
17401
17402 # Commands necessary for linking programs (against libraries) with templates.
17403 prelink_cmds=$lt_prelink_cmds
17404
17405 # Commands necessary for finishing linking programs.
17406 postlink_cmds=$lt_postlink_cmds
17407
17408 # Specify filename containing input files.
17409 file_list_spec=$lt_file_list_spec
17410
17411 # How to hardcode a shared library path into an executable.
17412 hardcode_action=$hardcode_action
17413
17414 # ### END LIBTOOL CONFIG
17415
17416 _LT_EOF
17417
17418 cat <<'_LT_EOF' >> "$cfgfile"
17419
17420 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17421
17422 # func_munge_path_list VARIABLE PATH
17423 # -----------------------------------
17424 # VARIABLE is name of variable containing _space_ separated list of
17425 # directories to be munged by the contents of PATH, which is string
17426 # having a format:
17427 # "DIR[:DIR]:"
17428 # string "DIR[ DIR]" will be prepended to VARIABLE
17429 # ":DIR[:DIR]"
17430 # string "DIR[ DIR]" will be appended to VARIABLE
17431 # "DIRP[:DIRP]::[DIRA:]DIRA"
17432 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17433 # "DIRA[ DIRA]" will be appended to VARIABLE
17434 # "DIR[:DIR]"
17435 # VARIABLE will be replaced by "DIR[ DIR]"
17436 func_munge_path_list ()
17437 {
17438 case x$2 in
17439 x)
17440 ;;
17441 *:)
17442 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17443 ;;
17444 x:*)
17445 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17446 ;;
17447 *::*)
17448 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17449 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17450 ;;
17451 *)
17452 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17453 ;;
17454 esac
17455 }
17456
17457
17458 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17459 func_cc_basename ()
17460 {
17461 for cc_temp in $*""; do
17462 case $cc_temp in
17463 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17464 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17465 \-*) ;;
17466 *) break;;
17467 esac
17468 done
17469 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17470 }
17471
17472
17473 # ### END FUNCTIONS SHARED WITH CONFIGURE
17474
17475 _LT_EOF
17476
17477 case $host_os in
17478 aix3*)
17479 cat <<\_LT_EOF >> "$cfgfile"
17480 # AIX sometimes has problems with the GCC collect2 program. For some
17481 # reason, if we set the COLLECT_NAMES environment variable, the problems
17482 # vanish in a puff of smoke.
17483 if test set != "${COLLECT_NAMES+set}"; then
17484 COLLECT_NAMES=
17485 export COLLECT_NAMES
17486 fi
17487 _LT_EOF
17488 ;;
17489 esac
17490
17491
17492
17493 ltmain=$ac_aux_dir/ltmain.sh
17494
17495
17496 # We use sed instead of cat because bash on DJGPP gets confused if
17497 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17498 # text mode, it properly converts lines to CR/LF. This bash problem
17499 # is reportedly fixed, but why not run on old versions too?
17500 $SED '$q' "$ltmain" >> "$cfgfile" \
17501 || (rm -f "$cfgfile"; exit 1)
17502
17503 mv -f "$cfgfile" "$ofile" ||
17504 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17505 chmod +x "$ofile"
17506
17507 ;;
17508
17509 esac
17510 done # for ac_tag
17511
17512
17513 as_fn_exit 0
17514 _ACEOF
17515 ac_clean_files=$ac_clean_files_save
17516
17517 test $ac_write_fail = 0 ||
17518 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17519
17520
17521 # configure is writing to config.log, and then calls config.status.
17522 # config.status does its own redirection, appending to config.log.
17523 # Unfortunately, on DOS this fails, as config.log is still kept open
17524 # by configure, so config.status won't be able to write to it; its
17525 # output is simply discarded. So we exec the FD to /dev/null,
17526 # effectively closing config.log, so it can be properly (re)opened and
17527 # appended to by config.status. When coming back to configure, we
17528 # need to make the FD available again.
17529 if test "$no_create" != yes; then
17530 ac_cs_success=:
17531 ac_config_status_args=
17532 test "$silent" = yes &&
17533 ac_config_status_args="$ac_config_status_args --quiet"
17534 exec 5>/dev/null
17535 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17536 exec 5>>config.log
17537 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17538 # would make configure fail if this is the last instruction.
17539 $ac_cs_success || as_fn_exit 1
17540 fi
17541 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17543 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17544 fi
17545
17546