• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iptables-1.4.12.1/

Lines Matching defs:*

0 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for iptables 1.4.12.1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
33 fi
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
81 fi
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
151 fi
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
311 /^X\(\/\).*/{
312 s//\1/
313 q
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
519 fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 esac
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
546 :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
549 :
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
559 $*
560 _LT_EOF
561 exit 0
562 fi
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
577 fi
578 done
579 fi
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
584 :
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
601 fi
602 done
603 IFS="$lt_save_ifs"
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
627 :
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
650 fi
651 prev="$cmd"
652 done
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
661 fi
662 fi
663 fi
664 fi
665 fi
666 fi
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687 # Initializations.
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
698 # Identity of this package.
699 PACKAGE_NAME='iptables'
700 PACKAGE_TARNAME='iptables'
701 PACKAGE_VERSION='1.4.12.1'
702 PACKAGE_STRING='iptables 1.4.12.1'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 libxtables_vmajor
747 libxtables_vage
748 libxtables_vcurrent
749 pkgdatadir
750 pkgconfigdir
751 xtlibdir
752 ksourcedir
753 kbuilddir
754 kinclude_CPPFLAGS
755 regular_CPPFLAGS
756 regular_CFLAGS
757 HAVE_LIBNFNETLINK_FALSE
758 HAVE_LIBNFNETLINK_TRUE
759 libnfnetlink_LIBS
760 libnfnetlink_CFLAGS
761 PKG_CONFIG_LIBDIR
762 PKG_CONFIG_PATH
763 PKG_CONFIG
764 ENABLE_LIBIPQ_FALSE
765 ENABLE_LIBIPQ_TRUE
766 ENABLE_DEVEL_FALSE
767 ENABLE_DEVEL_TRUE
768 ENABLE_LARGEFILE_FALSE
769 ENABLE_LARGEFILE_TRUE
770 ENABLE_IPV6_FALSE
771 ENABLE_IPV6_TRUE
772 ENABLE_IPV4_FALSE
773 ENABLE_IPV4_TRUE
774 ENABLE_SHARED_FALSE
775 ENABLE_SHARED_TRUE
776 ENABLE_STATIC_FALSE
777 ENABLE_STATIC_TRUE
778 blacklist_modules
779 libiptc_LDFLAGS2
780 CPP
781 OTOOL64
782 OTOOL
783 LIPO
784 NMEDIT
785 DSYMUTIL
786 lt_ECHO
787 RANLIB
788 AR
789 OBJDUMP
790 LN_S
791 NM
792 ac_ct_DUMPBIN
793 DUMPBIN
794 LD
795 FGREP
796 EGREP
797 GREP
798 SED
799 host_os
800 host_vendor
801 host_cpu
802 host
803 build_os
804 build_vendor
805 build_cpu
806 build
807 LIBTOOL
808 am__fastdepCC_FALSE
809 am__fastdepCC_TRUE
810 CCDEPMODE
811 AMDEPBACKSLASH
812 AMDEP_FALSE
813 AMDEP_TRUE
814 am__quote
815 am__include
816 DEPDIR
817 OBJEXT
818 EXEEXT
819 ac_ct_CC
820 CPPFLAGS
821 LDFLAGS
822 CFLAGS
823 CC
824 am__untar
825 am__tar
826 AMTAR
827 am__leading_dot
828 SET_MAKE
829 AWK
830 mkdir_p
831 MKDIR_P
832 INSTALL_STRIP_PROGRAM
833 STRIP
834 install_sh
835 MAKEINFO
836 AUTOHEADER
837 AUTOMAKE
838 AUTOCONF
839 ACLOCAL
840 VERSION
841 PACKAGE
842 CYGPATH_W
843 am__isrc
844 INSTALL_DATA
845 INSTALL_SCRIPT
846 INSTALL_PROGRAM
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_dependency_tracking
889 enable_static
890 enable_shared
891 with_pic
892 enable_fast_install
893 with_gnu_ld
894 enable_libtool_lock
895 with_kernel
896 with_kbuild
897 with_ksource
898 with_xtlibdir
899 enable_ipv4
900 enable_ipv6
901 enable_largefile
902 enable_devel
903 enable_libipq
904 with_pkgconfigdir
906 ac_precious_vars='build_alias
907 host_alias
908 target_alias
909 CC
910 CFLAGS
911 LDFLAGS
912 LIBS
913 CPPFLAGS
914 CPP
915 PKG_CONFIG
916 PKG_CONFIG_PATH
917 PKG_CONFIG_LIBDIR
918 libnfnetlink_CFLAGS
919 libnfnetlink_LIBS'
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
981 case $ac_option in
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *=) ac_optarg= ;;
984 *) ac_optarg=yes ;;
985 esac
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1034 "enable_$ac_useropt"
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1060 "enable_$ac_useropt"
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1255 -with-* | --with-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1264 "with_$ac_useropt"
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=\$ac_optarg ;;
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1280 "with_$ac_useropt"
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 esac
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 esac
1328 done
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1333 fi
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 esac
1341 fi
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1348 do
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1351 case $ac_val in
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1355 esac
1356 # Be sure to have absolute directory names.
1357 case $ac_val in
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 esac
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used" >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380 fi
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385 test "$silent" = yes && exec 6>/dev/null
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427 else
1428 ac_srcdir_defaulted=no
1429 fi
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1456 # Report the --help message.
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
1462 \`configure' configures iptables 1.4.12.1 to adapt to many kinds of systems.
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1469 Defaults for the options are specified in brackets.
1471 Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 [PREFIX]
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1493 For better control, use the options below.
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/iptables]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1515 _ACEOF
1517 cat <<\_ACEOF
1519 Program names:
1520 --program-prefix=PREFIX prepend PREFIX to installed program names
1521 --program-suffix=SUFFIX append SUFFIX to installed program names
1522 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1524 System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 _ACEOF
1528 fi
1530 if test -n "$ac_init_help"; then
1531 case $ac_init_help in
1532 short | recursive ) echo "Configuration of iptables 1.4.12.1:";;
1533 esac
1534 cat <<\_ACEOF
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --disable-dependency-tracking speeds up one-time build
1541 --enable-dependency-tracking do not reject slow dependency extractors
1542 --enable-static[=PKGS] build static libraries [default=no]
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
1546 --disable-libtool-lock avoid locking (might break parallel builds)
1547 --disable-ipv4 Do not build iptables
1548 --disable-ipv6 Do not build ip6tables
1549 --disable-largefile Do not build largefile support
1550 --enable-devel Install Xtables development headers
1551 --enable-libipq Build and install libipq
1553 Optional Packages:
1554 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1555 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1556 --with-pic try to use only PIC/non-PIC objects [default=use
1557 both]
1558 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1559 --with-kernel=PATH Path to kernel source/build directory
1560 --with-kbuild=PATH Path to kernel build directory
1561 [[/lib/modules/CURRENT/build]]
1562 --with-ksource=PATH Path to kernel source directory
1563 [[/lib/modules/CURRENT/source]]
1564 --with-xtlibdir=PATH Path where to install Xtables extensions
1565 [[LIBEXECDIR/xtables]]
1566 --with-pkgconfigdir=PATH
1567 Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1569 Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
1577 CPP C preprocessor
1578 PKG_CONFIG path to pkg-config utility
1579 PKG_CONFIG_PATH
1580 directories to add to pkg-config's search path
1581 PKG_CONFIG_LIBDIR
1582 path overriding pkg-config's built-in search path
1583 libnfnetlink_CFLAGS
1584 C compiler flags for libnfnetlink, overriding pkg-config
1585 libnfnetlink_LIBS
1586 linker flags for libnfnetlink, overriding pkg-config
1588 Use these variables to override the choices made by `configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1591 Report bugs to the package provider.
1592 _ACEOF
1593 ac_status=$?
1594 fi
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1644 else
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 fi || ac_status=$?
1647 cd "$ac_pwd" || { ac_status=$?; break; }
1648 done
1649 fi
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1653 cat <<\_ACEOF
1654 iptables configure 1.4.12.1
1655 generated by GNU Autoconf 2.67
1657 Copyright (C) 2010 Free Software Foundation, Inc.
1658 This configure script is free software; the Free Software Foundation
1659 gives unlimited permission to copy, distribute and modify it.
1660 _ACEOF
1661 exit
1662 fi
1664 ## ------------------------ ##
1665 ## Autoconf initialization. ##
1666 ## ------------------------ ##
1668 # ac_fn_c_try_compile LINENO
1669 # --------------------------
1670 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_compile ()
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext
1675 if { { ac_try="$ac_compile"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_compile") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1688 fi
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest.$ac_objext; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1700 fi
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_compile
1706 # ac_fn_c_try_link LINENO
1707 # -----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_link ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext conftest$ac_exeext
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest$ac_exeext && {
1732 test "$cross_compiling" = yes ||
1733 $as_test_x conftest$ac_exeext
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1741 fi
1742 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1743 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1744 # interfere with the next link command; also delete a directory that is
1745 # left behind by Apple's compiler. We do this before executing the actions.
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 as_fn_set_status $ac_retval
1750 } # ac_fn_c_try_link
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval "test \"\${$3+set}\"" = set; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 } # ac_fn_c_check_header_compile
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_cpp ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 as_fn_set_status $ac_retval
1818 } # ac_fn_c_try_cpp
1820 # ac_fn_c_try_run LINENO
1821 # ----------------------
1822 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1823 # that executables *can* be run.
1824 ac_fn_c_try_run ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_link"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_link") 2>&5
1835 ac_status=$?
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1838 { { case "(($ac_try" in
1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840 *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844 (eval "$ac_try") 2>&5
1845 ac_status=$?
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; }; }; then :
1848 ac_retval=0
1849 else
1850 $as_echo "$as_me: program exited with status $ac_status" >&5
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=$ac_status
1855 fi
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_run
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval "test \"\${$3+set}\"" = set; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1884 #ifdef __STDC__
1885 # include <limits.h>
1886 #else
1887 # include <assert.h>
1888 #endif
1890 #undef $2
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1895 #ifdef __cplusplus
1896 extern "C"
1897 #endif
1898 char $2 ();
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1903 choke me
1904 #endif
1906 int
1907 main ()
1909 return $2 ();
1911 return 0;
1913 _ACEOF
1914 if ac_fn_c_try_link "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1921 fi
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1932 # the include files in INCLUDES and setting the cache variable VAR
1933 # accordingly.
1934 ac_fn_c_check_header_mongrel ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if eval "test \"\${$3+set}\"" = set; then :
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval "test \"\${$3+set}\"" = set; then :
1941 $as_echo_n "(cached) " >&6
1942 fi
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946 else
1947 # Is the header compilable?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1949 $as_echo_n "checking $2 usability... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 #include <$2>
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_header_compiler=yes
1957 else
1958 ac_header_compiler=no
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1962 $as_echo "$ac_header_compiler" >&6; }
1964 # Is the header present?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1966 $as_echo_n "checking $2 presence... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 #include <$2>
1970 _ACEOF
1971 if ac_fn_c_try_cpp "$LINENO"; then :
1972 ac_header_preproc=yes
1973 else
1974 ac_header_preproc=no
1975 fi
1976 rm -f conftest.err conftest.i conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1978 $as_echo "$ac_header_preproc" >&6; }
1980 # So? What about this header?
1981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 yes:no: )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1984 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 no:yes:* )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1990 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1992 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1994 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1996 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 esac
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval "test \"\${$3+set}\"" = set; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 eval "$3=\$ac_header_compiler"
2007 fi
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 fi
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 } # ac_fn_c_check_header_mongrel
2016 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2017 # --------------------------------------------
2018 # Tries to find the compile-time value of EXPR in a program that includes
2019 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2020 # computed
2021 ac_fn_c_compute_int ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 if test "$cross_compiling" = yes; then
2025 # Depending upon the size, compute the lo and hi bounds.
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2032 static int test_array [1 - 2 * !(($2) >= 0)];
2033 test_array [0] = 0
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040 ac_lo=0 ac_mid=0
2041 while :; do
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049 test_array [0] = 0
2052 return 0;
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=$ac_mid; break
2057 else
2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2059 if test $ac_lo -le $ac_mid; then
2060 ac_lo= ac_hi=
2061 break
2062 fi
2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 done
2067 else
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 $4
2071 int
2072 main ()
2074 static int test_array [1 - 2 * !(($2) < 0)];
2075 test_array [0] = 0
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082 ac_hi=-1 ac_mid=-1
2083 while :; do
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 $4
2087 int
2088 main ()
2090 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2091 test_array [0] = 0
2094 return 0;
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_lo=$ac_mid; break
2099 else
2100 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2101 if test $ac_mid -le $ac_hi; then
2102 ac_lo= ac_hi=
2103 break
2104 fi
2105 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 else
2110 ac_lo= ac_hi=
2111 fi
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 # Binary search between lo and hi bounds.
2116 while test "x$ac_lo" != "x$ac_hi"; do
2117 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2124 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=$ac_mid
2133 else
2134 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 done
2138 case $ac_lo in #((
2139 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2140 '') ac_retval=1 ;;
2141 esac
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 static long int longval () { return $2; }
2147 static unsigned long int ulongval () { return $2; }
2148 #include <stdio.h>
2149 #include <stdlib.h>
2150 int
2151 main ()
2154 FILE *f = fopen ("conftest.val", "w");
2155 if (! f)
2156 return 1;
2157 if (($2) < 0)
2159 long int i = longval ();
2160 if (i != ($2))
2161 return 1;
2162 fprintf (f, "%ld", i);
2164 else
2166 unsigned long int i = ulongval ();
2167 if (i != ($2))
2168 return 1;
2169 fprintf (f, "%lu", i);
2171 /* Do not output a trailing newline, as this causes \r\n confusion
2172 on some platforms. */
2173 return ferror (f) || fclose (f) != 0;
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_run "$LINENO"; then :
2180 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2181 else
2182 ac_retval=1
2183 fi
2184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2185 conftest.$ac_objext conftest.beam conftest.$ac_ext
2186 rm -f conftest.val
2188 fi
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190 as_fn_set_status $ac_retval
2192 } # ac_fn_c_compute_int
2193 cat >config.log <<_ACEOF
2194 This file contains any messages produced by compilers while
2195 running configure, to aid debugging if configure makes a mistake.
2197 It was created by iptables $as_me 1.4.12.1, which was
2198 generated by GNU Autoconf 2.67. Invocation command line was
2200 $ $0 $@
2202 _ACEOF
2203 exec 5>>config.log
2205 cat <<_ASUNAME
2206 ## --------- ##
2207 ## Platform. ##
2208 ## --------- ##
2210 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2211 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2212 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2213 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2214 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2216 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2217 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2219 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2220 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2221 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2222 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2223 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2224 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2225 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2227 _ASUNAME
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 $as_echo "PATH: $as_dir"
2235 done
2236 IFS=$as_save_IFS
2238 } >&5
2240 cat >&5 <<_ACEOF
2243 ## ----------- ##
2244 ## Core tests. ##
2245 ## ----------- ##
2247 _ACEOF
2250 # Keep a trace of the command line.
2251 # Strip out --no-create and --no-recursion so they do not pile up.
2252 # Strip out --silent because we don't want to record it for future runs.
2253 # Also quote any args containing shell meta-characters.
2254 # Make two passes to allow for proper duplicate-argument suppression.
2255 ac_configure_args=
2256 ac_configure_args0=
2257 ac_configure_args1=
2258 ac_must_keep_next=false
2259 for ac_pass in 1 2
2260 do
2261 for ac_arg
2262 do
2263 case $ac_arg in
2264 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2266 | -silent | --silent | --silen | --sile | --sil)
2267 continue ;;
2269 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 esac
2271 case $ac_pass in
2272 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2273 2)
2274 as_fn_append ac_configure_args1 " '$ac_arg'"
2275 if test $ac_must_keep_next = true; then
2276 ac_must_keep_next=false # Got value, back to normal.
2277 else
2278 case $ac_arg in
2279 *=* | --config-cache | -C | -disable-* | --disable-* \
2280 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2281 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2282 | -with-* | --with-* | -without-* | --without-* | --x)
2283 case "$ac_configure_args0 " in
2284 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2285 esac
2287 -* ) ac_must_keep_next=true ;;
2288 esac
2289 fi
2290 as_fn_append ac_configure_args " '$ac_arg'"
2292 esac
2293 done
2294 done
2295 { ac_configure_args0=; unset ac_configure_args0;}
2296 { ac_configure_args1=; unset ac_configure_args1;}
2298 # When interrupted or exit'd, cleanup temporary files, and complete
2299 # config.log. We remove comments because anyway the quotes in there
2300 # would cause problems or look ugly.
2301 # WARNING: Use '\'' to represent an apostrophe within the trap.
2302 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2303 trap 'exit_status=$?
2304 # Save into config.log some information that might help in debugging.
2306 echo
2308 $as_echo "## ---------------- ##
2309 ## Cache variables. ##
2310 ## ---------------- ##"
2311 echo
2312 # The following way of writing the cache mishandles newlines in values,
2314 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in #(
2317 *${as_nl}*)
2318 case $ac_var in #(
2319 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2320 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2321 esac
2322 case $ac_var in #(
2323 _ | IFS | as_nl) ;; #(
2324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2325 *) { eval $ac_var=; unset $ac_var;} ;;
2326 esac ;;
2327 esac
2328 done
2329 (set) 2>&1 |
2330 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2331 *${as_nl}ac_space=\ *)
2332 sed -n \
2333 "s/'\''/'\''\\\\'\'''\''/g;
2334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2337 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2339 esac |
2340 sort
2342 echo
2344 $as_echo "## ----------------- ##
2345 ## Output variables. ##
2346 ## ----------------- ##"
2347 echo
2348 for ac_var in $ac_subst_vars
2349 do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2358 if test -n "$ac_subst_files"; then
2359 $as_echo "## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##"
2362 echo
2363 for ac_var in $ac_subst_files
2364 do
2365 eval ac_val=\$$ac_var
2366 case $ac_val in
2367 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368 esac
2369 $as_echo "$ac_var='\''$ac_val'\''"
2370 done | sort
2371 echo
2372 fi
2374 if test -s confdefs.h; then
2375 $as_echo "## ----------- ##
2376 ## confdefs.h. ##
2377 ## ----------- ##"
2378 echo
2379 cat confdefs.h
2380 echo
2381 fi
2382 test "$ac_signal" != 0 &&
2383 $as_echo "$as_me: caught signal $ac_signal"
2384 $as_echo "$as_me: exit $exit_status"
2385 } >&5
2386 rm -f core *.core core.conftest.* &&
2387 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2388 exit $exit_status
2389 ' 0
2390 for ac_signal in 1 2 13 15; do
2391 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2392 done
2393 ac_signal=0
2395 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2396 rm -f -r conftest* confdefs.h
2398 $as_echo "/* confdefs.h */" > confdefs.h
2400 # Predefined preprocessor variables.
2402 cat >>confdefs.h <<_ACEOF
2403 #define PACKAGE_NAME "$PACKAGE_NAME"
2404 _ACEOF
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_STRING "$PACKAGE_STRING"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2420 _ACEOF
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_URL "$PACKAGE_URL"
2424 _ACEOF
2427 # Let the site file select an alternate cache file if it wants to.
2428 # Prefer an explicitly selected file to automatically selected ones.
2429 ac_site_file1=NONE
2430 ac_site_file2=NONE
2431 if test -n "$CONFIG_SITE"; then
2432 # We do not want a PATH search for config.site.
2433 case $CONFIG_SITE in #((
2434 -*) ac_site_file1=./$CONFIG_SITE;;
2435 */*) ac_site_file1=$CONFIG_SITE;;
2436 *) ac_site_file1=./$CONFIG_SITE;;
2437 esac
2438 elif test "x$prefix" != xNONE; then
2439 ac_site_file1=$prefix/share/config.site
2440 ac_site_file2=$prefix/etc/config.site
2441 else
2442 ac_site_file1=$ac_default_prefix/share/config.site
2443 ac_site_file2=$ac_default_prefix/etc/config.site
2444 fi
2445 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 do
2447 test "x$ac_site_file" = xNONE && continue
2448 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2450 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2451 sed 's/^/| /' "$ac_site_file" >&5
2452 . "$ac_site_file" \
2453 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 as_fn_error $? "failed to load site script $ac_site_file
2456 See \`config.log' for more details" "$LINENO" 5 ; }
2457 fi
2458 done
2460 if test -r "$cache_file"; then
2461 # Some versions of bash will fail to source /dev/null (special files
2462 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2463 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2465 $as_echo "$as_me: loading cache $cache_file" >&6;}
2466 case $cache_file in
2467 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2468 *) . "./$cache_file";;
2469 esac
2470 fi
2471 else
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2473 $as_echo "$as_me: creating cache $cache_file" >&6;}
2474 >$cache_file
2475 fi
2477 # Check that the precious variables saved in the cache have kept the same
2478 # value.
2479 ac_cache_corrupted=false
2480 for ac_var in $ac_precious_vars; do
2481 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482 eval ac_new_set=\$ac_env_${ac_var}_set
2483 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484 eval ac_new_val=\$ac_env_${ac_var}_value
2485 case $ac_old_set,$ac_new_set in
2486 set,)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,set)
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493 ac_cache_corrupted=: ;;
2496 if test "x$ac_old_val" != "x$ac_new_val"; then
2497 # differences in whitespace do not lead to failure.
2498 ac_old_val_w=`echo x $ac_old_val`
2499 ac_new_val_w=`echo x $ac_new_val`
2500 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2502 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503 ac_cache_corrupted=:
2504 else
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507 eval $ac_var=\$ac_old_val
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2510 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2512 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2513 fi;;
2514 esac
2515 # Pass precious variables to config.status.
2516 if test "$ac_new_set" = set; then
2517 case $ac_new_val in
2518 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519 *) ac_arg=$ac_var=$ac_new_val ;;
2520 esac
2521 case " $ac_configure_args " in
2522 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2523 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2524 esac
2525 fi
2526 done
2527 if $ac_cache_corrupted; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2531 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2532 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2533 fi
2534 ## -------------------- ##
2535 ## Main body of script. ##
2536 ## -------------------- ##
2538 ac_ext=c
2539 ac_cpp='$CPP $CPPFLAGS'
2540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546 # See libtool.info "Libtool's versioning system"
2547 libxtables_vcurrent=7
2548 libxtables_vage=0
2550 ac_config_headers="$ac_config_headers config.h"
2553 ac_aux_dir=
2554 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2555 if test -f "$ac_dir/install-sh"; then
2556 ac_aux_dir=$ac_dir
2557 ac_install_sh="$ac_aux_dir/install-sh -c"
2558 break
2559 elif test -f "$ac_dir/install.sh"; then
2560 ac_aux_dir=$ac_dir
2561 ac_install_sh="$ac_aux_dir/install.sh -c"
2562 break
2563 elif test -f "$ac_dir/shtool"; then
2564 ac_aux_dir=$ac_dir
2565 ac_install_sh="$ac_aux_dir/shtool install -c"
2566 break
2567 fi
2568 done
2569 if test -z "$ac_aux_dir"; then
2570 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2571 fi
2573 # These three variables are undocumented and unsupported,
2574 # and are intended to be withdrawn in a future Autoconf release.
2575 # They can cause serious problems if a builder's source tree is in a directory
2576 # whose full name contains unusual characters.
2577 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2578 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2579 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2582 # Find a good install program. We prefer a C program (faster),
2583 # so one script is as good as another. But avoid the broken or
2584 # incompatible versions:
2585 # SysV /etc/install, /usr/sbin/install
2586 # SunOS /usr/etc/install
2587 # IRIX /sbin/install
2588 # AIX /bin/install
2589 # AmigaOS /C/install, which installs bootblocks on floppy discs
2590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2593 # OS/2's system install, which has a completely different semantic
2594 # ./install, which can be erroneously created by make from ./install.sh.
2595 # Reject install programs that cannot install multiple files.
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2597 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2598 if test -z "$INSTALL"; then
2599 if test "${ac_cv_path_install+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 # Account for people who put trailing slashes in PATH elements.
2608 case $as_dir/ in #((
2609 ./ | .// | /[cC]/* | \
2610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2611 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2612 /usr/ucb/* ) ;;
2614 # OSF1 and SCO ODT 3.0 have their own names for install.
2615 # Don't use installbsd from OSF since it installs stuff as root
2616 # by default.
2617 for ac_prog in ginstall scoinst install; do
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2620 if test $ac_prog = install &&
2621 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2622 # AIX install. It has an incompatible calling convention.
2623 :
2624 elif test $ac_prog = install &&
2625 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2626 # program-specific install script used by HP pwplus--don't use.
2627 :
2628 else
2629 rm -rf conftest.one conftest.two conftest.dir
2630 echo one > conftest.one
2631 echo two > conftest.two
2632 mkdir conftest.dir
2633 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2634 test -s conftest.one && test -s conftest.two &&
2635 test -s conftest.dir/conftest.one &&
2636 test -s conftest.dir/conftest.two
2637 then
2638 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2639 break 3
2640 fi
2641 fi
2642 fi
2643 done
2644 done
2646 esac
2648 done
2649 IFS=$as_save_IFS
2651 rm -rf conftest.one conftest.two conftest.dir
2653 fi
2654 if test "${ac_cv_path_install+set}" = set; then
2655 INSTALL=$ac_cv_path_install
2656 else
2657 # As a last resort, use the slow shell script. Don't cache a
2658 # value for INSTALL within a source directory, because that will
2659 # break other packages using the cache if that directory is
2660 # removed, or if the value is a relative name.
2661 INSTALL=$ac_install_sh
2662 fi
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2665 $as_echo "$INSTALL" >&6; }
2667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2668 # It thinks the first close brace ends the variable substitution.
2669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2675 am__api_version='1.11'
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2678 $as_echo_n "checking whether build environment is sane... " >&6; }
2679 # Just in case
2680 sleep 1
2681 echo timestamp > conftest.file
2682 # Reject unsafe characters in $srcdir or the absolute working directory
2683 # name. Accept space and tab only in the latter.
2684 am_lf='
2686 case `pwd` in
2687 *[\\\"\#\$\&\'\`$am_lf]*)
2688 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2689 esac
2690 case $srcdir in
2691 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2692 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2693 esac
2695 # Do `set' in a subshell so we don't clobber the current shell's
2696 # arguments. Must try -L first in case configure is actually a
2697 # symlink; some systems play weird games with the mod time of symlinks
2698 # (eg FreeBSD returns the mod time of the symlink's containing
2699 # directory).
2700 if (
2701 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2702 if test "$*" = "X"; then
2703 # -L didn't work.
2704 set X `ls -t "$srcdir/configure" conftest.file`
2705 fi
2706 rm -f conftest.file
2707 if test "$*" != "X $srcdir/configure conftest.file" \
2708 && test "$*" != "X conftest.file $srcdir/configure"; then
2710 # If neither matched, then we have a broken ls. This can happen
2711 # if, for instance, CONFIG_SHELL is bash and it inherits a
2712 # broken ls alias from the environment. This has actually
2713 # happened. Such a system could not be considered "sane".
2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2715 alias in your environment" "$LINENO" 5
2716 fi
2718 test "$2" = conftest.file
2720 then
2721 # Ok.
2722 :
2723 else
2724 as_fn_error $? "newly created file is older than distributed files!
2725 Check your system clock" "$LINENO" 5
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2728 $as_echo "yes" >&6; }
2729 test "$program_prefix" != NONE &&
2730 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2731 # Use a double $ so make ignores it.
2732 test "$program_suffix" != NONE &&
2733 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2734 # Double any \ or $.
2735 # By default was `s,x,x', remove it if useless.
2736 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2737 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2739 # expand $ac_aux_dir to an absolute path
2740 am_aux_dir=`cd $ac_aux_dir && pwd`
2742 if test x"${MISSING+set}" != xset; then
2743 case $am_aux_dir in
2745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2748 esac
2749 fi
2750 # Use eval to expand $SHELL
2751 if eval "$MISSING --run true"; then
2752 am_missing_run="$MISSING --run "
2753 else
2754 am_missing_run=
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2756 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2757 fi
2759 if test x"${install_sh}" != xset; then
2760 case $am_aux_dir in
2762 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2764 install_sh="\${SHELL} $am_aux_dir/install-sh"
2765 esac
2766 fi
2768 # Installed binaries are usually stripped using `strip' when the user
2769 # run `make install-strip'. However `strip' might not be the right
2770 # tool to use in cross-compilation environments, therefore Automake
2771 # will honor the `STRIP' environment variable to overrule this program.
2772 if test "$cross_compiling" != no; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2775 set dummy ${ac_tool_prefix}strip; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if test "${ac_cv_prog_STRIP+set}" = set; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$STRIP"; then
2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2799 fi
2800 fi
2801 STRIP=$ac_cv_prog_STRIP
2802 if test -n "$STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2804 $as_echo "$STRIP" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2808 fi
2811 fi
2812 if test -z "$ac_cv_prog_STRIP"; then
2813 ac_ct_STRIP=$STRIP
2814 # Extract the first word of "strip", so it can be a program name with args.
2815 set dummy strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_STRIP"; then
2822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_ac_ct_STRIP="strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2839 fi
2840 fi
2841 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2842 if test -n "$ac_ct_STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2844 $as_echo "$ac_ct_STRIP" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2850 if test "x$ac_ct_STRIP" = x; then
2851 STRIP=":"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854 yes:)
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857 ac_tool_warned=yes ;;
2858 esac
2859 STRIP=$ac_ct_STRIP
2860 fi
2861 else
2862 STRIP="$ac_cv_prog_STRIP"
2863 fi
2865 fi
2866 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2869 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2870 if test -z "$MKDIR_P"; then
2871 if test "${ac_cv_path_mkdir+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_prog in mkdir gmkdir; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2882 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2883 'mkdir (GNU coreutils) '* | \
2884 'mkdir (coreutils) '* | \
2885 'mkdir (fileutils) '4.1*)
2886 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2887 break 3;;
2888 esac
2889 done
2890 done
2891 done
2892 IFS=$as_save_IFS
2894 fi
2896 test -d ./--version && rmdir ./--version
2897 if test "${ac_cv_path_mkdir+set}" = set; then
2898 MKDIR_P="$ac_cv_path_mkdir -p"
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for MKDIR_P within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 MKDIR_P="$ac_install_sh -d"
2905 fi
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2908 $as_echo "$MKDIR_P" >&6; }
2910 mkdir_p="$MKDIR_P"
2911 case $mkdir_p in
2912 [\\/$]* | ?:[\\/]*) ;;
2913 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2914 esac
2916 for ac_prog in gawk mawk nawk awk
2917 do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919 set dummy $ac_prog; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_AWK+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$AWK"; then
2926 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_AWK="$ac_prog"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2943 fi
2944 fi
2945 AWK=$ac_cv_prog_AWK
2946 if test -n "$AWK"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2948 $as_echo "$AWK" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 fi
2955 test -n "$AWK" && break
2956 done
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2959 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2960 set x ${MAKE-make}
2961 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2962 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat >conftest.make <<\_ACEOF
2966 SHELL = /bin/sh
2967 all:
2968 @echo '@@@%%%=$(MAKE)=@@@%%%'
2969 _ACEOF
2970 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2971 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2972 *@@@%%%=?*=@@@%%%*)
2973 eval ac_cv_prog_make_${ac_make}_set=yes;;
2975 eval ac_cv_prog_make_${ac_make}_set=no;;
2976 esac
2977 rm -f conftest.make
2978 fi
2979 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2982 SET_MAKE=
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 SET_MAKE="MAKE=${MAKE-make}"
2987 fi
2989 rm -rf .tst 2>/dev/null
2990 mkdir .tst 2>/dev/null
2991 if test -d .tst; then
2992 am__leading_dot=.
2993 else
2994 am__leading_dot=_
2995 fi
2996 rmdir .tst 2>/dev/null
2998 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2999 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3000 # is not polluted with repeated "-I."
3001 am__isrc=' -I$(srcdir)'
3002 # test to see if srcdir already configured
3003 if test -f $srcdir/config.status; then
3004 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3005 fi
3006 fi
3008 # test whether we have cygpath
3009 if test -z "$CYGPATH_W"; then
3010 if (cygpath --version) >/dev/null 2>/dev/null; then
3011 CYGPATH_W='cygpath -w'
3012 else
3013 CYGPATH_W=echo
3014 fi
3015 fi
3018 # Define the identity of the package.
3019 PACKAGE='iptables'
3020 VERSION='1.4.12.1'
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE "$PACKAGE"
3025 _ACEOF
3028 cat >>confdefs.h <<_ACEOF
3029 #define VERSION "$VERSION"
3030 _ACEOF
3032 # Some tools Automake needs.
3034 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3037 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3040 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3043 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3046 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048 # We need awk for the "check" target. The system "awk" is bad on
3049 # some platforms.
3050 # Always define AMTAR for backward compatibility.
3052 AMTAR=${AMTAR-"${am_missing_run}tar"}
3054 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3091 fi
3092 fi
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3103 fi
3104 if test -z "$ac_cv_prog_CC"; then
3105 ac_ct_CC=$CC
3106 # Extract the first word of "gcc", so it can be a program name with args.
3107 set dummy gcc; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_ac_ct_CC="gcc"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3142 if test "x$ac_ct_CC" = x; then
3143 CC=""
3144 else
3145 case $cross_compiling:$ac_tool_warned in
3146 yes:)
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3149 ac_tool_warned=yes ;;
3150 esac
3151 CC=$ac_ct_CC
3152 fi
3153 else
3154 CC="$ac_cv_prog_CC"
3155 fi
3157 if test -z "$CC"; then
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}cc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_CC="${ac_tool_prefix}cc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3196 fi
3197 fi
3198 if test -z "$CC"; then
3199 # Extract the first word of "cc", so it can be a program name with args.
3200 set dummy cc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if test "${ac_cv_prog_CC+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 ac_prog_rejected=no
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3218 ac_prog_rejected=yes
3219 continue
3220 fi
3221 ac_cv_prog_CC="cc"
3222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 break 2
3224 fi
3225 done
3226 done
3227 IFS=$as_save_IFS
3229 if test $ac_prog_rejected = yes; then
3230 # We found a bogon in the path, so make sure we never use it.
3231 set dummy $ac_cv_prog_CC
3232 shift
3233 if test $# != 0; then
3234 # We chose a different compiler from the bogus one.
3235 # However, it has the same basename, so the bogon will be chosen
3236 # first if we set CC to just the basename; use the full file name.
3237 shift
3238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3239 fi
3240 fi
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3253 fi
3254 if test -z "$CC"; then
3255 if test -n "$ac_tool_prefix"; then
3256 for ac_prog in cl.exe
3257 do
3258 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_CC+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3283 fi
3284 fi
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 fi
3295 test -n "$CC" && break
3296 done
3297 fi
3298 if test -z "$CC"; then
3299 ac_ct_CC=$CC
3300 for ac_prog in cl.exe
3301 do
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy $ac_prog; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_ac_ct_CC="$ac_prog"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3327 fi
3328 fi
3329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330 if test -n "$ac_ct_CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332 $as_echo "$ac_ct_CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3339 test -n "$ac_ct_CC" && break
3340 done
3342 if test "x$ac_ct_CC" = x; then
3343 CC=""
3344 else
3345 case $cross_compiling:$ac_tool_warned in
3346 yes:)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3350 esac
3351 CC=$ac_ct_CC
3352 fi
3353 fi
3355 fi
3358 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "no acceptable C compiler found in \$PATH
3361 See \`config.log' for more details" "$LINENO" 5 ; }
3363 # Provide some information about the compiler.
3364 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3365 set X $ac_compile
3366 ac_compiler=$2
3367 for ac_option in --version -v -V -qversion; do
3368 { { ac_try="$ac_compiler $ac_option >&5"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3376 ac_status=$?
3377 if test -s conftest.err; then
3378 sed '10a\
3379 ... rest of stderr output deleted ...
3380 10q' conftest.err >conftest.er1
3381 cat conftest.er1 >&5
3382 fi
3383 rm -f conftest.er1 conftest.err
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 done
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3391 int
3392 main ()
3396 return 0;
3398 _ACEOF
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3403 # of exeext.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3405 $as_echo_n "checking whether the C compiler works... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411 ac_rmfiles=
3412 for ac_file in $ac_files
3413 do
3414 case $ac_file in
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3417 esac
3418 done
3419 rm -f $ac_rmfiles
3421 if { { ac_try="$ac_link_default"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link_default") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3436 # Autoconf.
3437 for ac_file in $ac_files ''
3438 do
3439 test -f "$ac_file" || continue
3440 case $ac_file in
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3443 [ab].out )
3444 # We found the default executable, but exeext='' is most
3445 # certainly right.
3446 break;;
3447 *.* )
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3449 then :; else
3450 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 fi
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3456 # actually working.
3457 break;;
3459 break;;
3460 esac
3461 done
3462 test "$ac_cv_exeext" = no && ac_cv_exeext=
3464 else
3465 ac_file=''
3466 fi
3467 if test -z "$ac_file"; then :
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error 77 "C compiler cannot create executables
3476 See \`config.log' for more details" "$LINENO" 5 ; }
3477 else
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3482 $as_echo_n "checking for C compiler default output file name... " >&6; }
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3484 $as_echo "$ac_file" >&6; }
3485 ac_exeext=$ac_cv_exeext
3487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3488 ac_clean_files=$ac_clean_files_save
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3490 $as_echo_n "checking for suffix of executables... " >&6; }
3491 if { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
3502 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3503 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3504 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 # `rm'.
3506 for ac_file in conftest.exe conftest conftest.*; do
3507 test -f "$ac_file" || continue
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3511 break;;
3512 * ) break;;
3513 esac
3514 done
3515 else
3516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3519 See \`config.log' for more details" "$LINENO" 5 ; }
3520 fi
3521 rm -f conftest conftest$ac_cv_exeext
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3523 $as_echo "$ac_cv_exeext" >&6; }
3525 rm -f conftest.$ac_ext
3526 EXEEXT=$ac_cv_exeext
3527 ac_exeext=$EXEEXT
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 #include <stdio.h>
3531 int
3532 main ()
3534 FILE *f = fopen ("conftest.out", "w");
3535 return ferror (f) || fclose (f) != 0;
3538 return 0;
3540 _ACEOF
3541 ac_clean_files="$ac_clean_files conftest.out"
3542 # Check that the compiler produces executables we can run. If not, either
3543 # the compiler is broken, or we cross compile.
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3545 $as_echo_n "checking whether we are cross compiling... " >&6; }
3546 if test "$cross_compiling" != yes; then
3547 { { ac_try="$ac_link"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }
3558 if { ac_try='./conftest$ac_cv_exeext'
3559 { { case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_try") 2>&5
3566 ac_status=$?
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; }; then
3569 cross_compiling=no
3570 else
3571 if test "$cross_compiling" = maybe; then
3572 cross_compiling=yes
3573 else
3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $? "cannot run C compiled programs.
3577 If you meant to cross compile, use \`--host'.
3578 See \`config.log' for more details" "$LINENO" 5 ; }
3579 fi
3580 fi
3581 fi
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3583 $as_echo "$cross_compiling" >&6; }
3585 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3586 ac_clean_files=$ac_clean_files_save
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3588 $as_echo_n "checking for suffix of object files... " >&6; }
3589 if test "${ac_cv_objext+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3595 int
3596 main ()
3600 return 0;
3602 _ACEOF
3603 rm -f conftest.o conftest.obj
3604 if { { ac_try="$ac_compile"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compile") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }; then :
3615 for ac_file in conftest.o conftest.obj conftest.*; do
3616 test -f "$ac_file" || continue;
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3619 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3620 break;;
3621 esac
3622 done
3623 else
3624 $as_echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629 as_fn_error $? "cannot compute suffix of object files: cannot compile
3630 See \`config.log' for more details" "$LINENO" 5 ; }
3631 fi
3632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3633 fi
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3635 $as_echo "$ac_cv_objext" >&6; }
3636 OBJEXT=$ac_cv_objext
3637 ac_objext=$OBJEXT
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3639 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3640 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3646 int
3647 main ()
3649 #ifndef __GNUC__
3650 choke me
3651 #endif
3654 return 0;
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658 ac_compiler_gnu=yes
3659 else
3660 ac_compiler_gnu=no
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3667 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3668 if test $ac_compiler_gnu = yes; then
3669 GCC=yes
3670 else
3671 GCC=
3672 fi
3673 ac_test_CFLAGS=${CFLAGS+set}
3674 ac_save_CFLAGS=$CFLAGS
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3676 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3677 if test "${ac_cv_prog_cc_g+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_save_c_werror_flag=$ac_c_werror_flag
3681 ac_c_werror_flag=yes
3682 ac_cv_prog_cc_g=no
3683 CFLAGS="-g"
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3687 int
3688 main ()
3692 return 0;
3694 _ACEOF
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_g=yes
3697 else
3698 CFLAGS=""
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3702 int
3703 main ()
3707 return 0;
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3712 else
3713 ac_c_werror_flag=$ac_save_c_werror_flag
3714 CFLAGS="-g"
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3718 int
3719 main ()
3723 return 0;
3725 _ACEOF
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 ac_cv_prog_cc_g=yes
3728 fi
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 fi
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 fi
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3737 $as_echo "$ac_cv_prog_cc_g" >&6; }
3738 if test "$ac_test_CFLAGS" = set; then
3739 CFLAGS=$ac_save_CFLAGS
3740 elif test $ac_cv_prog_cc_g = yes; then
3741 if test "$GCC" = yes; then
3742 CFLAGS="-g -O2"
3743 else
3744 CFLAGS="-g"
3745 fi
3746 else
3747 if test "$GCC" = yes; then
3748 CFLAGS="-O2"
3749 else
3750 CFLAGS=
3751 fi
3752 fi
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3754 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3755 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3756 $as_echo_n "(cached) " >&6
3757 else
3758 ac_cv_prog_cc_c89=no
3759 ac_save_CC=$CC
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762 #include <stdarg.h>
3763 #include <stdio.h>
3764 #include <sys/types.h>
3765 #include <sys/stat.h>
3766 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3767 struct buf { int x; };
3768 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3769 static char *e (p, i)
3770 char **p;
3771 int i;
3773 return p[i];
3775 static char *f (char * (*g) (char **, int), char **p, ...)
3777 char *s;
3778 va_list v;
3779 va_start (v,p);
3780 s = g (p, va_arg (v,int));
3781 va_end (v);
3782 return s;
3785 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3786 function prototypes and stuff, but not '\xHH' hex character constants.
3787 These don't provoke an error unfortunately, instead are silently treated
3788 as 'x'. The following induces an error, until -std is added to get
3789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3790 array size at least. It's necessary to write '\x00'==0 to get something
3791 that's true only with -std. */
3792 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3794 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3795 inside strings and character constants. */
3796 #define FOO(x) 'x'
3797 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3799 int test (int i, double x);
3800 struct s1 {int (*f) (int a);};
3801 struct s2 {int (*f) (double a);};
3802 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 int argc;
3804 char **argv;
3805 int
3806 main ()
3808 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3810 return 0;
3812 _ACEOF
3813 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3815 do
3816 CC="$ac_save_CC $ac_arg"
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 ac_cv_prog_cc_c89=$ac_arg
3819 fi
3820 rm -f core conftest.err conftest.$ac_objext
3821 test "x$ac_cv_prog_cc_c89" != "xno" && break
3822 done
3823 rm -f conftest.$ac_ext
3824 CC=$ac_save_CC
3826 fi
3827 # AC_CACHE_VAL
3828 case "x$ac_cv_prog_cc_c89" in
3829 x)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3831 $as_echo "none needed" >&6; } ;;
3832 xno)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3834 $as_echo "unsupported" >&6; } ;;
3836 CC="$CC $ac_cv_prog_cc_c89"
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3838 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3839 esac
3840 if test "x$ac_cv_prog_cc_c89" != xno; then :
3842 fi
3844 ac_ext=c
3845 ac_cpp='$CPP $CPPFLAGS'
3846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849 DEPDIR="${am__leading_dot}deps"
3851 ac_config_commands="$ac_config_commands depfiles"
3854 am_make=${MAKE-make}
3855 cat > confinc << 'END'
3856 am__doit:
3857 @echo this is the am__doit target
3858 .PHONY: am__doit
3859 END
3860 # If we don't find an include directive, just comment out the code.
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3862 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3863 am__include="#"
3864 am__quote=
3865 _am_result=none
3866 # First try GNU make style include.
3867 echo "include confinc" > confmf
3868 # Ignore all kinds of additional output from `make'.
3869 case `$am_make -s -f confmf 2> /dev/null` in #(
3870 *the\ am__doit\ target*)
3871 am__include=include
3872 am__quote=
3873 _am_result=GNU
3875 esac
3876 # Now try BSD make style include.
3877 if test "$am__include" = "#"; then
3878 echo '.include "confinc"' > confmf
3879 case `$am_make -s -f confmf 2> /dev/null` in #(
3880 *the\ am__doit\ target*)
3881 am__include=.include
3882 am__quote="\""
3883 _am_result=BSD
3885 esac
3886 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3890 $as_echo "$_am_result" >&6; }
3891 rm -f confinc confmf
3893 # Check whether --enable-dependency-tracking was given.
3894 if test "${enable_dependency_tracking+set}" = set; then :
3895 enableval=$enable_dependency_tracking;
3896 fi
3898 if test "x$enable_dependency_tracking" != xno; then
3899 am_depcomp="$ac_aux_dir/depcomp"
3900 AMDEPBACKSLASH='\'
3901 fi
3902 if test "x$enable_dependency_tracking" != xno; then
3903 AMDEP_TRUE=
3904 AMDEP_FALSE='#'
3905 else
3906 AMDEP_TRUE='#'
3907 AMDEP_FALSE=
3908 fi
3912 depcc="$CC" am_compiler_list=
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3915 $as_echo_n "checking dependency style of $depcc... " >&6; }
3916 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3920 # We make a subdir and do the tests there. Otherwise we can end up
3921 # making bogus files that we don't know about and never remove. For
3922 # instance it was reported that on HP-UX the gcc test will end up
3923 # making a dummy file named `D' -- because `-MD' means `put the output
3924 # in D'.
3925 mkdir conftest.dir
3926 # Copy depcomp to subdir because otherwise we won't find it if we're
3927 # using a relative directory.
3928 cp "$am_depcomp" conftest.dir
3929 cd conftest.dir
3930 # We will build objects and dependencies in a subdirectory because
3931 # it helps to detect inapplicable dependency modes. For instance
3932 # both Tru64's cc and ICC support -MD to output dependencies as a
3933 # side effect of compilation, but ICC will put the dependencies in
3934 # the current directory while Tru64 will put them in the object
3935 # directory.
3936 mkdir sub
3938 am_cv_CC_dependencies_compiler_type=none
3939 if test "$am_compiler_list" = ""; then
3940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3941 fi
3942 am__universal=false
3943 case " $depcc " in #(
3944 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3945 esac
3947 for depmode in $am_compiler_list; do
3948 # Setup a source with many dependencies, because some compilers
3949 # like to wrap large dependency lists on column 80 (with \), and
3950 # we should not choose a depcomp mode which is confused by this.
3952 # We need to recreate these files for each test, as the compiler may
3953 # overwrite some of them when testing with obscure command lines.
3954 # This happens at least with the AIX C compiler.
3955 : > sub/conftest.c
3956 for i in 1 2 3 4 5 6; do
3957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3959 # Solaris 8's {/usr,}/bin/sh.
3960 touch sub/conftst$i.h
3961 done
3962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3965 # mode. It turns out that the SunPro C++ compiler does not properly
3966 # handle `-M -o', and we need to detect this. Also, some Intel
3967 # versions had trouble with output in subdirs
3968 am__obj=sub/conftest.${OBJEXT-o}
3969 am__minus_obj="-o $am__obj"
3970 case $depmode in
3971 gcc)
3972 # This depmode causes a compiler race in universal mode.
3973 test "$am__universal" = false || continue
3975 nosideeffect)
3976 # after this tag, mechanisms are not by side-effect, so they'll
3977 # only be used when explicitly requested
3978 if test "x$enable_dependency_tracking" = xyes; then
3979 continue
3980 else
3981 break
3982 fi
3984 msvisualcpp | msvcmsys)
3985 # This compiler won't grok `-c -o', but also, the minuso test has
3986 # not run yet. These depmodes are late enough in the game, and
3987 # so weak that their functioning should not be impacted.
3988 am__obj=conftest.${OBJEXT-o}
3989 am__minus_obj=
3991 none) break ;;
3992 esac
3993 if depmode=$depmode \
3994 source=sub/conftest.c object=$am__obj \
3995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3997 >/dev/null 2>conftest.err &&
3998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4002 # icc doesn't choke on unknown options, it will just issue warnings
4003 # or remarks (even with -Werror). So we grep stderr for any message
4004 # that says an option was ignored or not supported.
4005 # When given -MP, icc 7.0 and 7.1 complain thusly:
4006 # icc: Command line warning: ignoring option '-M'; no argument required
4007 # The diagnosis changed in icc 8.0:
4008 # icc: Command line remark: option '-MP' not supported
4009 if (grep 'ignoring option' conftest.err ||
4010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4011 am_cv_CC_dependencies_compiler_type=$depmode
4012 break
4013 fi
4014 fi
4015 done
4017 cd ..
4018 rm -rf conftest.dir
4019 else
4020 am_cv_CC_dependencies_compiler_type=none
4021 fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4025 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4028 if
4029 test "x$enable_dependency_tracking" != xno \
4030 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4031 am__fastdepCC_TRUE=
4032 am__fastdepCC_FALSE='#'
4033 else
4034 am__fastdepCC_TRUE='#'
4035 am__fastdepCC_FALSE=
4036 fi
4039 if test "x$CC" != xcc; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4041 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4042 else
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4044 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4045 fi
4046 set dummy $CC; ac_cc=`$as_echo "$2" |
4047 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4048 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4054 int
4055 main ()
4059 return 0;
4061 _ACEOF
4062 # Make sure it works both with $CC and with simple cc.
4063 # We do the test twice because some compilers refuse to overwrite an
4064 # existing .o file with -o, though they will create one.
4065 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4066 rm -f conftest2.*
4067 if { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; } &&
4077 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; };
4087 then
4088 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4089 if test "x$CC" != xcc; then
4090 # Test first that cc exists at all.
4091 if { ac_try='cc -c conftest.$ac_ext >&5'
4092 { { case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4097 $as_echo "$ac_try_echo"; } >&5
4098 (eval "$ac_try") 2>&5
4099 ac_status=$?
4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101 test $ac_status = 0; }; }; then
4102 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4103 rm -f conftest2.*
4104 if { { case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_try") 2>&5
4111 ac_status=$?
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; } &&
4114 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_try") 2>&5
4121 ac_status=$?
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; };
4124 then
4125 # cc works too.
4126 :
4127 else
4128 # cc exists but doesn't like -o.
4129 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4130 fi
4131 fi
4132 fi
4133 else
4134 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4135 fi
4136 rm -f core conftest*
4138 fi
4139 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141 $as_echo "yes" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4146 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4148 fi
4150 # FIXME: we rely on the cache variable name because
4151 # there is no other way.
4152 set dummy $CC
4153 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4154 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4155 if test "$am_t" != yes; then
4156 # Losing compiler, so override with the script.
4157 # FIXME: It is wrong to rewrite CC.
4158 # But if we don't then we get into trouble of one sort or another.
4159 # A longer-term fix would be to have automake use am__CC in this case,
4160 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4161 CC="$am_aux_dir/compile $CC"
4162 fi
4165 # Check whether --enable-static was given.
4166 if test "${enable_static+set}" = set; then :
4167 enableval=$enable_static; p=${PACKAGE-default}
4168 case $enableval in
4169 yes) enable_static=yes ;;
4170 no) enable_static=no ;;
4172 enable_static=no
4173 # Look at the argument we got. We use all the common list separators.
4174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4175 for pkg in $enableval; do
4176 IFS="$lt_save_ifs"
4177 if test "X$pkg" = "X$p"; then
4178 enable_static=yes
4179 fi
4180 done
4181 IFS="$lt_save_ifs"
4183 esac
4184 else
4185 enable_static=no
4186 fi
4196 case `pwd` in
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4199 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4200 esac
4204 macro_version='2.2.6b'
4205 macro_revision='1.3017'
4219 ltmain="$ac_aux_dir/ltmain.sh"
4221 # Make sure we can run config.sub.
4222 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4223 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4226 $as_echo_n "checking build system type... " >&6; }
4227 if test "${ac_cv_build+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_build_alias=$build_alias
4231 test "x$ac_build_alias" = x &&
4232 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4233 test "x$ac_build_alias" = x &&
4234 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4235 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4240 $as_echo "$ac_cv_build" >&6; }
4241 case $ac_cv_build in
4242 *-*-*) ;;
4243 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4244 esac
4245 build=$ac_cv_build
4246 ac_save_IFS=$IFS; IFS='-'
4247 set x $ac_cv_build
4248 shift
4249 build_cpu=$1
4250 build_vendor=$2
4251 shift; shift
4252 # Remember, the first character of IFS is used to create $*,
4253 # except with old shells:
4254 build_os=$*
4255 IFS=$ac_save_IFS
4256 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4260 $as_echo_n "checking host system type... " >&6; }
4261 if test "${ac_cv_host+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test "x$host_alias" = x; then
4265 ac_cv_host=$ac_cv_build
4266 else
4267 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4268 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4269 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4273 $as_echo "$ac_cv_host" >&6; }
4274 case $ac_cv_host in
4275 *-*-*) ;;
4276 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4277 esac
4278 host=$ac_cv_host
4279 ac_save_IFS=$IFS; IFS='-'
4280 set x $ac_cv_host
4281 shift
4282 host_cpu=$1
4283 host_vendor=$2
4284 shift; shift
4285 # Remember, the first character of IFS is used to create $*,
4286 # except with old shells:
4287 host_os=$*
4288 IFS=$ac_save_IFS
4289 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4293 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4294 if test "${ac_cv_path_SED+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4298 for ac_i in 1 2 3 4 5 6 7; do
4299 ac_script="$ac_script$as_nl$ac_script"
4300 done
4301 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4302 { ac_script=; unset ac_script;}
4303 if test -z "$SED"; then
4304 ac_path_SED_found=false
4305 # Loop through the user's path and test for each of PROGNAME-LIST
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_prog in sed gsed; do
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4314 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4315 # Check for GNU ac_path_SED and select it if it is found.
4316 # Check for GNU $ac_path_SED
4317 case `"$ac_path_SED" --version 2>&1` in
4318 *GNU*)
4319 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4321 ac_count=0
4322 $as_echo_n 0123456789 >"conftest.in"
4323 while :
4324 do
4325 cat "conftest.in" "conftest.in" >"conftest.tmp"
4326 mv "conftest.tmp" "conftest.in"
4327 cp "conftest.in" "conftest.nl"
4328 $as_echo '' >> "conftest.nl"
4329 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4331 as_fn_arith $ac_count + 1 && ac_count=$as_val
4332 if test $ac_count -gt ${ac_path_SED_max-0}; then
4333 # Best one so far, save it but keep looking for a better one
4334 ac_cv_path_SED="$ac_path_SED"
4335 ac_path_SED_max=$ac_count
4336 fi
4337 # 10*(2^10) chars as input seems more than enough
4338 test $ac_count -gt 10 && break
4339 done
4340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 esac
4343 $ac_path_SED_found && break 3
4344 done
4345 done
4346 done
4347 IFS=$as_save_IFS
4348 if test -z "$ac_cv_path_SED"; then
4349 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4350 fi
4351 else
4352 ac_cv_path_SED=$SED
4353 fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4357 $as_echo "$ac_cv_path_SED" >&6; }
4358 SED="$ac_cv_path_SED"
4359 rm -f conftest.sed
4361 test -z "$SED" && SED=sed
4362 Xsed="$SED -e 1s/^X//"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4375 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4376 if test "${ac_cv_path_GREP+set}" = set; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 if test -z "$GREP"; then
4380 ac_path_GREP_found=false
4381 # Loop through the user's path and test for each of PROGNAME-LIST
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384 do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_prog in grep ggrep; do
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4390 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4391 # Check for GNU ac_path_GREP and select it if it is found.
4392 # Check for GNU $ac_path_GREP
4393 case `"$ac_path_GREP" --version 2>&1` in
4394 *GNU*)
4395 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4397 ac_count=0
4398 $as_echo_n 0123456789 >"conftest.in"
4399 while :
4400 do
4401 cat "conftest.in" "conftest.in" >"conftest.tmp"
4402 mv "conftest.tmp" "conftest.in"
4403 cp "conftest.in" "conftest.nl"
4404 $as_echo 'GREP' >> "conftest.nl"
4405 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407 as_fn_arith $ac_count + 1 && ac_count=$as_val
4408 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4409 # Best one so far, save it but keep looking for a better one
4410 ac_cv_path_GREP="$ac_path_GREP"
4411 ac_path_GREP_max=$ac_count
4412 fi
4413 # 10*(2^10) chars as input seems more than enough
4414 test $ac_count -gt 10 && break
4415 done
4416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417 esac
4419 $ac_path_GREP_found && break 3
4420 done
4421 done
4422 done
4423 IFS=$as_save_IFS
4424 if test -z "$ac_cv_path_GREP"; then
4425 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426 fi
4427 else
4428 ac_cv_path_GREP=$GREP
4429 fi
4431 fi
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4433 $as_echo "$ac_cv_path_GREP" >&6; }
4434 GREP="$ac_cv_path_GREP"
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4438 $as_echo_n "checking for egrep... " >&6; }
4439 if test "${ac_cv_path_EGREP+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4443 then ac_cv_path_EGREP="$GREP -E"
4444 else
4445 if test -z "$EGREP"; then
4446 ac_path_EGREP_found=false
4447 # Loop through the user's path and test for each of PROGNAME-LIST
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450 do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_prog in egrep; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4456 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4457 # Check for GNU ac_path_EGREP and select it if it is found.
4458 # Check for GNU $ac_path_EGREP
4459 case `"$ac_path_EGREP" --version 2>&1` in
4460 *GNU*)
4461 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4463 ac_count=0
4464 $as_echo_n 0123456789 >"conftest.in"
4465 while :
4466 do
4467 cat "conftest.in" "conftest.in" >"conftest.tmp"
4468 mv "conftest.tmp" "conftest.in"
4469 cp "conftest.in" "conftest.nl"
4470 $as_echo 'EGREP' >> "conftest.nl"
4471 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473 as_fn_arith $ac_count + 1 && ac_count=$as_val
4474 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4475 # Best one so far, save it but keep looking for a better one
4476 ac_cv_path_EGREP="$ac_path_EGREP"
4477 ac_path_EGREP_max=$ac_count
4478 fi
4479 # 10*(2^10) chars as input seems more than enough
4480 test $ac_count -gt 10 && break
4481 done
4482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483 esac
4485 $ac_path_EGREP_found && break 3
4486 done
4487 done
4488 done
4489 IFS=$as_save_IFS
4490 if test -z "$ac_cv_path_EGREP"; then
4491 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492 fi
4493 else
4494 ac_cv_path_EGREP=$EGREP
4495 fi
4497 fi
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4500 $as_echo "$ac_cv_path_EGREP" >&6; }
4501 EGREP="$ac_cv_path_EGREP"
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4505 $as_echo_n "checking for fgrep... " >&6; }
4506 if test "${ac_cv_path_FGREP+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4510 then ac_cv_path_FGREP="$GREP -F"
4511 else
4512 if test -z "$FGREP"; then
4513 ac_path_FGREP_found=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_prog in fgrep; do
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4523 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4524 # Check for GNU ac_path_FGREP and select it if it is found.
4525 # Check for GNU $ac_path_FGREP
4526 case `"$ac_path_FGREP" --version 2>&1` in
4527 *GNU*)
4528 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4530 ac_count=0
4531 $as_echo_n 0123456789 >"conftest.in"
4532 while :
4533 do
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 $as_echo 'FGREP' >> "conftest.nl"
4538 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540 as_fn_arith $ac_count + 1 && ac_count=$as_val
4541 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_FGREP="$ac_path_FGREP"
4544 ac_path_FGREP_max=$ac_count
4545 fi
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4548 done
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550 esac
4552 $ac_path_FGREP_found && break 3
4553 done
4554 done
4555 done
4556 IFS=$as_save_IFS
4557 if test -z "$ac_cv_path_FGREP"; then
4558 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4559 fi
4560 else
4561 ac_cv_path_FGREP=$FGREP
4562 fi
4564 fi
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4567 $as_echo "$ac_cv_path_FGREP" >&6; }
4568 FGREP="$ac_cv_path_FGREP"
4571 test -z "$GREP" && GREP=grep
4591 # Check whether --with-gnu-ld was given.
4592 if test "${with_gnu_ld+set}" = set; then :
4593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4594 else
4595 with_gnu_ld=no
4596 fi
4598 ac_prog=ld
4599 if test "$GCC" = yes; then
4600 # Check if gcc -print-prog-name=ld gives a path.
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4602 $as_echo_n "checking for ld used by $CC... " >&6; }
4603 case $host in
4604 *-*-mingw*)
4605 # gcc leaves a trailing carriage return which upsets mingw
4606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4609 esac
4610 case $ac_prog in
4611 # Accept absolute paths.
4612 [\\/]* | ?:[\\/]*)
4613 re_direlt='/[^/][^/]*/\.\./'
4614 # Canonicalize the pathname of ld
4615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4618 done
4619 test -z "$LD" && LD="$ac_prog"
4622 # If it fails, then pretend we aren't using GCC.
4623 ac_prog=ld
4626 # If it is relative, then search for the first ld in PATH.
4627 with_gnu_ld=unknown
4629 esac
4630 elif test "$with_gnu_ld" = yes; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4632 $as_echo_n "checking for GNU ld... " >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4635 $as_echo_n "checking for non-GNU ld... " >&6; }
4636 fi
4637 if test "${lt_cv_path_LD+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -z "$LD"; then
4641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4642 for ac_dir in $PATH; do
4643 IFS="$lt_save_ifs"
4644 test -z "$ac_dir" && ac_dir=.
4645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4646 lt_cv_path_LD="$ac_dir/$ac_prog"
4647 # Check to see if the program is GNU ld. I'd rather use --version,
4648 # but apparently some variants of GNU ld only accept -v.
4649 # Break only if it was the GNU/non-GNU ld that we prefer.
4650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4651 *GNU* | *'with BFD'*)
4652 test "$with_gnu_ld" != no && break
4655 test "$with_gnu_ld" != yes && break
4657 esac
4658 fi
4659 done
4660 IFS="$lt_save_ifs"
4661 else
4662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4663 fi
4664 fi
4666 LD="$lt_cv_path_LD"
4667 if test -n "$LD"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4669 $as_echo "$LD" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4676 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4677 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4681 case `$LD -v 2>&1 </dev/null` in
4682 *GNU* | *'with BFD'*)
4683 lt_cv_prog_gnu_ld=yes
4686 lt_cv_prog_gnu_ld=no
4688 esac
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4691 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4692 with_gnu_ld=$lt_cv_prog_gnu_ld
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4703 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4704 if test "${lt_cv_path_NM+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$NM"; then
4708 # Let the user override the test.
4709 lt_cv_path_NM="$NM"
4710 else
4711 lt_nm_to_check="${ac_tool_prefix}nm"
4712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4713 lt_nm_to_check="$lt_nm_to_check nm"
4714 fi
4715 for lt_tmp_nm in $lt_nm_to_check; do
4716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4718 IFS="$lt_save_ifs"
4719 test -z "$ac_dir" && ac_dir=.
4720 tmp_nm="$ac_dir/$lt_tmp_nm"
4721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4722 # Check to see if the nm accepts a BSD-compat flag.
4723 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4724 # nm: unknown option "B" ignored
4725 # Tru64's nm complains that /dev/null is an invalid object file
4726 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4727 */dev/null* | *'Invalid file or object type'*)
4728 lt_cv_path_NM="$tmp_nm -B"
4729 break
4732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4733 */dev/null*)
4734 lt_cv_path_NM="$tmp_nm -p"
4735 break
4738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4739 continue # so that we can try to find one that supports BSD flags
4741 esac
4743 esac
4744 fi
4745 done
4746 IFS="$lt_save_ifs"
4747 done
4748 : ${lt_cv_path_NM=no}
4749 fi
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4752 $as_echo "$lt_cv_path_NM" >&6; }
4753 if test "$lt_cv_path_NM" != "no"; then
4754 NM="$lt_cv_path_NM"
4755 else
4756 # Didn't find any BSD compatible name lister, look for dumpbin.
4757 if test -n "$ac_tool_prefix"; then
4758 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4759 do
4760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766 else
4767 if test -n "$DUMPBIN"; then
4768 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4785 fi
4786 fi
4787 DUMPBIN=$ac_cv_prog_DUMPBIN
4788 if test -n "$DUMPBIN"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4790 $as_echo "$DUMPBIN" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 fi
4797 test -n "$DUMPBIN" && break
4798 done
4799 fi
4800 if test -z "$DUMPBIN"; then
4801 ac_ct_DUMPBIN=$DUMPBIN
4802 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4803 do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805 set dummy $ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$ac_ct_DUMPBIN"; then
4812 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4816 do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825 done
4826 done
4827 IFS=$as_save_IFS
4829 fi
4830 fi
4831 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4832 if test -n "$ac_ct_DUMPBIN"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4834 $as_echo "$ac_ct_DUMPBIN" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4838 fi
4841 test -n "$ac_ct_DUMPBIN" && break
4842 done
4844 if test "x$ac_ct_DUMPBIN" = x; then
4845 DUMPBIN=":"
4846 else
4847 case $cross_compiling:$ac_tool_warned in
4848 yes:)
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851 ac_tool_warned=yes ;;
4852 esac
4853 DUMPBIN=$ac_ct_DUMPBIN
4854 fi
4855 fi
4858 if test "$DUMPBIN" != ":"; then
4859 NM="$DUMPBIN"
4860 fi
4861 fi
4862 test -z "$NM" && NM=nm
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4870 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4871 if test "${lt_cv_nm_interface+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 lt_cv_nm_interface="BSD nm"
4875 echo "int some_variable = 0;" > conftest.$ac_ext
4876 (eval echo "\"\$as_me:4876: $ac_compile\"" >&5)
4877 (eval "$ac_compile" 2>conftest.err)
4878 cat conftest.err >&5
4879 (eval echo "\"\$as_me:4879: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4880 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4881 cat conftest.err >&5
4882 (eval echo "\"\$as_me:4882: output\"" >&5)
4883 cat conftest.out >&5
4884 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4885 lt_cv_nm_interface="MS dumpbin"
4886 fi
4887 rm -f conftest*
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4890 $as_echo "$lt_cv_nm_interface" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4893 $as_echo_n "checking whether ln -s works... " >&6; }
4894 LN_S=$as_ln_s
4895 if test "$LN_S" = "ln -s"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4898 else
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4900 $as_echo "no, using $LN_S" >&6; }
4901 fi
4903 # find the maximum length of command line arguments
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4905 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4906 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 i=0
4910 teststring="ABCD"
4912 case $build_os in
4913 msdosdjgpp*)
4914 # On DJGPP, this test can blow up pretty badly due to problems in libc
4915 # (any single argument exceeding 2000 bytes causes a buffer overrun
4916 # during glob expansion). Even if it were fixed, the result of this
4917 # check would be larger than it should be.
4918 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4921 gnu*)
4922 # Under GNU Hurd, this test is not required because there is
4923 # no limit to the length of command line arguments.
4924 # Libtool will interpret -1 as no limit whatsoever
4925 lt_cv_sys_max_cmd_len=-1;
4928 cygwin* | mingw* | cegcc*)
4929 # On Win9x/ME, this test blows up -- it succeeds, but takes
4930 # about 5 minutes as the teststring grows exponentially.
4931 # Worse, since 9x/ME are not pre-emptively multitasking,
4932 # you end up with a "frozen" computer, even though with patience
4933 # the test eventually succeeds (with a max line length of 256k).
4934 # Instead, let's just punt: use the minimum linelength reported by
4935 # all of the supported platforms: 8192 (on NT/2K/XP).
4936 lt_cv_sys_max_cmd_len=8192;
4939 amigaos*)
4940 # On AmigaOS with pdksh, this test takes hours, literally.
4941 # So we just punt and use a minimum line length of 8192.
4942 lt_cv_sys_max_cmd_len=8192;
4945 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4946 # This has been around since 386BSD, at least. Likely further.
4947 if test -x /sbin/sysctl; then
4948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4949 elif test -x /usr/sbin/sysctl; then
4950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4951 else
4952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4953 fi
4954 # And add a safety zone
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4959 interix*)
4960 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4961 lt_cv_sys_max_cmd_len=196608
4964 osf*)
4965 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4966 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4967 # nice to cause kernel panics so lets avoid the loop below.
4968 # First set a reasonable default.
4969 lt_cv_sys_max_cmd_len=16384
4971 if test -x /sbin/sysconfig; then
4972 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4973 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4974 esac
4975 fi
4977 sco3.2v5*)
4978 lt_cv_sys_max_cmd_len=102400
4980 sysv5* | sco5v6* | sysv4.2uw2*)
4981 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4982 if test -n "$kargmax"; then
4983 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4984 else
4985 lt_cv_sys_max_cmd_len=32768
4986 fi
4989 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4990 if test -n "$lt_cv_sys_max_cmd_len"; then
4991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4993 else
4994 # Make teststring a little bigger before we do anything with it.
4995 # a 1K string should be a reasonable start.
4996 for i in 1 2 3 4 5 6 7 8 ; do
4997 teststring=$teststring$teststring
4998 done
4999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5000 # If test is not a shell built-in, we'll probably end up computing a
5001 # maximum length that is only half of the actual maximum length, but
5002 # we can't tell.
5003 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5004 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5005 test $i != 17 # 1/2 MB should be enough
5006 do
5007 i=`expr $i + 1`
5008 teststring=$teststring$teststring
5009 done
5010 # Only check the string length outside the loop.
5011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5012 teststring=
5013 # Add a significant safety factor because C++ compilers can tack on
5014 # massive amounts of additional arguments before passing them to the
5015 # linker. It appears as though 1/2 is a usable value.
5016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5017 fi
5019 esac
5021 fi
5023 if test -n $lt_cv_sys_max_cmd_len ; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5025 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5026 else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5028 $as_echo "none" >&6; }
5029 fi
5030 max_cmd_len=$lt_cv_sys_max_cmd_len
5037 : ${CP="cp -f"}
5038 : ${MV="mv -f"}
5039 : ${RM="rm -f"}
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5042 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5043 # Try some XSI features
5044 xsi_shell=no
5045 ( _lt_dummy="a/b/c"
5046 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5047 = c,a/b,, \
5048 && eval 'test $(( 1 + 1 )) -eq 2 \
5049 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5050 && xsi_shell=yes
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5052 $as_echo "$xsi_shell" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5056 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5057 lt_shell_append=no
5058 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5059 >/dev/null 2>&1 \
5060 && lt_shell_append=yes
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5062 $as_echo "$lt_shell_append" >&6; }
5065 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5066 lt_unset=unset
5067 else
5068 lt_unset=false
5069 fi
5075 # test EBCDIC or ASCII
5076 case `echo X|tr X '\101'` in
5077 A) # ASCII based system
5078 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5079 lt_SP2NL='tr \040 \012'
5080 lt_NL2SP='tr \015\012 \040\040'
5082 *) # EBCDIC based system
5083 lt_SP2NL='tr \100 \n'
5084 lt_NL2SP='tr \r\n \100\100'
5086 esac
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5097 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5098 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 lt_cv_ld_reload_flag='-r'
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5104 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5105 reload_flag=$lt_cv_ld_reload_flag
5106 case $reload_flag in
5108 *) reload_flag=" $reload_flag" ;;
5109 esac
5110 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5111 case $host_os in
5112 darwin*)
5113 if test "$GCC" = yes; then
5114 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5115 else
5116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5117 fi
5119 esac
5129 if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -n "$OBJDUMP"; then
5138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5139 else
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH
5142 do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
5151 done
5152 done
5153 IFS=$as_save_IFS
5155 fi
5156 fi
5157 OBJDUMP=$ac_cv_prog_OBJDUMP
5158 if test -n "$OBJDUMP"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5160 $as_echo "$OBJDUMP" >&6; }
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5164 fi
5167 fi
5168 if test -z "$ac_cv_prog_OBJDUMP"; then
5169 ac_ct_OBJDUMP=$OBJDUMP
5170 # Extract the first word of "objdump", so it can be a program name with args.
5171 set dummy objdump; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 if test -n "$ac_ct_OBJDUMP"; then
5178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5195 fi
5196 fi
5197 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5198 if test -n "$ac_ct_OBJDUMP"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5200 $as_echo "$ac_ct_OBJDUMP" >&6; }
5201 else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5206 if test "x$ac_ct_OBJDUMP" = x; then
5207 OBJDUMP="false"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210 yes:)
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213 ac_tool_warned=yes ;;
5214 esac
5215 OBJDUMP=$ac_ct_OBJDUMP
5216 fi
5217 else
5218 OBJDUMP="$ac_cv_prog_OBJDUMP"
5219 fi
5221 test -z "$OBJDUMP" && OBJDUMP=objdump
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5232 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5233 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 lt_cv_file_magic_cmd='$MAGIC_CMD'
5237 lt_cv_file_magic_test_file=
5238 lt_cv_deplibs_check_method='unknown'
5239 # Need to set the preceding variable on all platforms that support
5240 # interlibrary dependencies.
5241 # 'none' -- dependencies not supported.
5242 # `unknown' -- same as none, but documents that we really don't know.
5243 # 'pass_all' -- all dependencies passed with no checks.
5244 # 'test_compile' -- check by making test program.
5245 # 'file_magic [[regex]]' -- check by looking for files in library path
5246 # which responds to the $file_magic_cmd with a given extended regex.
5247 # If you have `file' or equivalent on your system and you're not sure
5248 # whether `pass_all' will *always* work, you probably want this one.
5250 case $host_os in
5251 aix[4-9]*)
5252 lt_cv_deplibs_check_method=pass_all
5255 beos*)
5256 lt_cv_deplibs_check_method=pass_all
5259 bsdi[45]*)
5260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5261 lt_cv_file_magic_cmd='/usr/bin/file -L'
5262 lt_cv_file_magic_test_file=/shlib/libc.so
5265 cygwin*)
5266 # func_win32_libid is a shell function defined in ltmain.sh
5267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5268 lt_cv_file_magic_cmd='func_win32_libid'
5271 mingw* | pw32*)
5272 # Base MSYS/MinGW do not provide the 'file' command needed by
5273 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5274 # unless we find 'file', for example because we are cross-compiling.
5275 if ( file / ) >/dev/null 2>&1; then
5276 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5277 lt_cv_file_magic_cmd='func_win32_libid'
5278 else
5279 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5280 lt_cv_file_magic_cmd='$OBJDUMP -f'
5281 fi
5284 cegcc)
5285 # use the weaker test based on 'objdump'. See mingw*.
5286 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5287 lt_cv_file_magic_cmd='$OBJDUMP -f'
5290 darwin* | rhapsody*)
5291 lt_cv_deplibs_check_method=pass_all
5294 freebsd* | dragonfly*)
5295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5296 case $host_cpu in
5297 i*86 )
5298 # Not sure whether the presence of OpenBSD here was a mistake.
5299 # Let's accept both of them until this is cleared up.
5300 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5301 lt_cv_file_magic_cmd=/usr/bin/file
5302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5304 esac
5305 else
5306 lt_cv_deplibs_check_method=pass_all
5307 fi
5310 gnu*)
5311 lt_cv_deplibs_check_method=pass_all
5314 hpux10.20* | hpux11*)
5315 lt_cv_file_magic_cmd=/usr/bin/file
5316 case $host_cpu in
5317 ia64*)
5318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5319 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5321 hppa*64*)
5322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5323 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5327 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5329 esac
5332 interix[3-9]*)
5333 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5337 irix5* | irix6* | nonstopux*)
5338 case $LD in
5339 *-32|*"-32 ") libmagic=32-bit;;
5340 *-n32|*"-n32 ") libmagic=N32;;
5341 *-64|*"-64 ") libmagic=64-bit;;
5342 *) libmagic=never-match;;
5343 esac
5344 lt_cv_deplibs_check_method=pass_all
5347 # This must be Linux ELF.
5348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5349 lt_cv_deplibs_check_method=pass_all
5352 netbsd* | netbsdelf*-gnu)
5353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5355 else
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5357 fi
5360 newos6*)
5361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5362 lt_cv_file_magic_cmd=/usr/bin/file
5363 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5366 *nto* | *qnx*)
5367 lt_cv_deplibs_check_method=pass_all
5370 openbsd*)
5371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5373 else
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5375 fi
5378 osf3* | osf4* | osf5*)
5379 lt_cv_deplibs_check_method=pass_all
5382 rdos*)
5383 lt_cv_deplibs_check_method=pass_all
5386 solaris*)
5387 lt_cv_deplibs_check_method=pass_all
5390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5391 lt_cv_deplibs_check_method=pass_all
5394 sysv4 | sysv4.3*)
5395 case $host_vendor in
5396 motorola)
5397 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]'
5398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5400 ncr)
5401 lt_cv_deplibs_check_method=pass_all
5403 sequent)
5404 lt_cv_file_magic_cmd='/bin/file'
5405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5407 sni)
5408 lt_cv_file_magic_cmd='/bin/file'
5409 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5410 lt_cv_file_magic_test_file=/lib/libc.so
5412 siemens)
5413 lt_cv_deplibs_check_method=pass_all
5415 pc)
5416 lt_cv_deplibs_check_method=pass_all
5418 esac
5421 tpf*)
5422 lt_cv_deplibs_check_method=pass_all
5424 esac
5426 fi
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5428 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5429 file_magic_cmd=$lt_cv_file_magic_cmd
5430 deplibs_check_method=$lt_cv_deplibs_check_method
5431 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}ar; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_AR+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$AR"; then
5453 ac_cv_prog_AR="$AR" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_AR="${ac_tool_prefix}ar"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5470 fi
5471 fi
5472 AR=$ac_cv_prog_AR
5473 if test -n "$AR"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5475 $as_echo "$AR" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5482 fi
5483 if test -z "$ac_cv_prog_AR"; then
5484 ac_ct_AR=$AR
5485 # Extract the first word of "ar", so it can be a program name with args.
5486 set dummy ar; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$ac_ct_AR"; then
5493 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_AR="ar"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5510 fi
5511 fi
5512 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5513 if test -n "$ac_ct_AR"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5515 $as_echo "$ac_ct_AR" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5521 if test "x$ac_ct_AR" = x; then
5522 AR="false"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530 AR=$ac_ct_AR
5531 fi
5532 else
5533 AR="$ac_cv_prog_AR"
5534 fi
5536 test -z "$AR" && AR=ar
5537 test -z "$AR_FLAGS" && AR_FLAGS=cru
5549 if test -n "$ac_tool_prefix"; then
5550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5551 set dummy ${ac_tool_prefix}strip; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if test "${ac_cv_prog_STRIP+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 if test -n "$STRIP"; then
5558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5562 do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571 done
5572 done
5573 IFS=$as_save_IFS
5575 fi
5576 fi
5577 STRIP=$ac_cv_prog_STRIP
5578 if test -n "$STRIP"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5580 $as_echo "$STRIP" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5587 fi
5588 if test -z "$ac_cv_prog_STRIP"; then
5589 ac_ct_STRIP=$STRIP
5590 # Extract the first word of "strip", so it can be a program name with args.
5591 set dummy strip; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$ac_ct_STRIP"; then
5598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_ac_ct_STRIP="strip"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611 done
5612 done
5613 IFS=$as_save_IFS
5615 fi
5616 fi
5617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5618 if test -n "$ac_ct_STRIP"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5620 $as_echo "$ac_ct_STRIP" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5624 fi
5626 if test "x$ac_ct_STRIP" = x; then
5627 STRIP=":"
5628 else
5629 case $cross_compiling:$ac_tool_warned in
5630 yes:)
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5633 ac_tool_warned=yes ;;
5634 esac
5635 STRIP=$ac_ct_STRIP
5636 fi
5637 else
5638 STRIP="$ac_cv_prog_STRIP"
5639 fi
5641 test -z "$STRIP" && STRIP=:
5648 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 if test -n "$RANLIB"; then
5657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 break 2
5669 fi
5670 done
5671 done
5672 IFS=$as_save_IFS
5674 fi
5675 fi
5676 RANLIB=$ac_cv_prog_RANLIB
5677 if test -n "$RANLIB"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5679 $as_echo "$RANLIB" >&6; }
5680 else
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5686 fi
5687 if test -z "$ac_cv_prog_RANLIB"; then
5688 ac_ct_RANLIB=$RANLIB
5689 # Extract the first word of "ranlib", so it can be a program name with args.
5690 set dummy ranlib; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 if test -n "$ac_ct_RANLIB"; then
5697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_prog_ac_ct_RANLIB="ranlib"
5707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 break 2
5709 fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5714 fi
5715 fi
5716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5717 if test -n "$ac_ct_RANLIB"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5719 $as_echo "$ac_ct_RANLIB" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5725 if test "x$ac_ct_RANLIB" = x; then
5726 RANLIB=":"
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732 ac_tool_warned=yes ;;
5733 esac
5734 RANLIB=$ac_ct_RANLIB
5735 fi
5736 else
5737 RANLIB="$ac_cv_prog_RANLIB"
5738 fi
5740 test -z "$RANLIB" && RANLIB=:
5747 # Determine commands to create old-style static archives.
5748 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5749 old_postinstall_cmds='chmod 644 $oldlib'
5750 old_postuninstall_cmds=
5752 if test -n "$RANLIB"; then
5753 case $host_os in
5754 openbsd*)
5755 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5758 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5760 esac
5761 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5762 fi
5797 # If no C compiler was specified, use CC.
5798 LTCC=${LTCC-"$CC"}
5800 # If no C compiler flags were specified, use CFLAGS.
5801 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5803 # Allow CC to be a program name with arguments.
5804 compiler=$CC
5807 # Check for command to grab the raw symbol name followed by C symbol from nm.
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5809 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5810 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5814 # These are sane defaults that work on at least a few old systems.
5815 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5817 # Character class describing NM global symbol codes.
5818 symcode='[BCDEGRST]'
5820 # Regexp to match symbols that can be accessed directly from C.
5821 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5823 # Define system-specific variables.
5824 case $host_os in
5825 aix*)
5826 symcode='[BCDT]'
5828 cygwin* | mingw* | pw32* | cegcc*)
5829 symcode='[ABCDGISTW]'
5831 hpux*)
5832 if test "$host_cpu" = ia64; then
5833 symcode='[ABCDEGRST]'
5834 fi
5836 irix* | nonstopux*)
5837 symcode='[BCDEGRST]'
5839 osf*)
5840 symcode='[BCDEGQRST]'
5842 solaris*)
5843 symcode='[BDRT]'
5845 sco3.2v5*)
5846 symcode='[DT]'
5848 sysv4.2uw2*)
5849 symcode='[DT]'
5851 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5852 symcode='[ABDT]'
5854 sysv4)
5855 symcode='[DFNSTU]'
5857 esac
5859 # If we're using GNU nm, then use its standard symbol codes.
5860 case `$NM -V 2>&1` in
5861 *GNU* | *'with BFD'*)
5862 symcode='[ABCDGIRSTW]' ;;
5863 esac
5865 # Transform an extracted symbol line into a proper C declaration.
5866 # Some systems (esp. on ia64) link data and code symbols differently,
5867 # so use this general approach.
5868 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5870 # Transform an extracted symbol line into symbol name and symbol address
5871 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5872 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5874 # Handle CRLF in mingw tool chain
5875 opt_cr=
5876 case $build_os in
5877 mingw*)
5878 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5880 esac
5882 # Try without a prefix underscore, then with it.
5883 for ac_symprfx in "" "_"; do
5885 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5886 symxfrm="\\1 $ac_symprfx\\2 \\2"
5888 # Write the raw and C identifiers.
5889 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5890 # Fake it for dumpbin and say T for any non-static function
5891 # and D for any global variable.
5892 # Also find C++ and __fastcall symbols from MSVC++,
5893 # which start with @ or ?.
5894 lt_cv_sys_global_symbol_pipe="$AWK '"\
5895 " {last_section=section; section=\$ 3};"\
5896 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5897 " \$ 0!~/External *\|/{next};"\
5898 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5899 " {if(hide[section]) next};"\
5900 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5901 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5902 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5903 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5904 " ' prfx=^$ac_symprfx"
5905 else
5906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5907 fi
5909 # Check to see that the pipe works correctly.
5910 pipe_works=no
5912 rm -f conftest*
5913 cat > conftest.$ac_ext <<_LT_EOF
5914 #ifdef __cplusplus
5915 extern "C" {
5916 #endif
5917 char nm_test_var;
5918 void nm_test_func(void);
5919 void nm_test_func(void){}
5920 #ifdef __cplusplus
5922 #endif
5923 int main(){nm_test_var='a';nm_test_func();return(0);}
5924 _LT_EOF
5926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5927 (eval $ac_compile) 2>&5
5928 ac_status=$?
5929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5930 test $ac_status = 0; }; then
5931 # Now try to grab the symbols.
5932 nlist=conftest.nm
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5934 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; } && test -s "$nlist"; then
5938 # Try sorting and uniquifying the output.
5939 if sort "$nlist" | uniq > "$nlist"T; then
5940 mv -f "$nlist"T "$nlist"
5941 else
5942 rm -f "$nlist"T
5943 fi
5945 # Make sure that we snagged all the symbols we need.
5946 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5947 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5948 cat <<_LT_EOF > conftest.$ac_ext
5949 #ifdef __cplusplus
5950 extern "C" {
5951 #endif
5953 _LT_EOF
5954 # Now generate the symbol file.
5955 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5957 cat <<_LT_EOF >> conftest.$ac_ext
5959 /* The mapping between symbol names and symbols. */
5960 const struct {
5961 const char *name;
5962 void *address;
5964 lt__PROGRAM__LTX_preloaded_symbols[] =
5966 { "@PROGRAM@", (void *) 0 },
5967 _LT_EOF
5968 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5969 cat <<\_LT_EOF >> conftest.$ac_ext
5970 {0, (void *) 0}
5973 /* This works around a problem in FreeBSD linker */
5974 #ifdef FREEBSD_WORKAROUND
5975 static const void *lt_preloaded_setup() {
5976 return lt__PROGRAM__LTX_preloaded_symbols;
5978 #endif
5980 #ifdef __cplusplus
5982 #endif
5983 _LT_EOF
5984 # Now try linking the two files.
5985 mv conftest.$ac_objext conftstm.$ac_objext
5986 lt_save_LIBS="$LIBS"
5987 lt_save_CFLAGS="$CFLAGS"
5988 LIBS="conftstm.$ac_objext"
5989 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5991 (eval $ac_link) 2>&5
5992 ac_status=$?
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5995 pipe_works=yes
5996 fi
5997 LIBS="$lt_save_LIBS"
5998 CFLAGS="$lt_save_CFLAGS"
5999 else
6000 echo "cannot find nm_test_func in $nlist" >&5
6001 fi
6002 else
6003 echo "cannot find nm_test_var in $nlist" >&5
6004 fi
6005 else
6006 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6007 fi
6008 else
6009 echo "$progname: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6011 fi
6012 rm -rf conftest* conftst*
6014 # Do not use the global_symbol_pipe unless it works.
6015 if test "$pipe_works" = yes; then
6016 break
6017 else
6018 lt_cv_sys_global_symbol_pipe=
6019 fi
6020 done
6022 fi
6024 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6025 lt_cv_sys_global_symbol_to_cdecl=
6026 fi
6027 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6029 $as_echo "failed" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6032 $as_echo "ok" >&6; }
6033 fi
6057 # Check whether --enable-libtool-lock was given.
6058 if test "${enable_libtool_lock+set}" = set; then :
6059 enableval=$enable_libtool_lock;
6060 fi
6062 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6064 # Some flags need to be propagated to the compiler or linker for good
6065 # libtool support.
6066 case $host in
6067 ia64-*-hpux*)
6068 # Find out which ABI we are using.
6069 echo 'int i;' > conftest.$ac_ext
6070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6071 (eval $ac_compile) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; then
6075 case `/usr/bin/file conftest.$ac_objext` in
6076 *ELF-32*)
6077 HPUX_IA64_MODE="32"
6079 *ELF-64*)
6080 HPUX_IA64_MODE="64"
6082 esac
6083 fi
6084 rm -rf conftest*
6086 *-*-irix6*)
6087 # Find out which ABI we are using.
6088 echo '#line 6088 "configure"' > conftest.$ac_ext
6089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6090 (eval $ac_compile) 2>&5
6091 ac_status=$?
6092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093 test $ac_status = 0; }; then
6094 if test "$lt_cv_prog_gnu_ld" = yes; then
6095 case `/usr/bin/file conftest.$ac_objext` in
6096 *32-bit*)
6097 LD="${LD-ld} -melf32bsmip"
6099 *N32*)
6100 LD="${LD-ld} -melf32bmipn32"
6102 *64-bit*)
6103 LD="${LD-ld} -melf64bmip"
6105 esac
6106 else
6107 case `/usr/bin/file conftest.$ac_objext` in
6108 *32-bit*)
6109 LD="${LD-ld} -32"
6111 *N32*)
6112 LD="${LD-ld} -n32"
6114 *64-bit*)
6115 LD="${LD-ld} -64"
6117 esac
6118 fi
6119 fi
6120 rm -rf conftest*
6123 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6124 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6125 # Find out which ABI we are using.
6126 echo 'int i;' > conftest.$ac_ext
6127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6128 (eval $ac_compile) 2>&5
6129 ac_status=$?
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; }; then
6132 case `/usr/bin/file conftest.o` in
6133 *32-bit*)
6134 case $host in
6135 x86_64-*kfreebsd*-gnu)
6136 LD="${LD-ld} -m elf_i386_fbsd"
6138 x86_64-*linux*)
6139 LD="${LD-ld} -m elf_i386"
6141 ppc64-*linux*|powerpc64-*linux*)
6142 LD="${LD-ld} -m elf32ppclinux"
6144 s390x-*linux*)
6145 LD="${LD-ld} -m elf_s390"
6147 sparc64-*linux*)
6148 LD="${LD-ld} -m elf32_sparc"
6150 esac
6152 *64-bit*)
6153 case $host in
6154 x86_64-*kfreebsd*-gnu)
6155 LD="${LD-ld} -m elf_x86_64_fbsd"
6157 x86_64-*linux*)
6158 LD="${LD-ld} -m elf_x86_64"
6160 ppc*-*linux*|powerpc*-*linux*)
6161 LD="${LD-ld} -m elf64ppc"
6163 s390*-*linux*|s390*-*tpf*)
6164 LD="${LD-ld} -m elf64_s390"
6166 sparc*-*linux*)
6167 LD="${LD-ld} -m elf64_sparc"
6169 esac
6171 esac
6172 fi
6173 rm -rf conftest*
6176 *-*-sco3.2v5*)
6177 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6178 SAVE_CFLAGS="$CFLAGS"
6179 CFLAGS="$CFLAGS -belf"
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6181 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6182 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 ac_ext=c
6186 ac_cpp='$CPP $CPPFLAGS'
6187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6194 int
6195 main ()
6199 return 0;
6201 _ACEOF
6202 if ac_fn_c_try_link "$LINENO"; then :
6203 lt_cv_cc_needs_belf=yes
6204 else
6205 lt_cv_cc_needs_belf=no
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext \
6208 conftest$ac_exeext conftest.$ac_ext
6209 ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215 fi
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6217 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6218 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6219 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6220 CFLAGS="$SAVE_CFLAGS"
6221 fi
6223 sparc*-*solaris*)
6224 # Find out which ABI we are using.
6225 echo 'int i;' > conftest.$ac_ext
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6227 (eval $ac_compile) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; }; then
6231 case `/usr/bin/file conftest.o` in
6232 *64-bit*)
6233 case $lt_cv_prog_gnu_ld in
6234 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6236 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6237 LD="${LD-ld} -64"
6238 fi
6240 esac
6242 esac
6243 fi
6244 rm -rf conftest*
6246 esac
6248 need_locks="$enable_libtool_lock"
6251 case $host_os in
6252 rhapsody* | darwin*)
6253 if test -n "$ac_tool_prefix"; then
6254 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6255 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$DSYMUTIL"; then
6262 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6279 fi
6280 fi
6281 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6282 if test -n "$DSYMUTIL"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6284 $as_echo "$DSYMUTIL" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6288 fi
6291 fi
6292 if test -z "$ac_cv_prog_DSYMUTIL"; then
6293 ac_ct_DSYMUTIL=$DSYMUTIL
6294 # Extract the first word of "dsymutil", so it can be a program name with args.
6295 set dummy dsymutil; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_DSYMUTIL"; then
6302 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6319 fi
6320 fi
6321 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6322 if test -n "$ac_ct_DSYMUTIL"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6324 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6330 if test "x$ac_ct_DSYMUTIL" = x; then
6331 DSYMUTIL=":"
6332 else
6333 case $cross_compiling:$ac_tool_warned in
6334 yes:)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6337 ac_tool_warned=yes ;;
6338 esac
6339 DSYMUTIL=$ac_ct_DSYMUTIL
6340 fi
6341 else
6342 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6343 fi
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$NMEDIT"; then
6354 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6366 fi
6367 done
6368 done
6369 IFS=$as_save_IFS
6371 fi
6372 fi
6373 NMEDIT=$ac_cv_prog_NMEDIT
6374 if test -n "$NMEDIT"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6376 $as_echo "$NMEDIT" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6383 fi
6384 if test -z "$ac_cv_prog_NMEDIT"; then
6385 ac_ct_NMEDIT=$NMEDIT
6386 # Extract the first word of "nmedit", so it can be a program name with args.
6387 set dummy nmedit; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_NMEDIT"; then
6394 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6411 fi
6412 fi
6413 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6414 if test -n "$ac_ct_NMEDIT"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6416 $as_echo "$ac_ct_NMEDIT" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6422 if test "x$ac_ct_NMEDIT" = x; then
6423 NMEDIT=":"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 NMEDIT=$ac_ct_NMEDIT
6432 fi
6433 else
6434 NMEDIT="$ac_cv_prog_NMEDIT"
6435 fi
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_LIPO+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$LIPO"; then
6446 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6463 fi
6464 fi
6465 LIPO=$ac_cv_prog_LIPO
6466 if test -n "$LIPO"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6468 $as_echo "$LIPO" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6475 fi
6476 if test -z "$ac_cv_prog_LIPO"; then
6477 ac_ct_LIPO=$LIPO
6478 # Extract the first word of "lipo", so it can be a program name with args.
6479 set dummy lipo; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_LIPO"; then
6486 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_prog_ac_ct_LIPO="lipo"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6503 fi
6504 fi
6505 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6506 if test -n "$ac_ct_LIPO"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6508 $as_echo "$ac_ct_LIPO" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6514 if test "x$ac_ct_LIPO" = x; then
6515 LIPO=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 LIPO=$ac_ct_LIPO
6524 fi
6525 else
6526 LIPO="$ac_cv_prog_LIPO"
6527 fi
6529 if test -n "$ac_tool_prefix"; then
6530 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}otool; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$OTOOL"; then
6538 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6555 fi
6556 fi
6557 OTOOL=$ac_cv_prog_OTOOL
6558 if test -n "$OTOOL"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6560 $as_echo "$OTOOL" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6567 fi
6568 if test -z "$ac_cv_prog_OTOOL"; then
6569 ac_ct_OTOOL=$OTOOL
6570 # Extract the first word of "otool", so it can be a program name with args.
6571 set dummy otool; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$ac_ct_OTOOL"; then
6578 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_ac_ct_OTOOL="otool"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6595 fi
6596 fi
6597 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6598 if test -n "$ac_ct_OTOOL"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6600 $as_echo "$ac_ct_OTOOL" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6606 if test "x$ac_ct_OTOOL" = x; then
6607 OTOOL=":"
6608 else
6609 case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615 OTOOL=$ac_ct_OTOOL
6616 fi
6617 else
6618 OTOOL="$ac_cv_prog_OTOOL"
6619 fi
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$OTOOL64"; then
6630 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6647 fi
6648 fi
6649 OTOOL64=$ac_cv_prog_OTOOL64
6650 if test -n "$OTOOL64"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6652 $as_echo "$OTOOL64" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6659 fi
6660 if test -z "$ac_cv_prog_OTOOL64"; then
6661 ac_ct_OTOOL64=$OTOOL64
6662 # Extract the first word of "otool64", so it can be a program name with args.
6663 set dummy otool64; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$ac_ct_OTOOL64"; then
6670 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_OTOOL64="otool64"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6687 fi
6688 fi
6689 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6690 if test -n "$ac_ct_OTOOL64"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6692 $as_echo "$ac_ct_OTOOL64" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6698 if test "x$ac_ct_OTOOL64" = x; then
6699 OTOOL64=":"
6700 else
6701 case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707 OTOOL64=$ac_ct_OTOOL64
6708 fi
6709 else
6710 OTOOL64="$ac_cv_prog_OTOOL64"
6711 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6740 $as_echo_n "checking for -single_module linker flag... " >&6; }
6741 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 lt_cv_apple_cc_single_mod=no
6745 if test -z "${LT_MULTI_MODULE}"; then
6746 # By default we will add the -single_module flag. You can override
6747 # by either setting the environment variable LT_MULTI_MODULE
6748 # non-empty at configure time, or by adding -multi_module to the
6749 # link flags.
6750 rm -rf libconftest.dylib*
6751 echo "int foo(void){return 1;}" > conftest.c
6752 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753 -dynamiclib -Wl,-single_module conftest.c" >&5
6754 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6756 _lt_result=$?
6757 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6758 lt_cv_apple_cc_single_mod=yes
6759 else
6760 cat conftest.err >&5
6761 fi
6762 rm -rf libconftest.dylib*
6763 rm -f conftest.*
6764 fi
6765 fi
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6767 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6769 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6770 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 lt_cv_ld_exported_symbols_list=no
6774 save_LDFLAGS=$LDFLAGS
6775 echo "_main" > conftest.sym
6776 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 int
6781 main ()
6785 return 0;
6787 _ACEOF
6788 if ac_fn_c_try_link "$LINENO"; then :
6789 lt_cv_ld_exported_symbols_list=yes
6790 else
6791 lt_cv_ld_exported_symbols_list=no
6792 fi
6793 rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 LDFLAGS="$save_LDFLAGS"
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6799 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6800 case $host_os in
6801 rhapsody* | darwin1.[012])
6802 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6803 darwin1.*)
6804 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6805 darwin*) # darwin 5.x on
6806 # if running on 10.5 or later, the deployment target defaults
6807 # to the OS version, if on x86, and 10.4, the deployment
6808 # target defaults to 10.4. Don't you love it?
6809 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6810 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6811 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6812 10.[012]*)
6813 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6814 10.*)
6815 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6816 esac
6818 esac
6819 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6820 _lt_dar_single_mod='$single_module'
6821 fi
6822 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6823 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6824 else
6825 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6826 fi
6827 if test "$DSYMUTIL" != ":"; then
6828 _lt_dsymutil='~$DSYMUTIL $lib || :'
6829 else
6830 _lt_dsymutil=
6831 fi
6833 esac
6835 ac_ext=c
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6841 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6842 # On Suns, sometimes $CPP names a directory.
6843 if test -n "$CPP" && test -d "$CPP"; then
6844 CPP=
6845 fi
6846 if test -z "$CPP"; then
6847 if test "${ac_cv_prog_CPP+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 # Double quotes because CPP needs to be expanded
6851 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6852 do
6853 ac_preproc_ok=false
6854 for ac_c_preproc_warn_flag in '' yes
6855 do
6856 # Use a header file that comes with gcc, so configuring glibc
6857 # with a fresh cross-compiler works.
6858 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6859 # <limits.h> exists even on freestanding compilers.
6860 # On the NeXT, cc -E runs the code through the compiler's parser,
6861 # not just through cpp. "Syntax error" is here to catch this case.
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6864 #ifdef __STDC__
6865 # include <limits.h>
6866 #else
6867 # include <assert.h>
6868 #endif
6869 Syntax error
6870 _ACEOF
6871 if ac_fn_c_try_cpp "$LINENO"; then :
6873 else
6874 # Broken: fails on valid input.
6875 continue
6876 fi
6877 rm -f conftest.err conftest.i conftest.$ac_ext
6879 # OK, works on sane cases. Now check whether nonexistent headers
6880 # can be detected and how.
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6883 #include <ac_nonexistent.h>
6884 _ACEOF
6885 if ac_fn_c_try_cpp "$LINENO"; then :
6886 # Broken: success on invalid input.
6887 continue
6888 else
6889 # Passes both tests.
6890 ac_preproc_ok=:
6891 break
6892 fi
6893 rm -f conftest.err conftest.i conftest.$ac_ext
6895 done
6896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6897 rm -f conftest.i conftest.err conftest.$ac_ext
6898 if $ac_preproc_ok; then :
6899 break
6900 fi
6902 done
6903 ac_cv_prog_CPP=$CPP
6905 fi
6906 CPP=$ac_cv_prog_CPP
6907 else
6908 ac_cv_prog_CPP=$CPP
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6911 $as_echo "$CPP" >&6; }
6912 ac_preproc_ok=false
6913 for ac_c_preproc_warn_flag in '' yes
6914 do
6915 # Use a header file that comes with gcc, so configuring glibc
6916 # with a fresh cross-compiler works.
6917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6918 # <limits.h> exists even on freestanding compilers.
6919 # On the NeXT, cc -E runs the code through the compiler's parser,
6920 # not just through cpp. "Syntax error" is here to catch this case.
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 #ifdef __STDC__
6924 # include <limits.h>
6925 #else
6926 # include <assert.h>
6927 #endif
6928 Syntax error
6929 _ACEOF
6930 if ac_fn_c_try_cpp "$LINENO"; then :
6932 else
6933 # Broken: fails on valid input.
6934 continue
6935 fi
6936 rm -f conftest.err conftest.i conftest.$ac_ext
6938 # OK, works on sane cases. Now check whether nonexistent headers
6939 # can be detected and how.
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6942 #include <ac_nonexistent.h>
6943 _ACEOF
6944 if ac_fn_c_try_cpp "$LINENO"; then :
6945 # Broken: success on invalid input.
6946 continue
6947 else
6948 # Passes both tests.
6949 ac_preproc_ok=:
6950 break
6951 fi
6952 rm -f conftest.err conftest.i conftest.$ac_ext
6954 done
6955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6956 rm -f conftest.i conftest.err conftest.$ac_ext
6957 if $ac_preproc_ok; then :
6959 else
6960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6962 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6963 See \`config.log' for more details" "$LINENO" 5 ; }
6964 fi
6966 ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6974 $as_echo_n "checking for ANSI C header files... " >&6; }
6975 if test "${ac_cv_header_stdc+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980 #include <stdlib.h>
6981 #include <stdarg.h>
6982 #include <string.h>
6983 #include <float.h>
6985 int
6986 main ()
6990 return 0;
6992 _ACEOF
6993 if ac_fn_c_try_compile "$LINENO"; then :
6994 ac_cv_header_stdc=yes
6995 else
6996 ac_cv_header_stdc=no
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 if test $ac_cv_header_stdc = yes; then
7001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 #include <string.h>
7006 _ACEOF
7007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7008 $EGREP "memchr" >/dev/null 2>&1; then :
7010 else
7011 ac_cv_header_stdc=no
7012 fi
7013 rm -f conftest*
7015 fi
7017 if test $ac_cv_header_stdc = yes; then
7018 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 #include <stdlib.h>
7023 _ACEOF
7024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 $EGREP "free" >/dev/null 2>&1; then :
7027 else
7028 ac_cv_header_stdc=no
7029 fi
7030 rm -f conftest*
7032 fi
7034 if test $ac_cv_header_stdc = yes; then
7035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7036 if test "$cross_compiling" = yes; then :
7037 :
7038 else
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 #include <ctype.h>
7042 #include <stdlib.h>
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046 #else
7047 # define ISLOWER(c) \
7048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052 #endif
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055 int
7056 main ()
7058 int i;
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
7061 || toupper (i) != TOUPPER (i))
7062 return 2;
7063 return 0;
7065 _ACEOF
7066 if ac_fn_c_try_run "$LINENO"; then :
7068 else
7069 ac_cv_header_stdc=no
7070 fi
7071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7072 conftest.$ac_objext conftest.beam conftest.$ac_ext
7073 fi
7075 fi
7076 fi
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7078 $as_echo "$ac_cv_header_stdc" >&6; }
7079 if test $ac_cv_header_stdc = yes; then
7081 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7083 fi
7085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7086 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7087 inttypes.h stdint.h unistd.h
7088 do :
7089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7093 cat >>confdefs.h <<_ACEOF
7094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7095 _ACEOF
7097 fi
7099 done
7102 for ac_header in dlfcn.h
7103 do :
7104 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7106 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define HAVE_DLFCN_H 1
7109 _ACEOF
7111 fi
7113 done
7117 # Set options
7121 enable_dlopen=no
7124 enable_win32_dll=no
7127 # Check whether --enable-shared was given.
7128 if test "${enable_shared+set}" = set; then :
7129 enableval=$enable_shared; p=${PACKAGE-default}
7130 case $enableval in
7131 yes) enable_shared=yes ;;
7132 no) enable_shared=no ;;
7134 enable_shared=no
7135 # Look at the argument we got. We use all the common list separators.
7136 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7137 for pkg in $enableval; do
7138 IFS="$lt_save_ifs"
7139 if test "X$pkg" = "X$p"; then
7140 enable_shared=yes
7141 fi
7142 done
7143 IFS="$lt_save_ifs"
7145 esac
7146 else
7147 enable_shared=yes
7148 fi
7160 # Check whether --with-pic was given.
7161 if test "${with_pic+set}" = set; then :
7162 withval=$with_pic; pic_mode="$withval"
7163 else
7164 pic_mode=default
7165 fi
7168 test -z "$pic_mode" && pic_mode=default
7176 # Check whether --enable-fast-install was given.
7177 if test "${enable_fast_install+set}" = set; then :
7178 enableval=$enable_fast_install; p=${PACKAGE-default}
7179 case $enableval in
7180 yes) enable_fast_install=yes ;;
7181 no) enable_fast_install=no ;;
7183 enable_fast_install=no
7184 # Look at the argument we got. We use all the common list separators.
7185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7186 for pkg in $enableval; do
7187 IFS="$lt_save_ifs"
7188 if test "X$pkg" = "X$p"; then
7189 enable_fast_install=yes
7190 fi
7191 done
7192 IFS="$lt_save_ifs"
7194 esac
7195 else
7196 enable_fast_install=yes
7197 fi
7209 # This can be used to rebuild libtool when needed
7210 LIBTOOL_DEPS="$ltmain"
7212 # Always use our own libtool.
7213 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7239 test -z "$LN_S" && LN_S="ln -s"
7254 if test -n "${ZSH_VERSION+set}" ; then
7255 setopt NO_GLOB_SUBST
7256 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7259 $as_echo_n "checking for objdir... " >&6; }
7260 if test "${lt_cv_objdir+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 rm -f .libs 2>/dev/null
7264 mkdir .libs 2>/dev/null
7265 if test -d .libs; then
7266 lt_cv_objdir=.libs
7267 else
7268 # MS-DOS does not allow filenames that begin with a dot.
7269 lt_cv_objdir=_libs
7270 fi
7271 rmdir .libs 2>/dev/null
7272 fi
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7274 $as_echo "$lt_cv_objdir" >&6; }
7275 objdir=$lt_cv_objdir
7281 cat >>confdefs.h <<_ACEOF
7282 #define LT_OBJDIR "$lt_cv_objdir/"
7283 _ACEOF
7301 case $host_os in
7302 aix3*)
7303 # AIX sometimes has problems with the GCC collect2 program. For some
7304 # reason, if we set the COLLECT_NAMES environment variable, the problems
7305 # vanish in a puff of smoke.
7306 if test "X${COLLECT_NAMES+set}" != Xset; then
7307 COLLECT_NAMES=
7308 export COLLECT_NAMES
7309 fi
7311 esac
7313 # Sed substitution that helps us do robust quoting. It backslashifies
7314 # metacharacters that are still active within double-quoted strings.
7315 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7317 # Same as above, but do not quote variable references.
7318 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7320 # Sed substitution to delay expansion of an escaped shell variable in a
7321 # double_quote_subst'ed string.
7322 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7324 # Sed substitution to delay expansion of an escaped single quote.
7325 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7327 # Sed substitution to avoid accidental globbing in evaled expressions
7328 no_glob_subst='s/\*/\\\*/g'
7330 # Global variables:
7331 ofile=libtool
7332 can_build_shared=yes
7334 # All known linkers require a `.a' archive for static linking (except MSVC,
7335 # which needs '.lib').
7336 libext=a
7338 with_gnu_ld="$lt_cv_prog_gnu_ld"
7340 old_CC="$CC"
7341 old_CFLAGS="$CFLAGS"
7343 # Set sane defaults for various variables
7344 test -z "$CC" && CC=cc
7345 test -z "$LTCC" && LTCC=$CC
7346 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7347 test -z "$LD" && LD=ld
7348 test -z "$ac_objext" && ac_objext=o
7350 for cc_temp in $compiler""; do
7351 case $cc_temp in
7352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7354 \-*) ;;
7355 *) break;;
7356 esac
7357 done
7358 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7361 # Only perform the check for file, if the check method requires it
7362 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7363 case $deplibs_check_method in
7364 file_magic*)
7365 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7367 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 case $MAGIC_CMD in
7372 [\\/*] | ?:[\\/]*)
7373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7376 lt_save_MAGIC_CMD="$MAGIC_CMD"
7377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7379 for ac_dir in $ac_dummy; do
7380 IFS="$lt_save_ifs"
7381 test -z "$ac_dir" && ac_dir=.
7382 if test -f $ac_dir/${ac_tool_prefix}file; then
7383 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7384 if test -n "$file_magic_test_file"; then
7385 case $deplibs_check_method in
7386 "file_magic "*)
7387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7390 $EGREP "$file_magic_regex" > /dev/null; then
7391 :
7392 else
7393 cat <<_LT_EOF 1>&2
7395 *** Warning: the command libtool uses to detect shared libraries,
7396 *** $file_magic_cmd, produces output that libtool cannot recognize.
7397 *** The result is that libtool may fail to recognize shared libraries
7398 *** as such. This will affect the creation of libtool libraries that
7399 *** depend on shared libraries, but programs linked with such libtool
7400 *** libraries will work regardless of this problem. Nevertheless, you
7401 *** may want to report the problem to your system manager and/or to
7402 *** bug-libtool@gnu.org
7404 _LT_EOF
7405 fi ;;
7406 esac
7407 fi
7408 break
7409 fi
7410 done
7411 IFS="$lt_save_ifs"
7412 MAGIC_CMD="$lt_save_MAGIC_CMD"
7414 esac
7415 fi
7417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7418 if test -n "$MAGIC_CMD"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7420 $as_echo "$MAGIC_CMD" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7430 if test -z "$lt_cv_path_MAGIC_CMD"; then
7431 if test -n "$ac_tool_prefix"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7433 $as_echo_n "checking for file... " >&6; }
7434 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 case $MAGIC_CMD in
7438 [\\/*] | ?:[\\/]*)
7439 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7442 lt_save_MAGIC_CMD="$MAGIC_CMD"
7443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445 for ac_dir in $ac_dummy; do
7446 IFS="$lt_save_ifs"
7447 test -z "$ac_dir" && ac_dir=.
7448 if test -f $ac_dir/file; then
7449 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7450 if test -n "$file_magic_test_file"; then
7451 case $deplibs_check_method in
7452 "file_magic "*)
7453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456 $EGREP "$file_magic_regex" > /dev/null; then
7457 :
7458 else
7459 cat <<_LT_EOF 1>&2
7461 *** Warning: the command libtool uses to detect shared libraries,
7462 *** $file_magic_cmd, produces output that libtool cannot recognize.
7463 *** The result is that libtool may fail to recognize shared libraries
7464 *** as such. This will affect the creation of libtool libraries that
7465 *** depend on shared libraries, but programs linked with such libtool
7466 *** libraries will work regardless of this problem. Nevertheless, you
7467 *** may want to report the problem to your system manager and/or to
7468 *** bug-libtool@gnu.org
7470 _LT_EOF
7471 fi ;;
7472 esac
7473 fi
7474 break
7475 fi
7476 done
7477 IFS="$lt_save_ifs"
7478 MAGIC_CMD="$lt_save_MAGIC_CMD"
7480 esac
7481 fi
7483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484 if test -n "$MAGIC_CMD"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7486 $as_echo "$MAGIC_CMD" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7493 else
7494 MAGIC_CMD=:
7495 fi
7496 fi
7498 fi
7500 esac
7502 # Use C for the default configuration in the libtool script
7504 lt_save_CC="$CC"
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512 # Source file extension for C test sources.
7513 ac_ext=c
7515 # Object file extension for compiled C test sources.
7516 objext=o
7517 objext=$objext
7519 # Code to be used in simple compile tests
7520 lt_simple_compile_test_code="int some_variable = 0;"
7522 # Code to be used in simple link tests
7523 lt_simple_link_test_code='int main(){return(0);}'
7531 # If no C compiler was specified, use CC.
7532 LTCC=${LTCC-"$CC"}
7534 # If no C compiler flags were specified, use CFLAGS.
7535 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7537 # Allow CC to be a program name with arguments.
7538 compiler=$CC
7540 # Save the default compiler, since it gets overwritten when the other
7541 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7542 compiler_DEFAULT=$CC
7544 # save warnings/boilerplate of simple test code
7545 ac_outfile=conftest.$ac_objext
7546 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7547 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7548 _lt_compiler_boilerplate=`cat conftest.err`
7549 $RM conftest*
7551 ac_outfile=conftest.$ac_objext
7552 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7553 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7554 _lt_linker_boilerplate=`cat conftest.err`
7555 $RM -r conftest*
7558 ## CAVEAT EMPTOR:
7559 ## There is no encapsulation within the following macros, do not change
7560 ## the running order or otherwise move them around unless you know exactly
7561 ## what you are doing...
7562 if test -n "$compiler"; then
7564 lt_prog_compiler_no_builtin_flag=
7566 if test "$GCC" = yes; then
7567 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7571 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 lt_cv_prog_compiler_rtti_exceptions=no
7575 ac_outfile=conftest.$ac_objext
7576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7577 lt_compiler_flag="-fno-rtti -fno-exceptions"
7578 # Insert the option either (1) after the last *FLAGS variable, or
7579 # (2) before a word containing "conftest.", or (3) at the end.
7580 # Note that $ac_compile itself does not contain backslashes and begins
7581 # with a dollar sign (not a hyphen), so the echo should work correctly.
7582 # The option is referenced via a variable to avoid confusing sed.
7583 lt_compile=`echo "$ac_compile" | $SED \
7584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7586 -e 's:$: $lt_compiler_flag:'`
7587 (eval echo "\"\$as_me:7587: $lt_compile\"" >&5)
7588 (eval "$lt_compile" 2>conftest.err)
7589 ac_status=$?
7590 cat conftest.err >&5
7591 echo "$as_me:7591: \$? = $ac_status" >&5
7592 if (exit $ac_status) && test -s "$ac_outfile"; then
7593 # The compiler can only warn and ignore the option if not recognized
7594 # So say no if there are warnings other than the usual output.
7595 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7598 lt_cv_prog_compiler_rtti_exceptions=yes
7599 fi
7600 fi
7601 $RM conftest*
7603 fi
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7609 else
7610 :
7611 fi
7613 fi
7620 lt_prog_compiler_wl=
7621 lt_prog_compiler_pic=
7622 lt_prog_compiler_static=
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7627 if test "$GCC" = yes; then
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_static='-static'
7631 case $host_os in
7632 aix*)
7633 # All AIX code is PIC.
7634 if test "$host_cpu" = ia64; then
7635 # AIX 5 now supports IA64 processor
7636 lt_prog_compiler_static='-Bstatic'
7637 fi
7640 amigaos*)
7641 case $host_cpu in
7642 powerpc)
7643 # see comment about AmigaOS4 .so support
7644 lt_prog_compiler_pic='-fPIC'
7646 m68k)
7647 # FIXME: we need at least 68020 code to build shared libraries, but
7648 # adding the `-m68020' flag to GCC prevents building anything better,
7649 # like `-m68040'.
7650 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7652 esac
7655 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7656 # PIC is the default for these OSes.
7659 mingw* | cygwin* | pw32* | os2* | cegcc*)
7660 # This hack is so that the source file can tell whether it is being
7661 # built for inclusion in a dll (and should export symbols for example).
7662 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7663 # (--disable-auto-import) libraries
7664 lt_prog_compiler_pic='-DDLL_EXPORT'
7667 darwin* | rhapsody*)
7668 # PIC is the default on this platform
7669 # Common symbols not allowed in MH_DYLIB files
7670 lt_prog_compiler_pic='-fno-common'
7673 hpux*)
7674 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7675 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7676 # sets the default TLS model and affects inlining.
7677 case $host_cpu in
7678 hppa*64*)
7679 # +Z the default
7682 lt_prog_compiler_pic='-fPIC'
7684 esac
7687 interix[3-9]*)
7688 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7689 # Instead, we relocate shared libraries at runtime.
7692 msdosdjgpp*)
7693 # Just because we use GCC doesn't mean we suddenly get shared libraries
7694 # on systems that don't support them.
7695 lt_prog_compiler_can_build_shared=no
7696 enable_shared=no
7699 *nto* | *qnx*)
7700 # QNX uses GNU C++, but need to define -shared option too, otherwise
7701 # it will coredump.
7702 lt_prog_compiler_pic='-fPIC -shared'
7705 sysv4*MP*)
7706 if test -d /usr/nec; then
7707 lt_prog_compiler_pic=-Kconform_pic
7708 fi
7712 lt_prog_compiler_pic='-fPIC'
7714 esac
7715 else
7716 # PORTME Check for flag to pass linker flags through the system compiler.
7717 case $host_os in
7718 aix*)
7719 lt_prog_compiler_wl='-Wl,'
7720 if test "$host_cpu" = ia64; then
7721 # AIX 5 now supports IA64 processor
7722 lt_prog_compiler_static='-Bstatic'
7723 else
7724 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7725 fi
7728 mingw* | cygwin* | pw32* | os2* | cegcc*)
7729 # This hack is so that the source file can tell whether it is being
7730 # built for inclusion in a dll (and should export symbols for example).
7731 lt_prog_compiler_pic='-DDLL_EXPORT'
7734 hpux9* | hpux10* | hpux11*)
7735 lt_prog_compiler_wl='-Wl,'
7736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7737 # not for PA HP-UX.
7738 case $host_cpu in
7739 hppa*64*|ia64*)
7740 # +Z the default
7743 lt_prog_compiler_pic='+Z'
7745 esac
7746 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7747 lt_prog_compiler_static='${wl}-a ${wl}archive'
7750 irix5* | irix6* | nonstopux*)
7751 lt_prog_compiler_wl='-Wl,'
7752 # PIC (with -KPIC) is the default.
7753 lt_prog_compiler_static='-non_shared'
7756 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7757 case $cc_basename in
7758 # old Intel for x86_64 which still supported -KPIC.
7759 ecc*)
7760 lt_prog_compiler_wl='-Wl,'
7761 lt_prog_compiler_pic='-KPIC'
7762 lt_prog_compiler_static='-static'
7764 # icc used to be incompatible with GCC.
7765 # ICC 10 doesn't accept -KPIC any more.
7766 icc* | ifort*)
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-fPIC'
7769 lt_prog_compiler_static='-static'
7771 # Lahey Fortran 8.1.
7772 lf95*)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_pic='--shared'
7775 lt_prog_compiler_static='--static'
7777 pgcc* | pgf77* | pgf90* | pgf95*)
7778 # Portland Group compilers (*not* the Pentium gcc compiler,
7779 # which looks to be a dead project)
7780 lt_prog_compiler_wl='-Wl,'
7781 lt_prog_compiler_pic='-fpic'
7782 lt_prog_compiler_static='-Bstatic'
7784 ccc*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All Alpha code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7789 xl*)
7790 # IBM XL C 8.0/Fortran 10.1 on PPC
7791 lt_prog_compiler_wl='-Wl,'
7792 lt_prog_compiler_pic='-qpic'
7793 lt_prog_compiler_static='-qstaticlink'
7796 case `$CC -V 2>&1 | sed 5q` in
7797 *Sun\ C*)
7798 # Sun C 5.9
7799 lt_prog_compiler_pic='-KPIC'
7800 lt_prog_compiler_static='-Bstatic'
7801 lt_prog_compiler_wl='-Wl,'
7803 *Sun\ F*)
7804 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7805 lt_prog_compiler_pic='-KPIC'
7806 lt_prog_compiler_static='-Bstatic'
7807 lt_prog_compiler_wl=''
7809 esac
7811 esac
7814 newsos6)
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-Bstatic'
7819 *nto* | *qnx*)
7820 # QNX uses GNU C++, but need to define -shared option too, otherwise
7821 # it will coredump.
7822 lt_prog_compiler_pic='-fPIC -shared'
7825 osf3* | osf4* | osf5*)
7826 lt_prog_compiler_wl='-Wl,'
7827 # All OSF/1 code is PIC.
7828 lt_prog_compiler_static='-non_shared'
7831 rdos*)
7832 lt_prog_compiler_static='-non_shared'
7835 solaris*)
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 case $cc_basename in
7839 f77* | f90* | f95*)
7840 lt_prog_compiler_wl='-Qoption ld ';;
7842 lt_prog_compiler_wl='-Wl,';;
7843 esac
7846 sunos4*)
7847 lt_prog_compiler_wl='-Qoption ld '
7848 lt_prog_compiler_pic='-PIC'
7849 lt_prog_compiler_static='-Bstatic'
7852 sysv4 | sysv4.2uw2* | sysv4.3*)
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_pic='-KPIC'
7855 lt_prog_compiler_static='-Bstatic'
7858 sysv4*MP*)
7859 if test -d /usr/nec ;then
7860 lt_prog_compiler_pic='-Kconform_pic'
7861 lt_prog_compiler_static='-Bstatic'
7862 fi
7865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7866 lt_prog_compiler_wl='-Wl,'
7867 lt_prog_compiler_pic='-KPIC'
7868 lt_prog_compiler_static='-Bstatic'
7871 unicos*)
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_can_build_shared=no
7876 uts4*)
7877 lt_prog_compiler_pic='-pic'
7878 lt_prog_compiler_static='-Bstatic'
7882 lt_prog_compiler_can_build_shared=no
7884 esac
7885 fi
7887 case $host_os in
7888 # For platforms which do not support PIC, -DPIC is meaningless:
7889 *djgpp*)
7890 lt_prog_compiler_pic=
7893 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7895 esac
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7897 $as_echo "$lt_prog_compiler_pic" >&6; }
7905 # Check to make sure the PIC flag actually works.
7907 if test -n "$lt_prog_compiler_pic"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7909 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7910 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 lt_cv_prog_compiler_pic_works=no
7914 ac_outfile=conftest.$ac_objext
7915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7916 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7917 # Insert the option either (1) after the last *FLAGS variable, or
7918 # (2) before a word containing "conftest.", or (3) at the end.
7919 # Note that $ac_compile itself does not contain backslashes and begins
7920 # with a dollar sign (not a hyphen), so the echo should work correctly.
7921 # The option is referenced via a variable to avoid confusing sed.
7922 lt_compile=`echo "$ac_compile" | $SED \
7923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7925 -e 's:$: $lt_compiler_flag:'`
7926 (eval echo "\"\$as_me:7926: $lt_compile\"" >&5)
7927 (eval "$lt_compile" 2>conftest.err)
7928 ac_status=$?
7929 cat conftest.err >&5
7930 echo "$as_me:7930: \$? = $ac_status" >&5
7931 if (exit $ac_status) && test -s "$ac_outfile"; then
7932 # The compiler can only warn and ignore the option if not recognized
7933 # So say no if there are warnings other than the usual output.
7934 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7937 lt_cv_prog_compiler_pic_works=yes
7938 fi
7939 fi
7940 $RM conftest*
7942 fi
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7944 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7946 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7947 case $lt_prog_compiler_pic in
7949 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7950 esac
7951 else
7952 lt_prog_compiler_pic=
7953 lt_prog_compiler_can_build_shared=no
7954 fi
7956 fi
7964 # Check to make sure the static flag actually works.
7966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7968 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7969 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 lt_cv_prog_compiler_static_works=no
7973 save_LDFLAGS="$LDFLAGS"
7974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7977 # The linker can only warn and ignore the option if not recognized
7978 # So say no if there are warnings
7979 if test -s conftest.err; then
7980 # Append any errors to the config.log.
7981 cat conftest.err 1>&5
7982 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7984 if diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_cv_prog_compiler_static_works=yes
7986 fi
7987 else
7988 lt_cv_prog_compiler_static_works=yes
7989 fi
7990 fi
7991 $RM -r conftest*
7992 LDFLAGS="$save_LDFLAGS"
7994 fi
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7996 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7998 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7999 :
8000 else
8001 lt_prog_compiler_static=
8002 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8012 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 lt_cv_prog_compiler_c_o=no
8016 $RM -r conftest 2>/dev/null
8017 mkdir conftest
8018 cd conftest
8019 mkdir out
8020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8022 lt_compiler_flag="-o out/conftest2.$ac_objext"
8023 # Insert the option either (1) after the last *FLAGS variable, or
8024 # (2) before a word containing "conftest.", or (3) at the end.
8025 # Note that $ac_compile itself does not contain backslashes and begins
8026 # with a dollar sign (not a hyphen), so the echo should work correctly.
8027 lt_compile=`echo "$ac_compile" | $SED \
8028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8030 -e 's:$: $lt_compiler_flag:'`
8031 (eval echo "\"\$as_me:8031: $lt_compile\"" >&5)
8032 (eval "$lt_compile" 2>out/conftest.err)
8033 ac_status=$?
8034 cat out/conftest.err >&5
8035 echo "$as_me:8035: \$? = $ac_status" >&5
8036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8037 then
8038 # The compiler can only warn and ignore the option if not recognized
8039 # So say no if there are warnings
8040 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8043 lt_cv_prog_compiler_c_o=yes
8044 fi
8045 fi
8046 chmod u+w . 2>&5
8047 $RM conftest*
8048 # SGI C++ compiler will create directory out/ii_files/ for
8049 # template instantiation
8050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8051 $RM out/* && rmdir out
8052 cd ..
8053 $RM -r conftest
8054 $RM conftest*
8056 fi
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8067 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 lt_cv_prog_compiler_c_o=no
8071 $RM -r conftest 2>/dev/null
8072 mkdir conftest
8073 cd conftest
8074 mkdir out
8075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8077 lt_compiler_flag="-o out/conftest2.$ac_objext"
8078 # Insert the option either (1) after the last *FLAGS variable, or
8079 # (2) before a word containing "conftest.", or (3) at the end.
8080 # Note that $ac_compile itself does not contain backslashes and begins
8081 # with a dollar sign (not a hyphen), so the echo should work correctly.
8082 lt_compile=`echo "$ac_compile" | $SED \
8083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8085 -e 's:$: $lt_compiler_flag:'`
8086 (eval echo "\"\$as_me:8086: $lt_compile\"" >&5)
8087 (eval "$lt_compile" 2>out/conftest.err)
8088 ac_status=$?
8089 cat out/conftest.err >&5
8090 echo "$as_me:8090: \$? = $ac_status" >&5
8091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8092 then
8093 # The compiler can only warn and ignore the option if not recognized
8094 # So say no if there are warnings
8095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8098 lt_cv_prog_compiler_c_o=yes
8099 fi
8100 fi
8101 chmod u+w . 2>&5
8102 $RM conftest*
8103 # SGI C++ compiler will create directory out/ii_files/ for
8104 # template instantiation
8105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8106 $RM out/* && rmdir out
8107 cd ..
8108 $RM -r conftest
8109 $RM conftest*
8111 fi
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8118 hard_links="nottested"
8119 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8120 # do not overwrite the value of need_locks provided by the user
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8122 $as_echo_n "checking if we can lock with hard links... " >&6; }
8123 hard_links=yes
8124 $RM conftest*
8125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126 touch conftest.a
8127 ln conftest.a conftest.b 2>&5 || hard_links=no
8128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8130 $as_echo "$hard_links" >&6; }
8131 if test "$hard_links" = no; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8133 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8134 need_locks=warn
8135 fi
8136 else
8137 need_locks=no
8138 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8148 runpath_var=
8149 allow_undefined_flag=
8150 always_export_symbols=no
8151 archive_cmds=
8152 archive_expsym_cmds=
8153 compiler_needs_object=no
8154 enable_shared_with_static_runtimes=no
8155 export_dynamic_flag_spec=
8156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8157 hardcode_automatic=no
8158 hardcode_direct=no
8159 hardcode_direct_absolute=no
8160 hardcode_libdir_flag_spec=
8161 hardcode_libdir_flag_spec_ld=
8162 hardcode_libdir_separator=
8163 hardcode_minus_L=no
8164 hardcode_shlibpath_var=unsupported
8165 inherit_rpath=no
8166 link_all_deplibs=unknown
8167 module_cmds=
8168 module_expsym_cmds=
8169 old_archive_from_new_cmds=
8170 old_archive_from_expsyms_cmds=
8171 thread_safe_flag_spec=
8172 whole_archive_flag_spec=
8173 # include_expsyms should be a list of space-separated symbols to be *always*
8174 # included in the symbol list
8175 include_expsyms=
8176 # exclude_expsyms can be an extended regexp of symbols to exclude
8177 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8178 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8179 # as well as any symbol that contains `d'.
8180 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8181 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8182 # platforms (ab)use it in PIC code, but their linkers get confused if
8183 # the symbol is explicitly referenced. Since portable code cannot
8184 # rely on this symbol name, it's probably fine to never include it in
8185 # preloaded symbol tables.
8186 # Exclude shared library initialization/finalization symbols.
8187 extract_expsyms_cmds=
8189 case $host_os in
8190 cygwin* | mingw* | pw32* | cegcc*)
8191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8192 # When not using gcc, we currently assume that we are using
8193 # Microsoft Visual C++.
8194 if test "$GCC" != yes; then
8195 with_gnu_ld=no
8196 fi
8198 interix*)
8199 # we just hope/assume this is gcc and not c89 (= MSVC++)
8200 with_gnu_ld=yes
8202 openbsd*)
8203 with_gnu_ld=no
8205 linux* | k*bsd*-gnu)
8206 link_all_deplibs=no
8208 esac
8210 ld_shlibs=yes
8211 if test "$with_gnu_ld" = yes; then
8212 # If archive_cmds runs LD, not CC, wlarc should be empty
8213 wlarc='${wl}'
8215 # Set some defaults for GNU ld with shared library support. These
8216 # are reset later if shared libraries are not supported. Putting them
8217 # here allows them to be overridden if necessary.
8218 runpath_var=LD_RUN_PATH
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 export_dynamic_flag_spec='${wl}--export-dynamic'
8221 # ancient GNU ld didn't support --whole-archive et. al.
8222 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8223 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8224 else
8225 whole_archive_flag_spec=
8226 fi
8227 supports_anon_versioning=no
8228 case `$LD -v 2>&1` in
8229 *GNU\ gold*) supports_anon_versioning=yes ;;
8230 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8231 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8232 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8233 *\ 2.11.*) ;; # other 2.11 versions
8234 *) supports_anon_versioning=yes ;;
8235 esac
8237 # See if GNU ld supports shared libraries.
8238 case $host_os in
8239 aix[3-9]*)
8240 # On AIX/PPC, the GNU linker is very broken
8241 if test "$host_cpu" != ia64; then
8242 ld_shlibs=no
8243 cat <<_LT_EOF 1>&2
8245 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8246 *** to be unable to reliably create shared libraries on AIX.
8247 *** Therefore, libtool is disabling shared libraries support. If you
8248 *** really care for shared libraries, you may want to modify your PATH
8249 *** so that a non-GNU linker is found, and then restart.
8251 _LT_EOF
8252 fi
8255 amigaos*)
8256 case $host_cpu in
8257 powerpc)
8258 # see comment about AmigaOS4 .so support
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds=''
8262 m68k)
8263 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)'
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8267 esac
8270 beos*)
8271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8272 allow_undefined_flag=unsupported
8273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274 # support --undefined. This deserves some investigation. FIXME
8275 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276 else
8277 ld_shlibs=no
8278 fi
8281 cygwin* | mingw* | pw32* | cegcc*)
8282 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283 # as there is no search path for DLLs.
8284 hardcode_libdir_flag_spec='-L$libdir'
8285 allow_undefined_flag=unsupported
8286 always_export_symbols=no
8287 enable_shared_with_static_runtimes=yes
8288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8290 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8292 # If the export-symbols file already is a .def file (1st line
8293 # is EXPORTS), use it as is; otherwise, prepend...
8294 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8295 cp $export_symbols $output_objdir/$soname.def;
8296 else
8297 echo EXPORTS > $output_objdir/$soname.def;
8298 cat $export_symbols >> $output_objdir/$soname.def;
8299 fi~
8300 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8301 else
8302 ld_shlibs=no
8303 fi
8306 interix[3-9]*)
8307 hardcode_direct=no
8308 hardcode_shlibpath_var=no
8309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8310 export_dynamic_flag_spec='${wl}-E'
8311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8312 # Instead, shared libraries are loaded at an image base (0x10000000 by
8313 # default) and relocated if they conflict, which is a slow very memory
8314 # consuming and fragmenting process. To avoid this, we pick a random,
8315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8318 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'
8321 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8322 tmp_diet=no
8323 if test "$host_os" = linux-dietlibc; then
8324 case $cc_basename in
8325 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8326 esac
8327 fi
8328 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8329 && test "$tmp_diet" = no
8330 then
8331 tmp_addflag=
8332 tmp_sharedflag='-shared'
8333 case $cc_basename,$host_cpu in
8334 pgcc*) # Portland Group C compiler
8335 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8336 tmp_addflag=' $pic_flag'
8338 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8339 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8340 tmp_addflag=' $pic_flag -Mnomain' ;;
8341 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8342 tmp_addflag=' -i_dynamic' ;;
8343 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8344 tmp_addflag=' -i_dynamic -nofor_main' ;;
8345 ifc* | ifort*) # Intel Fortran compiler
8346 tmp_addflag=' -nofor_main' ;;
8347 lf95*) # Lahey Fortran 8.1
8348 whole_archive_flag_spec=
8349 tmp_sharedflag='--shared' ;;
8350 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8351 tmp_sharedflag='-qmkshrobj'
8352 tmp_addflag= ;;
8353 esac
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ C*) # Sun C 5.9
8356 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8357 compiler_needs_object=yes
8358 tmp_sharedflag='-G' ;;
8359 *Sun\ F*) # Sun Fortran 8.3
8360 tmp_sharedflag='-G' ;;
8361 esac
8362 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 if test "x$supports_anon_versioning" = xyes; then
8365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8367 echo "local: *; };" >> $output_objdir/$libname.ver~
8368 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8369 fi
8371 case $cc_basename in
8372 xlf*)
8373 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8374 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8375 hardcode_libdir_flag_spec=
8376 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8377 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8378 if test "x$supports_anon_versioning" = xyes; then
8379 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8380 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8381 echo "local: *; };" >> $output_objdir/$libname.ver~
8382 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8383 fi
8385 esac
8386 else
8387 ld_shlibs=no
8388 fi
8391 netbsd* | netbsdelf*-gnu)
8392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8393 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8394 wlarc=
8395 else
8396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8398 fi
8401 solaris*)
8402 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8403 ld_shlibs=no
8404 cat <<_LT_EOF 1>&2
8406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8407 *** create shared libraries on Solaris systems. Therefore, libtool
8408 *** is disabling shared libraries support. We urge you to upgrade GNU
8409 *** binutils to release 2.9.1 or newer. Another option is to modify
8410 *** your PATH or compiler configuration so that the native linker is
8411 *** used, and then restart.
8413 _LT_EOF
8414 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8417 else
8418 ld_shlibs=no
8419 fi
8422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8423 case `$LD -v 2>&1` in
8424 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8425 ld_shlibs=no
8426 cat <<_LT_EOF 1>&2
8428 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8429 *** reliably create shared libraries on SCO systems. Therefore, libtool
8430 *** is disabling shared libraries support. We urge you to upgrade GNU
8431 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8432 *** your PATH or compiler configuration so that the native linker is
8433 *** used, and then restart.
8435 _LT_EOF
8438 # For security reasons, it is highly recommended that you always
8439 # use absolute paths for naming shared libraries, and exclude the
8440 # DT_RUNPATH tag from executables and libraries. But doing so
8441 # requires that you compile everything twice, which is a pain.
8442 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8444 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446 else
8447 ld_shlibs=no
8448 fi
8450 esac
8453 sunos4*)
8454 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8455 wlarc=
8456 hardcode_direct=yes
8457 hardcode_shlibpath_var=no
8461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464 else
8465 ld_shlibs=no
8466 fi
8468 esac
8470 if test "$ld_shlibs" = no; then
8471 runpath_var=
8472 hardcode_libdir_flag_spec=
8473 export_dynamic_flag_spec=
8474 whole_archive_flag_spec=
8475 fi
8476 else
8477 # PORTME fill in a description of your system's linker (not GNU ld)
8478 case $host_os in
8479 aix3*)
8480 allow_undefined_flag=unsupported
8481 always_export_symbols=yes
8482 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'
8483 # Note: this linker hardcodes the directories in LIBPATH if there
8484 # are no directories specified by -L.
8485 hardcode_minus_L=yes
8486 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8487 # Neither direct hardcoding nor static linking is supported with a
8488 # broken collect2.
8489 hardcode_direct=unsupported
8490 fi
8493 aix[4-9]*)
8494 if test "$host_cpu" = ia64; then
8495 # On IA64, the linker does run time linking by default, so we don't
8496 # have to do anything special.
8497 aix_use_runtimelinking=no
8498 exp_sym_flag='-Bexport'
8499 no_entry_flag=""
8500 else
8501 # If we're using GNU nm, then we don't want the "-C" option.
8502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8503 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8504 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8505 else
8506 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8507 fi
8508 aix_use_runtimelinking=no
8510 # Test if we are trying to use run time linking or normal
8511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8512 # need to do runtime linking.
8513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8514 for ld_flag in $LDFLAGS; do
8515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8516 aix_use_runtimelinking=yes
8517 break
8518 fi
8519 done
8521 esac
8523 exp_sym_flag='-bexport'
8524 no_entry_flag='-bnoentry'
8525 fi
8527 # When large executables or shared objects are built, AIX ld can
8528 # have problems creating the table of contents. If linking a library
8529 # or program results in "error TOC overflow" add -mminimal-toc to
8530 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8531 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8533 archive_cmds=''
8534 hardcode_direct=yes
8535 hardcode_direct_absolute=yes
8536 hardcode_libdir_separator=':'
8537 link_all_deplibs=yes
8538 file_list_spec='${wl}-f,'
8540 if test "$GCC" = yes; then
8541 case $host_os in aix4.[012]|aix4.[012].*)
8542 # We only want to do this on AIX 4.2 and lower, the check
8543 # below for broken collect2 doesn't work under 4.3+
8544 collect2name=`${CC} -print-prog-name=collect2`
8545 if test -f "$collect2name" &&
8546 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8547 then
8548 # We have reworked collect2
8549 :
8550 else
8551 # We have old collect2
8552 hardcode_direct=unsupported
8553 # It fails to find uninstalled libraries when the uninstalled
8554 # path is not listed in the libpath. Setting hardcode_minus_L
8555 # to unsupported forces relinking
8556 hardcode_minus_L=yes
8557 hardcode_libdir_flag_spec='-L$libdir'
8558 hardcode_libdir_separator=
8559 fi
8561 esac
8562 shared_flag='-shared'
8563 if test "$aix_use_runtimelinking" = yes; then
8564 shared_flag="$shared_flag "'${wl}-G'
8565 fi
8566 link_all_deplibs=no
8567 else
8568 # not using gcc
8569 if test "$host_cpu" = ia64; then
8570 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8571 # chokes on -Wl,-G. The following line is correct:
8572 shared_flag='-G'
8573 else
8574 if test "$aix_use_runtimelinking" = yes; then
8575 shared_flag='${wl}-G'
8576 else
8577 shared_flag='${wl}-bM:SRE'
8578 fi
8579 fi
8580 fi
8582 export_dynamic_flag_spec='${wl}-bexpall'
8583 # It seems that -bexpall does not export symbols beginning with
8584 # underscore (_), so it is better to generate a list of symbols to export.
8585 always_export_symbols=yes
8586 if test "$aix_use_runtimelinking" = yes; then
8587 # Warning - without using the other runtime loading flags (-brtl),
8588 # -berok will link without error, but may produce a broken library.
8589 allow_undefined_flag='-berok'
8590 # Determine the default libpath from the value encoded in an
8591 # empty executable.
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8595 int
8596 main ()
8600 return 0;
8602 _ACEOF
8603 if ac_fn_c_try_link "$LINENO"; then :
8605 lt_aix_libpath_sed='
8606 /Import File Strings/,/^$/ {
8607 /^0/ {
8608 s/^0 *\(.*\)$/\1/
8609 p
8612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613 # Check for a 64-bit object if we didn't find anything.
8614 if test -z "$aix_libpath"; then
8615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8616 fi
8617 fi
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8623 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8624 else
8625 if test "$host_cpu" = ia64; then
8626 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8627 allow_undefined_flag="-z nodefs"
8628 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"
8629 else
8630 # Determine the default libpath from the value encoded in an
8631 # empty executable.
8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633 /* end confdefs.h. */
8635 int
8636 main ()
8640 return 0;
8642 _ACEOF
8643 if ac_fn_c_try_link "$LINENO"; then :
8645 lt_aix_libpath_sed='
8646 /Import File Strings/,/^$/ {
8647 /^0/ {
8648 s/^0 *\(.*\)$/\1/
8649 p
8652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8653 # Check for a 64-bit object if we didn't find anything.
8654 if test -z "$aix_libpath"; then
8655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8656 fi
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext \
8659 conftest$ac_exeext conftest.$ac_ext
8660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8663 # Warning - without using the other run time loading flags,
8664 # -berok will link without error, but may produce a broken library.
8665 no_undefined_flag=' ${wl}-bernotok'
8666 allow_undefined_flag=' ${wl}-berok'
8667 # Exported symbols can be pulled into shared objects from archives
8668 whole_archive_flag_spec='$convenience'
8669 archive_cmds_need_lc=yes
8670 # This is similar to how AIX traditionally builds its shared libraries.
8671 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8672 fi
8673 fi
8676 amigaos*)
8677 case $host_cpu in
8678 powerpc)
8679 # see comment about AmigaOS4 .so support
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds=''
8683 m68k)
8684 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)'
8685 hardcode_libdir_flag_spec='-L$libdir'
8686 hardcode_minus_L=yes
8688 esac
8691 bsdi[45]*)
8692 export_dynamic_flag_spec=-rdynamic
8695 cygwin* | mingw* | pw32* | cegcc*)
8696 # When not using gcc, we currently assume that we are using
8697 # Microsoft Visual C++.
8698 # hardcode_libdir_flag_spec is actually meaningless, as there is
8699 # no search path for DLLs.
8700 hardcode_libdir_flag_spec=' '
8701 allow_undefined_flag=unsupported
8702 # Tell ltmain to make .lib files, not .a files.
8703 libext=lib
8704 # Tell ltmain to make .dll files, not .so files.
8705 shrext_cmds=".dll"
8706 # FIXME: Setting linknames here is a bad hack.
8707 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8708 # The linker will automatically build a .lib file if we build a DLL.
8709 old_archive_from_new_cmds='true'
8710 # FIXME: Should let the user specify the lib program.
8711 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8712 fix_srcfile_path='`cygpath -w "$srcfile"`'
8713 enable_shared_with_static_runtimes=yes
8716 darwin* | rhapsody*)
8719 archive_cmds_need_lc=no
8720 hardcode_direct=no
8721 hardcode_automatic=yes
8722 hardcode_shlibpath_var=unsupported
8723 whole_archive_flag_spec=''
8724 link_all_deplibs=yes
8725 allow_undefined_flag="$_lt_dar_allow_undefined"
8726 case $cc_basename in
8727 ifort*) _lt_dar_can_shared=yes ;;
8728 *) _lt_dar_can_shared=$GCC ;;
8729 esac
8730 if test "$_lt_dar_can_shared" = "yes"; then
8731 output_verbose_link_cmd=echo
8732 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8733 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8734 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}"
8735 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}"
8737 else
8738 ld_shlibs=no
8739 fi
8743 dgux*)
8744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_libdir_flag_spec='-L$libdir'
8746 hardcode_shlibpath_var=no
8749 freebsd1*)
8750 ld_shlibs=no
8753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8754 # support. Future versions do this automatically, but an explicit c++rt0.o
8755 # does not break anything, and helps significantly (at the cost of a little
8756 # extra space).
8757 freebsd2.2*)
8758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_direct=yes
8761 hardcode_shlibpath_var=no
8764 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8765 freebsd2*)
8766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8767 hardcode_direct=yes
8768 hardcode_minus_L=yes
8769 hardcode_shlibpath_var=no
8772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8773 freebsd* | dragonfly*)
8774 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8775 hardcode_libdir_flag_spec='-R$libdir'
8776 hardcode_direct=yes
8777 hardcode_shlibpath_var=no
8780 hpux9*)
8781 if test "$GCC" = yes; then
8782 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8783 else
8784 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8785 fi
8786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8787 hardcode_libdir_separator=:
8788 hardcode_direct=yes
8790 # hardcode_minus_L: Not really in the search PATH,
8791 # but as the default location of the library.
8792 hardcode_minus_L=yes
8793 export_dynamic_flag_spec='${wl}-E'
8796 hpux10*)
8797 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8799 else
8800 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8801 fi
8802 if test "$with_gnu_ld" = no; then
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_flag_spec_ld='+b $libdir'
8805 hardcode_libdir_separator=:
8806 hardcode_direct=yes
8807 hardcode_direct_absolute=yes
8808 export_dynamic_flag_spec='${wl}-E'
8809 # hardcode_minus_L: Not really in the search PATH,
8810 # but as the default location of the library.
8811 hardcode_minus_L=yes
8812 fi
8815 hpux11*)
8816 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8817 case $host_cpu in
8818 hppa*64*)
8819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8821 ia64*)
8822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8827 esac
8828 else
8829 case $host_cpu in
8830 hppa*64*)
8831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833 ia64*)
8834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8837 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8839 esac
8840 fi
8841 if test "$with_gnu_ld" = no; then
8842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8843 hardcode_libdir_separator=:
8845 case $host_cpu in
8846 hppa*64*|ia64*)
8847 hardcode_direct=no
8848 hardcode_shlibpath_var=no
8851 hardcode_direct=yes
8852 hardcode_direct_absolute=yes
8853 export_dynamic_flag_spec='${wl}-E'
8855 # hardcode_minus_L: Not really in the search PATH,
8856 # but as the default location of the library.
8857 hardcode_minus_L=yes
8859 esac
8860 fi
8863 irix5* | irix6* | nonstopux*)
8864 if test "$GCC" = yes; then
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8866 # Try to use the -exported_symbol ld option, if it does not
8867 # work, assume that -exports_file does not work either and
8868 # implicitly export all symbols.
8869 save_LDFLAGS="$LDFLAGS"
8870 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 int foo(void) {}
8874 _ACEOF
8875 if ac_fn_c_try_link "$LINENO"; then :
8876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext \
8880 conftest$ac_exeext conftest.$ac_ext
8881 LDFLAGS="$save_LDFLAGS"
8882 else
8883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8885 fi
8886 archive_cmds_need_lc='no'
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 hardcode_libdir_separator=:
8889 inherit_rpath=yes
8890 link_all_deplibs=yes
8893 netbsd* | netbsdelf*-gnu)
8894 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8896 else
8897 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8898 fi
8899 hardcode_libdir_flag_spec='-R$libdir'
8900 hardcode_direct=yes
8901 hardcode_shlibpath_var=no
8904 newsos6)
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct=yes
8907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8908 hardcode_libdir_separator=:
8909 hardcode_shlibpath_var=no
8912 *nto* | *qnx*)
8915 openbsd*)
8916 if test -f /usr/libexec/ld.so; then
8917 hardcode_direct=yes
8918 hardcode_shlibpath_var=no
8919 hardcode_direct_absolute=yes
8920 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8921 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8922 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8924 export_dynamic_flag_spec='${wl}-E'
8925 else
8926 case $host_os in
8927 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8929 hardcode_libdir_flag_spec='-R$libdir'
8932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935 esac
8936 fi
8937 else
8938 ld_shlibs=no
8939 fi
8942 os2*)
8943 hardcode_libdir_flag_spec='-L$libdir'
8944 hardcode_minus_L=yes
8945 allow_undefined_flag=unsupported
8946 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8947 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8950 osf3*)
8951 if test "$GCC" = yes; then
8952 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8953 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8954 else
8955 allow_undefined_flag=' -expect_unresolved \*'
8956 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8957 fi
8958 archive_cmds_need_lc='no'
8959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960 hardcode_libdir_separator=:
8963 osf4* | osf5*) # as osf3* with the addition of -msym flag
8964 if test "$GCC" = yes; then
8965 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8966 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8968 else
8969 allow_undefined_flag=' -expect_unresolved \*'
8970 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8971 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~
8972 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8974 # Both c and cxx compiler support -rpath directly
8975 hardcode_libdir_flag_spec='-rpath $libdir'
8976 fi
8977 archive_cmds_need_lc='no'
8978 hardcode_libdir_separator=:
8981 solaris*)
8982 no_undefined_flag=' -z defs'
8983 if test "$GCC" = yes; then
8984 wlarc='${wl}'
8985 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8987 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8988 else
8989 case `$CC -V 2>&1` in
8990 *"Compilers 5.0"*)
8991 wlarc=''
8992 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8994 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8997 wlarc='${wl}'
8998 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9000 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9002 esac
9003 fi
9004 hardcode_libdir_flag_spec='-R$libdir'
9005 hardcode_shlibpath_var=no
9006 case $host_os in
9007 solaris2.[0-5] | solaris2.[0-5].*) ;;
9009 # The compiler driver will combine and reorder linker options,
9010 # but understands `-z linker_flag'. GCC discards it without `$wl',
9011 # but is careful enough not to reorder.
9012 # Supported since Solaris 2.6 (maybe 2.5.1?)
9013 if test "$GCC" = yes; then
9014 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9015 else
9016 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9017 fi
9019 esac
9020 link_all_deplibs=yes
9023 sunos4*)
9024 if test "x$host_vendor" = xsequent; then
9025 # Use $CC to link under sequent, because it throws in some extra .o
9026 # files that make .init and .fini sections work.
9027 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9028 else
9029 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9030 fi
9031 hardcode_libdir_flag_spec='-L$libdir'
9032 hardcode_direct=yes
9033 hardcode_minus_L=yes
9034 hardcode_shlibpath_var=no
9037 sysv4)
9038 case $host_vendor in
9039 sni)
9040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041 hardcode_direct=yes # is this really true???
9043 siemens)
9044 ## LD is ld it makes a PLAMLIB
9045 ## CC just makes a GrossModule.
9046 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9047 reload_cmds='$CC -r -o $output$reload_objs'
9048 hardcode_direct=no
9050 motorola)
9051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9054 esac
9055 runpath_var='LD_RUN_PATH'
9056 hardcode_shlibpath_var=no
9059 sysv4.3*)
9060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061 hardcode_shlibpath_var=no
9062 export_dynamic_flag_spec='-Bexport'
9065 sysv4*MP*)
9066 if test -d /usr/nec; then
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_shlibpath_var=no
9069 runpath_var=LD_RUN_PATH
9070 hardcode_runpath_var=yes
9071 ld_shlibs=yes
9072 fi
9075 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9076 no_undefined_flag='${wl}-z,text'
9077 archive_cmds_need_lc=no
9078 hardcode_shlibpath_var=no
9079 runpath_var='LD_RUN_PATH'
9081 if test "$GCC" = yes; then
9082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084 else
9085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087 fi
9090 sysv5* | sco3.2v5* | sco5v6*)
9091 # Note: We can NOT use -z defs as we might desire, because we do not
9092 # link with -lc, and that would cause any symbols used from libc to
9093 # always be unresolved, which means just about no library would
9094 # ever link correctly. If we're not using GNU ld we use -z text
9095 # though, which does catch some bad symbols but isn't as heavy-handed
9096 # as -z defs.
9097 no_undefined_flag='${wl}-z,text'
9098 allow_undefined_flag='${wl}-z,nodefs'
9099 archive_cmds_need_lc=no
9100 hardcode_shlibpath_var=no
9101 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9102 hardcode_libdir_separator=':'
9103 link_all_deplibs=yes
9104 export_dynamic_flag_spec='${wl}-Bexport'
9105 runpath_var='LD_RUN_PATH'
9107 if test "$GCC" = yes; then
9108 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9110 else
9111 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 fi
9116 uts4*)
9117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_shlibpath_var=no
9123 ld_shlibs=no
9125 esac
9127 if test x$host_vendor = xsni; then
9128 case $host in
9129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9130 export_dynamic_flag_spec='${wl}-Blargedynsym'
9132 esac
9133 fi
9134 fi
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9137 $as_echo "$ld_shlibs" >&6; }
9138 test "$ld_shlibs" = no && can_build_shared=no
9140 with_gnu_ld=$with_gnu_ld
9157 # Do we need to explicitly link libc?
9159 case "x$archive_cmds_need_lc" in
9160 x|xyes)
9161 # Assume -lc should be added
9162 archive_cmds_need_lc=yes
9164 if test "$enable_shared" = yes && test "$GCC" = yes; then
9165 case $archive_cmds in
9167 # FIXME: we may have to deal with multi-command sequences.
9169 '$CC '*)
9170 # Test whether the compiler implicitly links with -lc since on some
9171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9172 # to ld, don't add -lc before -lgcc.
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9174 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9175 $RM conftest*
9176 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9179 (eval $ac_compile) 2>&5
9180 ac_status=$?
9181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9182 test $ac_status = 0; } 2>conftest.err; then
9183 soname=conftest
9184 lib=conftest
9185 libobjs=conftest.$ac_objext
9186 deplibs=
9187 wl=$lt_prog_compiler_wl
9188 pic_flag=$lt_prog_compiler_pic
9189 compiler_flags=-v
9190 linker_flags=-v
9191 verstring=
9192 output_objdir=.
9193 libname=conftest
9194 lt_save_allow_undefined_flag=$allow_undefined_flag
9195 allow_undefined_flag=
9196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9197 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9198 ac_status=$?
9199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9200 test $ac_status = 0; }
9201 then
9202 archive_cmds_need_lc=no
9203 else
9204 archive_cmds_need_lc=yes
9205 fi
9206 allow_undefined_flag=$lt_save_allow_undefined_flag
9207 else
9208 cat conftest.err 1>&5
9209 fi
9210 $RM conftest*
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9212 $as_echo "$archive_cmds_need_lc" >&6; }
9214 esac
9215 fi
9217 esac
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9378 if test "$GCC" = yes; then
9379 case $host_os in
9380 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9381 *) lt_awk_arg="/^libraries:/" ;;
9382 esac
9383 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9384 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9385 # if the path contains ";" then we assume it to be the separator
9386 # otherwise default to the standard path separator (i.e. ":") - it is
9387 # assumed that no part of a normal pathname contains ";" but that should
9388 # okay in the real world where ";" in dirpaths is itself problematic.
9389 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9390 else
9391 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9392 fi
9393 # Ok, now we have the path, separated by spaces, we can step through it
9394 # and add multilib dir if necessary.
9395 lt_tmp_lt_search_path_spec=
9396 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9397 for lt_sys_path in $lt_search_path_spec; do
9398 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9399 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9400 else
9401 test -d "$lt_sys_path" && \
9402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9403 fi
9404 done
9405 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9406 BEGIN {RS=" "; FS="/|\n";} {
9407 lt_foo="";
9408 lt_count=0;
9409 for (lt_i = NF; lt_i > 0; lt_i--) {
9410 if ($lt_i != "" && $lt_i != ".") {
9411 if ($lt_i == "..") {
9412 lt_count++;
9413 } else {
9414 if (lt_count == 0) {
9415 lt_foo="/" $lt_i lt_foo;
9416 } else {
9417 lt_count--;
9422 if (lt_foo != "") { lt_freq[lt_foo]++; }
9423 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9425 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9426 else
9427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9428 fi
9429 library_names_spec=
9430 libname_spec='lib$name'
9431 soname_spec=
9432 shrext_cmds=".so"
9433 postinstall_cmds=
9434 postuninstall_cmds=
9435 finish_cmds=
9436 finish_eval=
9437 shlibpath_var=
9438 shlibpath_overrides_runpath=unknown
9439 version_type=none
9440 dynamic_linker="$host_os ld.so"
9441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9442 need_lib_prefix=unknown
9443 hardcode_into_libs=no
9445 # when you set need_version to no, make sure it does not cause -set_version
9446 # flags to be left without arguments
9447 need_version=unknown
9449 case $host_os in
9450 aix3*)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9453 shlibpath_var=LIBPATH
9455 # AIX 3 has no versioning support, so we append a major version to the name.
9456 soname_spec='${libname}${release}${shared_ext}$major'
9459 aix[4-9]*)
9460 version_type=linux
9461 need_lib_prefix=no
9462 need_version=no
9463 hardcode_into_libs=yes
9464 if test "$host_cpu" = ia64; then
9465 # AIX 5 supports IA64
9466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 else
9469 # With GCC up to 2.95.x, collect2 would create an import file
9470 # for dependence libraries. The import file would start with
9471 # the line `#! .'. This would cause the generated library to
9472 # depend on `.', always an invalid library. This was fixed in
9473 # development snapshots of GCC prior to 3.0.
9474 case $host_os in
9475 aix4 | aix4.[01] | aix4.[01].*)
9476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9477 echo ' yes '
9478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9479 :
9480 else
9481 can_build_shared=no
9482 fi
9484 esac
9485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9486 # soname into executable. Probably we can add versioning support to
9487 # collect2, so additional links can be useful in future.
9488 if test "$aix_use_runtimelinking" = yes; then
9489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9490 # instead of lib<name>.a to let people know that these are not
9491 # typical AIX shared libraries.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 else
9494 # We preserve .a as extension for shared libraries through AIX4.2
9495 # and later when we are not doing run time linking.
9496 library_names_spec='${libname}${release}.a $libname.a'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 fi
9499 shlibpath_var=LIBPATH
9500 fi
9503 amigaos*)
9504 case $host_cpu in
9505 powerpc)
9506 # Since July 2007 AmigaOS4 officially supports .so libraries.
9507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9510 m68k)
9511 library_names_spec='$libname.ixlibrary $libname.a'
9512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9513 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
9515 esac
9518 beos*)
9519 library_names_spec='${libname}${shared_ext}'
9520 dynamic_linker="$host_os ld.so"
9521 shlibpath_var=LIBRARY_PATH
9524 bsdi[45]*)
9525 version_type=linux
9526 need_version=no
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 soname_spec='${libname}${release}${shared_ext}$major'
9529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9530 shlibpath_var=LD_LIBRARY_PATH
9531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9533 # the default ld.so.conf also contains /usr/contrib/lib and
9534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9535 # libtool to hard-code these into programs
9538 cygwin* | mingw* | pw32* | cegcc*)
9539 version_type=windows
9540 shrext_cmds=".dll"
9541 need_version=no
9542 need_lib_prefix=no
9544 case $GCC,$host_os in
9545 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9546 library_names_spec='$libname.dll.a'
9547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9548 postinstall_cmds='base_file=`basename \${file}`~
9549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9550 dldir=$destdir/`dirname \$dlpath`~
9551 test -d \$dldir || mkdir -p \$dldir~
9552 $install_prog $dir/$dlname \$dldir/$dlname~
9553 chmod a+x \$dldir/$dlname~
9554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9556 fi'
9557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9558 dlpath=$dir/\$dldll~
9559 $RM \$dlpath'
9560 shlibpath_overrides_runpath=yes
9562 case $host_os in
9563 cygwin*)
9564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9568 mingw* | cegcc*)
9569 # MinGW DLLs use traditional 'lib' prefix
9570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9571 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9572 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9573 # It is most probably a Windows format PATH printed by
9574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9575 # path with ; separators, and with drive letters. We can handle the
9576 # drive letters (cygwin fileutils understands them), so leave them,
9577 # especially as we might pass files found there to a mingw objdump,
9578 # which wouldn't understand a cygwinified path. Ahh.
9579 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9580 else
9581 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9582 fi
9584 pw32*)
9585 # pw32 DLLs use 'pw' prefix rather than 'lib'
9586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9588 esac
9592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9594 esac
9595 dynamic_linker='Win32 ld.exe'
9596 # FIXME: first we should search . and the directory the executable is in
9597 shlibpath_var=PATH
9600 darwin* | rhapsody*)
9601 dynamic_linker="$host_os dyld"
9602 version_type=darwin
9603 need_lib_prefix=no
9604 need_version=no
9605 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9606 soname_spec='${libname}${release}${major}$shared_ext'
9607 shlibpath_overrides_runpath=yes
9608 shlibpath_var=DYLD_LIBRARY_PATH
9609 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9611 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9615 dgux*)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9624 freebsd1*)
9625 dynamic_linker=no
9628 freebsd* | dragonfly*)
9629 # DragonFly does not have aout. When/if they implement a new
9630 # versioning mechanism, adjust this.
9631 if test -x /usr/bin/objformat; then
9632 objformat=`/usr/bin/objformat`
9633 else
9634 case $host_os in
9635 freebsd[123]*) objformat=aout ;;
9636 *) objformat=elf ;;
9637 esac
9638 fi
9639 version_type=freebsd-$objformat
9640 case $version_type in
9641 freebsd-elf*)
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9643 need_version=no
9644 need_lib_prefix=no
9646 freebsd-*)
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9648 need_version=yes
9650 esac
9651 shlibpath_var=LD_LIBRARY_PATH
9652 case $host_os in
9653 freebsd2*)
9654 shlibpath_overrides_runpath=yes
9656 freebsd3.[01]* | freebsdelf3.[01]*)
9657 shlibpath_overrides_runpath=yes
9658 hardcode_into_libs=yes
9660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9662 shlibpath_overrides_runpath=no
9663 hardcode_into_libs=yes
9665 *) # from 4.6 on, and DragonFly
9666 shlibpath_overrides_runpath=yes
9667 hardcode_into_libs=yes
9669 esac
9672 gnu*)
9673 version_type=linux
9674 need_lib_prefix=no
9675 need_version=no
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 shlibpath_var=LD_LIBRARY_PATH
9679 hardcode_into_libs=yes
9682 hpux9* | hpux10* | hpux11*)
9683 # Give a soname corresponding to the major version so that dld.sl refuses to
9684 # link against other versions.
9685 version_type=sunos
9686 need_lib_prefix=no
9687 need_version=no
9688 case $host_cpu in
9689 ia64*)
9690 shrext_cmds='.so'
9691 hardcode_into_libs=yes
9692 dynamic_linker="$host_os dld.so"
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 if test "X$HPUX_IA64_MODE" = X32; then
9698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9699 else
9700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9701 fi
9702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9704 hppa*64*)
9705 shrext_cmds='.sl'
9706 hardcode_into_libs=yes
9707 dynamic_linker="$host_os dld.sl"
9708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9716 shrext_cmds='.sl'
9717 dynamic_linker="$host_os dld.sl"
9718 shlibpath_var=SHLIB_PATH
9719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9721 soname_spec='${libname}${release}${shared_ext}$major'
9723 esac
9724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9725 postinstall_cmds='chmod 555 $lib'
9728 interix[3-9]*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9733 soname_spec='${libname}${release}${shared_ext}$major'
9734 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 shlibpath_overrides_runpath=no
9737 hardcode_into_libs=yes
9740 irix5* | irix6* | nonstopux*)
9741 case $host_os in
9742 nonstopux*) version_type=nonstopux ;;
9744 if test "$lt_cv_prog_gnu_ld" = yes; then
9745 version_type=linux
9746 else
9747 version_type=irix
9748 fi ;;
9749 esac
9750 need_lib_prefix=no
9751 need_version=no
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9754 case $host_os in
9755 irix5* | nonstopux*)
9756 libsuff= shlibsuff=
9759 case $LD in # libtool.m4 will add one of these switches to LD
9760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9761 libsuff= shlibsuff= libmagic=32-bit;;
9762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9763 libsuff=32 shlibsuff=N32 libmagic=N32;;
9764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9766 *) libsuff= shlibsuff= libmagic=never-match;;
9767 esac
9769 esac
9770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9771 shlibpath_overrides_runpath=no
9772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9774 hardcode_into_libs=yes
9777 # No shared lib support for Linux oldld, aout, or coff.
9778 linux*oldld* | linux*aout* | linux*coff*)
9779 dynamic_linker=no
9782 # This must be Linux ELF.
9783 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9784 version_type=linux
9785 need_lib_prefix=no
9786 need_version=no
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=no
9792 # Some binutils ld are patched to set DT_RUNPATH
9793 save_LDFLAGS=$LDFLAGS
9794 save_libdir=$libdir
9795 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9796 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9800 int
9801 main ()
9805 return 0;
9807 _ACEOF
9808 if ac_fn_c_try_link "$LINENO"; then :
9809 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9810 shlibpath_overrides_runpath=yes
9811 fi
9812 fi
9813 rm -f core conftest.err conftest.$ac_objext \
9814 conftest$ac_exeext conftest.$ac_ext
9815 LDFLAGS=$save_LDFLAGS
9816 libdir=$save_libdir
9818 # This implies no fast_install, which is unacceptable.
9819 # Some rework will be needed to allow for fast_install
9820 # before this can be enabled.
9821 hardcode_into_libs=yes
9823 # Append ld.so.conf contents to the search path
9824 if test -f /etc/ld.so.conf; then
9825 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;/^$/d' | tr '\n' ' '`
9826 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9827 fi
9829 # We used to test for /lib/ld.so.1 and disable shared libraries on
9830 # powerpc, because MkLinux only supported shared libraries with the
9831 # GNU dynamic linker. Since this was broken with cross compilers,
9832 # most powerpc-linux boxes support dynamic linking these days and
9833 # people can always --disable-shared, the test was removed, and we
9834 # assume the GNU/Linux dynamic linker is in use.
9835 dynamic_linker='GNU/Linux ld.so'
9838 netbsdelf*-gnu)
9839 version_type=linux
9840 need_lib_prefix=no
9841 need_version=no
9842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9843 soname_spec='${libname}${release}${shared_ext}$major'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=no
9846 hardcode_into_libs=yes
9847 dynamic_linker='NetBSD ld.elf_so'
9850 netbsd*)
9851 version_type=sunos
9852 need_lib_prefix=no
9853 need_version=no
9854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9857 dynamic_linker='NetBSD (a.out) ld.so'
9858 else
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 dynamic_linker='NetBSD ld.elf_so'
9862 fi
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=yes
9865 hardcode_into_libs=yes
9868 newsos6)
9869 version_type=linux
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871 shlibpath_var=LD_LIBRARY_PATH
9872 shlibpath_overrides_runpath=yes
9875 *nto* | *qnx*)
9876 version_type=qnx
9877 need_lib_prefix=no
9878 need_version=no
9879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 shlibpath_var=LD_LIBRARY_PATH
9882 shlibpath_overrides_runpath=no
9883 hardcode_into_libs=yes
9884 dynamic_linker='ldqnx.so'
9887 openbsd*)
9888 version_type=sunos
9889 sys_lib_dlsearch_path_spec="/usr/lib"
9890 need_lib_prefix=no
9891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9892 case $host_os in
9893 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9894 *) need_version=no ;;
9895 esac
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9900 case $host_os in
9901 openbsd2.[89] | openbsd2.[89].*)
9902 shlibpath_overrides_runpath=no
9905 shlibpath_overrides_runpath=yes
9907 esac
9908 else
9909 shlibpath_overrides_runpath=yes
9910 fi
9913 os2*)
9914 libname_spec='$name'
9915 shrext_cmds=".dll"
9916 need_lib_prefix=no
9917 library_names_spec='$libname${shared_ext} $libname.a'
9918 dynamic_linker='OS/2 ld.exe'
9919 shlibpath_var=LIBPATH
9922 osf3* | osf4* | osf5*)
9923 version_type=osf
9924 need_lib_prefix=no
9925 need_version=no
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9933 rdos*)
9934 dynamic_linker=no
9937 solaris*)
9938 version_type=linux
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 soname_spec='${libname}${release}${shared_ext}$major'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes
9945 hardcode_into_libs=yes
9946 # ldd complains unless libraries are executable
9947 postinstall_cmds='chmod +x $lib'
9950 sunos4*)
9951 version_type=sunos
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9954 shlibpath_var=LD_LIBRARY_PATH
9955 shlibpath_overrides_runpath=yes
9956 if test "$with_gnu_ld" = yes; then
9957 need_lib_prefix=no
9958 fi
9959 need_version=yes
9962 sysv4 | sysv4.3*)
9963 version_type=linux
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 shlibpath_var=LD_LIBRARY_PATH
9967 case $host_vendor in
9968 sni)
9969 shlibpath_overrides_runpath=no
9970 need_lib_prefix=no
9971 runpath_var=LD_RUN_PATH
9973 siemens)
9974 need_lib_prefix=no
9976 motorola)
9977 need_lib_prefix=no
9978 need_version=no
9979 shlibpath_overrides_runpath=no
9980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9982 esac
9985 sysv4*MP*)
9986 if test -d /usr/nec ;then
9987 version_type=linux
9988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9989 soname_spec='$libname${shared_ext}.$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 fi
9994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9995 version_type=freebsd-elf
9996 need_lib_prefix=no
9997 need_version=no
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 shlibpath_var=LD_LIBRARY_PATH
10001 shlibpath_overrides_runpath=yes
10002 hardcode_into_libs=yes
10003 if test "$with_gnu_ld" = yes; then
10004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10005 else
10006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10007 case $host_os in
10008 sco3.2v5*)
10009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10011 esac
10012 fi
10013 sys_lib_dlsearch_path_spec='/usr/lib'
10016 tpf*)
10017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10018 version_type=linux
10019 need_lib_prefix=no
10020 need_version=no
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=no
10024 hardcode_into_libs=yes
10027 uts4*)
10028 version_type=linux
10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10030 soname_spec='${libname}${release}${shared_ext}$major'
10031 shlibpath_var=LD_LIBRARY_PATH
10035 dynamic_linker=no
10037 esac
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10039 $as_echo "$dynamic_linker" >&6; }
10040 test "$dynamic_linker" = no && can_build_shared=no
10042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10043 if test "$GCC" = yes; then
10044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10045 fi
10047 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10048 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10049 fi
10050 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10051 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10052 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10141 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10142 hardcode_action=
10143 if test -n "$hardcode_libdir_flag_spec" ||
10144 test -n "$runpath_var" ||
10145 test "X$hardcode_automatic" = "Xyes" ; then
10147 # We can hardcode non-existent directories.
10148 if test "$hardcode_direct" != no &&
10149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10150 # have to relink, otherwise we might link with an installed library
10151 # when we should be linking with a yet-to-be-installed one
10152 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10153 test "$hardcode_minus_L" != no; then
10154 # Linking always hardcodes the temporary library directory.
10155 hardcode_action=relink
10156 else
10157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10158 hardcode_action=immediate
10159 fi
10160 else
10161 # We cannot hardcode anything, or else we can only hardcode existing
10162 # directories.
10163 hardcode_action=unsupported
10164 fi
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10166 $as_echo "$hardcode_action" >&6; }
10168 if test "$hardcode_action" = relink ||
10169 test "$inherit_rpath" = yes; then
10170 # Fast installation is not supported
10171 enable_fast_install=no
10172 elif test "$shlibpath_overrides_runpath" = yes ||
10173 test "$enable_shared" = no; then
10174 # Fast installation is not necessary
10175 enable_fast_install=needless
10176 fi
10183 if test "x$enable_dlopen" != xyes; then
10184 enable_dlopen=unknown
10185 enable_dlopen_self=unknown
10186 enable_dlopen_self_static=unknown
10187 else
10188 lt_cv_dlopen=no
10189 lt_cv_dlopen_libs=
10191 case $host_os in
10192 beos*)
10193 lt_cv_dlopen="load_add_on"
10194 lt_cv_dlopen_libs=
10195 lt_cv_dlopen_self=yes
10198 mingw* | pw32* | cegcc*)
10199 lt_cv_dlopen="LoadLibrary"
10200 lt_cv_dlopen_libs=
10203 cygwin*)
10204 lt_cv_dlopen="dlopen"
10205 lt_cv_dlopen_libs=
10208 darwin*)
10209 # if libdl is installed we need to link against it
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10211 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-ldl $LIBS"
10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10218 /* end confdefs.h. */
10220 /* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
10223 #ifdef __cplusplus
10224 extern "C"
10225 #endif
10226 char dlopen ();
10227 int
10228 main ()
10230 return dlopen ();
10232 return 0;
10234 _ACEOF
10235 if ac_fn_c_try_link "$LINENO"; then :
10236 ac_cv_lib_dl_dlopen=yes
10237 else
10238 ac_cv_lib_dl_dlopen=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10243 fi
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10245 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10246 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10247 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10248 else
10250 lt_cv_dlopen="dyld"
10251 lt_cv_dlopen_libs=
10252 lt_cv_dlopen_self=yes
10254 fi
10259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10260 if test "x$ac_cv_func_shl_load" = x""yes; then :
10261 lt_cv_dlopen="shl_load"
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10264 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10265 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10267 else
10268 ac_check_lib_save_LIBS=$LIBS
10269 LIBS="-ldld $LIBS"
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276 #ifdef __cplusplus
10277 extern "C"
10278 #endif
10279 char shl_load ();
10280 int
10281 main ()
10283 return shl_load ();
10285 return 0;
10287 _ACEOF
10288 if ac_fn_c_try_link "$LINENO"; then :
10289 ac_cv_lib_dld_shl_load=yes
10290 else
10291 ac_cv_lib_dld_shl_load=no
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295 LIBS=$ac_check_lib_save_LIBS
10296 fi
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10298 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10299 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10300 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10301 else
10302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10303 if test "x$ac_cv_func_dlopen" = x""yes; then :
10304 lt_cv_dlopen="dlopen"
10305 else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10307 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10308 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 ac_check_lib_save_LIBS=$LIBS
10312 LIBS="-ldl $LIBS"
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10316 /* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319 #ifdef __cplusplus
10320 extern "C"
10321 #endif
10322 char dlopen ();
10323 int
10324 main ()
10326 return dlopen ();
10328 return 0;
10330 _ACEOF
10331 if ac_fn_c_try_link "$LINENO"; then :
10332 ac_cv_lib_dl_dlopen=yes
10333 else
10334 ac_cv_lib_dl_dlopen=no
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10342 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10346 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10347 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-lsvld $LIBS"
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10355 /* Override any GCC internal prototype to avoid an error.
10356 Use char because int might match the return type of a GCC
10357 builtin and then its argument prototype would still apply. */
10358 #ifdef __cplusplus
10359 extern "C"
10360 #endif
10361 char dlopen ();
10362 int
10363 main ()
10365 return dlopen ();
10367 return 0;
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"; then :
10371 ac_cv_lib_svld_dlopen=yes
10372 else
10373 ac_cv_lib_svld_dlopen=no
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext \
10376 conftest$ac_exeext conftest.$ac_ext
10377 LIBS=$ac_check_lib_save_LIBS
10378 fi
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10380 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10381 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10385 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10386 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 ac_check_lib_save_LIBS=$LIBS
10390 LIBS="-ldld $LIBS"
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10394 /* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
10397 #ifdef __cplusplus
10398 extern "C"
10399 #endif
10400 char dld_link ();
10401 int
10402 main ()
10404 return dld_link ();
10406 return 0;
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"; then :
10410 ac_cv_lib_dld_dld_link=yes
10411 else
10412 ac_cv_lib_dld_dld_link=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10416 LIBS=$ac_check_lib_save_LIBS
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10419 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10420 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10421 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10422 fi
10425 fi
10428 fi
10431 fi
10434 fi
10437 fi
10440 esac
10442 if test "x$lt_cv_dlopen" != xno; then
10443 enable_dlopen=yes
10444 else
10445 enable_dlopen=no
10446 fi
10448 case $lt_cv_dlopen in
10449 dlopen)
10450 save_CPPFLAGS="$CPPFLAGS"
10451 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10453 save_LDFLAGS="$LDFLAGS"
10454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10456 save_LIBS="$LIBS"
10457 LIBS="$lt_cv_dlopen_libs $LIBS"
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10460 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10461 if test "${lt_cv_dlopen_self+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 if test "$cross_compiling" = yes; then :
10465 lt_cv_dlopen_self=cross
10466 else
10467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10468 lt_status=$lt_dlunknown
10469 cat > conftest.$ac_ext <<_LT_EOF
10470 #line 10470 "configure"
10471 #include "confdefs.h"
10473 #if HAVE_DLFCN_H
10474 #include <dlfcn.h>
10475 #endif
10477 #include <stdio.h>
10479 #ifdef RTLD_GLOBAL
10480 # define LT_DLGLOBAL RTLD_GLOBAL
10481 #else
10482 # ifdef DL_GLOBAL
10483 # define LT_DLGLOBAL DL_GLOBAL
10484 # else
10485 # define LT_DLGLOBAL 0
10486 # endif
10487 #endif
10489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10490 find out it does not work in some platform. */
10491 #ifndef LT_DLLAZY_OR_NOW
10492 # ifdef RTLD_LAZY
10493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10494 # else
10495 # ifdef DL_LAZY
10496 # define LT_DLLAZY_OR_NOW DL_LAZY
10497 # else
10498 # ifdef RTLD_NOW
10499 # define LT_DLLAZY_OR_NOW RTLD_NOW
10500 # else
10501 # ifdef DL_NOW
10502 # define LT_DLLAZY_OR_NOW DL_NOW
10503 # else
10504 # define LT_DLLAZY_OR_NOW 0
10505 # endif
10506 # endif
10507 # endif
10508 # endif
10509 #endif
10511 void fnord() { int i=42;}
10512 int main ()
10514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10515 int status = $lt_dlunknown;
10517 if (self)
10519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10521 /* dlclose (self); */
10523 else
10524 puts (dlerror ());
10526 return status;
10528 _LT_EOF
10529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10530 (eval $ac_link) 2>&5
10531 ac_status=$?
10532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10533 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10534 (./conftest; exit; ) >&5 2>/dev/null
10535 lt_status=$?
10536 case x$lt_status in
10537 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10538 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10539 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10540 esac
10541 else :
10542 # compilation failed
10543 lt_cv_dlopen_self=no
10544 fi
10545 fi
10546 rm -fr conftest*
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10551 $as_echo "$lt_cv_dlopen_self" >&6; }
10553 if test "x$lt_cv_dlopen_self" = xyes; then
10554 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10556 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10557 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10558 $as_echo_n "(cached) " >&6
10559 else
10560 if test "$cross_compiling" = yes; then :
10561 lt_cv_dlopen_self_static=cross
10562 else
10563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10564 lt_status=$lt_dlunknown
10565 cat > conftest.$ac_ext <<_LT_EOF
10566 #line 10566 "configure"
10567 #include "confdefs.h"
10569 #if HAVE_DLFCN_H
10570 #include <dlfcn.h>
10571 #endif
10573 #include <stdio.h>
10575 #ifdef RTLD_GLOBAL
10576 # define LT_DLGLOBAL RTLD_GLOBAL
10577 #else
10578 # ifdef DL_GLOBAL
10579 # define LT_DLGLOBAL DL_GLOBAL
10580 # else
10581 # define LT_DLGLOBAL 0
10582 # endif
10583 #endif
10585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10586 find out it does not work in some platform. */
10587 #ifndef LT_DLLAZY_OR_NOW
10588 # ifdef RTLD_LAZY
10589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10590 # else
10591 # ifdef DL_LAZY
10592 # define LT_DLLAZY_OR_NOW DL_LAZY
10593 # else
10594 # ifdef RTLD_NOW
10595 # define LT_DLLAZY_OR_NOW RTLD_NOW
10596 # else
10597 # ifdef DL_NOW
10598 # define LT_DLLAZY_OR_NOW DL_NOW
10599 # else
10600 # define LT_DLLAZY_OR_NOW 0
10601 # endif
10602 # endif
10603 # endif
10604 # endif
10605 #endif
10607 void fnord() { int i=42;}
10608 int main ()
10610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10611 int status = $lt_dlunknown;
10613 if (self)
10615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10616 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10617 /* dlclose (self); */
10619 else
10620 puts (dlerror ());
10622 return status;
10624 _LT_EOF
10625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10626 (eval $ac_link) 2>&5
10627 ac_status=$?
10628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10630 (./conftest; exit; ) >&5 2>/dev/null
10631 lt_status=$?
10632 case x$lt_status in
10633 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10634 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10635 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10636 esac
10637 else :
10638 # compilation failed
10639 lt_cv_dlopen_self_static=no
10640 fi
10641 fi
10642 rm -fr conftest*
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10647 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10648 fi
10650 CPPFLAGS="$save_CPPFLAGS"
10651 LDFLAGS="$save_LDFLAGS"
10652 LIBS="$save_LIBS"
10654 esac
10656 case $lt_cv_dlopen_self in
10657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10658 *) enable_dlopen_self=unknown ;;
10659 esac
10661 case $lt_cv_dlopen_self_static in
10662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10663 *) enable_dlopen_self_static=unknown ;;
10664 esac
10665 fi
10683 striplib=
10684 old_striplib=
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10686 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10687 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10689 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; }
10692 else
10693 # FIXME - insert some real tests, host_os isn't really good enough
10694 case $host_os in
10695 darwin*)
10696 if test -n "$STRIP" ; then
10697 striplib="$STRIP -x"
10698 old_striplib="$STRIP -S"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10700 $as_echo "yes" >&6; }
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 fi
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10708 $as_echo "no" >&6; }
10710 esac
10711 fi
10724 # Report which library types will actually be built
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10726 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10728 $as_echo "$can_build_shared" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10731 $as_echo_n "checking whether to build shared libraries... " >&6; }
10732 test "$can_build_shared" = "no" && enable_shared=no
10734 # On AIX, shared libraries and static libraries use the same namespace, and
10735 # are all built from PIC.
10736 case $host_os in
10737 aix3*)
10738 test "$enable_shared" = yes && enable_static=no
10739 if test -n "$RANLIB"; then
10740 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10741 postinstall_cmds='$RANLIB $lib'
10742 fi
10745 aix[4-9]*)
10746 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10747 test "$enable_shared" = yes && enable_static=no
10748 fi
10750 esac
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10752 $as_echo "$enable_shared" >&6; }
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10755 $as_echo_n "checking whether to build static libraries... " >&6; }
10756 # Make sure either enable_shared or enable_static is yes.
10757 test "$enable_shared" = yes || enable_static=yes
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10759 $as_echo "$enable_static" >&6; }
10764 fi
10765 ac_ext=c
10766 ac_cpp='$CPP $CPPFLAGS'
10767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10771 CC="$lt_save_CC"
10785 ac_config_commands="$ac_config_commands libtool"
10790 # Only expand once:
10795 # Check whether --with-kernel was given.
10796 if test "${with_kernel+set}" = set; then :
10797 withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
10798 fi
10801 # Check whether --with-kbuild was given.
10802 if test "${with_kbuild+set}" = set; then :
10803 withval=$with_kbuild; kbuilddir="$withval"
10804 fi
10807 # Check whether --with-ksource was given.
10808 if test "${with_ksource+set}" = set; then :
10809 withval=$with_ksource; ksourcedir="$withval"
10810 fi
10813 # Check whether --with-xtlibdir was given.
10814 if test "${with_xtlibdir+set}" = set; then :
10815 withval=$with_xtlibdir; xtlibdir="$withval"
10816 else
10817 xtlibdir="${libdir}/xtables"
10818 fi
10820 # Check whether --enable-ipv4 was given.
10821 if test "${enable_ipv4+set}" = set; then :
10822 enableval=$enable_ipv4; enable_ipv4="$enableval"
10823 else
10824 enable_ipv4="yes"
10825 fi
10827 # Check whether --enable-ipv6 was given.
10828 if test "${enable_ipv6+set}" = set; then :
10829 enableval=$enable_ipv6; enable_ipv6="$enableval"
10830 else
10831 enable_ipv6="yes"
10832 fi
10834 # Check whether --enable-largefile was given.
10835 if test "${enable_largefile+set}" = set; then :
10836 enableval=$enable_largefile; enable_largefile="$enableval"
10837 else
10838 enable_largefile="yes";
10839 largefile_cppflags='-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64'
10840 fi
10842 # Check whether --enable-devel was given.
10843 if test "${enable_devel+set}" = set; then :
10844 enableval=$enable_devel; enable_devel="$enableval"
10845 else
10846 enable_devel="yes"
10847 fi
10849 # Check whether --enable-libipq was given.
10850 if test "${enable_libipq+set}" = set; then :
10851 enableval=$enable_libipq;
10852 fi
10855 # Check whether --with-pkgconfigdir was given.
10856 if test "${with_pkgconfigdir+set}" = set; then :
10857 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
10858 else
10859 pkgconfigdir='${libdir}/pkgconfig'
10860 fi
10863 libiptc_LDFLAGS2="";
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
10865 $as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
10866 if test "${ax_cv_linker_flags__Wl___no_as_needed+set}" = set; then :
10867 $as_echo_n "(cached) " >&6
10868 else
10870 ax_save_FLAGS=$LDFLAGS
10871 LDFLAGS="-Wl,--no-as-needed"
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10875 int
10876 main ()
10880 return 0;
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ax_cv_linker_flags__Wl___no_as_needed=yes
10885 else
10886 ax_cv_linker_flags__Wl___no_as_needed=no
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LDFLAGS=$ax_save_FLAGS
10891 fi
10893 eval ax_check_linker_flags=$ax_cv_linker_flags__Wl___no_as_needed
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_linker_flags" >&5
10895 $as_echo "$ax_check_linker_flags" >&6; }
10896 if test "x$ax_check_linker_flags" = xyes; then
10897 libiptc_LDFLAGS2="-Wl,--no-as-needed"
10898 else
10899 :
10900 fi
10904 blacklist_modules="";
10906 for ac_header in linux/dccp.h linux/ip_vs.h linux/magic.h linux/proc_fs.h
10907 do :
10908 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10909 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10911 cat >>confdefs.h <<_ACEOF
10912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10913 _ACEOF
10915 fi
10917 done
10919 if test "$ac_cv_header_linux_dccp_h" != "yes"; then
10920 blacklist_modules="$blacklist_modules dccp";
10921 fi;
10922 if test "$ac_cv_header_linux_ip_vs_h" != "yes"; then
10923 blacklist_modules="$blacklist_modules ipvs";
10924 fi;
10927 # The cast to long int works around a bug in the HP C Compiler
10928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10930 # This bug is HP SR number 8606223364.
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct ip6_hdr" >&5
10932 $as_echo_n "checking size of struct ip6_hdr... " >&6; }
10933 if test "${ac_cv_sizeof_struct_ip6_hdr+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (struct ip6_hdr))" "ac_cv_sizeof_struct_ip6_hdr" "#include <netinet/ip6.h>
10937 "; then :
10939 else
10940 if test "$ac_cv_type_struct_ip6_hdr" = yes; then
10941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10943 as_fn_error 77 "cannot compute sizeof (struct ip6_hdr)
10944 See \`config.log' for more details" "$LINENO" 5 ; }
10945 else
10946 ac_cv_sizeof_struct_ip6_hdr=0
10947 fi
10948 fi
10950 fi
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_ip6_hdr" >&5
10952 $as_echo "$ac_cv_sizeof_struct_ip6_hdr" >&6; }
10956 cat >>confdefs.h <<_ACEOF
10957 #define SIZEOF_STRUCT_IP6_HDR $ac_cv_sizeof_struct_ip6_hdr
10958 _ACEOF
10962 if test "$enable_static" = "yes"; then
10963 ENABLE_STATIC_TRUE=
10964 ENABLE_STATIC_FALSE='#'
10965 else
10966 ENABLE_STATIC_TRUE='#'
10967 ENABLE_STATIC_FALSE=
10968 fi
10970 if test "$enable_shared" = "yes"; then
10971 ENABLE_SHARED_TRUE=
10972 ENABLE_SHARED_FALSE='#'
10973 else
10974 ENABLE_SHARED_TRUE='#'
10975 ENABLE_SHARED_FALSE=
10976 fi
10978 if test "$enable_ipv4" = "yes"; then
10979 ENABLE_IPV4_TRUE=
10980 ENABLE_IPV4_FALSE='#'
10981 else
10982 ENABLE_IPV4_TRUE='#'
10983 ENABLE_IPV4_FALSE=
10984 fi
10986 if test "$enable_ipv6" = "yes"; then
10987 ENABLE_IPV6_TRUE=
10988 ENABLE_IPV6_FALSE='#'
10989 else
10990 ENABLE_IPV6_TRUE='#'
10991 ENABLE_IPV6_FALSE=
10992 fi
10994 if test "$enable_largefile" = "yes"; then
10995 ENABLE_LARGEFILE_TRUE=
10996 ENABLE_LARGEFILE_FALSE='#'
10997 else
10998 ENABLE_LARGEFILE_TRUE='#'
10999 ENABLE_LARGEFILE_FALSE=
11000 fi
11002 if test "$enable_devel" = "yes"; then
11003 ENABLE_DEVEL_TRUE=
11004 ENABLE_DEVEL_FALSE='#'
11005 else
11006 ENABLE_DEVEL_TRUE='#'
11007 ENABLE_DEVEL_FALSE=
11008 fi
11010 if test "$enable_libipq" = "yes"; then
11011 ENABLE_LIBIPQ_TRUE=
11012 ENABLE_LIBIPQ_FALSE='#'
11013 else
11014 ENABLE_LIBIPQ_TRUE='#'
11015 ENABLE_LIBIPQ_FALSE=
11016 fi
11025 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11026 if test -n "$ac_tool_prefix"; then
11027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11028 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11030 $as_echo_n "checking for $ac_word... " >&6; }
11031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11032 $as_echo_n "(cached) " >&6
11033 else
11034 case $PKG_CONFIG in
11035 [\\/]* | ?:[\\/]*)
11036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11041 do
11042 IFS=$as_save_IFS
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11048 break 2
11049 fi
11050 done
11051 done
11052 IFS=$as_save_IFS
11055 esac
11056 fi
11057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11058 if test -n "$PKG_CONFIG"; then
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11060 $as_echo "$PKG_CONFIG" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11064 fi
11067 fi
11068 if test -z "$ac_cv_path_PKG_CONFIG"; then
11069 ac_pt_PKG_CONFIG=$PKG_CONFIG
11070 # Extract the first word of "pkg-config", so it can be a program name with args.
11071 set dummy pkg-config; ac_word=$2
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11073 $as_echo_n "checking for $ac_word... " >&6; }
11074 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077 case $ac_pt_PKG_CONFIG in
11078 [\\/]* | ?:[\\/]*)
11079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11084 do
11085 IFS=$as_save_IFS
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11091 break 2
11092 fi
11093 done
11094 done
11095 IFS=$as_save_IFS
11098 esac
11099 fi
11100 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11101 if test -n "$ac_pt_PKG_CONFIG"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11103 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11104 else
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106 $as_echo "no" >&6; }
11107 fi
11109 if test "x$ac_pt_PKG_CONFIG" = x; then
11110 PKG_CONFIG=""
11111 else
11112 case $cross_compiling:$ac_tool_warned in
11113 yes:)
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11116 ac_tool_warned=yes ;;
11117 esac
11118 PKG_CONFIG=$ac_pt_PKG_CONFIG
11119 fi
11120 else
11121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11122 fi
11124 fi
11125 if test -n "$PKG_CONFIG"; then
11126 _pkg_min_version=0.9.0
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11128 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11131 $as_echo "yes" >&6; }
11132 else
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11135 PKG_CONFIG=""
11136 fi
11137 fi
11139 pkg_failed=no
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnfnetlink" >&5
11141 $as_echo_n "checking for libnfnetlink... " >&6; }
11143 if test -n "$libnfnetlink_CFLAGS"; then
11144 pkg_cv_libnfnetlink_CFLAGS="$libnfnetlink_CFLAGS"
11145 elif test -n "$PKG_CONFIG"; then
11146 if test -n "$PKG_CONFIG" && \
11147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\""; } >&5
11148 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
11149 ac_status=$?
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }; then
11152 pkg_cv_libnfnetlink_CFLAGS=`$PKG_CONFIG --cflags "libnfnetlink >= 1.0" 2>/dev/null`
11153 else
11154 pkg_failed=yes
11155 fi
11156 else
11157 pkg_failed=untried
11158 fi
11159 if test -n "$libnfnetlink_LIBS"; then
11160 pkg_cv_libnfnetlink_LIBS="$libnfnetlink_LIBS"
11161 elif test -n "$PKG_CONFIG"; then
11162 if test -n "$PKG_CONFIG" && \
11163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnfnetlink >= 1.0\""; } >&5
11164 ($PKG_CONFIG --exists --print-errors "libnfnetlink >= 1.0") 2>&5
11165 ac_status=$?
11166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11167 test $ac_status = 0; }; then
11168 pkg_cv_libnfnetlink_LIBS=`$PKG_CONFIG --libs "libnfnetlink >= 1.0" 2>/dev/null`
11169 else
11170 pkg_failed=yes
11171 fi
11172 else
11173 pkg_failed=untried
11174 fi
11178 if test $pkg_failed = yes; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180 $as_echo "no" >&6; }
11182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11183 _pkg_short_errors_supported=yes
11184 else
11185 _pkg_short_errors_supported=no
11186 fi
11187 if test $_pkg_short_errors_supported = yes; then
11188 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libnfnetlink >= 1.0" 2>&1`
11189 else
11190 libnfnetlink_PKG_ERRORS=`$PKG_CONFIG --print-errors "libnfnetlink >= 1.0" 2>&1`
11191 fi
11192 # Put the nasty error message in config.log where it belongs
11193 echo "$libnfnetlink_PKG_ERRORS" >&5
11195 nfnetlink=0
11196 elif test $pkg_failed = untried; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 nfnetlink=0
11200 else
11201 libnfnetlink_CFLAGS=$pkg_cv_libnfnetlink_CFLAGS
11202 libnfnetlink_LIBS=$pkg_cv_libnfnetlink_LIBS
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11204 $as_echo "yes" >&6; }
11205 nfnetlink=1
11206 fi
11207 if test "$nfnetlink" = 1; then
11208 HAVE_LIBNFNETLINK_TRUE=
11209 HAVE_LIBNFNETLINK_FALSE='#'
11210 else
11211 HAVE_LIBNFNETLINK_TRUE='#'
11212 HAVE_LIBNFNETLINK_FALSE=
11213 fi
11216 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
11217 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
11218 -Winline -pipe";
11219 regular_CPPFLAGS="${largefile_cppflags} -D_REENTRANT \
11220 -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
11221 kinclude_CPPFLAGS="";
11222 if [ -n "$kbuilddir" ]; then
11223 kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$kbuilddir/include";
11224 fi;
11225 if [ -n "$ksourcedir" ]; then
11226 kinclude_CPPFLAGS="$kinclude_CPPFLAGS -I$ksourcedir/include";
11227 fi;
11228 pkgdatadir='${datadir}/xtables';
11240 libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
11243 ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile iptables/Makefile iptables/xtables.pc libipq/Makefile libipq/libipq.pc libiptc/Makefile libiptc/libiptc.pc utils/Makefile include/xtables.h include/iptables/internal.h"
11245 cat >confcache <<\_ACEOF
11246 # This file is a shell script that caches the results of configure
11247 # tests run on this system so they can be shared between configure
11248 # scripts and configure runs, see configure's option --config-cache.
11249 # It is not useful on other systems. If it contains results you don't
11250 # want to keep, you may remove or edit it.
11252 # config.status only pays attention to the cache file if you give it
11253 # the --recheck option to rerun configure.
11255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11257 # following values.
11259 _ACEOF
11261 # The following way of writing the cache mishandles newlines in values,
11262 # but we know of no workaround that is simple, portable, and efficient.
11263 # So, we kill variables containing newlines.
11264 # Ultrix sh set writes to stderr and can't be redirected directly,
11265 # and sets the high bit in the cache file unless we assign to the vars.
11267 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11268 eval ac_val=\$$ac_var
11269 case $ac_val in #(
11270 *${as_nl}*)
11271 case $ac_var in #(
11272 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11273 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11274 esac
11275 case $ac_var in #(
11276 _ | IFS | as_nl) ;; #(
11277 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11278 *) { eval $ac_var=; unset $ac_var;} ;;
11279 esac ;;
11280 esac
11281 done
11283 (set) 2>&1 |
11284 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11285 *${as_nl}ac_space=\ *)
11286 # `set' does not quote correctly, so add quotes: double-quote
11287 # substitution turns \\\\ into \\, and sed turns \\ into \.
11288 sed -n \
11289 "s/'/'\\\\''/g;
11290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11293 # `set' quotes correctly as required by POSIX, so do not add quotes.
11294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11296 esac |
11297 sort
11299 sed '
11300 /^ac_cv_env_/b end
11301 t clear
11302 :clear
11303 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11304 t end
11305 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11306 :end' >>confcache
11307 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11308 if test -w "$cache_file"; then
11309 test "x$cache_file" != "x/dev/null" &&
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11311 $as_echo "$as_me: updating cache $cache_file" >&6;}
11312 cat confcache >$cache_file
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11315 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11316 fi
11317 fi
11318 rm -f confcache
11320 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11321 # Let make expand exec_prefix.
11322 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11324 DEFS=-DHAVE_CONFIG_H
11326 ac_libobjs=
11327 ac_ltlibobjs=
11328 U=
11329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11330 # 1. Remove the extension, and $U if already installed.
11331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11332 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11334 # will be set to the directory where LIBOBJS objects are built.
11335 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11336 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11337 done
11338 LIBOBJS=$ac_libobjs
11340 LTLIBOBJS=$ac_ltlibobjs
11343 if test -n "$EXEEXT"; then
11344 am__EXEEXT_TRUE=
11345 am__EXEEXT_FALSE='#'
11346 else
11347 am__EXEEXT_TRUE='#'
11348 am__EXEEXT_FALSE=
11349 fi
11351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11352 as_fn_error $? "conditional \"AMDEP\" was never defined.
11353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11354 fi
11355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11356 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11358 fi
11359 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
11360 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
11361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11362 fi
11363 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
11364 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
11365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11366 fi
11367 if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
11368 as_fn_error $? "conditional \"ENABLE_IPV4\" was never defined.
11369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11370 fi
11371 if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
11372 as_fn_error $? "conditional \"ENABLE_IPV6\" was never defined.
11373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11374 fi
11375 if test -z "${ENABLE_LARGEFILE_TRUE}" && test -z "${ENABLE_LARGEFILE_FALSE}"; then
11376 as_fn_error $? "conditional \"ENABLE_LARGEFILE\" was never defined.
11377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11378 fi
11379 if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
11380 as_fn_error $? "conditional \"ENABLE_DEVEL\" was never defined.
11381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11382 fi
11383 if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
11384 as_fn_error $? "conditional \"ENABLE_LIBIPQ\" was never defined.
11385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11386 fi
11387 if test -z "${HAVE_LIBNFNETLINK_TRUE}" && test -z "${HAVE_LIBNFNETLINK_FALSE}"; then
11388 as_fn_error $? "conditional \"HAVE_LIBNFNETLINK\" was never defined.
11389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11390 fi
11392 : ${CONFIG_STATUS=./config.status}
11393 ac_write_fail=0
11394 ac_clean_files_save=$ac_clean_files
11395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11397 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11398 as_write_fail=0
11399 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11400 #! $SHELL
11401 # Generated by $as_me.
11402 # Run this file to recreate the current configuration.
11403 # Compiler output produced by configure, useful for debugging
11404 # configure, is in config.log if it exists.
11406 debug=false
11407 ac_cs_recheck=false
11408 ac_cs_silent=false
11410 SHELL=\${CONFIG_SHELL-$SHELL}
11411 export SHELL
11412 _ASEOF
11413 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11414 ## -------------------- ##
11415 ## M4sh Initialization. ##
11416 ## -------------------- ##
11418 # Be more Bourne compatible
11419 DUALCASE=1; export DUALCASE # for MKS sh
11420 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11421 emulate sh
11422 NULLCMD=:
11423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11424 # is contrary to our usage. Disable this feature.
11425 alias -g '${1+"$@"}'='"$@"'
11426 setopt NO_GLOB_SUBST
11427 else
11428 case `(set -o) 2>/dev/null` in #(
11429 *posix*) :
11430 set -o posix ;; #(
11431 *) :
11433 esac
11434 fi
11437 as_nl='
11439 export as_nl
11440 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11441 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11444 # Prefer a ksh shell builtin over an external printf program on Solaris,
11445 # but without wasting forks for bash or zsh.
11446 if test -z "$BASH_VERSION$ZSH_VERSION" \
11447 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11448 as_echo='print -r --'
11449 as_echo_n='print -rn --'
11450 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11451 as_echo='printf %s\n'
11452 as_echo_n='printf %s'
11453 else
11454 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11455 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11456 as_echo_n='/usr/ucb/echo -n'
11457 else
11458 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11459 as_echo_n_body='eval
11460 arg=$1;
11461 case $arg in #(
11462 *"$as_nl"*)
11463 expr "X$arg" : "X\\(.*\\)$as_nl";
11464 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11465 esac;
11466 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11468 export as_echo_n_body
11469 as_echo_n='sh -c $as_echo_n_body as_echo'
11470 fi
11471 export as_echo_body
11472 as_echo='sh -c $as_echo_body as_echo'
11473 fi
11475 # The user is always right.
11476 if test "${PATH_SEPARATOR+set}" != set; then
11477 PATH_SEPARATOR=:
11478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11480 PATH_SEPARATOR=';'
11482 fi
11485 # IFS
11486 # We need space, tab and new line, in precisely that order. Quoting is
11487 # there to prevent editors from complaining about space-tab.
11488 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11489 # splitting by setting IFS to empty value.)
11490 IFS=" "" $as_nl"
11492 # Find who we are. Look in the path if we contain no directory separator.
11493 case $0 in #((
11494 *[\\/]* ) as_myself=$0 ;;
11495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11501 done
11502 IFS=$as_save_IFS
11505 esac
11506 # We did not find ourselves, most probably we were run as `sh COMMAND'
11507 # in which case we are not to be found in the path.
11508 if test "x$as_myself" = x; then
11509 as_myself=$0
11510 fi
11511 if test ! -f "$as_myself"; then
11512 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11513 exit 1
11514 fi
11516 # Unset variables that we do not need and which cause bugs (e.g. in
11517 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11518 # suppresses any "Segmentation fault" message there. '((' could
11519 # trigger a bug in pdksh 5.2.14.
11520 for as_var in BASH_ENV ENV MAIL MAILPATH
11521 do eval test x\${$as_var+set} = xset \
11522 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11523 done
11524 PS1='$ '
11525 PS2='> '
11526 PS4='+ '
11528 # NLS nuisances.
11529 LC_ALL=C
11530 export LC_ALL
11531 LANGUAGE=C
11532 export LANGUAGE
11534 # CDPATH.
11535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11538 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11539 # ----------------------------------------
11540 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11541 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11542 # script with STATUS, using 1 if that was 0.
11543 as_fn_error ()
11545 as_status=$1; test $as_status -eq 0 && as_status=1
11546 if test "$4"; then
11547 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11548 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11549 fi
11550 $as_echo "$as_me: error: $2" >&2
11551 as_fn_exit $as_status
11552 } # as_fn_error
11555 # as_fn_set_status STATUS
11556 # -----------------------
11557 # Set $? to STATUS, without forking.
11558 as_fn_set_status ()
11560 return $1
11561 } # as_fn_set_status
11563 # as_fn_exit STATUS
11564 # -----------------
11565 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11566 as_fn_exit ()
11568 set +e
11569 as_fn_set_status $1
11570 exit $1
11571 } # as_fn_exit
11573 # as_fn_unset VAR
11574 # ---------------
11575 # Portably unset VAR.
11576 as_fn_unset ()
11578 { eval $1=; unset $1;}
11580 as_unset=as_fn_unset
11581 # as_fn_append VAR VALUE
11582 # ----------------------
11583 # Append the text in VALUE to the end of the definition contained in VAR. Take
11584 # advantage of any shell optimizations that allow amortized linear growth over
11585 # repeated appends, instead of the typical quadratic growth present in naive
11586 # implementations.
11587 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11588 eval 'as_fn_append ()
11590 eval $1+=\$2
11592 else
11593 as_fn_append ()
11595 eval $1=\$$1\$2
11597 fi # as_fn_append
11599 # as_fn_arith ARG...
11600 # ------------------
11601 # Perform arithmetic evaluation on the ARGs, and store the result in the
11602 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11603 # must be portable across $(()) and expr.
11604 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11605 eval 'as_fn_arith ()
11607 as_val=$(( $* ))
11609 else
11610 as_fn_arith ()
11612 as_val=`expr "$@" || test $? -eq 1`
11614 fi # as_fn_arith
11617 if expr a : '\(a\)' >/dev/null 2>&1 &&
11618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11619 as_expr=expr
11620 else
11621 as_expr=false
11622 fi
11624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11625 as_basename=basename
11626 else
11627 as_basename=false
11628 fi
11630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11631 as_dirname=dirname
11632 else
11633 as_dirname=false
11634 fi
11636 as_me=`$as_basename -- "$0" ||
11637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11638 X"$0" : 'X\(//\)$' \| \
11639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11640 $as_echo X/"$0" |
11641 sed '/^.*\/\([^/][^/]*\)\/*$/{
11642 s//\1/
11643 q
11645 /^X\/\(\/\/\)$/{
11646 s//\1/
11647 q
11649 /^X\/\(\/\).*/{
11650 s//\1/
11651 q
11653 s/.*/./; q'`
11655 # Avoid depending upon Character Ranges.
11656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11659 as_cr_digits='0123456789'
11660 as_cr_alnum=$as_cr_Letters$as_cr_digits
11662 ECHO_C= ECHO_N= ECHO_T=
11663 case `echo -n x` in #(((((
11664 -n*)
11665 case `echo 'xy\c'` in
11666 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11667 xy) ECHO_C='\c';;
11668 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11669 ECHO_T=' ';;
11670 esac;;
11672 ECHO_N='-n';;
11673 esac
11675 rm -f conf$$ conf$$.exe conf$$.file
11676 if test -d conf$$.dir; then
11677 rm -f conf$$.dir/conf$$.file
11678 else
11679 rm -f conf$$.dir
11680 mkdir conf$$.dir 2>/dev/null
11681 fi
11682 if (echo >conf$$.file) 2>/dev/null; then
11683 if ln -s conf$$.file conf$$ 2>/dev/null; then
11684 as_ln_s='ln -s'
11685 # ... but there are two gotchas:
11686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11688 # In both cases, we have to default to `cp -p'.
11689 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11690 as_ln_s='cp -p'
11691 elif ln conf$$.file conf$$ 2>/dev/null; then
11692 as_ln_s=ln
11693 else
11694 as_ln_s='cp -p'
11695 fi
11696 else
11697 as_ln_s='cp -p'
11698 fi
11699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11700 rmdir conf$$.dir 2>/dev/null
11703 # as_fn_mkdir_p
11704 # -------------
11705 # Create "$as_dir" as a directory, including parents if necessary.
11706 as_fn_mkdir_p ()
11709 case $as_dir in #(
11710 -*) as_dir=./$as_dir;;
11711 esac
11712 test -d "$as_dir" || eval $as_mkdir_p || {
11713 as_dirs=
11714 while :; do
11715 case $as_dir in #(
11716 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11717 *) as_qdir=$as_dir;;
11718 esac
11719 as_dirs="'$as_qdir' $as_dirs"
11720 as_dir=`$as_dirname -- "$as_dir" ||
11721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11722 X"$as_dir" : 'X\(//\)[^/]' \| \
11723 X"$as_dir" : 'X\(//\)$' \| \
11724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11725 $as_echo X"$as_dir" |
11726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11727 s//\1/
11728 q
11730 /^X\(\/\/\)[^/].*/{
11731 s//\1/
11732 q
11734 /^X\(\/\/\)$/{
11735 s//\1/
11736 q
11738 /^X\(\/\).*/{
11739 s//\1/
11740 q
11742 s/.*/./; q'`
11743 test -d "$as_dir" && break
11744 done
11745 test -z "$as_dirs" || eval "mkdir $as_dirs"
11746 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11749 } # as_fn_mkdir_p
11750 if mkdir -p . 2>/dev/null; then
11751 as_mkdir_p='mkdir -p "$as_dir"'
11752 else
11753 test -d ./-p && rmdir ./-p
11754 as_mkdir_p=false
11755 fi
11757 if test -x / >/dev/null 2>&1; then
11758 as_test_x='test -x'
11759 else
11760 if ls -dL / >/dev/null 2>&1; then
11761 as_ls_L_option=L
11762 else
11763 as_ls_L_option=
11764 fi
11765 as_test_x='
11766 eval sh -c '\''
11767 if test -d "$1"; then
11768 test -d "$1/.";
11769 else
11770 case $1 in #(
11771 -*)set "./$1";;
11772 esac;
11773 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11774 ???[sx]*):;;*)false;;esac;fi
11775 '\'' sh
11777 fi
11778 as_executable_p=$as_test_x
11780 # Sed expression to map a string onto a valid CPP name.
11781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11783 # Sed expression to map a string onto a valid variable name.
11784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11787 exec 6>&1
11788 ## ----------------------------------- ##
11789 ## Main body of $CONFIG_STATUS script. ##
11790 ## ----------------------------------- ##
11791 _ASEOF
11792 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11795 # Save the log message, to keep $0 and so on meaningful, and to
11796 # report actual input values of CONFIG_FILES etc. instead of their
11797 # values after options handling.
11798 ac_log="
11799 This file was extended by iptables $as_me 1.4.12.1, which was
11800 generated by GNU Autoconf 2.67. Invocation command line was
11802 CONFIG_FILES = $CONFIG_FILES
11803 CONFIG_HEADERS = $CONFIG_HEADERS
11804 CONFIG_LINKS = $CONFIG_LINKS
11805 CONFIG_COMMANDS = $CONFIG_COMMANDS
11806 $ $0 $@
11808 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11811 _ACEOF
11813 case $ac_config_files in *"
11814 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11815 esac
11817 case $ac_config_headers in *"
11818 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11819 esac
11822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11823 # Files that config.status was made for.
11824 config_files="$ac_config_files"
11825 config_headers="$ac_config_headers"
11826 config_commands="$ac_config_commands"
11828 _ACEOF
11830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11831 ac_cs_usage="\
11832 \`$as_me' instantiates files and other configuration actions
11833 from templates according to the current configuration. Unless the files
11834 and actions are specified as TAGs, all are instantiated by default.
11836 Usage: $0 [OPTION]... [TAG]...
11838 -h, --help print this help, then exit
11839 -V, --version print version number and configuration settings, then exit
11840 --config print configuration, then exit
11841 -q, --quiet, --silent
11842 do not print progress messages
11843 -d, --debug don't remove temporary files
11844 --recheck update $as_me by reconfiguring in the same conditions
11845 --file=FILE[:TEMPLATE]
11846 instantiate the configuration file FILE
11847 --header=FILE[:TEMPLATE]
11848 instantiate the configuration header FILE
11850 Configuration files:
11851 $config_files
11853 Configuration headers:
11854 $config_headers
11856 Configuration commands:
11857 $config_commands
11859 Report bugs to the package provider."
11861 _ACEOF
11862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11863 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11864 ac_cs_version="\\
11865 iptables config.status 1.4.12.1
11866 configured by $0, generated by GNU Autoconf 2.67,
11867 with options \\"\$ac_cs_config\\"
11869 Copyright (C) 2010 Free Software Foundation, Inc.
11870 This config.status script is free software; the Free Software Foundation
11871 gives unlimited permission to copy, distribute and modify it."
11873 ac_pwd='$ac_pwd'
11874 srcdir='$srcdir'
11875 INSTALL='$INSTALL'
11876 MKDIR_P='$MKDIR_P'
11877 AWK='$AWK'
11878 test -n "\$AWK" || AWK=awk
11879 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882 # The default lists apply if the user does not specify any file.
11883 ac_need_defaults=:
11884 while test $# != 0
11885 do
11886 case $1 in
11887 --*=?*)
11888 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11889 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11890 ac_shift=:
11892 --*=)
11893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11894 ac_optarg=
11895 ac_shift=:
11898 ac_option=$1
11899 ac_optarg=$2
11900 ac_shift=shift
11902 esac
11904 case $ac_option in
11905 # Handling of the options.
11906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11907 ac_cs_recheck=: ;;
11908 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11909 $as_echo "$ac_cs_version"; exit ;;
11910 --config | --confi | --conf | --con | --co | --c )
11911 $as_echo "$ac_cs_config"; exit ;;
11912 --debug | --debu | --deb | --de | --d | -d )
11913 debug=: ;;
11914 --file | --fil | --fi | --f )
11915 $ac_shift
11916 case $ac_optarg in
11917 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11918 '') as_fn_error $? "missing file argument" ;;
11919 esac
11920 as_fn_append CONFIG_FILES " '$ac_optarg'"
11921 ac_need_defaults=false;;
11922 --header | --heade | --head | --hea )
11923 $ac_shift
11924 case $ac_optarg in
11925 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11926 esac
11927 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11928 ac_need_defaults=false;;
11929 --he | --h)
11930 # Conflict between --help and --header
11931 as_fn_error $? "ambiguous option: \`$1'
11932 Try \`$0 --help' for more information.";;
11933 --help | --hel | -h )
11934 $as_echo "$ac_cs_usage"; exit ;;
11935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11937 ac_cs_silent=: ;;
11939 # This is an error.
11940 -*) as_fn_error $? "unrecognized option: \`$1'
11941 Try \`$0 --help' for more information." ;;
11943 *) as_fn_append ac_config_targets " $1"
11944 ac_need_defaults=false ;;
11946 esac
11947 shift
11948 done
11950 ac_configure_extra_args=
11952 if $ac_cs_silent; then
11953 exec 6>/dev/null
11954 ac_configure_extra_args="$ac_configure_extra_args --silent"
11955 fi
11957 _ACEOF
11958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11959 if \$ac_cs_recheck; then
11960 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11961 shift
11962 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11963 CONFIG_SHELL='$SHELL'
11964 export CONFIG_SHELL
11965 exec "\$@"
11966 fi
11968 _ACEOF
11969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11970 exec 5>>config.log
11972 echo
11973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11974 ## Running $as_me. ##
11975 _ASBOX
11976 $as_echo "$ac_log"
11977 } >&5
11979 _ACEOF
11980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11982 # INIT-COMMANDS
11984 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11987 # The HP-UX ksh and POSIX shell print the target directory to stdout
11988 # if CDPATH is set.
11989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11991 sed_quote_subst='$sed_quote_subst'
11992 double_quote_subst='$double_quote_subst'
11993 delay_variable_subst='$delay_variable_subst'
11994 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11995 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11996 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11997 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11998 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11999 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12000 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12001 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12002 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12003 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12004 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12005 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12006 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12007 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12008 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12009 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12010 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12011 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12012 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12013 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12014 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12015 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12016 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12017 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12018 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12019 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12020 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12021 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12022 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12023 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12024 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12025 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12026 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12027 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12028 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12029 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12030 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12031 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12032 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12033 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12034 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12035 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12036 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12037 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12040 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12041 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12042 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12043 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12044 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12045 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12046 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12047 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12048 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12049 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12050 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12051 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12052 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12053 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12054 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12055 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12056 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12057 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12058 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12059 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12060 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12061 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12062 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12063 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12064 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12065 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12066 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12067 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12068 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12069 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12070 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12071 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12072 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12073 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12074 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12075 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12076 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12077 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12078 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12079 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12080 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12081 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12082 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12083 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12084 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12085 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12086 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12087 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12088 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12089 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12090 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12091 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12092 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12093 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12094 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12095 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12096 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12097 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12098 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12099 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12100 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12101 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12102 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12103 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12104 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12105 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12106 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12107 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12108 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12109 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12110 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12111 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12113 LTCC='$LTCC'
12114 LTCFLAGS='$LTCFLAGS'
12115 compiler='$compiler_DEFAULT'
12117 # Quote evaled strings.
12118 for var in SED \
12119 GREP \
12120 EGREP \
12121 FGREP \
12122 LD \
12123 NM \
12124 LN_S \
12125 lt_SP2NL \
12126 lt_NL2SP \
12127 reload_flag \
12128 OBJDUMP \
12129 deplibs_check_method \
12130 file_magic_cmd \
12131 AR \
12132 AR_FLAGS \
12133 STRIP \
12134 RANLIB \
12135 CC \
12136 CFLAGS \
12137 compiler \
12138 lt_cv_sys_global_symbol_pipe \
12139 lt_cv_sys_global_symbol_to_cdecl \
12140 lt_cv_sys_global_symbol_to_c_name_address \
12141 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12142 SHELL \
12143 ECHO \
12144 lt_prog_compiler_no_builtin_flag \
12145 lt_prog_compiler_wl \
12146 lt_prog_compiler_pic \
12147 lt_prog_compiler_static \
12148 lt_cv_prog_compiler_c_o \
12149 need_locks \
12150 DSYMUTIL \
12151 NMEDIT \
12152 LIPO \
12153 OTOOL \
12154 OTOOL64 \
12155 shrext_cmds \
12156 export_dynamic_flag_spec \
12157 whole_archive_flag_spec \
12158 compiler_needs_object \
12159 with_gnu_ld \
12160 allow_undefined_flag \
12161 no_undefined_flag \
12162 hardcode_libdir_flag_spec \
12163 hardcode_libdir_flag_spec_ld \
12164 hardcode_libdir_separator \
12165 fix_srcfile_path \
12166 exclude_expsyms \
12167 include_expsyms \
12168 file_list_spec \
12169 variables_saved_for_relink \
12170 libname_spec \
12171 library_names_spec \
12172 soname_spec \
12173 finish_eval \
12174 old_striplib \
12175 striplib; do
12176 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12177 *[\\\\\\\`\\"\\\$]*)
12178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12183 esac
12184 done
12186 # Double-quote double-evaled strings.
12187 for var in reload_cmds \
12188 old_postinstall_cmds \
12189 old_postuninstall_cmds \
12190 old_archive_cmds \
12191 extract_expsyms_cmds \
12192 old_archive_from_new_cmds \
12193 old_archive_from_expsyms_cmds \
12194 archive_cmds \
12195 archive_expsym_cmds \
12196 module_cmds \
12197 module_expsym_cmds \
12198 export_symbols_cmds \
12199 prelink_cmds \
12200 postinstall_cmds \
12201 postuninstall_cmds \
12202 finish_cmds \
12203 sys_lib_search_path_spec \
12204 sys_lib_dlsearch_path_spec; do
12205 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12206 *[\\\\\\\`\\"\\\$]*)
12207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12212 esac
12213 done
12215 # Fix-up fallback echo if it was mangled by the above quoting rules.
12216 case \$lt_ECHO in
12217 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12219 esac
12221 ac_aux_dir='$ac_aux_dir'
12222 xsi_shell='$xsi_shell'
12223 lt_shell_append='$lt_shell_append'
12225 # See if we are running on zsh, and set the options which allow our
12226 # commands through without removal of \ escapes INIT.
12227 if test -n "\${ZSH_VERSION+set}" ; then
12228 setopt NO_GLOB_SUBST
12229 fi
12232 PACKAGE='$PACKAGE'
12233 VERSION='$VERSION'
12234 TIMESTAMP='$TIMESTAMP'
12235 RM='$RM'
12236 ofile='$ofile'
12241 _ACEOF
12243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12245 # Handling of arguments.
12246 for ac_config_target in $ac_config_targets
12247 do
12248 case $ac_config_target in
12249 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12250 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12251 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12252 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12253 "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
12254 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12255 "iptables/Makefile") CONFIG_FILES="$CONFIG_FILES iptables/Makefile" ;;
12256 "iptables/xtables.pc") CONFIG_FILES="$CONFIG_FILES iptables/xtables.pc" ;;
12257 "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
12258 "libipq/libipq.pc") CONFIG_FILES="$CONFIG_FILES libipq/libipq.pc" ;;
12259 "libiptc/Makefile") CONFIG_FILES="$CONFIG_FILES libiptc/Makefile" ;;
12260 "libiptc/libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc/libiptc.pc" ;;
12261 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
12262 "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
12263 "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
12265 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12266 esac
12267 done
12270 # If the user did not use the arguments to specify the items to instantiate,
12271 # then the envvar interface is used. Set only those that are not.
12272 # We use the long form for the default assignment because of an extremely
12273 # bizarre bug on SunOS 4.1.3.
12274 if $ac_need_defaults; then
12275 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12276 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12277 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12278 fi
12280 # Have a temporary directory for convenience. Make it in the build tree
12281 # simply because there is no reason against having it here, and in addition,
12282 # creating and moving files from /tmp can sometimes cause problems.
12283 # Hook for its removal unless debugging.
12284 # Note that there is a small window in which the directory will not be cleaned:
12285 # after its creation but before its name has been assigned to `$tmp'.
12286 $debug ||
12288 tmp=
12289 trap 'exit_status=$?
12290 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12291 ' 0
12292 trap 'as_fn_exit 1' 1 2 13 15
12294 # Create a (secure) tmp directory for tmp files.
12297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12298 test -n "$tmp" && test -d "$tmp"
12301 tmp=./conf$$-$RANDOM
12302 (umask 077 && mkdir "$tmp")
12303 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12305 # Set up the scripts for CONFIG_FILES section.
12306 # No need to generate them if there are no CONFIG_FILES.
12307 # This happens for instance with `./config.status config.h'.
12308 if test -n "$CONFIG_FILES"; then
12311 ac_cr=`echo X | tr X '\015'`
12312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12313 # But we know of no other shell where ac_cr would be empty at this
12314 # point, so we can use a bashism as a fallback.
12315 if test "x$ac_cr" = x; then
12316 eval ac_cr=\$\'\\r\'
12317 fi
12318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12320 ac_cs_awk_cr='\\r'
12321 else
12322 ac_cs_awk_cr=$ac_cr
12323 fi
12325 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12326 _ACEOF
12330 echo "cat >conf$$subs.awk <<_ACEOF" &&
12331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12332 echo "_ACEOF"
12333 } >conf$$subs.sh ||
12334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12336 ac_delim='%!_!# '
12337 for ac_last_try in false false false false false :; do
12338 . ./conf$$subs.sh ||
12339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12342 if test $ac_delim_n = $ac_delim_num; then
12343 break
12344 elif $ac_last_try; then
12345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12346 else
12347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12348 fi
12349 done
12350 rm -f conf$$subs.sh
12352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12354 _ACEOF
12355 sed -n '
12356 h
12357 s/^/S["/; s/!.*/"]=/
12358 p
12359 g
12360 s/^[^!]*!//
12361 :repl
12362 t repl
12363 s/'"$ac_delim"'$//
12364 t delim
12365 :nl
12366 h
12367 s/\(.\{148\}\)..*/\1/
12368 t more1
12369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12370 p
12371 n
12372 b repl
12373 :more1
12374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12375 p
12376 g
12377 s/.\{148\}//
12378 t nl
12379 :delim
12380 h
12381 s/\(.\{148\}\)..*/\1/
12382 t more2
12383 s/["\\]/\\&/g; s/^/"/; s/$/"/
12384 p
12385 b
12386 :more2
12387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12388 p
12389 g
12390 s/.\{148\}//
12391 t delim
12392 ' <conf$$subs.awk | sed '
12393 /^[^""]/{
12394 N
12395 s/\n//
12397 ' >>$CONFIG_STATUS || ac_write_fail=1
12398 rm -f conf$$subs.awk
12399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400 _ACAWK
12401 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12402 for (key in S) S_is_set[key] = 1
12403 FS = ""
12407 line = $ 0
12408 nfields = split(line, field, "@")
12409 substed = 0
12410 len = length(field[1])
12411 for (i = 2; i < nfields; i++) {
12412 key = field[i]
12413 keylen = length(key)
12414 if (S_is_set[key]) {
12415 value = S[key]
12416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12417 len += length(value) + length(field[++i])
12418 substed = 1
12419 } else
12420 len += 1 + keylen
12423 print line
12426 _ACAWK
12427 _ACEOF
12428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12431 else
12432 cat
12433 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12435 _ACEOF
12437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12439 # trailing colons and then remove the whole line if VPATH becomes empty
12440 # (actually we leave an empty line to preserve line numbers).
12441 if test "x$srcdir" = x.; then
12442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12443 h
12444 s///
12445 s/^/:/
12446 s/[ ]*$/:/
12447 s/:\$(srcdir):/:/g
12448 s/:\${srcdir}:/:/g
12449 s/:@srcdir@:/:/g
12450 s/^:*//
12451 s/:*$//
12452 x
12453 s/\(=[ ]*\).*/\1/
12454 G
12455 s/\n//
12456 s/^[^=]*=[ ]*$//
12458 fi
12460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12461 fi # test -n "$CONFIG_FILES"
12463 # Set up the scripts for CONFIG_HEADERS section.
12464 # No need to generate them if there are no CONFIG_HEADERS.
12465 # This happens for instance with `./config.status Makefile'.
12466 if test -n "$CONFIG_HEADERS"; then
12467 cat >"$tmp/defines.awk" <<\_ACAWK ||
12468 BEGIN {
12469 _ACEOF
12471 # Transform confdefs.h into an awk script `defines.awk', embedded as
12472 # here-document in config.status, that substitutes the proper values into
12473 # config.h.in to produce config.h.
12475 # Create a delimiter string that does not exist in confdefs.h, to ease
12476 # handling of long lines.
12477 ac_delim='%!_!# '
12478 for ac_last_try in false false :; do
12479 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12480 if test -z "$ac_t"; then
12481 break
12482 elif $ac_last_try; then
12483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12484 else
12485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12486 fi
12487 done
12489 # For the awk script, D is an array of macro values keyed by name,
12490 # likewise P contains macro parameters if any. Preserve backslash
12491 # newline sequences.
12493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12494 sed -n '
12495 s/.\{148\}/&'"$ac_delim"'/g
12496 t rset
12497 :rset
12498 s/^[ ]*#[ ]*define[ ][ ]*/ /
12499 t def
12500 d
12501 :def
12502 s/\\$//
12503 t bsnl
12504 s/["\\]/\\&/g
12505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12506 D["\1"]=" \3"/p
12507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12508 d
12509 :bsnl
12510 s/["\\]/\\&/g
12511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12512 D["\1"]=" \3\\\\\\n"\\/p
12513 t cont
12514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12515 t cont
12516 d
12517 :cont
12518 n
12519 s/.\{148\}/&'"$ac_delim"'/g
12520 t clear
12521 :clear
12522 s/\\$//
12523 t bsnlc
12524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12525 d
12526 :bsnlc
12527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12528 b cont
12529 ' <confdefs.h | sed '
12530 s/'"$ac_delim"'/"\\\
12531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12534 for (key in D) D_is_set[key] = 1
12535 FS = ""
12537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12538 line = \$ 0
12539 split(line, arg, " ")
12540 if (arg[1] == "#") {
12541 defundef = arg[2]
12542 mac1 = arg[3]
12543 } else {
12544 defundef = substr(arg[1], 2)
12545 mac1 = arg[2]
12547 split(mac1, mac2, "(") #)
12548 macro = mac2[1]
12549 prefix = substr(line, 1, index(line, defundef) - 1)
12550 if (D_is_set[macro]) {
12551 # Preserve the white space surrounding the "#".
12552 print prefix "define", macro P[macro] D[macro]
12553 next
12554 } else {
12555 # Replace #undef with comments. This is necessary, for example,
12556 # in the case of _POSIX_SOURCE, which is predefined and required
12557 # on some systems where configure will not decide to define it.
12558 if (defundef == "undef") {
12559 print "/*", prefix defundef, macro, "*/"
12560 next
12564 { print }
12565 _ACAWK
12566 _ACEOF
12567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12569 fi # test -n "$CONFIG_HEADERS"
12572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12573 shift
12574 for ac_tag
12575 do
12576 case $ac_tag in
12577 :[FHLC]) ac_mode=$ac_tag; continue;;
12578 esac
12579 case $ac_mode$ac_tag in
12580 :[FHL]*:*);;
12581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12582 :[FH]-) ac_tag=-:-;;
12583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12584 esac
12585 ac_save_IFS=$IFS
12586 IFS=:
12587 set x $ac_tag
12588 IFS=$ac_save_IFS
12589 shift
12590 ac_file=$1
12591 shift
12593 case $ac_mode in
12594 :L) ac_source=$1;;
12595 :[FH])
12596 ac_file_inputs=
12597 for ac_f
12598 do
12599 case $ac_f in
12600 -) ac_f="$tmp/stdin";;
12601 *) # Look for the file first in the build tree, then in the source tree
12602 # (if the path is not absolute). The absolute path cannot be DOS-style,
12603 # because $ac_f cannot contain `:'.
12604 test -f "$ac_f" ||
12605 case $ac_f in
12606 [\\/$]*) false;;
12607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12608 esac ||
12609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12610 esac
12611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12612 as_fn_append ac_file_inputs " '$ac_f'"
12613 done
12615 # Let's still pretend it is `configure' which instantiates (i.e., don't
12616 # use $as_me), people would be surprised to read:
12617 # /* config.h. Generated by config.status. */
12618 configure_input='Generated from '`
12619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12620 `' by configure.'
12621 if test x"$ac_file" != x-; then
12622 configure_input="$ac_file. $configure_input"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12624 $as_echo "$as_me: creating $ac_file" >&6;}
12625 fi
12626 # Neutralize special characters interpreted by sed in replacement strings.
12627 case $configure_input in #(
12628 *\&* | *\|* | *\\* )
12629 ac_sed_conf_input=`$as_echo "$configure_input" |
12630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12631 *) ac_sed_conf_input=$configure_input;;
12632 esac
12634 case $ac_tag in
12635 *:-:* | *:-) cat >"$tmp/stdin" \
12636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12637 esac
12639 esac
12641 ac_dir=`$as_dirname -- "$ac_file" ||
12642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12643 X"$ac_file" : 'X\(//\)[^/]' \| \
12644 X"$ac_file" : 'X\(//\)$' \| \
12645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12646 $as_echo X"$ac_file" |
12647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12648 s//\1/
12649 q
12651 /^X\(\/\/\)[^/].*/{
12652 s//\1/
12653 q
12655 /^X\(\/\/\)$/{
12656 s//\1/
12657 q
12659 /^X\(\/\).*/{
12660 s//\1/
12661 q
12663 s/.*/./; q'`
12664 as_dir="$ac_dir"; as_fn_mkdir_p
12665 ac_builddir=.
12667 case "$ac_dir" in
12668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12671 # A ".." for each directory in $ac_dir_suffix.
12672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12673 case $ac_top_builddir_sub in
12674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12676 esac ;;
12677 esac
12678 ac_abs_top_builddir=$ac_pwd
12679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12680 # for backward compatibility:
12681 ac_top_builddir=$ac_top_build_prefix
12683 case $srcdir in
12684 .) # We are building in place.
12685 ac_srcdir=.
12686 ac_top_srcdir=$ac_top_builddir_sub
12687 ac_abs_top_srcdir=$ac_pwd ;;
12688 [\\/]* | ?:[\\/]* ) # Absolute name.
12689 ac_srcdir=$srcdir$ac_dir_suffix;
12690 ac_top_srcdir=$srcdir
12691 ac_abs_top_srcdir=$srcdir ;;
12692 *) # Relative name.
12693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12694 ac_top_srcdir=$ac_top_build_prefix$srcdir
12695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12696 esac
12697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12700 case $ac_mode in
12701 :F)
12703 # CONFIG_FILE
12706 case $INSTALL in
12707 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12708 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12709 esac
12710 ac_MKDIR_P=$MKDIR_P
12711 case $MKDIR_P in
12712 [\\/$]* | ?:[\\/]* ) ;;
12713 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12714 esac
12715 _ACEOF
12717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12718 # If the template does not know about datarootdir, expand it.
12719 # FIXME: This hack should be removed a few years after 2.60.
12720 ac_datarootdir_hack=; ac_datarootdir_seen=
12721 ac_sed_dataroot='
12722 /datarootdir/ {
12723 p
12724 q
12726 /@datadir@/p
12727 /@docdir@/p
12728 /@infodir@/p
12729 /@localedir@/p
12730 /@mandir@/p'
12731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12732 *datarootdir*) ac_datarootdir_seen=yes;;
12733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12735 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12736 _ACEOF
12737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12738 ac_datarootdir_hack='
12739 s&@datadir@&$datadir&g
12740 s&@docdir@&$docdir&g
12741 s&@infodir@&$infodir&g
12742 s&@localedir@&$localedir&g
12743 s&@mandir@&$mandir&g
12744 s&\\\${datarootdir}&$datarootdir&g' ;;
12745 esac
12746 _ACEOF
12748 # Neutralize VPATH when `$srcdir' = `.'.
12749 # Shell code in configure.ac might set extrasub.
12750 # FIXME: do we really want to maintain this feature?
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 ac_sed_extra="$ac_vpsub
12753 $extrasub
12754 _ACEOF
12755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12756 :t
12757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12758 s|@configure_input@|$ac_sed_conf_input|;t t
12759 s&@top_builddir@&$ac_top_builddir_sub&;t t
12760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12761 s&@srcdir@&$ac_srcdir&;t t
12762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12763 s&@top_srcdir@&$ac_top_srcdir&;t t
12764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12765 s&@builddir@&$ac_builddir&;t t
12766 s&@abs_builddir@&$ac_abs_builddir&;t t
12767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12768 s&@INSTALL@&$ac_INSTALL&;t t
12769 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12770 $ac_datarootdir_hack
12772 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12776 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12779 which seems to be undefined. Please make sure it is defined" >&5
12780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12781 which seems to be undefined. Please make sure it is defined" >&2;}
12783 rm -f "$tmp/stdin"
12784 case $ac_file in
12785 -) cat "$tmp/out" && rm -f "$tmp/out";;
12786 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12787 esac \
12788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12790 :H)
12792 # CONFIG_HEADER
12794 if test x"$ac_file" != x-; then
12796 $as_echo "/* $configure_input */" \
12797 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12798 } >"$tmp/config.h" \
12799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12800 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12803 else
12804 rm -f "$ac_file"
12805 mv "$tmp/config.h" "$ac_file" \
12806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12807 fi
12808 else
12809 $as_echo "/* $configure_input */" \
12810 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12811 || as_fn_error $? "could not create -" "$LINENO" 5
12812 fi
12813 # Compute "$ac_file"'s index in $config_headers.
12814 _am_arg="$ac_file"
12815 _am_stamp_count=1
12816 for _am_header in $config_headers :; do
12817 case $_am_header in
12818 $_am_arg | $_am_arg:* )
12819 break ;;
12821 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12822 esac
12823 done
12824 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12825 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12826 X"$_am_arg" : 'X\(//\)[^/]' \| \
12827 X"$_am_arg" : 'X\(//\)$' \| \
12828 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12829 $as_echo X"$_am_arg" |
12830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12831 s//\1/
12832 q
12834 /^X\(\/\/\)[^/].*/{
12835 s//\1/
12836 q
12838 /^X\(\/\/\)$/{
12839 s//\1/
12840 q
12842 /^X\(\/\).*/{
12843 s//\1/
12844 q
12846 s/.*/./; q'`/stamp-h$_am_stamp_count
12849 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12850 $as_echo "$as_me: executing $ac_file commands" >&6;}
12852 esac
12855 case $ac_file$ac_mode in
12856 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12857 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12858 # are listed without --file. Let's play safe and only enable the eval
12859 # if we detect the quoting.
12860 case $CONFIG_FILES in
12861 *\'*) eval set x "$CONFIG_FILES" ;;
12862 *) set x $CONFIG_FILES ;;
12863 esac
12864 shift
12865 for mf
12866 do
12867 # Strip MF so we end up with the name of the file.
12868 mf=`echo "$mf" | sed -e 's/:.*$//'`
12869 # Check whether this is an Automake generated Makefile or not.
12870 # We used to match only the files named `Makefile.in', but
12871 # some people rename them; so instead we look at the file content.
12872 # Grep'ing the first line is not enough: some people post-process
12873 # each Makefile.in and add a new line on top of each file to say so.
12874 # Grep'ing the whole file is not good either: AIX grep has a line
12875 # limit of 2048, but all sed's we know have understand at least 4000.
12876 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12877 dirpart=`$as_dirname -- "$mf" ||
12878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12879 X"$mf" : 'X\(//\)[^/]' \| \
12880 X"$mf" : 'X\(//\)$' \| \
12881 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12882 $as_echo X"$mf" |
12883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12884 s//\1/
12885 q
12887 /^X\(\/\/\)[^/].*/{
12888 s//\1/
12889 q
12891 /^X\(\/\/\)$/{
12892 s//\1/
12893 q
12895 /^X\(\/\).*/{
12896 s//\1/
12897 q
12899 s/.*/./; q'`
12900 else
12901 continue
12902 fi
12903 # Extract the definition of DEPDIR, am__include, and am__quote
12904 # from the Makefile without running `make'.
12905 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12906 test -z "$DEPDIR" && continue
12907 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12908 test -z "am__include" && continue
12909 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12910 # When using ansi2knr, U may be empty or an underscore; expand it
12911 U=`sed -n 's/^U = //p' < "$mf"`
12912 # Find all dependency output files, they are included files with
12913 # $(DEPDIR) in their names. We invoke sed twice because it is the
12914 # simplest approach to changing $(DEPDIR) to its actual value in the
12915 # expansion.
12916 for file in `sed -n "
12917 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12918 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12919 # Make sure the directory exists.
12920 test -f "$dirpart/$file" && continue
12921 fdir=`$as_dirname -- "$file" ||
12922 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12923 X"$file" : 'X\(//\)[^/]' \| \
12924 X"$file" : 'X\(//\)$' \| \
12925 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12926 $as_echo X"$file" |
12927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12928 s//\1/
12929 q
12931 /^X\(\/\/\)[^/].*/{
12932 s//\1/
12933 q
12935 /^X\(\/\/\)$/{
12936 s//\1/
12937 q
12939 /^X\(\/\).*/{
12940 s//\1/
12941 q
12943 s/.*/./; q'`
12944 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12945 # echo "creating $dirpart/$file"
12946 echo '# dummy' > "$dirpart/$file"
12947 done
12948 done
12951 "libtool":C)
12953 # See if we are running on zsh, and set the options which allow our
12954 # commands through without removal of \ escapes.
12955 if test -n "${ZSH_VERSION+set}" ; then
12956 setopt NO_GLOB_SUBST
12957 fi
12959 cfgfile="${ofile}T"
12960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12961 $RM "$cfgfile"
12963 cat <<_LT_EOF >> "$cfgfile"
12964 #! $SHELL
12966 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12967 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12968 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12969 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12971 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12972 # 2006, 2007, 2008 Free Software Foundation, Inc.
12973 # Written by Gordon Matzigkeit, 1996
12975 # This file is part of GNU Libtool.
12977 # GNU Libtool is free software; you can redistribute it and/or
12978 # modify it under the terms of the GNU General Public License as
12979 # published by the Free Software Foundation; either version 2 of
12980 # the License, or (at your option) any later version.
12982 # As a special exception to the GNU General Public License,
12983 # if you distribute this file as part of a program or library that
12984 # is built using GNU Libtool, you may include this file under the
12985 # same distribution terms that you use for the rest of that program.
12987 # GNU Libtool is distributed in the hope that it will be useful,
12988 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12989 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12990 # GNU General Public License for more details.
12992 # You should have received a copy of the GNU General Public License
12993 # along with GNU Libtool; see the file COPYING. If not, a copy
12994 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12995 # obtained by writing to the Free Software Foundation, Inc.,
12996 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12999 # The names of the tagged configurations supported by this script.
13000 available_tags=""
13002 # ### BEGIN LIBTOOL CONFIG
13004 # Whether or not to build static libraries.
13005 build_old_libs=$enable_static
13007 # Which release of libtool.m4 was used?
13008 macro_version=$macro_version
13009 macro_revision=$macro_revision
13011 # Whether or not to build shared libraries.
13012 build_libtool_libs=$enable_shared
13014 # What type of objects to build.
13015 pic_mode=$pic_mode
13017 # Whether or not to optimize for fast installation.
13018 fast_install=$enable_fast_install
13020 # The host system.
13021 host_alias=$host_alias
13022 host=$host
13023 host_os=$host_os
13025 # The build system.
13026 build_alias=$build_alias
13027 build=$build
13028 build_os=$build_os
13030 # A sed program that does not truncate output.
13031 SED=$lt_SED
13033 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13034 Xsed="\$SED -e 1s/^X//"
13036 # A grep program that handles long lines.
13037 GREP=$lt_GREP
13039 # An ERE matcher.
13040 EGREP=$lt_EGREP
13042 # A literal string matcher.
13043 FGREP=$lt_FGREP
13045 # A BSD- or MS-compatible name lister.
13046 NM=$lt_NM
13048 # Whether we need soft or hard links.
13049 LN_S=$lt_LN_S
13051 # What is the maximum length of a command?
13052 max_cmd_len=$max_cmd_len
13054 # Object file suffix (normally "o").
13055 objext=$ac_objext
13057 # Executable file suffix (normally "").
13058 exeext=$exeext
13060 # whether the shell understands "unset".
13061 lt_unset=$lt_unset
13063 # turn spaces into newlines.
13064 SP2NL=$lt_lt_SP2NL
13066 # turn newlines into spaces.
13067 NL2SP=$lt_lt_NL2SP
13069 # How to create reloadable object files.
13070 reload_flag=$lt_reload_flag
13071 reload_cmds=$lt_reload_cmds
13073 # An object symbol dumper.
13074 OBJDUMP=$lt_OBJDUMP
13076 # Method to check whether dependent libraries are shared objects.
13077 deplibs_check_method=$lt_deplibs_check_method
13079 # Command to use when deplibs_check_method == "file_magic".
13080 file_magic_cmd=$lt_file_magic_cmd
13082 # The archiver.
13083 AR=$lt_AR
13084 AR_FLAGS=$lt_AR_FLAGS
13086 # A symbol stripping program.
13087 STRIP=$lt_STRIP
13089 # Commands used to install an old-style archive.
13090 RANLIB=$lt_RANLIB
13091 old_postinstall_cmds=$lt_old_postinstall_cmds
13092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13094 # A C compiler.
13095 LTCC=$lt_CC
13097 # LTCC compiler flags.
13098 LTCFLAGS=$lt_CFLAGS
13100 # Take the output of nm and produce a listing of raw symbols and C names.
13101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13103 # Transform the output of nm in a proper C declaration.
13104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13106 # Transform the output of nm in a C name address pair.
13107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13109 # Transform the output of nm in a C name address pair when lib prefix is needed.
13110 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13112 # The name of the directory that contains temporary libtool files.
13113 objdir=$objdir
13115 # Shell to use when invoking shell scripts.
13116 SHELL=$lt_SHELL
13118 # An echo program that does not interpret backslashes.
13119 ECHO=$lt_ECHO
13121 # Used to examine libraries when file_magic_cmd begins with "file".
13122 MAGIC_CMD=$MAGIC_CMD
13124 # Must we lock files when doing compilation?
13125 need_locks=$lt_need_locks
13127 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13128 DSYMUTIL=$lt_DSYMUTIL
13130 # Tool to change global to local symbols on Mac OS X.
13131 NMEDIT=$lt_NMEDIT
13133 # Tool to manipulate fat objects and archives on Mac OS X.
13134 LIPO=$lt_LIPO
13136 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13137 OTOOL=$lt_OTOOL
13139 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13140 OTOOL64=$lt_OTOOL64
13142 # Old archive suffix (normally "a").
13143 libext=$libext
13145 # Shared library suffix (normally ".so").
13146 shrext_cmds=$lt_shrext_cmds
13148 # The commands to extract the exported symbol list from a shared archive.
13149 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13151 # Variables whose values should be saved in libtool wrapper scripts and
13152 # restored at link time.
13153 variables_saved_for_relink=$lt_variables_saved_for_relink
13155 # Do we need the "lib" prefix for modules?
13156 need_lib_prefix=$need_lib_prefix
13158 # Do we need a version for libraries?
13159 need_version=$need_version
13161 # Library versioning type.
13162 version_type=$version_type
13164 # Shared library runtime path variable.
13165 runpath_var=$runpath_var
13167 # Shared library path variable.
13168 shlibpath_var=$shlibpath_var
13170 # Is shlibpath searched before the hard-coded library search path?
13171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13173 # Format of library name prefix.
13174 libname_spec=$lt_libname_spec
13176 # List of archive names. First name is the real one, the rest are links.
13177 # The last name is the one that the linker finds with -lNAME
13178 library_names_spec=$lt_library_names_spec
13180 # The coded name of the library, if different from the real name.
13181 soname_spec=$lt_soname_spec
13183 # Command to use after installation of a shared archive.
13184 postinstall_cmds=$lt_postinstall_cmds
13186 # Command to use after uninstallation of a shared archive.
13187 postuninstall_cmds=$lt_postuninstall_cmds
13189 # Commands used to finish a libtool library installation in a directory.
13190 finish_cmds=$lt_finish_cmds
13192 # As "finish_cmds", except a single script fragment to be evaled but
13193 # not shown.
13194 finish_eval=$lt_finish_eval
13196 # Whether we should hardcode library paths into libraries.
13197 hardcode_into_libs=$hardcode_into_libs
13199 # Compile-time system search path for libraries.
13200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13202 # Run-time system search path for libraries.
13203 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13205 # Whether dlopen is supported.
13206 dlopen_support=$enable_dlopen
13208 # Whether dlopen of programs is supported.
13209 dlopen_self=$enable_dlopen_self
13211 # Whether dlopen of statically linked programs is supported.
13212 dlopen_self_static=$enable_dlopen_self_static
13214 # Commands to strip libraries.
13215 old_striplib=$lt_old_striplib
13216 striplib=$lt_striplib
13219 # The linker used to build libraries.
13220 LD=$lt_LD
13222 # Commands used to build an old-style archive.
13223 old_archive_cmds=$lt_old_archive_cmds
13225 # A language specific compiler.
13226 CC=$lt_compiler
13228 # Is the compiler the GNU compiler?
13229 with_gcc=$GCC
13231 # Compiler flag to turn off builtin functions.
13232 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13234 # How to pass a linker flag through the compiler.
13235 wl=$lt_lt_prog_compiler_wl
13237 # Additional compiler flags for building library objects.
13238 pic_flag=$lt_lt_prog_compiler_pic
13240 # Compiler flag to prevent dynamic linking.
13241 link_static_flag=$lt_lt_prog_compiler_static
13243 # Does compiler simultaneously support -c and -o options?
13244 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13246 # Whether or not to add -lc for building shared libraries.
13247 build_libtool_need_lc=$archive_cmds_need_lc
13249 # Whether or not to disallow shared libs when runtime libs are static.
13250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13252 # Compiler flag to allow reflexive dlopens.
13253 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13255 # Compiler flag to generate shared objects directly from archives.
13256 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13258 # Whether the compiler copes with passing no objects directly.
13259 compiler_needs_object=$lt_compiler_needs_object
13261 # Create an old-style archive from a shared archive.
13262 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13264 # Create a temporary old-style archive to link instead of a shared archive.
13265 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13267 # Commands used to build a shared archive.
13268 archive_cmds=$lt_archive_cmds
13269 archive_expsym_cmds=$lt_archive_expsym_cmds
13271 # Commands used to build a loadable module if different from building
13272 # a shared archive.
13273 module_cmds=$lt_module_cmds
13274 module_expsym_cmds=$lt_module_expsym_cmds
13276 # Whether we are building with GNU ld or not.
13277 with_gnu_ld=$lt_with_gnu_ld
13279 # Flag that allows shared libraries with undefined symbols to be built.
13280 allow_undefined_flag=$lt_allow_undefined_flag
13282 # Flag that enforces no undefined symbols.
13283 no_undefined_flag=$lt_no_undefined_flag
13285 # Flag to hardcode \$libdir into a binary during linking.
13286 # This must work even if \$libdir does not exist
13287 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13289 # If ld is used when linking, flag to hardcode \$libdir into a binary
13290 # during linking. This must work even if \$libdir does not exist.
13291 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13293 # Whether we need a single "-rpath" flag with a separated argument.
13294 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13296 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13297 # DIR into the resulting binary.
13298 hardcode_direct=$hardcode_direct
13300 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13301 # DIR into the resulting binary and the resulting library dependency is
13302 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13303 # library is relocated.
13304 hardcode_direct_absolute=$hardcode_direct_absolute
13306 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13307 # into the resulting binary.
13308 hardcode_minus_L=$hardcode_minus_L
13310 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13311 # into the resulting binary.
13312 hardcode_shlibpath_var=$hardcode_shlibpath_var
13314 # Set to "yes" if building a shared library automatically hardcodes DIR
13315 # into the library and all subsequent libraries and executables linked
13316 # against it.
13317 hardcode_automatic=$hardcode_automatic
13319 # Set to yes if linker adds runtime paths of dependent libraries
13320 # to runtime path list.
13321 inherit_rpath=$inherit_rpath
13323 # Whether libtool must link a program against all its dependency libraries.
13324 link_all_deplibs=$link_all_deplibs
13326 # Fix the shell variable \$srcfile for the compiler.
13327 fix_srcfile_path=$lt_fix_srcfile_path
13329 # Set to "yes" if exported symbols are required.
13330 always_export_symbols=$always_export_symbols
13332 # The commands to list exported symbols.
13333 export_symbols_cmds=$lt_export_symbols_cmds
13335 # Symbols that should not be listed in the preloaded symbols.
13336 exclude_expsyms=$lt_exclude_expsyms
13338 # Symbols that must always be exported.
13339 include_expsyms=$lt_include_expsyms
13341 # Commands necessary for linking programs (against libraries) with templates.
13342 prelink_cmds=$lt_prelink_cmds
13344 # Specify filename containing input files.
13345 file_list_spec=$lt_file_list_spec
13347 # How to hardcode a shared library path into an executable.
13348 hardcode_action=$hardcode_action
13350 # ### END LIBTOOL CONFIG
13352 _LT_EOF
13354 case $host_os in
13355 aix3*)
13356 cat <<\_LT_EOF >> "$cfgfile"
13357 # AIX sometimes has problems with the GCC collect2 program. For some
13358 # reason, if we set the COLLECT_NAMES environment variable, the problems
13359 # vanish in a puff of smoke.
13360 if test "X${COLLECT_NAMES+set}" != Xset; then
13361 COLLECT_NAMES=
13362 export COLLECT_NAMES
13363 fi
13364 _LT_EOF
13366 esac
13369 ltmain="$ac_aux_dir/ltmain.sh"
13372 # We use sed instead of cat because bash on DJGPP gets confused if
13373 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13374 # text mode, it properly converts lines to CR/LF. This bash problem
13375 # is reportedly fixed, but why not run on old versions too?
13376 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13377 || (rm -f "$cfgfile"; exit 1)
13379 case $xsi_shell in
13380 yes)
13381 cat << \_LT_EOF >> "$cfgfile"
13383 # func_dirname file append nondir_replacement
13384 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13385 # otherwise set result to NONDIR_REPLACEMENT.
13386 func_dirname ()
13388 case ${1} in
13389 */*) func_dirname_result="${1%/*}${2}" ;;
13390 * ) func_dirname_result="${3}" ;;
13391 esac
13394 # func_basename file
13395 func_basename ()
13397 func_basename_result="${1##*/}"
13400 # func_dirname_and_basename file append nondir_replacement
13401 # perform func_basename and func_dirname in a single function
13402 # call:
13403 # dirname: Compute the dirname of FILE. If nonempty,
13404 # add APPEND to the result, otherwise set result
13405 # to NONDIR_REPLACEMENT.
13406 # value returned in "$func_dirname_result"
13407 # basename: Compute filename of FILE.
13408 # value retuned in "$func_basename_result"
13409 # Implementation must be kept synchronized with func_dirname
13410 # and func_basename. For efficiency, we do not delegate to
13411 # those functions but instead duplicate the functionality here.
13412 func_dirname_and_basename ()
13414 case ${1} in
13415 */*) func_dirname_result="${1%/*}${2}" ;;
13416 * ) func_dirname_result="${3}" ;;
13417 esac
13418 func_basename_result="${1##*/}"
13421 # func_stripname prefix suffix name
13422 # strip PREFIX and SUFFIX off of NAME.
13423 # PREFIX and SUFFIX must not contain globbing or regex special
13424 # characters, hashes, percent signs, but SUFFIX may contain a leading
13425 # dot (in which case that matches only a dot).
13426 func_stripname ()
13428 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13429 # positional parameters, so assign one to ordinary parameter first.
13430 func_stripname_result=${3}
13431 func_stripname_result=${func_stripname_result#"${1}"}
13432 func_stripname_result=${func_stripname_result%"${2}"}
13435 # func_opt_split
13436 func_opt_split ()
13438 func_opt_split_opt=${1%%=*}
13439 func_opt_split_arg=${1#*=}
13442 # func_lo2o object
13443 func_lo2o ()
13445 case ${1} in
13446 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13447 *) func_lo2o_result=${1} ;;
13448 esac
13451 # func_xform libobj-or-source
13452 func_xform ()
13454 func_xform_result=${1%.*}.lo
13457 # func_arith arithmetic-term...
13458 func_arith ()
13460 func_arith_result=$(( $* ))
13463 # func_len string
13464 # STRING may not start with a hyphen.
13465 func_len ()
13467 func_len_result=${#1}
13470 _LT_EOF
13472 *) # Bourne compatible functions.
13473 cat << \_LT_EOF >> "$cfgfile"
13475 # func_dirname file append nondir_replacement
13476 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13477 # otherwise set result to NONDIR_REPLACEMENT.
13478 func_dirname ()
13480 # Extract subdirectory from the argument.
13481 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13482 if test "X$func_dirname_result" = "X${1}"; then
13483 func_dirname_result="${3}"
13484 else
13485 func_dirname_result="$func_dirname_result${2}"
13486 fi
13489 # func_basename file
13490 func_basename ()
13492 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13496 # func_stripname prefix suffix name
13497 # strip PREFIX and SUFFIX off of NAME.
13498 # PREFIX and SUFFIX must not contain globbing or regex special
13499 # characters, hashes, percent signs, but SUFFIX may contain a leading
13500 # dot (in which case that matches only a dot).
13501 # func_strip_suffix prefix name
13502 func_stripname ()
13504 case ${2} in
13505 .*) func_stripname_result=`$ECHO "X${3}" \
13506 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13507 *) func_stripname_result=`$ECHO "X${3}" \
13508 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13509 esac
13512 # sed scripts:
13513 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13514 my_sed_long_arg='1s/^-[^=]*=//'
13516 # func_opt_split
13517 func_opt_split ()
13519 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13520 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13523 # func_lo2o object
13524 func_lo2o ()
13526 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13529 # func_xform libobj-or-source
13530 func_xform ()
13532 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13535 # func_arith arithmetic-term...
13536 func_arith ()
13538 func_arith_result=`expr "$@"`
13541 # func_len string
13542 # STRING may not start with a hyphen.
13543 func_len ()
13545 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13548 _LT_EOF
13549 esac
13551 case $lt_shell_append in
13552 yes)
13553 cat << \_LT_EOF >> "$cfgfile"
13555 # func_append var value
13556 # Append VALUE to the end of shell variable VAR.
13557 func_append ()
13559 eval "$1+=\$2"
13561 _LT_EOF
13564 cat << \_LT_EOF >> "$cfgfile"
13566 # func_append var value
13567 # Append VALUE to the end of shell variable VAR.
13568 func_append ()
13570 eval "$1=\$$1\$2"
13573 _LT_EOF
13575 esac
13578 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13579 || (rm -f "$cfgfile"; exit 1)
13581 mv -f "$cfgfile" "$ofile" ||
13582 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13583 chmod +x "$ofile"
13587 esac
13588 done # for ac_tag
13591 as_fn_exit 0
13592 _ACEOF
13593 ac_clean_files=$ac_clean_files_save
13595 test $ac_write_fail = 0 ||
13596 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13599 # configure is writing to config.log, and then calls config.status.
13600 # config.status does its own redirection, appending to config.log.
13601 # Unfortunately, on DOS this fails, as config.log is still kept open
13602 # by configure, so config.status won't be able to write to it; its
13603 # output is simply discarded. So we exec the FD to /dev/null,
13604 # effectively closing config.log, so it can be properly (re)opened and
13605 # appended to by config.status. When coming back to configure, we
13606 # need to make the FD available again.
13607 if test "$no_create" != yes; then
13608 ac_cs_success=:
13609 ac_config_status_args=
13610 test "$silent" = yes &&
13611 ac_config_status_args="$ac_config_status_args --quiet"
13612 exec 5>/dev/null
13613 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13614 exec 5>>config.log
13615 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13616 # would make configure fail if this is the last instruction.
13617 $ac_cs_success || as_fn_exit 1
13618 fi
13619 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13621 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13622 fi