Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libnetfilter_queue 1.0.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libnetfilter_queue'
589 PACKAGE_TARNAME='libnetfilter_queue'
590 PACKAGE_VERSION='1.0.5'
591 PACKAGE_STRING='libnetfilter_queue 1.0.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 HAVE_DOXYGEN_FALSE
636 HAVE_DOXYGEN_TRUE
637 DOXYGEN
638 LIBMNL_LIBS
639 LIBMNL_CFLAGS
640 LIBNFNETLINK_LIBS
641 LIBNFNETLINK_CFLAGS
642 PKG_CONFIG_LIBDIR
643 PKG_CONFIG_PATH
644 PKG_CONFIG
645 GCC_FVISIBILITY_HIDDEN
646 CPP
647 LT_SYS_LIBRARY_PATH
648 OTOOL64
649 OTOOL
650 LIPO
651 NMEDIT
652 DSYMUTIL
653 MANIFEST_TOOL
654 RANLIB
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 LIBTOOL
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__include
675 DEPDIR
676 OBJEXT
677 EXEEXT
678 ac_ct_CC
679 CPPFLAGS
680 LDFLAGS
681 CFLAGS
682 CC
683 ac_ct_AR
684 AR
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 host_os
713 host_vendor
714 host_cpu
715 host
716 build_os
717 build_vendor
718 build_cpu
719 build
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 runstatedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL
759 am__quote'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_static
766 enable_shared
767 with_pic
768 enable_fast_install
769 with_aix_soname
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 with_doxygen
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 LT_SYS_LIBRARY_PATH
784 CPP
785 PKG_CONFIG
786 PKG_CONFIG_PATH
787 PKG_CONFIG_LIBDIR
788 LIBNFNETLINK_CFLAGS
789 LIBNFNETLINK_LIBS
790 LIBMNL_CFLAGS
791 LIBMNL_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
850 ac_prev=
851 continue
852 fi
853
854 case $ac_option in
855 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 *=) ac_optarg= ;;
857 *) ac_optarg=yes ;;
858 esac
859
860 # Accept the important Cygnus configure options, so we can diagnose typos.
861
862 case $ac_dashdash$ac_option in
863 --)
864 ac_dashdash=yes ;;
865
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 ac_prev=bindir ;;
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 bindir=$ac_optarg ;;
870
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
875
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
882
883 --config-cache | -C)
884 cache_file=config.cache ;;
885
886 -datadir | --datadir | --datadi | --datad)
887 ac_prev=datadir ;;
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
890
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
897
898 -disable-* | --disable-*)
899 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902 as_fn_error $? "invalid feature name: $ac_useropt"
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
906 *"
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=no ;;
913
914 -docdir | --docdir | --docdi | --doc | --do)
915 ac_prev=docdir ;;
916 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 docdir=$ac_optarg ;;
918
919 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 ac_prev=dvidir ;;
921 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 dvidir=$ac_optarg ;;
923
924 -enable-* | --enable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=\$ac_optarg ;;
939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
1000 -localstatedir | --localstatedir | --localstatedi | --localstated \
1001 | --localstate | --localstat | --localsta | --localst | --locals)
1002 ac_prev=localstatedir ;;
1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -runstatedir | --runstatedir | --runstatedi | --runstated \
1084 | --runstate | --runstat | --runsta | --runst | --runs \
1085 | --run | --ru | --r)
1086 ac_prev=runstatedir ;;
1087 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089 | --run=* | --ru=* | --r=*)
1090 runstatedir=$ac_optarg ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=\$ac_optarg ;;
1152
1153 -without-* | --without-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=no ;;
1168
1169 --x)
1170 # Obsolete; use --with-x.
1171 with_x=yes ;;
1172
1173 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174 | --x-incl | --x-inc | --x-in | --x-i)
1175 ac_prev=x_includes ;;
1176 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178 x_includes=$ac_optarg ;;
1179
1180 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182 ac_prev=x_libraries ;;
1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185 x_libraries=$ac_optarg ;;
1186
1187 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1189 ;;
1190
1191 *=*)
1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193 # Reject names that are not valid shell variable names.
1194 case $ac_envvar in #(
1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1196 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1198 eval $ac_envvar=\$ac_optarg
1199 export $ac_envvar ;;
1200
1201 *)
1202 # FIXME: should be removed in autoconf 3.0.
1203 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207 ;;
1208
1209 esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214 as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218 case $enable_option_checking in
1219 no) ;;
1220 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222 esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227 datadir sysconfdir sharedstatedir localstatedir includedir \
1228 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229 libdir localedir mandir runstatedir
1230 do
1231 eval ac_val=\$$ac_var
1232 # Remove trailing slashes.
1233 case $ac_val in
1234 */ )
1235 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236 eval $ac_var=\$ac_val;;
1237 esac
1238 # Be sure to have absolute directory names.
1239 case $ac_val in
1240 [\\/$]* | ?:[\\/]* ) continue;;
1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242 esac
1243 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 \`configure' configures libnetfilter_queue 1.0.5 to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root
1392 [DATAROOTDIR/doc/libnetfilter_queue]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of libnetfilter_queue 1.0.5:";;
1415 esac
1416 cat <<\_ACEOF
1417
1418 Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-static[=PKGS] build static libraries [default=no]
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-aix-soname=aix|svr4|both
1440 shared library versioning (aka "SONAME") variant to
1441 provide on AIX, [default=aix].
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1444 compiler's sysroot if not specified).
1445 --with-doxygen create doxygen documentation [default=no]
1446
1447 Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1454 you have headers in a nonstandard directory <include dir>
1455 LT_SYS_LIBRARY_PATH
1456 User-defined run-time library search path.
1457 CPP C preprocessor
1458 PKG_CONFIG path to pkg-config utility
1459 PKG_CONFIG_PATH
1460 directories to add to pkg-config's search path
1461 PKG_CONFIG_LIBDIR
1462 path overriding pkg-config's built-in search path
1463 LIBNFNETLINK_CFLAGS
1464 C compiler flags for LIBNFNETLINK, overriding pkg-config
1465 LIBNFNETLINK_LIBS
1466 linker flags for LIBNFNETLINK, overriding pkg-config
1467 LIBMNL_CFLAGS
1468 C compiler flags for LIBMNL, overriding pkg-config
1469 LIBMNL_LIBS linker flags for LIBMNL, overriding pkg-config
1470
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to the package provider.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 libnetfilter_queue configure 1.0.5
1538 generated by GNU Autoconf 2.69
1539
1540 Copyright (C) 2012 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status $ac_retval
1586
1587 } # ac_fn_c_try_compile
1588
1589 # ac_fn_c_try_link LINENO
1590 # -----------------------
1591 # Try to link conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_link ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 rm -f conftest.$ac_objext conftest$ac_exeext
1596 if { { ac_try="$ac_link"
1597 case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_link") 2>conftest.err
1604 ac_status=$?
1605 if test -s conftest.err; then
1606 grep -v '^ *+' conftest.err >conftest.er1
1607 cat conftest.er1 >&5
1608 mv -f conftest.er1 conftest.err
1609 fi
1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611 test $ac_status = 0; } && {
1612 test -z "$ac_c_werror_flag" ||
1613 test ! -s conftest.err
1614 } && test -s conftest$ac_exeext && {
1615 test "$cross_compiling" = yes ||
1616 test -x conftest$ac_exeext
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1627 # interfere with the next link command; also delete a directory that is
1628 # left behind by Apple's compiler. We do this before executing the actions.
1629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status $ac_retval
1632
1633 } # ac_fn_c_try_link
1634
1635 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists and can be compiled using the include files in
1638 # INCLUDES, setting the cache variable VAR accordingly.
1639 ac_fn_c_check_header_compile ()
1640 {
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 else
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"; then :
1653 eval "$3=yes"
1654 else
1655 eval "$3=no"
1656 fi
1657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658 fi
1659 eval ac_res=\$$3
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1661 $as_echo "$ac_res" >&6; }
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663
1664 } # ac_fn_c_check_header_compile
1665
1666 # ac_fn_c_try_cpp LINENO
1667 # ----------------------
1668 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669 ac_fn_c_try_cpp ()
1670 {
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } > conftest.i && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_cpp
1702
1703 # ac_fn_c_try_run LINENO
1704 # ----------------------
1705 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706 # that executables *can* be run.
1707 ac_fn_c_try_run ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711 case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714 esac
1715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716 $as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738 fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_run
1744
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1755 else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1760 #define $2 innocuous_$2
1761
1762 /* System header to define __stub macros and hopefully few prototypes,
1763 which can conflict with char $2 (); below.
1764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1765 <limits.h> exists even on freestanding compilers. */
1766
1767 #ifdef __STDC__
1768 # include <limits.h>
1769 #else
1770 # include <assert.h>
1771 #endif
1772
1773 #undef $2
1774
1775 /* Override any GCC internal prototype to avoid an error.
1776 Use char because int might match the return type of a GCC
1777 builtin and then its argument prototype would still apply. */
1778 #ifdef __cplusplus
1779 extern "C"
1780 #endif
1781 char $2 ();
1782 /* The GNU C library defines this for functions which it implements
1783 to always fail with ENOSYS. Some functions are actually named
1784 something starting with __ and the normal name is an alias. */
1785 #if defined __stub_$2 || defined __stub___$2
1786 choke me
1787 #endif
1788
1789 int
1790 main ()
1791 {
1792 return $2 ();
1793 ;
1794 return 0;
1795 }
1796 _ACEOF
1797 if ac_fn_c_try_link "$LINENO"; then :
1798 eval "$3=yes"
1799 else
1800 eval "$3=no"
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext \
1803 conftest$ac_exeext conftest.$ac_ext
1804 fi
1805 eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_func
1811 cat >config.log <<_ACEOF
1812 This file contains any messages produced by compilers while
1813 running configure, to aid debugging if configure makes a mistake.
1814
1815 It was created by libnetfilter_queue $as_me 1.0.5, which was
1816 generated by GNU Autoconf 2.69. Invocation command line was
1817
1818 $ $0 $@
1819
1820 _ACEOF
1821 exec 5>>config.log
1822 {
1823 cat <<_ASUNAME
1824 ## --------- ##
1825 ## Platform. ##
1826 ## --------- ##
1827
1828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833
1834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1836
1837 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1838 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1841 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1842 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1843 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844
1845 _ASUNAME
1846
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 $as_echo "PATH: $as_dir"
1853 done
1854 IFS=$as_save_IFS
1855
1856 } >&5
1857
1858 cat >&5 <<_ACEOF
1859
1860
1861 ## ----------- ##
1862 ## Core tests. ##
1863 ## ----------- ##
1864
1865 _ACEOF
1866
1867
1868 # Keep a trace of the command line.
1869 # Strip out --no-create and --no-recursion so they do not pile up.
1870 # Strip out --silent because we don't want to record it for future runs.
1871 # Also quote any args containing shell meta-characters.
1872 # Make two passes to allow for proper duplicate-argument suppression.
1873 ac_configure_args=
1874 ac_configure_args0=
1875 ac_configure_args1=
1876 ac_must_keep_next=false
1877 for ac_pass in 1 2
1878 do
1879 for ac_arg
1880 do
1881 case $ac_arg in
1882 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1884 | -silent | --silent | --silen | --sile | --sil)
1885 continue ;;
1886 *\'*)
1887 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 esac
1889 case $ac_pass in
1890 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1891 2)
1892 as_fn_append ac_configure_args1 " '$ac_arg'"
1893 if test $ac_must_keep_next = true; then
1894 ac_must_keep_next=false # Got value, back to normal.
1895 else
1896 case $ac_arg in
1897 *=* | --config-cache | -C | -disable-* | --disable-* \
1898 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1899 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1900 | -with-* | --with-* | -without-* | --without-* | --x)
1901 case "$ac_configure_args0 " in
1902 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903 esac
1904 ;;
1905 -* ) ac_must_keep_next=true ;;
1906 esac
1907 fi
1908 as_fn_append ac_configure_args " '$ac_arg'"
1909 ;;
1910 esac
1911 done
1912 done
1913 { ac_configure_args0=; unset ac_configure_args0;}
1914 { ac_configure_args1=; unset ac_configure_args1;}
1915
1916 # When interrupted or exit'd, cleanup temporary files, and complete
1917 # config.log. We remove comments because anyway the quotes in there
1918 # would cause problems or look ugly.
1919 # WARNING: Use '\'' to represent an apostrophe within the trap.
1920 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1921 trap 'exit_status=$?
1922 # Save into config.log some information that might help in debugging.
1923 {
1924 echo
1925
1926 $as_echo "## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##"
1929 echo
1930 # The following way of writing the cache mishandles newlines in values,
1931 (
1932 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in #(
1935 *${as_nl}*)
1936 case $ac_var in #(
1937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1938 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1939 esac
1940 case $ac_var in #(
1941 _ | IFS | as_nl) ;; #(
1942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1943 *) { eval $ac_var=; unset $ac_var;} ;;
1944 esac ;;
1945 esac
1946 done
1947 (set) 2>&1 |
1948 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1949 *${as_nl}ac_space=\ *)
1950 sed -n \
1951 "s/'\''/'\''\\\\'\'''\''/g;
1952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1953 ;; #(
1954 *)
1955 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1956 ;;
1957 esac |
1958 sort
1959 )
1960 echo
1961
1962 $as_echo "## ----------------- ##
1963 ## Output variables. ##
1964 ## ----------------- ##"
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 $as_echo "## ------------------- ##
1978 ## File substitutions. ##
1979 ## ------------------- ##"
1980 echo
1981 for ac_var in $ac_subst_files
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 $as_echo "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1990 fi
1991
1992 if test -s confdefs.h; then
1993 $as_echo "## ----------- ##
1994 ## confdefs.h. ##
1995 ## ----------- ##"
1996 echo
1997 cat confdefs.h
1998 echo
1999 fi
2000 test "$ac_signal" != 0 &&
2001 $as_echo "$as_me: caught signal $ac_signal"
2002 $as_echo "$as_me: exit $exit_status"
2003 } >&5
2004 rm -f core *.core core.conftest.* &&
2005 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2006 exit $exit_status
2007 ' 0
2008 for ac_signal in 1 2 13 15; do
2009 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2010 done
2011 ac_signal=0
2012
2013 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2014 rm -f -r conftest* confdefs.h
2015
2016 $as_echo "/* confdefs.h */" > confdefs.h
2017
2018 # Predefined preprocessor variables.
2019
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_NAME "$PACKAGE_NAME"
2022 _ACEOF
2023
2024 cat >>confdefs.h <<_ACEOF
2025 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2026 _ACEOF
2027
2028 cat >>confdefs.h <<_ACEOF
2029 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2030 _ACEOF
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_STRING "$PACKAGE_STRING"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_URL "$PACKAGE_URL"
2042 _ACEOF
2043
2044
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2047 ac_site_file1=NONE
2048 ac_site_file2=NONE
2049 if test -n "$CONFIG_SITE"; then
2050 # We do not want a PATH search for config.site.
2051 case $CONFIG_SITE in #((
2052 -*) ac_site_file1=./$CONFIG_SITE;;
2053 */*) ac_site_file1=$CONFIG_SITE;;
2054 *) ac_site_file1=./$CONFIG_SITE;;
2055 esac
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059 else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
2062 fi
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064 do
2065 test "x$ac_site_file" = xNONE && continue
2066 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2070 . "$ac_site_file" \
2071 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2073 as_fn_error $? "failed to load site script $ac_site_file
2074 See \`config.log' for more details" "$LINENO" 5; }
2075 fi
2076 done
2077
2078 if test -r "$cache_file"; then
2079 # Some versions of bash will fail to source /dev/null (special files
2080 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2081 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2083 $as_echo "$as_me: loading cache $cache_file" >&6;}
2084 case $cache_file in
2085 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2086 *) . "./$cache_file";;
2087 esac
2088 fi
2089 else
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2091 $as_echo "$as_me: creating cache $cache_file" >&6;}
2092 >$cache_file
2093 fi
2094
2095 # Check that the precious variables saved in the cache have kept the same
2096 # value.
2097 ac_cache_corrupted=false
2098 for ac_var in $ac_precious_vars; do
2099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2100 eval ac_new_set=\$ac_env_${ac_var}_set
2101 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2102 eval ac_new_val=\$ac_env_${ac_var}_value
2103 case $ac_old_set,$ac_new_set in
2104 set,)
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2106 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2108 ,set)
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2110 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2111 ac_cache_corrupted=: ;;
2112 ,);;
2113 *)
2114 if test "x$ac_old_val" != "x$ac_new_val"; then
2115 # differences in whitespace do not lead to failure.
2116 ac_old_val_w=`echo x $ac_old_val`
2117 ac_new_val_w=`echo x $ac_new_val`
2118 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2120 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2121 ac_cache_corrupted=:
2122 else
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2124 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2125 eval $ac_var=\$ac_old_val
2126 fi
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2128 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2130 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2131 fi;;
2132 esac
2133 # Pass precious variables to config.status.
2134 if test "$ac_new_set" = set; then
2135 case $ac_new_val in
2136 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2137 *) ac_arg=$ac_var=$ac_new_val ;;
2138 esac
2139 case " $ac_configure_args " in
2140 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2141 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2142 esac
2143 fi
2144 done
2145 if $ac_cache_corrupted; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2149 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2150 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2151 fi
2152 ## -------------------- ##
2153 ## Main body of script. ##
2154 ## -------------------- ##
2155
2156 ac_ext=c
2157 ac_cpp='$CPP $CPPFLAGS'
2158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2161
2162
2163 ac_aux_dir=
2164 for ac_dir in build-aux "$srcdir"/build-aux; do
2165 if test -f "$ac_dir/install-sh"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/install-sh -c"
2168 break
2169 elif test -f "$ac_dir/install.sh"; then
2170 ac_aux_dir=$ac_dir
2171 ac_install_sh="$ac_aux_dir/install.sh -c"
2172 break
2173 elif test -f "$ac_dir/shtool"; then
2174 ac_aux_dir=$ac_dir
2175 ac_install_sh="$ac_aux_dir/shtool install -c"
2176 break
2177 fi
2178 done
2179 if test -z "$ac_aux_dir"; then
2180 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2181 fi
2182
2183 # These three variables are undocumented and unsupported,
2184 # and are intended to be withdrawn in a future Autoconf release.
2185 # They can cause serious problems if a builder's source tree is in a directory
2186 # whose full name contains unusual characters.
2187 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2188 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2189 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2190
2191
2192 # Make sure we can run config.sub.
2193 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2194 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2195
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2197 $as_echo_n "checking build system type... " >&6; }
2198 if ${ac_cv_build+:} false; then :
2199 $as_echo_n "(cached) " >&6
2200 else
2201 ac_build_alias=$build_alias
2202 test "x$ac_build_alias" = x &&
2203 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2204 test "x$ac_build_alias" = x &&
2205 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2206 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2207 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2208
2209 fi
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2211 $as_echo "$ac_cv_build" >&6; }
2212 case $ac_cv_build in
2213 *-*-*) ;;
2214 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2215 esac
2216 build=$ac_cv_build
2217 ac_save_IFS=$IFS; IFS='-'
2218 set x $ac_cv_build
2219 shift
2220 build_cpu=$1
2221 build_vendor=$2
2222 shift; shift
2223 # Remember, the first character of IFS is used to create $*,
2224 # except with old shells:
2225 build_os=$*
2226 IFS=$ac_save_IFS
2227 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2228
2229
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2231 $as_echo_n "checking host system type... " >&6; }
2232 if ${ac_cv_host+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 if test "x$host_alias" = x; then
2236 ac_cv_host=$ac_cv_build
2237 else
2238 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2239 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2240 fi
2241
2242 fi
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2244 $as_echo "$ac_cv_host" >&6; }
2245 case $ac_cv_host in
2246 *-*-*) ;;
2247 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2248 esac
2249 host=$ac_cv_host
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_host
2252 shift
2253 host_cpu=$1
2254 host_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 host_os=$*
2259 IFS=$ac_save_IFS
2260 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2261
2262
2263
2264 ac_config_headers="$ac_config_headers config.h"
2265
2266
2267 am__api_version='1.16'
2268
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2275 # AIX /bin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2285 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 for as_dir in $PATH
2291 do
2292 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296 ./ | .// | /[cC]/* | \
2297 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2298 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2299 /usr/ucb/* ) ;;
2300 *)
2301 # OSF1 and SCO ODT 3.0 have their own names for install.
2302 # Don't use installbsd from OSF since it installs stuff as root
2303 # by default.
2304 for ac_prog in ginstall scoinst install; do
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2307 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2309 # AIX install. It has an incompatible calling convention.
2310 :
2311 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2313 # program-specific install script used by HP pwplus--don't use.
2314 :
2315 else
2316 rm -rf conftest.one conftest.two conftest.dir
2317 echo one > conftest.one
2318 echo two > conftest.two
2319 mkdir conftest.dir
2320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2321 test -s conftest.one && test -s conftest.two &&
2322 test -s conftest.dir/conftest.one &&
2323 test -s conftest.dir/conftest.two
2324 then
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2326 break 3
2327 fi
2328 fi
2329 fi
2330 done
2331 done
2332 ;;
2333 esac
2334
2335 done
2336 IFS=$as_save_IFS
2337
2338 rm -rf conftest.one conftest.two conftest.dir
2339
2340 fi
2341 if test "${ac_cv_path_install+set}" = set; then
2342 INSTALL=$ac_cv_path_install
2343 else
2344 # As a last resort, use the slow shell script. Don't cache a
2345 # value for INSTALL within a source directory, because that will
2346 # break other packages using the cache if that directory is
2347 # removed, or if the value is a relative name.
2348 INSTALL=$ac_install_sh
2349 fi
2350 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2353
2354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2355 # It thinks the first close brace ends the variable substitution.
2356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2357
2358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2359
2360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2361
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2364 # Reject unsafe characters in $srcdir or the absolute working directory
2365 # name. Accept space and tab only in the latter.
2366 am_lf='
2367 '
2368 case `pwd` in
2369 *[\\\"\#\$\&\'\`$am_lf]*)
2370 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2371 esac
2372 case $srcdir in
2373 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2374 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2375 esac
2376
2377 # Do 'set' in a subshell so we don't clobber the current shell's
2378 # arguments. Must try -L first in case configure is actually a
2379 # symlink; some systems play weird games with the mod time of symlinks
2380 # (eg FreeBSD returns the mod time of the symlink's containing
2381 # directory).
2382 if (
2383 am_has_slept=no
2384 for am_try in 1 2; do
2385 echo "timestamp, slept: $am_has_slept" > conftest.file
2386 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2387 if test "$*" = "X"; then
2388 # -L didn't work.
2389 set X `ls -t "$srcdir/configure" conftest.file`
2390 fi
2391 if test "$*" != "X $srcdir/configure conftest.file" \
2392 && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394 # If neither matched, then we have a broken ls. This can happen
2395 # if, for instance, CONFIG_SHELL is bash and it inherits a
2396 # broken ls alias from the environment. This has actually
2397 # happened. Such a system could not be considered "sane".
2398 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2399 alias in your environment" "$LINENO" 5
2400 fi
2401 if test "$2" = conftest.file || test $am_try -eq 2; then
2402 break
2403 fi
2404 # Just in case.
2405 sleep 1
2406 am_has_slept=yes
2407 done
2408 test "$2" = conftest.file
2409 )
2410 then
2411 # Ok.
2412 :
2413 else
2414 as_fn_error $? "newly created file is older than distributed files!
2415 Check your system clock" "$LINENO" 5
2416 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2419 # If we didn't sleep, we still need to ensure time stamps of config.status and
2420 # generated files are strictly newer.
2421 am_sleep_pid=
2422 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2423 ( sleep 1 ) &
2424 am_sleep_pid=$!
2425 fi
2426
2427 rm -f conftest.file
2428
2429 test "$program_prefix" != NONE &&
2430 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439 # Expand $ac_aux_dir to an absolute path.
2440 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2441
2442 if test x"${MISSING+set}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 *)
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448 esac
2449 fi
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --is-lightweight"; then
2452 am_missing_run="$MISSING "
2453 else
2454 am_missing_run=
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2457 fi
2458
2459 if test x"${install_sh+set}" != xset; then
2460 case $am_aux_dir in
2461 *\ * | *\ *)
2462 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463 *)
2464 install_sh="\${SHELL} $am_aux_dir/install-sh"
2465 esac
2466 fi
2467
2468 # Installed binaries are usually stripped using 'strip' when the user
2469 # run "make install-strip". However 'strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the 'STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473 if test -n "$ac_tool_prefix"; then
2474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2481 if test -n "$STRIP"; then
2482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495 done
2496 done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513 ac_ct_STRIP=$STRIP
2514 # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$ac_ct_STRIP"; then
2522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_ac_ct_STRIP="strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550 if test "x$ac_ct_STRIP" = x; then
2551 STRIP=":"
2552 else
2553 case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559 STRIP=$ac_ct_STRIP
2560 fi
2561 else
2562 STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570 if test -z "$MKDIR_P"; then
2571 if ${ac_cv_path_mkdir+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 for ac_prog in mkdir gmkdir; do
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583 'mkdir (GNU coreutils) '* | \
2584 'mkdir (coreutils) '* | \
2585 'mkdir (fileutils) '4.1*)
2586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587 break 3;;
2588 esac
2589 done
2590 done
2591 done
2592 IFS=$as_save_IFS
2593
2594 fi
2595
2596 test -d ./--version && rmdir ./--version
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2598 MKDIR_P="$ac_cv_path_mkdir -p"
2599 else
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for MKDIR_P within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 MKDIR_P="$ac_install_sh -d"
2605 fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2609
2610 for ac_prog in gawk mawk nawk awk
2611 do
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_AWK+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$AWK"; then
2620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_AWK="$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633 done
2634 done
2635 IFS=$as_save_IFS
2636
2637 fi
2638 fi
2639 AWK=$ac_cv_prog_AWK
2640 if test -n "$AWK"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2646 fi
2647
2648
2649 test -n "$AWK" && break
2650 done
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2654 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat >conftest.make <<\_ACEOF
2660 SHELL = /bin/sh
2661 all:
2662 @echo '@@@%%%=$(MAKE)=@@@%%%'
2663 _ACEOF
2664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2666 *@@@%%%=?*=@@@%%%*)
2667 eval ac_cv_prog_make_${ac_make}_set=yes;;
2668 *)
2669 eval ac_cv_prog_make_${ac_make}_set=no;;
2670 esac
2671 rm -f conftest.make
2672 fi
2673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
2676 SET_MAKE=
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 SET_MAKE="MAKE=${MAKE-make}"
2681 fi
2682
2683 rm -rf .tst 2>/dev/null
2684 mkdir .tst 2>/dev/null
2685 if test -d .tst; then
2686 am__leading_dot=.
2687 else
2688 am__leading_dot=_
2689 fi
2690 rmdir .tst 2>/dev/null
2691
2692 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
2694 enableval=$enable_silent_rules;
2695 fi
2696
2697 case $enable_silent_rules in # (((
2698 yes) AM_DEFAULT_VERBOSITY=0;;
2699 no) AM_DEFAULT_VERBOSITY=1;;
2700 *) AM_DEFAULT_VERBOSITY=1;;
2701 esac
2702 am_make=${MAKE-make}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705 if ${am_cv_make_support_nested_variables+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if $as_echo 'TRUE=$(BAR$(V))
2709 BAR0=false
2710 BAR1=true
2711 V=1
2712 am__doit:
2713 @$(TRUE)
2714 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2715 am_cv_make_support_nested_variables=yes
2716 else
2717 am_cv_make_support_nested_variables=no
2718 fi
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2722 if test $am_cv_make_support_nested_variables = yes; then
2723 AM_V='$(V)'
2724 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2725 else
2726 AM_V=$AM_DEFAULT_VERBOSITY
2727 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2728 fi
2729 AM_BACKSLASH='\'
2730
2731 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2732 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2733 # is not polluted with repeated "-I."
2734 am__isrc=' -I$(srcdir)'
2735 # test to see if srcdir already configured
2736 if test -f $srcdir/config.status; then
2737 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2738 fi
2739 fi
2740
2741 # test whether we have cygpath
2742 if test -z "$CYGPATH_W"; then
2743 if (cygpath --version) >/dev/null 2>/dev/null; then
2744 CYGPATH_W='cygpath -w'
2745 else
2746 CYGPATH_W=echo
2747 fi
2748 fi
2749
2750
2751 # Define the identity of the package.
2752 PACKAGE='libnetfilter_queue'
2753 VERSION='1.0.5'
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
2764
2765 # Some tools Automake needs.
2766
2767 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768
2769
2770 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771
2772
2773 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774
2775
2776 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777
2778
2779 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2780
2781 # For better backward compatibility. To be removed once Automake 1.9.x
2782 # dies out for good. For more background, see:
2783 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2784 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2785 mkdir_p='$(MKDIR_P)'
2786
2787 # We need awk for the "check" target (and possibly the TAP driver). The
2788 # system "awk" is bad on some platforms.
2789 # Always define AMTAR for backward compatibility. Yes, it's still used
2790 # in the wild :-( We should find a proper way to deprecate it ...
2791 AMTAR='$${TAR-tar}'
2792
2793
2794 # We'll loop over all known methods to create a tar archive until one works.
2795 _am_tools='gnutar pax cpio none'
2796
2797
2798
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2800 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2801
2802 # Go ahead even if we have the value already cached. We do so because we
2803 # need to set the values for the 'am__tar' and 'am__untar' variables.
2804 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2805
2806 for _am_tool in $_am_tools; do
2807 case $_am_tool in
2808 gnutar)
2809 for _am_tar in tar gnutar gtar; do
2810 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2811 ($_am_tar --version) >&5 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } && break
2815 done
2816 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2817 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2818 am__untar="$_am_tar -xf -"
2819 ;;
2820 plaintar)
2821 # Must skip GNU tar: if it does not support --format= it doesn't create
2822 # ustar tarball either.
2823 (tar --version) >/dev/null 2>&1 && continue
2824 am__tar='tar chf - "$$tardir"'
2825 am__tar_='tar chf - "$tardir"'
2826 am__untar='tar xf -'
2827 ;;
2828 pax)
2829 am__tar='pax -L -x pax -w "$$tardir"'
2830 am__tar_='pax -L -x pax -w "$tardir"'
2831 am__untar='pax -r'
2832 ;;
2833 cpio)
2834 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2835 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2836 am__untar='cpio -i -H pax -d'
2837 ;;
2838 none)
2839 am__tar=false
2840 am__tar_=false
2841 am__untar=false
2842 ;;
2843 esac
2844
2845 # If the value was cached, stop now. We just wanted to have am__tar
2846 # and am__untar set.
2847 test -n "${am_cv_prog_tar_pax}" && break
2848
2849 # tar/untar a dummy directory, and stop if the command works.
2850 rm -rf conftest.dir
2851 mkdir conftest.dir
2852 echo GrepMe > conftest.dir/file
2853 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2854 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }
2858 rm -rf conftest.dir
2859 if test -s conftest.tar; then
2860 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2861 ($am__untar <conftest.tar) >&5 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }
2865 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2866 (cat conftest.dir/file) >&5 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2870 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2871 fi
2872 done
2873 rm -rf conftest.dir
2874
2875 if ${am_cv_prog_tar_pax+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 am_cv_prog_tar_pax=$_am_tool
2879 fi
2880
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2882 $as_echo "$am_cv_prog_tar_pax" >&6; }
2883
2884
2885
2886
2887
2888
2889 # POSIX will say in a future version that running "rm -f" with no argument
2890 # is OK; and we want to be able to make that assumption in our Makefile
2891 # recipes. So use an aggressive probe to check that the usage we want is
2892 # actually supported "in the wild" to an acceptable degree.
2893 # See automake bug#10828.
2894 # To make any issue more visible, cause the running configure to be aborted
2895 # by default if the 'rm' program in use doesn't match our expectations; the
2896 # user can still override this though.
2897 if rm -f && rm -fr && rm -rf; then : OK; else
2898 cat >&2 <<'END'
2899 Oops!
2900
2901 Your 'rm' program seems unable to run without file operands specified
2902 on the command line, even when the '-f' option is present. This is contrary
2903 to the behaviour of most rm programs out there, and not conforming with
2904 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2905
2906 Please tell [email protected] about your system, including the value
2907 of your $PATH and any error possibly output before this message. This
2908 can help us improve future automake versions.
2909
2910 END
2911 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2912 echo 'Configuration will proceed anyway, since you have set the' >&2
2913 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2914 echo >&2
2915 else
2916 cat >&2 <<'END'
2917 Aborting the configuration process, to ensure you take notice of the issue.
2918
2919 You can download and install GNU coreutils to get an 'rm' implementation
2920 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2921
2922 If you want to complete the configuration process using your problematic
2923 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2924 to "yes", and re-run configure.
2925
2926 END
2927 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2928 fi
2929 fi
2930
2931 DEPDIR="${am__leading_dot}deps"
2932
2933 ac_config_commands="$ac_config_commands depfiles"
2934
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2936 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2937 cat > confinc.mk << 'END'
2938 am__doit:
2939 @echo this is the am__doit target >confinc.out
2940 .PHONY: am__doit
2941 END
2942 am__include="#"
2943 am__quote=
2944 # BSD make does it like this.
2945 echo '.include "confinc.mk" # ignored' > confmf.BSD
2946 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2947 echo 'include confinc.mk # ignored' > confmf.GNU
2948 _am_result=no
2949 for s in GNU BSD; do
2950 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2951 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }
2955 case $?:`cat confinc.out 2>/dev/null` in #(
2956 '0:this is the am__doit target') :
2957 case $s in #(
2958 BSD) :
2959 am__include='.include' am__quote='"' ;; #(
2960 *) :
2961 am__include='include' am__quote='' ;;
2962 esac ;; #(
2963 *) :
2964 ;;
2965 esac
2966 if test "$am__include" != "#"; then
2967 _am_result="yes ($s style)"
2968 break
2969 fi
2970 done
2971 rm -f confinc.* confmf.*
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2973 $as_echo "${_am_result}" >&6; }
2974
2975 # Check whether --enable-dependency-tracking was given.
2976 if test "${enable_dependency_tracking+set}" = set; then :
2977 enableval=$enable_dependency_tracking;
2978 fi
2979
2980 if test "x$enable_dependency_tracking" != xno; then
2981 am_depcomp="$ac_aux_dir/depcomp"
2982 AMDEPBACKSLASH='\'
2983 am__nodep='_no'
2984 fi
2985 if test "x$enable_dependency_tracking" != xno; then
2986 AMDEP_TRUE=
2987 AMDEP_FALSE='#'
2988 else
2989 AMDEP_TRUE='#'
2990 AMDEP_FALSE=
2991 fi
2992
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037 fi
3038 if test -z "$ac_cv_prog_CC"; then
3039 ac_ct_CC=$CC
3040 # Extract the first word of "gcc", so it can be a program name with args.
3041 set dummy gcc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_ac_ct_CC="gcc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076 if test "x$ac_ct_CC" = x; then
3077 CC=""
3078 else
3079 case $cross_compiling:$ac_tool_warned in
3080 yes:)
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083 ac_tool_warned=yes ;;
3084 esac
3085 CC=$ac_ct_CC
3086 fi
3087 else
3088 CC="$ac_cv_prog_CC"
3089 fi
3090
3091 if test -z "$CC"; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_CC="${ac_tool_prefix}cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114 done
3115 done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 fi
3132 if test -z "$CC"; then
3133 # Extract the first word of "cc", so it can be a program name with args.
3134 set dummy cc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 ac_prog_rejected=no
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_exec_ext in '' $ac_executable_extensions; do
3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152 ac_prog_rejected=yes
3153 continue
3154 fi
3155 ac_cv_prog_CC="cc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 if test $ac_prog_rejected = yes; then
3164 # We found a bogon in the path, so make sure we never use it.
3165 set dummy $ac_cv_prog_CC
3166 shift
3167 if test $# != 0; then
3168 # We chose a different compiler from the bogus one.
3169 # However, it has the same basename, so the bogon will be chosen
3170 # first if we set CC to just the basename; use the full file name.
3171 shift
3172 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173 fi
3174 fi
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$CC"; then
3189 if test -n "$ac_tool_prefix"; then
3190 for ac_prog in cl.exe
3191 do
3192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229 test -n "$CC" && break
3230 done
3231 fi
3232 if test -z "$CC"; then
3233 ac_ct_CC=$CC
3234 for ac_prog in cl.exe
3235 do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$ac_ct_CC" && break
3274 done
3275
3276 if test "x$ac_ct_CC" = x; then
3277 CC=""
3278 else
3279 case $cross_compiling:$ac_tool_warned in
3280 yes:)
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285 CC=$ac_ct_CC
3286 fi
3287 fi
3288
3289 fi
3290
3291
3292 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error $? "no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details" "$LINENO" 5; }
3296
3297 # Provide some information about the compiler.
3298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299 set X $ac_compile
3300 ac_compiler=$2
3301 for ac_option in --version -v -V -qversion; do
3302 { { ac_try="$ac_compiler $ac_option >&5"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310 ac_status=$?
3311 if test -s conftest.err; then
3312 sed '10a\
3313 ... rest of stderr output deleted ...
3314 10q' conftest.err >conftest.er1
3315 cat conftest.er1 >&5
3316 fi
3317 rm -f conftest.er1 conftest.err
3318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319 test $ac_status = 0; }
3320 done
3321
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3337 # of exeext.
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339 $as_echo_n "checking whether the C compiler works... " >&6; }
3340 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342 # The possible output files:
3343 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345 ac_rmfiles=
3346 for ac_file in $ac_files
3347 do
3348 case $ac_file in
3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 esac
3352 done
3353 rm -f $ac_rmfiles
3354
3355 if { { ac_try="$ac_link_default"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_link_default") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3369 # so that the user can short-circuit this test for compilers unknown to
3370 # Autoconf.
3371 for ac_file in $ac_files ''
3372 do
3373 test -f "$ac_file" || continue
3374 case $ac_file in
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376 ;;
3377 [ab].out )
3378 # We found the default executable, but exeext='' is most
3379 # certainly right.
3380 break;;
3381 *.* )
3382 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383 then :; else
3384 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385 fi
3386 # We set ac_cv_exeext here because the later test for it is not
3387 # safe: cross compilers may not add the suffix if given an `-o'
3388 # argument, so we may need to know it at that point already.
3389 # Even if this section looks crufty: it has the advantage of
3390 # actually working.
3391 break;;
3392 * )
3393 break;;
3394 esac
3395 done
3396 test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398 else
3399 ac_file=''
3400 fi
3401 if test -z "$ac_file"; then :
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 $as_echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error 77 "C compiler cannot create executables
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413 $as_echo "yes" >&6; }
3414 fi
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416 $as_echo_n "checking for C compiler default output file name... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418 $as_echo "$ac_file" >&6; }
3419 ac_exeext=$ac_cv_exeext
3420
3421 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424 $as_echo_n "checking for suffix of executables... " >&6; }
3425 if { { ac_try="$ac_link"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3438 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 # `rm'.
3440 for ac_file in conftest.exe conftest conftest.*; do
3441 test -f "$ac_file" || continue
3442 case $ac_file in
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 break;;
3446 * ) break;;
3447 esac
3448 done
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest conftest$ac_cv_exeext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457 $as_echo "$ac_cv_exeext" >&6; }
3458
3459 rm -f conftest.$ac_ext
3460 EXEEXT=$ac_cv_exeext
3461 ac_exeext=$EXEEXT
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <stdio.h>
3465 int
3466 main ()
3467 {
3468 FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 ac_clean_files="$ac_clean_files conftest.out"
3476 # Check that the compiler produces executables we can run. If not, either
3477 # the compiler is broken, or we cross compile.
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479 $as_echo_n "checking whether we are cross compiling... " >&6; }
3480 if test "$cross_compiling" != yes; then
3481 { { ac_try="$ac_link"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487 $as_echo "$ac_try_echo"; } >&5
3488 (eval "$ac_link") 2>&5
3489 ac_status=$?
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 if { ac_try='./conftest$ac_cv_exeext'
3493 { { case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_try") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }; }; then
3503 cross_compiling=no
3504 else
3505 if test "$cross_compiling" = maybe; then
3506 cross_compiling=yes
3507 else
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot run C compiled programs.
3511 If you meant to cross compile, use \`--host'.
3512 See \`config.log' for more details" "$LINENO" 5; }
3513 fi
3514 fi
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517 $as_echo "$cross_compiling" >&6; }
3518
3519 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520 ac_clean_files=$ac_clean_files_save
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522 $as_echo_n "checking for suffix of object files... " >&6; }
3523 if ${ac_cv_objext+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.o conftest.obj
3538 if { { ac_try="$ac_compile"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compile") 2>&5
3546 ac_status=$?
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; then :
3549 for ac_file in conftest.o conftest.obj conftest.*; do
3550 test -f "$ac_file" || continue;
3551 case $ac_file in
3552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554 break;;
3555 esac
3556 done
3557 else
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error $? "cannot compute suffix of object files: cannot compile
3564 See \`config.log' for more details" "$LINENO" 5; }
3565 fi
3566 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569 $as_echo "$ac_cv_objext" >&6; }
3570 OBJEXT=$ac_cv_objext
3571 ac_objext=$OBJEXT
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574 if ${ac_cv_c_compiler_gnu+:} false; then :
3575 $as_echo_n "(cached) " >&6
3576 else
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583 #ifndef __GNUC__
3584 choke me
3585 #endif
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_compiler_gnu=yes
3593 else
3594 ac_compiler_gnu=no
3595 fi
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602 if test $ac_compiler_gnu = yes; then
3603 GCC=yes
3604 else
3605 GCC=
3606 fi
3607 ac_test_CFLAGS=${CFLAGS+set}
3608 ac_save_CFLAGS=$CFLAGS
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3611 if ${ac_cv_prog_cc_g+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 ac_save_c_werror_flag=$ac_c_werror_flag
3615 ac_c_werror_flag=yes
3616 ac_cv_prog_cc_g=no
3617 CFLAGS="-g"
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620
3621 int
3622 main ()
3623 {
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_g=yes
3631 else
3632 CFLAGS=""
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645
3646 else
3647 ac_c_werror_flag=$ac_save_c_werror_flag
3648 CFLAGS="-g"
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3651
3652 int
3653 main ()
3654 {
3655
3656 ;
3657 return 0;
3658 }
3659 _ACEOF
3660 if ac_fn_c_try_compile "$LINENO"; then :
3661 ac_cv_prog_cc_g=yes
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 fi
3667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 ac_c_werror_flag=$ac_save_c_werror_flag
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671 $as_echo "$ac_cv_prog_cc_g" >&6; }
3672 if test "$ac_test_CFLAGS" = set; then
3673 CFLAGS=$ac_save_CFLAGS
3674 elif test $ac_cv_prog_cc_g = yes; then
3675 if test "$GCC" = yes; then
3676 CFLAGS="-g -O2"
3677 else
3678 CFLAGS="-g"
3679 fi
3680 else
3681 if test "$GCC" = yes; then
3682 CFLAGS="-O2"
3683 else
3684 CFLAGS=
3685 fi
3686 fi
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689 if ${ac_cv_prog_cc_c89+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 ac_cv_prog_cc_c89=no
3693 ac_save_CC=$CC
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h. */
3696 #include <stdarg.h>
3697 #include <stdio.h>
3698 struct stat;
3699 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3700 struct buf { int x; };
3701 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702 static char *e (p, i)
3703 char **p;
3704 int i;
3705 {
3706 return p[i];
3707 }
3708 static char *f (char * (*g) (char **, int), char **p, ...)
3709 {
3710 char *s;
3711 va_list v;
3712 va_start (v,p);
3713 s = g (p, va_arg (v,int));
3714 va_end (v);
3715 return s;
3716 }
3717
3718 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3719 function prototypes and stuff, but not '\xHH' hex character constants.
3720 These don't provoke an error unfortunately, instead are silently treated
3721 as 'x'. The following induces an error, until -std is added to get
3722 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3723 array size at least. It's necessary to write '\x00'==0 to get something
3724 that's true only with -std. */
3725 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728 inside strings and character constants. */
3729 #define FOO(x) 'x'
3730 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732 int test (int i, double x);
3733 struct s1 {int (*f) (int a);};
3734 struct s2 {int (*f) (double a);};
3735 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736 int argc;
3737 char **argv;
3738 int
3739 main ()
3740 {
3741 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742 ;
3743 return 0;
3744 }
3745 _ACEOF
3746 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748 do
3749 CC="$ac_save_CC $ac_arg"
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_cv_prog_cc_c89=$ac_arg
3752 fi
3753 rm -f core conftest.err conftest.$ac_objext
3754 test "x$ac_cv_prog_cc_c89" != "xno" && break
3755 done
3756 rm -f conftest.$ac_ext
3757 CC=$ac_save_CC
3758
3759 fi
3760 # AC_CACHE_VAL
3761 case "x$ac_cv_prog_cc_c89" in
3762 x)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764 $as_echo "none needed" >&6; } ;;
3765 xno)
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767 $as_echo "unsupported" >&6; } ;;
3768 *)
3769 CC="$CC $ac_cv_prog_cc_c89"
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772 esac
3773 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774
3775 fi
3776
3777 ac_ext=c
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783 ac_ext=c
3784 ac_cpp='$CPP $CPPFLAGS'
3785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3789 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3790 if ${am_cv_prog_cc_c_o+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799
3800 ;
3801 return 0;
3802 }
3803 _ACEOF
3804 # Make sure it works both with $CC and with simple cc.
3805 # Following AC_PROG_CC_C_O, we do the test twice because some
3806 # compilers refuse to overwrite an existing .o file with -o,
3807 # though they will create one.
3808 am_cv_prog_cc_c_o=yes
3809 for am_i in 1 2; do
3810 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3811 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } \
3815 && test -f conftest2.$ac_objext; then
3816 : OK
3817 else
3818 am_cv_prog_cc_c_o=no
3819 break
3820 fi
3821 done
3822 rm -f core conftest*
3823 unset am_i
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3826 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3827 if test "$am_cv_prog_cc_c_o" != yes; then
3828 # Losing compiler, so override with the script.
3829 # FIXME: It is wrong to rewrite CC.
3830 # But if we don't then we get into trouble of one sort or another.
3831 # A longer-term fix would be to have automake use am__CC in this case,
3832 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3833 CC="$am_aux_dir/compile $CC"
3834 fi
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841
3842 depcc="$CC" am_compiler_list=
3843
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3845 $as_echo_n "checking dependency style of $depcc... " >&6; }
3846 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3850 # We make a subdir and do the tests there. Otherwise we can end up
3851 # making bogus files that we don't know about and never remove. For
3852 # instance it was reported that on HP-UX the gcc test will end up
3853 # making a dummy file named 'D' -- because '-MD' means "put the output
3854 # in D".
3855 rm -rf conftest.dir
3856 mkdir conftest.dir
3857 # Copy depcomp to subdir because otherwise we won't find it if we're
3858 # using a relative directory.
3859 cp "$am_depcomp" conftest.dir
3860 cd conftest.dir
3861 # We will build objects and dependencies in a subdirectory because
3862 # it helps to detect inapplicable dependency modes. For instance
3863 # both Tru64's cc and ICC support -MD to output dependencies as a
3864 # side effect of compilation, but ICC will put the dependencies in
3865 # the current directory while Tru64 will put them in the object
3866 # directory.
3867 mkdir sub
3868
3869 am_cv_CC_dependencies_compiler_type=none
3870 if test "$am_compiler_list" = ""; then
3871 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3872 fi
3873 am__universal=false
3874 case " $depcc " in #(
3875 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3876 esac
3877
3878 for depmode in $am_compiler_list; do
3879 # Setup a source with many dependencies, because some compilers
3880 # like to wrap large dependency lists on column 80 (with \), and
3881 # we should not choose a depcomp mode which is confused by this.
3882 #
3883 # We need to recreate these files for each test, as the compiler may
3884 # overwrite some of them when testing with obscure command lines.
3885 # This happens at least with the AIX C compiler.
3886 : > sub/conftest.c
3887 for i in 1 2 3 4 5 6; do
3888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3889 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3890 # Solaris 10 /bin/sh.
3891 echo '/* dummy */' > sub/conftst$i.h
3892 done
3893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3894
3895 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3896 # mode. It turns out that the SunPro C++ compiler does not properly
3897 # handle '-M -o', and we need to detect this. Also, some Intel
3898 # versions had trouble with output in subdirs.
3899 am__obj=sub/conftest.${OBJEXT-o}
3900 am__minus_obj="-o $am__obj"
3901 case $depmode in
3902 gcc)
3903 # This depmode causes a compiler race in universal mode.
3904 test "$am__universal" = false || continue
3905 ;;
3906 nosideeffect)
3907 # After this tag, mechanisms are not by side-effect, so they'll
3908 # only be used when explicitly requested.
3909 if test "x$enable_dependency_tracking" = xyes; then
3910 continue
3911 else
3912 break
3913 fi
3914 ;;
3915 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3916 # This compiler won't grok '-c -o', but also, the minuso test has
3917 # not run yet. These depmodes are late enough in the game, and
3918 # so weak that their functioning should not be impacted.
3919 am__obj=conftest.${OBJEXT-o}
3920 am__minus_obj=
3921 ;;
3922 none) break ;;
3923 esac
3924 if depmode=$depmode \
3925 source=sub/conftest.c object=$am__obj \
3926 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3927 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3928 >/dev/null 2>conftest.err &&
3929 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3930 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3931 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3932 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3933 # icc doesn't choke on unknown options, it will just issue warnings
3934 # or remarks (even with -Werror). So we grep stderr for any message
3935 # that says an option was ignored or not supported.
3936 # When given -MP, icc 7.0 and 7.1 complain thusly:
3937 # icc: Command line warning: ignoring option '-M'; no argument required
3938 # The diagnosis changed in icc 8.0:
3939 # icc: Command line remark: option '-MP' not supported
3940 if (grep 'ignoring option' conftest.err ||
3941 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3942 am_cv_CC_dependencies_compiler_type=$depmode
3943 break
3944 fi
3945 fi
3946 done
3947
3948 cd ..
3949 rm -rf conftest.dir
3950 else
3951 am_cv_CC_dependencies_compiler_type=none
3952 fi
3953
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3956 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3957 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3958
3959 if
3960 test "x$enable_dependency_tracking" != xno \
3961 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3962 am__fastdepCC_TRUE=
3963 am__fastdepCC_FALSE='#'
3964 else
3965 am__fastdepCC_TRUE='#'
3966 am__fastdepCC_FALSE=
3967 fi
3968
3969
3970
3971 if test -n "$ac_tool_prefix"; then
3972 for ac_prog in ar lib "link -lib"
3973 do
3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if ${ac_cv_prog_AR+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -n "$AR"; then
3982 ac_cv_prog_AR="$AR" # Let the user override the test.
3983 else
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3991 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 fi
4000 fi
4001 AR=$ac_cv_prog_AR
4002 if test -n "$AR"; then
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4004 $as_echo "$AR" >&6; }
4005 else
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007 $as_echo "no" >&6; }
4008 fi
4009
4010
4011 test -n "$AR" && break
4012 done
4013 fi
4014 if test -z "$AR"; then
4015 ac_ct_AR=$AR
4016 for ac_prog in ar lib "link -lib"
4017 do
4018 # Extract the first word of "$ac_prog", so it can be a program name with args.
4019 set dummy $ac_prog; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$ac_ct_AR"; then
4026 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_AR="$ac_prog"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4046 if test -n "$ac_ct_AR"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4048 $as_echo "$ac_ct_AR" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 fi
4053
4054
4055 test -n "$ac_ct_AR" && break
4056 done
4057
4058 if test "x$ac_ct_AR" = x; then
4059 AR="false"
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067 AR=$ac_ct_AR
4068 fi
4069 fi
4070
4071 : ${AR=ar}
4072
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4074 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4075 if ${am_cv_ar_interface+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084 am_cv_ar_interface=ar
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086 /* end confdefs.h. */
4087 int some_variable = 0;
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4092 (eval $am_ar_try) 2>&5
4093 ac_status=$?
4094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095 test $ac_status = 0; }
4096 if test "$ac_status" -eq 0; then
4097 am_cv_ar_interface=ar
4098 else
4099 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4101 (eval $am_ar_try) 2>&5
4102 ac_status=$?
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4105 if test "$ac_status" -eq 0; then
4106 am_cv_ar_interface=lib
4107 else
4108 am_cv_ar_interface=unknown
4109 fi
4110 fi
4111 rm -f conftest.lib libconftest.a
4112
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121 fi
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4123 $as_echo "$am_cv_ar_interface" >&6; }
4124
4125 case $am_cv_ar_interface in
4126 ar)
4127 ;;
4128 lib)
4129 # Microsoft lib, so override with the ar-lib wrapper script.
4130 # FIXME: It is wrong to rewrite AR.
4131 # But if we don't then we get into trouble of one sort or another.
4132 # A longer-term fix would be to have automake use am__AR in this case,
4133 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4134 # similar.
4135 AR="$am_aux_dir/ar-lib $AR"
4136 ;;
4137 unknown)
4138 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4139 ;;
4140 esac
4141
4142
4143 # Check whether --enable-silent-rules was given.
4144 if test "${enable_silent_rules+set}" = set; then :
4145 enableval=$enable_silent_rules;
4146 fi
4147
4148 case $enable_silent_rules in # (((
4149 yes) AM_DEFAULT_VERBOSITY=0;;
4150 no) AM_DEFAULT_VERBOSITY=1;;
4151 *) AM_DEFAULT_VERBOSITY=0;;
4152 esac
4153 am_make=${MAKE-make}
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4155 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4156 if ${am_cv_make_support_nested_variables+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if $as_echo 'TRUE=$(BAR$(V))
4160 BAR0=false
4161 BAR1=true
4162 V=1
4163 am__doit:
4164 @$(TRUE)
4165 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4166 am_cv_make_support_nested_variables=yes
4167 else
4168 am_cv_make_support_nested_variables=no
4169 fi
4170 fi
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4172 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4173 if test $am_cv_make_support_nested_variables = yes; then
4174 AM_V='$(V)'
4175 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4176 else
4177 AM_V=$AM_DEFAULT_VERBOSITY
4178 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4179 fi
4180 AM_BACKSLASH='\'
4181
4182
4183 ac_ext=c
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4209 fi
4210 done
4211 done
4212 IFS=$as_save_IFS
4213
4214 fi
4215 fi
4216 CC=$ac_cv_prog_CC
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4223 fi
4224
4225
4226 fi
4227 if test -z "$ac_cv_prog_CC"; then
4228 ac_ct_CC=$CC
4229 # Extract the first word of "gcc", so it can be a program name with args.
4230 set dummy gcc; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$ac_ct_CC"; then
4237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_ac_ct_CC="gcc"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250 done
4251 done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4257 if test -n "$ac_ct_CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4259 $as_echo "$ac_ct_CC" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265 if test "x$ac_ct_CC" = x; then
4266 CC=""
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CC=$ac_ct_CC
4275 fi
4276 else
4277 CC="$ac_cv_prog_CC"
4278 fi
4279
4280 if test -z "$CC"; then
4281 if test -n "$ac_tool_prefix"; then
4282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4283 set dummy ${ac_tool_prefix}cc; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if ${ac_cv_prog_CC+:} false; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$CC"; then
4290 ac_cv_prog_CC="$CC" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_CC="${ac_tool_prefix}cc"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 CC=$ac_cv_prog_CC
4310 if test -n "$CC"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4312 $as_echo "$CC" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319 fi
4320 fi
4321 if test -z "$CC"; then
4322 # Extract the first word of "cc", so it can be a program name with args.
4323 set dummy cc; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_CC+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332 ac_prog_rejected=no
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336 IFS=$as_save_IFS
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4341 ac_prog_rejected=yes
4342 continue
4343 fi
4344 ac_cv_prog_CC="cc"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 if test $ac_prog_rejected = yes; then
4353 # We found a bogon in the path, so make sure we never use it.
4354 set dummy $ac_cv_prog_CC
4355 shift
4356 if test $# != 0; then
4357 # We chose a different compiler from the bogus one.
4358 # However, it has the same basename, so the bogon will be chosen
4359 # first if we set CC to just the basename; use the full file name.
4360 shift
4361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4362 fi
4363 fi
4364 fi
4365 fi
4366 CC=$ac_cv_prog_CC
4367 if test -n "$CC"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4369 $as_echo "$CC" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 fi
4377 if test -z "$CC"; then
4378 if test -n "$ac_tool_prefix"; then
4379 for ac_prog in cl.exe
4380 do
4381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_prog_CC+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4401 fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406 fi
4407 fi
4408 CC=$ac_cv_prog_CC
4409 if test -n "$CC"; then
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4411 $as_echo "$CC" >&6; }
4412 else
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414 $as_echo "no" >&6; }
4415 fi
4416
4417
4418 test -n "$CC" && break
4419 done
4420 fi
4421 if test -z "$CC"; then
4422 ac_ct_CC=$CC
4423 for ac_prog in cl.exe
4424 do
4425 # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$ac_ct_CC"; then
4433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442 ac_cv_prog_ac_ct_CC="$ac_prog"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4453 if test -n "$ac_ct_CC"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4455 $as_echo "$ac_ct_CC" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 test -n "$ac_ct_CC" && break
4463 done
4464
4465 if test "x$ac_ct_CC" = x; then
4466 CC=""
4467 else
4468 case $cross_compiling:$ac_tool_warned in
4469 yes:)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4472 ac_tool_warned=yes ;;
4473 esac
4474 CC=$ac_ct_CC
4475 fi
4476 fi
4477
4478 fi
4479
4480
4481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error $? "no acceptable C compiler found in \$PATH
4484 See \`config.log' for more details" "$LINENO" 5; }
4485
4486 # Provide some information about the compiler.
4487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4488 set X $ac_compile
4489 ac_compiler=$2
4490 for ac_option in --version -v -V -qversion; do
4491 { { ac_try="$ac_compiler $ac_option >&5"
4492 case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499 ac_status=$?
4500 if test -s conftest.err; then
4501 sed '10a\
4502 ... rest of stderr output deleted ...
4503 10q' conftest.err >conftest.er1
4504 cat conftest.er1 >&5
4505 fi
4506 rm -f conftest.er1 conftest.err
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509 done
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4513 if ${ac_cv_c_compiler_gnu+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518
4519 int
4520 main ()
4521 {
4522 #ifndef __GNUC__
4523 choke me
4524 #endif
4525
4526 ;
4527 return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_compiler_gnu=yes
4532 else
4533 ac_compiler_gnu=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4541 if test $ac_compiler_gnu = yes; then
4542 GCC=yes
4543 else
4544 GCC=
4545 fi
4546 ac_test_CFLAGS=${CFLAGS+set}
4547 ac_save_CFLAGS=$CFLAGS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4550 if ${ac_cv_prog_cc_g+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 ac_save_c_werror_flag=$ac_c_werror_flag
4554 ac_c_werror_flag=yes
4555 ac_cv_prog_cc_g=no
4556 CFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559
4560 int
4561 main ()
4562 {
4563
4564 ;
4565 return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_g=yes
4570 else
4571 CFLAGS=""
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 int
4576 main ()
4577 {
4578
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584
4585 else
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4587 CFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590
4591 int
4592 main ()
4593 {
4594
4595 ;
4596 return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_prog_cc_g=yes
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4610 $as_echo "$ac_cv_prog_cc_g" >&6; }
4611 if test "$ac_test_CFLAGS" = set; then
4612 CFLAGS=$ac_save_CFLAGS
4613 elif test $ac_cv_prog_cc_g = yes; then
4614 if test "$GCC" = yes; then
4615 CFLAGS="-g -O2"
4616 else
4617 CFLAGS="-g"
4618 fi
4619 else
4620 if test "$GCC" = yes; then
4621 CFLAGS="-O2"
4622 else
4623 CFLAGS=
4624 fi
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4628 if ${ac_cv_prog_cc_c89+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 ac_cv_prog_cc_c89=no
4632 ac_save_CC=$CC
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4635 #include <stdarg.h>
4636 #include <stdio.h>
4637 struct stat;
4638 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4639 struct buf { int x; };
4640 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4641 static char *e (p, i)
4642 char **p;
4643 int i;
4644 {
4645 return p[i];
4646 }
4647 static char *f (char * (*g) (char **, int), char **p, ...)
4648 {
4649 char *s;
4650 va_list v;
4651 va_start (v,p);
4652 s = g (p, va_arg (v,int));
4653 va_end (v);
4654 return s;
4655 }
4656
4657 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4658 function prototypes and stuff, but not '\xHH' hex character constants.
4659 These don't provoke an error unfortunately, instead are silently treated
4660 as 'x'. The following induces an error, until -std is added to get
4661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4662 array size at least. It's necessary to write '\x00'==0 to get something
4663 that's true only with -std. */
4664 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4665
4666 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4667 inside strings and character constants. */
4668 #define FOO(x) 'x'
4669 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4670
4671 int test (int i, double x);
4672 struct s1 {int (*f) (int a);};
4673 struct s2 {int (*f) (double a);};
4674 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4675 int argc;
4676 char **argv;
4677 int
4678 main ()
4679 {
4680 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4687 do
4688 CC="$ac_save_CC $ac_arg"
4689 if ac_fn_c_try_compile "$LINENO"; then :
4690 ac_cv_prog_cc_c89=$ac_arg
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext
4693 test "x$ac_cv_prog_cc_c89" != "xno" && break
4694 done
4695 rm -f conftest.$ac_ext
4696 CC=$ac_save_CC
4697
4698 fi
4699 # AC_CACHE_VAL
4700 case "x$ac_cv_prog_cc_c89" in
4701 x)
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4703 $as_echo "none needed" >&6; } ;;
4704 xno)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4706 $as_echo "unsupported" >&6; } ;;
4707 *)
4708 CC="$CC $ac_cv_prog_cc_c89"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4710 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4711 esac
4712 if test "x$ac_cv_prog_cc_c89" != xno; then :
4713
4714 fi
4715
4716 ac_ext=c
4717 ac_cpp='$CPP $CPPFLAGS'
4718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4721
4722 ac_ext=c
4723 ac_cpp='$CPP $CPPFLAGS'
4724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4728 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4729 if ${am_cv_prog_cc_c_o+:} false; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734
4735 int
4736 main ()
4737 {
4738
4739 ;
4740 return 0;
4741 }
4742 _ACEOF
4743 # Make sure it works both with $CC and with simple cc.
4744 # Following AC_PROG_CC_C_O, we do the test twice because some
4745 # compilers refuse to overwrite an existing .o file with -o,
4746 # though they will create one.
4747 am_cv_prog_cc_c_o=yes
4748 for am_i in 1 2; do
4749 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4750 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } \
4754 && test -f conftest2.$ac_objext; then
4755 : OK
4756 else
4757 am_cv_prog_cc_c_o=no
4758 break
4759 fi
4760 done
4761 rm -f core conftest*
4762 unset am_i
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4765 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4766 if test "$am_cv_prog_cc_c_o" != yes; then
4767 # Losing compiler, so override with the script.
4768 # FIXME: It is wrong to rewrite CC.
4769 # But if we don't then we get into trouble of one sort or another.
4770 # A longer-term fix would be to have automake use am__CC in this case,
4771 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4772 CC="$am_aux_dir/compile $CC"
4773 fi
4774 ac_ext=c
4775 ac_cpp='$CPP $CPPFLAGS'
4776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4779
4780
4781 depcc="$CC" am_compiler_list=
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4784 $as_echo_n "checking dependency style of $depcc... " >&6; }
4785 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4789 # We make a subdir and do the tests there. Otherwise we can end up
4790 # making bogus files that we don't know about and never remove. For
4791 # instance it was reported that on HP-UX the gcc test will end up
4792 # making a dummy file named 'D' -- because '-MD' means "put the output
4793 # in D".
4794 rm -rf conftest.dir
4795 mkdir conftest.dir
4796 # Copy depcomp to subdir because otherwise we won't find it if we're
4797 # using a relative directory.
4798 cp "$am_depcomp" conftest.dir
4799 cd conftest.dir
4800 # We will build objects and dependencies in a subdirectory because
4801 # it helps to detect inapplicable dependency modes. For instance
4802 # both Tru64's cc and ICC support -MD to output dependencies as a
4803 # side effect of compilation, but ICC will put the dependencies in
4804 # the current directory while Tru64 will put them in the object
4805 # directory.
4806 mkdir sub
4807
4808 am_cv_CC_dependencies_compiler_type=none
4809 if test "$am_compiler_list" = ""; then
4810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4811 fi
4812 am__universal=false
4813 case " $depcc " in #(
4814 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4815 esac
4816
4817 for depmode in $am_compiler_list; do
4818 # Setup a source with many dependencies, because some compilers
4819 # like to wrap large dependency lists on column 80 (with \), and
4820 # we should not choose a depcomp mode which is confused by this.
4821 #
4822 # We need to recreate these files for each test, as the compiler may
4823 # overwrite some of them when testing with obscure command lines.
4824 # This happens at least with the AIX C compiler.
4825 : > sub/conftest.c
4826 for i in 1 2 3 4 5 6; do
4827 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4828 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4829 # Solaris 10 /bin/sh.
4830 echo '/* dummy */' > sub/conftst$i.h
4831 done
4832 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4833
4834 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4835 # mode. It turns out that the SunPro C++ compiler does not properly
4836 # handle '-M -o', and we need to detect this. Also, some Intel
4837 # versions had trouble with output in subdirs.
4838 am__obj=sub/conftest.${OBJEXT-o}
4839 am__minus_obj="-o $am__obj"
4840 case $depmode in
4841 gcc)
4842 # This depmode causes a compiler race in universal mode.
4843 test "$am__universal" = false || continue
4844 ;;
4845 nosideeffect)
4846 # After this tag, mechanisms are not by side-effect, so they'll
4847 # only be used when explicitly requested.
4848 if test "x$enable_dependency_tracking" = xyes; then
4849 continue
4850 else
4851 break
4852 fi
4853 ;;
4854 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4855 # This compiler won't grok '-c -o', but also, the minuso test has
4856 # not run yet. These depmodes are late enough in the game, and
4857 # so weak that their functioning should not be impacted.
4858 am__obj=conftest.${OBJEXT-o}
4859 am__minus_obj=
4860 ;;
4861 none) break ;;
4862 esac
4863 if depmode=$depmode \
4864 source=sub/conftest.c object=$am__obj \
4865 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4866 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4867 >/dev/null 2>conftest.err &&
4868 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4869 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4870 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4871 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4872 # icc doesn't choke on unknown options, it will just issue warnings
4873 # or remarks (even with -Werror). So we grep stderr for any message
4874 # that says an option was ignored or not supported.
4875 # When given -MP, icc 7.0 and 7.1 complain thusly:
4876 # icc: Command line warning: ignoring option '-M'; no argument required
4877 # The diagnosis changed in icc 8.0:
4878 # icc: Command line remark: option '-MP' not supported
4879 if (grep 'ignoring option' conftest.err ||
4880 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4881 am_cv_CC_dependencies_compiler_type=$depmode
4882 break
4883 fi
4884 fi
4885 done
4886
4887 cd ..
4888 rm -rf conftest.dir
4889 else
4890 am_cv_CC_dependencies_compiler_type=none
4891 fi
4892
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4895 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4896 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4897
4898 if
4899 test "x$enable_dependency_tracking" != xno \
4900 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4901 am__fastdepCC_TRUE=
4902 am__fastdepCC_FALSE='#'
4903 else
4904 am__fastdepCC_TRUE='#'
4905 am__fastdepCC_FALSE=
4906 fi
4907
4908
4909
4910 # Check whether --enable-static was given.
4911 if test "${enable_static+set}" = set; then :
4912 enableval=$enable_static; p=${PACKAGE-default}
4913 case $enableval in
4914 yes) enable_static=yes ;;
4915 no) enable_static=no ;;
4916 *)
4917 enable_static=no
4918 # Look at the argument we got. We use all the common list separators.
4919 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4920 for pkg in $enableval; do
4921 IFS=$lt_save_ifs
4922 if test "X$pkg" = "X$p"; then
4923 enable_static=yes
4924 fi
4925 done
4926 IFS=$lt_save_ifs
4927 ;;
4928 esac
4929 else
4930 enable_static=no
4931 fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 case `pwd` in
4942 *\ * | *\ *)
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4944 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4945 esac
4946
4947
4948
4949 macro_version='2.4.6'
4950 macro_revision='2.4.6'
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 ltmain=$ac_aux_dir/ltmain.sh
4965
4966 # Backslashify metacharacters that are still active within
4967 # double-quoted strings.
4968 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4969
4970 # Same as above, but do not quote variable references.
4971 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4972
4973 # Sed substitution to delay expansion of an escaped shell variable in a
4974 # double_quote_subst'ed string.
4975 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4976
4977 # Sed substitution to delay expansion of an escaped single quote.
4978 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4979
4980 # Sed substitution to avoid accidental globbing in evaled expressions
4981 no_glob_subst='s/\*/\\\*/g'
4982
4983 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4984 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4986
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4988 $as_echo_n "checking how to print strings... " >&6; }
4989 # Test print first, because it will be a builtin if present.
4990 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4991 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4992 ECHO='print -r --'
4993 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4994 ECHO='printf %s\n'
4995 else
4996 # Use this function as a fallback that always works.
4997 func_fallback_echo ()
4998 {
4999 eval 'cat <<_LTECHO_EOF
5000 $1
5001 _LTECHO_EOF'
5002 }
5003 ECHO='func_fallback_echo'
5004 fi
5005
5006 # func_echo_all arg...
5007 # Invoke $ECHO with all args, space-separated.
5008 func_echo_all ()
5009 {
5010 $ECHO ""
5011 }
5012
5013 case $ECHO in
5014 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5015 $as_echo "printf" >&6; } ;;
5016 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5017 $as_echo "print -r" >&6; } ;;
5018 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5019 $as_echo "cat" >&6; } ;;
5020 esac
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037 if ${ac_cv_path_SED+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5041 for ac_i in 1 2 3 4 5 6 7; do
5042 ac_script="$ac_script$as_nl$ac_script"
5043 done
5044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5045 { ac_script=; unset ac_script;}
5046 if test -z "$SED"; then
5047 ac_path_SED_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in sed gsed; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5057 as_fn_executable_p "$ac_path_SED" || continue
5058 # Check for GNU ac_path_SED and select it if it is found.
5059 # Check for GNU $ac_path_SED
5060 case `"$ac_path_SED" --version 2>&1` in
5061 *GNU*)
5062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5063 *)
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5067 do
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo '' >> "conftest.nl"
5072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 as_fn_arith $ac_count + 1 && ac_count=$as_val
5075 if test $ac_count -gt ${ac_path_SED_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_SED="$ac_path_SED"
5078 ac_path_SED_max=$ac_count
5079 fi
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084 esac
5085
5086 $ac_path_SED_found && break 3
5087 done
5088 done
5089 done
5090 IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_SED"; then
5092 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5093 fi
5094 else
5095 ac_cv_path_SED=$SED
5096 fi
5097
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5100 $as_echo "$ac_cv_path_SED" >&6; }
5101 SED="$ac_cv_path_SED"
5102 rm -f conftest.sed
5103
5104 test -z "$SED" && SED=sed
5105 Xsed="$SED -e 1s/^X//"
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5118 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5119 if ${ac_cv_path_GREP+:} false; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if test -z "$GREP"; then
5123 ac_path_GREP_found=false
5124 # Loop through the user's path and test for each of PROGNAME-LIST
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5127 do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_prog in grep ggrep; do
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5133 as_fn_executable_p "$ac_path_GREP" || continue
5134 # Check for GNU ac_path_GREP and select it if it is found.
5135 # Check for GNU $ac_path_GREP
5136 case `"$ac_path_GREP" --version 2>&1` in
5137 *GNU*)
5138 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5139 *)
5140 ac_count=0
5141 $as_echo_n 0123456789 >"conftest.in"
5142 while :
5143 do
5144 cat "conftest.in" "conftest.in" >"conftest.tmp"
5145 mv "conftest.tmp" "conftest.in"
5146 cp "conftest.in" "conftest.nl"
5147 $as_echo 'GREP' >> "conftest.nl"
5148 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5150 as_fn_arith $ac_count + 1 && ac_count=$as_val
5151 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5152 # Best one so far, save it but keep looking for a better one
5153 ac_cv_path_GREP="$ac_path_GREP"
5154 ac_path_GREP_max=$ac_count
5155 fi
5156 # 10*(2^10) chars as input seems more than enough
5157 test $ac_count -gt 10 && break
5158 done
5159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5160 esac
5161
5162 $ac_path_GREP_found && break 3
5163 done
5164 done
5165 done
5166 IFS=$as_save_IFS
5167 if test -z "$ac_cv_path_GREP"; then
5168 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169 fi
5170 else
5171 ac_cv_path_GREP=$GREP
5172 fi
5173
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5176 $as_echo "$ac_cv_path_GREP" >&6; }
5177 GREP="$ac_cv_path_GREP"
5178
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5181 $as_echo_n "checking for egrep... " >&6; }
5182 if ${ac_cv_path_EGREP+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5186 then ac_cv_path_EGREP="$GREP -E"
5187 else
5188 if test -z "$EGREP"; then
5189 ac_path_EGREP_found=false
5190 # Loop through the user's path and test for each of PROGNAME-LIST
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5193 do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_prog in egrep; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5199 as_fn_executable_p "$ac_path_EGREP" || continue
5200 # Check for GNU ac_path_EGREP and select it if it is found.
5201 # Check for GNU $ac_path_EGREP
5202 case `"$ac_path_EGREP" --version 2>&1` in
5203 *GNU*)
5204 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5205 *)
5206 ac_count=0
5207 $as_echo_n 0123456789 >"conftest.in"
5208 while :
5209 do
5210 cat "conftest.in" "conftest.in" >"conftest.tmp"
5211 mv "conftest.tmp" "conftest.in"
5212 cp "conftest.in" "conftest.nl"
5213 $as_echo 'EGREP' >> "conftest.nl"
5214 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5216 as_fn_arith $ac_count + 1 && ac_count=$as_val
5217 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5218 # Best one so far, save it but keep looking for a better one
5219 ac_cv_path_EGREP="$ac_path_EGREP"
5220 ac_path_EGREP_max=$ac_count
5221 fi
5222 # 10*(2^10) chars as input seems more than enough
5223 test $ac_count -gt 10 && break
5224 done
5225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226 esac
5227
5228 $ac_path_EGREP_found && break 3
5229 done
5230 done
5231 done
5232 IFS=$as_save_IFS
5233 if test -z "$ac_cv_path_EGREP"; then
5234 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5235 fi
5236 else
5237 ac_cv_path_EGREP=$EGREP
5238 fi
5239
5240 fi
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5243 $as_echo "$ac_cv_path_EGREP" >&6; }
5244 EGREP="$ac_cv_path_EGREP"
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5248 $as_echo_n "checking for fgrep... " >&6; }
5249 if ${ac_cv_path_FGREP+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5253 then ac_cv_path_FGREP="$GREP -F"
5254 else
5255 if test -z "$FGREP"; then
5256 ac_path_FGREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in fgrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5266 as_fn_executable_p "$ac_path_FGREP" || continue
5267 # Check for GNU ac_path_FGREP and select it if it is found.
5268 # Check for GNU $ac_path_FGREP
5269 case `"$ac_path_FGREP" --version 2>&1` in
5270 *GNU*)
5271 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5272 *)
5273 ac_count=0
5274 $as_echo_n 0123456789 >"conftest.in"
5275 while :
5276 do
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'FGREP' >> "conftest.nl"
5281 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 as_fn_arith $ac_count + 1 && ac_count=$as_val
5284 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_FGREP="$ac_path_FGREP"
5287 ac_path_FGREP_max=$ac_count
5288 fi
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5291 done
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293 esac
5294
5295 $ac_path_FGREP_found && break 3
5296 done
5297 done
5298 done
5299 IFS=$as_save_IFS
5300 if test -z "$ac_cv_path_FGREP"; then
5301 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5302 fi
5303 else
5304 ac_cv_path_FGREP=$FGREP
5305 fi
5306
5307 fi
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5310 $as_echo "$ac_cv_path_FGREP" >&6; }
5311 FGREP="$ac_cv_path_FGREP"
5312
5313
5314 test -z "$GREP" && GREP=grep
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334 # Check whether --with-gnu-ld was given.
5335 if test "${with_gnu_ld+set}" = set; then :
5336 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5337 else
5338 with_gnu_ld=no
5339 fi
5340
5341 ac_prog=ld
5342 if test yes = "$GCC"; then
5343 # Check if gcc -print-prog-name=ld gives a path.
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5345 $as_echo_n "checking for ld used by $CC... " >&6; }
5346 case $host in
5347 *-*-mingw*)
5348 # gcc leaves a trailing carriage return, which upsets mingw
5349 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5350 *)
5351 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5352 esac
5353 case $ac_prog in
5354 # Accept absolute paths.
5355 [\\/]* | ?:[\\/]*)
5356 re_direlt='/[^/][^/]*/\.\./'
5357 # Canonicalize the pathname of ld
5358 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5359 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5360 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5361 done
5362 test -z "$LD" && LD=$ac_prog
5363 ;;
5364 "")
5365 # If it fails, then pretend we aren't using GCC.
5366 ac_prog=ld
5367 ;;
5368 *)
5369 # If it is relative, then search for the first ld in PATH.
5370 with_gnu_ld=unknown
5371 ;;
5372 esac
5373 elif test yes = "$with_gnu_ld"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5375 $as_echo_n "checking for GNU ld... " >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5378 $as_echo_n "checking for non-GNU ld... " >&6; }
5379 fi
5380 if ${lt_cv_path_LD+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -z "$LD"; then
5384 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5385 for ac_dir in $PATH; do
5386 IFS=$lt_save_ifs
5387 test -z "$ac_dir" && ac_dir=.
5388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5389 lt_cv_path_LD=$ac_dir/$ac_prog
5390 # Check to see if the program is GNU ld. I'd rather use --version,
5391 # but apparently some variants of GNU ld only accept -v.
5392 # Break only if it was the GNU/non-GNU ld that we prefer.
5393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5394 *GNU* | *'with BFD'*)
5395 test no != "$with_gnu_ld" && break
5396 ;;
5397 *)
5398 test yes != "$with_gnu_ld" && break
5399 ;;
5400 esac
5401 fi
5402 done
5403 IFS=$lt_save_ifs
5404 else
5405 lt_cv_path_LD=$LD # Let the user override the test with a path.
5406 fi
5407 fi
5408
5409 LD=$lt_cv_path_LD
5410 if test -n "$LD"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5412 $as_echo "$LD" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5420 if ${lt_cv_prog_gnu_ld+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5424 case `$LD -v 2>&1 </dev/null` in
5425 *GNU* | *'with BFD'*)
5426 lt_cv_prog_gnu_ld=yes
5427 ;;
5428 *)
5429 lt_cv_prog_gnu_ld=no
5430 ;;
5431 esac
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5435 with_gnu_ld=$lt_cv_prog_gnu_ld
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5446 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5447 if ${lt_cv_path_NM+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if test -n "$NM"; then
5451 # Let the user override the test.
5452 lt_cv_path_NM=$NM
5453 else
5454 lt_nm_to_check=${ac_tool_prefix}nm
5455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5456 lt_nm_to_check="$lt_nm_to_check nm"
5457 fi
5458 for lt_tmp_nm in $lt_nm_to_check; do
5459 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5460 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5461 IFS=$lt_save_ifs
5462 test -z "$ac_dir" && ac_dir=.
5463 tmp_nm=$ac_dir/$lt_tmp_nm
5464 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5465 # Check to see if the nm accepts a BSD-compat flag.
5466 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5467 # nm: unknown option "B" ignored
5468 # Tru64's nm complains that /dev/null is an invalid object file
5469 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5470 case $build_os in
5471 mingw*) lt_bad_file=conftest.nm/nofile ;;
5472 *) lt_bad_file=/dev/null ;;
5473 esac
5474 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5475 *$lt_bad_file* | *'Invalid file or object type'*)
5476 lt_cv_path_NM="$tmp_nm -B"
5477 break 2
5478 ;;
5479 *)
5480 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5481 */dev/null*)
5482 lt_cv_path_NM="$tmp_nm -p"
5483 break 2
5484 ;;
5485 *)
5486 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5487 continue # so that we can try to find one that supports BSD flags
5488 ;;
5489 esac
5490 ;;
5491 esac
5492 fi
5493 done
5494 IFS=$lt_save_ifs
5495 done
5496 : ${lt_cv_path_NM=no}
5497 fi
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5500 $as_echo "$lt_cv_path_NM" >&6; }
5501 if test no != "$lt_cv_path_NM"; then
5502 NM=$lt_cv_path_NM
5503 else
5504 # Didn't find any BSD compatible name lister, look for dumpbin.
5505 if test -n "$DUMPBIN"; then :
5506 # Let the user override the test.
5507 else
5508 if test -n "$ac_tool_prefix"; then
5509 for ac_prog in dumpbin "link -dump"
5510 do
5511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_DUMPBIN+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 if test -n "$DUMPBIN"; then
5519 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5520 else
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 break 2
5531 fi
5532 done
5533 done
5534 IFS=$as_save_IFS
5535
5536 fi
5537 fi
5538 DUMPBIN=$ac_cv_prog_DUMPBIN
5539 if test -n "$DUMPBIN"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5541 $as_echo "$DUMPBIN" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 test -n "$DUMPBIN" && break
5549 done
5550 fi
5551 if test -z "$DUMPBIN"; then
5552 ac_ct_DUMPBIN=$DUMPBIN
5553 for ac_prog in dumpbin "link -dump"
5554 do
5555 # Extract the first word of "$ac_prog", so it can be a program name with args.
5556 set dummy $ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$ac_ct_DUMPBIN"; then
5563 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5583 if test -n "$ac_ct_DUMPBIN"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5585 $as_echo "$ac_ct_DUMPBIN" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592 test -n "$ac_ct_DUMPBIN" && break
5593 done
5594
5595 if test "x$ac_ct_DUMPBIN" = x; then
5596 DUMPBIN=":"
5597 else
5598 case $cross_compiling:$ac_tool_warned in
5599 yes:)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5602 ac_tool_warned=yes ;;
5603 esac
5604 DUMPBIN=$ac_ct_DUMPBIN
5605 fi
5606 fi
5607
5608 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5609 *COFF*)
5610 DUMPBIN="$DUMPBIN -symbols -headers"
5611 ;;
5612 *)
5613 DUMPBIN=:
5614 ;;
5615 esac
5616 fi
5617
5618 if test : != "$DUMPBIN"; then
5619 NM=$DUMPBIN
5620 fi
5621 fi
5622 test -z "$NM" && NM=nm
5623
5624
5625
5626
5627
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5630 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5631 if ${lt_cv_nm_interface+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 lt_cv_nm_interface="BSD nm"
5635 echo "int some_variable = 0;" > conftest.$ac_ext
5636 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5637 (eval "$ac_compile" 2>conftest.err)
5638 cat conftest.err >&5
5639 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5640 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5641 cat conftest.err >&5
5642 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5643 cat conftest.out >&5
5644 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5645 lt_cv_nm_interface="MS dumpbin"
5646 fi
5647 rm -f conftest*
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5650 $as_echo "$lt_cv_nm_interface" >&6; }
5651
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5653 $as_echo_n "checking whether ln -s works... " >&6; }
5654 LN_S=$as_ln_s
5655 if test "$LN_S" = "ln -s"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5657 $as_echo "yes" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5660 $as_echo "no, using $LN_S" >&6; }
5661 fi
5662
5663 # find the maximum length of command line arguments
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5665 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5666 if ${lt_cv_sys_max_cmd_len+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 i=0
5670 teststring=ABCD
5671
5672 case $build_os in
5673 msdosdjgpp*)
5674 # On DJGPP, this test can blow up pretty badly due to problems in libc
5675 # (any single argument exceeding 2000 bytes causes a buffer overrun
5676 # during glob expansion). Even if it were fixed, the result of this
5677 # check would be larger than it should be.
5678 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5679 ;;
5680
5681 gnu*)
5682 # Under GNU Hurd, this test is not required because there is
5683 # no limit to the length of command line arguments.
5684 # Libtool will interpret -1 as no limit whatsoever
5685 lt_cv_sys_max_cmd_len=-1;
5686 ;;
5687
5688 cygwin* | mingw* | cegcc*)
5689 # On Win9x/ME, this test blows up -- it succeeds, but takes
5690 # about 5 minutes as the teststring grows exponentially.
5691 # Worse, since 9x/ME are not pre-emptively multitasking,
5692 # you end up with a "frozen" computer, even though with patience
5693 # the test eventually succeeds (with a max line length of 256k).
5694 # Instead, let's just punt: use the minimum linelength reported by
5695 # all of the supported platforms: 8192 (on NT/2K/XP).
5696 lt_cv_sys_max_cmd_len=8192;
5697 ;;
5698
5699 mint*)
5700 # On MiNT this can take a long time and run out of memory.
5701 lt_cv_sys_max_cmd_len=8192;
5702 ;;
5703
5704 amigaos*)
5705 # On AmigaOS with pdksh, this test takes hours, literally.
5706 # So we just punt and use a minimum line length of 8192.
5707 lt_cv_sys_max_cmd_len=8192;
5708 ;;
5709
5710 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5711 # This has been around since 386BSD, at least. Likely further.
5712 if test -x /sbin/sysctl; then
5713 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5714 elif test -x /usr/sbin/sysctl; then
5715 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5716 else
5717 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5718 fi
5719 # And add a safety zone
5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5722 ;;
5723
5724 interix*)
5725 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5726 lt_cv_sys_max_cmd_len=196608
5727 ;;
5728
5729 os2*)
5730 # The test takes a long time on OS/2.
5731 lt_cv_sys_max_cmd_len=8192
5732 ;;
5733
5734 osf*)
5735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5737 # nice to cause kernel panics so lets avoid the loop below.
5738 # First set a reasonable default.
5739 lt_cv_sys_max_cmd_len=16384
5740 #
5741 if test -x /sbin/sysconfig; then
5742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5743 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5744 esac
5745 fi
5746 ;;
5747 sco3.2v5*)
5748 lt_cv_sys_max_cmd_len=102400
5749 ;;
5750 sysv5* | sco5v6* | sysv4.2uw2*)
5751 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5752 if test -n "$kargmax"; then
5753 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5754 else
5755 lt_cv_sys_max_cmd_len=32768
5756 fi
5757 ;;
5758 *)
5759 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5760 if test -n "$lt_cv_sys_max_cmd_len" && \
5761 test undefined != "$lt_cv_sys_max_cmd_len"; then
5762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5764 else
5765 # Make teststring a little bigger before we do anything with it.
5766 # a 1K string should be a reasonable start.
5767 for i in 1 2 3 4 5 6 7 8; do
5768 teststring=$teststring$teststring
5769 done
5770 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5771 # If test is not a shell built-in, we'll probably end up computing a
5772 # maximum length that is only half of the actual maximum length, but
5773 # we can't tell.
5774 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5775 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5776 test 17 != "$i" # 1/2 MB should be enough
5777 do
5778 i=`expr $i + 1`
5779 teststring=$teststring$teststring
5780 done
5781 # Only check the string length outside the loop.
5782 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5783 teststring=
5784 # Add a significant safety factor because C++ compilers can tack on
5785 # massive amounts of additional arguments before passing them to the
5786 # linker. It appears as though 1/2 is a usable value.
5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5788 fi
5789 ;;
5790 esac
5791
5792 fi
5793
5794 if test -n "$lt_cv_sys_max_cmd_len"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5796 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5797 else
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5799 $as_echo "none" >&6; }
5800 fi
5801 max_cmd_len=$lt_cv_sys_max_cmd_len
5802
5803
5804
5805
5806
5807
5808 : ${CP="cp -f"}
5809 : ${MV="mv -f"}
5810 : ${RM="rm -f"}
5811
5812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5813 lt_unset=unset
5814 else
5815 lt_unset=false
5816 fi
5817
5818
5819
5820
5821
5822 # test EBCDIC or ASCII
5823 case `echo X|tr X '\101'` in
5824 A) # ASCII based system
5825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5826 lt_SP2NL='tr \040 \012'
5827 lt_NL2SP='tr \015\012 \040\040'
5828 ;;
5829 *) # EBCDIC based system
5830 lt_SP2NL='tr \100 \n'
5831 lt_NL2SP='tr \r\n \100\100'
5832 ;;
5833 esac
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5844 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5845 if ${lt_cv_to_host_file_cmd+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 case $host in
5849 *-*-mingw* )
5850 case $build in
5851 *-*-mingw* ) # actually msys
5852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5853 ;;
5854 *-*-cygwin* )
5855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5856 ;;
5857 * ) # otherwise, assume *nix
5858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5859 ;;
5860 esac
5861 ;;
5862 *-*-cygwin* )
5863 case $build in
5864 *-*-mingw* ) # actually msys
5865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5866 ;;
5867 *-*-cygwin* )
5868 lt_cv_to_host_file_cmd=func_convert_file_noop
5869 ;;
5870 * ) # otherwise, assume *nix
5871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5872 ;;
5873 esac
5874 ;;
5875 * ) # unhandled hosts (and "normal" native builds)
5876 lt_cv_to_host_file_cmd=func_convert_file_noop
5877 ;;
5878 esac
5879
5880 fi
5881
5882 to_host_file_cmd=$lt_cv_to_host_file_cmd
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5884 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5885
5886
5887
5888
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5891 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5892 if ${lt_cv_to_tool_file_cmd+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 #assume ordinary cross tools, or native build.
5896 lt_cv_to_tool_file_cmd=func_convert_file_noop
5897 case $host in
5898 *-*-mingw* )
5899 case $build in
5900 *-*-mingw* ) # actually msys
5901 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5902 ;;
5903 esac
5904 ;;
5905 esac
5906
5907 fi
5908
5909 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5911 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5912
5913
5914
5915
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5918 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5919 if ${lt_cv_ld_reload_flag+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 lt_cv_ld_reload_flag='-r'
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5925 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5926 reload_flag=$lt_cv_ld_reload_flag
5927 case $reload_flag in
5928 "" | " "*) ;;
5929 *) reload_flag=" $reload_flag" ;;
5930 esac
5931 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5932 case $host_os in
5933 cygwin* | mingw* | pw32* | cegcc*)
5934 if test yes != "$GCC"; then
5935 reload_cmds=false
5936 fi
5937 ;;
5938 darwin*)
5939 if test yes = "$GCC"; then
5940 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5941 else
5942 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5943 fi
5944 ;;
5945 esac
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_OBJDUMP+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -n "$OBJDUMP"; then
5964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5973 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975 break 2
5976 fi
5977 done
5978 done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 OBJDUMP=$ac_cv_prog_OBJDUMP
5984 if test -n "$OBJDUMP"; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5986 $as_echo "$OBJDUMP" >&6; }
5987 else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993 fi
5994 if test -z "$ac_cv_prog_OBJDUMP"; then
5995 ac_ct_OBJDUMP=$OBJDUMP
5996 # Extract the first word of "objdump", so it can be a program name with args.
5997 set dummy objdump; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 if test -n "$ac_ct_OBJDUMP"; then
6004 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017 done
6018 done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6024 if test -n "$ac_ct_OBJDUMP"; then
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6026 $as_echo "$ac_ct_OBJDUMP" >&6; }
6027 else
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032 if test "x$ac_ct_OBJDUMP" = x; then
6033 OBJDUMP="false"
6034 else
6035 case $cross_compiling:$ac_tool_warned in
6036 yes:)
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6040 esac
6041 OBJDUMP=$ac_ct_OBJDUMP
6042 fi
6043 else
6044 OBJDUMP="$ac_cv_prog_OBJDUMP"
6045 fi
6046
6047 test -z "$OBJDUMP" && OBJDUMP=objdump
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6058 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6059 if ${lt_cv_deplibs_check_method+:} false; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 lt_cv_file_magic_cmd='$MAGIC_CMD'
6063 lt_cv_file_magic_test_file=
6064 lt_cv_deplibs_check_method='unknown'
6065 # Need to set the preceding variable on all platforms that support
6066 # interlibrary dependencies.
6067 # 'none' -- dependencies not supported.
6068 # 'unknown' -- same as none, but documents that we really don't know.
6069 # 'pass_all' -- all dependencies passed with no checks.
6070 # 'test_compile' -- check by making test program.
6071 # 'file_magic [[regex]]' -- check by looking for files in library path
6072 # that responds to the $file_magic_cmd with a given extended regex.
6073 # If you have 'file' or equivalent on your system and you're not sure
6074 # whether 'pass_all' will *always* work, you probably want this one.
6075
6076 case $host_os in
6077 aix[4-9]*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081 beos*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084
6085 bsdi[45]*)
6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6087 lt_cv_file_magic_cmd='/usr/bin/file -L'
6088 lt_cv_file_magic_test_file=/shlib/libc.so
6089 ;;
6090
6091 cygwin*)
6092 # func_win32_libid is a shell function defined in ltmain.sh
6093 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6094 lt_cv_file_magic_cmd='func_win32_libid'
6095 ;;
6096
6097 mingw* | pw32*)
6098 # Base MSYS/MinGW do not provide the 'file' command needed by
6099 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6100 # unless we find 'file', for example because we are cross-compiling.
6101 if ( file / ) >/dev/null 2>&1; then
6102 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6103 lt_cv_file_magic_cmd='func_win32_libid'
6104 else
6105 # Keep this pattern in sync with the one in func_win32_libid.
6106 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6107 lt_cv_file_magic_cmd='$OBJDUMP -f'
6108 fi
6109 ;;
6110
6111 cegcc*)
6112 # use the weaker test based on 'objdump'. See mingw*.
6113 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6114 lt_cv_file_magic_cmd='$OBJDUMP -f'
6115 ;;
6116
6117 darwin* | rhapsody*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 freebsd* | dragonfly*)
6122 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6123 case $host_cpu in
6124 i*86 )
6125 # Not sure whether the presence of OpenBSD here was a mistake.
6126 # Let's accept both of them until this is cleared up.
6127 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6128 lt_cv_file_magic_cmd=/usr/bin/file
6129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6130 ;;
6131 esac
6132 else
6133 lt_cv_deplibs_check_method=pass_all
6134 fi
6135 ;;
6136
6137 haiku*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 hpux10.20* | hpux11*)
6142 lt_cv_file_magic_cmd=/usr/bin/file
6143 case $host_cpu in
6144 ia64*)
6145 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6146 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6147 ;;
6148 hppa*64*)
6149 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]'
6150 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6151 ;;
6152 *)
6153 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6154 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6155 ;;
6156 esac
6157 ;;
6158
6159 interix[3-9]*)
6160 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6162 ;;
6163
6164 irix5* | irix6* | nonstopux*)
6165 case $LD in
6166 *-32|*"-32 ") libmagic=32-bit;;
6167 *-n32|*"-n32 ") libmagic=N32;;
6168 *-64|*"-64 ") libmagic=64-bit;;
6169 *) libmagic=never-match;;
6170 esac
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173
6174 # This must be glibc/ELF.
6175 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6176 lt_cv_deplibs_check_method=pass_all
6177 ;;
6178
6179 netbsd* | netbsdelf*-gnu)
6180 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6182 else
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6184 fi
6185 ;;
6186
6187 newos6*)
6188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6189 lt_cv_file_magic_cmd=/usr/bin/file
6190 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6191 ;;
6192
6193 *nto* | *qnx*)
6194 lt_cv_deplibs_check_method=pass_all
6195 ;;
6196
6197 openbsd* | bitrig*)
6198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6200 else
6201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6202 fi
6203 ;;
6204
6205 osf3* | osf4* | osf5*)
6206 lt_cv_deplibs_check_method=pass_all
6207 ;;
6208
6209 rdos*)
6210 lt_cv_deplibs_check_method=pass_all
6211 ;;
6212
6213 solaris*)
6214 lt_cv_deplibs_check_method=pass_all
6215 ;;
6216
6217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6218 lt_cv_deplibs_check_method=pass_all
6219 ;;
6220
6221 sysv4 | sysv4.3*)
6222 case $host_vendor in
6223 motorola)
6224 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]'
6225 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6226 ;;
6227 ncr)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230 sequent)
6231 lt_cv_file_magic_cmd='/bin/file'
6232 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6233 ;;
6234 sni)
6235 lt_cv_file_magic_cmd='/bin/file'
6236 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6237 lt_cv_file_magic_test_file=/lib/libc.so
6238 ;;
6239 siemens)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242 pc)
6243 lt_cv_deplibs_check_method=pass_all
6244 ;;
6245 esac
6246 ;;
6247
6248 tpf*)
6249 lt_cv_deplibs_check_method=pass_all
6250 ;;
6251 os2*)
6252 lt_cv_deplibs_check_method=pass_all
6253 ;;
6254 esac
6255
6256 fi
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6258 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6259
6260 file_magic_glob=
6261 want_nocaseglob=no
6262 if test "$build" = "$host"; then
6263 case $host_os in
6264 mingw* | pw32*)
6265 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6266 want_nocaseglob=yes
6267 else
6268 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6269 fi
6270 ;;
6271 esac
6272 fi
6273
6274 file_magic_cmd=$lt_cv_file_magic_cmd
6275 deplibs_check_method=$lt_cv_deplibs_check_method
6276 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_DLLTOOL+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$DLLTOOL"; then
6308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 DLLTOOL=$ac_cv_prog_DLLTOOL
6328 if test -n "$DLLTOOL"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6330 $as_echo "$DLLTOOL" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_DLLTOOL"; then
6339 ac_ct_DLLTOOL=$DLLTOOL
6340 # Extract the first word of "dlltool", so it can be a program name with args.
6341 set dummy dlltool; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_DLLTOOL"; then
6348 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6368 if test -n "$ac_ct_DLLTOOL"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6370 $as_echo "$ac_ct_DLLTOOL" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376 if test "x$ac_ct_DLLTOOL" = x; then
6377 DLLTOOL="false"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 DLLTOOL=$ac_ct_DLLTOOL
6386 fi
6387 else
6388 DLLTOOL="$ac_cv_prog_DLLTOOL"
6389 fi
6390
6391 test -z "$DLLTOOL" && DLLTOOL=dlltool
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6403 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6404 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 lt_cv_sharedlib_from_linklib_cmd='unknown'
6408
6409 case $host_os in
6410 cygwin* | mingw* | pw32* | cegcc*)
6411 # two different shell functions defined in ltmain.sh;
6412 # decide which one to use based on capabilities of $DLLTOOL
6413 case `$DLLTOOL --help 2>&1` in
6414 *--identify-strict*)
6415 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6416 ;;
6417 *)
6418 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6419 ;;
6420 esac
6421 ;;
6422 *)
6423 # fallback: assume linklib IS sharedlib
6424 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6425 ;;
6426 esac
6427
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6430 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6431 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6432 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6433
6434
6435
6436
6437
6438
6439
6440 if test -n "$ac_tool_prefix"; then
6441 for ac_prog in ar
6442 do
6443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_AR+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$AR"; then
6451 ac_cv_prog_AR="$AR" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6463 fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 AR=$ac_cv_prog_AR
6471 if test -n "$AR"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6473 $as_echo "$AR" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479
6480 test -n "$AR" && break
6481 done
6482 fi
6483 if test -z "$AR"; then
6484 ac_ct_AR=$AR
6485 for ac_prog in ar
6486 do
6487 # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 if test -n "$ac_ct_AR"; then
6495 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504 ac_cv_prog_ac_ct_AR="$ac_prog"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508 done
6509 done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6515 if test -n "$ac_ct_AR"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6517 $as_echo "$ac_ct_AR" >&6; }
6518 else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523
6524 test -n "$ac_ct_AR" && break
6525 done
6526
6527 if test "x$ac_ct_AR" = x; then
6528 AR="false"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536 AR=$ac_ct_AR
6537 fi
6538 fi
6539
6540 : ${AR=ar}
6541 : ${AR_FLAGS=cru}
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6554 $as_echo_n "checking for archiver @FILE support... " >&6; }
6555 if ${lt_cv_ar_at_file+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 lt_cv_ar_at_file=no
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561
6562 int
6563 main ()
6564 {
6565
6566 ;
6567 return 0;
6568 }
6569 _ACEOF
6570 if ac_fn_c_try_compile "$LINENO"; then :
6571 echo conftest.$ac_objext > conftest.lst
6572 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6574 (eval $lt_ar_try) 2>&5
6575 ac_status=$?
6576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577 test $ac_status = 0; }
6578 if test 0 -eq "$ac_status"; then
6579 # Ensure the archiver fails upon bogus file names.
6580 rm -f conftest.$ac_objext libconftest.a
6581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6582 (eval $lt_ar_try) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }
6586 if test 0 -ne "$ac_status"; then
6587 lt_cv_ar_at_file=@
6588 fi
6589 fi
6590 rm -f conftest.* libconftest.a
6591
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594
6595 fi
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6597 $as_echo "$lt_cv_ar_at_file" >&6; }
6598
6599 if test no = "$lt_cv_ar_at_file"; then
6600 archiver_list_spec=
6601 else
6602 archiver_list_spec=$lt_cv_ar_at_file
6603 fi
6604
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}strip; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_STRIP+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$STRIP"; then
6620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 STRIP=$ac_cv_prog_STRIP
6640 if test -n "$STRIP"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6642 $as_echo "$STRIP" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_STRIP"; then
6651 ac_ct_STRIP=$STRIP
6652 # Extract the first word of "strip", so it can be a program name with args.
6653 set dummy strip; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_STRIP"; then
6660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_STRIP="strip"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6680 if test -n "$ac_ct_STRIP"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6682 $as_echo "$ac_ct_STRIP" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_STRIP" = x; then
6689 STRIP=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 STRIP=$ac_ct_STRIP
6698 fi
6699 else
6700 STRIP="$ac_cv_prog_STRIP"
6701 fi
6702
6703 test -z "$STRIP" && STRIP=:
6704
6705
6706
6707
6708
6709
6710 if test -n "$ac_tool_prefix"; then
6711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6712 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_RANLIB+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$RANLIB"; then
6719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6723 do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732 done
6733 done
6734 IFS=$as_save_IFS
6735
6736 fi
6737 fi
6738 RANLIB=$ac_cv_prog_RANLIB
6739 if test -n "$RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6741 $as_echo "$RANLIB" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 fi
6749 if test -z "$ac_cv_prog_RANLIB"; then
6750 ac_ct_RANLIB=$RANLIB
6751 # Extract the first word of "ranlib", so it can be a program name with args.
6752 set dummy ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if test -n "$ac_ct_RANLIB"; then
6759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_ac_ct_RANLIB="ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772 done
6773 done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6779 if test -n "$ac_ct_RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6781 $as_echo "$ac_ct_RANLIB" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787 if test "x$ac_ct_RANLIB" = x; then
6788 RANLIB=":"
6789 else
6790 case $cross_compiling:$ac_tool_warned in
6791 yes:)
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794 ac_tool_warned=yes ;;
6795 esac
6796 RANLIB=$ac_ct_RANLIB
6797 fi
6798 else
6799 RANLIB="$ac_cv_prog_RANLIB"
6800 fi
6801
6802 test -z "$RANLIB" && RANLIB=:
6803
6804
6805
6806
6807
6808
6809 # Determine commands to create old-style static archives.
6810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6811 old_postinstall_cmds='chmod 644 $oldlib'
6812 old_postuninstall_cmds=
6813
6814 if test -n "$RANLIB"; then
6815 case $host_os in
6816 bitrig* | openbsd*)
6817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6818 ;;
6819 *)
6820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6821 ;;
6822 esac
6823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6824 fi
6825
6826 case $host_os in
6827 darwin*)
6828 lock_old_archive_extraction=yes ;;
6829 *)
6830 lock_old_archive_extraction=no ;;
6831 esac
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871 # If no C compiler was specified, use CC.
6872 LTCC=${LTCC-"$CC"}
6873
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6876
6877 # Allow CC to be a program name with arguments.
6878 compiler=$CC
6879
6880
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6890
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6893
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6896
6897 # Define system-specific variables.
6898 case $host_os in
6899 aix*)
6900 symcode='[BCDT]'
6901 ;;
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6904 ;;
6905 hpux*)
6906 if test ia64 = "$host_cpu"; then
6907 symcode='[ABCDEGRST]'
6908 fi
6909 ;;
6910 irix* | nonstopux*)
6911 symcode='[BCDEGRST]'
6912 ;;
6913 osf*)
6914 symcode='[BCDEGQRST]'
6915 ;;
6916 solaris*)
6917 symcode='[BDRT]'
6918 ;;
6919 sco3.2v5*)
6920 symcode='[DT]'
6921 ;;
6922 sysv4.2uw2*)
6923 symcode='[DT]'
6924 ;;
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6926 symcode='[ABDT]'
6927 ;;
6928 sysv4)
6929 symcode='[DFNSTU]'
6930 ;;
6931 esac
6932
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6937 esac
6938
6939 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6940 # Gets list of data symbols to import.
6941 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6942 # Adjust the below global symbol transforms to fixup imported variables.
6943 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6944 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6945 lt_c_name_lib_hook="\
6946 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6947 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6948 else
6949 # Disable hooks by default.
6950 lt_cv_sys_global_symbol_to_import=
6951 lt_cdecl_hook=
6952 lt_c_name_hook=
6953 lt_c_name_lib_hook=
6954 fi
6955
6956 # Transform an extracted symbol line into a proper C declaration.
6957 # Some systems (esp. on ia64) link data and code symbols differently,
6958 # so use this general approach.
6959 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6960 $lt_cdecl_hook\
6961 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6962 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6963
6964 # Transform an extracted symbol line into symbol name and symbol address
6965 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6966 $lt_c_name_hook\
6967 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6968 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6969
6970 # Transform an extracted symbol line into symbol name with lib prefix and
6971 # symbol address.
6972 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6973 $lt_c_name_lib_hook\
6974 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6975 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6976 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6977
6978 # Handle CRLF in mingw tool chain
6979 opt_cr=
6980 case $build_os in
6981 mingw*)
6982 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6983 ;;
6984 esac
6985
6986 # Try without a prefix underscore, then with it.
6987 for ac_symprfx in "" "_"; do
6988
6989 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6990 symxfrm="\\1 $ac_symprfx\\2 \\2"
6991
6992 # Write the raw and C identifiers.
6993 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6994 # Fake it for dumpbin and say T for any non-static function,
6995 # D for any global variable and I for any imported variable.
6996 # Also find C++ and __fastcall symbols from MSVC++,
6997 # which start with @ or ?.
6998 lt_cv_sys_global_symbol_pipe="$AWK '"\
6999 " {last_section=section; section=\$ 3};"\
7000 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7001 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7002 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7003 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7004 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7005 " \$ 0!~/External *\|/{next};"\
7006 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7007 " {if(hide[section]) next};"\
7008 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7009 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7010 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7011 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7012 " ' prfx=^$ac_symprfx"
7013 else
7014 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7015 fi
7016 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7017
7018 # Check to see that the pipe works correctly.
7019 pipe_works=no
7020
7021 rm -f conftest*
7022 cat > conftest.$ac_ext <<_LT_EOF
7023 #ifdef __cplusplus
7024 extern "C" {
7025 #endif
7026 char nm_test_var;
7027 void nm_test_func(void);
7028 void nm_test_func(void){}
7029 #ifdef __cplusplus
7030 }
7031 #endif
7032 int main(){nm_test_var='a';nm_test_func();return(0);}
7033 _LT_EOF
7034
7035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7036 (eval $ac_compile) 2>&5
7037 ac_status=$?
7038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7039 test $ac_status = 0; }; then
7040 # Now try to grab the symbols.
7041 nlist=conftest.nm
7042 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7043 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7044 # Try sorting and uniquifying the output.
7045 if sort "$nlist" | uniq > "$nlist"T; then
7046 mv -f "$nlist"T "$nlist"
7047 else
7048 rm -f "$nlist"T
7049 fi
7050
7051 # Make sure that we snagged all the symbols we need.
7052 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7053 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7054 cat <<_LT_EOF > conftest.$ac_ext
7055 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7056 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7057 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7058 relocations are performed -- see ld's documentation on pseudo-relocs. */
7059 # define LT_DLSYM_CONST
7060 #elif defined __osf__
7061 /* This system does not cope well with relocations in const data. */
7062 # define LT_DLSYM_CONST
7063 #else
7064 # define LT_DLSYM_CONST const
7065 #endif
7066
7067 #ifdef __cplusplus
7068 extern "C" {
7069 #endif
7070
7071 _LT_EOF
7072 # Now generate the symbol file.
7073 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7074
7075 cat <<_LT_EOF >> conftest.$ac_ext
7076
7077 /* The mapping between symbol names and symbols. */
7078 LT_DLSYM_CONST struct {
7079 const char *name;
7080 void *address;
7081 }
7082 lt__PROGRAM__LTX_preloaded_symbols[] =
7083 {
7084 { "@PROGRAM@", (void *) 0 },
7085 _LT_EOF
7086 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7087 cat <<\_LT_EOF >> conftest.$ac_ext
7088 {0, (void *) 0}
7089 };
7090
7091 /* This works around a problem in FreeBSD linker */
7092 #ifdef FREEBSD_WORKAROUND
7093 static const void *lt_preloaded_setup() {
7094 return lt__PROGRAM__LTX_preloaded_symbols;
7095 }
7096 #endif
7097
7098 #ifdef __cplusplus
7099 }
7100 #endif
7101 _LT_EOF
7102 # Now try linking the two files.
7103 mv conftest.$ac_objext conftstm.$ac_objext
7104 lt_globsym_save_LIBS=$LIBS
7105 lt_globsym_save_CFLAGS=$CFLAGS
7106 LIBS=conftstm.$ac_objext
7107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7109 (eval $ac_link) 2>&5
7110 ac_status=$?
7111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7113 pipe_works=yes
7114 fi
7115 LIBS=$lt_globsym_save_LIBS
7116 CFLAGS=$lt_globsym_save_CFLAGS
7117 else
7118 echo "cannot find nm_test_func in $nlist" >&5
7119 fi
7120 else
7121 echo "cannot find nm_test_var in $nlist" >&5
7122 fi
7123 else
7124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7125 fi
7126 else
7127 echo "$progname: failed program was:" >&5
7128 cat conftest.$ac_ext >&5
7129 fi
7130 rm -rf conftest* conftst*
7131
7132 # Do not use the global_symbol_pipe unless it works.
7133 if test yes = "$pipe_works"; then
7134 break
7135 else
7136 lt_cv_sys_global_symbol_pipe=
7137 fi
7138 done
7139
7140 fi
7141
7142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7143 lt_cv_sys_global_symbol_to_cdecl=
7144 fi
7145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7147 $as_echo "failed" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7150 $as_echo "ok" >&6; }
7151 fi
7152
7153 # Response file support.
7154 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7155 nm_file_list_spec='@'
7156 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7157 nm_file_list_spec='@'
7158 fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7197 $as_echo_n "checking for sysroot... " >&6; }
7198
7199 # Check whether --with-sysroot was given.
7200 if test "${with_sysroot+set}" = set; then :
7201 withval=$with_sysroot;
7202 else
7203 with_sysroot=no
7204 fi
7205
7206
7207 lt_sysroot=
7208 case $with_sysroot in #(
7209 yes)
7210 if test yes = "$GCC"; then
7211 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7212 fi
7213 ;; #(
7214 /*)
7215 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7216 ;; #(
7217 no|'')
7218 ;; #(
7219 *)
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7221 $as_echo "$with_sysroot" >&6; }
7222 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7223 ;;
7224 esac
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7227 $as_echo "${lt_sysroot:-no}" >&6; }
7228
7229
7230
7231
7232
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7234 $as_echo_n "checking for a working dd... " >&6; }
7235 if ${ac_cv_path_lt_DD+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 printf 0123456789abcdef0123456789abcdef >conftest.i
7239 cat conftest.i conftest.i >conftest2.i
7240 : ${lt_DD:=$DD}
7241 if test -z "$lt_DD"; then
7242 ac_path_lt_DD_found=false
7243 # Loop through the user's path and test for each of PROGNAME-LIST
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7246 do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_prog in dd; do
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7252 as_fn_executable_p "$ac_path_lt_DD" || continue
7253 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7254 cmp -s conftest.i conftest.out \
7255 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7256 fi
7257 $ac_path_lt_DD_found && break 3
7258 done
7259 done
7260 done
7261 IFS=$as_save_IFS
7262 if test -z "$ac_cv_path_lt_DD"; then
7263 :
7264 fi
7265 else
7266 ac_cv_path_lt_DD=$lt_DD
7267 fi
7268
7269 rm -f conftest.i conftest2.i conftest.out
7270 fi
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7272 $as_echo "$ac_cv_path_lt_DD" >&6; }
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7276 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7277 if ${lt_cv_truncate_bin+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 printf 0123456789abcdef0123456789abcdef >conftest.i
7281 cat conftest.i conftest.i >conftest2.i
7282 lt_cv_truncate_bin=
7283 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7284 cmp -s conftest.i conftest.out \
7285 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7286 fi
7287 rm -f conftest.i conftest2.i conftest.out
7288 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7291 $as_echo "$lt_cv_truncate_bin" >&6; }
7292
7293
7294
7295
7296
7297
7298
7299 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7300 func_cc_basename ()
7301 {
7302 for cc_temp in $*""; do
7303 case $cc_temp in
7304 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7305 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7306 \-*) ;;
7307 *) break;;
7308 esac
7309 done
7310 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7311 }
7312
7313 # Check whether --enable-libtool-lock was given.
7314 if test "${enable_libtool_lock+set}" = set; then :
7315 enableval=$enable_libtool_lock;
7316 fi
7317
7318 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7319
7320 # Some flags need to be propagated to the compiler or linker for good
7321 # libtool support.
7322 case $host in
7323 ia64-*-hpux*)
7324 # Find out what ABI is being produced by ac_compile, and set mode
7325 # options accordingly.
7326 echo 'int i;' > conftest.$ac_ext
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 case `/usr/bin/file conftest.$ac_objext` in
7333 *ELF-32*)
7334 HPUX_IA64_MODE=32
7335 ;;
7336 *ELF-64*)
7337 HPUX_IA64_MODE=64
7338 ;;
7339 esac
7340 fi
7341 rm -rf conftest*
7342 ;;
7343 *-*-irix6*)
7344 # Find out what ABI is being produced by ac_compile, and set linker
7345 # options accordingly.
7346 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348 (eval $ac_compile) 2>&5
7349 ac_status=$?
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 if test yes = "$lt_cv_prog_gnu_ld"; then
7353 case `/usr/bin/file conftest.$ac_objext` in
7354 *32-bit*)
7355 LD="${LD-ld} -melf32bsmip"
7356 ;;
7357 *N32*)
7358 LD="${LD-ld} -melf32bmipn32"
7359 ;;
7360 *64-bit*)
7361 LD="${LD-ld} -melf64bmip"
7362 ;;
7363 esac
7364 else
7365 case `/usr/bin/file conftest.$ac_objext` in
7366 *32-bit*)
7367 LD="${LD-ld} -32"
7368 ;;
7369 *N32*)
7370 LD="${LD-ld} -n32"
7371 ;;
7372 *64-bit*)
7373 LD="${LD-ld} -64"
7374 ;;
7375 esac
7376 fi
7377 fi
7378 rm -rf conftest*
7379 ;;
7380
7381 mips64*-*linux*)
7382 # Find out what ABI is being produced by ac_compile, and set linker
7383 # options accordingly.
7384 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386 (eval $ac_compile) 2>&5
7387 ac_status=$?
7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389 test $ac_status = 0; }; then
7390 emul=elf
7391 case `/usr/bin/file conftest.$ac_objext` in
7392 *32-bit*)
7393 emul="${emul}32"
7394 ;;
7395 *64-bit*)
7396 emul="${emul}64"
7397 ;;
7398 esac
7399 case `/usr/bin/file conftest.$ac_objext` in
7400 *MSB*)
7401 emul="${emul}btsmip"
7402 ;;
7403 *LSB*)
7404 emul="${emul}ltsmip"
7405 ;;
7406 esac
7407 case `/usr/bin/file conftest.$ac_objext` in
7408 *N32*)
7409 emul="${emul}n32"
7410 ;;
7411 esac
7412 LD="${LD-ld} -m $emul"
7413 fi
7414 rm -rf conftest*
7415 ;;
7416
7417 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7418 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7419 # Find out what ABI is being produced by ac_compile, and set linker
7420 # options accordingly. Note that the listed cases only cover the
7421 # situations where additional linker options are needed (such as when
7422 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7423 # vice versa); the common cases where no linker options are needed do
7424 # not appear in the list.
7425 echo 'int i;' > conftest.$ac_ext
7426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7427 (eval $ac_compile) 2>&5
7428 ac_status=$?
7429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7430 test $ac_status = 0; }; then
7431 case `/usr/bin/file conftest.o` in
7432 *32-bit*)
7433 case $host in
7434 x86_64-*kfreebsd*-gnu)
7435 LD="${LD-ld} -m elf_i386_fbsd"
7436 ;;
7437 x86_64-*linux*)
7438 case `/usr/bin/file conftest.o` in
7439 *x86-64*)
7440 LD="${LD-ld} -m elf32_x86_64"
7441 ;;
7442 *)
7443 LD="${LD-ld} -m elf_i386"
7444 ;;
7445 esac
7446 ;;
7447 powerpc64le-*linux*)
7448 LD="${LD-ld} -m elf32lppclinux"
7449 ;;
7450 powerpc64-*linux*)
7451 LD="${LD-ld} -m elf32ppclinux"
7452 ;;
7453 s390x-*linux*)
7454 LD="${LD-ld} -m elf_s390"
7455 ;;
7456 sparc64-*linux*)
7457 LD="${LD-ld} -m elf32_sparc"
7458 ;;
7459 esac
7460 ;;
7461 *64-bit*)
7462 case $host in
7463 x86_64-*kfreebsd*-gnu)
7464 LD="${LD-ld} -m elf_x86_64_fbsd"
7465 ;;
7466 x86_64-*linux*)
7467 LD="${LD-ld} -m elf_x86_64"
7468 ;;
7469 powerpcle-*linux*)
7470 LD="${LD-ld} -m elf64lppc"
7471 ;;
7472 powerpc-*linux*)
7473 LD="${LD-ld} -m elf64ppc"
7474 ;;
7475 s390*-*linux*|s390*-*tpf*)
7476 LD="${LD-ld} -m elf64_s390"
7477 ;;
7478 sparc*-*linux*)
7479 LD="${LD-ld} -m elf64_sparc"
7480 ;;
7481 esac
7482 ;;
7483 esac
7484 fi
7485 rm -rf conftest*
7486 ;;
7487
7488 *-*-sco3.2v5*)
7489 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7490 SAVE_CFLAGS=$CFLAGS
7491 CFLAGS="$CFLAGS -belf"
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7493 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7494 if ${lt_cv_cc_needs_belf+:} false; then :
7495 $as_echo_n "(cached) " >&6
7496 else
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505
7506 int
7507 main ()
7508 {
7509
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 lt_cv_cc_needs_belf=yes
7516 else
7517 lt_cv_cc_needs_belf=no
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext \
7520 conftest$ac_exeext conftest.$ac_ext
7521 ac_ext=c
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7526
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7529 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7530 if test yes != "$lt_cv_cc_needs_belf"; then
7531 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7532 CFLAGS=$SAVE_CFLAGS
7533 fi
7534 ;;
7535 *-*solaris*)
7536 # Find out what ABI is being produced by ac_compile, and set linker
7537 # options accordingly.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.o` in
7545 *64-bit*)
7546 case $lt_cv_prog_gnu_ld in
7547 yes*)
7548 case $host in
7549 i?86-*-solaris*|x86_64-*-solaris*)
7550 LD="${LD-ld} -m elf_x86_64"
7551 ;;
7552 sparc*-*-solaris*)
7553 LD="${LD-ld} -m elf64_sparc"
7554 ;;
7555 esac
7556 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7557 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7558 LD=${LD-ld}_sol2
7559 fi
7560 ;;
7561 *)
7562 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7563 LD="${LD-ld} -64"
7564 fi
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 fi
7570 rm -rf conftest*
7571 ;;
7572 esac
7573
7574 need_locks=$enable_libtool_lock
7575
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}mt; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$MANIFEST_TOOL"; then
7585 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7605 if test -n "$MANIFEST_TOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7607 $as_echo "$MANIFEST_TOOL" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614 fi
7615 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7617 # Extract the first word of "mt", so it can be a program name with args.
7618 set dummy mt; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$ac_ct_MANIFEST_TOOL"; then
7625 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7645 if test -n "$ac_ct_MANIFEST_TOOL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7647 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7654 MANIFEST_TOOL=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657 yes:)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660 ac_tool_warned=yes ;;
7661 esac
7662 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7663 fi
7664 else
7665 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7666 fi
7667
7668 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7670 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7671 if ${lt_cv_path_mainfest_tool+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 lt_cv_path_mainfest_tool=no
7675 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7676 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7677 cat conftest.err >&5
7678 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7679 lt_cv_path_mainfest_tool=yes
7680 fi
7681 rm -f conftest*
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7684 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7685 if test yes != "$lt_cv_path_mainfest_tool"; then
7686 MANIFEST_TOOL=:
7687 fi
7688
7689
7690
7691
7692
7693
7694 case $host_os in
7695 rhapsody* | darwin*)
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7698 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700 $as_echo_n "checking for $ac_word... " >&6; }
7701 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 if test -n "$DSYMUTIL"; then
7705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7706 else
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7709 do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718 done
7719 done
7720 IFS=$as_save_IFS
7721
7722 fi
7723 fi
7724 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7725 if test -n "$DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7727 $as_echo "$DSYMUTIL" >&6; }
7728 else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 $as_echo "no" >&6; }
7731 fi
7732
7733
7734 fi
7735 if test -z "$ac_cv_prog_DSYMUTIL"; then
7736 ac_ct_DSYMUTIL=$DSYMUTIL
7737 # Extract the first word of "dsymutil", so it can be a program name with args.
7738 set dummy dsymutil; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743 else
7744 if test -n "$ac_ct_DSYMUTIL"; then
7745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758 done
7759 done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7765 if test -n "$ac_ct_DSYMUTIL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7767 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7768 else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773 if test "x$ac_ct_DSYMUTIL" = x; then
7774 DSYMUTIL=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777 yes:)
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780 ac_tool_warned=yes ;;
7781 esac
7782 DSYMUTIL=$ac_ct_DSYMUTIL
7783 fi
7784 else
7785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786 fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$NMEDIT"; then
7797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810 done
7811 done
7812 IFS=$as_save_IFS
7813
7814 fi
7815 fi
7816 NMEDIT=$ac_cv_prog_NMEDIT
7817 if test -n "$NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7819 $as_echo "$NMEDIT" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7823 fi
7824
7825
7826 fi
7827 if test -z "$ac_cv_prog_NMEDIT"; then
7828 ac_ct_NMEDIT=$NMEDIT
7829 # Extract the first word of "nmedit", so it can be a program name with args.
7830 set dummy nmedit; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_NMEDIT"; then
7837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852 IFS=$as_save_IFS
7853
7854 fi
7855 fi
7856 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7857 if test -n "$ac_ct_NMEDIT"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7859 $as_echo "$ac_ct_NMEDIT" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865 if test "x$ac_ct_NMEDIT" = x; then
7866 NMEDIT=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 NMEDIT=$ac_ct_NMEDIT
7875 fi
7876 else
7877 NMEDIT="$ac_cv_prog_NMEDIT"
7878 fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 if test -n "$LIPO"; then
7889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890 else
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 for as_dir in $PATH
7893 do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902 done
7903 done
7904 IFS=$as_save_IFS
7905
7906 fi
7907 fi
7908 LIPO=$ac_cv_prog_LIPO
7909 if test -n "$LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7911 $as_echo "$LIPO" >&6; }
7912 else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7915 fi
7916
7917
7918 fi
7919 if test -z "$ac_cv_prog_LIPO"; then
7920 ac_ct_LIPO=$LIPO
7921 # Extract the first word of "lipo", so it can be a program name with args.
7922 set dummy lipo; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$ac_ct_LIPO"; then
7929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_LIPO="lipo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7949 if test -n "$ac_ct_LIPO"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7951 $as_echo "$ac_ct_LIPO" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957 if test "x$ac_ct_LIPO" = x; then
7958 LIPO=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961 yes:)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7965 esac
7966 LIPO=$ac_ct_LIPO
7967 fi
7968 else
7969 LIPO="$ac_cv_prog_LIPO"
7970 fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}otool; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 if test -n "$OTOOL"; then
7981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7982 else
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH
7985 do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994 done
7995 done
7996 IFS=$as_save_IFS
7997
7998 fi
7999 fi
8000 OTOOL=$ac_cv_prog_OTOOL
8001 if test -n "$OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8003 $as_echo "$OTOOL" >&6; }
8004 else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8007 fi
8008
8009
8010 fi
8011 if test -z "$ac_cv_prog_OTOOL"; then
8012 ac_ct_OTOOL=$OTOOL
8013 # Extract the first word of "otool", so it can be a program name with args.
8014 set dummy otool; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 if test -n "$ac_ct_OTOOL"; then
8021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8022 else
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL="otool"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041 if test -n "$ac_ct_OTOOL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043 $as_echo "$ac_ct_OTOOL" >&6; }
8044 else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_OTOOL" = x; then
8050 OTOOL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 OTOOL=$ac_ct_OTOOL
8059 fi
8060 else
8061 OTOOL="$ac_cv_prog_OTOOL"
8062 fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071 else
8072 if test -n "$OTOOL64"; then
8073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8074 else
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090 fi
8091 fi
8092 OTOOL64=$ac_cv_prog_OTOOL64
8093 if test -n "$OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8095 $as_echo "$OTOOL64" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8099 fi
8100
8101
8102 fi
8103 if test -z "$ac_cv_prog_OTOOL64"; then
8104 ac_ct_OTOOL64=$OTOOL64
8105 # Extract the first word of "otool64", so it can be a program name with args.
8106 set dummy otool64; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111 else
8112 if test -n "$ac_ct_OTOOL64"; then
8113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8114 else
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_OTOOL64="otool64"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130 fi
8131 fi
8132 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8133 if test -n "$ac_ct_OTOOL64"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8135 $as_echo "$ac_ct_OTOOL64" >&6; }
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8139 fi
8140
8141 if test "x$ac_ct_OTOOL64" = x; then
8142 OTOOL64=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145 yes:)
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8149 esac
8150 OTOOL64=$ac_ct_OTOOL64
8151 fi
8152 else
8153 OTOOL64="$ac_cv_prog_OTOOL64"
8154 fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8183 $as_echo_n "checking for -single_module linker flag... " >&6; }
8184 if ${lt_cv_apple_cc_single_mod+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 lt_cv_apple_cc_single_mod=no
8188 if test -z "$LT_MULTI_MODULE"; then
8189 # By default we will add the -single_module flag. You can override
8190 # by either setting the environment variable LT_MULTI_MODULE
8191 # non-empty at configure time, or by adding -multi_module to the
8192 # link flags.
8193 rm -rf libconftest.dylib*
8194 echo "int foo(void){return 1;}" > conftest.c
8195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196 -dynamiclib -Wl,-single_module conftest.c" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8199 _lt_result=$?
8200 # If there is a non-empty error log, and "single_module"
8201 # appears in it, assume the flag caused a linker warning
8202 if test -s conftest.err && $GREP single_module conftest.err; then
8203 cat conftest.err >&5
8204 # Otherwise, if the output was created with a 0 exit code from
8205 # the compiler, it worked.
8206 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8207 lt_cv_apple_cc_single_mod=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -rf libconftest.dylib*
8212 rm -f conftest.*
8213 fi
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8219 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8220 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 lt_cv_ld_exported_symbols_list=no
8224 save_LDFLAGS=$LDFLAGS
8225 echo "_main" > conftest.sym
8226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229
8230 int
8231 main ()
8232 {
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_ld_exported_symbols_list=yes
8240 else
8241 lt_cv_ld_exported_symbols_list=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS=$save_LDFLAGS
8246
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8249 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8252 $as_echo_n "checking for -force_load linker flag... " >&6; }
8253 if ${lt_cv_ld_force_load+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255 else
8256 lt_cv_ld_force_load=no
8257 cat > conftest.c << _LT_EOF
8258 int forced_loaded() { return 2;}
8259 _LT_EOF
8260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8262 echo "$AR cru libconftest.a conftest.o" >&5
8263 $AR cru libconftest.a conftest.o 2>&5
8264 echo "$RANLIB libconftest.a" >&5
8265 $RANLIB libconftest.a 2>&5
8266 cat > conftest.c << _LT_EOF
8267 int main() { return 0;}
8268 _LT_EOF
8269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271 _lt_result=$?
8272 if test -s conftest.err && $GREP force_load conftest.err; then
8273 cat conftest.err >&5
8274 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8275 lt_cv_ld_force_load=yes
8276 else
8277 cat conftest.err >&5
8278 fi
8279 rm -f conftest.err libconftest.a conftest conftest.c
8280 rm -rf conftest.dSYM
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284 $as_echo "$lt_cv_ld_force_load" >&6; }
8285 case $host_os in
8286 rhapsody* | darwin1.[012])
8287 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8288 darwin1.*)
8289 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8290 darwin*) # darwin 5.x on
8291 # if running on 10.5 or later, the deployment target defaults
8292 # to the OS version, if on x86, and 10.4, the deployment
8293 # target defaults to 10.4. Don't you love it?
8294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8297 10.[012][,.]*)
8298 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8299 10.*)
8300 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8301 esac
8302 ;;
8303 esac
8304 if test yes = "$lt_cv_apple_cc_single_mod"; then
8305 _lt_dar_single_mod='$single_module'
8306 fi
8307 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8308 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8309 else
8310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8311 fi
8312 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8313 _lt_dsymutil='~$DSYMUTIL $lib || :'
8314 else
8315 _lt_dsymutil=
8316 fi
8317 ;;
8318 esac
8319
8320 # func_munge_path_list VARIABLE PATH
8321 # -----------------------------------
8322 # VARIABLE is name of variable containing _space_ separated list of
8323 # directories to be munged by the contents of PATH, which is string
8324 # having a format:
8325 # "DIR[:DIR]:"
8326 # string "DIR[ DIR]" will be prepended to VARIABLE
8327 # ":DIR[:DIR]"
8328 # string "DIR[ DIR]" will be appended to VARIABLE
8329 # "DIRP[:DIRP]::[DIRA:]DIRA"
8330 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8331 # "DIRA[ DIRA]" will be appended to VARIABLE
8332 # "DIR[:DIR]"
8333 # VARIABLE will be replaced by "DIR[ DIR]"
8334 func_munge_path_list ()
8335 {
8336 case x$2 in
8337 x)
8338 ;;
8339 *:)
8340 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8341 ;;
8342 x:*)
8343 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8344 ;;
8345 *::*)
8346 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8347 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8348 ;;
8349 *)
8350 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8351 ;;
8352 esac
8353 }
8354
8355 ac_ext=c
8356 ac_cpp='$CPP $CPPFLAGS'
8357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8362 # On Suns, sometimes $CPP names a directory.
8363 if test -n "$CPP" && test -d "$CPP"; then
8364 CPP=
8365 fi
8366 if test -z "$CPP"; then
8367 if ${ac_cv_prog_CPP+:} false; then :
8368 $as_echo_n "(cached) " >&6
8369 else
8370 # Double quotes because CPP needs to be expanded
8371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8372 do
8373 ac_preproc_ok=false
8374 for ac_c_preproc_warn_flag in '' yes
8375 do
8376 # Use a header file that comes with gcc, so configuring glibc
8377 # with a fresh cross-compiler works.
8378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8379 # <limits.h> exists even on freestanding compilers.
8380 # On the NeXT, cc -E runs the code through the compiler's parser,
8381 # not just through cpp. "Syntax error" is here to catch this case.
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 #ifdef __STDC__
8385 # include <limits.h>
8386 #else
8387 # include <assert.h>
8388 #endif
8389 Syntax error
8390 _ACEOF
8391 if ac_fn_c_try_cpp "$LINENO"; then :
8392
8393 else
8394 # Broken: fails on valid input.
8395 continue
8396 fi
8397 rm -f conftest.err conftest.i conftest.$ac_ext
8398
8399 # OK, works on sane cases. Now check whether nonexistent headers
8400 # can be detected and how.
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <ac_nonexistent.h>
8404 _ACEOF
8405 if ac_fn_c_try_cpp "$LINENO"; then :
8406 # Broken: success on invalid input.
8407 continue
8408 else
8409 # Passes both tests.
8410 ac_preproc_ok=:
8411 break
8412 fi
8413 rm -f conftest.err conftest.i conftest.$ac_ext
8414
8415 done
8416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8417 rm -f conftest.i conftest.err conftest.$ac_ext
8418 if $ac_preproc_ok; then :
8419 break
8420 fi
8421
8422 done
8423 ac_cv_prog_CPP=$CPP
8424
8425 fi
8426 CPP=$ac_cv_prog_CPP
8427 else
8428 ac_cv_prog_CPP=$CPP
8429 fi
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8431 $as_echo "$CPP" >&6; }
8432 ac_preproc_ok=false
8433 for ac_c_preproc_warn_flag in '' yes
8434 do
8435 # Use a header file that comes with gcc, so configuring glibc
8436 # with a fresh cross-compiler works.
8437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8438 # <limits.h> exists even on freestanding compilers.
8439 # On the NeXT, cc -E runs the code through the compiler's parser,
8440 # not just through cpp. "Syntax error" is here to catch this case.
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8443 #ifdef __STDC__
8444 # include <limits.h>
8445 #else
8446 # include <assert.h>
8447 #endif
8448 Syntax error
8449 _ACEOF
8450 if ac_fn_c_try_cpp "$LINENO"; then :
8451
8452 else
8453 # Broken: fails on valid input.
8454 continue
8455 fi
8456 rm -f conftest.err conftest.i conftest.$ac_ext
8457
8458 # OK, works on sane cases. Now check whether nonexistent headers
8459 # can be detected and how.
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 #include <ac_nonexistent.h>
8463 _ACEOF
8464 if ac_fn_c_try_cpp "$LINENO"; then :
8465 # Broken: success on invalid input.
8466 continue
8467 else
8468 # Passes both tests.
8469 ac_preproc_ok=:
8470 break
8471 fi
8472 rm -f conftest.err conftest.i conftest.$ac_ext
8473
8474 done
8475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8476 rm -f conftest.i conftest.err conftest.$ac_ext
8477 if $ac_preproc_ok; then :
8478
8479 else
8480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8482 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8483 See \`config.log' for more details" "$LINENO" 5; }
8484 fi
8485
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491
8492
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8494 $as_echo_n "checking for ANSI C header files... " >&6; }
8495 if ${ac_cv_header_stdc+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499 /* end confdefs.h. */
8500 #include <stdlib.h>
8501 #include <stdarg.h>
8502 #include <string.h>
8503 #include <float.h>
8504
8505 int
8506 main ()
8507 {
8508
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 if ac_fn_c_try_compile "$LINENO"; then :
8514 ac_cv_header_stdc=yes
8515 else
8516 ac_cv_header_stdc=no
8517 fi
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519
8520 if test $ac_cv_header_stdc = yes; then
8521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 #include <string.h>
8525
8526 _ACEOF
8527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8528 $EGREP "memchr" >/dev/null 2>&1; then :
8529
8530 else
8531 ac_cv_header_stdc=no
8532 fi
8533 rm -f conftest*
8534
8535 fi
8536
8537 if test $ac_cv_header_stdc = yes; then
8538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 #include <stdlib.h>
8542
8543 _ACEOF
8544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8545 $EGREP "free" >/dev/null 2>&1; then :
8546
8547 else
8548 ac_cv_header_stdc=no
8549 fi
8550 rm -f conftest*
8551
8552 fi
8553
8554 if test $ac_cv_header_stdc = yes; then
8555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8556 if test "$cross_compiling" = yes; then :
8557 :
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #include <ctype.h>
8562 #include <stdlib.h>
8563 #if ((' ' & 0x0FF) == 0x020)
8564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8566 #else
8567 # define ISLOWER(c) \
8568 (('a' <= (c) && (c) <= 'i') \
8569 || ('j' <= (c) && (c) <= 'r') \
8570 || ('s' <= (c) && (c) <= 'z'))
8571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8572 #endif
8573
8574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8575 int
8576 main ()
8577 {
8578 int i;
8579 for (i = 0; i < 256; i++)
8580 if (XOR (islower (i), ISLOWER (i))
8581 || toupper (i) != TOUPPER (i))
8582 return 2;
8583 return 0;
8584 }
8585 _ACEOF
8586 if ac_fn_c_try_run "$LINENO"; then :
8587
8588 else
8589 ac_cv_header_stdc=no
8590 fi
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8592 conftest.$ac_objext conftest.beam conftest.$ac_ext
8593 fi
8594
8595 fi
8596 fi
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8598 $as_echo "$ac_cv_header_stdc" >&6; }
8599 if test $ac_cv_header_stdc = yes; then
8600
8601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8602
8603 fi
8604
8605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8607 inttypes.h stdint.h unistd.h
8608 do :
8609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8610 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8611 "
8612 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8615 _ACEOF
8616
8617 fi
8618
8619 done
8620
8621
8622 for ac_header in dlfcn.h
8623 do :
8624 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8625 "
8626 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8627 cat >>confdefs.h <<_ACEOF
8628 #define HAVE_DLFCN_H 1
8629 _ACEOF
8630
8631 fi
8632
8633 done
8634
8635
8636
8637
8638
8639 # Set options
8640
8641
8642
8643 enable_dlopen=no
8644
8645
8646 enable_win32_dll=no
8647
8648
8649 # Check whether --enable-shared was given.
8650 if test "${enable_shared+set}" = set; then :
8651 enableval=$enable_shared; p=${PACKAGE-default}
8652 case $enableval in
8653 yes) enable_shared=yes ;;
8654 no) enable_shared=no ;;
8655 *)
8656 enable_shared=no
8657 # Look at the argument we got. We use all the common list separators.
8658 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8659 for pkg in $enableval; do
8660 IFS=$lt_save_ifs
8661 if test "X$pkg" = "X$p"; then
8662 enable_shared=yes
8663 fi
8664 done
8665 IFS=$lt_save_ifs
8666 ;;
8667 esac
8668 else
8669 enable_shared=yes
8670 fi
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682 # Check whether --with-pic was given.
8683 if test "${with_pic+set}" = set; then :
8684 withval=$with_pic; lt_p=${PACKAGE-default}
8685 case $withval in
8686 yes|no) pic_mode=$withval ;;
8687 *)
8688 pic_mode=default
8689 # Look at the argument we got. We use all the common list separators.
8690 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8691 for lt_pkg in $withval; do
8692 IFS=$lt_save_ifs
8693 if test "X$lt_pkg" = "X$lt_p"; then
8694 pic_mode=yes
8695 fi
8696 done
8697 IFS=$lt_save_ifs
8698 ;;
8699 esac
8700 else
8701 pic_mode=default
8702 fi
8703
8704
8705
8706
8707
8708
8709
8710
8711 # Check whether --enable-fast-install was given.
8712 if test "${enable_fast_install+set}" = set; then :
8713 enableval=$enable_fast_install; p=${PACKAGE-default}
8714 case $enableval in
8715 yes) enable_fast_install=yes ;;
8716 no) enable_fast_install=no ;;
8717 *)
8718 enable_fast_install=no
8719 # Look at the argument we got. We use all the common list separators.
8720 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8721 for pkg in $enableval; do
8722 IFS=$lt_save_ifs
8723 if test "X$pkg" = "X$p"; then
8724 enable_fast_install=yes
8725 fi
8726 done
8727 IFS=$lt_save_ifs
8728 ;;
8729 esac
8730 else
8731 enable_fast_install=yes
8732 fi
8733
8734
8735
8736
8737
8738
8739
8740
8741 shared_archive_member_spec=
8742 case $host,$enable_shared in
8743 power*-*-aix[5-9]*,yes)
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8745 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8746
8747 # Check whether --with-aix-soname was given.
8748 if test "${with_aix_soname+set}" = set; then :
8749 withval=$with_aix_soname; case $withval in
8750 aix|svr4|both)
8751 ;;
8752 *)
8753 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8754 ;;
8755 esac
8756 lt_cv_with_aix_soname=$with_aix_soname
8757 else
8758 if ${lt_cv_with_aix_soname+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 lt_cv_with_aix_soname=aix
8762 fi
8763
8764 with_aix_soname=$lt_cv_with_aix_soname
8765 fi
8766
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8768 $as_echo "$with_aix_soname" >&6; }
8769 if test aix != "$with_aix_soname"; then
8770 # For the AIX way of multilib, we name the shared archive member
8771 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8772 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8773 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8774 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8775 if test 64 = "${OBJECT_MODE-32}"; then
8776 shared_archive_member_spec=shr_64
8777 else
8778 shared_archive_member_spec=shr
8779 fi
8780 fi
8781 ;;
8782 *)
8783 with_aix_soname=aix
8784 ;;
8785 esac
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 # This can be used to rebuild libtool when needed
8797 LIBTOOL_DEPS=$ltmain
8798
8799 # Always use our own libtool.
8800 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 test -z "$LN_S" && LN_S="ln -s"
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 if test -n "${ZSH_VERSION+set}"; then
8847 setopt NO_GLOB_SUBST
8848 fi
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8851 $as_echo_n "checking for objdir... " >&6; }
8852 if ${lt_cv_objdir+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 rm -f .libs 2>/dev/null
8856 mkdir .libs 2>/dev/null
8857 if test -d .libs; then
8858 lt_cv_objdir=.libs
8859 else
8860 # MS-DOS does not allow filenames that begin with a dot.
8861 lt_cv_objdir=_libs
8862 fi
8863 rmdir .libs 2>/dev/null
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8866 $as_echo "$lt_cv_objdir" >&6; }
8867 objdir=$lt_cv_objdir
8868
8869
8870
8871
8872
8873 cat >>confdefs.h <<_ACEOF
8874 #define LT_OBJDIR "$lt_cv_objdir/"
8875 _ACEOF
8876
8877
8878
8879
8880 case $host_os in
8881 aix3*)
8882 # AIX sometimes has problems with the GCC collect2 program. For some
8883 # reason, if we set the COLLECT_NAMES environment variable, the problems
8884 # vanish in a puff of smoke.
8885 if test set != "${COLLECT_NAMES+set}"; then
8886 COLLECT_NAMES=
8887 export COLLECT_NAMES
8888 fi
8889 ;;
8890 esac
8891
8892 # Global variables:
8893 ofile=libtool
8894 can_build_shared=yes
8895
8896 # All known linkers require a '.a' archive for static linking (except MSVC,
8897 # which needs '.lib').
8898 libext=a
8899
8900 with_gnu_ld=$lt_cv_prog_gnu_ld
8901
8902 old_CC=$CC
8903 old_CFLAGS=$CFLAGS
8904
8905 # Set sane defaults for various variables
8906 test -z "$CC" && CC=cc
8907 test -z "$LTCC" && LTCC=$CC
8908 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8909 test -z "$LD" && LD=ld
8910 test -z "$ac_objext" && ac_objext=o
8911
8912 func_cc_basename $compiler
8913 cc_basename=$func_cc_basename_result
8914
8915
8916 # Only perform the check for file, if the check method requires it
8917 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8918 case $deplibs_check_method in
8919 file_magic*)
8920 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8922 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8923 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925 else
8926 case $MAGIC_CMD in
8927 [\\/*] | ?:[\\/]*)
8928 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8929 ;;
8930 *)
8931 lt_save_MAGIC_CMD=$MAGIC_CMD
8932 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8934 for ac_dir in $ac_dummy; do
8935 IFS=$lt_save_ifs
8936 test -z "$ac_dir" && ac_dir=.
8937 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8938 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8939 if test -n "$file_magic_test_file"; then
8940 case $deplibs_check_method in
8941 "file_magic "*)
8942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8943 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8945 $EGREP "$file_magic_regex" > /dev/null; then
8946 :
8947 else
8948 cat <<_LT_EOF 1>&2
8949
8950 *** Warning: the command libtool uses to detect shared libraries,
8951 *** $file_magic_cmd, produces output that libtool cannot recognize.
8952 *** The result is that libtool may fail to recognize shared libraries
8953 *** as such. This will affect the creation of libtool libraries that
8954 *** depend on shared libraries, but programs linked with such libtool
8955 *** libraries will work regardless of this problem. Nevertheless, you
8956 *** may want to report the problem to your system manager and/or to
8957 *** [email protected]
8958
8959 _LT_EOF
8960 fi ;;
8961 esac
8962 fi
8963 break
8964 fi
8965 done
8966 IFS=$lt_save_ifs
8967 MAGIC_CMD=$lt_save_MAGIC_CMD
8968 ;;
8969 esac
8970 fi
8971
8972 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8973 if test -n "$MAGIC_CMD"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8975 $as_echo "$MAGIC_CMD" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 fi
8980
8981
8982
8983
8984
8985 if test -z "$lt_cv_path_MAGIC_CMD"; then
8986 if test -n "$ac_tool_prefix"; then
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8988 $as_echo_n "checking for file... " >&6; }
8989 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8990 $as_echo_n "(cached) " >&6
8991 else
8992 case $MAGIC_CMD in
8993 [\\/*] | ?:[\\/]*)
8994 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8995 ;;
8996 *)
8997 lt_save_MAGIC_CMD=$MAGIC_CMD
8998 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9000 for ac_dir in $ac_dummy; do
9001 IFS=$lt_save_ifs
9002 test -z "$ac_dir" && ac_dir=.
9003 if test -f "$ac_dir/file"; then
9004 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9005 if test -n "$file_magic_test_file"; then
9006 case $deplibs_check_method in
9007 "file_magic "*)
9008 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9009 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9011 $EGREP "$file_magic_regex" > /dev/null; then
9012 :
9013 else
9014 cat <<_LT_EOF 1>&2
9015
9016 *** Warning: the command libtool uses to detect shared libraries,
9017 *** $file_magic_cmd, produces output that libtool cannot recognize.
9018 *** The result is that libtool may fail to recognize shared libraries
9019 *** as such. This will affect the creation of libtool libraries that
9020 *** depend on shared libraries, but programs linked with such libtool
9021 *** libraries will work regardless of this problem. Nevertheless, you
9022 *** may want to report the problem to your system manager and/or to
9023 *** [email protected]
9024
9025 _LT_EOF
9026 fi ;;
9027 esac
9028 fi
9029 break
9030 fi
9031 done
9032 IFS=$lt_save_ifs
9033 MAGIC_CMD=$lt_save_MAGIC_CMD
9034 ;;
9035 esac
9036 fi
9037
9038 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9039 if test -n "$MAGIC_CMD"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9041 $as_echo "$MAGIC_CMD" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9045 fi
9046
9047
9048 else
9049 MAGIC_CMD=:
9050 fi
9051 fi
9052
9053 fi
9054 ;;
9055 esac
9056
9057 # Use C for the default configuration in the libtool script
9058
9059 lt_save_CC=$CC
9060 ac_ext=c
9061 ac_cpp='$CPP $CPPFLAGS'
9062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9065
9066
9067 # Source file extension for C test sources.
9068 ac_ext=c
9069
9070 # Object file extension for compiled C test sources.
9071 objext=o
9072 objext=$objext
9073
9074 # Code to be used in simple compile tests
9075 lt_simple_compile_test_code="int some_variable = 0;"
9076
9077 # Code to be used in simple link tests
9078 lt_simple_link_test_code='int main(){return(0);}'
9079
9080
9081
9082
9083
9084
9085
9086 # If no C compiler was specified, use CC.
9087 LTCC=${LTCC-"$CC"}
9088
9089 # If no C compiler flags were specified, use CFLAGS.
9090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9091
9092 # Allow CC to be a program name with arguments.
9093 compiler=$CC
9094
9095 # Save the default compiler, since it gets overwritten when the other
9096 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9097 compiler_DEFAULT=$CC
9098
9099 # save warnings/boilerplate of simple test code
9100 ac_outfile=conftest.$ac_objext
9101 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9103 _lt_compiler_boilerplate=`cat conftest.err`
9104 $RM conftest*
9105
9106 ac_outfile=conftest.$ac_objext
9107 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9109 _lt_linker_boilerplate=`cat conftest.err`
9110 $RM -r conftest*
9111
9112
9113 ## CAVEAT EMPTOR:
9114 ## There is no encapsulation within the following macros, do not change
9115 ## the running order or otherwise move them around unless you know exactly
9116 ## what you are doing...
9117 if test -n "$compiler"; then
9118
9119 lt_prog_compiler_no_builtin_flag=
9120
9121 if test yes = "$GCC"; then
9122 case $cc_basename in
9123 nvcc*)
9124 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9125 *)
9126 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9127 esac
9128
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9130 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9131 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 lt_cv_prog_compiler_rtti_exceptions=no
9135 ac_outfile=conftest.$ac_objext
9136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9137 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9138 # Insert the option either (1) after the last *FLAGS variable, or
9139 # (2) before a word containing "conftest.", or (3) at the end.
9140 # Note that $ac_compile itself does not contain backslashes and begins
9141 # with a dollar sign (not a hyphen), so the echo should work correctly.
9142 # The option is referenced via a variable to avoid confusing sed.
9143 lt_compile=`echo "$ac_compile" | $SED \
9144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9146 -e 's:$: $lt_compiler_flag:'`
9147 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9148 (eval "$lt_compile" 2>conftest.err)
9149 ac_status=$?
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 if (exit $ac_status) && test -s "$ac_outfile"; then
9153 # The compiler can only warn and ignore the option if not recognized
9154 # So say no if there are warnings other than the usual output.
9155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9158 lt_cv_prog_compiler_rtti_exceptions=yes
9159 fi
9160 fi
9161 $RM conftest*
9162
9163 fi
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9165 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9166
9167 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9168 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9169 else
9170 :
9171 fi
9172
9173 fi
9174
9175
9176
9177
9178
9179
9180 lt_prog_compiler_wl=
9181 lt_prog_compiler_pic=
9182 lt_prog_compiler_static=
9183
9184
9185 if test yes = "$GCC"; then
9186 lt_prog_compiler_wl='-Wl,'
9187 lt_prog_compiler_static='-static'
9188
9189 case $host_os in
9190 aix*)
9191 # All AIX code is PIC.
9192 if test ia64 = "$host_cpu"; then
9193 # AIX 5 now supports IA64 processor
9194 lt_prog_compiler_static='-Bstatic'
9195 fi
9196 lt_prog_compiler_pic='-fPIC'
9197 ;;
9198
9199 amigaos*)
9200 case $host_cpu in
9201 powerpc)
9202 # see comment about AmigaOS4 .so support
9203 lt_prog_compiler_pic='-fPIC'
9204 ;;
9205 m68k)
9206 # FIXME: we need at least 68020 code to build shared libraries, but
9207 # adding the '-m68020' flag to GCC prevents building anything better,
9208 # like '-m68040'.
9209 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9210 ;;
9211 esac
9212 ;;
9213
9214 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9215 # PIC is the default for these OSes.
9216 ;;
9217
9218 mingw* | cygwin* | pw32* | os2* | cegcc*)
9219 # This hack is so that the source file can tell whether it is being
9220 # built for inclusion in a dll (and should export symbols for example).
9221 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9222 # (--disable-auto-import) libraries
9223 lt_prog_compiler_pic='-DDLL_EXPORT'
9224 case $host_os in
9225 os2*)
9226 lt_prog_compiler_static='$wl-static'
9227 ;;
9228 esac
9229 ;;
9230
9231 darwin* | rhapsody*)
9232 # PIC is the default on this platform
9233 # Common symbols not allowed in MH_DYLIB files
9234 lt_prog_compiler_pic='-fno-common'
9235 ;;
9236
9237 haiku*)
9238 # PIC is the default for Haiku.
9239 # The "-static" flag exists, but is broken.
9240 lt_prog_compiler_static=
9241 ;;
9242
9243 hpux*)
9244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9246 # sets the default TLS model and affects inlining.
9247 case $host_cpu in
9248 hppa*64*)
9249 # +Z the default
9250 ;;
9251 *)
9252 lt_prog_compiler_pic='-fPIC'
9253 ;;
9254 esac
9255 ;;
9256
9257 interix[3-9]*)
9258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9259 # Instead, we relocate shared libraries at runtime.
9260 ;;
9261
9262 msdosdjgpp*)
9263 # Just because we use GCC doesn't mean we suddenly get shared libraries
9264 # on systems that don't support them.
9265 lt_prog_compiler_can_build_shared=no
9266 enable_shared=no
9267 ;;
9268
9269 *nto* | *qnx*)
9270 # QNX uses GNU C++, but need to define -shared option too, otherwise
9271 # it will coredump.
9272 lt_prog_compiler_pic='-fPIC -shared'
9273 ;;
9274
9275 sysv4*MP*)
9276 if test -d /usr/nec; then
9277 lt_prog_compiler_pic=-Kconform_pic
9278 fi
9279 ;;
9280
9281 *)
9282 lt_prog_compiler_pic='-fPIC'
9283 ;;
9284 esac
9285
9286 case $cc_basename in
9287 nvcc*) # Cuda Compiler Driver 2.2
9288 lt_prog_compiler_wl='-Xlinker '
9289 if test -n "$lt_prog_compiler_pic"; then
9290 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9291 fi
9292 ;;
9293 esac
9294 else
9295 # PORTME Check for flag to pass linker flags through the system compiler.
9296 case $host_os in
9297 aix*)
9298 lt_prog_compiler_wl='-Wl,'
9299 if test ia64 = "$host_cpu"; then
9300 # AIX 5 now supports IA64 processor
9301 lt_prog_compiler_static='-Bstatic'
9302 else
9303 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9304 fi
9305 ;;
9306
9307 darwin* | rhapsody*)
9308 # PIC is the default on this platform
9309 # Common symbols not allowed in MH_DYLIB files
9310 lt_prog_compiler_pic='-fno-common'
9311 case $cc_basename in
9312 nagfor*)
9313 # NAG Fortran compiler
9314 lt_prog_compiler_wl='-Wl,-Wl,,'
9315 lt_prog_compiler_pic='-PIC'
9316 lt_prog_compiler_static='-Bstatic'
9317 ;;
9318 esac
9319 ;;
9320
9321 mingw* | cygwin* | pw32* | os2* | cegcc*)
9322 # This hack is so that the source file can tell whether it is being
9323 # built for inclusion in a dll (and should export symbols for example).
9324 lt_prog_compiler_pic='-DDLL_EXPORT'
9325 case $host_os in
9326 os2*)
9327 lt_prog_compiler_static='$wl-static'
9328 ;;
9329 esac
9330 ;;
9331
9332 hpux9* | hpux10* | hpux11*)
9333 lt_prog_compiler_wl='-Wl,'
9334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9335 # not for PA HP-UX.
9336 case $host_cpu in
9337 hppa*64*|ia64*)
9338 # +Z the default
9339 ;;
9340 *)
9341 lt_prog_compiler_pic='+Z'
9342 ;;
9343 esac
9344 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9345 lt_prog_compiler_static='$wl-a ${wl}archive'
9346 ;;
9347
9348 irix5* | irix6* | nonstopux*)
9349 lt_prog_compiler_wl='-Wl,'
9350 # PIC (with -KPIC) is the default.
9351 lt_prog_compiler_static='-non_shared'
9352 ;;
9353
9354 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9355 case $cc_basename in
9356 # old Intel for x86_64, which still supported -KPIC.
9357 ecc*)
9358 lt_prog_compiler_wl='-Wl,'
9359 lt_prog_compiler_pic='-KPIC'
9360 lt_prog_compiler_static='-static'
9361 ;;
9362 # icc used to be incompatible with GCC.
9363 # ICC 10 doesn't accept -KPIC any more.
9364 icc* | ifort*)
9365 lt_prog_compiler_wl='-Wl,'
9366 lt_prog_compiler_pic='-fPIC'
9367 lt_prog_compiler_static='-static'
9368 ;;
9369 # Lahey Fortran 8.1.
9370 lf95*)
9371 lt_prog_compiler_wl='-Wl,'
9372 lt_prog_compiler_pic='--shared'
9373 lt_prog_compiler_static='--static'
9374 ;;
9375 nagfor*)
9376 # NAG Fortran compiler
9377 lt_prog_compiler_wl='-Wl,-Wl,,'
9378 lt_prog_compiler_pic='-PIC'
9379 lt_prog_compiler_static='-Bstatic'
9380 ;;
9381 tcc*)
9382 # Fabrice Bellard et al's Tiny C Compiler
9383 lt_prog_compiler_wl='-Wl,'
9384 lt_prog_compiler_pic='-fPIC'
9385 lt_prog_compiler_static='-static'
9386 ;;
9387 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9388 # Portland Group compilers (*not* the Pentium gcc compiler,
9389 # which looks to be a dead project)
9390 lt_prog_compiler_wl='-Wl,'
9391 lt_prog_compiler_pic='-fpic'
9392 lt_prog_compiler_static='-Bstatic'
9393 ;;
9394 ccc*)
9395 lt_prog_compiler_wl='-Wl,'
9396 # All Alpha code is PIC.
9397 lt_prog_compiler_static='-non_shared'
9398 ;;
9399 xl* | bgxl* | bgf* | mpixl*)
9400 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9401 lt_prog_compiler_wl='-Wl,'
9402 lt_prog_compiler_pic='-qpic'
9403 lt_prog_compiler_static='-qstaticlink'
9404 ;;
9405 *)
9406 case `$CC -V 2>&1 | sed 5q` in
9407 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9408 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9409 lt_prog_compiler_pic='-KPIC'
9410 lt_prog_compiler_static='-Bstatic'
9411 lt_prog_compiler_wl=''
9412 ;;
9413 *Sun\ F* | *Sun*Fortran*)
9414 lt_prog_compiler_pic='-KPIC'
9415 lt_prog_compiler_static='-Bstatic'
9416 lt_prog_compiler_wl='-Qoption ld '
9417 ;;
9418 *Sun\ C*)
9419 # Sun C 5.9
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 lt_prog_compiler_wl='-Wl,'
9423 ;;
9424 *Intel*\ [CF]*Compiler*)
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_pic='-fPIC'
9427 lt_prog_compiler_static='-static'
9428 ;;
9429 *Portland\ Group*)
9430 lt_prog_compiler_wl='-Wl,'
9431 lt_prog_compiler_pic='-fpic'
9432 lt_prog_compiler_static='-Bstatic'
9433 ;;
9434 esac
9435 ;;
9436 esac
9437 ;;
9438
9439 newsos6)
9440 lt_prog_compiler_pic='-KPIC'
9441 lt_prog_compiler_static='-Bstatic'
9442 ;;
9443
9444 *nto* | *qnx*)
9445 # QNX uses GNU C++, but need to define -shared option too, otherwise
9446 # it will coredump.
9447 lt_prog_compiler_pic='-fPIC -shared'
9448 ;;
9449
9450 osf3* | osf4* | osf5*)
9451 lt_prog_compiler_wl='-Wl,'
9452 # All OSF/1 code is PIC.
9453 lt_prog_compiler_static='-non_shared'
9454 ;;
9455
9456 rdos*)
9457 lt_prog_compiler_static='-non_shared'
9458 ;;
9459
9460 solaris*)
9461 lt_prog_compiler_pic='-KPIC'
9462 lt_prog_compiler_static='-Bstatic'
9463 case $cc_basename in
9464 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9465 lt_prog_compiler_wl='-Qoption ld ';;
9466 *)
9467 lt_prog_compiler_wl='-Wl,';;
9468 esac
9469 ;;
9470
9471 sunos4*)
9472 lt_prog_compiler_wl='-Qoption ld '
9473 lt_prog_compiler_pic='-PIC'
9474 lt_prog_compiler_static='-Bstatic'
9475 ;;
9476
9477 sysv4 | sysv4.2uw2* | sysv4.3*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 ;;
9482
9483 sysv4*MP*)
9484 if test -d /usr/nec; then
9485 lt_prog_compiler_pic='-Kconform_pic'
9486 lt_prog_compiler_static='-Bstatic'
9487 fi
9488 ;;
9489
9490 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9491 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9494 ;;
9495
9496 unicos*)
9497 lt_prog_compiler_wl='-Wl,'
9498 lt_prog_compiler_can_build_shared=no
9499 ;;
9500
9501 uts4*)
9502 lt_prog_compiler_pic='-pic'
9503 lt_prog_compiler_static='-Bstatic'
9504 ;;
9505
9506 *)
9507 lt_prog_compiler_can_build_shared=no
9508 ;;
9509 esac
9510 fi
9511
9512 case $host_os in
9513 # For platforms that do not support PIC, -DPIC is meaningless:
9514 *djgpp*)
9515 lt_prog_compiler_pic=
9516 ;;
9517 *)
9518 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9519 ;;
9520 esac
9521
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9523 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9524 if ${lt_cv_prog_compiler_pic+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9528 fi
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9530 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9531 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9532
9533 #
9534 # Check to make sure the PIC flag actually works.
9535 #
9536 if test -n "$lt_prog_compiler_pic"; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9538 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9539 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 lt_cv_prog_compiler_pic_works=no
9543 ac_outfile=conftest.$ac_objext
9544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9545 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9546 # Insert the option either (1) after the last *FLAGS variable, or
9547 # (2) before a word containing "conftest.", or (3) at the end.
9548 # Note that $ac_compile itself does not contain backslashes and begins
9549 # with a dollar sign (not a hyphen), so the echo should work correctly.
9550 # The option is referenced via a variable to avoid confusing sed.
9551 lt_compile=`echo "$ac_compile" | $SED \
9552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9554 -e 's:$: $lt_compiler_flag:'`
9555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9556 (eval "$lt_compile" 2>conftest.err)
9557 ac_status=$?
9558 cat conftest.err >&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 if (exit $ac_status) && test -s "$ac_outfile"; then
9561 # The compiler can only warn and ignore the option if not recognized
9562 # So say no if there are warnings other than the usual output.
9563 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9566 lt_cv_prog_compiler_pic_works=yes
9567 fi
9568 fi
9569 $RM conftest*
9570
9571 fi
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9573 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9574
9575 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9576 case $lt_prog_compiler_pic in
9577 "" | " "*) ;;
9578 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9579 esac
9580 else
9581 lt_prog_compiler_pic=
9582 lt_prog_compiler_can_build_shared=no
9583 fi
9584
9585 fi
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597 #
9598 # Check to make sure the static flag actually works.
9599 #
9600 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9602 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9603 if ${lt_cv_prog_compiler_static_works+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 lt_cv_prog_compiler_static_works=no
9607 save_LDFLAGS=$LDFLAGS
9608 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9609 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9610 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9611 # The linker can only warn and ignore the option if not recognized
9612 # So say no if there are warnings
9613 if test -s conftest.err; then
9614 # Append any errors to the config.log.
9615 cat conftest.err 1>&5
9616 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9618 if diff conftest.exp conftest.er2 >/dev/null; then
9619 lt_cv_prog_compiler_static_works=yes
9620 fi
9621 else
9622 lt_cv_prog_compiler_static_works=yes
9623 fi
9624 fi
9625 $RM -r conftest*
9626 LDFLAGS=$save_LDFLAGS
9627
9628 fi
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9630 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9631
9632 if test yes = "$lt_cv_prog_compiler_static_works"; then
9633 :
9634 else
9635 lt_prog_compiler_static=
9636 fi
9637
9638
9639
9640
9641
9642
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9645 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9646 if ${lt_cv_prog_compiler_c_o+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 lt_cv_prog_compiler_c_o=no
9650 $RM -r conftest 2>/dev/null
9651 mkdir conftest
9652 cd conftest
9653 mkdir out
9654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9655
9656 lt_compiler_flag="-o out/conftest2.$ac_objext"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 lt_compile=`echo "$ac_compile" | $SED \
9662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9664 -e 's:$: $lt_compiler_flag:'`
9665 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9666 (eval "$lt_compile" 2>out/conftest.err)
9667 ac_status=$?
9668 cat out/conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9671 then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings
9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_c_o=yes
9678 fi
9679 fi
9680 chmod u+w . 2>&5
9681 $RM conftest*
9682 # SGI C++ compiler will create directory out/ii_files/ for
9683 # template instantiation
9684 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9685 $RM out/* && rmdir out
9686 cd ..
9687 $RM -r conftest
9688 $RM conftest*
9689
9690 fi
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9692 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9693
9694
9695
9696
9697
9698
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9700 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9701 if ${lt_cv_prog_compiler_c_o+:} false; then :
9702 $as_echo_n "(cached) " >&6
9703 else
9704 lt_cv_prog_compiler_c_o=no
9705 $RM -r conftest 2>/dev/null
9706 mkdir conftest
9707 cd conftest
9708 mkdir out
9709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9710
9711 lt_compiler_flag="-o out/conftest2.$ac_objext"
9712 # Insert the option either (1) after the last *FLAGS variable, or
9713 # (2) before a word containing "conftest.", or (3) at the end.
9714 # Note that $ac_compile itself does not contain backslashes and begins
9715 # with a dollar sign (not a hyphen), so the echo should work correctly.
9716 lt_compile=`echo "$ac_compile" | $SED \
9717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9719 -e 's:$: $lt_compiler_flag:'`
9720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9721 (eval "$lt_compile" 2>out/conftest.err)
9722 ac_status=$?
9723 cat out/conftest.err >&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9726 then
9727 # The compiler can only warn and ignore the option if not recognized
9728 # So say no if there are warnings
9729 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9730 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9731 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler_c_o=yes
9733 fi
9734 fi
9735 chmod u+w . 2>&5
9736 $RM conftest*
9737 # SGI C++ compiler will create directory out/ii_files/ for
9738 # template instantiation
9739 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9740 $RM out/* && rmdir out
9741 cd ..
9742 $RM -r conftest
9743 $RM conftest*
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9747 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9748
9749
9750
9751
9752 hard_links=nottested
9753 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9754 # do not overwrite the value of need_locks provided by the user
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9756 $as_echo_n "checking if we can lock with hard links... " >&6; }
9757 hard_links=yes
9758 $RM conftest*
9759 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9760 touch conftest.a
9761 ln conftest.a conftest.b 2>&5 || hard_links=no
9762 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9764 $as_echo "$hard_links" >&6; }
9765 if test no = "$hard_links"; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9767 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9768 need_locks=warn
9769 fi
9770 else
9771 need_locks=no
9772 fi
9773
9774
9775
9776
9777
9778
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9780 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9781
9782 runpath_var=
9783 allow_undefined_flag=
9784 always_export_symbols=no
9785 archive_cmds=
9786 archive_expsym_cmds=
9787 compiler_needs_object=no
9788 enable_shared_with_static_runtimes=no
9789 export_dynamic_flag_spec=
9790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9791 hardcode_automatic=no
9792 hardcode_direct=no
9793 hardcode_direct_absolute=no
9794 hardcode_libdir_flag_spec=
9795 hardcode_libdir_separator=
9796 hardcode_minus_L=no
9797 hardcode_shlibpath_var=unsupported
9798 inherit_rpath=no
9799 link_all_deplibs=unknown
9800 module_cmds=
9801 module_expsym_cmds=
9802 old_archive_from_new_cmds=
9803 old_archive_from_expsyms_cmds=
9804 thread_safe_flag_spec=
9805 whole_archive_flag_spec=
9806 # include_expsyms should be a list of space-separated symbols to be *always*
9807 # included in the symbol list
9808 include_expsyms=
9809 # exclude_expsyms can be an extended regexp of symbols to exclude
9810 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9811 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9812 # as well as any symbol that contains 'd'.
9813 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9814 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9815 # platforms (ab)use it in PIC code, but their linkers get confused if
9816 # the symbol is explicitly referenced. Since portable code cannot
9817 # rely on this symbol name, it's probably fine to never include it in
9818 # preloaded symbol tables.
9819 # Exclude shared library initialization/finalization symbols.
9820 extract_expsyms_cmds=
9821
9822 case $host_os in
9823 cygwin* | mingw* | pw32* | cegcc*)
9824 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9825 # When not using gcc, we currently assume that we are using
9826 # Microsoft Visual C++.
9827 if test yes != "$GCC"; then
9828 with_gnu_ld=no
9829 fi
9830 ;;
9831 interix*)
9832 # we just hope/assume this is gcc and not c89 (= MSVC++)
9833 with_gnu_ld=yes
9834 ;;
9835 openbsd* | bitrig*)
9836 with_gnu_ld=no
9837 ;;
9838 linux* | k*bsd*-gnu | gnu*)
9839 link_all_deplibs=no
9840 ;;
9841 esac
9842
9843 ld_shlibs=yes
9844
9845 # On some targets, GNU ld is compatible enough with the native linker
9846 # that we're better off using the native interface for both.
9847 lt_use_gnu_ld_interface=no
9848 if test yes = "$with_gnu_ld"; then
9849 case $host_os in
9850 aix*)
9851 # The AIX port of GNU ld has always aspired to compatibility
9852 # with the native linker. However, as the warning in the GNU ld
9853 # block says, versions before 2.19.5* couldn't really create working
9854 # shared libraries, regardless of the interface used.
9855 case `$LD -v 2>&1` in
9856 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9857 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9858 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9859 *)
9860 lt_use_gnu_ld_interface=yes
9861 ;;
9862 esac
9863 ;;
9864 *)
9865 lt_use_gnu_ld_interface=yes
9866 ;;
9867 esac
9868 fi
9869
9870 if test yes = "$lt_use_gnu_ld_interface"; then
9871 # If archive_cmds runs LD, not CC, wlarc should be empty
9872 wlarc='$wl'
9873
9874 # Set some defaults for GNU ld with shared library support. These
9875 # are reset later if shared libraries are not supported. Putting them
9876 # here allows them to be overridden if necessary.
9877 runpath_var=LD_RUN_PATH
9878 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9879 export_dynamic_flag_spec='$wl--export-dynamic'
9880 # ancient GNU ld didn't support --whole-archive et. al.
9881 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9882 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9883 else
9884 whole_archive_flag_spec=
9885 fi
9886 supports_anon_versioning=no
9887 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9888 *GNU\ gold*) supports_anon_versioning=yes ;;
9889 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9890 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9891 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9892 *\ 2.11.*) ;; # other 2.11 versions
9893 *) supports_anon_versioning=yes ;;
9894 esac
9895
9896 # See if GNU ld supports shared libraries.
9897 case $host_os in
9898 aix[3-9]*)
9899 # On AIX/PPC, the GNU linker is very broken
9900 if test ia64 != "$host_cpu"; then
9901 ld_shlibs=no
9902 cat <<_LT_EOF 1>&2
9903
9904 *** Warning: the GNU linker, at least up to release 2.19, is reported
9905 *** to be unable to reliably create shared libraries on AIX.
9906 *** Therefore, libtool is disabling shared libraries support. If you
9907 *** really care for shared libraries, you may want to install binutils
9908 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9909 *** You will then need to restart the configuration process.
9910
9911 _LT_EOF
9912 fi
9913 ;;
9914
9915 amigaos*)
9916 case $host_cpu in
9917 powerpc)
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 archive_expsym_cmds=''
9921 ;;
9922 m68k)
9923 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)'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 ;;
9927 esac
9928 ;;
9929
9930 beos*)
9931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9932 allow_undefined_flag=unsupported
9933 # Joseph Beckenbach <[email protected]> says some releases of gcc
9934 # support --undefined. This deserves some investigation. FIXME
9935 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9936 else
9937 ld_shlibs=no
9938 fi
9939 ;;
9940
9941 cygwin* | mingw* | pw32* | cegcc*)
9942 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9943 # as there is no search path for DLLs.
9944 hardcode_libdir_flag_spec='-L$libdir'
9945 export_dynamic_flag_spec='$wl--export-all-symbols'
9946 allow_undefined_flag=unsupported
9947 always_export_symbols=no
9948 enable_shared_with_static_runtimes=yes
9949 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'
9950 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9951
9952 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9954 # If the export-symbols file already is a .def file, use it as
9955 # is; otherwise, prepend EXPORTS...
9956 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9957 cp $export_symbols $output_objdir/$soname.def;
9958 else
9959 echo EXPORTS > $output_objdir/$soname.def;
9960 cat $export_symbols >> $output_objdir/$soname.def;
9961 fi~
9962 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967
9968 haiku*)
9969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970 link_all_deplibs=yes
9971 ;;
9972
9973 os2*)
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_minus_L=yes
9976 allow_undefined_flag=unsupported
9977 shrext_cmds=.dll
9978 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9981 $ECHO EXPORTS >> $output_objdir/$libname.def~
9982 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9984 emximp -o $lib $output_objdir/$libname.def'
9985 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9986 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9987 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9988 $ECHO EXPORTS >> $output_objdir/$libname.def~
9989 prefix_cmds="$SED"~
9990 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9991 prefix_cmds="$prefix_cmds -e 1d";
9992 fi~
9993 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9994 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9996 emximp -o $lib $output_objdir/$libname.def'
9997 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9998 enable_shared_with_static_runtimes=yes
9999 ;;
10000
10001 interix[3-9]*)
10002 hardcode_direct=no
10003 hardcode_shlibpath_var=no
10004 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10005 export_dynamic_flag_spec='$wl-E'
10006 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10007 # Instead, shared libraries are loaded at an image base (0x10000000 by
10008 # default) and relocated if they conflict, which is a slow very memory
10009 # consuming and fragmenting process. To avoid this, we pick a random,
10010 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10011 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10012 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10013 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'
10014 ;;
10015
10016 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10017 tmp_diet=no
10018 if test linux-dietlibc = "$host_os"; then
10019 case $cc_basename in
10020 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10021 esac
10022 fi
10023 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10024 && test no = "$tmp_diet"
10025 then
10026 tmp_addflag=' $pic_flag'
10027 tmp_sharedflag='-shared'
10028 case $cc_basename,$host_cpu in
10029 pgcc*) # Portland Group C compiler
10030 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'
10031 tmp_addflag=' $pic_flag'
10032 ;;
10033 pgf77* | pgf90* | pgf95* | pgfortran*)
10034 # Portland Group f77 and f90 compilers
10035 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'
10036 tmp_addflag=' $pic_flag -Mnomain' ;;
10037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10038 tmp_addflag=' -i_dynamic' ;;
10039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10040 tmp_addflag=' -i_dynamic -nofor_main' ;;
10041 ifc* | ifort*) # Intel Fortran compiler
10042 tmp_addflag=' -nofor_main' ;;
10043 lf95*) # Lahey Fortran 8.1
10044 whole_archive_flag_spec=
10045 tmp_sharedflag='--shared' ;;
10046 nagfor*) # NAGFOR 5.3
10047 tmp_sharedflag='-Wl,-shared' ;;
10048 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10049 tmp_sharedflag='-qmkshrobj'
10050 tmp_addflag= ;;
10051 nvcc*) # Cuda Compiler Driver 2.2
10052 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'
10053 compiler_needs_object=yes
10054 ;;
10055 esac
10056 case `$CC -V 2>&1 | sed 5q` in
10057 *Sun\ C*) # Sun C 5.9
10058 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'
10059 compiler_needs_object=yes
10060 tmp_sharedflag='-G' ;;
10061 *Sun\ F*) # Sun Fortran 8.3
10062 tmp_sharedflag='-G' ;;
10063 esac
10064 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10065
10066 if test yes = "$supports_anon_versioning"; then
10067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10069 echo "local: *; };" >> $output_objdir/$libname.ver~
10070 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10071 fi
10072
10073 case $cc_basename in
10074 tcc*)
10075 export_dynamic_flag_spec='-rdynamic'
10076 ;;
10077 xlf* | bgf* | bgxlf* | mpixlf*)
10078 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10079 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10081 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10082 if test yes = "$supports_anon_versioning"; then
10083 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10084 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10085 echo "local: *; };" >> $output_objdir/$libname.ver~
10086 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10087 fi
10088 ;;
10089 esac
10090 else
10091 ld_shlibs=no
10092 fi
10093 ;;
10094
10095 netbsd* | netbsdelf*-gnu)
10096 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10097 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10098 wlarc=
10099 else
10100 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10101 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10102 fi
10103 ;;
10104
10105 solaris*)
10106 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10107 ld_shlibs=no
10108 cat <<_LT_EOF 1>&2
10109
10110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10111 *** create shared libraries on Solaris systems. Therefore, libtool
10112 *** is disabling shared libraries support. We urge you to upgrade GNU
10113 *** binutils to release 2.9.1 or newer. Another option is to modify
10114 *** your PATH or compiler configuration so that the native linker is
10115 *** used, and then restart.
10116
10117 _LT_EOF
10118 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10120 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10121 else
10122 ld_shlibs=no
10123 fi
10124 ;;
10125
10126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10127 case `$LD -v 2>&1` in
10128 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10129 ld_shlibs=no
10130 cat <<_LT_EOF 1>&2
10131
10132 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10133 *** reliably create shared libraries on SCO systems. Therefore, libtool
10134 *** is disabling shared libraries support. We urge you to upgrade GNU
10135 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10136 *** your PATH or compiler configuration so that the native linker is
10137 *** used, and then restart.
10138
10139 _LT_EOF
10140 ;;
10141 *)
10142 # For security reasons, it is highly recommended that you always
10143 # use absolute paths for naming shared libraries, and exclude the
10144 # DT_RUNPATH tag from executables and libraries. But doing so
10145 # requires that you compile everything twice, which is a pain.
10146 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10147 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10150 else
10151 ld_shlibs=no
10152 fi
10153 ;;
10154 esac
10155 ;;
10156
10157 sunos4*)
10158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10159 wlarc=
10160 hardcode_direct=yes
10161 hardcode_shlibpath_var=no
10162 ;;
10163
10164 *)
10165 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10166 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10167 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10168 else
10169 ld_shlibs=no
10170 fi
10171 ;;
10172 esac
10173
10174 if test no = "$ld_shlibs"; then
10175 runpath_var=
10176 hardcode_libdir_flag_spec=
10177 export_dynamic_flag_spec=
10178 whole_archive_flag_spec=
10179 fi
10180 else
10181 # PORTME fill in a description of your system's linker (not GNU ld)
10182 case $host_os in
10183 aix3*)
10184 allow_undefined_flag=unsupported
10185 always_export_symbols=yes
10186 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'
10187 # Note: this linker hardcodes the directories in LIBPATH if there
10188 # are no directories specified by -L.
10189 hardcode_minus_L=yes
10190 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10191 # Neither direct hardcoding nor static linking is supported with a
10192 # broken collect2.
10193 hardcode_direct=unsupported
10194 fi
10195 ;;
10196
10197 aix[4-9]*)
10198 if test ia64 = "$host_cpu"; then
10199 # On IA64, the linker does run time linking by default, so we don't
10200 # have to do anything special.
10201 aix_use_runtimelinking=no
10202 exp_sym_flag='-Bexport'
10203 no_entry_flag=
10204 else
10205 # If we're using GNU nm, then we don't want the "-C" option.
10206 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10207 # Without the "-l" option, or with the "-B" option, AIX nm treats
10208 # weak defined symbols like other global defined symbols, whereas
10209 # GNU nm marks them as "W".
10210 # While the 'weak' keyword is ignored in the Export File, we need
10211 # it in the Import File for the 'aix-soname' feature, so we have
10212 # to replace the "-B" option with "-P" for AIX nm.
10213 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10214 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'
10215 else
10216 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 == "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'
10217 fi
10218 aix_use_runtimelinking=no
10219
10220 # Test if we are trying to use run time linking or normal
10221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10222 # have runtime linking enabled, and use it for executables.
10223 # For shared libraries, we enable/disable runtime linking
10224 # depending on the kind of the shared library created -
10225 # when "with_aix_soname,aix_use_runtimelinking" is:
10226 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10227 # "aix,yes" lib.so shared, rtl:yes, for executables
10228 # lib.a static archive
10229 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10230 # lib.a(lib.so.V) shared, rtl:no, for executables
10231 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10232 # lib.a(lib.so.V) shared, rtl:no
10233 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10234 # lib.a static archive
10235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10236 for ld_flag in $LDFLAGS; do
10237 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10238 aix_use_runtimelinking=yes
10239 break
10240 fi
10241 done
10242 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10243 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10244 # so we don't have lib.a shared libs to link our executables.
10245 # We have to force runtime linking in this case.
10246 aix_use_runtimelinking=yes
10247 LDFLAGS="$LDFLAGS -Wl,-brtl"
10248 fi
10249 ;;
10250 esac
10251
10252 exp_sym_flag='-bexport'
10253 no_entry_flag='-bnoentry'
10254 fi
10255
10256 # When large executables or shared objects are built, AIX ld can
10257 # have problems creating the table of contents. If linking a library
10258 # or program results in "error TOC overflow" add -mminimal-toc to
10259 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10260 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10261
10262 archive_cmds=''
10263 hardcode_direct=yes
10264 hardcode_direct_absolute=yes
10265 hardcode_libdir_separator=':'
10266 link_all_deplibs=yes
10267 file_list_spec='$wl-f,'
10268 case $with_aix_soname,$aix_use_runtimelinking in
10269 aix,*) ;; # traditional, no import file
10270 svr4,* | *,yes) # use import file
10271 # The Import File defines what to hardcode.
10272 hardcode_direct=no
10273 hardcode_direct_absolute=no
10274 ;;
10275 esac
10276
10277 if test yes = "$GCC"; then
10278 case $host_os in aix4.[012]|aix4.[012].*)
10279 # We only want to do this on AIX 4.2 and lower, the check
10280 # below for broken collect2 doesn't work under 4.3+
10281 collect2name=`$CC -print-prog-name=collect2`
10282 if test -f "$collect2name" &&
10283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10284 then
10285 # We have reworked collect2
10286 :
10287 else
10288 # We have old collect2
10289 hardcode_direct=unsupported
10290 # It fails to find uninstalled libraries when the uninstalled
10291 # path is not listed in the libpath. Setting hardcode_minus_L
10292 # to unsupported forces relinking
10293 hardcode_minus_L=yes
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_libdir_separator=
10296 fi
10297 ;;
10298 esac
10299 shared_flag='-shared'
10300 if test yes = "$aix_use_runtimelinking"; then
10301 shared_flag="$shared_flag "'$wl-G'
10302 fi
10303 # Need to ensure runtime linking is disabled for the traditional
10304 # shared library, or the linker may eventually find shared libraries
10305 # /with/ Import File - we do not want to mix them.
10306 shared_flag_aix='-shared'
10307 shared_flag_svr4='-shared $wl-G'
10308 else
10309 # not using gcc
10310 if test ia64 = "$host_cpu"; then
10311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10312 # chokes on -Wl,-G. The following line is correct:
10313 shared_flag='-G'
10314 else
10315 if test yes = "$aix_use_runtimelinking"; then
10316 shared_flag='$wl-G'
10317 else
10318 shared_flag='$wl-bM:SRE'
10319 fi
10320 shared_flag_aix='$wl-bM:SRE'
10321 shared_flag_svr4='$wl-G'
10322 fi
10323 fi
10324
10325 export_dynamic_flag_spec='$wl-bexpall'
10326 # It seems that -bexpall does not export symbols beginning with
10327 # underscore (_), so it is better to generate a list of symbols to export.
10328 always_export_symbols=yes
10329 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10330 # Warning - without using the other runtime loading flags (-brtl),
10331 # -berok will link without error, but may produce a broken library.
10332 allow_undefined_flag='-berok'
10333 # Determine the default libpath from the value encoded in an
10334 # empty executable.
10335 if test set = "${lt_cv_aix_libpath+set}"; then
10336 aix_libpath=$lt_cv_aix_libpath
10337 else
10338 if ${lt_cv_aix_libpath_+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343
10344 int
10345 main ()
10346 {
10347
10348 ;
10349 return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"; then :
10353
10354 lt_aix_libpath_sed='
10355 /Import File Strings/,/^$/ {
10356 /^0/ {
10357 s/^0 *\([^ ]*\) *$/\1/
10358 p
10359 }
10360 }'
10361 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10362 # Check for a 64-bit object if we didn't find anything.
10363 if test -z "$lt_cv_aix_libpath_"; then
10364 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10365 fi
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext \
10368 conftest$ac_exeext conftest.$ac_ext
10369 if test -z "$lt_cv_aix_libpath_"; then
10370 lt_cv_aix_libpath_=/usr/lib:/lib
10371 fi
10372
10373 fi
10374
10375 aix_libpath=$lt_cv_aix_libpath_
10376 fi
10377
10378 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10379 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
10380 else
10381 if test ia64 = "$host_cpu"; then
10382 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10383 allow_undefined_flag="-z nodefs"
10384 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"
10385 else
10386 # Determine the default libpath from the value encoded in an
10387 # empty executable.
10388 if test set = "${lt_cv_aix_libpath+set}"; then
10389 aix_libpath=$lt_cv_aix_libpath
10390 else
10391 if ${lt_cv_aix_libpath_+:} false; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396
10397 int
10398 main ()
10399 {
10400
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_link "$LINENO"; then :
10406
10407 lt_aix_libpath_sed='
10408 /Import File Strings/,/^$/ {
10409 /^0/ {
10410 s/^0 *\([^ ]*\) *$/\1/
10411 p
10412 }
10413 }'
10414 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10415 # Check for a 64-bit object if we didn't find anything.
10416 if test -z "$lt_cv_aix_libpath_"; then
10417 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10418 fi
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext \
10421 conftest$ac_exeext conftest.$ac_ext
10422 if test -z "$lt_cv_aix_libpath_"; then
10423 lt_cv_aix_libpath_=/usr/lib:/lib
10424 fi
10425
10426 fi
10427
10428 aix_libpath=$lt_cv_aix_libpath_
10429 fi
10430
10431 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10432 # Warning - without using the other run time loading flags,
10433 # -berok will link without error, but may produce a broken library.
10434 no_undefined_flag=' $wl-bernotok'
10435 allow_undefined_flag=' $wl-berok'
10436 if test yes = "$with_gnu_ld"; then
10437 # We only use this code for GNU lds that support --whole-archive.
10438 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10439 else
10440 # Exported symbols can be pulled into shared objects from archives
10441 whole_archive_flag_spec='$convenience'
10442 fi
10443 archive_cmds_need_lc=yes
10444 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10445 # -brtl affects multiple linker settings, -berok does not and is overridden later
10446 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10447 if test svr4 != "$with_aix_soname"; then
10448 # This is similar to how AIX traditionally builds its shared libraries.
10449 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'
10450 fi
10451 if test aix != "$with_aix_soname"; then
10452 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'
10453 else
10454 # used by -dlpreopen to get the symbols
10455 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10456 fi
10457 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10458 fi
10459 fi
10460 ;;
10461
10462 amigaos*)
10463 case $host_cpu in
10464 powerpc)
10465 # see comment about AmigaOS4 .so support
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467 archive_expsym_cmds=''
10468 ;;
10469 m68k)
10470 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)'
10471 hardcode_libdir_flag_spec='-L$libdir'
10472 hardcode_minus_L=yes
10473 ;;
10474 esac
10475 ;;
10476
10477 bsdi[45]*)
10478 export_dynamic_flag_spec=-rdynamic
10479 ;;
10480
10481 cygwin* | mingw* | pw32* | cegcc*)
10482 # When not using gcc, we currently assume that we are using
10483 # Microsoft Visual C++.
10484 # hardcode_libdir_flag_spec is actually meaningless, as there is
10485 # no search path for DLLs.
10486 case $cc_basename in
10487 cl*)
10488 # Native MSVC
10489 hardcode_libdir_flag_spec=' '
10490 allow_undefined_flag=unsupported
10491 always_export_symbols=yes
10492 file_list_spec='@'
10493 # Tell ltmain to make .lib files, not .a files.
10494 libext=lib
10495 # Tell ltmain to make .dll files, not .so files.
10496 shrext_cmds=.dll
10497 # FIXME: Setting linknames here is a bad hack.
10498 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10499 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10500 cp "$export_symbols" "$output_objdir/$soname.def";
10501 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10502 else
10503 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10504 fi~
10505 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10506 linknames='
10507 # The linker will not automatically build a static lib if we build a DLL.
10508 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10509 enable_shared_with_static_runtimes=yes
10510 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10512 # Don't use ranlib
10513 old_postinstall_cmds='chmod 644 $oldlib'
10514 postlink_cmds='lt_outputfile="@OUTPUT@"~
10515 lt_tool_outputfile="@TOOL_OUTPUT@"~
10516 case $lt_outputfile in
10517 *.exe|*.EXE) ;;
10518 *)
10519 lt_outputfile=$lt_outputfile.exe
10520 lt_tool_outputfile=$lt_tool_outputfile.exe
10521 ;;
10522 esac~
10523 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10524 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10525 $RM "$lt_outputfile.manifest";
10526 fi'
10527 ;;
10528 *)
10529 # Assume MSVC wrapper
10530 hardcode_libdir_flag_spec=' '
10531 allow_undefined_flag=unsupported
10532 # Tell ltmain to make .lib files, not .a files.
10533 libext=lib
10534 # Tell ltmain to make .dll files, not .so files.
10535 shrext_cmds=.dll
10536 # FIXME: Setting linknames here is a bad hack.
10537 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10538 # The linker will automatically build a .lib file if we build a DLL.
10539 old_archive_from_new_cmds='true'
10540 # FIXME: Should let the user specify the lib program.
10541 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10542 enable_shared_with_static_runtimes=yes
10543 ;;
10544 esac
10545 ;;
10546
10547 darwin* | rhapsody*)
10548
10549
10550 archive_cmds_need_lc=no
10551 hardcode_direct=no
10552 hardcode_automatic=yes
10553 hardcode_shlibpath_var=unsupported
10554 if test yes = "$lt_cv_ld_force_load"; then
10555 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\"`'
10556
10557 else
10558 whole_archive_flag_spec=''
10559 fi
10560 link_all_deplibs=yes
10561 allow_undefined_flag=$_lt_dar_allow_undefined
10562 case $cc_basename in
10563 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10564 *) _lt_dar_can_shared=$GCC ;;
10565 esac
10566 if test yes = "$_lt_dar_can_shared"; then
10567 output_verbose_link_cmd=func_echo_all
10568 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10569 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10570 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"
10571 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"
10572
10573 else
10574 ld_shlibs=no
10575 fi
10576
10577 ;;
10578
10579 dgux*)
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_libdir_flag_spec='-L$libdir'
10582 hardcode_shlibpath_var=no
10583 ;;
10584
10585 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10586 # support. Future versions do this automatically, but an explicit c++rt0.o
10587 # does not break anything, and helps significantly (at the cost of a little
10588 # extra space).
10589 freebsd2.2*)
10590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10591 hardcode_libdir_flag_spec='-R$libdir'
10592 hardcode_direct=yes
10593 hardcode_shlibpath_var=no
10594 ;;
10595
10596 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10597 freebsd2.*)
10598 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_direct=yes
10600 hardcode_minus_L=yes
10601 hardcode_shlibpath_var=no
10602 ;;
10603
10604 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10605 freebsd* | dragonfly*)
10606 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10607 hardcode_libdir_flag_spec='-R$libdir'
10608 hardcode_direct=yes
10609 hardcode_shlibpath_var=no
10610 ;;
10611
10612 hpux9*)
10613 if test yes = "$GCC"; then
10614 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'
10615 else
10616 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'
10617 fi
10618 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10619 hardcode_libdir_separator=:
10620 hardcode_direct=yes
10621
10622 # hardcode_minus_L: Not really in the search PATH,
10623 # but as the default location of the library.
10624 hardcode_minus_L=yes
10625 export_dynamic_flag_spec='$wl-E'
10626 ;;
10627
10628 hpux10*)
10629 if test yes,no = "$GCC,$with_gnu_ld"; then
10630 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10631 else
10632 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10633 fi
10634 if test no = "$with_gnu_ld"; then
10635 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10636 hardcode_libdir_separator=:
10637 hardcode_direct=yes
10638 hardcode_direct_absolute=yes
10639 export_dynamic_flag_spec='$wl-E'
10640 # hardcode_minus_L: Not really in the search PATH,
10641 # but as the default location of the library.
10642 hardcode_minus_L=yes
10643 fi
10644 ;;
10645
10646 hpux11*)
10647 if test yes,no = "$GCC,$with_gnu_ld"; then
10648 case $host_cpu in
10649 hppa*64*)
10650 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 ;;
10652 ia64*)
10653 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10654 ;;
10655 *)
10656 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10657 ;;
10658 esac
10659 else
10660 case $host_cpu in
10661 hppa*64*)
10662 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 ;;
10664 ia64*)
10665 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10666 ;;
10667 *)
10668
10669 # Older versions of the 11.00 compiler do not understand -b yet
10670 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10672 $as_echo_n "checking if $CC understands -b... " >&6; }
10673 if ${lt_cv_prog_compiler__b+:} false; then :
10674 $as_echo_n "(cached) " >&6
10675 else
10676 lt_cv_prog_compiler__b=no
10677 save_LDFLAGS=$LDFLAGS
10678 LDFLAGS="$LDFLAGS -b"
10679 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10681 # The linker can only warn and ignore the option if not recognized
10682 # So say no if there are warnings
10683 if test -s conftest.err; then
10684 # Append any errors to the config.log.
10685 cat conftest.err 1>&5
10686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10688 if diff conftest.exp conftest.er2 >/dev/null; then
10689 lt_cv_prog_compiler__b=yes
10690 fi
10691 else
10692 lt_cv_prog_compiler__b=yes
10693 fi
10694 fi
10695 $RM -r conftest*
10696 LDFLAGS=$save_LDFLAGS
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10700 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10701
10702 if test yes = "$lt_cv_prog_compiler__b"; then
10703 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704 else
10705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10706 fi
10707
10708 ;;
10709 esac
10710 fi
10711 if test no = "$with_gnu_ld"; then
10712 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10713 hardcode_libdir_separator=:
10714
10715 case $host_cpu in
10716 hppa*64*|ia64*)
10717 hardcode_direct=no
10718 hardcode_shlibpath_var=no
10719 ;;
10720 *)
10721 hardcode_direct=yes
10722 hardcode_direct_absolute=yes
10723 export_dynamic_flag_spec='$wl-E'
10724
10725 # hardcode_minus_L: Not really in the search PATH,
10726 # but as the default location of the library.
10727 hardcode_minus_L=yes
10728 ;;
10729 esac
10730 fi
10731 ;;
10732
10733 irix5* | irix6* | nonstopux*)
10734 if test yes = "$GCC"; then
10735 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'
10736 # Try to use the -exported_symbol ld option, if it does not
10737 # work, assume that -exports_file does not work either and
10738 # implicitly export all symbols.
10739 # This should be the same for all languages, so no per-tag cache variable.
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10741 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10742 if ${lt_cv_irix_exported_symbol+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 save_LDFLAGS=$LDFLAGS
10746 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10749 int foo (void) { return 0; }
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 lt_cv_irix_exported_symbol=yes
10753 else
10754 lt_cv_irix_exported_symbol=no
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LDFLAGS=$save_LDFLAGS
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10761 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10762 if test yes = "$lt_cv_irix_exported_symbol"; then
10763 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'
10764 fi
10765 link_all_deplibs=no
10766 else
10767 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'
10768 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'
10769 fi
10770 archive_cmds_need_lc='no'
10771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10772 hardcode_libdir_separator=:
10773 inherit_rpath=yes
10774 link_all_deplibs=yes
10775 ;;
10776
10777 linux*)
10778 case $cc_basename in
10779 tcc*)
10780 # Fabrice Bellard et al's Tiny C Compiler
10781 ld_shlibs=yes
10782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10783 ;;
10784 esac
10785 ;;
10786
10787 netbsd* | netbsdelf*-gnu)
10788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10790 else
10791 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10792 fi
10793 hardcode_libdir_flag_spec='-R$libdir'
10794 hardcode_direct=yes
10795 hardcode_shlibpath_var=no
10796 ;;
10797
10798 newsos6)
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_direct=yes
10801 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10802 hardcode_libdir_separator=:
10803 hardcode_shlibpath_var=no
10804 ;;
10805
10806 *nto* | *qnx*)
10807 ;;
10808
10809 openbsd* | bitrig*)
10810 if test -f /usr/libexec/ld.so; then
10811 hardcode_direct=yes
10812 hardcode_shlibpath_var=no
10813 hardcode_direct_absolute=yes
10814 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10817 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10818 export_dynamic_flag_spec='$wl-E'
10819 else
10820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10821 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10822 fi
10823 else
10824 ld_shlibs=no
10825 fi
10826 ;;
10827
10828 os2*)
10829 hardcode_libdir_flag_spec='-L$libdir'
10830 hardcode_minus_L=yes
10831 allow_undefined_flag=unsupported
10832 shrext_cmds=.dll
10833 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10834 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10835 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10836 $ECHO EXPORTS >> $output_objdir/$libname.def~
10837 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10838 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10839 emximp -o $lib $output_objdir/$libname.def'
10840 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10841 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10842 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10843 $ECHO EXPORTS >> $output_objdir/$libname.def~
10844 prefix_cmds="$SED"~
10845 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10846 prefix_cmds="$prefix_cmds -e 1d";
10847 fi~
10848 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10849 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10850 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10851 emximp -o $lib $output_objdir/$libname.def'
10852 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10853 enable_shared_with_static_runtimes=yes
10854 ;;
10855
10856 osf3*)
10857 if test yes = "$GCC"; then
10858 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10859 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'
10860 else
10861 allow_undefined_flag=' -expect_unresolved \*'
10862 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'
10863 fi
10864 archive_cmds_need_lc='no'
10865 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10866 hardcode_libdir_separator=:
10867 ;;
10868
10869 osf4* | osf5*) # as osf3* with the addition of -msym flag
10870 if test yes = "$GCC"; then
10871 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10872 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'
10873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10874 else
10875 allow_undefined_flag=' -expect_unresolved \*'
10876 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'
10877 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~
10878 $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'
10879
10880 # Both c and cxx compiler support -rpath directly
10881 hardcode_libdir_flag_spec='-rpath $libdir'
10882 fi
10883 archive_cmds_need_lc='no'
10884 hardcode_libdir_separator=:
10885 ;;
10886
10887 solaris*)
10888 no_undefined_flag=' -z defs'
10889 if test yes = "$GCC"; then
10890 wlarc='$wl'
10891 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10893 $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'
10894 else
10895 case `$CC -V 2>&1` in
10896 *"Compilers 5.0"*)
10897 wlarc=''
10898 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10900 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10901 ;;
10902 *)
10903 wlarc='$wl'
10904 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10907 ;;
10908 esac
10909 fi
10910 hardcode_libdir_flag_spec='-R$libdir'
10911 hardcode_shlibpath_var=no
10912 case $host_os in
10913 solaris2.[0-5] | solaris2.[0-5].*) ;;
10914 *)
10915 # The compiler driver will combine and reorder linker options,
10916 # but understands '-z linker_flag'. GCC discards it without '$wl',
10917 # but is careful enough not to reorder.
10918 # Supported since Solaris 2.6 (maybe 2.5.1?)
10919 if test yes = "$GCC"; then
10920 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10921 else
10922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10923 fi
10924 ;;
10925 esac
10926 link_all_deplibs=yes
10927 ;;
10928
10929 sunos4*)
10930 if test sequent = "$host_vendor"; then
10931 # Use $CC to link under sequent, because it throws in some extra .o
10932 # files that make .init and .fini sections work.
10933 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10934 else
10935 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10936 fi
10937 hardcode_libdir_flag_spec='-L$libdir'
10938 hardcode_direct=yes
10939 hardcode_minus_L=yes
10940 hardcode_shlibpath_var=no
10941 ;;
10942
10943 sysv4)
10944 case $host_vendor in
10945 sni)
10946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947 hardcode_direct=yes # is this really true???
10948 ;;
10949 siemens)
10950 ## LD is ld it makes a PLAMLIB
10951 ## CC just makes a GrossModule.
10952 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10953 reload_cmds='$CC -r -o $output$reload_objs'
10954 hardcode_direct=no
10955 ;;
10956 motorola)
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10959 ;;
10960 esac
10961 runpath_var='LD_RUN_PATH'
10962 hardcode_shlibpath_var=no
10963 ;;
10964
10965 sysv4.3*)
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_shlibpath_var=no
10968 export_dynamic_flag_spec='-Bexport'
10969 ;;
10970
10971 sysv4*MP*)
10972 if test -d /usr/nec; then
10973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10974 hardcode_shlibpath_var=no
10975 runpath_var=LD_RUN_PATH
10976 hardcode_runpath_var=yes
10977 ld_shlibs=yes
10978 fi
10979 ;;
10980
10981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10982 no_undefined_flag='$wl-z,text'
10983 archive_cmds_need_lc=no
10984 hardcode_shlibpath_var=no
10985 runpath_var='LD_RUN_PATH'
10986
10987 if test yes = "$GCC"; then
10988 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 else
10991 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10992 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10993 fi
10994 ;;
10995
10996 sysv5* | sco3.2v5* | sco5v6*)
10997 # Note: We CANNOT use -z defs as we might desire, because we do not
10998 # link with -lc, and that would cause any symbols used from libc to
10999 # always be unresolved, which means just about no library would
11000 # ever link correctly. If we're not using GNU ld we use -z text
11001 # though, which does catch some bad symbols but isn't as heavy-handed
11002 # as -z defs.
11003 no_undefined_flag='$wl-z,text'
11004 allow_undefined_flag='$wl-z,nodefs'
11005 archive_cmds_need_lc=no
11006 hardcode_shlibpath_var=no
11007 hardcode_libdir_flag_spec='$wl-R,$libdir'
11008 hardcode_libdir_separator=':'
11009 link_all_deplibs=yes
11010 export_dynamic_flag_spec='$wl-Bexport'
11011 runpath_var='LD_RUN_PATH'
11012
11013 if test yes = "$GCC"; then
11014 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11015 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016 else
11017 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11019 fi
11020 ;;
11021
11022 uts4*)
11023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11024 hardcode_libdir_flag_spec='-L$libdir'
11025 hardcode_shlibpath_var=no
11026 ;;
11027
11028 *)
11029 ld_shlibs=no
11030 ;;
11031 esac
11032
11033 if test sni = "$host_vendor"; then
11034 case $host in
11035 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11036 export_dynamic_flag_spec='$wl-Blargedynsym'
11037 ;;
11038 esac
11039 fi
11040 fi
11041
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11043 $as_echo "$ld_shlibs" >&6; }
11044 test no = "$ld_shlibs" && can_build_shared=no
11045
11046 with_gnu_ld=$with_gnu_ld
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 #
11063 # Do we need to explicitly link libc?
11064 #
11065 case "x$archive_cmds_need_lc" in
11066 x|xyes)
11067 # Assume -lc should be added
11068 archive_cmds_need_lc=yes
11069
11070 if test yes,yes = "$GCC,$enable_shared"; then
11071 case $archive_cmds in
11072 *'~'*)
11073 # FIXME: we may have to deal with multi-command sequences.
11074 ;;
11075 '$CC '*)
11076 # Test whether the compiler implicitly links with -lc since on some
11077 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11078 # to ld, don't add -lc before -lgcc.
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11080 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11081 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 $RM conftest*
11085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11086
11087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11088 (eval $ac_compile) 2>&5
11089 ac_status=$?
11090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091 test $ac_status = 0; } 2>conftest.err; then
11092 soname=conftest
11093 lib=conftest
11094 libobjs=conftest.$ac_objext
11095 deplibs=
11096 wl=$lt_prog_compiler_wl
11097 pic_flag=$lt_prog_compiler_pic
11098 compiler_flags=-v
11099 linker_flags=-v
11100 verstring=
11101 output_objdir=.
11102 libname=conftest
11103 lt_save_allow_undefined_flag=$allow_undefined_flag
11104 allow_undefined_flag=
11105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11106 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11107 ac_status=$?
11108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11109 test $ac_status = 0; }
11110 then
11111 lt_cv_archive_cmds_need_lc=no
11112 else
11113 lt_cv_archive_cmds_need_lc=yes
11114 fi
11115 allow_undefined_flag=$lt_save_allow_undefined_flag
11116 else
11117 cat conftest.err 1>&5
11118 fi
11119 $RM conftest*
11120
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11123 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11124 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11125 ;;
11126 esac
11127 fi
11128 ;;
11129 esac
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11283 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11284
11285 if test yes = "$GCC"; then
11286 case $host_os in
11287 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11288 *) lt_awk_arg='/^libraries:/' ;;
11289 esac
11290 case $host_os in
11291 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11292 *) lt_sed_strip_eq='s|=/|/|g' ;;
11293 esac
11294 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11295 case $lt_search_path_spec in
11296 *\;*)
11297 # if the path contains ";" then we assume it to be the separator
11298 # otherwise default to the standard path separator (i.e. ":") - it is
11299 # assumed that no part of a normal pathname contains ";" but that should
11300 # okay in the real world where ";" in dirpaths is itself problematic.
11301 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11302 ;;
11303 *)
11304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11305 ;;
11306 esac
11307 # Ok, now we have the path, separated by spaces, we can step through it
11308 # and add multilib dir if necessary...
11309 lt_tmp_lt_search_path_spec=
11310 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11311 # ...but if some path component already ends with the multilib dir we assume
11312 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11313 case "$lt_multi_os_dir; $lt_search_path_spec " in
11314 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11315 lt_multi_os_dir=
11316 ;;
11317 esac
11318 for lt_sys_path in $lt_search_path_spec; do
11319 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11321 elif test -n "$lt_multi_os_dir"; then
11322 test -d "$lt_sys_path" && \
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11324 fi
11325 done
11326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11327 BEGIN {RS = " "; FS = "/|\n";} {
11328 lt_foo = "";
11329 lt_count = 0;
11330 for (lt_i = NF; lt_i > 0; lt_i--) {
11331 if ($lt_i != "" && $lt_i != ".") {
11332 if ($lt_i == "..") {
11333 lt_count++;
11334 } else {
11335 if (lt_count == 0) {
11336 lt_foo = "/" $lt_i lt_foo;
11337 } else {
11338 lt_count--;
11339 }
11340 }
11341 }
11342 }
11343 if (lt_foo != "") { lt_freq[lt_foo]++; }
11344 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 }'`
11346 # AWK program above erroneously prepends '/' to C:/dos/paths
11347 # for these hosts.
11348 case $host_os in
11349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11350 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11351 esac
11352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11353 else
11354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11355 fi
11356 library_names_spec=
11357 libname_spec='lib$name'
11358 soname_spec=
11359 shrext_cmds=.so
11360 postinstall_cmds=
11361 postuninstall_cmds=
11362 finish_cmds=
11363 finish_eval=
11364 shlibpath_var=
11365 shlibpath_overrides_runpath=unknown
11366 version_type=none
11367 dynamic_linker="$host_os ld.so"
11368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11369 need_lib_prefix=unknown
11370 hardcode_into_libs=no
11371
11372 # when you set need_version to no, make sure it does not cause -set_version
11373 # flags to be left without arguments
11374 need_version=unknown
11375
11376
11377
11378 case $host_os in
11379 aix3*)
11380 version_type=linux # correct to gnu/linux during the next big refactor
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11382 shlibpath_var=LIBPATH
11383
11384 # AIX 3 has no versioning support, so we append a major version to the name.
11385 soname_spec='$libname$release$shared_ext$major'
11386 ;;
11387
11388 aix[4-9]*)
11389 version_type=linux # correct to gnu/linux during the next big refactor
11390 need_lib_prefix=no
11391 need_version=no
11392 hardcode_into_libs=yes
11393 if test ia64 = "$host_cpu"; then
11394 # AIX 5 supports IA64
11395 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 else
11398 # With GCC up to 2.95.x, collect2 would create an import file
11399 # for dependence libraries. The import file would start with
11400 # the line '#! .'. This would cause the generated library to
11401 # depend on '.', always an invalid library. This was fixed in
11402 # development snapshots of GCC prior to 3.0.
11403 case $host_os in
11404 aix4 | aix4.[01] | aix4.[01].*)
11405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11406 echo ' yes '
11407 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11408 :
11409 else
11410 can_build_shared=no
11411 fi
11412 ;;
11413 esac
11414 # Using Import Files as archive members, it is possible to support
11415 # filename-based versioning of shared library archives on AIX. While
11416 # this would work for both with and without runtime linking, it will
11417 # prevent static linking of such archives. So we do filename-based
11418 # shared library versioning with .so extension only, which is used
11419 # when both runtime linking and shared linking is enabled.
11420 # Unfortunately, runtime linking may impact performance, so we do
11421 # not want this to be the default eventually. Also, we use the
11422 # versioned .so libs for executables only if there is the -brtl
11423 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11424 # To allow for filename-based versioning support, we need to create
11425 # libNAME.so.V as an archive file, containing:
11426 # *) an Import File, referring to the versioned filename of the
11427 # archive as well as the shared archive member, telling the
11428 # bitwidth (32 or 64) of that shared object, and providing the
11429 # list of exported symbols of that shared object, eventually
11430 # decorated with the 'weak' keyword
11431 # *) the shared object with the F_LOADONLY flag set, to really avoid
11432 # it being seen by the linker.
11433 # At run time we better use the real file rather than another symlink,
11434 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11435
11436 case $with_aix_soname,$aix_use_runtimelinking in
11437 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11438 # soname into executable. Probably we can add versioning support to
11439 # collect2, so additional links can be useful in future.
11440 aix,yes) # traditional libtool
11441 dynamic_linker='AIX unversionable lib.so'
11442 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11443 # instead of lib<name>.a to let people know that these are not
11444 # typical AIX shared libraries.
11445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11446 ;;
11447 aix,no) # traditional AIX only
11448 dynamic_linker='AIX lib.a(lib.so.V)'
11449 # We preserve .a as extension for shared libraries through AIX4.2
11450 # and later when we are not doing run time linking.
11451 library_names_spec='$libname$release.a $libname.a'
11452 soname_spec='$libname$release$shared_ext$major'
11453 ;;
11454 svr4,*) # full svr4 only
11455 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11456 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11457 # We do not specify a path in Import Files, so LIBPATH fires.
11458 shlibpath_overrides_runpath=yes
11459 ;;
11460 *,yes) # both, prefer svr4
11461 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11463 # unpreferred sharedlib libNAME.a needs extra handling
11464 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"'
11465 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"'
11466 # We do not specify a path in Import Files, so LIBPATH fires.
11467 shlibpath_overrides_runpath=yes
11468 ;;
11469 *,no) # both, prefer aix
11470 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11471 library_names_spec='$libname$release.a $libname.a'
11472 soname_spec='$libname$release$shared_ext$major'
11473 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11474 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)'
11475 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"'
11476 ;;
11477 esac
11478 shlibpath_var=LIBPATH
11479 fi
11480 ;;
11481
11482 amigaos*)
11483 case $host_cpu in
11484 powerpc)
11485 # Since July 2007 AmigaOS4 officially supports .so libraries.
11486 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11488 ;;
11489 m68k)
11490 library_names_spec='$libname.ixlibrary $libname.a'
11491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11492 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'
11493 ;;
11494 esac
11495 ;;
11496
11497 beos*)
11498 library_names_spec='$libname$shared_ext'
11499 dynamic_linker="$host_os ld.so"
11500 shlibpath_var=LIBRARY_PATH
11501 ;;
11502
11503 bsdi[45]*)
11504 version_type=linux # correct to gnu/linux during the next big refactor
11505 need_version=no
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11507 soname_spec='$libname$release$shared_ext$major'
11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11512 # the default ld.so.conf also contains /usr/contrib/lib and
11513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11514 # libtool to hard-code these into programs
11515 ;;
11516
11517 cygwin* | mingw* | pw32* | cegcc*)
11518 version_type=windows
11519 shrext_cmds=.dll
11520 need_version=no
11521 need_lib_prefix=no
11522
11523 case $GCC,$cc_basename in
11524 yes,*)
11525 # gcc
11526 library_names_spec='$libname.dll.a'
11527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11528 postinstall_cmds='base_file=`basename \$file`~
11529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11530 dldir=$destdir/`dirname \$dlpath`~
11531 test -d \$dldir || mkdir -p \$dldir~
11532 $install_prog $dir/$dlname \$dldir/$dlname~
11533 chmod a+x \$dldir/$dlname~
11534 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11535 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11536 fi'
11537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11538 dlpath=$dir/\$dldll~
11539 $RM \$dlpath'
11540 shlibpath_overrides_runpath=yes
11541
11542 case $host_os in
11543 cygwin*)
11544 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11545 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11546
11547 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11548 ;;
11549 mingw* | cegcc*)
11550 # MinGW DLLs use traditional 'lib' prefix
11551 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11552 ;;
11553 pw32*)
11554 # pw32 DLLs use 'pw' prefix rather than 'lib'
11555 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11556 ;;
11557 esac
11558 dynamic_linker='Win32 ld.exe'
11559 ;;
11560
11561 *,cl*)
11562 # Native MSVC
11563 libname_spec='$name'
11564 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11565 library_names_spec='$libname.dll.lib'
11566
11567 case $build_os in
11568 mingw*)
11569 sys_lib_search_path_spec=
11570 lt_save_ifs=$IFS
11571 IFS=';'
11572 for lt_path in $LIB
11573 do
11574 IFS=$lt_save_ifs
11575 # Let DOS variable expansion print the short 8.3 style file name.
11576 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11577 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11578 done
11579 IFS=$lt_save_ifs
11580 # Convert to MSYS style.
11581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11582 ;;
11583 cygwin*)
11584 # Convert to unix form, then to dos form, then back to unix form
11585 # but this time dos style (no spaces!) so that the unix form looks
11586 # like /cygdrive/c/PROGRA~1:/cygdr...
11587 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11588 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11589 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11590 ;;
11591 *)
11592 sys_lib_search_path_spec=$LIB
11593 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11594 # It is most probably a Windows format PATH.
11595 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11596 else
11597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11598 fi
11599 # FIXME: find the short name or the path components, as spaces are
11600 # common. (e.g. "Program Files" -> "PROGRA~1")
11601 ;;
11602 esac
11603
11604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11605 postinstall_cmds='base_file=`basename \$file`~
11606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11607 dldir=$destdir/`dirname \$dlpath`~
11608 test -d \$dldir || mkdir -p \$dldir~
11609 $install_prog $dir/$dlname \$dldir/$dlname'
11610 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11611 dlpath=$dir/\$dldll~
11612 $RM \$dlpath'
11613 shlibpath_overrides_runpath=yes
11614 dynamic_linker='Win32 link.exe'
11615 ;;
11616
11617 *)
11618 # Assume MSVC wrapper
11619 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11620 dynamic_linker='Win32 ld.exe'
11621 ;;
11622 esac
11623 # FIXME: first we should search . and the directory the executable is in
11624 shlibpath_var=PATH
11625 ;;
11626
11627 darwin* | rhapsody*)
11628 dynamic_linker="$host_os dyld"
11629 version_type=darwin
11630 need_lib_prefix=no
11631 need_version=no
11632 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11633 soname_spec='$libname$release$major$shared_ext'
11634 shlibpath_overrides_runpath=yes
11635 shlibpath_var=DYLD_LIBRARY_PATH
11636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11637
11638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11639 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11640 ;;
11641
11642 dgux*)
11643 version_type=linux # correct to gnu/linux during the next big refactor
11644 need_lib_prefix=no
11645 need_version=no
11646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11647 soname_spec='$libname$release$shared_ext$major'
11648 shlibpath_var=LD_LIBRARY_PATH
11649 ;;
11650
11651 freebsd* | dragonfly*)
11652 # DragonFly does not have aout. When/if they implement a new
11653 # versioning mechanism, adjust this.
11654 if test -x /usr/bin/objformat; then
11655 objformat=`/usr/bin/objformat`
11656 else
11657 case $host_os in
11658 freebsd[23].*) objformat=aout ;;
11659 *) objformat=elf ;;
11660 esac
11661 fi
11662 version_type=freebsd-$objformat
11663 case $version_type in
11664 freebsd-elf*)
11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11666 soname_spec='$libname$release$shared_ext$major'
11667 need_version=no
11668 need_lib_prefix=no
11669 ;;
11670 freebsd-*)
11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11672 need_version=yes
11673 ;;
11674 esac
11675 shlibpath_var=LD_LIBRARY_PATH
11676 case $host_os in
11677 freebsd2.*)
11678 shlibpath_overrides_runpath=yes
11679 ;;
11680 freebsd3.[01]* | freebsdelf3.[01]*)
11681 shlibpath_overrides_runpath=yes
11682 hardcode_into_libs=yes
11683 ;;
11684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11686 shlibpath_overrides_runpath=no
11687 hardcode_into_libs=yes
11688 ;;
11689 *) # from 4.6 on, and DragonFly
11690 shlibpath_overrides_runpath=yes
11691 hardcode_into_libs=yes
11692 ;;
11693 esac
11694 ;;
11695
11696 haiku*)
11697 version_type=linux # correct to gnu/linux during the next big refactor
11698 need_lib_prefix=no
11699 need_version=no
11700 dynamic_linker="$host_os runtime_loader"
11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11702 soname_spec='$libname$release$shared_ext$major'
11703 shlibpath_var=LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11706 hardcode_into_libs=yes
11707 ;;
11708
11709 hpux9* | hpux10* | hpux11*)
11710 # Give a soname corresponding to the major version so that dld.sl refuses to
11711 # link against other versions.
11712 version_type=sunos
11713 need_lib_prefix=no
11714 need_version=no
11715 case $host_cpu in
11716 ia64*)
11717 shrext_cmds='.so'
11718 hardcode_into_libs=yes
11719 dynamic_linker="$host_os dld.so"
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11723 soname_spec='$libname$release$shared_ext$major'
11724 if test 32 = "$HPUX_IA64_MODE"; then
11725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11726 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11727 else
11728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11729 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11730 fi
11731 ;;
11732 hppa*64*)
11733 shrext_cmds='.sl'
11734 hardcode_into_libs=yes
11735 dynamic_linker="$host_os dld.sl"
11736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11739 soname_spec='$libname$release$shared_ext$major'
11740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11742 ;;
11743 *)
11744 shrext_cmds='.sl'
11745 dynamic_linker="$host_os dld.sl"
11746 shlibpath_var=SHLIB_PATH
11747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749 soname_spec='$libname$release$shared_ext$major'
11750 ;;
11751 esac
11752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11753 postinstall_cmds='chmod 555 $lib'
11754 # or fails outright, so override atomically:
11755 install_override_mode=555
11756 ;;
11757
11758 interix[3-9]*)
11759 version_type=linux # correct to gnu/linux during the next big refactor
11760 need_lib_prefix=no
11761 need_version=no
11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763 soname_spec='$libname$release$shared_ext$major'
11764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=no
11767 hardcode_into_libs=yes
11768 ;;
11769
11770 irix5* | irix6* | nonstopux*)
11771 case $host_os in
11772 nonstopux*) version_type=nonstopux ;;
11773 *)
11774 if test yes = "$lt_cv_prog_gnu_ld"; then
11775 version_type=linux # correct to gnu/linux during the next big refactor
11776 else
11777 version_type=irix
11778 fi ;;
11779 esac
11780 need_lib_prefix=no
11781 need_version=no
11782 soname_spec='$libname$release$shared_ext$major'
11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11784 case $host_os in
11785 irix5* | nonstopux*)
11786 libsuff= shlibsuff=
11787 ;;
11788 *)
11789 case $LD in # libtool.m4 will add one of these switches to LD
11790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11791 libsuff= shlibsuff= libmagic=32-bit;;
11792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11793 libsuff=32 shlibsuff=N32 libmagic=N32;;
11794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11796 *) libsuff= shlibsuff= libmagic=never-match;;
11797 esac
11798 ;;
11799 esac
11800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11801 shlibpath_overrides_runpath=no
11802 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11803 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11804 hardcode_into_libs=yes
11805 ;;
11806
11807 # No shared lib support for Linux oldld, aout, or coff.
11808 linux*oldld* | linux*aout* | linux*coff*)
11809 dynamic_linker=no
11810 ;;
11811
11812 linux*android*)
11813 version_type=none # Android doesn't support versioned libraries.
11814 need_lib_prefix=no
11815 need_version=no
11816 library_names_spec='$libname$release$shared_ext'
11817 soname_spec='$libname$release$shared_ext'
11818 finish_cmds=
11819 shlibpath_var=LD_LIBRARY_PATH
11820 shlibpath_overrides_runpath=yes
11821
11822 # This implies no fast_install, which is unacceptable.
11823 # Some rework will be needed to allow for fast_install
11824 # before this can be enabled.
11825 hardcode_into_libs=yes
11826
11827 dynamic_linker='Android linker'
11828 # Don't embed -rpath directories since the linker doesn't support them.
11829 hardcode_libdir_flag_spec='-L$libdir'
11830 ;;
11831
11832 # This must be glibc/ELF.
11833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11834 version_type=linux # correct to gnu/linux during the next big refactor
11835 need_lib_prefix=no
11836 need_version=no
11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11838 soname_spec='$libname$release$shared_ext$major'
11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 shlibpath_overrides_runpath=no
11842
11843 # Some binutils ld are patched to set DT_RUNPATH
11844 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11845 $as_echo_n "(cached) " >&6
11846 else
11847 lt_cv_shlibpath_overrides_runpath=no
11848 save_LDFLAGS=$LDFLAGS
11849 save_libdir=$libdir
11850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854
11855 int
11856 main ()
11857 {
11858
11859 ;
11860 return 0;
11861 }
11862 _ACEOF
11863 if ac_fn_c_try_link "$LINENO"; then :
11864 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11865 lt_cv_shlibpath_overrides_runpath=yes
11866 fi
11867 fi
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LDFLAGS=$save_LDFLAGS
11871 libdir=$save_libdir
11872
11873 fi
11874
11875 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11876
11877 # This implies no fast_install, which is unacceptable.
11878 # Some rework will be needed to allow for fast_install
11879 # before this can be enabled.
11880 hardcode_into_libs=yes
11881
11882 # Ideally, we could use ldconfig to report *all* directores which are
11883 # searched for libraries, however this is still not possible. Aside from not
11884 # being certain /sbin/ldconfig is available, command
11885 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11886 # even though it is searched at run-time. Try to do the best guess by
11887 # appending ld.so.conf contents (and includes) to the search path.
11888 if test -f /etc/ld.so.conf; then
11889 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' ' '`
11890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11891 fi
11892
11893 # We used to test for /lib/ld.so.1 and disable shared libraries on
11894 # powerpc, because MkLinux only supported shared libraries with the
11895 # GNU dynamic linker. Since this was broken with cross compilers,
11896 # most powerpc-linux boxes support dynamic linking these days and
11897 # people can always --disable-shared, the test was removed, and we
11898 # assume the GNU/Linux dynamic linker is in use.
11899 dynamic_linker='GNU/Linux ld.so'
11900 ;;
11901
11902 netbsdelf*-gnu)
11903 version_type=linux
11904 need_lib_prefix=no
11905 need_version=no
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 shlibpath_overrides_runpath=no
11910 hardcode_into_libs=yes
11911 dynamic_linker='NetBSD ld.elf_so'
11912 ;;
11913
11914 netbsd*)
11915 version_type=sunos
11916 need_lib_prefix=no
11917 need_version=no
11918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11921 dynamic_linker='NetBSD (a.out) ld.so'
11922 else
11923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11924 soname_spec='$libname$release$shared_ext$major'
11925 dynamic_linker='NetBSD ld.elf_so'
11926 fi
11927 shlibpath_var=LD_LIBRARY_PATH
11928 shlibpath_overrides_runpath=yes
11929 hardcode_into_libs=yes
11930 ;;
11931
11932 newsos6)
11933 version_type=linux # correct to gnu/linux during the next big refactor
11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 shlibpath_overrides_runpath=yes
11937 ;;
11938
11939 *nto* | *qnx*)
11940 version_type=qnx
11941 need_lib_prefix=no
11942 need_version=no
11943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944 soname_spec='$libname$release$shared_ext$major'
11945 shlibpath_var=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath=no
11947 hardcode_into_libs=yes
11948 dynamic_linker='ldqnx.so'
11949 ;;
11950
11951 openbsd* | bitrig*)
11952 version_type=sunos
11953 sys_lib_dlsearch_path_spec=/usr/lib
11954 need_lib_prefix=no
11955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11956 need_version=no
11957 else
11958 need_version=yes
11959 fi
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 ;;
11965
11966 os2*)
11967 libname_spec='$name'
11968 version_type=windows
11969 shrext_cmds=.dll
11970 need_version=no
11971 need_lib_prefix=no
11972 # OS/2 can only load a DLL with a base name of 8 characters or less.
11973 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11974 v=$($ECHO $release$versuffix | tr -d .-);
11975 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11976 $ECHO $n$v`$shared_ext'
11977 library_names_spec='${libname}_dll.$libext'
11978 dynamic_linker='OS/2 ld.exe'
11979 shlibpath_var=BEGINLIBPATH
11980 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11982 postinstall_cmds='base_file=`basename \$file`~
11983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11984 dldir=$destdir/`dirname \$dlpath`~
11985 test -d \$dldir || mkdir -p \$dldir~
11986 $install_prog $dir/$dlname \$dldir/$dlname~
11987 chmod a+x \$dldir/$dlname~
11988 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11989 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11990 fi'
11991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11992 dlpath=$dir/\$dldll~
11993 $RM \$dlpath'
11994 ;;
11995
11996 osf3* | osf4* | osf5*)
11997 version_type=osf
11998 need_lib_prefix=no
11999 need_version=no
12000 soname_spec='$libname$release$shared_ext$major'
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12002 shlibpath_var=LD_LIBRARY_PATH
12003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12005 ;;
12006
12007 rdos*)
12008 dynamic_linker=no
12009 ;;
12010
12011 solaris*)
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 need_lib_prefix=no
12014 need_version=no
12015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12016 soname_spec='$libname$release$shared_ext$major'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 shlibpath_overrides_runpath=yes
12019 hardcode_into_libs=yes
12020 # ldd complains unless libraries are executable
12021 postinstall_cmds='chmod +x $lib'
12022 ;;
12023
12024 sunos4*)
12025 version_type=sunos
12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12028 shlibpath_var=LD_LIBRARY_PATH
12029 shlibpath_overrides_runpath=yes
12030 if test yes = "$with_gnu_ld"; then
12031 need_lib_prefix=no
12032 fi
12033 need_version=yes
12034 ;;
12035
12036 sysv4 | sysv4.3*)
12037 version_type=linux # correct to gnu/linux during the next big refactor
12038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12039 soname_spec='$libname$release$shared_ext$major'
12040 shlibpath_var=LD_LIBRARY_PATH
12041 case $host_vendor in
12042 sni)
12043 shlibpath_overrides_runpath=no
12044 need_lib_prefix=no
12045 runpath_var=LD_RUN_PATH
12046 ;;
12047 siemens)
12048 need_lib_prefix=no
12049 ;;
12050 motorola)
12051 need_lib_prefix=no
12052 need_version=no
12053 shlibpath_overrides_runpath=no
12054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12055 ;;
12056 esac
12057 ;;
12058
12059 sysv4*MP*)
12060 if test -d /usr/nec; then
12061 version_type=linux # correct to gnu/linux during the next big refactor
12062 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12063 soname_spec='$libname$shared_ext.$major'
12064 shlibpath_var=LD_LIBRARY_PATH
12065 fi
12066 ;;
12067
12068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12069 version_type=sco
12070 need_lib_prefix=no
12071 need_version=no
12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12073 soname_spec='$libname$release$shared_ext$major'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=yes
12076 hardcode_into_libs=yes
12077 if test yes = "$with_gnu_ld"; then
12078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12079 else
12080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12081 case $host_os in
12082 sco3.2v5*)
12083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12084 ;;
12085 esac
12086 fi
12087 sys_lib_dlsearch_path_spec='/usr/lib'
12088 ;;
12089
12090 tpf*)
12091 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12092 version_type=linux # correct to gnu/linux during the next big refactor
12093 need_lib_prefix=no
12094 need_version=no
12095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12096 shlibpath_var=LD_LIBRARY_PATH
12097 shlibpath_overrides_runpath=no
12098 hardcode_into_libs=yes
12099 ;;
12100
12101 uts4*)
12102 version_type=linux # correct to gnu/linux during the next big refactor
12103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12104 soname_spec='$libname$release$shared_ext$major'
12105 shlibpath_var=LD_LIBRARY_PATH
12106 ;;
12107
12108 *)
12109 dynamic_linker=no
12110 ;;
12111 esac
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12113 $as_echo "$dynamic_linker" >&6; }
12114 test no = "$dynamic_linker" && can_build_shared=no
12115
12116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12117 if test yes = "$GCC"; then
12118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12119 fi
12120
12121 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12122 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12123 fi
12124
12125 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12126 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12127 fi
12128
12129 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12130 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12131
12132 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12133 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12134
12135 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12136 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12236 hardcode_action=
12237 if test -n "$hardcode_libdir_flag_spec" ||
12238 test -n "$runpath_var" ||
12239 test yes = "$hardcode_automatic"; then
12240
12241 # We can hardcode non-existent directories.
12242 if test no != "$hardcode_direct" &&
12243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12244 # have to relink, otherwise we might link with an installed library
12245 # when we should be linking with a yet-to-be-installed one
12246 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12247 test no != "$hardcode_minus_L"; then
12248 # Linking always hardcodes the temporary library directory.
12249 hardcode_action=relink
12250 else
12251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12252 hardcode_action=immediate
12253 fi
12254 else
12255 # We cannot hardcode anything, or else we can only hardcode existing
12256 # directories.
12257 hardcode_action=unsupported
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12260 $as_echo "$hardcode_action" >&6; }
12261
12262 if test relink = "$hardcode_action" ||
12263 test yes = "$inherit_rpath"; then
12264 # Fast installation is not supported
12265 enable_fast_install=no
12266 elif test yes = "$shlibpath_overrides_runpath" ||
12267 test no = "$enable_shared"; then
12268 # Fast installation is not necessary
12269 enable_fast_install=needless
12270 fi
12271
12272
12273
12274
12275
12276
12277 if test yes != "$enable_dlopen"; then
12278 enable_dlopen=unknown
12279 enable_dlopen_self=unknown
12280 enable_dlopen_self_static=unknown
12281 else
12282 lt_cv_dlopen=no
12283 lt_cv_dlopen_libs=
12284
12285 case $host_os in
12286 beos*)
12287 lt_cv_dlopen=load_add_on
12288 lt_cv_dlopen_libs=
12289 lt_cv_dlopen_self=yes
12290 ;;
12291
12292 mingw* | pw32* | cegcc*)
12293 lt_cv_dlopen=LoadLibrary
12294 lt_cv_dlopen_libs=
12295 ;;
12296
12297 cygwin*)
12298 lt_cv_dlopen=dlopen
12299 lt_cv_dlopen_libs=
12300 ;;
12301
12302 darwin*)
12303 # if libdl is installed we need to link against it
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12306 if ${ac_cv_lib_dl_dlopen+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-ldl $LIBS"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char dlopen ();
12321 int
12322 main ()
12323 {
12324 return dlopen ();
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_lib_dl_dlopen=yes
12331 else
12332 ac_cv_lib_dl_dlopen=no
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12337 fi
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12341 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12342 else
12343
12344 lt_cv_dlopen=dyld
12345 lt_cv_dlopen_libs=
12346 lt_cv_dlopen_self=yes
12347
12348 fi
12349
12350 ;;
12351
12352 tpf*)
12353 # Don't try to run any link tests for TPF. We know it's impossible
12354 # because TPF is a cross-compiler, and we know how we open DSOs.
12355 lt_cv_dlopen=dlopen
12356 lt_cv_dlopen_libs=
12357 lt_cv_dlopen_self=no
12358 ;;
12359
12360 *)
12361 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12362 if test "x$ac_cv_func_shl_load" = xyes; then :
12363 lt_cv_dlopen=shl_load
12364 else
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12366 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12367 if ${ac_cv_lib_dld_shl_load+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 ac_check_lib_save_LIBS=$LIBS
12371 LIBS="-ldld $LIBS"
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12378 #ifdef __cplusplus
12379 extern "C"
12380 #endif
12381 char shl_load ();
12382 int
12383 main ()
12384 {
12385 return shl_load ();
12386 ;
12387 return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 ac_cv_lib_dld_shl_load=yes
12392 else
12393 ac_cv_lib_dld_shl_load=no
12394 fi
12395 rm -f core conftest.err conftest.$ac_objext \
12396 conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12400 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12401 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12402 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12403 else
12404 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12405 if test "x$ac_cv_func_dlopen" = xyes; then :
12406 lt_cv_dlopen=dlopen
12407 else
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12409 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12410 if ${ac_cv_lib_dl_dlopen+:} false; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 ac_check_lib_save_LIBS=$LIBS
12414 LIBS="-ldl $LIBS"
12415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12416 /* end confdefs.h. */
12417
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12421 #ifdef __cplusplus
12422 extern "C"
12423 #endif
12424 char dlopen ();
12425 int
12426 main ()
12427 {
12428 return dlopen ();
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434 ac_cv_lib_dl_dlopen=yes
12435 else
12436 ac_cv_lib_dl_dlopen=no
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext \
12439 conftest$ac_exeext conftest.$ac_ext
12440 LIBS=$ac_check_lib_save_LIBS
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12444 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12445 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12446 else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12448 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12449 if ${ac_cv_lib_svld_dlopen+:} false; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-lsvld $LIBS"
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456
12457 /* Override any GCC internal prototype to avoid an error.
12458 Use char because int might match the return type of a GCC
12459 builtin and then its argument prototype would still apply. */
12460 #ifdef __cplusplus
12461 extern "C"
12462 #endif
12463 char dlopen ();
12464 int
12465 main ()
12466 {
12467 return dlopen ();
12468 ;
12469 return 0;
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_lib_svld_dlopen=yes
12474 else
12475 ac_cv_lib_svld_dlopen=no
12476 fi
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 LIBS=$ac_check_lib_save_LIBS
12480 fi
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12482 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12483 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12484 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12488 if ${ac_cv_lib_dld_dld_link+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 ac_check_lib_save_LIBS=$LIBS
12492 LIBS="-ldld $LIBS"
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495
12496 /* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12499 #ifdef __cplusplus
12500 extern "C"
12501 #endif
12502 char dld_link ();
12503 int
12504 main ()
12505 {
12506 return dld_link ();
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_link "$LINENO"; then :
12512 ac_cv_lib_dld_dld_link=yes
12513 else
12514 ac_cv_lib_dld_dld_link=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 LIBS=$ac_check_lib_save_LIBS
12519 fi
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12522 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12523 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12524 fi
12525
12526
12527 fi
12528
12529
12530 fi
12531
12532
12533 fi
12534
12535
12536 fi
12537
12538
12539 fi
12540
12541 ;;
12542 esac
12543
12544 if test no = "$lt_cv_dlopen"; then
12545 enable_dlopen=no
12546 else
12547 enable_dlopen=yes
12548 fi
12549
12550 case $lt_cv_dlopen in
12551 dlopen)
12552 save_CPPFLAGS=$CPPFLAGS
12553 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12554
12555 save_LDFLAGS=$LDFLAGS
12556 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12557
12558 save_LIBS=$LIBS
12559 LIBS="$lt_cv_dlopen_libs $LIBS"
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12562 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12563 if ${lt_cv_dlopen_self+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 if test yes = "$cross_compiling"; then :
12567 lt_cv_dlopen_self=cross
12568 else
12569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12570 lt_status=$lt_dlunknown
12571 cat > conftest.$ac_ext <<_LT_EOF
12572 #line $LINENO "configure"
12573 #include "confdefs.h"
12574
12575 #if HAVE_DLFCN_H
12576 #include <dlfcn.h>
12577 #endif
12578
12579 #include <stdio.h>
12580
12581 #ifdef RTLD_GLOBAL
12582 # define LT_DLGLOBAL RTLD_GLOBAL
12583 #else
12584 # ifdef DL_GLOBAL
12585 # define LT_DLGLOBAL DL_GLOBAL
12586 # else
12587 # define LT_DLGLOBAL 0
12588 # endif
12589 #endif
12590
12591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12592 find out it does not work in some platform. */
12593 #ifndef LT_DLLAZY_OR_NOW
12594 # ifdef RTLD_LAZY
12595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12596 # else
12597 # ifdef DL_LAZY
12598 # define LT_DLLAZY_OR_NOW DL_LAZY
12599 # else
12600 # ifdef RTLD_NOW
12601 # define LT_DLLAZY_OR_NOW RTLD_NOW
12602 # else
12603 # ifdef DL_NOW
12604 # define LT_DLLAZY_OR_NOW DL_NOW
12605 # else
12606 # define LT_DLLAZY_OR_NOW 0
12607 # endif
12608 # endif
12609 # endif
12610 # endif
12611 #endif
12612
12613 /* When -fvisibility=hidden is used, assume the code has been annotated
12614 correspondingly for the symbols needed. */
12615 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12616 int fnord () __attribute__((visibility("default")));
12617 #endif
12618
12619 int fnord () { return 42; }
12620 int main ()
12621 {
12622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12623 int status = $lt_dlunknown;
12624
12625 if (self)
12626 {
12627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12628 else
12629 {
12630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12631 else puts (dlerror ());
12632 }
12633 /* dlclose (self); */
12634 }
12635 else
12636 puts (dlerror ());
12637
12638 return status;
12639 }
12640 _LT_EOF
12641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12642 (eval $ac_link) 2>&5
12643 ac_status=$?
12644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12645 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12646 (./conftest; exit; ) >&5 2>/dev/null
12647 lt_status=$?
12648 case x$lt_status in
12649 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12650 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12651 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12652 esac
12653 else :
12654 # compilation failed
12655 lt_cv_dlopen_self=no
12656 fi
12657 fi
12658 rm -fr conftest*
12659
12660
12661 fi
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12663 $as_echo "$lt_cv_dlopen_self" >&6; }
12664
12665 if test yes = "$lt_cv_dlopen_self"; then
12666 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12668 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12669 if ${lt_cv_dlopen_self_static+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 if test yes = "$cross_compiling"; then :
12673 lt_cv_dlopen_self_static=cross
12674 else
12675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12676 lt_status=$lt_dlunknown
12677 cat > conftest.$ac_ext <<_LT_EOF
12678 #line $LINENO "configure"
12679 #include "confdefs.h"
12680
12681 #if HAVE_DLFCN_H
12682 #include <dlfcn.h>
12683 #endif
12684
12685 #include <stdio.h>
12686
12687 #ifdef RTLD_GLOBAL
12688 # define LT_DLGLOBAL RTLD_GLOBAL
12689 #else
12690 # ifdef DL_GLOBAL
12691 # define LT_DLGLOBAL DL_GLOBAL
12692 # else
12693 # define LT_DLGLOBAL 0
12694 # endif
12695 #endif
12696
12697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12698 find out it does not work in some platform. */
12699 #ifndef LT_DLLAZY_OR_NOW
12700 # ifdef RTLD_LAZY
12701 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12702 # else
12703 # ifdef DL_LAZY
12704 # define LT_DLLAZY_OR_NOW DL_LAZY
12705 # else
12706 # ifdef RTLD_NOW
12707 # define LT_DLLAZY_OR_NOW RTLD_NOW
12708 # else
12709 # ifdef DL_NOW
12710 # define LT_DLLAZY_OR_NOW DL_NOW
12711 # else
12712 # define LT_DLLAZY_OR_NOW 0
12713 # endif
12714 # endif
12715 # endif
12716 # endif
12717 #endif
12718
12719 /* When -fvisibility=hidden is used, assume the code has been annotated
12720 correspondingly for the symbols needed. */
12721 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12722 int fnord () __attribute__((visibility("default")));
12723 #endif
12724
12725 int fnord () { return 42; }
12726 int main ()
12727 {
12728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12729 int status = $lt_dlunknown;
12730
12731 if (self)
12732 {
12733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12734 else
12735 {
12736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12737 else puts (dlerror ());
12738 }
12739 /* dlclose (self); */
12740 }
12741 else
12742 puts (dlerror ());
12743
12744 return status;
12745 }
12746 _LT_EOF
12747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12748 (eval $ac_link) 2>&5
12749 ac_status=$?
12750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12751 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12752 (./conftest; exit; ) >&5 2>/dev/null
12753 lt_status=$?
12754 case x$lt_status in
12755 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12756 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12757 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12758 esac
12759 else :
12760 # compilation failed
12761 lt_cv_dlopen_self_static=no
12762 fi
12763 fi
12764 rm -fr conftest*
12765
12766
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12769 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12770 fi
12771
12772 CPPFLAGS=$save_CPPFLAGS
12773 LDFLAGS=$save_LDFLAGS
12774 LIBS=$save_LIBS
12775 ;;
12776 esac
12777
12778 case $lt_cv_dlopen_self in
12779 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12780 *) enable_dlopen_self=unknown ;;
12781 esac
12782
12783 case $lt_cv_dlopen_self_static in
12784 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12785 *) enable_dlopen_self_static=unknown ;;
12786 esac
12787 fi
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 striplib=
12806 old_striplib=
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12808 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12809 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12810 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12811 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12813 $as_echo "yes" >&6; }
12814 else
12815 # FIXME - insert some real tests, host_os isn't really good enough
12816 case $host_os in
12817 darwin*)
12818 if test -n "$STRIP"; then
12819 striplib="$STRIP -x"
12820 old_striplib="$STRIP -S"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823 else
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12825 $as_echo "no" >&6; }
12826 fi
12827 ;;
12828 *)
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12831 ;;
12832 esac
12833 fi
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 # Report what library types will actually be built
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12848 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12850 $as_echo "$can_build_shared" >&6; }
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12853 $as_echo_n "checking whether to build shared libraries... " >&6; }
12854 test no = "$can_build_shared" && enable_shared=no
12855
12856 # On AIX, shared libraries and static libraries use the same namespace, and
12857 # are all built from PIC.
12858 case $host_os in
12859 aix3*)
12860 test yes = "$enable_shared" && enable_static=no
12861 if test -n "$RANLIB"; then
12862 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12863 postinstall_cmds='$RANLIB $lib'
12864 fi
12865 ;;
12866
12867 aix[4-9]*)
12868 if test ia64 != "$host_cpu"; then
12869 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12870 yes,aix,yes) ;; # shared object as lib.so file only
12871 yes,svr4,*) ;; # shared object as lib.so archive member only
12872 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12873 esac
12874 fi
12875 ;;
12876 esac
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12878 $as_echo "$enable_shared" >&6; }
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12881 $as_echo_n "checking whether to build static libraries... " >&6; }
12882 # Make sure either enable_shared or enable_static is yes.
12883 test yes = "$enable_shared" || enable_static=yes
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12885 $as_echo "$enable_static" >&6; }
12886
12887
12888
12889
12890 fi
12891 ac_ext=c
12892 ac_cpp='$CPP $CPPFLAGS'
12893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12896
12897 CC=$lt_save_CC
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913 ac_config_commands="$ac_config_commands libtool"
12914
12915
12916
12917
12918 # Only expand once:
12919
12920
12921
12922
12923 ac_ext=c
12924 ac_cpp='$CPP $CPPFLAGS'
12925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928
12929 saved_CFLAGS="$CFLAGS"
12930 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
12932 $as_echo_n "checking whether compiler accepts -fvisibility=hidden... " >&6; }
12933 if ${ac_cv_fvisibility_hidden+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12937 /* end confdefs.h. */
12938
12939 _ACEOF
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 ac_cv_fvisibility_hidden=yes
12942 else
12943 ac_cv_fvisibility_hidden=no
12944
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
12949 $as_echo "$ac_cv_fvisibility_hidden" >&6; }
12950 if test "$ac_cv_fvisibility_hidden" = "yes"; then
12951
12952 $as_echo "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
12953
12954 GCC_FVISIBILITY_HIDDEN=-fvisibility=hidden
12955
12956 fi
12957 CFLAGS="$saved_CFLAGS"
12958 ac_ext=c
12959 ac_cpp='$CPP $CPPFLAGS'
12960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12963
12964
12965
12966 case "$host" in
12967 *-*-linux* | *-*-uclinux*) ;;
12968 *) as_fn_error $? "Linux only, dude!" "$LINENO" 5;;
12969 esac
12970
12971
12972
12973
12974
12975
12976
12977
12978 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12979 if test -n "$ac_tool_prefix"; then
12980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12983 $as_echo_n "checking for $ac_word... " >&6; }
12984 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12985 $as_echo_n "(cached) " >&6
12986 else
12987 case $PKG_CONFIG in
12988 [\\/]* | ?:[\\/]*)
12989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12990 ;;
12991 *)
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12994 do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13002 fi
13003 done
13004 done
13005 IFS=$as_save_IFS
13006
13007 ;;
13008 esac
13009 fi
13010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13013 $as_echo "$PKG_CONFIG" >&6; }
13014 else
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13016 $as_echo "no" >&6; }
13017 fi
13018
13019
13020 fi
13021 if test -z "$ac_cv_path_PKG_CONFIG"; then
13022 ac_pt_PKG_CONFIG=$PKG_CONFIG
13023 # Extract the first word of "pkg-config", so it can be a program name with args.
13024 set dummy pkg-config; ac_word=$2
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13026 $as_echo_n "checking for $ac_word... " >&6; }
13027 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13028 $as_echo_n "(cached) " >&6
13029 else
13030 case $ac_pt_PKG_CONFIG in
13031 [\\/]* | ?:[\\/]*)
13032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13033 ;;
13034 *)
13035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13036 for as_dir in $PATH
13037 do
13038 IFS=$as_save_IFS
13039 test -z "$as_dir" && as_dir=.
13040 for ac_exec_ext in '' $ac_executable_extensions; do
13041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13044 break 2
13045 fi
13046 done
13047 done
13048 IFS=$as_save_IFS
13049
13050 ;;
13051 esac
13052 fi
13053 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13054 if test -n "$ac_pt_PKG_CONFIG"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13056 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13057 else
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059 $as_echo "no" >&6; }
13060 fi
13061
13062 if test "x$ac_pt_PKG_CONFIG" = x; then
13063 PKG_CONFIG=""
13064 else
13065 case $cross_compiling:$ac_tool_warned in
13066 yes:)
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13069 ac_tool_warned=yes ;;
13070 esac
13071 PKG_CONFIG=$ac_pt_PKG_CONFIG
13072 fi
13073 else
13074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13075 fi
13076
13077 fi
13078 if test -n "$PKG_CONFIG"; then
13079 _pkg_min_version=0.9.0
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13081 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13084 $as_echo "yes" >&6; }
13085 else
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087 $as_echo "no" >&6; }
13088 PKG_CONFIG=""
13089 fi
13090 fi
13091
13092 pkg_failed=no
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNFNETLINK" >&5
13094 $as_echo_n "checking for LIBNFNETLINK... " >&6; }
13095
13096 if test -n "$LIBNFNETLINK_CFLAGS"; then
13097 pkg_cv_LIBNFNETLINK_CFLAGS="$LIBNFNETLINK_CFLAGS"
13098 elif test -n "$PKG_CONFIG"; then
13099 if test -n "$PKG_CONFIG" && \
13100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 0.0.41\""; } >&5
13101 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 0.0.41") 2>&5
13102 ac_status=$?
13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13104 test $ac_status = 0; }; then
13105 pkg_cv_LIBNFNETLINK_CFLAGS=`$PKG_CONFIG --cflags "libnfnetlink >= 0.0.41" 2>/dev/null`
13106 test "x$?" != "x0" && pkg_failed=yes
13107 else
13108 pkg_failed=yes
13109 fi
13110 else
13111 pkg_failed=untried
13112 fi
13113 if test -n "$LIBNFNETLINK_LIBS"; then
13114 pkg_cv_LIBNFNETLINK_LIBS="$LIBNFNETLINK_LIBS"
13115 elif test -n "$PKG_CONFIG"; then
13116 if test -n "$PKG_CONFIG" && \
13117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 0.0.41\""; } >&5
13118 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 0.0.41") 2>&5
13119 ac_status=$?
13120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13121 test $ac_status = 0; }; then
13122 pkg_cv_LIBNFNETLINK_LIBS=`$PKG_CONFIG --libs "libnfnetlink >= 0.0.41" 2>/dev/null`
13123 test "x$?" != "x0" && pkg_failed=yes
13124 else
13125 pkg_failed=yes
13126 fi
13127 else
13128 pkg_failed=untried
13129 fi
13130
13131
13132
13133 if test $pkg_failed = yes; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136
13137 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13138 _pkg_short_errors_supported=yes
13139 else
13140 _pkg_short_errors_supported=no
13141 fi
13142 if test $_pkg_short_errors_supported = yes; then
13143 LIBNFNETLINK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnfnetlink >= 0.0.41" 2>&1`
13144 else
13145 LIBNFNETLINK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnfnetlink >= 0.0.41" 2>&1`
13146 fi
13147 # Put the nasty error message in config.log where it belongs
13148 echo "$LIBNFNETLINK_PKG_ERRORS" >&5
13149
13150 as_fn_error $? "Package requirements (libnfnetlink >= 0.0.41) were not met:
13151
13152 $LIBNFNETLINK_PKG_ERRORS
13153
13154 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13155 installed software in a non-standard prefix.
13156
13157 Alternatively, you may set the environment variables LIBNFNETLINK_CFLAGS
13158 and LIBNFNETLINK_LIBS to avoid the need to call pkg-config.
13159 See the pkg-config man page for more details." "$LINENO" 5
13160 elif test $pkg_failed = untried; then
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13162 $as_echo "no" >&6; }
13163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13165 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13166 is in your PATH or set the PKG_CONFIG environment variable to the full
13167 path to pkg-config.
13168
13169 Alternatively, you may set the environment variables LIBNFNETLINK_CFLAGS
13170 and LIBNFNETLINK_LIBS to avoid the need to call pkg-config.
13171 See the pkg-config man page for more details.
13172
13173 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13174 See \`config.log' for more details" "$LINENO" 5; }
13175 else
13176 LIBNFNETLINK_CFLAGS=$pkg_cv_LIBNFNETLINK_CFLAGS
13177 LIBNFNETLINK_LIBS=$pkg_cv_LIBNFNETLINK_LIBS
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13179 $as_echo "yes" >&6; }
13180
13181 fi
13182
13183 pkg_failed=no
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBMNL" >&5
13185 $as_echo_n "checking for LIBMNL... " >&6; }
13186
13187 if test -n "$LIBMNL_CFLAGS"; then
13188 pkg_cv_LIBMNL_CFLAGS="$LIBMNL_CFLAGS"
13189 elif test -n "$PKG_CONFIG"; then
13190 if test -n "$PKG_CONFIG" && \
13191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl >= 1.0.3\""; } >&5
13192 ($PKG_CONFIG --exists --print-errors "libmnl >= 1.0.3") 2>&5
13193 ac_status=$?
13194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13195 test $ac_status = 0; }; then
13196 pkg_cv_LIBMNL_CFLAGS=`$PKG_CONFIG --cflags "libmnl >= 1.0.3" 2>/dev/null`
13197 test "x$?" != "x0" && pkg_failed=yes
13198 else
13199 pkg_failed=yes
13200 fi
13201 else
13202 pkg_failed=untried
13203 fi
13204 if test -n "$LIBMNL_LIBS"; then
13205 pkg_cv_LIBMNL_LIBS="$LIBMNL_LIBS"
13206 elif test -n "$PKG_CONFIG"; then
13207 if test -n "$PKG_CONFIG" && \
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmnl >= 1.0.3\""; } >&5
13209 ($PKG_CONFIG --exists --print-errors "libmnl >= 1.0.3") 2>&5
13210 ac_status=$?
13211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13212 test $ac_status = 0; }; then
13213 pkg_cv_LIBMNL_LIBS=`$PKG_CONFIG --libs "libmnl >= 1.0.3" 2>/dev/null`
13214 test "x$?" != "x0" && pkg_failed=yes
13215 else
13216 pkg_failed=yes
13217 fi
13218 else
13219 pkg_failed=untried
13220 fi
13221
13222
13223
13224 if test $pkg_failed = yes; then
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227
13228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13229 _pkg_short_errors_supported=yes
13230 else
13231 _pkg_short_errors_supported=no
13232 fi
13233 if test $_pkg_short_errors_supported = yes; then
13234 LIBMNL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmnl >= 1.0.3" 2>&1`
13235 else
13236 LIBMNL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmnl >= 1.0.3" 2>&1`
13237 fi
13238 # Put the nasty error message in config.log where it belongs
13239 echo "$LIBMNL_PKG_ERRORS" >&5
13240
13241 as_fn_error $? "Package requirements (libmnl >= 1.0.3) were not met:
13242
13243 $LIBMNL_PKG_ERRORS
13244
13245 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13246 installed software in a non-standard prefix.
13247
13248 Alternatively, you may set the environment variables LIBMNL_CFLAGS
13249 and LIBMNL_LIBS to avoid the need to call pkg-config.
13250 See the pkg-config man page for more details." "$LINENO" 5
13251 elif test $pkg_failed = untried; then
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13256 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13257 is in your PATH or set the PKG_CONFIG environment variable to the full
13258 path to pkg-config.
13259
13260 Alternatively, you may set the environment variables LIBMNL_CFLAGS
13261 and LIBMNL_LIBS to avoid the need to call pkg-config.
13262 See the pkg-config man page for more details.
13263
13264 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13265 See \`config.log' for more details" "$LINENO" 5; }
13266 else
13267 LIBMNL_CFLAGS=$pkg_cv_LIBMNL_CFLAGS
13268 LIBMNL_LIBS=$pkg_cv_LIBMNL_LIBS
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271
13272 fi
13273
13274 ac_config_files="$ac_config_files Makefile src/Makefile utils/Makefile examples/Makefile libnetfilter_queue.pc doxygen.cfg include/Makefile include/libnetfilter_queue/Makefile doxygen/Makefile include/linux/Makefile include/linux/netfilter/Makefile"
13275
13276
13277
13278 # Check whether --with-doxygen was given.
13279 if test "${with_doxygen+set}" = set; then :
13280 withval=$with_doxygen;
13281 else
13282 with_doxygen=no
13283 fi
13284
13285 if test "x$with_doxygen" = xyes; then :
13286
13287 for ac_prog in doxygen
13288 do
13289 # Extract the first word of "$ac_prog", so it can be a program name with args.
13290 set dummy $ac_prog; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if ${ac_cv_prog_DOXYGEN+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295 else
13296 if test -n "$DOXYGEN"; then
13297 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
13298 else
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13301 do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13306 ac_cv_prog_DOXYGEN="$ac_prog"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13308 break 2
13309 fi
13310 done
13311 done
13312 IFS=$as_save_IFS
13313
13314 fi
13315 fi
13316 DOXYGEN=$ac_cv_prog_DOXYGEN
13317 if test -n "$DOXYGEN"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13319 $as_echo "$DOXYGEN" >&6; }
13320 else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13323 fi
13324
13325
13326 test -n "$DOXYGEN" && break
13327 done
13328
13329
13330 fi
13331
13332 if test -n "$DOXYGEN"; then
13333 HAVE_DOXYGEN_TRUE=
13334 HAVE_DOXYGEN_FALSE='#'
13335 else
13336 HAVE_DOXYGEN_TRUE='#'
13337 HAVE_DOXYGEN_FALSE=
13338 fi
13339
13340 cat >confcache <<\_ACEOF
13341 # This file is a shell script that caches the results of configure
13342 # tests run on this system so they can be shared between configure
13343 # scripts and configure runs, see configure's option --config-cache.
13344 # It is not useful on other systems. If it contains results you don't
13345 # want to keep, you may remove or edit it.
13346 #
13347 # config.status only pays attention to the cache file if you give it
13348 # the --recheck option to rerun configure.
13349 #
13350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13352 # following values.
13353
13354 _ACEOF
13355
13356 # The following way of writing the cache mishandles newlines in values,
13357 # but we know of no workaround that is simple, portable, and efficient.
13358 # So, we kill variables containing newlines.
13359 # Ultrix sh set writes to stderr and can't be redirected directly,
13360 # and sets the high bit in the cache file unless we assign to the vars.
13361 (
13362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13363 eval ac_val=\$$ac_var
13364 case $ac_val in #(
13365 *${as_nl}*)
13366 case $ac_var in #(
13367 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13368 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13369 esac
13370 case $ac_var in #(
13371 _ | IFS | as_nl) ;; #(
13372 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13373 *) { eval $ac_var=; unset $ac_var;} ;;
13374 esac ;;
13375 esac
13376 done
13377
13378 (set) 2>&1 |
13379 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13380 *${as_nl}ac_space=\ *)
13381 # `set' does not quote correctly, so add quotes: double-quote
13382 # substitution turns \\\\ into \\, and sed turns \\ into \.
13383 sed -n \
13384 "s/'/'\\\\''/g;
13385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13386 ;; #(
13387 *)
13388 # `set' quotes correctly as required by POSIX, so do not add quotes.
13389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13390 ;;
13391 esac |
13392 sort
13393 ) |
13394 sed '
13395 /^ac_cv_env_/b end
13396 t clear
13397 :clear
13398 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13399 t end
13400 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13401 :end' >>confcache
13402 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13403 if test -w "$cache_file"; then
13404 if test "x$cache_file" != "x/dev/null"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13406 $as_echo "$as_me: updating cache $cache_file" >&6;}
13407 if test ! -f "$cache_file" || test -h "$cache_file"; then
13408 cat confcache >"$cache_file"
13409 else
13410 case $cache_file in #(
13411 */* | ?:*)
13412 mv -f confcache "$cache_file"$$ &&
13413 mv -f "$cache_file"$$ "$cache_file" ;; #(
13414 *)
13415 mv -f confcache "$cache_file" ;;
13416 esac
13417 fi
13418 fi
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13422 fi
13423 fi
13424 rm -f confcache
13425
13426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13427 # Let make expand exec_prefix.
13428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13429
13430 DEFS=-DHAVE_CONFIG_H
13431
13432 ac_libobjs=
13433 ac_ltlibobjs=
13434 U=
13435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13436 # 1. Remove the extension, and $U if already installed.
13437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13440 # will be set to the directory where LIBOBJS objects are built.
13441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13443 done
13444 LIBOBJS=$ac_libobjs
13445
13446 LTLIBOBJS=$ac_ltlibobjs
13447
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13450 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13451 if test -n "$am_sleep_pid"; then
13452 # Hide warnings about reused PIDs.
13453 wait $am_sleep_pid 2>/dev/null
13454 fi
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13456 $as_echo "done" >&6; }
13457 if test -n "$EXEEXT"; then
13458 am__EXEEXT_TRUE=
13459 am__EXEEXT_FALSE='#'
13460 else
13461 am__EXEEXT_TRUE='#'
13462 am__EXEEXT_FALSE=
13463 fi
13464
13465 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13466 as_fn_error $? "conditional \"AMDEP\" was never defined.
13467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13468 fi
13469 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13470 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13472 fi
13473 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13474 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13476 fi
13477 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
13478 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
13479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13480 fi
13481
13482 : "${CONFIG_STATUS=./config.status}"
13483 ac_write_fail=0
13484 ac_clean_files_save=$ac_clean_files
13485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13487 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13488 as_write_fail=0
13489 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13490 #! $SHELL
13491 # Generated by $as_me.
13492 # Run this file to recreate the current configuration.
13493 # Compiler output produced by configure, useful for debugging
13494 # configure, is in config.log if it exists.
13495
13496 debug=false
13497 ac_cs_recheck=false
13498 ac_cs_silent=false
13499
13500 SHELL=\${CONFIG_SHELL-$SHELL}
13501 export SHELL
13502 _ASEOF
13503 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13504 ## -------------------- ##
13505 ## M4sh Initialization. ##
13506 ## -------------------- ##
13507
13508 # Be more Bourne compatible
13509 DUALCASE=1; export DUALCASE # for MKS sh
13510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13511 emulate sh
13512 NULLCMD=:
13513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13514 # is contrary to our usage. Disable this feature.
13515 alias -g '${1+"$@"}'='"$@"'
13516 setopt NO_GLOB_SUBST
13517 else
13518 case `(set -o) 2>/dev/null` in #(
13519 *posix*) :
13520 set -o posix ;; #(
13521 *) :
13522 ;;
13523 esac
13524 fi
13525
13526
13527 as_nl='
13528 '
13529 export as_nl
13530 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13531 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13534 # Prefer a ksh shell builtin over an external printf program on Solaris,
13535 # but without wasting forks for bash or zsh.
13536 if test -z "$BASH_VERSION$ZSH_VERSION" \
13537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13538 as_echo='print -r --'
13539 as_echo_n='print -rn --'
13540 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13541 as_echo='printf %s\n'
13542 as_echo_n='printf %s'
13543 else
13544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13546 as_echo_n='/usr/ucb/echo -n'
13547 else
13548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13549 as_echo_n_body='eval
13550 arg=$1;
13551 case $arg in #(
13552 *"$as_nl"*)
13553 expr "X$arg" : "X\\(.*\\)$as_nl";
13554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13555 esac;
13556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13557 '
13558 export as_echo_n_body
13559 as_echo_n='sh -c $as_echo_n_body as_echo'
13560 fi
13561 export as_echo_body
13562 as_echo='sh -c $as_echo_body as_echo'
13563 fi
13564
13565 # The user is always right.
13566 if test "${PATH_SEPARATOR+set}" != set; then
13567 PATH_SEPARATOR=:
13568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13570 PATH_SEPARATOR=';'
13571 }
13572 fi
13573
13574
13575 # IFS
13576 # We need space, tab and new line, in precisely that order. Quoting is
13577 # there to prevent editors from complaining about space-tab.
13578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13579 # splitting by setting IFS to empty value.)
13580 IFS=" "" $as_nl"
13581
13582 # Find who we are. Look in the path if we contain no directory separator.
13583 as_myself=
13584 case $0 in #((
13585 *[\\/]* ) as_myself=$0 ;;
13586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587 for as_dir in $PATH
13588 do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
13591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13592 done
13593 IFS=$as_save_IFS
13594
13595 ;;
13596 esac
13597 # We did not find ourselves, most probably we were run as `sh COMMAND'
13598 # in which case we are not to be found in the path.
13599 if test "x$as_myself" = x; then
13600 as_myself=$0
13601 fi
13602 if test ! -f "$as_myself"; then
13603 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13604 exit 1
13605 fi
13606
13607 # Unset variables that we do not need and which cause bugs (e.g. in
13608 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13609 # suppresses any "Segmentation fault" message there. '((' could
13610 # trigger a bug in pdksh 5.2.14.
13611 for as_var in BASH_ENV ENV MAIL MAILPATH
13612 do eval test x\${$as_var+set} = xset \
13613 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13614 done
13615 PS1='$ '
13616 PS2='> '
13617 PS4='+ '
13618
13619 # NLS nuisances.
13620 LC_ALL=C
13621 export LC_ALL
13622 LANGUAGE=C
13623 export LANGUAGE
13624
13625 # CDPATH.
13626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13627
13628
13629 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13630 # ----------------------------------------
13631 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13632 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13633 # script with STATUS, using 1 if that was 0.
13634 as_fn_error ()
13635 {
13636 as_status=$1; test $as_status -eq 0 && as_status=1
13637 if test "$4"; then
13638 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13639 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13640 fi
13641 $as_echo "$as_me: error: $2" >&2
13642 as_fn_exit $as_status
13643 } # as_fn_error
13644
13645
13646 # as_fn_set_status STATUS
13647 # -----------------------
13648 # Set $? to STATUS, without forking.
13649 as_fn_set_status ()
13650 {
13651 return $1
13652 } # as_fn_set_status
13653
13654 # as_fn_exit STATUS
13655 # -----------------
13656 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13657 as_fn_exit ()
13658 {
13659 set +e
13660 as_fn_set_status $1
13661 exit $1
13662 } # as_fn_exit
13663
13664 # as_fn_unset VAR
13665 # ---------------
13666 # Portably unset VAR.
13667 as_fn_unset ()
13668 {
13669 { eval $1=; unset $1;}
13670 }
13671 as_unset=as_fn_unset
13672 # as_fn_append VAR VALUE
13673 # ----------------------
13674 # Append the text in VALUE to the end of the definition contained in VAR. Take
13675 # advantage of any shell optimizations that allow amortized linear growth over
13676 # repeated appends, instead of the typical quadratic growth present in naive
13677 # implementations.
13678 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13679 eval 'as_fn_append ()
13680 {
13681 eval $1+=\$2
13682 }'
13683 else
13684 as_fn_append ()
13685 {
13686 eval $1=\$$1\$2
13687 }
13688 fi # as_fn_append
13689
13690 # as_fn_arith ARG...
13691 # ------------------
13692 # Perform arithmetic evaluation on the ARGs, and store the result in the
13693 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13694 # must be portable across $(()) and expr.
13695 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13696 eval 'as_fn_arith ()
13697 {
13698 as_val=$(( $* ))
13699 }'
13700 else
13701 as_fn_arith ()
13702 {
13703 as_val=`expr "$@" || test $? -eq 1`
13704 }
13705 fi # as_fn_arith
13706
13707
13708 if expr a : '\(a\)' >/dev/null 2>&1 &&
13709 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13710 as_expr=expr
13711 else
13712 as_expr=false
13713 fi
13714
13715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13716 as_basename=basename
13717 else
13718 as_basename=false
13719 fi
13720
13721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13722 as_dirname=dirname
13723 else
13724 as_dirname=false
13725 fi
13726
13727 as_me=`$as_basename -- "$0" ||
13728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13729 X"$0" : 'X\(//\)$' \| \
13730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13731 $as_echo X/"$0" |
13732 sed '/^.*\/\([^/][^/]*\)\/*$/{
13733 s//\1/
13734 q
13735 }
13736 /^X\/\(\/\/\)$/{
13737 s//\1/
13738 q
13739 }
13740 /^X\/\(\/\).*/{
13741 s//\1/
13742 q
13743 }
13744 s/.*/./; q'`
13745
13746 # Avoid depending upon Character Ranges.
13747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13750 as_cr_digits='0123456789'
13751 as_cr_alnum=$as_cr_Letters$as_cr_digits
13752
13753 ECHO_C= ECHO_N= ECHO_T=
13754 case `echo -n x` in #(((((
13755 -n*)
13756 case `echo 'xy\c'` in
13757 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13758 xy) ECHO_C='\c';;
13759 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13760 ECHO_T=' ';;
13761 esac;;
13762 *)
13763 ECHO_N='-n';;
13764 esac
13765
13766 rm -f conf$$ conf$$.exe conf$$.file
13767 if test -d conf$$.dir; then
13768 rm -f conf$$.dir/conf$$.file
13769 else
13770 rm -f conf$$.dir
13771 mkdir conf$$.dir 2>/dev/null
13772 fi
13773 if (echo >conf$$.file) 2>/dev/null; then
13774 if ln -s conf$$.file conf$$ 2>/dev/null; then
13775 as_ln_s='ln -s'
13776 # ... but there are two gotchas:
13777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13779 # In both cases, we have to default to `cp -pR'.
13780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13781 as_ln_s='cp -pR'
13782 elif ln conf$$.file conf$$ 2>/dev/null; then
13783 as_ln_s=ln
13784 else
13785 as_ln_s='cp -pR'
13786 fi
13787 else
13788 as_ln_s='cp -pR'
13789 fi
13790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13791 rmdir conf$$.dir 2>/dev/null
13792
13793
13794 # as_fn_mkdir_p
13795 # -------------
13796 # Create "$as_dir" as a directory, including parents if necessary.
13797 as_fn_mkdir_p ()
13798 {
13799
13800 case $as_dir in #(
13801 -*) as_dir=./$as_dir;;
13802 esac
13803 test -d "$as_dir" || eval $as_mkdir_p || {
13804 as_dirs=
13805 while :; do
13806 case $as_dir in #(
13807 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13808 *) as_qdir=$as_dir;;
13809 esac
13810 as_dirs="'$as_qdir' $as_dirs"
13811 as_dir=`$as_dirname -- "$as_dir" ||
13812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13813 X"$as_dir" : 'X\(//\)[^/]' \| \
13814 X"$as_dir" : 'X\(//\)$' \| \
13815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13816 $as_echo X"$as_dir" |
13817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13818 s//\1/
13819 q
13820 }
13821 /^X\(\/\/\)[^/].*/{
13822 s//\1/
13823 q
13824 }
13825 /^X\(\/\/\)$/{
13826 s//\1/
13827 q
13828 }
13829 /^X\(\/\).*/{
13830 s//\1/
13831 q
13832 }
13833 s/.*/./; q'`
13834 test -d "$as_dir" && break
13835 done
13836 test -z "$as_dirs" || eval "mkdir $as_dirs"
13837 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13838
13839
13840 } # as_fn_mkdir_p
13841 if mkdir -p . 2>/dev/null; then
13842 as_mkdir_p='mkdir -p "$as_dir"'
13843 else
13844 test -d ./-p && rmdir ./-p
13845 as_mkdir_p=false
13846 fi
13847
13848
13849 # as_fn_executable_p FILE
13850 # -----------------------
13851 # Test if FILE is an executable regular file.
13852 as_fn_executable_p ()
13853 {
13854 test -f "$1" && test -x "$1"
13855 } # as_fn_executable_p
13856 as_test_x='test -x'
13857 as_executable_p=as_fn_executable_p
13858
13859 # Sed expression to map a string onto a valid CPP name.
13860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13861
13862 # Sed expression to map a string onto a valid variable name.
13863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13864
13865
13866 exec 6>&1
13867 ## ----------------------------------- ##
13868 ## Main body of $CONFIG_STATUS script. ##
13869 ## ----------------------------------- ##
13870 _ASEOF
13871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13872
13873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13874 # Save the log message, to keep $0 and so on meaningful, and to
13875 # report actual input values of CONFIG_FILES etc. instead of their
13876 # values after options handling.
13877 ac_log="
13878 This file was extended by libnetfilter_queue $as_me 1.0.5, which was
13879 generated by GNU Autoconf 2.69. Invocation command line was
13880
13881 CONFIG_FILES = $CONFIG_FILES
13882 CONFIG_HEADERS = $CONFIG_HEADERS
13883 CONFIG_LINKS = $CONFIG_LINKS
13884 CONFIG_COMMANDS = $CONFIG_COMMANDS
13885 $ $0 $@
13886
13887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13888 "
13889
13890 _ACEOF
13891
13892 case $ac_config_files in *"
13893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13894 esac
13895
13896 case $ac_config_headers in *"
13897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13898 esac
13899
13900
13901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13902 # Files that config.status was made for.
13903 config_files="$ac_config_files"
13904 config_headers="$ac_config_headers"
13905 config_commands="$ac_config_commands"
13906
13907 _ACEOF
13908
13909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13910 ac_cs_usage="\
13911 \`$as_me' instantiates files and other configuration actions
13912 from templates according to the current configuration. Unless the files
13913 and actions are specified as TAGs, all are instantiated by default.
13914
13915 Usage: $0 [OPTION]... [TAG]...
13916
13917 -h, --help print this help, then exit
13918 -V, --version print version number and configuration settings, then exit
13919 --config print configuration, then exit
13920 -q, --quiet, --silent
13921 do not print progress messages
13922 -d, --debug don't remove temporary files
13923 --recheck update $as_me by reconfiguring in the same conditions
13924 --file=FILE[:TEMPLATE]
13925 instantiate the configuration file FILE
13926 --header=FILE[:TEMPLATE]
13927 instantiate the configuration header FILE
13928
13929 Configuration files:
13930 $config_files
13931
13932 Configuration headers:
13933 $config_headers
13934
13935 Configuration commands:
13936 $config_commands
13937
13938 Report bugs to the package provider."
13939
13940 _ACEOF
13941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13943 ac_cs_version="\\
13944 libnetfilter_queue config.status 1.0.5
13945 configured by $0, generated by GNU Autoconf 2.69,
13946 with options \\"\$ac_cs_config\\"
13947
13948 Copyright (C) 2012 Free Software Foundation, Inc.
13949 This config.status script is free software; the Free Software Foundation
13950 gives unlimited permission to copy, distribute and modify it."
13951
13952 ac_pwd='$ac_pwd'
13953 srcdir='$srcdir'
13954 INSTALL='$INSTALL'
13955 MKDIR_P='$MKDIR_P'
13956 AWK='$AWK'
13957 test -n "\$AWK" || AWK=awk
13958 _ACEOF
13959
13960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13961 # The default lists apply if the user does not specify any file.
13962 ac_need_defaults=:
13963 while test $# != 0
13964 do
13965 case $1 in
13966 --*=?*)
13967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13968 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13969 ac_shift=:
13970 ;;
13971 --*=)
13972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13973 ac_optarg=
13974 ac_shift=:
13975 ;;
13976 *)
13977 ac_option=$1
13978 ac_optarg=$2
13979 ac_shift=shift
13980 ;;
13981 esac
13982
13983 case $ac_option in
13984 # Handling of the options.
13985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13986 ac_cs_recheck=: ;;
13987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13988 $as_echo "$ac_cs_version"; exit ;;
13989 --config | --confi | --conf | --con | --co | --c )
13990 $as_echo "$ac_cs_config"; exit ;;
13991 --debug | --debu | --deb | --de | --d | -d )
13992 debug=: ;;
13993 --file | --fil | --fi | --f )
13994 $ac_shift
13995 case $ac_optarg in
13996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13997 '') as_fn_error $? "missing file argument" ;;
13998 esac
13999 as_fn_append CONFIG_FILES " '$ac_optarg'"
14000 ac_need_defaults=false;;
14001 --header | --heade | --head | --hea )
14002 $ac_shift
14003 case $ac_optarg in
14004 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14005 esac
14006 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14007 ac_need_defaults=false;;
14008 --he | --h)
14009 # Conflict between --help and --header
14010 as_fn_error $? "ambiguous option: \`$1'
14011 Try \`$0 --help' for more information.";;
14012 --help | --hel | -h )
14013 $as_echo "$ac_cs_usage"; exit ;;
14014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14015 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14016 ac_cs_silent=: ;;
14017
14018 # This is an error.
14019 -*) as_fn_error $? "unrecognized option: \`$1'
14020 Try \`$0 --help' for more information." ;;
14021
14022 *) as_fn_append ac_config_targets " $1"
14023 ac_need_defaults=false ;;
14024
14025 esac
14026 shift
14027 done
14028
14029 ac_configure_extra_args=
14030
14031 if $ac_cs_silent; then
14032 exec 6>/dev/null
14033 ac_configure_extra_args="$ac_configure_extra_args --silent"
14034 fi
14035
14036 _ACEOF
14037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14038 if \$ac_cs_recheck; then
14039 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14040 shift
14041 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14042 CONFIG_SHELL='$SHELL'
14043 export CONFIG_SHELL
14044 exec "\$@"
14045 fi
14046
14047 _ACEOF
14048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14049 exec 5>>config.log
14050 {
14051 echo
14052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14053 ## Running $as_me. ##
14054 _ASBOX
14055 $as_echo "$ac_log"
14056 } >&5
14057
14058 _ACEOF
14059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14060 #
14061 # INIT-COMMANDS
14062 #
14063 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14064
14065
14066 # The HP-UX ksh and POSIX shell print the target directory to stdout
14067 # if CDPATH is set.
14068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14069
14070 sed_quote_subst='$sed_quote_subst'
14071 double_quote_subst='$double_quote_subst'
14072 delay_variable_subst='$delay_variable_subst'
14073 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14074 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14075 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14076 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14077 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14078 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14079 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14080 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14081 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14082 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14083 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14084 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14085 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14086 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14087 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14088 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14089 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14090 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14091 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14092 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14093 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14094 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14095 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14096 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14097 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14098 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14099 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14100 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14101 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14102 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14103 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14104 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14105 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14106 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14107 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14108 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14109 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14110 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14111 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14112 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14113 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14114 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14115 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14116 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14117 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14118 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14119 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14120 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14121 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14122 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14123 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14124 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14125 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14126 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14127 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14128 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14129 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14130 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14131 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"`'
14132 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14133 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14134 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14135 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14136 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14137 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14138 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14139 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14140 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14141 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14142 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14143 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14144 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14145 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14146 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14147 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14148 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14149 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14150 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14151 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14152 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14153 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14154 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14155 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14156 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14157 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14158 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14159 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14160 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14161 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14162 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14163 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14164 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14165 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14166 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14167 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14168 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14169 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14170 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14171 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14172 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14173 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14174 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14175 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14176 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14177 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14178 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14179 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14180 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14181 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14182 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14183 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14184 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14185 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14186 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14187 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14188 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14189 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14190 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14191 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14192 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14193 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14194 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14195 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14196 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14197 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14198 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14199 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14200 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14201 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14202 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14203 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14204 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14205 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14206 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14207 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14208
14209 LTCC='$LTCC'
14210 LTCFLAGS='$LTCFLAGS'
14211 compiler='$compiler_DEFAULT'
14212
14213 # A function that is used when there is no print builtin or printf.
14214 func_fallback_echo ()
14215 {
14216 eval 'cat <<_LTECHO_EOF
14217 \$1
14218 _LTECHO_EOF'
14219 }
14220
14221 # Quote evaled strings.
14222 for var in SHELL \
14223 ECHO \
14224 PATH_SEPARATOR \
14225 SED \
14226 GREP \
14227 EGREP \
14228 FGREP \
14229 LD \
14230 NM \
14231 LN_S \
14232 lt_SP2NL \
14233 lt_NL2SP \
14234 reload_flag \
14235 OBJDUMP \
14236 deplibs_check_method \
14237 file_magic_cmd \
14238 file_magic_glob \
14239 want_nocaseglob \
14240 DLLTOOL \
14241 sharedlib_from_linklib_cmd \
14242 AR \
14243 AR_FLAGS \
14244 archiver_list_spec \
14245 STRIP \
14246 RANLIB \
14247 CC \
14248 CFLAGS \
14249 compiler \
14250 lt_cv_sys_global_symbol_pipe \
14251 lt_cv_sys_global_symbol_to_cdecl \
14252 lt_cv_sys_global_symbol_to_import \
14253 lt_cv_sys_global_symbol_to_c_name_address \
14254 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14255 lt_cv_nm_interface \
14256 nm_file_list_spec \
14257 lt_cv_truncate_bin \
14258 lt_prog_compiler_no_builtin_flag \
14259 lt_prog_compiler_pic \
14260 lt_prog_compiler_wl \
14261 lt_prog_compiler_static \
14262 lt_cv_prog_compiler_c_o \
14263 need_locks \
14264 MANIFEST_TOOL \
14265 DSYMUTIL \
14266 NMEDIT \
14267 LIPO \
14268 OTOOL \
14269 OTOOL64 \
14270 shrext_cmds \
14271 export_dynamic_flag_spec \
14272 whole_archive_flag_spec \
14273 compiler_needs_object \
14274 with_gnu_ld \
14275 allow_undefined_flag \
14276 no_undefined_flag \
14277 hardcode_libdir_flag_spec \
14278 hardcode_libdir_separator \
14279 exclude_expsyms \
14280 include_expsyms \
14281 file_list_spec \
14282 variables_saved_for_relink \
14283 libname_spec \
14284 library_names_spec \
14285 soname_spec \
14286 install_override_mode \
14287 finish_eval \
14288 old_striplib \
14289 striplib; do
14290 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14291 *[\\\\\\\`\\"\\\$]*)
14292 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14293 ;;
14294 *)
14295 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14296 ;;
14297 esac
14298 done
14299
14300 # Double-quote double-evaled strings.
14301 for var in reload_cmds \
14302 old_postinstall_cmds \
14303 old_postuninstall_cmds \
14304 old_archive_cmds \
14305 extract_expsyms_cmds \
14306 old_archive_from_new_cmds \
14307 old_archive_from_expsyms_cmds \
14308 archive_cmds \
14309 archive_expsym_cmds \
14310 module_cmds \
14311 module_expsym_cmds \
14312 export_symbols_cmds \
14313 prelink_cmds \
14314 postlink_cmds \
14315 postinstall_cmds \
14316 postuninstall_cmds \
14317 finish_cmds \
14318 sys_lib_search_path_spec \
14319 configure_time_dlsearch_path \
14320 configure_time_lt_sys_library_path; do
14321 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14322 *[\\\\\\\`\\"\\\$]*)
14323 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14324 ;;
14325 *)
14326 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14327 ;;
14328 esac
14329 done
14330
14331 ac_aux_dir='$ac_aux_dir'
14332
14333 # See if we are running on zsh, and set the options that allow our
14334 # commands through without removal of \ escapes INIT.
14335 if test -n "\${ZSH_VERSION+set}"; then
14336 setopt NO_GLOB_SUBST
14337 fi
14338
14339
14340 PACKAGE='$PACKAGE'
14341 VERSION='$VERSION'
14342 RM='$RM'
14343 ofile='$ofile'
14344
14345
14346
14347
14348 _ACEOF
14349
14350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14351
14352 # Handling of arguments.
14353 for ac_config_target in $ac_config_targets
14354 do
14355 case $ac_config_target in
14356 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14357 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14358 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14359 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14360 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14361 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
14362 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14363 "libnetfilter_queue.pc") CONFIG_FILES="$CONFIG_FILES libnetfilter_queue.pc" ;;
14364 "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
14365 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14366 "include/libnetfilter_queue/Makefile") CONFIG_FILES="$CONFIG_FILES include/libnetfilter_queue/Makefile" ;;
14367 "doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doxygen/Makefile" ;;
14368 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
14369 "include/linux/netfilter/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/netfilter/Makefile" ;;
14370
14371 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14372 esac
14373 done
14374
14375
14376 # If the user did not use the arguments to specify the items to instantiate,
14377 # then the envvar interface is used. Set only those that are not.
14378 # We use the long form for the default assignment because of an extremely
14379 # bizarre bug on SunOS 4.1.3.
14380 if $ac_need_defaults; then
14381 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14382 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14383 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14384 fi
14385
14386 # Have a temporary directory for convenience. Make it in the build tree
14387 # simply because there is no reason against having it here, and in addition,
14388 # creating and moving files from /tmp can sometimes cause problems.
14389 # Hook for its removal unless debugging.
14390 # Note that there is a small window in which the directory will not be cleaned:
14391 # after its creation but before its name has been assigned to `$tmp'.
14392 $debug ||
14393 {
14394 tmp= ac_tmp=
14395 trap 'exit_status=$?
14396 : "${ac_tmp:=$tmp}"
14397 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14398 ' 0
14399 trap 'as_fn_exit 1' 1 2 13 15
14400 }
14401 # Create a (secure) tmp directory for tmp files.
14402
14403 {
14404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14405 test -d "$tmp"
14406 } ||
14407 {
14408 tmp=./conf$$-$RANDOM
14409 (umask 077 && mkdir "$tmp")
14410 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14411 ac_tmp=$tmp
14412
14413 # Set up the scripts for CONFIG_FILES section.
14414 # No need to generate them if there are no CONFIG_FILES.
14415 # This happens for instance with `./config.status config.h'.
14416 if test -n "$CONFIG_FILES"; then
14417
14418
14419 ac_cr=`echo X | tr X '\015'`
14420 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14421 # But we know of no other shell where ac_cr would be empty at this
14422 # point, so we can use a bashism as a fallback.
14423 if test "x$ac_cr" = x; then
14424 eval ac_cr=\$\'\\r\'
14425 fi
14426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14428 ac_cs_awk_cr='\\r'
14429 else
14430 ac_cs_awk_cr=$ac_cr
14431 fi
14432
14433 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14434 _ACEOF
14435
14436
14437 {
14438 echo "cat >conf$$subs.awk <<_ACEOF" &&
14439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14440 echo "_ACEOF"
14441 } >conf$$subs.sh ||
14442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14443 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14444 ac_delim='%!_!# '
14445 for ac_last_try in false false false false false :; do
14446 . ./conf$$subs.sh ||
14447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14448
14449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14450 if test $ac_delim_n = $ac_delim_num; then
14451 break
14452 elif $ac_last_try; then
14453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14454 else
14455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14456 fi
14457 done
14458 rm -f conf$$subs.sh
14459
14460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14461 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14462 _ACEOF
14463 sed -n '
14464 h
14465 s/^/S["/; s/!.*/"]=/
14466 p
14467 g
14468 s/^[^!]*!//
14469 :repl
14470 t repl
14471 s/'"$ac_delim"'$//
14472 t delim
14473 :nl
14474 h
14475 s/\(.\{148\}\)..*/\1/
14476 t more1
14477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14478 p
14479 n
14480 b repl
14481 :more1
14482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14483 p
14484 g
14485 s/.\{148\}//
14486 t nl
14487 :delim
14488 h
14489 s/\(.\{148\}\)..*/\1/
14490 t more2
14491 s/["\\]/\\&/g; s/^/"/; s/$/"/
14492 p
14493 b
14494 :more2
14495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14496 p
14497 g
14498 s/.\{148\}//
14499 t delim
14500 ' <conf$$subs.awk | sed '
14501 /^[^""]/{
14502 N
14503 s/\n//
14504 }
14505 ' >>$CONFIG_STATUS || ac_write_fail=1
14506 rm -f conf$$subs.awk
14507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14508 _ACAWK
14509 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14510 for (key in S) S_is_set[key] = 1
14511 FS = ""
14512
14513 }
14514 {
14515 line = $ 0
14516 nfields = split(line, field, "@")
14517 substed = 0
14518 len = length(field[1])
14519 for (i = 2; i < nfields; i++) {
14520 key = field[i]
14521 keylen = length(key)
14522 if (S_is_set[key]) {
14523 value = S[key]
14524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14525 len += length(value) + length(field[++i])
14526 substed = 1
14527 } else
14528 len += 1 + keylen
14529 }
14530
14531 print line
14532 }
14533
14534 _ACAWK
14535 _ACEOF
14536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14539 else
14540 cat
14541 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14542 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14543 _ACEOF
14544
14545 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14546 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14547 # trailing colons and then remove the whole line if VPATH becomes empty
14548 # (actually we leave an empty line to preserve line numbers).
14549 if test "x$srcdir" = x.; then
14550 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14551 h
14552 s///
14553 s/^/:/
14554 s/[ ]*$/:/
14555 s/:\$(srcdir):/:/g
14556 s/:\${srcdir}:/:/g
14557 s/:@srcdir@:/:/g
14558 s/^:*//
14559 s/:*$//
14560 x
14561 s/\(=[ ]*\).*/\1/
14562 G
14563 s/\n//
14564 s/^[^=]*=[ ]*$//
14565 }'
14566 fi
14567
14568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14569 fi # test -n "$CONFIG_FILES"
14570
14571 # Set up the scripts for CONFIG_HEADERS section.
14572 # No need to generate them if there are no CONFIG_HEADERS.
14573 # This happens for instance with `./config.status Makefile'.
14574 if test -n "$CONFIG_HEADERS"; then
14575 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14576 BEGIN {
14577 _ACEOF
14578
14579 # Transform confdefs.h into an awk script `defines.awk', embedded as
14580 # here-document in config.status, that substitutes the proper values into
14581 # config.h.in to produce config.h.
14582
14583 # Create a delimiter string that does not exist in confdefs.h, to ease
14584 # handling of long lines.
14585 ac_delim='%!_!# '
14586 for ac_last_try in false false :; do
14587 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14588 if test -z "$ac_tt"; then
14589 break
14590 elif $ac_last_try; then
14591 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14592 else
14593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14594 fi
14595 done
14596
14597 # For the awk script, D is an array of macro values keyed by name,
14598 # likewise P contains macro parameters if any. Preserve backslash
14599 # newline sequences.
14600
14601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14602 sed -n '
14603 s/.\{148\}/&'"$ac_delim"'/g
14604 t rset
14605 :rset
14606 s/^[ ]*#[ ]*define[ ][ ]*/ /
14607 t def
14608 d
14609 :def
14610 s/\\$//
14611 t bsnl
14612 s/["\\]/\\&/g
14613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14614 D["\1"]=" \3"/p
14615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14616 d
14617 :bsnl
14618 s/["\\]/\\&/g
14619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14620 D["\1"]=" \3\\\\\\n"\\/p
14621 t cont
14622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14623 t cont
14624 d
14625 :cont
14626 n
14627 s/.\{148\}/&'"$ac_delim"'/g
14628 t clear
14629 :clear
14630 s/\\$//
14631 t bsnlc
14632 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14633 d
14634 :bsnlc
14635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14636 b cont
14637 ' <confdefs.h | sed '
14638 s/'"$ac_delim"'/"\\\
14639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14640
14641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14642 for (key in D) D_is_set[key] = 1
14643 FS = ""
14644 }
14645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14646 line = \$ 0
14647 split(line, arg, " ")
14648 if (arg[1] == "#") {
14649 defundef = arg[2]
14650 mac1 = arg[3]
14651 } else {
14652 defundef = substr(arg[1], 2)
14653 mac1 = arg[2]
14654 }
14655 split(mac1, mac2, "(") #)
14656 macro = mac2[1]
14657 prefix = substr(line, 1, index(line, defundef) - 1)
14658 if (D_is_set[macro]) {
14659 # Preserve the white space surrounding the "#".
14660 print prefix "define", macro P[macro] D[macro]
14661 next
14662 } else {
14663 # Replace #undef with comments. This is necessary, for example,
14664 # in the case of _POSIX_SOURCE, which is predefined and required
14665 # on some systems where configure will not decide to define it.
14666 if (defundef == "undef") {
14667 print "/*", prefix defundef, macro, "*/"
14668 next
14669 }
14670 }
14671 }
14672 { print }
14673 _ACAWK
14674 _ACEOF
14675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14676 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14677 fi # test -n "$CONFIG_HEADERS"
14678
14679
14680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14681 shift
14682 for ac_tag
14683 do
14684 case $ac_tag in
14685 :[FHLC]) ac_mode=$ac_tag; continue;;
14686 esac
14687 case $ac_mode$ac_tag in
14688 :[FHL]*:*);;
14689 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14690 :[FH]-) ac_tag=-:-;;
14691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14692 esac
14693 ac_save_IFS=$IFS
14694 IFS=:
14695 set x $ac_tag
14696 IFS=$ac_save_IFS
14697 shift
14698 ac_file=$1
14699 shift
14700
14701 case $ac_mode in
14702 :L) ac_source=$1;;
14703 :[FH])
14704 ac_file_inputs=
14705 for ac_f
14706 do
14707 case $ac_f in
14708 -) ac_f="$ac_tmp/stdin";;
14709 *) # Look for the file first in the build tree, then in the source tree
14710 # (if the path is not absolute). The absolute path cannot be DOS-style,
14711 # because $ac_f cannot contain `:'.
14712 test -f "$ac_f" ||
14713 case $ac_f in
14714 [\\/$]*) false;;
14715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14716 esac ||
14717 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14718 esac
14719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14720 as_fn_append ac_file_inputs " '$ac_f'"
14721 done
14722
14723 # Let's still pretend it is `configure' which instantiates (i.e., don't
14724 # use $as_me), people would be surprised to read:
14725 # /* config.h. Generated by config.status. */
14726 configure_input='Generated from '`
14727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14728 `' by configure.'
14729 if test x"$ac_file" != x-; then
14730 configure_input="$ac_file. $configure_input"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14732 $as_echo "$as_me: creating $ac_file" >&6;}
14733 fi
14734 # Neutralize special characters interpreted by sed in replacement strings.
14735 case $configure_input in #(
14736 *\&* | *\|* | *\\* )
14737 ac_sed_conf_input=`$as_echo "$configure_input" |
14738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14739 *) ac_sed_conf_input=$configure_input;;
14740 esac
14741
14742 case $ac_tag in
14743 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14745 esac
14746 ;;
14747 esac
14748
14749 ac_dir=`$as_dirname -- "$ac_file" ||
14750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14751 X"$ac_file" : 'X\(//\)[^/]' \| \
14752 X"$ac_file" : 'X\(//\)$' \| \
14753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14754 $as_echo X"$ac_file" |
14755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14756 s//\1/
14757 q
14758 }
14759 /^X\(\/\/\)[^/].*/{
14760 s//\1/
14761 q
14762 }
14763 /^X\(\/\/\)$/{
14764 s//\1/
14765 q
14766 }
14767 /^X\(\/\).*/{
14768 s//\1/
14769 q
14770 }
14771 s/.*/./; q'`
14772 as_dir="$ac_dir"; as_fn_mkdir_p
14773 ac_builddir=.
14774
14775 case "$ac_dir" in
14776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14777 *)
14778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14779 # A ".." for each directory in $ac_dir_suffix.
14780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14781 case $ac_top_builddir_sub in
14782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14784 esac ;;
14785 esac
14786 ac_abs_top_builddir=$ac_pwd
14787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14788 # for backward compatibility:
14789 ac_top_builddir=$ac_top_build_prefix
14790
14791 case $srcdir in
14792 .) # We are building in place.
14793 ac_srcdir=.
14794 ac_top_srcdir=$ac_top_builddir_sub
14795 ac_abs_top_srcdir=$ac_pwd ;;
14796 [\\/]* | ?:[\\/]* ) # Absolute name.
14797 ac_srcdir=$srcdir$ac_dir_suffix;
14798 ac_top_srcdir=$srcdir
14799 ac_abs_top_srcdir=$srcdir ;;
14800 *) # Relative name.
14801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14802 ac_top_srcdir=$ac_top_build_prefix$srcdir
14803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14804 esac
14805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14806
14807
14808 case $ac_mode in
14809 :F)
14810 #
14811 # CONFIG_FILE
14812 #
14813
14814 case $INSTALL in
14815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14817 esac
14818 ac_MKDIR_P=$MKDIR_P
14819 case $MKDIR_P in
14820 [\\/$]* | ?:[\\/]* ) ;;
14821 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14822 esac
14823 _ACEOF
14824
14825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14826 # If the template does not know about datarootdir, expand it.
14827 # FIXME: This hack should be removed a few years after 2.60.
14828 ac_datarootdir_hack=; ac_datarootdir_seen=
14829 ac_sed_dataroot='
14830 /datarootdir/ {
14831 p
14832 q
14833 }
14834 /@datadir@/p
14835 /@docdir@/p
14836 /@infodir@/p
14837 /@localedir@/p
14838 /@mandir@/p'
14839 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14840 *datarootdir*) ac_datarootdir_seen=yes;;
14841 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14843 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14844 _ACEOF
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 ac_datarootdir_hack='
14847 s&@datadir@&$datadir&g
14848 s&@docdir@&$docdir&g
14849 s&@infodir@&$infodir&g
14850 s&@localedir@&$localedir&g
14851 s&@mandir@&$mandir&g
14852 s&\\\${datarootdir}&$datarootdir&g' ;;
14853 esac
14854 _ACEOF
14855
14856 # Neutralize VPATH when `$srcdir' = `.'.
14857 # Shell code in configure.ac might set extrasub.
14858 # FIXME: do we really want to maintain this feature?
14859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14860 ac_sed_extra="$ac_vpsub
14861 $extrasub
14862 _ACEOF
14863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14864 :t
14865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14866 s|@configure_input@|$ac_sed_conf_input|;t t
14867 s&@top_builddir@&$ac_top_builddir_sub&;t t
14868 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14869 s&@srcdir@&$ac_srcdir&;t t
14870 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14871 s&@top_srcdir@&$ac_top_srcdir&;t t
14872 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14873 s&@builddir@&$ac_builddir&;t t
14874 s&@abs_builddir@&$ac_abs_builddir&;t t
14875 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14876 s&@INSTALL@&$ac_INSTALL&;t t
14877 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14878 $ac_datarootdir_hack
14879 "
14880 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14881 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14882
14883 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14884 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14885 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14886 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14888 which seems to be undefined. Please make sure it is defined" >&5
14889 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14890 which seems to be undefined. Please make sure it is defined" >&2;}
14891
14892 rm -f "$ac_tmp/stdin"
14893 case $ac_file in
14894 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14895 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14896 esac \
14897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14898 ;;
14899 :H)
14900 #
14901 # CONFIG_HEADER
14902 #
14903 if test x"$ac_file" != x-; then
14904 {
14905 $as_echo "/* $configure_input */" \
14906 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14907 } >"$ac_tmp/config.h" \
14908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14909 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14911 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14912 else
14913 rm -f "$ac_file"
14914 mv "$ac_tmp/config.h" "$ac_file" \
14915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14916 fi
14917 else
14918 $as_echo "/* $configure_input */" \
14919 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14920 || as_fn_error $? "could not create -" "$LINENO" 5
14921 fi
14922 # Compute "$ac_file"'s index in $config_headers.
14923 _am_arg="$ac_file"
14924 _am_stamp_count=1
14925 for _am_header in $config_headers :; do
14926 case $_am_header in
14927 $_am_arg | $_am_arg:* )
14928 break ;;
14929 * )
14930 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14931 esac
14932 done
14933 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14934 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14935 X"$_am_arg" : 'X\(//\)[^/]' \| \
14936 X"$_am_arg" : 'X\(//\)$' \| \
14937 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14938 $as_echo X"$_am_arg" |
14939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14940 s//\1/
14941 q
14942 }
14943 /^X\(\/\/\)[^/].*/{
14944 s//\1/
14945 q
14946 }
14947 /^X\(\/\/\)$/{
14948 s//\1/
14949 q
14950 }
14951 /^X\(\/\).*/{
14952 s//\1/
14953 q
14954 }
14955 s/.*/./; q'`/stamp-h$_am_stamp_count
14956 ;;
14957
14958 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14959 $as_echo "$as_me: executing $ac_file commands" >&6;}
14960 ;;
14961 esac
14962
14963
14964 case $ac_file$ac_mode in
14965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14966 # Older Autoconf quotes --file arguments for eval, but not when files
14967 # are listed without --file. Let's play safe and only enable the eval
14968 # if we detect the quoting.
14969 # TODO: see whether this extra hack can be removed once we start
14970 # requiring Autoconf 2.70 or later.
14971 case $CONFIG_FILES in #(
14972 *\'*) :
14973 eval set x "$CONFIG_FILES" ;; #(
14974 *) :
14975 set x $CONFIG_FILES ;; #(
14976 *) :
14977 ;;
14978 esac
14979 shift
14980 # Used to flag and report bootstrapping failures.
14981 am_rc=0
14982 for am_mf
14983 do
14984 # Strip MF so we end up with the name of the file.
14985 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14986 # Check whether this is an Automake generated Makefile which includes
14987 # dependency-tracking related rules and includes.
14988 # Grep'ing the whole file directly is not great: AIX grep has a line
14989 # limit of 2048, but all sed's we know have understand at least 4000.
14990 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14991 || continue
14992 am_dirpart=`$as_dirname -- "$am_mf" ||
14993 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14994 X"$am_mf" : 'X\(//\)[^/]' \| \
14995 X"$am_mf" : 'X\(//\)$' \| \
14996 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14997 $as_echo X"$am_mf" |
14998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14999 s//\1/
15000 q
15001 }
15002 /^X\(\/\/\)[^/].*/{
15003 s//\1/
15004 q
15005 }
15006 /^X\(\/\/\)$/{
15007 s//\1/
15008 q
15009 }
15010 /^X\(\/\).*/{
15011 s//\1/
15012 q
15013 }
15014 s/.*/./; q'`
15015 am_filepart=`$as_basename -- "$am_mf" ||
15016 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15017 X"$am_mf" : 'X\(//\)$' \| \
15018 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15019 $as_echo X/"$am_mf" |
15020 sed '/^.*\/\([^/][^/]*\)\/*$/{
15021 s//\1/
15022 q
15023 }
15024 /^X\/\(\/\/\)$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\/\(\/\).*/{
15029 s//\1/
15030 q
15031 }
15032 s/.*/./; q'`
15033 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15034 && sed -e '/# am--include-marker/d' "$am_filepart" \
15035 | $MAKE -f - am--depfiles" >&5
15036 (cd "$am_dirpart" \
15037 && sed -e '/# am--include-marker/d' "$am_filepart" \
15038 | $MAKE -f - am--depfiles) >&5 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } || am_rc=$?
15042 done
15043 if test $am_rc -ne 0; then
15044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15046 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15047 for automatic dependency tracking. Try re-running configure with the
15048 '--disable-dependency-tracking' option to at least be able to build
15049 the package (albeit without support for automatic dependency tracking).
15050 See \`config.log' for more details" "$LINENO" 5; }
15051 fi
15052 { am_dirpart=; unset am_dirpart;}
15053 { am_filepart=; unset am_filepart;}
15054 { am_mf=; unset am_mf;}
15055 { am_rc=; unset am_rc;}
15056 rm -f conftest-deps.mk
15057 }
15058 ;;
15059 "libtool":C)
15060
15061 # See if we are running on zsh, and set the options that allow our
15062 # commands through without removal of \ escapes.
15063 if test -n "${ZSH_VERSION+set}"; then
15064 setopt NO_GLOB_SUBST
15065 fi
15066
15067 cfgfile=${ofile}T
15068 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15069 $RM "$cfgfile"
15070
15071 cat <<_LT_EOF >> "$cfgfile"
15072 #! $SHELL
15073 # Generated automatically by $as_me ($PACKAGE) $VERSION
15074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15075
15076 # Provide generalized library-building support services.
15077 # Written by Gordon Matzigkeit, 1996
15078
15079 # Copyright (C) 2014 Free Software Foundation, Inc.
15080 # This is free software; see the source for copying conditions. There is NO
15081 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15082
15083 # GNU Libtool is free software; you can redistribute it and/or modify
15084 # it under the terms of the GNU General Public License as published by
15085 # the Free Software Foundation; either version 2 of of the License, or
15086 # (at your option) any later version.
15087 #
15088 # As a special exception to the GNU General Public License, if you
15089 # distribute this file as part of a program or library that is built
15090 # using GNU Libtool, you may include this file under the same
15091 # distribution terms that you use for the rest of that program.
15092 #
15093 # GNU Libtool is distributed in the hope that it will be useful, but
15094 # WITHOUT ANY WARRANTY; without even the implied warranty of
15095 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15096 # GNU General Public License for more details.
15097 #
15098 # You should have received a copy of the GNU General Public License
15099 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15100
15101
15102 # The names of the tagged configurations supported by this script.
15103 available_tags=''
15104
15105 # Configured defaults for sys_lib_dlsearch_path munging.
15106 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15107
15108 # ### BEGIN LIBTOOL CONFIG
15109
15110 # Whether or not to build static libraries.
15111 build_old_libs=$enable_static
15112
15113 # Which release of libtool.m4 was used?
15114 macro_version=$macro_version
15115 macro_revision=$macro_revision
15116
15117 # Whether or not to build shared libraries.
15118 build_libtool_libs=$enable_shared
15119
15120 # What type of objects to build.
15121 pic_mode=$pic_mode
15122
15123 # Whether or not to optimize for fast installation.
15124 fast_install=$enable_fast_install
15125
15126 # Shared archive member basename,for filename based shared library versioning on AIX.
15127 shared_archive_member_spec=$shared_archive_member_spec
15128
15129 # Shell to use when invoking shell scripts.
15130 SHELL=$lt_SHELL
15131
15132 # An echo program that protects backslashes.
15133 ECHO=$lt_ECHO
15134
15135 # The PATH separator for the build system.
15136 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15137
15138 # The host system.
15139 host_alias=$host_alias
15140 host=$host
15141 host_os=$host_os
15142
15143 # The build system.
15144 build_alias=$build_alias
15145 build=$build
15146 build_os=$build_os
15147
15148 # A sed program that does not truncate output.
15149 SED=$lt_SED
15150
15151 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15152 Xsed="\$SED -e 1s/^X//"
15153
15154 # A grep program that handles long lines.
15155 GREP=$lt_GREP
15156
15157 # An ERE matcher.
15158 EGREP=$lt_EGREP
15159
15160 # A literal string matcher.
15161 FGREP=$lt_FGREP
15162
15163 # A BSD- or MS-compatible name lister.
15164 NM=$lt_NM
15165
15166 # Whether we need soft or hard links.
15167 LN_S=$lt_LN_S
15168
15169 # What is the maximum length of a command?
15170 max_cmd_len=$max_cmd_len
15171
15172 # Object file suffix (normally "o").
15173 objext=$ac_objext
15174
15175 # Executable file suffix (normally "").
15176 exeext=$exeext
15177
15178 # whether the shell understands "unset".
15179 lt_unset=$lt_unset
15180
15181 # turn spaces into newlines.
15182 SP2NL=$lt_lt_SP2NL
15183
15184 # turn newlines into spaces.
15185 NL2SP=$lt_lt_NL2SP
15186
15187 # convert \$build file names to \$host format.
15188 to_host_file_cmd=$lt_cv_to_host_file_cmd
15189
15190 # convert \$build files to toolchain format.
15191 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15192
15193 # An object symbol dumper.
15194 OBJDUMP=$lt_OBJDUMP
15195
15196 # Method to check whether dependent libraries are shared objects.
15197 deplibs_check_method=$lt_deplibs_check_method
15198
15199 # Command to use when deplibs_check_method = "file_magic".
15200 file_magic_cmd=$lt_file_magic_cmd
15201
15202 # How to find potential files when deplibs_check_method = "file_magic".
15203 file_magic_glob=$lt_file_magic_glob
15204
15205 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15206 want_nocaseglob=$lt_want_nocaseglob
15207
15208 # DLL creation program.
15209 DLLTOOL=$lt_DLLTOOL
15210
15211 # Command to associate shared and link libraries.
15212 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15213
15214 # The archiver.
15215 AR=$lt_AR
15216
15217 # Flags to create an archive.
15218 AR_FLAGS=$lt_AR_FLAGS
15219
15220 # How to feed a file listing to the archiver.
15221 archiver_list_spec=$lt_archiver_list_spec
15222
15223 # A symbol stripping program.
15224 STRIP=$lt_STRIP
15225
15226 # Commands used to install an old-style archive.
15227 RANLIB=$lt_RANLIB
15228 old_postinstall_cmds=$lt_old_postinstall_cmds
15229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15230
15231 # Whether to use a lock for old archive extraction.
15232 lock_old_archive_extraction=$lock_old_archive_extraction
15233
15234 # A C compiler.
15235 LTCC=$lt_CC
15236
15237 # LTCC compiler flags.
15238 LTCFLAGS=$lt_CFLAGS
15239
15240 # Take the output of nm and produce a listing of raw symbols and C names.
15241 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15242
15243 # Transform the output of nm in a proper C declaration.
15244 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15245
15246 # Transform the output of nm into a list of symbols to manually relocate.
15247 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15248
15249 # Transform the output of nm in a C name address pair.
15250 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15251
15252 # Transform the output of nm in a C name address pair when lib prefix is needed.
15253 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15254
15255 # The name lister interface.
15256 nm_interface=$lt_lt_cv_nm_interface
15257
15258 # Specify filename containing input files for \$NM.
15259 nm_file_list_spec=$lt_nm_file_list_spec
15260
15261 # The root where to search for dependent libraries,and where our libraries should be installed.
15262 lt_sysroot=$lt_sysroot
15263
15264 # Command to truncate a binary pipe.
15265 lt_truncate_bin=$lt_lt_cv_truncate_bin
15266
15267 # The name of the directory that contains temporary libtool files.
15268 objdir=$objdir
15269
15270 # Used to examine libraries when file_magic_cmd begins with "file".
15271 MAGIC_CMD=$MAGIC_CMD
15272
15273 # Must we lock files when doing compilation?
15274 need_locks=$lt_need_locks
15275
15276 # Manifest tool.
15277 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15278
15279 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15280 DSYMUTIL=$lt_DSYMUTIL
15281
15282 # Tool to change global to local symbols on Mac OS X.
15283 NMEDIT=$lt_NMEDIT
15284
15285 # Tool to manipulate fat objects and archives on Mac OS X.
15286 LIPO=$lt_LIPO
15287
15288 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15289 OTOOL=$lt_OTOOL
15290
15291 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15292 OTOOL64=$lt_OTOOL64
15293
15294 # Old archive suffix (normally "a").
15295 libext=$libext
15296
15297 # Shared library suffix (normally ".so").
15298 shrext_cmds=$lt_shrext_cmds
15299
15300 # The commands to extract the exported symbol list from a shared archive.
15301 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15302
15303 # Variables whose values should be saved in libtool wrapper scripts and
15304 # restored at link time.
15305 variables_saved_for_relink=$lt_variables_saved_for_relink
15306
15307 # Do we need the "lib" prefix for modules?
15308 need_lib_prefix=$need_lib_prefix
15309
15310 # Do we need a version for libraries?
15311 need_version=$need_version
15312
15313 # Library versioning type.
15314 version_type=$version_type
15315
15316 # Shared library runtime path variable.
15317 runpath_var=$runpath_var
15318
15319 # Shared library path variable.
15320 shlibpath_var=$shlibpath_var
15321
15322 # Is shlibpath searched before the hard-coded library search path?
15323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15324
15325 # Format of library name prefix.
15326 libname_spec=$lt_libname_spec
15327
15328 # List of archive names. First name is the real one, the rest are links.
15329 # The last name is the one that the linker finds with -lNAME
15330 library_names_spec=$lt_library_names_spec
15331
15332 # The coded name of the library, if different from the real name.
15333 soname_spec=$lt_soname_spec
15334
15335 # Permission mode override for installation of shared libraries.
15336 install_override_mode=$lt_install_override_mode
15337
15338 # Command to use after installation of a shared archive.
15339 postinstall_cmds=$lt_postinstall_cmds
15340
15341 # Command to use after uninstallation of a shared archive.
15342 postuninstall_cmds=$lt_postuninstall_cmds
15343
15344 # Commands used to finish a libtool library installation in a directory.
15345 finish_cmds=$lt_finish_cmds
15346
15347 # As "finish_cmds", except a single script fragment to be evaled but
15348 # not shown.
15349 finish_eval=$lt_finish_eval
15350
15351 # Whether we should hardcode library paths into libraries.
15352 hardcode_into_libs=$hardcode_into_libs
15353
15354 # Compile-time system search path for libraries.
15355 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15356
15357 # Detected run-time system search path for libraries.
15358 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15359
15360 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15361 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15362
15363 # Whether dlopen is supported.
15364 dlopen_support=$enable_dlopen
15365
15366 # Whether dlopen of programs is supported.
15367 dlopen_self=$enable_dlopen_self
15368
15369 # Whether dlopen of statically linked programs is supported.
15370 dlopen_self_static=$enable_dlopen_self_static
15371
15372 # Commands to strip libraries.
15373 old_striplib=$lt_old_striplib
15374 striplib=$lt_striplib
15375
15376
15377 # The linker used to build libraries.
15378 LD=$lt_LD
15379
15380 # How to create reloadable object files.
15381 reload_flag=$lt_reload_flag
15382 reload_cmds=$lt_reload_cmds
15383
15384 # Commands used to build an old-style archive.
15385 old_archive_cmds=$lt_old_archive_cmds
15386
15387 # A language specific compiler.
15388 CC=$lt_compiler
15389
15390 # Is the compiler the GNU compiler?
15391 with_gcc=$GCC
15392
15393 # Compiler flag to turn off builtin functions.
15394 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15395
15396 # Additional compiler flags for building library objects.
15397 pic_flag=$lt_lt_prog_compiler_pic
15398
15399 # How to pass a linker flag through the compiler.
15400 wl=$lt_lt_prog_compiler_wl
15401
15402 # Compiler flag to prevent dynamic linking.
15403 link_static_flag=$lt_lt_prog_compiler_static
15404
15405 # Does compiler simultaneously support -c and -o options?
15406 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15407
15408 # Whether or not to add -lc for building shared libraries.
15409 build_libtool_need_lc=$archive_cmds_need_lc
15410
15411 # Whether or not to disallow shared libs when runtime libs are static.
15412 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15413
15414 # Compiler flag to allow reflexive dlopens.
15415 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15416
15417 # Compiler flag to generate shared objects directly from archives.
15418 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15419
15420 # Whether the compiler copes with passing no objects directly.
15421 compiler_needs_object=$lt_compiler_needs_object
15422
15423 # Create an old-style archive from a shared archive.
15424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15425
15426 # Create a temporary old-style archive to link instead of a shared archive.
15427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15428
15429 # Commands used to build a shared archive.
15430 archive_cmds=$lt_archive_cmds
15431 archive_expsym_cmds=$lt_archive_expsym_cmds
15432
15433 # Commands used to build a loadable module if different from building
15434 # a shared archive.
15435 module_cmds=$lt_module_cmds
15436 module_expsym_cmds=$lt_module_expsym_cmds
15437
15438 # Whether we are building with GNU ld or not.
15439 with_gnu_ld=$lt_with_gnu_ld
15440
15441 # Flag that allows shared libraries with undefined symbols to be built.
15442 allow_undefined_flag=$lt_allow_undefined_flag
15443
15444 # Flag that enforces no undefined symbols.
15445 no_undefined_flag=$lt_no_undefined_flag
15446
15447 # Flag to hardcode \$libdir into a binary during linking.
15448 # This must work even if \$libdir does not exist
15449 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15450
15451 # Whether we need a single "-rpath" flag with a separated argument.
15452 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15453
15454 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15455 # DIR into the resulting binary.
15456 hardcode_direct=$hardcode_direct
15457
15458 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15459 # DIR into the resulting binary and the resulting library dependency is
15460 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15461 # library is relocated.
15462 hardcode_direct_absolute=$hardcode_direct_absolute
15463
15464 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15465 # into the resulting binary.
15466 hardcode_minus_L=$hardcode_minus_L
15467
15468 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15469 # into the resulting binary.
15470 hardcode_shlibpath_var=$hardcode_shlibpath_var
15471
15472 # Set to "yes" if building a shared library automatically hardcodes DIR
15473 # into the library and all subsequent libraries and executables linked
15474 # against it.
15475 hardcode_automatic=$hardcode_automatic
15476
15477 # Set to yes if linker adds runtime paths of dependent libraries
15478 # to runtime path list.
15479 inherit_rpath=$inherit_rpath
15480
15481 # Whether libtool must link a program against all its dependency libraries.
15482 link_all_deplibs=$link_all_deplibs
15483
15484 # Set to "yes" if exported symbols are required.
15485 always_export_symbols=$always_export_symbols
15486
15487 # The commands to list exported symbols.
15488 export_symbols_cmds=$lt_export_symbols_cmds
15489
15490 # Symbols that should not be listed in the preloaded symbols.
15491 exclude_expsyms=$lt_exclude_expsyms
15492
15493 # Symbols that must always be exported.
15494 include_expsyms=$lt_include_expsyms
15495
15496 # Commands necessary for linking programs (against libraries) with templates.
15497 prelink_cmds=$lt_prelink_cmds
15498
15499 # Commands necessary for finishing linking programs.
15500 postlink_cmds=$lt_postlink_cmds
15501
15502 # Specify filename containing input files.
15503 file_list_spec=$lt_file_list_spec
15504
15505 # How to hardcode a shared library path into an executable.
15506 hardcode_action=$hardcode_action
15507
15508 # ### END LIBTOOL CONFIG
15509
15510 _LT_EOF
15511
15512 cat <<'_LT_EOF' >> "$cfgfile"
15513
15514 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15515
15516 # func_munge_path_list VARIABLE PATH
15517 # -----------------------------------
15518 # VARIABLE is name of variable containing _space_ separated list of
15519 # directories to be munged by the contents of PATH, which is string
15520 # having a format:
15521 # "DIR[:DIR]:"
15522 # string "DIR[ DIR]" will be prepended to VARIABLE
15523 # ":DIR[:DIR]"
15524 # string "DIR[ DIR]" will be appended to VARIABLE
15525 # "DIRP[:DIRP]::[DIRA:]DIRA"
15526 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15527 # "DIRA[ DIRA]" will be appended to VARIABLE
15528 # "DIR[:DIR]"
15529 # VARIABLE will be replaced by "DIR[ DIR]"
15530 func_munge_path_list ()
15531 {
15532 case x$2 in
15533 x)
15534 ;;
15535 *:)
15536 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15537 ;;
15538 x:*)
15539 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15540 ;;
15541 *::*)
15542 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15543 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15544 ;;
15545 *)
15546 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15547 ;;
15548 esac
15549 }
15550
15551
15552 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15553 func_cc_basename ()
15554 {
15555 for cc_temp in $*""; do
15556 case $cc_temp in
15557 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15558 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15559 \-*) ;;
15560 *) break;;
15561 esac
15562 done
15563 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15564 }
15565
15566
15567 # ### END FUNCTIONS SHARED WITH CONFIGURE
15568
15569 _LT_EOF
15570
15571 case $host_os in
15572 aix3*)
15573 cat <<\_LT_EOF >> "$cfgfile"
15574 # AIX sometimes has problems with the GCC collect2 program. For some
15575 # reason, if we set the COLLECT_NAMES environment variable, the problems
15576 # vanish in a puff of smoke.
15577 if test set != "${COLLECT_NAMES+set}"; then
15578 COLLECT_NAMES=
15579 export COLLECT_NAMES
15580 fi
15581 _LT_EOF
15582 ;;
15583 esac
15584
15585
15586 ltmain=$ac_aux_dir/ltmain.sh
15587
15588
15589 # We use sed instead of cat because bash on DJGPP gets confused if
15590 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15591 # text mode, it properly converts lines to CR/LF. This bash problem
15592 # is reportedly fixed, but why not run on old versions too?
15593 sed '$q' "$ltmain" >> "$cfgfile" \
15594 || (rm -f "$cfgfile"; exit 1)
15595
15596 mv -f "$cfgfile" "$ofile" ||
15597 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15598 chmod +x "$ofile"
15599
15600 ;;
15601
15602 esac
15603 done # for ac_tag
15604
15605
15606 as_fn_exit 0
15607 _ACEOF
15608 ac_clean_files=$ac_clean_files_save
15609
15610 test $ac_write_fail = 0 ||
15611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15612
15613
15614 # configure is writing to config.log, and then calls config.status.
15615 # config.status does its own redirection, appending to config.log.
15616 # Unfortunately, on DOS this fails, as config.log is still kept open
15617 # by configure, so config.status won't be able to write to it; its
15618 # output is simply discarded. So we exec the FD to /dev/null,
15619 # effectively closing config.log, so it can be properly (re)opened and
15620 # appended to by config.status. When coming back to configure, we
15621 # need to make the FD available again.
15622 if test "$no_create" != yes; then
15623 ac_cs_success=:
15624 ac_config_status_args=
15625 test "$silent" = yes &&
15626 ac_config_status_args="$ac_config_status_args --quiet"
15627 exec 5>/dev/null
15628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15629 exec 5>>config.log
15630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15631 # would make configure fail if this is the last instruction.
15632 $ac_cs_success || as_fn_exit 1
15633 fi
15634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15637 fi
15638
15639
15640 echo "
15641 libnetfilter_queue configuration:
15642 doxygen: ${with_doxygen}"