blob: cd6f1425e87aca3e55c8db252ff21d2d477673fa [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for iptables 1.4.3.2.
4@%:@
5@%:@
6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7@%:@
8@%:@
9@%:@ This configure script is free software; the Free Software Foundation
10@%:@ gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in @%:@(
26 *posix*) :
27 set -o posix ;; @%:@(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in @%:@(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in @%:@((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in @%:@ ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in @%:@(
170 *posix*) :
171 set -o posix ;; @%:@(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in @%:@(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in @%:@ ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285@%:@ as_fn_unset VAR
286@%:@ ---------------
287@%:@ Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294@%:@ as_fn_set_status STATUS
295@%:@ -----------------------
296@%:@ Set @S|@? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} @%:@ as_fn_set_status
301
302@%:@ as_fn_exit STATUS
303@%:@ -----------------
304@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} @%:@ as_fn_exit
311
312@%:@ as_fn_mkdir_p
313@%:@ -------------
314@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} @%:@ as_fn_mkdir_p
359
360@%:@ as_fn_executable_p FILE
361@%:@ -----------------------
362@%:@ Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} @%:@ as_fn_executable_p
367@%:@ as_fn_append VAR VALUE
368@%:@ ----------------------
369@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
370@%:@ advantage of any shell optimizations that allow amortized linear growth over
371@%:@ repeated appends, instead of the typical quadratic growth present in naive
372@%:@ implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385@%:@ as_fn_arith ARG...
386@%:@ ------------------
387@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
388@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
389@%:@ must be portable across @S|@(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
404@%:@ ----------------------------------------
405@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407@%:@ script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} @%:@ as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in @%:@(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557
558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
561case X$ECHO in
562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
565 ;;
566esac
567
568echo=${ECHO-echo}
569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
575elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $echo works!
577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<EOF
587$*
588EOF
589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595
596if test -z "$ECHO"; then
597if test "X${echo_test_string+set}" != Xset; then
598# find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
602 echo_test_string=`eval $cmd` &&
603 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
604 then
605 break
606 fi
607 done
608fi
609
610if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 :
614else
615 # The Solaris, AIX, and Digital Unix default echo programs unquote
616 # backslashes. This makes it impossible to quote backslashes using
617 # echo "$something" | sed 's/\\/\\\\/g'
618 #
619 # So, first we look for a working echo in the user's PATH.
620
621 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
622 for dir in $PATH /usr/ucb; do
623 IFS="$lt_save_ifs"
624 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
625 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 echo="$dir/echo"
629 break
630 fi
631 done
632 IFS="$lt_save_ifs"
633
634 if test "X$echo" = Xecho; then
635 # We didn't find a better echo, so look for alternatives.
636 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # This shell has a builtin print -r that does the trick.
640 echo='print -r'
641 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
642 test "X$CONFIG_SHELL" != X/bin/ksh; then
643 # If we have ksh, try running configure again with it.
644 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
645 export ORIGINAL_CONFIG_SHELL
646 CONFIG_SHELL=/bin/ksh
647 export CONFIG_SHELL
648 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 else
650 # Try using printf.
651 echo='printf %s\n'
652 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # Cool, printf works
656 :
657 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658 test "X$echo_testing_string" = 'X\t' &&
659 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
661 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 export CONFIG_SHELL
663 SHELL="$CONFIG_SHELL"
664 export SHELL
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
667 test "X$echo_testing_string" = 'X\t' &&
668 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
669 test "X$echo_testing_string" = "X$echo_test_string"; then
670 echo="$CONFIG_SHELL $0 --fallback-echo"
671 else
672 # maybe with a smaller string...
673 prev=:
674
675 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
676 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
677 then
678 break
679 fi
680 prev="$cmd"
681 done
682
683 if test "$prev" != 'sed 50q "$0"'; then
684 echo_test_string=`eval $prev`
685 export echo_test_string
686 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 else
688 # Oops. We lost completely, so just stick with echo.
689 echo=echo
690 fi
691 fi
692 fi
693 fi
694fi
695fi
696
697# Copy echo and quote the copy suitably for passing to libtool from
698# the Makefile, instead of quoting the original, which is used later.
699ECHO=$echo
700if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
701 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702fi
703
704
705
706
707tagnames=${tagnames+${tagnames},}CXX
708
709tagnames=${tagnames+${tagnames},}F77
710
711test -n "$DJDIR" || exec 7<&0 </dev/null
712exec 6>&1
713
714# Name of the host.
715# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
716# so uname gets run too.
717ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718
719#
720# Initializations.
721#
722ac_default_prefix=/usr/local
723ac_clean_files=
724ac_config_libobj_dir=.
725LIB@&t@OBJS=
726cross_compiling=no
727subdirs=
728MFLAGS=
729MAKEFLAGS=
730
731# Identity of this package.
732PACKAGE_NAME='iptables'
733PACKAGE_TARNAME='iptables'
734PACKAGE_VERSION='1.4.3.2'
735PACKAGE_STRING='iptables 1.4.3.2'
736PACKAGE_BUGREPORT=''
737PACKAGE_URL=''
738
739# Factoring default headers for most tests.
740ac_includes_default="\
741#include <stdio.h>
742#ifdef HAVE_SYS_TYPES_H
743# include <sys/types.h>
744#endif
745#ifdef HAVE_SYS_STAT_H
746# include <sys/stat.h>
747#endif
748#ifdef STDC_HEADERS
749# include <stdlib.h>
750# include <stddef.h>
751#else
752# ifdef HAVE_STDLIB_H
753# include <stdlib.h>
754# endif
755#endif
756#ifdef HAVE_STRING_H
757# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758# include <memory.h>
759# endif
760# include <string.h>
761#endif
762#ifdef HAVE_STRINGS_H
763# include <strings.h>
764#endif
765#ifdef HAVE_INTTYPES_H
766# include <inttypes.h>
767#endif
768#ifdef HAVE_STDINT_H
769# include <stdint.h>
770#endif
771#ifdef HAVE_UNISTD_H
772# include <unistd.h>
773#endif"
774
775ac_subst_vars='LTLIBOBJS
776LIB@&t@OBJS
777libxtables_vmajor
778libxtables_vage
779libxtables_vcurrent
780pkgconfigdir
781xtlibdir
782ksourcedir
783kbuilddir
784kinclude_CFLAGS
785regular_CFLAGS
786ENABLE_LIBIPQ_FALSE
787ENABLE_LIBIPQ_TRUE
788ENABLE_DEVEL_FALSE
789ENABLE_DEVEL_TRUE
790ENABLE_IPV6_FALSE
791ENABLE_IPV6_TRUE
792ENABLE_IPV4_FALSE
793ENABLE_IPV4_TRUE
794ENABLE_SHARED_FALSE
795ENABLE_SHARED_TRUE
796ENABLE_STATIC_FALSE
797ENABLE_STATIC_TRUE
798blacklist_modules
799LIBTOOL
800ac_ct_F77
801FFLAGS
802F77
803CXXCPP
804am__fastdepCXX_FALSE
805am__fastdepCXX_TRUE
806CXXDEPMODE
807ac_ct_CXX
808CXXFLAGS
809CXX
810CPP
811NMEDIT
812DSYMUTIL
813RANLIB
814AR
815ECHO
816LN_S
817EGREP
818GREP
819SED
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
828am__fastdepCC_FALSE
829am__fastdepCC_TRUE
830CCDEPMODE
831AMDEPBACKSLASH
832AMDEP_FALSE
833AMDEP_TRUE
834am__quote
835am__include
836DEPDIR
837OBJEXT
838EXEEXT
839ac_ct_CC
840CPPFLAGS
841LDFLAGS
842CFLAGS
843CC
844am__untar
845am__tar
846AMTAR
847am__leading_dot
848SET_MAKE
849AWK
850mkdir_p
851MKDIR_P
852INSTALL_STRIP_PROGRAM
853STRIP
854install_sh
855MAKEINFO
856AUTOHEADER
857AUTOMAKE
858AUTOCONF
859ACLOCAL
860VERSION
861PACKAGE
862CYGPATH_W
863am__isrc
864INSTALL_DATA
865INSTALL_SCRIPT
866INSTALL_PROGRAM
867target_alias
868host_alias
869build_alias
870LIBS
871ECHO_T
872ECHO_N
873ECHO_C
874DEFS
875mandir
876localedir
877libdir
878psdir
879pdfdir
880dvidir
881htmldir
882infodir
883docdir
884oldincludedir
885includedir
886localstatedir
887sharedstatedir
888sysconfdir
889datadir
890datarootdir
891libexecdir
892sbindir
893bindir
894program_transform_name
895prefix
896exec_prefix
897PACKAGE_URL
898PACKAGE_BUGREPORT
899PACKAGE_STRING
900PACKAGE_VERSION
901PACKAGE_TARNAME
902PACKAGE_NAME
903PATH_SEPARATOR
904SHELL'
905ac_subst_files=''
906ac_user_opts='
907enable_option_checking
908enable_dependency_tracking
909enable_static
910enable_shared
911enable_fast_install
912with_gnu_ld
913enable_libtool_lock
914with_pic
915with_tags
916with_kernel
917with_kbuild
918with_ksource
919with_xtlibdir
920enable_ipv4
921enable_ipv6
922enable_devel
923enable_libipq
924with_pkgconfigdir
925'
926 ac_precious_vars='build_alias
927host_alias
928target_alias
929CC
930CFLAGS
931LDFLAGS
932LIBS
933CPPFLAGS
934CPP
935CXX
936CXXFLAGS
937CCC
938CXXCPP
939F77
940FFLAGS'
941
942
943# Initialize some variables set by options.
944ac_init_help=
945ac_init_version=false
946ac_unrecognized_opts=
947ac_unrecognized_sep=
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *=) ac_optarg= ;;
1005 *) ac_optarg=yes ;;
1006 esac
1007
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1009
1010 case $ac_dashdash$ac_option in
1011 --)
1012 ac_dashdash=yes ;;
1013
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 ac_prev=bindir ;;
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1018
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1023
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1030
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1033
1034 -datadir | --datadir | --datadi | --datad)
1035 ac_prev=datadir ;;
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1038
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1045
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1054 *"
1055"enable_$ac_useropt"
1056"*) ;;
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1059 esac
1060 eval enable_$ac_useropt=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1071
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081"enable_$ac_useropt"
1082"*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1284 *"
1285"with_$ac_useropt"
1286"*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=\$ac_optarg ;;
1291
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327Try \`$0 --help' for more information"
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1336 esac
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1346 ;;
1347
1348 esac
1349done
1350
1351if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1354fi
1355
1356if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1358 no) ;;
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 esac
1362fi
1363
1364# Check all directory arguments for consistency.
1365for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1369do
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1372 case $ac_val in
1373 */ )
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1376 esac
1377 # Be sure to have absolute directory names.
1378 case $ac_val in
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1381 esac
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1383done
1384
1385# There might be people who depend on the old broken behavior: `$host'
1386# used to hold the argument of --host etc.
1387# FIXME: To remove some day.
1388build=$build_alias
1389host=$host_alias
1390target=$target_alias
1391
1392# FIXME: To remove some day.
1393if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 elif test "x$build_alias" != "x$host_alias"; then
1397 cross_compiling=yes
1398 fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410 as_fn_error $? "working directory cannot be determined"
1411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1412 as_fn_error $? "pwd does not report name of working directory"
1413
1414
1415# Find the source files, if location was not specified.
1416if test -z "$srcdir"; then
1417 ac_srcdir_defaulted=yes
1418 # Try the directory containing this script, then the parent directory.
1419 ac_confdir=`$as_dirname -- "$as_myself" ||
1420$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1421 X"$as_myself" : 'X\(//\)[^/]' \| \
1422 X"$as_myself" : 'X\(//\)$' \| \
1423 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1424$as_echo X"$as_myself" |
1425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1426 s//\1/
1427 q
1428 }
1429 /^X\(\/\/\)[^/].*/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)$/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\).*/{
1438 s//\1/
1439 q
1440 }
1441 s/.*/./; q'`
1442 srcdir=$ac_confdir
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 srcdir=..
1445 fi
1446else
1447 ac_srcdir_defaulted=no
1448fi
1449if test ! -r "$srcdir/$ac_unique_file"; then
1450 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1451 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1452fi
1453ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1454ac_abs_confdir=`(
1455 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1456 pwd)`
1457# When building in place, set srcdir=.
1458if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 srcdir=.
1460fi
1461# Remove unnecessary trailing slashes from srcdir.
1462# Double slashes in file names in object file debugging info
1463# mess up M-x gdb in Emacs.
1464case $srcdir in
1465*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466esac
1467for ac_var in $ac_precious_vars; do
1468 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_env_${ac_var}_value=\$${ac_var}
1470 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1472done
1473
1474#
1475# Report the --help message.
1476#
1477if test "$ac_init_help" = "long"; then
1478 # Omit some internal or obsolete options to make the list less imposing.
1479 # This message is too long to be a string in the A/UX 3.1 sh.
1480 cat <<_ACEOF
1481\`configure' configures iptables 1.4.3.2 to adapt to many kinds of systems.
1482
1483Usage: $0 [OPTION]... [VAR=VALUE]...
1484
1485To assign environment variables (e.g., CC, CFLAGS...), specify them as
1486VAR=VALUE. See below for descriptions of some of the useful variables.
1487
1488Defaults for the options are specified in brackets.
1489
1490Configuration:
1491 -h, --help display this help and exit
1492 --help=short display options specific to this package
1493 --help=recursive display the short help of all the included packages
1494 -V, --version display version information and exit
1495 -q, --quiet, --silent do not print \`checking ...' messages
1496 --cache-file=FILE cache test results in FILE [disabled]
1497 -C, --config-cache alias for \`--cache-file=config.cache'
1498 -n, --no-create do not create output files
1499 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500
1501Installation directories:
1502 --prefix=PREFIX install architecture-independent files in PREFIX
1503 @<:@@S|@ac_default_prefix@:>@
1504 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 @<:@PREFIX@:>@
1506
1507By default, \`make install' will install all the files in
1508\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1509an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1510for instance \`--prefix=\$HOME'.
1511
1512For better control, use the options below.
1513
1514Fine tuning of the installation directories:
1515 --bindir=DIR user executables [EPREFIX/bin]
1516 --sbindir=DIR system admin executables [EPREFIX/sbin]
1517 --libexecdir=DIR program executables [EPREFIX/libexec]
1518 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1519 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1520 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1521 --libdir=DIR object code libraries [EPREFIX/lib]
1522 --includedir=DIR C header files [PREFIX/include]
1523 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1524 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1525 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1526 --infodir=DIR info documentation [DATAROOTDIR/info]
1527 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1528 --mandir=DIR man documentation [DATAROOTDIR/man]
1529 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/iptables@:>@
1530 --htmldir=DIR html documentation [DOCDIR]
1531 --dvidir=DIR dvi documentation [DOCDIR]
1532 --pdfdir=DIR pdf documentation [DOCDIR]
1533 --psdir=DIR ps documentation [DOCDIR]
1534_ACEOF
1535
1536 cat <<\_ACEOF
1537
1538Program names:
1539 --program-prefix=PREFIX prepend PREFIX to installed program names
1540 --program-suffix=SUFFIX append SUFFIX to installed program names
1541 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542
1543System types:
1544 --build=BUILD configure for building on BUILD [guessed]
1545 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1546_ACEOF
1547fi
1548
1549if test -n "$ac_init_help"; then
1550 case $ac_init_help in
1551 short | recursive ) echo "Configuration of iptables 1.4.3.2:";;
1552 esac
1553 cat <<\_ACEOF
1554
1555Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1562 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1563 --enable-fast-install@<:@=PKGS@:>@
1564 optimize for fast installation @<:@default=yes@:>@
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1566 --disable-ipv4 Do not build iptables
1567 --disable-ipv6 Do not build ip6tables
1568 --enable-devel Install Xtables development headers
1569 --enable-libipq Build and install libipq
1570
1571Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1575 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1576 both@:>@
1577 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1578 --with-kernel=PATH Path to kernel source/build directory
1579 --with-kbuild=PATH Path to kernel build directory
1580 @<:@@<:@/lib/modules/CURRENT/build@:>@@:>@
1581 --with-ksource=PATH Path to kernel source directory
1582 @<:@@<:@/lib/modules/CURRENT/source@:>@@:>@
1583 --with-xtlibdir=PATH Path where to install Xtables extensions
1584 @<:@@<:@LIBEXECDIR/xtables@:>@@:>@
1585 --with-pkgconfigdir=PATH
1586 Path to the pkgconfig directory @<:@@<:@LIBDIR/pkgconfig@:>@@:>@
1587
1588Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 CXX C++ compiler command
1598 CXXFLAGS C++ compiler flags
1599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
1602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
1606Report bugs to the package provider.
1607_ACEOF
1608ac_status=$?
1609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1618
1619case "$ac_dir" in
1620.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621*)
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629esac
1630ac_abs_top_builddir=$ac_pwd
1631ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632# for backward compatibility:
1633ac_top_builddir=$ac_top_build_prefix
1634
1635case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648esac
1649ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
1659 else
1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
1663 done
1664fi
1665
1666test -n "$ac_init_help" && exit $ac_status
1667if $ac_init_version; then
1668 cat <<\_ACEOF
1669iptables configure 1.4.3.2
1670generated by GNU Autoconf 2.69
1671
1672Copyright (C) 2012 Free Software Foundation, Inc.
1673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
1675_ACEOF
1676 exit
1677fi
1678
1679## ------------------------ ##
1680## Autoconf initialization. ##
1681## ------------------------ ##
1682
1683@%:@ ac_fn_c_try_compile LINENO
1684@%:@ --------------------------
1685@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1686ac_fn_c_try_compile ()
1687{
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext
1690 if { { ac_try="$ac_compile"
1691case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_compile") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest.$ac_objext; then :
1709 ac_retval=0
1710else
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719} @%:@ ac_fn_c_try_compile
1720
1721@%:@ ac_fn_c_try_link LINENO
1722@%:@ -----------------------
1723@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1724ac_fn_c_try_link ()
1725{
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext conftest$ac_exeext
1728 if { { ac_try="$ac_link"
1729case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732esac
1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734$as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1741 fi
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest$ac_exeext && {
1747 test "$cross_compiling" = yes ||
1748 test -x conftest$ac_exeext
1749 }; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1758 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1759 # interfere with the next link command; also delete a directory that is
1760 # left behind by Apple's compiler. We do this before executing the actions.
1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1764
1765} @%:@ ac_fn_c_try_link
1766
1767@%:@ ac_fn_c_try_cpp LINENO
1768@%:@ ----------------------
1769@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1770ac_fn_c_try_cpp ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 if { { ac_try="$ac_cpp conftest.$ac_ext"
1774case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } > conftest.i && {
1789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1790 test ! -s conftest.err
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802} @%:@ ac_fn_c_try_cpp
1803
1804@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805@%:@ -------------------------------------------------------
1806@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807@%:@ the include files in INCLUDES and setting the cache variable VAR
1808@%:@ accordingly.
1809ac_fn_c_check_header_mongrel ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if eval \${$3+:} false; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814$as_echo_n "checking for $2... " >&6; }
1815if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817fi
1818eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821else
1822 # Is the header compilable?
1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824$as_echo_n "checking $2 usability... " >&6; }
1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826/* end confdefs.h. */
1827$4
1828@%:@include <$2>
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1832else
1833 ac_header_compiler=no
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837$as_echo "$ac_header_compiler" >&6; }
1838
1839# Is the header present?
1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841$as_echo_n "checking $2 presence... " >&6; }
1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843/* end confdefs.h. */
1844@%:@include <$2>
1845_ACEOF
1846if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1848else
1849 ac_header_preproc=no
1850fi
1851rm -f conftest.err conftest.i conftest.$ac_ext
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853$as_echo "$ac_header_preproc" >&6; }
1854
1855# So? What about this header?
1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857 yes:no: )
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 ;;
1863 no:yes:* )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ;;
1875esac
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877$as_echo_n "checking for $2... " >&6; }
1878if eval \${$3+:} false; then :
1879 $as_echo_n "(cached) " >&6
1880else
1881 eval "$3=\$ac_header_compiler"
1882fi
1883eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885$as_echo "$ac_res" >&6; }
1886fi
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889} @%:@ ac_fn_c_check_header_mongrel
1890
1891@%:@ ac_fn_c_try_run LINENO
1892@%:@ ----------------------
1893@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1894@%:@ that executables *can* be run.
1895ac_fn_c_try_run ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_link"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_link") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1909 { { case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_try") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; }; }; then :
1919 ac_retval=0
1920else
1921 $as_echo "$as_me: program exited with status $ac_status" >&5
1922 $as_echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 ac_retval=$ac_status
1926fi
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 as_fn_set_status $ac_retval
1930
1931} @%:@ ac_fn_c_try_run
1932
1933@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1934@%:@ -------------------------------------------------------
1935@%:@ Tests whether HEADER exists and can be compiled using the include files in
1936@%:@ INCLUDES, setting the cache variable VAR accordingly.
1937ac_fn_c_check_header_compile ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946/* end confdefs.h. */
1947$4
1948@%:@include <$2>
1949_ACEOF
1950if ac_fn_c_try_compile "$LINENO"; then :
1951 eval "$3=yes"
1952else
1953 eval "$3=no"
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956fi
1957eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961
1962} @%:@ ac_fn_c_check_header_compile
1963
1964@%:@ ac_fn_c_check_func LINENO FUNC VAR
1965@%:@ ----------------------------------
1966@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1967ac_fn_c_check_func ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1974else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1979#define $2 innocuous_$2
1980
1981/* System header to define __stub macros and hopefully few prototypes,
1982 which can conflict with char $2 (); below.
1983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1984 <limits.h> exists even on freestanding compilers. */
1985
1986#ifdef __STDC__
1987# include <limits.h>
1988#else
1989# include <assert.h>
1990#endif
1991
1992#undef $2
1993
1994/* Override any GCC internal prototype to avoid an error.
1995 Use char because int might match the return type of a GCC
1996 builtin and then its argument prototype would still apply. */
1997#ifdef __cplusplus
1998extern "C"
1999#endif
2000char $2 ();
2001/* The GNU C library defines this for functions which it implements
2002 to always fail with ENOSYS. Some functions are actually named
2003 something starting with __ and the normal name is an alias. */
2004#if defined __stub_$2 || defined __stub___$2
2005choke me
2006#endif
2007
2008int
2009main ()
2010{
2011return $2 ();
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016if ac_fn_c_try_link "$LINENO"; then :
2017 eval "$3=yes"
2018else
2019 eval "$3=no"
2020fi
2021rm -f core conftest.err conftest.$ac_objext \
2022 conftest$ac_exeext conftest.$ac_ext
2023fi
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028
2029} @%:@ ac_fn_c_check_func
2030
2031@%:@ ac_fn_cxx_try_compile LINENO
2032@%:@ ----------------------------
2033@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2034ac_fn_cxx_try_compile ()
2035{
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext
2038 if { { ac_try="$ac_compile"
2039case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042esac
2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044$as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_compile") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_cxx_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest.$ac_objext; then :
2057 ac_retval=0
2058else
2059 $as_echo "$as_me: failed program was:" >&5
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 ac_retval=1
2063fi
2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2065 as_fn_set_status $ac_retval
2066
2067} @%:@ ac_fn_cxx_try_compile
2068
2069@%:@ ac_fn_cxx_try_cpp LINENO
2070@%:@ ------------------------
2071@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2072ac_fn_cxx_try_cpp ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_cpp conftest.$ac_ext"
2076case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079esac
2080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081$as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2083 ac_status=$?
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2088 fi
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } > conftest.i && {
2091 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2092 test ! -s conftest.err
2093 }; then :
2094 ac_retval=0
2095else
2096 $as_echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_retval=1
2100fi
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 as_fn_set_status $ac_retval
2103
2104} @%:@ ac_fn_cxx_try_cpp
2105
2106@%:@ ac_fn_cxx_try_link LINENO
2107@%:@ -------------------------
2108@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2109ac_fn_cxx_try_link ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 rm -f conftest.$ac_objext conftest$ac_exeext
2113 if { { ac_try="$ac_link"
2114case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2117esac
2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119$as_echo "$ac_try_echo"; } >&5
2120 (eval "$ac_link") 2>conftest.err
2121 ac_status=$?
2122 if test -s conftest.err; then
2123 grep -v '^ *+' conftest.err >conftest.er1
2124 cat conftest.er1 >&5
2125 mv -f conftest.er1 conftest.err
2126 fi
2127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128 test $ac_status = 0; } && {
2129 test -z "$ac_cxx_werror_flag" ||
2130 test ! -s conftest.err
2131 } && test -s conftest$ac_exeext && {
2132 test "$cross_compiling" = yes ||
2133 test -x conftest$ac_exeext
2134 }; then :
2135 ac_retval=0
2136else
2137 $as_echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140 ac_retval=1
2141fi
2142 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2143 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2144 # interfere with the next link command; also delete a directory that is
2145 # left behind by Apple's compiler. We do this before executing the actions.
2146 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 as_fn_set_status $ac_retval
2149
2150} @%:@ ac_fn_cxx_try_link
2151
2152@%:@ ac_fn_f77_try_compile LINENO
2153@%:@ ----------------------------
2154@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2155ac_fn_f77_try_compile ()
2156{
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 rm -f conftest.$ac_objext
2159 if { { ac_try="$ac_compile"
2160case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2163esac
2164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165$as_echo "$ac_try_echo"; } >&5
2166 (eval "$ac_compile") 2>conftest.err
2167 ac_status=$?
2168 if test -s conftest.err; then
2169 grep -v '^ *+' conftest.err >conftest.er1
2170 cat conftest.er1 >&5
2171 mv -f conftest.er1 conftest.err
2172 fi
2173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2174 test $ac_status = 0; } && {
2175 test -z "$ac_f77_werror_flag" ||
2176 test ! -s conftest.err
2177 } && test -s conftest.$ac_objext; then :
2178 ac_retval=0
2179else
2180 $as_echo "$as_me: failed program was:" >&5
2181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183 ac_retval=1
2184fi
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 as_fn_set_status $ac_retval
2187
2188} @%:@ ac_fn_f77_try_compile
2189
2190@%:@ ac_fn_f77_try_link LINENO
2191@%:@ -------------------------
2192@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2193ac_fn_f77_try_link ()
2194{
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 rm -f conftest.$ac_objext conftest$ac_exeext
2197 if { { ac_try="$ac_link"
2198case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201esac
2202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203$as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_link") 2>conftest.err
2205 ac_status=$?
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2210 fi
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } && {
2213 test -z "$ac_f77_werror_flag" ||
2214 test ! -s conftest.err
2215 } && test -s conftest$ac_exeext && {
2216 test "$cross_compiling" = yes ||
2217 test -x conftest$ac_exeext
2218 }; then :
2219 ac_retval=0
2220else
2221 $as_echo "$as_me: failed program was:" >&5
2222sed 's/^/| /' conftest.$ac_ext >&5
2223
2224 ac_retval=1
2225fi
2226 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2227 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2228 # interfere with the next link command; also delete a directory that is
2229 # left behind by Apple's compiler. We do this before executing the actions.
2230 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2231 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 as_fn_set_status $ac_retval
2233
2234} @%:@ ac_fn_f77_try_link
2235cat >config.log <<_ACEOF
2236This file contains any messages produced by compilers while
2237running configure, to aid debugging if configure makes a mistake.
2238
2239It was created by iptables $as_me 1.4.3.2, which was
2240generated by GNU Autoconf 2.69. Invocation command line was
2241
2242 $ $0 $@
2243
2244_ACEOF
2245exec 5>>config.log
2246{
2247cat <<_ASUNAME
2248## --------- ##
2249## Platform. ##
2250## --------- ##
2251
2252hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256uname -v = `(uname -v) 2>/dev/null || echo unknown`
2257
2258/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2260
2261/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2262/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2263/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2264/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2265/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2266/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2267/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2268
2269_ASUNAME
2270
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 $as_echo "PATH: $as_dir"
2277 done
2278IFS=$as_save_IFS
2279
2280} >&5
2281
2282cat >&5 <<_ACEOF
2283
2284
2285## ----------- ##
2286## Core tests. ##
2287## ----------- ##
2288
2289_ACEOF
2290
2291
2292# Keep a trace of the command line.
2293# Strip out --no-create and --no-recursion so they do not pile up.
2294# Strip out --silent because we don't want to record it for future runs.
2295# Also quote any args containing shell meta-characters.
2296# Make two passes to allow for proper duplicate-argument suppression.
2297ac_configure_args=
2298ac_configure_args0=
2299ac_configure_args1=
2300ac_must_keep_next=false
2301for ac_pass in 1 2
2302do
2303 for ac_arg
2304 do
2305 case $ac_arg in
2306 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308 | -silent | --silent | --silen | --sile | --sil)
2309 continue ;;
2310 *\'*)
2311 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 esac
2313 case $ac_pass in
2314 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2315 2)
2316 as_fn_append ac_configure_args1 " '$ac_arg'"
2317 if test $ac_must_keep_next = true; then
2318 ac_must_keep_next=false # Got value, back to normal.
2319 else
2320 case $ac_arg in
2321 *=* | --config-cache | -C | -disable-* | --disable-* \
2322 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324 | -with-* | --with-* | -without-* | --without-* | --x)
2325 case "$ac_configure_args0 " in
2326 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327 esac
2328 ;;
2329 -* ) ac_must_keep_next=true ;;
2330 esac
2331 fi
2332 as_fn_append ac_configure_args " '$ac_arg'"
2333 ;;
2334 esac
2335 done
2336done
2337{ ac_configure_args0=; unset ac_configure_args0;}
2338{ ac_configure_args1=; unset ac_configure_args1;}
2339
2340# When interrupted or exit'd, cleanup temporary files, and complete
2341# config.log. We remove comments because anyway the quotes in there
2342# would cause problems or look ugly.
2343# WARNING: Use '\'' to represent an apostrophe within the trap.
2344# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345trap 'exit_status=$?
2346 # Save into config.log some information that might help in debugging.
2347 {
2348 echo
2349
2350 $as_echo "## ---------------- ##
2351## Cache variables. ##
2352## ---------------- ##"
2353 echo
2354 # The following way of writing the cache mishandles newlines in values,
2355(
2356 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2357 eval ac_val=\$$ac_var
2358 case $ac_val in #(
2359 *${as_nl}*)
2360 case $ac_var in #(
2361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 esac
2364 case $ac_var in #(
2365 _ | IFS | as_nl) ;; #(
2366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2367 *) { eval $ac_var=; unset $ac_var;} ;;
2368 esac ;;
2369 esac
2370 done
2371 (set) 2>&1 |
2372 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2373 *${as_nl}ac_space=\ *)
2374 sed -n \
2375 "s/'\''/'\''\\\\'\'''\''/g;
2376 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 ;; #(
2378 *)
2379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2380 ;;
2381 esac |
2382 sort
2383)
2384 echo
2385
2386 $as_echo "## ----------------- ##
2387## Output variables. ##
2388## ----------------- ##"
2389 echo
2390 for ac_var in $ac_subst_vars
2391 do
2392 eval ac_val=\$$ac_var
2393 case $ac_val in
2394 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 esac
2396 $as_echo "$ac_var='\''$ac_val'\''"
2397 done | sort
2398 echo
2399
2400 if test -n "$ac_subst_files"; then
2401 $as_echo "## ------------------- ##
2402## File substitutions. ##
2403## ------------------- ##"
2404 echo
2405 for ac_var in $ac_subst_files
2406 do
2407 eval ac_val=\$$ac_var
2408 case $ac_val in
2409 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 esac
2411 $as_echo "$ac_var='\''$ac_val'\''"
2412 done | sort
2413 echo
2414 fi
2415
2416 if test -s confdefs.h; then
2417 $as_echo "## ----------- ##
2418## confdefs.h. ##
2419## ----------- ##"
2420 echo
2421 cat confdefs.h
2422 echo
2423 fi
2424 test "$ac_signal" != 0 &&
2425 $as_echo "$as_me: caught signal $ac_signal"
2426 $as_echo "$as_me: exit $exit_status"
2427 } >&5
2428 rm -f core *.core core.conftest.* &&
2429 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2430 exit $exit_status
2431' 0
2432for ac_signal in 1 2 13 15; do
2433 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2434done
2435ac_signal=0
2436
2437# confdefs.h avoids OS command line length limits that DEFS can exceed.
2438rm -f -r conftest* confdefs.h
2439
2440$as_echo "/* confdefs.h */" > confdefs.h
2441
2442# Predefined preprocessor variables.
2443
2444cat >>confdefs.h <<_ACEOF
2445@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2446_ACEOF
2447
2448cat >>confdefs.h <<_ACEOF
2449@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2450_ACEOF
2451
2452cat >>confdefs.h <<_ACEOF
2453@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2454_ACEOF
2455
2456cat >>confdefs.h <<_ACEOF
2457@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465@%:@define PACKAGE_URL "$PACKAGE_URL"
2466_ACEOF
2467
2468
2469# Let the site file select an alternate cache file if it wants to.
2470# Prefer an explicitly selected file to automatically selected ones.
2471ac_site_file1=NONE
2472ac_site_file2=NONE
2473if test -n "$CONFIG_SITE"; then
2474 # We do not want a PATH search for config.site.
2475 case $CONFIG_SITE in @%:@((
2476 -*) ac_site_file1=./$CONFIG_SITE;;
2477 */*) ac_site_file1=$CONFIG_SITE;;
2478 *) ac_site_file1=./$CONFIG_SITE;;
2479 esac
2480elif test "x$prefix" != xNONE; then
2481 ac_site_file1=$prefix/share/config.site
2482 ac_site_file2=$prefix/etc/config.site
2483else
2484 ac_site_file1=$ac_default_prefix/share/config.site
2485 ac_site_file2=$ac_default_prefix/etc/config.site
2486fi
2487for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2488do
2489 test "x$ac_site_file" = xNONE && continue
2490 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2492$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2493 sed 's/^/| /' "$ac_site_file" >&5
2494 . "$ac_site_file" \
2495 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497as_fn_error $? "failed to load site script $ac_site_file
2498See \`config.log' for more details" "$LINENO" 5; }
2499 fi
2500done
2501
2502if test -r "$cache_file"; then
2503 # Some versions of bash will fail to source /dev/null (special files
2504 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2505 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2507$as_echo "$as_me: loading cache $cache_file" >&6;}
2508 case $cache_file in
2509 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2510 *) . "./$cache_file";;
2511 esac
2512 fi
2513else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2515$as_echo "$as_me: creating cache $cache_file" >&6;}
2516 >$cache_file
2517fi
2518
2519# Check that the precious variables saved in the cache have kept the same
2520# value.
2521ac_cache_corrupted=false
2522for ac_var in $ac_precious_vars; do
2523 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2524 eval ac_new_set=\$ac_env_${ac_var}_set
2525 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2526 eval ac_new_val=\$ac_env_${ac_var}_value
2527 case $ac_old_set,$ac_new_set in
2528 set,)
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2530$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2531 ac_cache_corrupted=: ;;
2532 ,set)
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2534$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2535 ac_cache_corrupted=: ;;
2536 ,);;
2537 *)
2538 if test "x$ac_old_val" != "x$ac_new_val"; then
2539 # differences in whitespace do not lead to failure.
2540 ac_old_val_w=`echo x $ac_old_val`
2541 ac_new_val_w=`echo x $ac_new_val`
2542 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2544$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2545 ac_cache_corrupted=:
2546 else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2548$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2549 eval $ac_var=\$ac_old_val
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2552$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2554$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2555 fi;;
2556 esac
2557 # Pass precious variables to config.status.
2558 if test "$ac_new_set" = set; then
2559 case $ac_new_val in
2560 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2561 *) ac_arg=$ac_var=$ac_new_val ;;
2562 esac
2563 case " $ac_configure_args " in
2564 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2565 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2566 esac
2567 fi
2568done
2569if $ac_cache_corrupted; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2573$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2574 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575fi
2576## -------------------- ##
2577## Main body of script. ##
2578## -------------------- ##
2579
2580ac_ext=c
2581ac_cpp='$CPP $CPPFLAGS'
2582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584ac_compiler_gnu=$ac_cv_c_compiler_gnu
2585
2586
2587
2588# See libtool.info "Libtool's versioning system"
2589libxtables_vcurrent=2
2590libxtables_vage=0
2591
2592ac_config_headers="$ac_config_headers config.h"
2593
2594
2595ac_aux_dir=
2596for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2609 fi
2610done
2611if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613fi
2614
2615# These three variables are undocumented and unsupported,
2616# and are intended to be withdrawn in a future Autoconf release.
2617# They can cause serious problems if a builder's source tree is in a directory
2618# whose full name contains unusual characters.
2619ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622
2623
2624# Find a good install program. We prefer a C program (faster),
2625# so one script is as good as another. But avoid the broken or
2626# incompatible versions:
2627# SysV /etc/install, /usr/sbin/install
2628# SunOS /usr/etc/install
2629# IRIX /sbin/install
2630# AIX /bin/install
2631# AmigaOS /C/install, which installs bootblocks on floppy discs
2632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2635# OS/2's system install, which has a completely different semantic
2636# ./install, which can be erroneously created by make from ./install.sh.
2637# Reject install programs that cannot install multiple files.
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2639$as_echo_n "checking for a BSD-compatible install... " >&6; }
2640if test -z "$INSTALL"; then
2641if ${ac_cv_path_install+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645for as_dir in $PATH
2646do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 # Account for people who put trailing slashes in PATH elements.
2650case $as_dir/ in @%:@((
2651 ./ | .// | /[cC]/* | \
2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2654 /usr/ucb/* ) ;;
2655 *)
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2658 # by default.
2659 for ac_prog in ginstall scoinst install; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2662 if test $ac_prog = install &&
2663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # AIX install. It has an incompatible calling convention.
2665 :
2666 elif test $ac_prog = install &&
2667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # program-specific install script used by HP pwplus--don't use.
2669 :
2670 else
2671 rm -rf conftest.one conftest.two conftest.dir
2672 echo one > conftest.one
2673 echo two > conftest.two
2674 mkdir conftest.dir
2675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2676 test -s conftest.one && test -s conftest.two &&
2677 test -s conftest.dir/conftest.one &&
2678 test -s conftest.dir/conftest.two
2679 then
2680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2681 break 3
2682 fi
2683 fi
2684 fi
2685 done
2686 done
2687 ;;
2688esac
2689
2690 done
2691IFS=$as_save_IFS
2692
2693rm -rf conftest.one conftest.two conftest.dir
2694
2695fi
2696 if test "${ac_cv_path_install+set}" = set; then
2697 INSTALL=$ac_cv_path_install
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for INSTALL within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 INSTALL=$ac_install_sh
2704 fi
2705fi
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2707$as_echo "$INSTALL" >&6; }
2708
2709# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2710# It thinks the first close brace ends the variable substitution.
2711test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2712
2713test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2714
2715test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2716
2717am__api_version='1.10'
2718
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2720$as_echo_n "checking whether build environment is sane... " >&6; }
2721# Just in case
2722sleep 1
2723echo timestamp > conftest.file
2724# Do `set' in a subshell so we don't clobber the current shell's
2725# arguments. Must try -L first in case configure is actually a
2726# symlink; some systems play weird games with the mod time of symlinks
2727# (eg FreeBSD returns the mod time of the symlink's containing
2728# directory).
2729if (
2730 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2731 if test "$*" = "X"; then
2732 # -L didn't work.
2733 set X `ls -t $srcdir/configure conftest.file`
2734 fi
2735 rm -f conftest.file
2736 if test "$*" != "X $srcdir/configure conftest.file" \
2737 && test "$*" != "X conftest.file $srcdir/configure"; then
2738
2739 # If neither matched, then we have a broken ls. This can happen
2740 # if, for instance, CONFIG_SHELL is bash and it inherits a
2741 # broken ls alias from the environment. This has actually
2742 # happened. Such a system could not be considered "sane".
2743 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2744alias in your environment" "$LINENO" 5
2745 fi
2746
2747 test "$2" = conftest.file
2748 )
2749then
2750 # Ok.
2751 :
2752else
2753 as_fn_error $? "newly created file is older than distributed files!
2754Check your system clock" "$LINENO" 5
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2757$as_echo "yes" >&6; }
2758test "$program_prefix" != NONE &&
2759 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2760# Use a double $ so make ignores it.
2761test "$program_suffix" != NONE &&
2762 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2763# Double any \ or $.
2764# By default was `s,x,x', remove it if useless.
2765ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2766program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2767
2768# expand $ac_aux_dir to an absolute path
2769am_aux_dir=`cd $ac_aux_dir && pwd`
2770
2771test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2772# Use eval to expand $SHELL
2773if eval "$MISSING --run true"; then
2774 am_missing_run="$MISSING --run "
2775else
2776 am_missing_run=
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2778$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2779fi
2780
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2782$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2783if test -z "$MKDIR_P"; then
2784 if ${ac_cv_path_mkdir+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_prog in mkdir gmkdir; do
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2795 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2796 'mkdir (GNU coreutils) '* | \
2797 'mkdir (coreutils) '* | \
2798 'mkdir (fileutils) '4.1*)
2799 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2800 break 3;;
2801 esac
2802 done
2803 done
2804 done
2805IFS=$as_save_IFS
2806
2807fi
2808
2809 test -d ./--version && rmdir ./--version
2810 if test "${ac_cv_path_mkdir+set}" = set; then
2811 MKDIR_P="$ac_cv_path_mkdir -p"
2812 else
2813 # As a last resort, use the slow shell script. Don't cache a
2814 # value for MKDIR_P within a source directory, because that will
2815 # break other packages using the cache if that directory is
2816 # removed, or if the value is a relative name.
2817 MKDIR_P="$ac_install_sh -d"
2818 fi
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2821$as_echo "$MKDIR_P" >&6; }
2822
2823mkdir_p="$MKDIR_P"
2824case $mkdir_p in
2825 [\\/$]* | ?:[\\/]*) ;;
2826 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2827esac
2828
2829for ac_prog in gawk mawk nawk awk
2830do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832set dummy $ac_prog; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if ${ac_cv_prog_AWK+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837else
2838 if test -n "$AWK"; then
2839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_AWK="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852done
2853 done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858AWK=$ac_cv_prog_AWK
2859if test -n "$AWK"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2861$as_echo "$AWK" >&6; }
2862else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868 test -n "$AWK" && break
2869done
2870
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2873set x ${MAKE-make}
2874ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2875if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877else
2878 cat >conftest.make <<\_ACEOF
2879SHELL = /bin/sh
2880all:
2881 @echo '@@@%%%=$(MAKE)=@@@%%%'
2882_ACEOF
2883# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2884case `${MAKE-make} -f conftest.make 2>/dev/null` in
2885 *@@@%%%=?*=@@@%%%*)
2886 eval ac_cv_prog_make_${ac_make}_set=yes;;
2887 *)
2888 eval ac_cv_prog_make_${ac_make}_set=no;;
2889esac
2890rm -f conftest.make
2891fi
2892if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894$as_echo "yes" >&6; }
2895 SET_MAKE=
2896else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898$as_echo "no" >&6; }
2899 SET_MAKE="MAKE=${MAKE-make}"
2900fi
2901
2902rm -rf .tst 2>/dev/null
2903mkdir .tst 2>/dev/null
2904if test -d .tst; then
2905 am__leading_dot=.
2906else
2907 am__leading_dot=_
2908fi
2909rmdir .tst 2>/dev/null
2910
2911if test "`cd $srcdir && pwd`" != "`pwd`"; then
2912 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2913 # is not polluted with repeated "-I."
2914 am__isrc=' -I$(srcdir)'
2915 # test to see if srcdir already configured
2916 if test -f $srcdir/config.status; then
2917 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2918 fi
2919fi
2920
2921# test whether we have cygpath
2922if test -z "$CYGPATH_W"; then
2923 if (cygpath --version) >/dev/null 2>/dev/null; then
2924 CYGPATH_W='cygpath -w'
2925 else
2926 CYGPATH_W=echo
2927 fi
2928fi
2929
2930
2931# Define the identity of the package.
2932 PACKAGE='iptables'
2933 VERSION='1.4.3.2'
2934
2935
2936cat >>confdefs.h <<_ACEOF
2937@%:@define PACKAGE "$PACKAGE"
2938_ACEOF
2939
2940
2941cat >>confdefs.h <<_ACEOF
2942@%:@define VERSION "$VERSION"
2943_ACEOF
2944
2945# Some tools Automake needs.
2946
2947ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2948
2949
2950AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2951
2952
2953AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2954
2955
2956AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2957
2958
2959MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2960
2961install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2962
2963# Installed binaries are usually stripped using `strip' when the user
2964# run `make install-strip'. However `strip' might not be the right
2965# tool to use in cross-compilation environments, therefore Automake
2966# will honor the `STRIP' environment variable to overrule this program.
2967if test "$cross_compiling" != no; then
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2970set dummy ${ac_tool_prefix}strip; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if ${ac_cv_prog_STRIP+:} false; then :
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$STRIP"; then
2977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991 done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996STRIP=$ac_cv_prog_STRIP
2997if test -n "$STRIP"; then
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2999$as_echo "$STRIP" >&6; }
3000else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005
3006fi
3007if test -z "$ac_cv_prog_STRIP"; then
3008 ac_ct_STRIP=$STRIP
3009 # Extract the first word of "strip", so it can be a program name with args.
3010set dummy strip; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015else
3016 if test -n "$ac_ct_STRIP"; then
3017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_STRIP="strip"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030done
3031 done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3037if test -n "$ac_ct_STRIP"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3039$as_echo "$ac_ct_STRIP" >&6; }
3040else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045 if test "x$ac_ct_STRIP" = x; then
3046 STRIP=":"
3047 else
3048 case $cross_compiling:$ac_tool_warned in
3049yes:)
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3052ac_tool_warned=yes ;;
3053esac
3054 STRIP=$ac_ct_STRIP
3055 fi
3056else
3057 STRIP="$ac_cv_prog_STRIP"
3058fi
3059
3060fi
3061INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3062
3063# We need awk for the "check" target. The system "awk" is bad on
3064# some platforms.
3065# Always define AMTAR for backward compatibility.
3066
3067AMTAR=${AMTAR-"${am_missing_run}tar"}
3068
3069am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3070
3071
3072
3073
3074
3075ac_ext=c
3076ac_cpp='$CPP $CPPFLAGS'
3077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102done
3103 done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108CC=$ac_cv_prog_CC
3109if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111$as_echo "$CC" >&6; }
3112else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117
3118fi
3119if test -z "$ac_cv_prog_CC"; then
3120 ac_ct_CC=$CC
3121 # Extract the first word of "gcc", so it can be a program name with args.
3122set dummy gcc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126 $as_echo_n "(cached) " >&6
3127else
3128 if test -n "$ac_ct_CC"; then
3129 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_CC="gcc"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142done
3143 done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149if test -n "$ac_ct_CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151$as_echo "$ac_ct_CC" >&6; }
3152else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157 if test "x$ac_ct_CC" = x; then
3158 CC=""
3159 else
3160 case $cross_compiling:$ac_tool_warned in
3161yes:)
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164ac_tool_warned=yes ;;
3165esac
3166 CC=$ac_ct_CC
3167 fi
3168else
3169 CC="$ac_cv_prog_CC"
3170fi
3171
3172if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175set dummy ${ac_tool_prefix}cc; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185for as_dir in $PATH
3186do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191 ac_cv_prog_CC="${ac_tool_prefix}cc"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195done
3196 done
3197IFS=$as_save_IFS
3198
3199fi
3200fi
3201CC=$ac_cv_prog_CC
3202if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204$as_echo "$CC" >&6; }
3205else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207$as_echo "no" >&6; }
3208fi
3209
3210
3211 fi
3212fi
3213if test -z "$CC"; then
3214 # Extract the first word of "cc", so it can be a program name with args.
3215set dummy cc; ac_word=$2
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217$as_echo_n "checking for $ac_word... " >&6; }
3218if ${ac_cv_prog_CC+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220else
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3223else
3224 ac_prog_rejected=no
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228 IFS=$as_save_IFS
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233 ac_prog_rejected=yes
3234 continue
3235 fi
3236 ac_cv_prog_CC="cc"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 break 2
3239 fi
3240done
3241 done
3242IFS=$as_save_IFS
3243
3244if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3247 shift
3248 if test $@%:@ != 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3252 shift
3253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254 fi
3255fi
3256fi
3257fi
3258CC=$ac_cv_prog_CC
3259if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261$as_echo "$CC" >&6; }
3262else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264$as_echo "no" >&6; }
3265fi
3266
3267
3268fi
3269if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in cl.exe
3272 do
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276$as_echo_n "checking for $ac_word... " >&6; }
3277if ${ac_cv_prog_CC+:} false; then :
3278 $as_echo_n "(cached) " >&6
3279else
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC="$CC" # Let the user override the test.
3282else
3283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294done
3295 done
3296IFS=$as_save_IFS
3297
3298fi
3299fi
3300CC=$ac_cv_prog_CC
3301if test -n "$CC"; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303$as_echo "$CC" >&6; }
3304else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306$as_echo "no" >&6; }
3307fi
3308
3309
3310 test -n "$CC" && break
3311 done
3312fi
3313if test -z "$CC"; then
3314 ac_ct_CC=$CC
3315 for ac_prog in cl.exe
3316do
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318set dummy $ac_prog; ac_word=$2
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320$as_echo_n "checking for $ac_word... " >&6; }
3321if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323else
3324 if test -n "$ac_ct_CC"; then
3325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326else
3327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_ac_ct_CC="$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338done
3339 done
3340IFS=$as_save_IFS
3341
3342fi
3343fi
3344ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345if test -n "$ac_ct_CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347$as_echo "$ac_ct_CC" >&6; }
3348else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351fi
3352
3353
3354 test -n "$ac_ct_CC" && break
3355done
3356
3357 if test "x$ac_ct_CC" = x; then
3358 CC=""
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361yes:)
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364ac_tool_warned=yes ;;
3365esac
3366 CC=$ac_ct_CC
3367 fi
3368fi
3369
3370fi
3371
3372
3373test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "no acceptable C compiler found in \$PATH
3376See \`config.log' for more details" "$LINENO" 5; }
3377
3378# Provide some information about the compiler.
3379$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380set X $ac_compile
3381ac_compiler=$2
3382for ac_option in --version -v -V -qversion; do
3383 { { ac_try="$ac_compiler $ac_option >&5"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391 ac_status=$?
3392 if test -s conftest.err; then
3393 sed '10a\
3394... rest of stderr output deleted ...
3395 10q' conftest.err >conftest.er1
3396 cat conftest.er1 >&5
3397 fi
3398 rm -f conftest.er1 conftest.err
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401done
3402
3403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404/* end confdefs.h. */
3405
3406int
3407main ()
3408{
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
3414ac_clean_files_save=$ac_clean_files
3415ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416# Try to create an executable without -o first, disregard a.out.
3417# It will help us diagnose broken compilers, and finding out an intuition
3418# of exeext.
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420$as_echo_n "checking whether the C compiler works... " >&6; }
3421ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423# The possible output files:
3424ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426ac_rmfiles=
3427for ac_file in $ac_files
3428do
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 esac
3433done
3434rm -f $ac_rmfiles
3435
3436if { { ac_try="$ac_link_default"
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link_default") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449# in a Makefile. We should not override ac_cv_exeext if it was cached,
3450# so that the user can short-circuit this test for compilers unknown to
3451# Autoconf.
3452for ac_file in $ac_files ''
3453do
3454 test -f "$ac_file" || continue
3455 case $ac_file in
3456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457 ;;
3458 [ab].out )
3459 # We found the default executable, but exeext='' is most
3460 # certainly right.
3461 break;;
3462 *.* )
3463 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464 then :; else
3465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466 fi
3467 # We set ac_cv_exeext here because the later test for it is not
3468 # safe: cross compilers may not add the suffix if given an `-o'
3469 # argument, so we may need to know it at that point already.
3470 # Even if this section looks crufty: it has the advantage of
3471 # actually working.
3472 break;;
3473 * )
3474 break;;
3475 esac
3476done
3477test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479else
3480 ac_file=''
3481fi
3482if test -z "$ac_file"; then :
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484$as_echo "no" >&6; }
3485$as_echo "$as_me: failed program was:" >&5
3486sed 's/^/| /' conftest.$ac_ext >&5
3487
3488{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error 77 "C compiler cannot create executables
3491See \`config.log' for more details" "$LINENO" 5; }
3492else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494$as_echo "yes" >&6; }
3495fi
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497$as_echo_n "checking for C compiler default output file name... " >&6; }
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499$as_echo "$ac_file" >&6; }
3500ac_exeext=$ac_cv_exeext
3501
3502rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503ac_clean_files=$ac_clean_files_save
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505$as_echo_n "checking for suffix of executables... " >&6; }
3506if { { ac_try="$ac_link"
3507case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513 (eval "$ac_link") 2>&5
3514 ac_status=$?
3515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516 test $ac_status = 0; }; then :
3517 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3519# work properly (i.e., refer to `conftest.exe'), while it won't with
3520# `rm'.
3521for ac_file in conftest.exe conftest conftest.*; do
3522 test -f "$ac_file" || continue
3523 case $ac_file in
3524 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526 break;;
3527 * ) break;;
3528 esac
3529done
3530else
3531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534See \`config.log' for more details" "$LINENO" 5; }
3535fi
3536rm -f conftest conftest$ac_cv_exeext
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538$as_echo "$ac_cv_exeext" >&6; }
3539
3540rm -f conftest.$ac_ext
3541EXEEXT=$ac_cv_exeext
3542ac_exeext=$EXEEXT
3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h. */
3545@%:@include <stdio.h>
3546int
3547main ()
3548{
3549FILE *f = fopen ("conftest.out", "w");
3550 return ferror (f) || fclose (f) != 0;
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556ac_clean_files="$ac_clean_files conftest.out"
3557# Check that the compiler produces executables we can run. If not, either
3558# the compiler is broken, or we cross compile.
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560$as_echo_n "checking whether we are cross compiling... " >&6; }
3561if test "$cross_compiling" != yes; then
3562 { { ac_try="$ac_link"
3563case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3573 if { ac_try='./conftest$ac_cv_exeext'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "cannot run C compiled programs.
3592If you meant to cross compile, use \`--host'.
3593See \`config.log' for more details" "$LINENO" 5; }
3594 fi
3595 fi
3596fi
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598$as_echo "$cross_compiling" >&6; }
3599
3600rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601ac_clean_files=$ac_clean_files_save
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603$as_echo_n "checking for suffix of object files... " >&6; }
3604if ${ac_cv_objext+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606else
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h. */
3609
3610int
3611main ()
3612{
3613
3614 ;
3615 return 0;
3616}
3617_ACEOF
3618rm -f conftest.o conftest.obj
3619if { { ac_try="$ac_compile"
3620case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623esac
3624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625$as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_compile") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; then :
3630 for ac_file in conftest.o conftest.obj conftest.*; do
3631 test -f "$ac_file" || continue;
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 break;;
3636 esac
3637done
3638else
3639 $as_echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644as_fn_error $? "cannot compute suffix of object files: cannot compile
3645See \`config.log' for more details" "$LINENO" 5; }
3646fi
3647rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650$as_echo "$ac_cv_objext" >&6; }
3651OBJEXT=$ac_cv_objext
3652ac_objext=$OBJEXT
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655if ${ac_cv_c_compiler_gnu+:} false; then :
3656 $as_echo_n "(cached) " >&6
3657else
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659/* end confdefs.h. */
3660
3661int
3662main ()
3663{
3664#ifndef __GNUC__
3665 choke me
3666#endif
3667
3668 ;
3669 return 0;
3670}
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673 ac_compiler_gnu=yes
3674else
3675 ac_compiler_gnu=no
3676fi
3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680fi
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683if test $ac_compiler_gnu = yes; then
3684 GCC=yes
3685else
3686 GCC=
3687fi
3688ac_test_CFLAGS=${CFLAGS+set}
3689ac_save_CFLAGS=$CFLAGS
3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691$as_echo_n "checking whether $CC accepts -g... " >&6; }
3692if ${ac_cv_prog_cc_g+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694else
3695 ac_save_c_werror_flag=$ac_c_werror_flag
3696 ac_c_werror_flag=yes
3697 ac_cv_prog_cc_g=no
3698 CFLAGS="-g"
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701
3702int
3703main ()
3704{
3705
3706 ;
3707 return 0;
3708}
3709_ACEOF
3710if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_g=yes
3712else
3713 CFLAGS=""
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h. */
3716
3717int
3718main ()
3719{
3720
3721 ;
3722 return 0;
3723}
3724_ACEOF
3725if ac_fn_c_try_compile "$LINENO"; then :
3726
3727else
3728 ac_c_werror_flag=$ac_save_c_werror_flag
3729 CFLAGS="-g"
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731/* end confdefs.h. */
3732
3733int
3734main ()
3735{
3736
3737 ;
3738 return 0;
3739}
3740_ACEOF
3741if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_g=yes
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747fi
3748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 ac_c_werror_flag=$ac_save_c_werror_flag
3750fi
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752$as_echo "$ac_cv_prog_cc_g" >&6; }
3753if test "$ac_test_CFLAGS" = set; then
3754 CFLAGS=$ac_save_CFLAGS
3755elif test $ac_cv_prog_cc_g = yes; then
3756 if test "$GCC" = yes; then
3757 CFLAGS="-g -O2"
3758 else
3759 CFLAGS="-g"
3760 fi
3761else
3762 if test "$GCC" = yes; then
3763 CFLAGS="-O2"
3764 else
3765 CFLAGS=
3766 fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770if ${ac_cv_prog_cc_c89+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772else
3773 ac_cv_prog_cc_c89=no
3774ac_save_CC=$CC
3775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776/* end confdefs.h. */
3777#include <stdarg.h>
3778#include <stdio.h>
3779struct stat;
3780/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3781struct buf { int x; };
3782FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783static char *e (p, i)
3784 char **p;
3785 int i;
3786{
3787 return p[i];
3788}
3789static char *f (char * (*g) (char **, int), char **p, ...)
3790{
3791 char *s;
3792 va_list v;
3793 va_start (v,p);
3794 s = g (p, va_arg (v,int));
3795 va_end (v);
3796 return s;
3797}
3798
3799/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3800 function prototypes and stuff, but not '\xHH' hex character constants.
3801 These don't provoke an error unfortunately, instead are silently treated
3802 as 'x'. The following induces an error, until -std is added to get
3803 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3804 array size at least. It's necessary to write '\x00'==0 to get something
3805 that's true only with -std. */
3806int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809 inside strings and character constants. */
3810#define FOO(x) 'x'
3811int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813int test (int i, double x);
3814struct s1 {int (*f) (int a);};
3815struct s2 {int (*f) (double a);};
3816int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817int argc;
3818char **argv;
3819int
3820main ()
3821{
3822return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829do
3830 CC="$ac_save_CC $ac_arg"
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_c89=$ac_arg
3833fi
3834rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3836done
3837rm -f conftest.$ac_ext
3838CC=$ac_save_CC
3839
3840fi
3841# AC_CACHE_VAL
3842case "x$ac_cv_prog_cc_c89" in
3843 x)
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845$as_echo "none needed" >&6; } ;;
3846 xno)
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848$as_echo "unsupported" >&6; } ;;
3849 *)
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853esac
3854if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856fi
3857
3858ac_ext=c
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863DEPDIR="${am__leading_dot}deps"
3864
3865ac_config_commands="$ac_config_commands depfiles"
3866
3867
3868am_make=${MAKE-make}
3869cat > confinc << 'END'
3870am__doit:
3871 @echo done
3872.PHONY: am__doit
3873END
3874# If we don't find an include directive, just comment out the code.
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3876$as_echo_n "checking for style of include used by $am_make... " >&6; }
3877am__include="#"
3878am__quote=
3879_am_result=none
3880# First try GNU make style include.
3881echo "include confinc" > confmf
3882# We grep out `Entering directory' and `Leaving directory'
3883# messages which can occur if `w' ends up in MAKEFLAGS.
3884# In particular we don't look at `^make:' because GNU make might
3885# be invoked under some other name (usually "gmake"), in which
3886# case it prints its new name instead of `make'.
3887if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3888 am__include=include
3889 am__quote=
3890 _am_result=GNU
3891fi
3892# Now try BSD make style include.
3893if test "$am__include" = "#"; then
3894 echo '.include "confinc"' > confmf
3895 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3896 am__include=.include
3897 am__quote="\""
3898 _am_result=BSD
3899 fi
3900fi
3901
3902
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3904$as_echo "$_am_result" >&6; }
3905rm -f confinc confmf
3906
3907@%:@ Check whether --enable-dependency-tracking was given.
3908if test "${enable_dependency_tracking+set}" = set; then :
3909 enableval=$enable_dependency_tracking;
3910fi
3911
3912if test "x$enable_dependency_tracking" != xno; then
3913 am_depcomp="$ac_aux_dir/depcomp"
3914 AMDEPBACKSLASH='\'
3915fi
3916 if test "x$enable_dependency_tracking" != xno; then
3917 AMDEP_TRUE=
3918 AMDEP_FALSE='#'
3919else
3920 AMDEP_TRUE='#'
3921 AMDEP_FALSE=
3922fi
3923
3924
3925
3926depcc="$CC" am_compiler_list=
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3929$as_echo_n "checking dependency style of $depcc... " >&6; }
3930if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932else
3933 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3934 # We make a subdir and do the tests there. Otherwise we can end up
3935 # making bogus files that we don't know about and never remove. For
3936 # instance it was reported that on HP-UX the gcc test will end up
3937 # making a dummy file named `D' -- because `-MD' means `put the output
3938 # in D'.
3939 mkdir conftest.dir
3940 # Copy depcomp to subdir because otherwise we won't find it if we're
3941 # using a relative directory.
3942 cp "$am_depcomp" conftest.dir
3943 cd conftest.dir
3944 # We will build objects and dependencies in a subdirectory because
3945 # it helps to detect inapplicable dependency modes. For instance
3946 # both Tru64's cc and ICC support -MD to output dependencies as a
3947 # side effect of compilation, but ICC will put the dependencies in
3948 # the current directory while Tru64 will put them in the object
3949 # directory.
3950 mkdir sub
3951
3952 am_cv_CC_dependencies_compiler_type=none
3953 if test "$am_compiler_list" = ""; then
3954 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3955 fi
3956 for depmode in $am_compiler_list; do
3957 # Setup a source with many dependencies, because some compilers
3958 # like to wrap large dependency lists on column 80 (with \), and
3959 # we should not choose a depcomp mode which is confused by this.
3960 #
3961 # We need to recreate these files for each test, as the compiler may
3962 # overwrite some of them when testing with obscure command lines.
3963 # This happens at least with the AIX C compiler.
3964 : > sub/conftest.c
3965 for i in 1 2 3 4 5 6; do
3966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3967 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3968 # Solaris 8's {/usr,}/bin/sh.
3969 touch sub/conftst$i.h
3970 done
3971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972
3973 case $depmode in
3974 nosideeffect)
3975 # after this tag, mechanisms are not by side-effect, so they'll
3976 # only be used when explicitly requested
3977 if test "x$enable_dependency_tracking" = xyes; then
3978 continue
3979 else
3980 break
3981 fi
3982 ;;
3983 none) break ;;
3984 esac
3985 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3986 # mode. It turns out that the SunPro C++ compiler does not properly
3987 # handle `-M -o', and we need to detect this.
3988 if depmode=$depmode \
3989 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3990 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3991 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3992 >/dev/null 2>conftest.err &&
3993 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3995 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3997 # icc doesn't choke on unknown options, it will just issue warnings
3998 # or remarks (even with -Werror). So we grep stderr for any message
3999 # that says an option was ignored or not supported.
4000 # When given -MP, icc 7.0 and 7.1 complain thusly:
4001 # icc: Command line warning: ignoring option '-M'; no argument required
4002 # The diagnosis changed in icc 8.0:
4003 # icc: Command line remark: option '-MP' not supported
4004 if (grep 'ignoring option' conftest.err ||
4005 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4006 am_cv_CC_dependencies_compiler_type=$depmode
4007 break
4008 fi
4009 fi
4010 done
4011
4012 cd ..
4013 rm -rf conftest.dir
4014else
4015 am_cv_CC_dependencies_compiler_type=none
4016fi
4017
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4020$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4021CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4022
4023 if
4024 test "x$enable_dependency_tracking" != xno \
4025 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4026 am__fastdepCC_TRUE=
4027 am__fastdepCC_FALSE='#'
4028else
4029 am__fastdepCC_TRUE='#'
4030 am__fastdepCC_FALSE=
4031fi
4032
4033
4034if test "x$CC" != xcc; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4036$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4037else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4039$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4040fi
4041set dummy $CC; ac_cc=`$as_echo "$2" |
4042 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4043if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h. */
4048
4049int
4050main ()
4051{
4052
4053 ;
4054 return 0;
4055}
4056_ACEOF
4057# Make sure it works both with $CC and with simple cc.
4058# We do the test twice because some compilers refuse to overwrite an
4059# existing .o file with -o, though they will create one.
4060ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4061rm -f conftest2.*
4062if { { case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067$as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_try") 2>&5
4069 ac_status=$?
4070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071 test $ac_status = 0; } &&
4072 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077$as_echo "$ac_try_echo"; } >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081 test $ac_status = 0; };
4082then
4083 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4084 if test "x$CC" != xcc; then
4085 # Test first that cc exists at all.
4086 if { ac_try='cc -c conftest.$ac_ext >&5'
4087 { { case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090esac
4091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092$as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_try") 2>&5
4094 ac_status=$?
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; }; then
4097 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4098 rm -f conftest2.*
4099 if { { case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104$as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_try") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; } &&
4109 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4114$as_echo "$ac_try_echo"; } >&5
4115 (eval "$ac_try") 2>&5
4116 ac_status=$?
4117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; };
4119 then
4120 # cc works too.
4121 :
4122 else
4123 # cc exists but doesn't like -o.
4124 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4125 fi
4126 fi
4127 fi
4128else
4129 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4130fi
4131rm -f core conftest*
4132
4133fi
4134if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136$as_echo "yes" >&6; }
4137else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140
4141$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4142
4143fi
4144
4145# FIXME: we rely on the cache variable name because
4146# there is no other way.
4147set dummy $CC
4148ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4149if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4150 # Losing compiler, so override with the script.
4151 # FIXME: It is wrong to rewrite CC.
4152 # But if we don't then we get into trouble of one sort or another.
4153 # A longer-term fix would be to have automake use am__CC in this case,
4154 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4155 CC="$am_aux_dir/compile $CC"
4156fi
4157
4158
4159@%:@ Check whether --enable-static was given.
4160if test "${enable_static+set}" = set; then :
4161 enableval=$enable_static; p=${PACKAGE-default}
4162 case $enableval in
4163 yes) enable_static=yes ;;
4164 no) enable_static=no ;;
4165 *)
4166 enable_static=no
4167 # Look at the argument we got. We use all the common list separators.
4168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4169 for pkg in $enableval; do
4170 IFS="$lt_save_ifs"
4171 if test "X$pkg" = "X$p"; then
4172 enable_static=yes
4173 fi
4174 done
4175 IFS="$lt_save_ifs"
4176 ;;
4177 esac
4178else
4179 enable_static=no
4180fi
4181
4182
4183
4184@%:@ Check whether --enable-shared was given.
4185if test "${enable_shared+set}" = set; then :
4186 enableval=$enable_shared; p=${PACKAGE-default}
4187 case $enableval in
4188 yes) enable_shared=yes ;;
4189 no) enable_shared=no ;;
4190 *)
4191 enable_shared=no
4192 # Look at the argument we got. We use all the common list separators.
4193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4194 for pkg in $enableval; do
4195 IFS="$lt_save_ifs"
4196 if test "X$pkg" = "X$p"; then
4197 enable_shared=yes
4198 fi
4199 done
4200 IFS="$lt_save_ifs"
4201 ;;
4202 esac
4203else
4204 enable_shared=yes
4205fi
4206
4207
4208@%:@ Check whether --enable-fast-install was given.
4209if test "${enable_fast_install+set}" = set; then :
4210 enableval=$enable_fast_install; p=${PACKAGE-default}
4211 case $enableval in
4212 yes) enable_fast_install=yes ;;
4213 no) enable_fast_install=no ;;
4214 *)
4215 enable_fast_install=no
4216 # Look at the argument we got. We use all the common list separators.
4217 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4218 for pkg in $enableval; do
4219 IFS="$lt_save_ifs"
4220 if test "X$pkg" = "X$p"; then
4221 enable_fast_install=yes
4222 fi
4223 done
4224 IFS="$lt_save_ifs"
4225 ;;
4226 esac
4227else
4228 enable_fast_install=yes
4229fi
4230
4231
4232# Make sure we can run config.sub.
4233$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4234 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4235
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4237$as_echo_n "checking build system type... " >&6; }
4238if ${ac_cv_build+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240else
4241 ac_build_alias=$build_alias
4242test "x$ac_build_alias" = x &&
4243 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4244test "x$ac_build_alias" = x &&
4245 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4246ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4247 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4248
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4251$as_echo "$ac_cv_build" >&6; }
4252case $ac_cv_build in
4253*-*-*) ;;
4254*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4255esac
4256build=$ac_cv_build
4257ac_save_IFS=$IFS; IFS='-'
4258set x $ac_cv_build
4259shift
4260build_cpu=$1
4261build_vendor=$2
4262shift; shift
4263# Remember, the first character of IFS is used to create $*,
4264# except with old shells:
4265build_os=$*
4266IFS=$ac_save_IFS
4267case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4268
4269
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4271$as_echo_n "checking host system type... " >&6; }
4272if ${ac_cv_host+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274else
4275 if test "x$host_alias" = x; then
4276 ac_cv_host=$ac_cv_build
4277else
4278 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4279 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4280fi
4281
4282fi
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4284$as_echo "$ac_cv_host" >&6; }
4285case $ac_cv_host in
4286*-*-*) ;;
4287*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4288esac
4289host=$ac_cv_host
4290ac_save_IFS=$IFS; IFS='-'
4291set x $ac_cv_host
4292shift
4293host_cpu=$1
4294host_vendor=$2
4295shift; shift
4296# Remember, the first character of IFS is used to create $*,
4297# except with old shells:
4298host_os=$*
4299IFS=$ac_save_IFS
4300case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4301
4302
4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4304$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4305if ${lt_cv_path_SED+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307else
4308 # Loop through the user's path and test for sed and gsed.
4309# Then use that list of sed's as ones to test for truncation.
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313 IFS=$as_save_IFS
4314 test -z "$as_dir" && as_dir=.
4315 for lt_ac_prog in sed gsed; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4318 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4319 fi
4320 done
4321 done
4322done
4323IFS=$as_save_IFS
4324lt_ac_max=0
4325lt_ac_count=0
4326# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4327# along with /bin/sed that truncates output.
4328for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4329 test ! -f $lt_ac_sed && continue
4330 cat /dev/null > conftest.in
4331 lt_ac_count=0
4332 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4333 # Check for GNU sed and select it if it is found.
4334 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4335 lt_cv_path_SED=$lt_ac_sed
4336 break
4337 fi
4338 while true; do
4339 cat conftest.in conftest.in >conftest.tmp
4340 mv conftest.tmp conftest.in
4341 cp conftest.in conftest.nl
4342 echo >>conftest.nl
4343 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4344 cmp -s conftest.out conftest.nl || break
4345 # 10000 chars as input seems more than enough
4346 test $lt_ac_count -gt 10 && break
4347 lt_ac_count=`expr $lt_ac_count + 1`
4348 if test $lt_ac_count -gt $lt_ac_max; then
4349 lt_ac_max=$lt_ac_count
4350 lt_cv_path_SED=$lt_ac_sed
4351 fi
4352 done
4353done
4354
4355fi
4356
4357SED=$lt_cv_path_SED
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4360$as_echo "$SED" >&6; }
4361
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4363$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4364if ${ac_cv_path_GREP+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366else
4367 if test -z "$GREP"; then
4368 ac_path_GREP_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in grep ggrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4378 as_fn_executable_p "$ac_path_GREP" || continue
4379# Check for GNU ac_path_GREP and select it if it is found.
4380 # Check for GNU $ac_path_GREP
4381case `"$ac_path_GREP" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4384*)
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo 'GREP' >> "conftest.nl"
4393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_GREP="$ac_path_GREP"
4399 ac_path_GREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
4407 $ac_path_GREP_found && break 3
4408 done
4409 done
4410 done
4411IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_GREP"; then
4413 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4414 fi
4415else
4416 ac_cv_path_GREP=$GREP
4417fi
4418
4419fi
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4421$as_echo "$ac_cv_path_GREP" >&6; }
4422 GREP="$ac_cv_path_GREP"
4423
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4426$as_echo_n "checking for egrep... " >&6; }
4427if ${ac_cv_path_EGREP+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429else
4430 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4431 then ac_cv_path_EGREP="$GREP -E"
4432 else
4433 if test -z "$EGREP"; then
4434 ac_path_EGREP_found=false
4435 # Loop through the user's path and test for each of PROGNAME-LIST
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_prog in egrep; do
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4444 as_fn_executable_p "$ac_path_EGREP" || continue
4445# Check for GNU ac_path_EGREP and select it if it is found.
4446 # Check for GNU $ac_path_EGREP
4447case `"$ac_path_EGREP" --version 2>&1` in
4448*GNU*)
4449 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4450*)
4451 ac_count=0
4452 $as_echo_n 0123456789 >"conftest.in"
4453 while :
4454 do
4455 cat "conftest.in" "conftest.in" >"conftest.tmp"
4456 mv "conftest.tmp" "conftest.in"
4457 cp "conftest.in" "conftest.nl"
4458 $as_echo 'EGREP' >> "conftest.nl"
4459 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4461 as_fn_arith $ac_count + 1 && ac_count=$as_val
4462 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4463 # Best one so far, save it but keep looking for a better one
4464 ac_cv_path_EGREP="$ac_path_EGREP"
4465 ac_path_EGREP_max=$ac_count
4466 fi
4467 # 10*(2^10) chars as input seems more than enough
4468 test $ac_count -gt 10 && break
4469 done
4470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471esac
4472
4473 $ac_path_EGREP_found && break 3
4474 done
4475 done
4476 done
4477IFS=$as_save_IFS
4478 if test -z "$ac_cv_path_EGREP"; then
4479 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4480 fi
4481else
4482 ac_cv_path_EGREP=$EGREP
4483fi
4484
4485 fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4488$as_echo "$ac_cv_path_EGREP" >&6; }
4489 EGREP="$ac_cv_path_EGREP"
4490
4491
4492
4493@%:@ Check whether --with-gnu-ld was given.
4494if test "${with_gnu_ld+set}" = set; then :
4495 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4496else
4497 with_gnu_ld=no
4498fi
4499
4500ac_prog=ld
4501if test "$GCC" = yes; then
4502 # Check if gcc -print-prog-name=ld gives a path.
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4504$as_echo_n "checking for ld used by $CC... " >&6; }
4505 case $host in
4506 *-*-mingw*)
4507 # gcc leaves a trailing carriage return which upsets mingw
4508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4509 *)
4510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4511 esac
4512 case $ac_prog in
4513 # Accept absolute paths.
4514 [\\/]* | ?:[\\/]*)
4515 re_direlt='/[^/][^/]*/\.\./'
4516 # Canonicalize the pathname of ld
4517 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4519 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4520 done
4521 test -z "$LD" && LD="$ac_prog"
4522 ;;
4523 "")
4524 # If it fails, then pretend we aren't using GCC.
4525 ac_prog=ld
4526 ;;
4527 *)
4528 # If it is relative, then search for the first ld in PATH.
4529 with_gnu_ld=unknown
4530 ;;
4531 esac
4532elif test "$with_gnu_ld" = yes; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4534$as_echo_n "checking for GNU ld... " >&6; }
4535else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4537$as_echo_n "checking for non-GNU ld... " >&6; }
4538fi
4539if ${lt_cv_path_LD+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541else
4542 if test -z "$LD"; then
4543 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4544 for ac_dir in $PATH; do
4545 IFS="$lt_save_ifs"
4546 test -z "$ac_dir" && ac_dir=.
4547 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4548 lt_cv_path_LD="$ac_dir/$ac_prog"
4549 # Check to see if the program is GNU ld. I'd rather use --version,
4550 # but apparently some variants of GNU ld only accept -v.
4551 # Break only if it was the GNU/non-GNU ld that we prefer.
4552 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4553 *GNU* | *'with BFD'*)
4554 test "$with_gnu_ld" != no && break
4555 ;;
4556 *)
4557 test "$with_gnu_ld" != yes && break
4558 ;;
4559 esac
4560 fi
4561 done
4562 IFS="$lt_save_ifs"
4563else
4564 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4565fi
4566fi
4567
4568LD="$lt_cv_path_LD"
4569if test -n "$LD"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4571$as_echo "$LD" >&6; }
4572else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574$as_echo "no" >&6; }
4575fi
4576test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4578$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4579if ${lt_cv_prog_gnu_ld+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581else
4582 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4583case `$LD -v 2>&1 </dev/null` in
4584*GNU* | *'with BFD'*)
4585 lt_cv_prog_gnu_ld=yes
4586 ;;
4587*)
4588 lt_cv_prog_gnu_ld=no
4589 ;;
4590esac
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4593$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4594with_gnu_ld=$lt_cv_prog_gnu_ld
4595
4596
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4598$as_echo_n "checking for $LD option to reload object files... " >&6; }
4599if ${lt_cv_ld_reload_flag+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601else
4602 lt_cv_ld_reload_flag='-r'
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4605$as_echo "$lt_cv_ld_reload_flag" >&6; }
4606reload_flag=$lt_cv_ld_reload_flag
4607case $reload_flag in
4608"" | " "*) ;;
4609*) reload_flag=" $reload_flag" ;;
4610esac
4611reload_cmds='$LD$reload_flag -o $output$reload_objs'
4612case $host_os in
4613 darwin*)
4614 if test "$GCC" = yes; then
4615 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4616 else
4617 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4618 fi
4619 ;;
4620esac
4621
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4623$as_echo_n "checking for BSD-compatible nm... " >&6; }
4624if ${lt_cv_path_NM+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626else
4627 if test -n "$NM"; then
4628 # Let the user override the test.
4629 lt_cv_path_NM="$NM"
4630else
4631 lt_nm_to_check="${ac_tool_prefix}nm"
4632 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4633 lt_nm_to_check="$lt_nm_to_check nm"
4634 fi
4635 for lt_tmp_nm in $lt_nm_to_check; do
4636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4637 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4638 IFS="$lt_save_ifs"
4639 test -z "$ac_dir" && ac_dir=.
4640 tmp_nm="$ac_dir/$lt_tmp_nm"
4641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4642 # Check to see if the nm accepts a BSD-compat flag.
4643 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4644 # nm: unknown option "B" ignored
4645 # Tru64's nm complains that /dev/null is an invalid object file
4646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4647 */dev/null* | *'Invalid file or object type'*)
4648 lt_cv_path_NM="$tmp_nm -B"
4649 break
4650 ;;
4651 *)
4652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4653 */dev/null*)
4654 lt_cv_path_NM="$tmp_nm -p"
4655 break
4656 ;;
4657 *)
4658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4659 continue # so that we can try to find one that supports BSD flags
4660 ;;
4661 esac
4662 ;;
4663 esac
4664 fi
4665 done
4666 IFS="$lt_save_ifs"
4667 done
4668 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4669fi
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4672$as_echo "$lt_cv_path_NM" >&6; }
4673NM="$lt_cv_path_NM"
4674
4675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4676$as_echo_n "checking whether ln -s works... " >&6; }
4677LN_S=$as_ln_s
4678if test "$LN_S" = "ln -s"; then
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4680$as_echo "yes" >&6; }
4681else
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4683$as_echo "no, using $LN_S" >&6; }
4684fi
4685
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4687$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4688if ${lt_cv_deplibs_check_method+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690else
4691 lt_cv_file_magic_cmd='$MAGIC_CMD'
4692lt_cv_file_magic_test_file=
4693lt_cv_deplibs_check_method='unknown'
4694# Need to set the preceding variable on all platforms that support
4695# interlibrary dependencies.
4696# 'none' -- dependencies not supported.
4697# `unknown' -- same as none, but documents that we really don't know.
4698# 'pass_all' -- all dependencies passed with no checks.
4699# 'test_compile' -- check by making test program.
4700# 'file_magic [[regex]]' -- check by looking for files in library path
4701# which responds to the $file_magic_cmd with a given extended regex.
4702# If you have `file' or equivalent on your system and you're not sure
4703# whether `pass_all' will *always* work, you probably want this one.
4704
4705case $host_os in
4706aix[4-9]*)
4707 lt_cv_deplibs_check_method=pass_all
4708 ;;
4709
4710beos*)
4711 lt_cv_deplibs_check_method=pass_all
4712 ;;
4713
4714bsdi[45]*)
4715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4716 lt_cv_file_magic_cmd='/usr/bin/file -L'
4717 lt_cv_file_magic_test_file=/shlib/libc.so
4718 ;;
4719
4720cygwin*)
4721 # func_win32_libid is a shell function defined in ltmain.sh
4722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4723 lt_cv_file_magic_cmd='func_win32_libid'
4724 ;;
4725
4726mingw* | pw32*)
4727 # Base MSYS/MinGW do not provide the 'file' command needed by
4728 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4729 # unless we find 'file', for example because we are cross-compiling.
4730 if ( file / ) >/dev/null 2>&1; then
4731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4732 lt_cv_file_magic_cmd='func_win32_libid'
4733 else
4734 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4735 lt_cv_file_magic_cmd='$OBJDUMP -f'
4736 fi
4737 ;;
4738
4739darwin* | rhapsody*)
4740 lt_cv_deplibs_check_method=pass_all
4741 ;;
4742
4743freebsd* | dragonfly*)
4744 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4745 case $host_cpu in
4746 i*86 )
4747 # Not sure whether the presence of OpenBSD here was a mistake.
4748 # Let's accept both of them until this is cleared up.
4749 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4750 lt_cv_file_magic_cmd=/usr/bin/file
4751 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4752 ;;
4753 esac
4754 else
4755 lt_cv_deplibs_check_method=pass_all
4756 fi
4757 ;;
4758
4759gnu*)
4760 lt_cv_deplibs_check_method=pass_all
4761 ;;
4762
4763hpux10.20* | hpux11*)
4764 lt_cv_file_magic_cmd=/usr/bin/file
4765 case $host_cpu in
4766 ia64*)
4767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4768 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4769 ;;
4770 hppa*64*)
4771 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]'
4772 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4773 ;;
4774 *)
4775 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4777 ;;
4778 esac
4779 ;;
4780
4781interix[3-9]*)
4782 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4784 ;;
4785
4786irix5* | irix6* | nonstopux*)
4787 case $LD in
4788 *-32|*"-32 ") libmagic=32-bit;;
4789 *-n32|*"-n32 ") libmagic=N32;;
4790 *-64|*"-64 ") libmagic=64-bit;;
4791 *) libmagic=never-match;;
4792 esac
4793 lt_cv_deplibs_check_method=pass_all
4794 ;;
4795
4796# This must be Linux ELF.
4797linux* | k*bsd*-gnu)
4798 lt_cv_deplibs_check_method=pass_all
4799 ;;
4800
4801netbsd* | netbsdelf*-gnu)
4802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4804 else
4805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4806 fi
4807 ;;
4808
4809newos6*)
4810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4811 lt_cv_file_magic_cmd=/usr/bin/file
4812 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4813 ;;
4814
4815nto-qnx*)
4816 lt_cv_deplibs_check_method=unknown
4817 ;;
4818
4819openbsd*)
4820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4822 else
4823 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4824 fi
4825 ;;
4826
4827osf3* | osf4* | osf5*)
4828 lt_cv_deplibs_check_method=pass_all
4829 ;;
4830
4831rdos*)
4832 lt_cv_deplibs_check_method=pass_all
4833 ;;
4834
4835solaris*)
4836 lt_cv_deplibs_check_method=pass_all
4837 ;;
4838
4839sysv4 | sysv4.3*)
4840 case $host_vendor in
4841 motorola)
4842 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]'
4843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4844 ;;
4845 ncr)
4846 lt_cv_deplibs_check_method=pass_all
4847 ;;
4848 sequent)
4849 lt_cv_file_magic_cmd='/bin/file'
4850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4851 ;;
4852 sni)
4853 lt_cv_file_magic_cmd='/bin/file'
4854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4855 lt_cv_file_magic_test_file=/lib/libc.so
4856 ;;
4857 siemens)
4858 lt_cv_deplibs_check_method=pass_all
4859 ;;
4860 pc)
4861 lt_cv_deplibs_check_method=pass_all
4862 ;;
4863 esac
4864 ;;
4865
4866sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4867 lt_cv_deplibs_check_method=pass_all
4868 ;;
4869esac
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4873$as_echo "$lt_cv_deplibs_check_method" >&6; }
4874file_magic_cmd=$lt_cv_file_magic_cmd
4875deplibs_check_method=$lt_cv_deplibs_check_method
4876test -z "$deplibs_check_method" && deplibs_check_method=unknown
4877
4878
4879
4880
4881# If no C compiler was specified, use CC.
4882LTCC=${LTCC-"$CC"}
4883
4884# If no C compiler flags were specified, use CFLAGS.
4885LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4886
4887# Allow CC to be a program name with arguments.
4888compiler=$CC
4889
4890
4891@%:@ Check whether --enable-libtool-lock was given.
4892if test "${enable_libtool_lock+set}" = set; then :
4893 enableval=$enable_libtool_lock;
4894fi
4895
4896test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4897
4898# Some flags need to be propagated to the compiler or linker for good
4899# libtool support.
4900case $host in
4901ia64-*-hpux*)
4902 # Find out which ABI we are using.
4903 echo 'int i;' > conftest.$ac_ext
4904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4905 (eval $ac_compile) 2>&5
4906 ac_status=$?
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }; then
4909 case `/usr/bin/file conftest.$ac_objext` in
4910 *ELF-32*)
4911 HPUX_IA64_MODE="32"
4912 ;;
4913 *ELF-64*)
4914 HPUX_IA64_MODE="64"
4915 ;;
4916 esac
4917 fi
4918 rm -rf conftest*
4919 ;;
4920*-*-irix6*)
4921 # Find out which ABI we are using.
4922 echo '#line __oline__ "configure"' > conftest.$ac_ext
4923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4924 (eval $ac_compile) 2>&5
4925 ac_status=$?
4926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }; then
4928 if test "$lt_cv_prog_gnu_ld" = yes; then
4929 case `/usr/bin/file conftest.$ac_objext` in
4930 *32-bit*)
4931 LD="${LD-ld} -melf32bsmip"
4932 ;;
4933 *N32*)
4934 LD="${LD-ld} -melf32bmipn32"
4935 ;;
4936 *64-bit*)
4937 LD="${LD-ld} -melf64bmip"
4938 ;;
4939 esac
4940 else
4941 case `/usr/bin/file conftest.$ac_objext` in
4942 *32-bit*)
4943 LD="${LD-ld} -32"
4944 ;;
4945 *N32*)
4946 LD="${LD-ld} -n32"
4947 ;;
4948 *64-bit*)
4949 LD="${LD-ld} -64"
4950 ;;
4951 esac
4952 fi
4953 fi
4954 rm -rf conftest*
4955 ;;
4956
4957x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4958s390*-*linux*|sparc*-*linux*)
4959 # Find out which ABI we are using.
4960 echo 'int i;' > conftest.$ac_ext
4961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4962 (eval $ac_compile) 2>&5
4963 ac_status=$?
4964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4965 test $ac_status = 0; }; then
4966 case `/usr/bin/file conftest.o` in
4967 *32-bit*)
4968 case $host in
4969 x86_64-*kfreebsd*-gnu)
4970 LD="${LD-ld} -m elf_i386_fbsd"
4971 ;;
4972 x86_64-*linux*)
4973 LD="${LD-ld} -m elf_i386"
4974 ;;
4975 ppc64-*linux*|powerpc64-*linux*)
4976 LD="${LD-ld} -m elf32ppclinux"
4977 ;;
4978 s390x-*linux*)
4979 LD="${LD-ld} -m elf_s390"
4980 ;;
4981 sparc64-*linux*)
4982 LD="${LD-ld} -m elf32_sparc"
4983 ;;
4984 esac
4985 ;;
4986 *64-bit*)
4987 case $host in
4988 x86_64-*kfreebsd*-gnu)
4989 LD="${LD-ld} -m elf_x86_64_fbsd"
4990 ;;
4991 x86_64-*linux*)
4992 LD="${LD-ld} -m elf_x86_64"
4993 ;;
4994 ppc*-*linux*|powerpc*-*linux*)
4995 LD="${LD-ld} -m elf64ppc"
4996 ;;
4997 s390*-*linux*)
4998 LD="${LD-ld} -m elf64_s390"
4999 ;;
5000 sparc*-*linux*)
5001 LD="${LD-ld} -m elf64_sparc"
5002 ;;
5003 esac
5004 ;;
5005 esac
5006 fi
5007 rm -rf conftest*
5008 ;;
5009
5010*-*-sco3.2v5*)
5011 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5012 SAVE_CFLAGS="$CFLAGS"
5013 CFLAGS="$CFLAGS -belf"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5015$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5016if ${lt_cv_cc_needs_belf+:} false; then :
5017 $as_echo_n "(cached) " >&6
5018else
5019 ac_ext=c
5020ac_cpp='$CPP $CPPFLAGS'
5021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h. */
5027
5028int
5029main ()
5030{
5031
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036if ac_fn_c_try_link "$LINENO"; then :
5037 lt_cv_cc_needs_belf=yes
5038else
5039 lt_cv_cc_needs_belf=no
5040fi
5041rm -f core conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext conftest.$ac_ext
5043 ac_ext=c
5044ac_cpp='$CPP $CPPFLAGS'
5045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5047ac_compiler_gnu=$ac_cv_c_compiler_gnu
5048
5049fi
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5051$as_echo "$lt_cv_cc_needs_belf" >&6; }
5052 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5053 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5054 CFLAGS="$SAVE_CFLAGS"
5055 fi
5056 ;;
5057sparc*-*solaris*)
5058 # Find out which ABI we are using.
5059 echo 'int i;' > conftest.$ac_ext
5060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5061 (eval $ac_compile) 2>&5
5062 ac_status=$?
5063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5064 test $ac_status = 0; }; then
5065 case `/usr/bin/file conftest.o` in
5066 *64-bit*)
5067 case $lt_cv_prog_gnu_ld in
5068 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5069 *)
5070 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5071 LD="${LD-ld} -64"
5072 fi
5073 ;;
5074 esac
5075 ;;
5076 esac
5077 fi
5078 rm -rf conftest*
5079 ;;
5080
5081
5082esac
5083
5084need_locks="$enable_libtool_lock"
5085
5086
5087ac_ext=c
5088ac_cpp='$CPP $CPPFLAGS'
5089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5093$as_echo_n "checking how to run the C preprocessor... " >&6; }
5094# On Suns, sometimes $CPP names a directory.
5095if test -n "$CPP" && test -d "$CPP"; then
5096 CPP=
5097fi
5098if test -z "$CPP"; then
5099 if ${ac_cv_prog_CPP+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 # Double quotes because CPP needs to be expanded
5103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5104 do
5105 ac_preproc_ok=false
5106for ac_c_preproc_warn_flag in '' yes
5107do
5108 # Use a header file that comes with gcc, so configuring glibc
5109 # with a fresh cross-compiler works.
5110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111 # <limits.h> exists even on freestanding compilers.
5112 # On the NeXT, cc -E runs the code through the compiler's parser,
5113 # not just through cpp. "Syntax error" is here to catch this case.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115/* end confdefs.h. */
5116@%:@ifdef __STDC__
5117@%:@ include <limits.h>
5118@%:@else
5119@%:@ include <assert.h>
5120@%:@endif
5121 Syntax error
5122_ACEOF
5123if ac_fn_c_try_cpp "$LINENO"; then :
5124
5125else
5126 # Broken: fails on valid input.
5127continue
5128fi
5129rm -f conftest.err conftest.i conftest.$ac_ext
5130
5131 # OK, works on sane cases. Now check whether nonexistent headers
5132 # can be detected and how.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134/* end confdefs.h. */
5135@%:@include <ac_nonexistent.h>
5136_ACEOF
5137if ac_fn_c_try_cpp "$LINENO"; then :
5138 # Broken: success on invalid input.
5139continue
5140else
5141 # Passes both tests.
5142ac_preproc_ok=:
5143break
5144fi
5145rm -f conftest.err conftest.i conftest.$ac_ext
5146
5147done
5148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149rm -f conftest.i conftest.err conftest.$ac_ext
5150if $ac_preproc_ok; then :
5151 break
5152fi
5153
5154 done
5155 ac_cv_prog_CPP=$CPP
5156
5157fi
5158 CPP=$ac_cv_prog_CPP
5159else
5160 ac_cv_prog_CPP=$CPP
5161fi
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5163$as_echo "$CPP" >&6; }
5164ac_preproc_ok=false
5165for ac_c_preproc_warn_flag in '' yes
5166do
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h. */
5175@%:@ifdef __STDC__
5176@%:@ include <limits.h>
5177@%:@else
5178@%:@ include <assert.h>
5179@%:@endif
5180 Syntax error
5181_ACEOF
5182if ac_fn_c_try_cpp "$LINENO"; then :
5183
5184else
5185 # Broken: fails on valid input.
5186continue
5187fi
5188rm -f conftest.err conftest.i conftest.$ac_ext
5189
5190 # OK, works on sane cases. Now check whether nonexistent headers
5191 # can be detected and how.
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h. */
5194@%:@include <ac_nonexistent.h>
5195_ACEOF
5196if ac_fn_c_try_cpp "$LINENO"; then :
5197 # Broken: success on invalid input.
5198continue
5199else
5200 # Passes both tests.
5201ac_preproc_ok=:
5202break
5203fi
5204rm -f conftest.err conftest.i conftest.$ac_ext
5205
5206done
5207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5208rm -f conftest.i conftest.err conftest.$ac_ext
5209if $ac_preproc_ok; then :
5210
5211else
5212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5215See \`config.log' for more details" "$LINENO" 5; }
5216fi
5217
5218ac_ext=c
5219ac_cpp='$CPP $CPPFLAGS'
5220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222ac_compiler_gnu=$ac_cv_c_compiler_gnu
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5226$as_echo_n "checking for ANSI C header files... " >&6; }
5227if ${ac_cv_header_stdc+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229else
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h. */
5232#include <stdlib.h>
5233#include <stdarg.h>
5234#include <string.h>
5235#include <float.h>
5236
5237int
5238main ()
5239{
5240
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_header_stdc=yes
5247else
5248 ac_cv_header_stdc=no
5249fi
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251
5252if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h. */
5256#include <string.h>
5257
5258_ACEOF
5259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5260 $EGREP "memchr" >/dev/null 2>&1; then :
5261
5262else
5263 ac_cv_header_stdc=no
5264fi
5265rm -f conftest*
5266
5267fi
5268
5269if test $ac_cv_header_stdc = yes; then
5270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272/* end confdefs.h. */
5273#include <stdlib.h>
5274
5275_ACEOF
5276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5277 $EGREP "free" >/dev/null 2>&1; then :
5278
5279else
5280 ac_cv_header_stdc=no
5281fi
5282rm -f conftest*
5283
5284fi
5285
5286if test $ac_cv_header_stdc = yes; then
5287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5288 if test "$cross_compiling" = yes; then :
5289 :
5290else
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h. */
5293#include <ctype.h>
5294#include <stdlib.h>
5295#if ((' ' & 0x0FF) == 0x020)
5296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5298#else
5299# define ISLOWER(c) \
5300 (('a' <= (c) && (c) <= 'i') \
5301 || ('j' <= (c) && (c) <= 'r') \
5302 || ('s' <= (c) && (c) <= 'z'))
5303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5304#endif
5305
5306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5307int
5308main ()
5309{
5310 int i;
5311 for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i))
5313 || toupper (i) != TOUPPER (i))
5314 return 2;
5315 return 0;
5316}
5317_ACEOF
5318if ac_fn_c_try_run "$LINENO"; then :
5319
5320else
5321 ac_cv_header_stdc=no
5322fi
5323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5324 conftest.$ac_objext conftest.beam conftest.$ac_ext
5325fi
5326
5327fi
5328fi
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5330$as_echo "$ac_cv_header_stdc" >&6; }
5331if test $ac_cv_header_stdc = yes; then
5332
5333$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5334
5335fi
5336
5337# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5338for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5339 inttypes.h stdint.h unistd.h
5340do :
5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5342ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5343"
5344if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5345 cat >>confdefs.h <<_ACEOF
5346@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5347_ACEOF
5348
5349fi
5350
5351done
5352
5353
5354for ac_header in dlfcn.h
5355do :
5356 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5357if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5358 cat >>confdefs.h <<_ACEOF
5359@%:@define HAVE_DLFCN_H 1
5360_ACEOF
5361
5362fi
5363
5364done
5365
5366ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371if test -z "$CXX"; then
5372 if test -n "$CCC"; then
5373 CXX=$CCC
5374 else
5375 if test -n "$ac_tool_prefix"; then
5376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5377 do
5378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5379set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381$as_echo_n "checking for $ac_word... " >&6; }
5382if ${ac_cv_prog_CXX+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384else
5385 if test -n "$CXX"; then
5386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5387else
5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389for as_dir in $PATH
5390do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399done
5400 done
5401IFS=$as_save_IFS
5402
5403fi
5404fi
5405CXX=$ac_cv_prog_CXX
5406if test -n "$CXX"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5408$as_echo "$CXX" >&6; }
5409else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }
5412fi
5413
5414
5415 test -n "$CXX" && break
5416 done
5417fi
5418if test -z "$CXX"; then
5419 ac_ct_CXX=$CXX
5420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5421do
5422 # Extract the first word of "$ac_prog", so it can be a program name with args.
5423set dummy $ac_prog; ac_word=$2
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
5426if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428else
5429 if test -n "$ac_ct_CXX"; then
5430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5431else
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_ac_ct_CXX="$ac_prog"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443done
5444 done
5445IFS=$as_save_IFS
5446
5447fi
5448fi
5449ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5450if test -n "$ac_ct_CXX"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5452$as_echo "$ac_ct_CXX" >&6; }
5453else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
5456fi
5457
5458
5459 test -n "$ac_ct_CXX" && break
5460done
5461
5462 if test "x$ac_ct_CXX" = x; then
5463 CXX="g++"
5464 else
5465 case $cross_compiling:$ac_tool_warned in
5466yes:)
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469ac_tool_warned=yes ;;
5470esac
5471 CXX=$ac_ct_CXX
5472 fi
5473fi
5474
5475 fi
5476fi
5477# Provide some information about the compiler.
5478$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5479set X $ac_compile
5480ac_compiler=$2
5481for ac_option in --version -v -V -qversion; do
5482 { { ac_try="$ac_compiler $ac_option >&5"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5488$as_echo "$ac_try_echo"; } >&5
5489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5490 ac_status=$?
5491 if test -s conftest.err; then
5492 sed '10a\
5493... rest of stderr output deleted ...
5494 10q' conftest.err >conftest.er1
5495 cat conftest.er1 >&5
5496 fi
5497 rm -f conftest.er1 conftest.err
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5499 test $ac_status = 0; }
5500done
5501
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5503$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5504if ${ac_cv_cxx_compiler_gnu+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513#ifndef __GNUC__
5514 choke me
5515#endif
5516
5517 ;
5518 return 0;
5519}
5520_ACEOF
5521if ac_fn_cxx_try_compile "$LINENO"; then :
5522 ac_compiler_gnu=yes
5523else
5524 ac_compiler_gnu=no
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5528
5529fi
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5531$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5532if test $ac_compiler_gnu = yes; then
5533 GXX=yes
5534else
5535 GXX=
5536fi
5537ac_test_CXXFLAGS=${CXXFLAGS+set}
5538ac_save_CXXFLAGS=$CXXFLAGS
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5540$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5541if ${ac_cv_prog_cxx_g+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5545 ac_cxx_werror_flag=yes
5546 ac_cv_prog_cxx_g=no
5547 CXXFLAGS="-g"
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550
5551int
5552main ()
5553{
5554
5555 ;
5556 return 0;
5557}
5558_ACEOF
5559if ac_fn_cxx_try_compile "$LINENO"; then :
5560 ac_cv_prog_cxx_g=yes
5561else
5562 CXXFLAGS=""
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564/* end confdefs.h. */
5565
5566int
5567main ()
5568{
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574if ac_fn_cxx_try_compile "$LINENO"; then :
5575
5576else
5577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5578 CXXFLAGS="-g"
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h. */
5581
5582int
5583main ()
5584{
5585
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590if ac_fn_cxx_try_compile "$LINENO"; then :
5591 ac_cv_prog_cxx_g=yes
5592fi
5593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5599fi
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5601$as_echo "$ac_cv_prog_cxx_g" >&6; }
5602if test "$ac_test_CXXFLAGS" = set; then
5603 CXXFLAGS=$ac_save_CXXFLAGS
5604elif test $ac_cv_prog_cxx_g = yes; then
5605 if test "$GXX" = yes; then
5606 CXXFLAGS="-g -O2"
5607 else
5608 CXXFLAGS="-g"
5609 fi
5610else
5611 if test "$GXX" = yes; then
5612 CXXFLAGS="-O2"
5613 else
5614 CXXFLAGS=
5615 fi
5616fi
5617ac_ext=cpp
5618ac_cpp='$CXXCPP $CPPFLAGS'
5619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5622
5623depcc="$CXX" am_compiler_list=
5624
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5626$as_echo_n "checking dependency style of $depcc... " >&6; }
5627if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5631 # We make a subdir and do the tests there. Otherwise we can end up
5632 # making bogus files that we don't know about and never remove. For
5633 # instance it was reported that on HP-UX the gcc test will end up
5634 # making a dummy file named `D' -- because `-MD' means `put the output
5635 # in D'.
5636 mkdir conftest.dir
5637 # Copy depcomp to subdir because otherwise we won't find it if we're
5638 # using a relative directory.
5639 cp "$am_depcomp" conftest.dir
5640 cd conftest.dir
5641 # We will build objects and dependencies in a subdirectory because
5642 # it helps to detect inapplicable dependency modes. For instance
5643 # both Tru64's cc and ICC support -MD to output dependencies as a
5644 # side effect of compilation, but ICC will put the dependencies in
5645 # the current directory while Tru64 will put them in the object
5646 # directory.
5647 mkdir sub
5648
5649 am_cv_CXX_dependencies_compiler_type=none
5650 if test "$am_compiler_list" = ""; then
5651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5652 fi
5653 for depmode in $am_compiler_list; do
5654 # Setup a source with many dependencies, because some compilers
5655 # like to wrap large dependency lists on column 80 (with \), and
5656 # we should not choose a depcomp mode which is confused by this.
5657 #
5658 # We need to recreate these files for each test, as the compiler may
5659 # overwrite some of them when testing with obscure command lines.
5660 # This happens at least with the AIX C compiler.
5661 : > sub/conftest.c
5662 for i in 1 2 3 4 5 6; do
5663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5665 # Solaris 8's {/usr,}/bin/sh.
5666 touch sub/conftst$i.h
5667 done
5668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5669
5670 case $depmode in
5671 nosideeffect)
5672 # after this tag, mechanisms are not by side-effect, so they'll
5673 # only be used when explicitly requested
5674 if test "x$enable_dependency_tracking" = xyes; then
5675 continue
5676 else
5677 break
5678 fi
5679 ;;
5680 none) break ;;
5681 esac
5682 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5683 # mode. It turns out that the SunPro C++ compiler does not properly
5684 # handle `-M -o', and we need to detect this.
5685 if depmode=$depmode \
5686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5689 >/dev/null 2>conftest.err &&
5690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5694 # icc doesn't choke on unknown options, it will just issue warnings
5695 # or remarks (even with -Werror). So we grep stderr for any message
5696 # that says an option was ignored or not supported.
5697 # When given -MP, icc 7.0 and 7.1 complain thusly:
5698 # icc: Command line warning: ignoring option '-M'; no argument required
5699 # The diagnosis changed in icc 8.0:
5700 # icc: Command line remark: option '-MP' not supported
5701 if (grep 'ignoring option' conftest.err ||
5702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5703 am_cv_CXX_dependencies_compiler_type=$depmode
5704 break
5705 fi
5706 fi
5707 done
5708
5709 cd ..
5710 rm -rf conftest.dir
5711else
5712 am_cv_CXX_dependencies_compiler_type=none
5713fi
5714
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5717$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5718CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5719
5720 if
5721 test "x$enable_dependency_tracking" != xno \
5722 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5723 am__fastdepCXX_TRUE=
5724 am__fastdepCXX_FALSE='#'
5725else
5726 am__fastdepCXX_TRUE='#'
5727 am__fastdepCXX_FALSE=
5728fi
5729
5730
5731
5732
5733if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5734 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5735 (test "X$CXX" != "Xg++"))) ; then
5736 ac_ext=cpp
5737ac_cpp='$CXXCPP $CPPFLAGS'
5738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5742$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5743if test -z "$CXXCPP"; then
5744 if ${ac_cv_prog_CXXCPP+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746else
5747 # Double quotes because CXXCPP needs to be expanded
5748 for CXXCPP in "$CXX -E" "/lib/cpp"
5749 do
5750 ac_preproc_ok=false
5751for ac_cxx_preproc_warn_flag in '' yes
5752do
5753 # Use a header file that comes with gcc, so configuring glibc
5754 # with a fresh cross-compiler works.
5755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5756 # <limits.h> exists even on freestanding compilers.
5757 # On the NeXT, cc -E runs the code through the compiler's parser,
5758 # not just through cpp. "Syntax error" is here to catch this case.
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760/* end confdefs.h. */
5761@%:@ifdef __STDC__
5762@%:@ include <limits.h>
5763@%:@else
5764@%:@ include <assert.h>
5765@%:@endif
5766 Syntax error
5767_ACEOF
5768if ac_fn_cxx_try_cpp "$LINENO"; then :
5769
5770else
5771 # Broken: fails on valid input.
5772continue
5773fi
5774rm -f conftest.err conftest.i conftest.$ac_ext
5775
5776 # OK, works on sane cases. Now check whether nonexistent headers
5777 # can be detected and how.
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779/* end confdefs.h. */
5780@%:@include <ac_nonexistent.h>
5781_ACEOF
5782if ac_fn_cxx_try_cpp "$LINENO"; then :
5783 # Broken: success on invalid input.
5784continue
5785else
5786 # Passes both tests.
5787ac_preproc_ok=:
5788break
5789fi
5790rm -f conftest.err conftest.i conftest.$ac_ext
5791
5792done
5793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5794rm -f conftest.i conftest.err conftest.$ac_ext
5795if $ac_preproc_ok; then :
5796 break
5797fi
5798
5799 done
5800 ac_cv_prog_CXXCPP=$CXXCPP
5801
5802fi
5803 CXXCPP=$ac_cv_prog_CXXCPP
5804else
5805 ac_cv_prog_CXXCPP=$CXXCPP
5806fi
5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5808$as_echo "$CXXCPP" >&6; }
5809ac_preproc_ok=false
5810for ac_cxx_preproc_warn_flag in '' yes
5811do
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h. */
5820@%:@ifdef __STDC__
5821@%:@ include <limits.h>
5822@%:@else
5823@%:@ include <assert.h>
5824@%:@endif
5825 Syntax error
5826_ACEOF
5827if ac_fn_cxx_try_cpp "$LINENO"; then :
5828
5829else
5830 # Broken: fails on valid input.
5831continue
5832fi
5833rm -f conftest.err conftest.i conftest.$ac_ext
5834
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839@%:@include <ac_nonexistent.h>
5840_ACEOF
5841if ac_fn_cxx_try_cpp "$LINENO"; then :
5842 # Broken: success on invalid input.
5843continue
5844else
5845 # Passes both tests.
5846ac_preproc_ok=:
5847break
5848fi
5849rm -f conftest.err conftest.i conftest.$ac_ext
5850
5851done
5852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853rm -f conftest.i conftest.err conftest.$ac_ext
5854if $ac_preproc_ok; then :
5855
5856else
5857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5859as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5860See \`config.log' for more details" "$LINENO" 5; }
5861fi
5862
5863ac_ext=cpp
5864ac_cpp='$CXXCPP $CPPFLAGS'
5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868
5869fi
5870
5871
5872ac_ext=f
5873ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5874ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5876if test -n "$ac_tool_prefix"; then
5877 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5878 do
5879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882$as_echo_n "checking for $ac_word... " >&6; }
5883if ${ac_cv_prog_F77+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -n "$F77"; then
5887 ac_cv_prog_F77="$F77" # Let the user override the test.
5888else
5889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890for as_dir in $PATH
5891do
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_exec_ext in '' $ac_executable_extensions; do
5895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 break 2
5899 fi
5900done
5901 done
5902IFS=$as_save_IFS
5903
5904fi
5905fi
5906F77=$ac_cv_prog_F77
5907if test -n "$F77"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5909$as_echo "$F77" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912$as_echo "no" >&6; }
5913fi
5914
5915
5916 test -n "$F77" && break
5917 done
5918fi
5919if test -z "$F77"; then
5920 ac_ct_F77=$F77
5921 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5922do
5923 # Extract the first word of "$ac_prog", so it can be a program name with args.
5924set dummy $ac_prog; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if ${ac_cv_prog_ac_ct_F77+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929else
5930 if test -n "$ac_ct_F77"; then
5931 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940 ac_cv_prog_ac_ct_F77="$ac_prog"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944done
5945 done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950ac_ct_F77=$ac_cv_prog_ac_ct_F77
5951if test -n "$ac_ct_F77"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5953$as_echo "$ac_ct_F77" >&6; }
5954else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960 test -n "$ac_ct_F77" && break
5961done
5962
5963 if test "x$ac_ct_F77" = x; then
5964 F77=""
5965 else
5966 case $cross_compiling:$ac_tool_warned in
5967yes:)
5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5970ac_tool_warned=yes ;;
5971esac
5972 F77=$ac_ct_F77
5973 fi
5974fi
5975
5976
5977# Provide some information about the compiler.
5978$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5979set X $ac_compile
5980ac_compiler=$2
5981for ac_option in --version -v -V -qversion; do
5982 { { ac_try="$ac_compiler $ac_option >&5"
5983case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5988$as_echo "$ac_try_echo"; } >&5
5989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5990 ac_status=$?
5991 if test -s conftest.err; then
5992 sed '10a\
5993... rest of stderr output deleted ...
5994 10q' conftest.err >conftest.er1
5995 cat conftest.er1 >&5
5996 fi
5997 rm -f conftest.er1 conftest.err
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }
6000done
6001rm -f a.out
6002
6003# If we don't use `.F' as extension, the preprocessor is not run on the
6004# input file. (Note that this only needs to work for GNU compilers.)
6005ac_save_ext=$ac_ext
6006ac_ext=F
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6008$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6009if ${ac_cv_f77_compiler_gnu+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011else
6012 cat > conftest.$ac_ext <<_ACEOF
6013 program main
6014#ifndef __GNUC__
6015 choke me
6016#endif
6017
6018 end
6019_ACEOF
6020if ac_fn_f77_try_compile "$LINENO"; then :
6021 ac_compiler_gnu=yes
6022else
6023 ac_compiler_gnu=no
6024fi
6025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6027
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6030$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6031ac_ext=$ac_save_ext
6032ac_test_FFLAGS=${FFLAGS+set}
6033ac_save_FFLAGS=$FFLAGS
6034FFLAGS=
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6036$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6037if ${ac_cv_prog_f77_g+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040 FFLAGS=-g
6041cat > conftest.$ac_ext <<_ACEOF
6042 program main
6043
6044 end
6045_ACEOF
6046if ac_fn_f77_try_compile "$LINENO"; then :
6047 ac_cv_prog_f77_g=yes
6048else
6049 ac_cv_prog_f77_g=no
6050fi
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6055$as_echo "$ac_cv_prog_f77_g" >&6; }
6056if test "$ac_test_FFLAGS" = set; then
6057 FFLAGS=$ac_save_FFLAGS
6058elif test $ac_cv_prog_f77_g = yes; then
6059 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6060 FFLAGS="-g -O2"
6061 else
6062 FFLAGS="-g"
6063 fi
6064else
6065 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6066 FFLAGS="-O2"
6067 else
6068 FFLAGS=
6069 fi
6070fi
6071
6072if test $ac_compiler_gnu = yes; then
6073 G77=yes
6074else
6075 G77=
6076fi
6077ac_ext=c
6078ac_cpp='$CPP $CPPFLAGS'
6079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6081ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082
6083
6084
6085# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6086# find the maximum length of command line arguments
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6088$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6089if ${lt_cv_sys_max_cmd_len+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091else
6092 i=0
6093 teststring="ABCD"
6094
6095 case $build_os in
6096 msdosdjgpp*)
6097 # On DJGPP, this test can blow up pretty badly due to problems in libc
6098 # (any single argument exceeding 2000 bytes causes a buffer overrun
6099 # during glob expansion). Even if it were fixed, the result of this
6100 # check would be larger than it should be.
6101 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6102 ;;
6103
6104 gnu*)
6105 # Under GNU Hurd, this test is not required because there is
6106 # no limit to the length of command line arguments.
6107 # Libtool will interpret -1 as no limit whatsoever
6108 lt_cv_sys_max_cmd_len=-1;
6109 ;;
6110
6111 cygwin* | mingw*)
6112 # On Win9x/ME, this test blows up -- it succeeds, but takes
6113 # about 5 minutes as the teststring grows exponentially.
6114 # Worse, since 9x/ME are not pre-emptively multitasking,
6115 # you end up with a "frozen" computer, even though with patience
6116 # the test eventually succeeds (with a max line length of 256k).
6117 # Instead, let's just punt: use the minimum linelength reported by
6118 # all of the supported platforms: 8192 (on NT/2K/XP).
6119 lt_cv_sys_max_cmd_len=8192;
6120 ;;
6121
6122 amigaos*)
6123 # On AmigaOS with pdksh, this test takes hours, literally.
6124 # So we just punt and use a minimum line length of 8192.
6125 lt_cv_sys_max_cmd_len=8192;
6126 ;;
6127
6128 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6129 # This has been around since 386BSD, at least. Likely further.
6130 if test -x /sbin/sysctl; then
6131 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6132 elif test -x /usr/sbin/sysctl; then
6133 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6134 else
6135 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6136 fi
6137 # And add a safety zone
6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6140 ;;
6141
6142 interix*)
6143 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6144 lt_cv_sys_max_cmd_len=196608
6145 ;;
6146
6147 osf*)
6148 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6149 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6150 # nice to cause kernel panics so lets avoid the loop below.
6151 # First set a reasonable default.
6152 lt_cv_sys_max_cmd_len=16384
6153 #
6154 if test -x /sbin/sysconfig; then
6155 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6156 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6157 esac
6158 fi
6159 ;;
6160 sco3.2v5*)
6161 lt_cv_sys_max_cmd_len=102400
6162 ;;
6163 sysv5* | sco5v6* | sysv4.2uw2*)
6164 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6165 if test -n "$kargmax"; then
6166 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6167 else
6168 lt_cv_sys_max_cmd_len=32768
6169 fi
6170 ;;
6171 *)
6172 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6173 if test -n "$lt_cv_sys_max_cmd_len"; then
6174 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6175 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6176 else
6177 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6178 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6179 = "XX$teststring") >/dev/null 2>&1 &&
6180 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6181 lt_cv_sys_max_cmd_len=$new_result &&
6182 test $i != 17 # 1/2 MB should be enough
6183 do
6184 i=`expr $i + 1`
6185 teststring=$teststring$teststring
6186 done
6187 teststring=
6188 # Add a significant safety factor because C++ compilers can tack on massive
6189 # amounts of additional arguments before passing them to the linker.
6190 # It appears as though 1/2 is a usable value.
6191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6192 fi
6193 ;;
6194 esac
6195
6196fi
6197
6198if test -n $lt_cv_sys_max_cmd_len ; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6200$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6203$as_echo "none" >&6; }
6204fi
6205
6206
6207
6208
6209
6210# Check for command to grab the raw symbol name followed by C symbol from nm.
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6212$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6213if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215else
6216
6217# These are sane defaults that work on at least a few old systems.
6218# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6219
6220# Character class describing NM global symbol codes.
6221symcode='[BCDEGRST]'
6222
6223# Regexp to match symbols that can be accessed directly from C.
6224sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6225
6226# Transform an extracted symbol line into a proper C declaration
6227lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6228
6229# Transform an extracted symbol line into symbol name and symbol address
6230lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6231
6232# Define system-specific variables.
6233case $host_os in
6234aix*)
6235 symcode='[BCDT]'
6236 ;;
6237cygwin* | mingw* | pw32*)
6238 symcode='[ABCDGISTW]'
6239 ;;
6240hpux*) # Its linker distinguishes data from code symbols
6241 if test "$host_cpu" = ia64; then
6242 symcode='[ABCDEGRST]'
6243 fi
6244 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6245 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6246 ;;
6247linux* | k*bsd*-gnu)
6248 if test "$host_cpu" = ia64; then
6249 symcode='[ABCDGIRSTW]'
6250 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6251 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6252 fi
6253 ;;
6254irix* | nonstopux*)
6255 symcode='[BCDEGRST]'
6256 ;;
6257osf*)
6258 symcode='[BCDEGQRST]'
6259 ;;
6260solaris*)
6261 symcode='[BDRT]'
6262 ;;
6263sco3.2v5*)
6264 symcode='[DT]'
6265 ;;
6266sysv4.2uw2*)
6267 symcode='[DT]'
6268 ;;
6269sysv5* | sco5v6* | unixware* | OpenUNIX*)
6270 symcode='[ABDT]'
6271 ;;
6272sysv4)
6273 symcode='[DFNSTU]'
6274 ;;
6275esac
6276
6277# Handle CRLF in mingw tool chain
6278opt_cr=
6279case $build_os in
6280mingw*)
6281 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6282 ;;
6283esac
6284
6285# If we're using GNU nm, then use its standard symbol codes.
6286case `$NM -V 2>&1` in
6287*GNU* | *'with BFD'*)
6288 symcode='[ABCDGIRSTW]' ;;
6289esac
6290
6291# Try without a prefix undercore, then with it.
6292for ac_symprfx in "" "_"; do
6293
6294 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6295 symxfrm="\\1 $ac_symprfx\\2 \\2"
6296
6297 # Write the raw and C identifiers.
6298 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6299
6300 # Check to see that the pipe works correctly.
6301 pipe_works=no
6302
6303 rm -f conftest*
6304 cat > conftest.$ac_ext <<EOF
6305#ifdef __cplusplus
6306extern "C" {
6307#endif
6308char nm_test_var;
6309void nm_test_func(){}
6310#ifdef __cplusplus
6311}
6312#endif
6313int main(){nm_test_var='a';nm_test_func();return(0);}
6314EOF
6315
6316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317 (eval $ac_compile) 2>&5
6318 ac_status=$?
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }; then
6321 # Now try to grab the symbols.
6322 nlist=conftest.nm
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6324 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6325 ac_status=$?
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; } && test -s "$nlist"; then
6328 # Try sorting and uniquifying the output.
6329 if sort "$nlist" | uniq > "$nlist"T; then
6330 mv -f "$nlist"T "$nlist"
6331 else
6332 rm -f "$nlist"T
6333 fi
6334
6335 # Make sure that we snagged all the symbols we need.
6336 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6337 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6338 cat <<EOF > conftest.$ac_ext
6339#ifdef __cplusplus
6340extern "C" {
6341#endif
6342
6343EOF
6344 # Now generate the symbol file.
6345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6346
6347 cat <<EOF >> conftest.$ac_ext
6348#if defined (__STDC__) && __STDC__
6349# define lt_ptr_t void *
6350#else
6351# define lt_ptr_t char *
6352# define const
6353#endif
6354
6355/* The mapping between symbol names and symbols. */
6356const struct {
6357 const char *name;
6358 lt_ptr_t address;
6359}
6360lt_preloaded_symbols[] =
6361{
6362EOF
6363 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6364 cat <<\EOF >> conftest.$ac_ext
6365 {0, (lt_ptr_t) 0}
6366};
6367
6368#ifdef __cplusplus
6369}
6370#endif
6371EOF
6372 # Now try linking the two files.
6373 mv conftest.$ac_objext conftstm.$ac_objext
6374 lt_save_LIBS="$LIBS"
6375 lt_save_CFLAGS="$CFLAGS"
6376 LIBS="conftstm.$ac_objext"
6377 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6379 (eval $ac_link) 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6383 pipe_works=yes
6384 fi
6385 LIBS="$lt_save_LIBS"
6386 CFLAGS="$lt_save_CFLAGS"
6387 else
6388 echo "cannot find nm_test_func in $nlist" >&5
6389 fi
6390 else
6391 echo "cannot find nm_test_var in $nlist" >&5
6392 fi
6393 else
6394 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395 fi
6396 else
6397 echo "$progname: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 fi
6400 rm -rf conftest* conftst*
6401
6402 # Do not use the global_symbol_pipe unless it works.
6403 if test "$pipe_works" = yes; then
6404 break
6405 else
6406 lt_cv_sys_global_symbol_pipe=
6407 fi
6408done
6409
6410fi
6411
6412if test -z "$lt_cv_sys_global_symbol_pipe"; then
6413 lt_cv_sys_global_symbol_to_cdecl=
6414fi
6415if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6417$as_echo "failed" >&6; }
6418else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6420$as_echo "ok" >&6; }
6421fi
6422
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6424$as_echo_n "checking for objdir... " >&6; }
6425if ${lt_cv_objdir+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427else
6428 rm -f .libs 2>/dev/null
6429mkdir .libs 2>/dev/null
6430if test -d .libs; then
6431 lt_cv_objdir=.libs
6432else
6433 # MS-DOS does not allow filenames that begin with a dot.
6434 lt_cv_objdir=_libs
6435fi
6436rmdir .libs 2>/dev/null
6437fi
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6439$as_echo "$lt_cv_objdir" >&6; }
6440objdir=$lt_cv_objdir
6441
6442
6443
6444
6445
6446case $host_os in
6447aix3*)
6448 # AIX sometimes has problems with the GCC collect2 program. For some
6449 # reason, if we set the COLLECT_NAMES environment variable, the problems
6450 # vanish in a puff of smoke.
6451 if test "X${COLLECT_NAMES+set}" != Xset; then
6452 COLLECT_NAMES=
6453 export COLLECT_NAMES
6454 fi
6455 ;;
6456esac
6457
6458# Sed substitution that helps us do robust quoting. It backslashifies
6459# metacharacters that are still active within double-quoted strings.
6460Xsed='sed -e 1s/^X//'
6461sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6462
6463# Same as above, but do not quote variable references.
6464double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6465
6466# Sed substitution to delay expansion of an escaped shell variable in a
6467# double_quote_subst'ed string.
6468delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6469
6470# Sed substitution to avoid accidental globbing in evaled expressions
6471no_glob_subst='s/\*/\\\*/g'
6472
6473# Constants:
6474rm="rm -f"
6475
6476# Global variables:
6477default_ofile=libtool
6478can_build_shared=yes
6479
6480# All known linkers require a `.a' archive for static linking (except MSVC,
6481# which needs '.lib').
6482libext=a
6483ltmain="$ac_aux_dir/ltmain.sh"
6484ofile="$default_ofile"
6485with_gnu_ld="$lt_cv_prog_gnu_ld"
6486
6487if test -n "$ac_tool_prefix"; then
6488 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6489set dummy ${ac_tool_prefix}ar; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if ${ac_cv_prog_AR+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$AR"; then
6496 ac_cv_prog_AR="$AR" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_AR="${ac_tool_prefix}ar"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515AR=$ac_cv_prog_AR
6516if test -n "$AR"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6518$as_echo "$AR" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525fi
6526if test -z "$ac_cv_prog_AR"; then
6527 ac_ct_AR=$AR
6528 # Extract the first word of "ar", so it can be a program name with args.
6529set dummy ar; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if ${ac_cv_prog_ac_ct_AR+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 if test -n "$ac_ct_AR"; then
6536 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545 ac_cv_prog_ac_ct_AR="ar"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549done
6550 done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555ac_ct_AR=$ac_cv_prog_ac_ct_AR
6556if test -n "$ac_ct_AR"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6558$as_echo "$ac_ct_AR" >&6; }
6559else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564 if test "x$ac_ct_AR" = x; then
6565 AR="false"
6566 else
6567 case $cross_compiling:$ac_tool_warned in
6568yes:)
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571ac_tool_warned=yes ;;
6572esac
6573 AR=$ac_ct_AR
6574 fi
6575else
6576 AR="$ac_cv_prog_AR"
6577fi
6578
6579if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583$as_echo_n "checking for $ac_word... " >&6; }
6584if ${ac_cv_prog_RANLIB+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586else
6587 if test -n "$RANLIB"; then
6588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6589else
6590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591for as_dir in $PATH
6592do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601done
6602 done
6603IFS=$as_save_IFS
6604
6605fi
6606fi
6607RANLIB=$ac_cv_prog_RANLIB
6608if test -n "$RANLIB"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6610$as_echo "$RANLIB" >&6; }
6611else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$ac_cv_prog_RANLIB"; then
6619 ac_ct_RANLIB=$RANLIB
6620 # Extract the first word of "ranlib", so it can be a program name with args.
6621set dummy ranlib; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6625 $as_echo_n "(cached) " >&6
6626else
6627 if test -n "$ac_ct_RANLIB"; then
6628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6637 ac_cv_prog_ac_ct_RANLIB="ranlib"
6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642 done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6648if test -n "$ac_ct_RANLIB"; then
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6650$as_echo "$ac_ct_RANLIB" >&6; }
6651else
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656 if test "x$ac_ct_RANLIB" = x; then
6657 RANLIB=":"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665 RANLIB=$ac_ct_RANLIB
6666 fi
6667else
6668 RANLIB="$ac_cv_prog_RANLIB"
6669fi
6670
6671if test -n "$ac_tool_prefix"; then
6672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6673set dummy ${ac_tool_prefix}strip; ac_word=$2
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6675$as_echo_n "checking for $ac_word... " >&6; }
6676if ${ac_cv_prog_STRIP+:} false; then :
6677 $as_echo_n "(cached) " >&6
6678else
6679 if test -n "$STRIP"; then
6680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6681else
6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683for as_dir in $PATH
6684do
6685 IFS=$as_save_IFS
6686 test -z "$as_dir" && as_dir=.
6687 for ac_exec_ext in '' $ac_executable_extensions; do
6688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 break 2
6692 fi
6693done
6694 done
6695IFS=$as_save_IFS
6696
6697fi
6698fi
6699STRIP=$ac_cv_prog_STRIP
6700if test -n "$STRIP"; then
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6702$as_echo "$STRIP" >&6; }
6703else
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6705$as_echo "no" >&6; }
6706fi
6707
6708
6709fi
6710if test -z "$ac_cv_prog_STRIP"; then
6711 ac_ct_STRIP=$STRIP
6712 # Extract the first word of "strip", so it can be a program name with args.
6713set dummy strip; ac_word=$2
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715$as_echo_n "checking for $ac_word... " >&6; }
6716if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6717 $as_echo_n "(cached) " >&6
6718else
6719 if test -n "$ac_ct_STRIP"; then
6720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6721else
6722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723for as_dir in $PATH
6724do
6725 IFS=$as_save_IFS
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_ac_ct_STRIP="strip"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733done
6734 done
6735IFS=$as_save_IFS
6736
6737fi
6738fi
6739ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6740if test -n "$ac_ct_STRIP"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6742$as_echo "$ac_ct_STRIP" >&6; }
6743else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745$as_echo "no" >&6; }
6746fi
6747
6748 if test "x$ac_ct_STRIP" = x; then
6749 STRIP=":"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752yes:)
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755ac_tool_warned=yes ;;
6756esac
6757 STRIP=$ac_ct_STRIP
6758 fi
6759else
6760 STRIP="$ac_cv_prog_STRIP"
6761fi
6762
6763
6764old_CC="$CC"
6765old_CFLAGS="$CFLAGS"
6766
6767# Set sane defaults for various variables
6768test -z "$AR" && AR=ar
6769test -z "$AR_FLAGS" && AR_FLAGS=cru
6770test -z "$AS" && AS=as
6771test -z "$CC" && CC=cc
6772test -z "$LTCC" && LTCC=$CC
6773test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6774test -z "$DLLTOOL" && DLLTOOL=dlltool
6775test -z "$LD" && LD=ld
6776test -z "$LN_S" && LN_S="ln -s"
6777test -z "$MAGIC_CMD" && MAGIC_CMD=file
6778test -z "$NM" && NM=nm
6779test -z "$SED" && SED=sed
6780test -z "$OBJDUMP" && OBJDUMP=objdump
6781test -z "$RANLIB" && RANLIB=:
6782test -z "$STRIP" && STRIP=:
6783test -z "$ac_objext" && ac_objext=o
6784
6785# Determine commands to create old-style static archives.
6786old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6787old_postinstall_cmds='chmod 644 $oldlib'
6788old_postuninstall_cmds=
6789
6790if test -n "$RANLIB"; then
6791 case $host_os in
6792 openbsd*)
6793 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6794 ;;
6795 *)
6796 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6797 ;;
6798 esac
6799 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6800fi
6801
6802for cc_temp in $compiler""; do
6803 case $cc_temp in
6804 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6805 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6806 \-*) ;;
6807 *) break;;
6808 esac
6809done
6810cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6811
6812
6813# Only perform the check for file, if the check method requires it
6814case $deplibs_check_method in
6815file_magic*)
6816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6818$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6819if ${lt_cv_path_MAGIC_CMD+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821else
6822 case $MAGIC_CMD in
6823[\\/*] | ?:[\\/]*)
6824 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6825 ;;
6826*)
6827 lt_save_MAGIC_CMD="$MAGIC_CMD"
6828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6830 for ac_dir in $ac_dummy; do
6831 IFS="$lt_save_ifs"
6832 test -z "$ac_dir" && ac_dir=.
6833 if test -f $ac_dir/${ac_tool_prefix}file; then
6834 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6835 if test -n "$file_magic_test_file"; then
6836 case $deplibs_check_method in
6837 "file_magic "*)
6838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6841 $EGREP "$file_magic_regex" > /dev/null; then
6842 :
6843 else
6844 cat <<EOF 1>&2
6845
6846*** Warning: the command libtool uses to detect shared libraries,
6847*** $file_magic_cmd, produces output that libtool cannot recognize.
6848*** The result is that libtool may fail to recognize shared libraries
6849*** as such. This will affect the creation of libtool libraries that
6850*** depend on shared libraries, but programs linked with such libtool
6851*** libraries will work regardless of this problem. Nevertheless, you
6852*** may want to report the problem to your system manager and/or to
6853*** bug-libtool@gnu.org
6854
6855EOF
6856 fi ;;
6857 esac
6858 fi
6859 break
6860 fi
6861 done
6862 IFS="$lt_save_ifs"
6863 MAGIC_CMD="$lt_save_MAGIC_CMD"
6864 ;;
6865esac
6866fi
6867
6868MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6869if test -n "$MAGIC_CMD"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6871$as_echo "$MAGIC_CMD" >&6; }
6872else
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877if test -z "$lt_cv_path_MAGIC_CMD"; then
6878 if test -n "$ac_tool_prefix"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6880$as_echo_n "checking for file... " >&6; }
6881if ${lt_cv_path_MAGIC_CMD+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883else
6884 case $MAGIC_CMD in
6885[\\/*] | ?:[\\/]*)
6886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6887 ;;
6888*)
6889 lt_save_MAGIC_CMD="$MAGIC_CMD"
6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6892 for ac_dir in $ac_dummy; do
6893 IFS="$lt_save_ifs"
6894 test -z "$ac_dir" && ac_dir=.
6895 if test -f $ac_dir/file; then
6896 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6897 if test -n "$file_magic_test_file"; then
6898 case $deplibs_check_method in
6899 "file_magic "*)
6900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6903 $EGREP "$file_magic_regex" > /dev/null; then
6904 :
6905 else
6906 cat <<EOF 1>&2
6907
6908*** Warning: the command libtool uses to detect shared libraries,
6909*** $file_magic_cmd, produces output that libtool cannot recognize.
6910*** The result is that libtool may fail to recognize shared libraries
6911*** as such. This will affect the creation of libtool libraries that
6912*** depend on shared libraries, but programs linked with such libtool
6913*** libraries will work regardless of this problem. Nevertheless, you
6914*** may want to report the problem to your system manager and/or to
6915*** bug-libtool@gnu.org
6916
6917EOF
6918 fi ;;
6919 esac
6920 fi
6921 break
6922 fi
6923 done
6924 IFS="$lt_save_ifs"
6925 MAGIC_CMD="$lt_save_MAGIC_CMD"
6926 ;;
6927esac
6928fi
6929
6930MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6931if test -n "$MAGIC_CMD"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6933$as_echo "$MAGIC_CMD" >&6; }
6934else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936$as_echo "no" >&6; }
6937fi
6938
6939 else
6940 MAGIC_CMD=:
6941 fi
6942fi
6943
6944 fi
6945 ;;
6946esac
6947
6948
6949 case $host_os in
6950 rhapsody* | darwin*)
6951 if test -n "$ac_tool_prefix"; then
6952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6953set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955$as_echo_n "checking for $ac_word... " >&6; }
6956if ${ac_cv_prog_DSYMUTIL+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 if test -n "$DSYMUTIL"; then
6960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 break 2
6972 fi
6973done
6974 done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979DSYMUTIL=$ac_cv_prog_DSYMUTIL
6980if test -n "$DSYMUTIL"; then
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6982$as_echo "$DSYMUTIL" >&6; }
6983else
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985$as_echo "no" >&6; }
6986fi
6987
6988
6989fi
6990if test -z "$ac_cv_prog_DSYMUTIL"; then
6991 ac_ct_DSYMUTIL=$DSYMUTIL
6992 # Extract the first word of "dsymutil", so it can be a program name with args.
6993set dummy dsymutil; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998else
6999 if test -n "$ac_ct_DSYMUTIL"; then
7000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013done
7014 done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7020if test -n "$ac_ct_DSYMUTIL"; then
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7022$as_echo "$ac_ct_DSYMUTIL" >&6; }
7023else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028 if test "x$ac_ct_DSYMUTIL" = x; then
7029 DSYMUTIL=":"
7030 else
7031 case $cross_compiling:$ac_tool_warned in
7032yes:)
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7035ac_tool_warned=yes ;;
7036esac
7037 DSYMUTIL=$ac_ct_DSYMUTIL
7038 fi
7039else
7040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7041fi
7042
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7045set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047$as_echo_n "checking for $ac_word... " >&6; }
7048if ${ac_cv_prog_NMEDIT+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050else
7051 if test -n "$NMEDIT"; then
7052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069fi
7070fi
7071NMEDIT=$ac_cv_prog_NMEDIT
7072if test -n "$NMEDIT"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7074$as_echo "$NMEDIT" >&6; }
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079
7080
7081fi
7082if test -z "$ac_cv_prog_NMEDIT"; then
7083 ac_ct_NMEDIT=$NMEDIT
7084 # Extract the first word of "nmedit", so it can be a program name with args.
7085set dummy nmedit; ac_word=$2
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087$as_echo_n "checking for $ac_word... " >&6; }
7088if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090else
7091 if test -n "$ac_ct_NMEDIT"; then
7092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7104 fi
7105done
7106 done
7107IFS=$as_save_IFS
7108
7109fi
7110fi
7111ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7112if test -n "$ac_ct_NMEDIT"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7114$as_echo "$ac_ct_NMEDIT" >&6; }
7115else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118fi
7119
7120 if test "x$ac_ct_NMEDIT" = x; then
7121 NMEDIT=":"
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124yes:)
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127ac_tool_warned=yes ;;
7128esac
7129 NMEDIT=$ac_ct_NMEDIT
7130 fi
7131else
7132 NMEDIT="$ac_cv_prog_NMEDIT"
7133fi
7134
7135
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7137$as_echo_n "checking for -single_module linker flag... " >&6; }
7138if ${lt_cv_apple_cc_single_mod+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140else
7141 lt_cv_apple_cc_single_mod=no
7142 if test -z "${LT_MULTI_MODULE}"; then
7143 # By default we will add the -single_module flag. You can override
7144 # by either setting the environment variable LT_MULTI_MODULE
7145 # non-empty at configure time, or by adding -multi_module to the
7146 # link flags.
7147 echo "int foo(void){return 1;}" > conftest.c
7148 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7149 -dynamiclib ${wl}-single_module conftest.c
7150 if test -f libconftest.dylib; then
7151 lt_cv_apple_cc_single_mod=yes
7152 rm -rf libconftest.dylib*
7153 fi
7154 rm conftest.c
7155 fi
7156fi
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7158$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7160$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7161if ${lt_cv_ld_exported_symbols_list+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163else
7164 lt_cv_ld_exported_symbols_list=no
7165 save_LDFLAGS=$LDFLAGS
7166 echo "_main" > conftest.sym
7167 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h. */
7170
7171int
7172main ()
7173{
7174
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_link "$LINENO"; then :
7180 lt_cv_ld_exported_symbols_list=yes
7181else
7182 lt_cv_ld_exported_symbols_list=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 LDFLAGS="$save_LDFLAGS"
7187
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7190$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7191 case $host_os in
7192 rhapsody* | darwin1.[0123])
7193 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7194 darwin1.*)
7195 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7196 darwin*)
7197 # if running on 10.5 or later, the deployment target defaults
7198 # to the OS version, if on x86, and 10.4, the deployment
7199 # target defaults to 10.4. Don't you love it?
7200 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7201 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7202 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7203 10.[012]*)
7204 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7205 10.*)
7206 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7207 esac
7208 ;;
7209 esac
7210 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7211 _lt_dar_single_mod='$single_module'
7212 fi
7213 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7214 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7215 else
7216 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7217 fi
7218 if test "$DSYMUTIL" != ":"; then
7219 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7220 else
7221 _lt_dsymutil=
7222 fi
7223 ;;
7224 esac
7225
7226
7227enable_dlopen=no
7228enable_win32_dll=no
7229
7230@%:@ Check whether --enable-libtool-lock was given.
7231if test "${enable_libtool_lock+set}" = set; then :
7232 enableval=$enable_libtool_lock;
7233fi
7234
7235test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7236
7237
7238@%:@ Check whether --with-pic was given.
7239if test "${with_pic+set}" = set; then :
7240 withval=$with_pic; pic_mode="$withval"
7241else
7242 pic_mode=default
7243fi
7244
7245test -z "$pic_mode" && pic_mode=default
7246
7247# Use C for the default configuration in the libtool script
7248tagname=
7249lt_save_CC="$CC"
7250ac_ext=c
7251ac_cpp='$CPP $CPPFLAGS'
7252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256
7257# Source file extension for C test sources.
7258ac_ext=c
7259
7260# Object file extension for compiled C test sources.
7261objext=o
7262objext=$objext
7263
7264# Code to be used in simple compile tests
7265lt_simple_compile_test_code="int some_variable = 0;"
7266
7267# Code to be used in simple link tests
7268lt_simple_link_test_code='int main(){return(0);}'
7269
7270
7271# If no C compiler was specified, use CC.
7272LTCC=${LTCC-"$CC"}
7273
7274# If no C compiler flags were specified, use CFLAGS.
7275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7276
7277# Allow CC to be a program name with arguments.
7278compiler=$CC
7279
7280
7281# save warnings/boilerplate of simple test code
7282ac_outfile=conftest.$ac_objext
7283echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7284eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285_lt_compiler_boilerplate=`cat conftest.err`
7286$rm conftest*
7287
7288ac_outfile=conftest.$ac_objext
7289echo "$lt_simple_link_test_code" >conftest.$ac_ext
7290eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7291_lt_linker_boilerplate=`cat conftest.err`
7292$rm -r conftest*
7293
7294
7295
7296lt_prog_compiler_no_builtin_flag=
7297
7298if test "$GCC" = yes; then
7299 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7300
7301
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7303$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7304if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306else
7307 lt_cv_prog_compiler_rtti_exceptions=no
7308 ac_outfile=conftest.$ac_objext
7309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7310 lt_compiler_flag="-fno-rtti -fno-exceptions"
7311 # Insert the option either (1) after the last *FLAGS variable, or
7312 # (2) before a word containing "conftest.", or (3) at the end.
7313 # Note that $ac_compile itself does not contain backslashes and begins
7314 # with a dollar sign (not a hyphen), so the echo should work correctly.
7315 # The option is referenced via a variable to avoid confusing sed.
7316 lt_compile=`echo "$ac_compile" | $SED \
7317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7319 -e 's:$: $lt_compiler_flag:'`
7320 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7321 (eval "$lt_compile" 2>conftest.err)
7322 ac_status=$?
7323 cat conftest.err >&5
7324 echo "$as_me:__oline__: \$? = $ac_status" >&5
7325 if (exit $ac_status) && test -s "$ac_outfile"; then
7326 # The compiler can only warn and ignore the option if not recognized
7327 # So say no if there are warnings other than the usual output.
7328 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7331 lt_cv_prog_compiler_rtti_exceptions=yes
7332 fi
7333 fi
7334 $rm conftest*
7335
7336fi
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7338$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7339
7340if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7341 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7342else
7343 :
7344fi
7345
7346fi
7347
7348lt_prog_compiler_wl=
7349lt_prog_compiler_pic=
7350lt_prog_compiler_static=
7351
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7353$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7354
7355 if test "$GCC" = yes; then
7356 lt_prog_compiler_wl='-Wl,'
7357 lt_prog_compiler_static='-static'
7358
7359 case $host_os in
7360 aix*)
7361 # All AIX code is PIC.
7362 if test "$host_cpu" = ia64; then
7363 # AIX 5 now supports IA64 processor
7364 lt_prog_compiler_static='-Bstatic'
7365 fi
7366 ;;
7367
7368 amigaos*)
7369 # FIXME: we need at least 68020 code to build shared libraries, but
7370 # adding the `-m68020' flag to GCC prevents building anything better,
7371 # like `-m68040'.
7372 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7373 ;;
7374
7375 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7376 # PIC is the default for these OSes.
7377 ;;
7378
7379 mingw* | cygwin* | pw32* | os2*)
7380 # This hack is so that the source file can tell whether it is being
7381 # built for inclusion in a dll (and should export symbols for example).
7382 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7383 # (--disable-auto-import) libraries
7384 lt_prog_compiler_pic='-DDLL_EXPORT'
7385 ;;
7386
7387 darwin* | rhapsody*)
7388 # PIC is the default on this platform
7389 # Common symbols not allowed in MH_DYLIB files
7390 lt_prog_compiler_pic='-fno-common'
7391 ;;
7392
7393 interix[3-9]*)
7394 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7395 # Instead, we relocate shared libraries at runtime.
7396 ;;
7397
7398 msdosdjgpp*)
7399 # Just because we use GCC doesn't mean we suddenly get shared libraries
7400 # on systems that don't support them.
7401 lt_prog_compiler_can_build_shared=no
7402 enable_shared=no
7403 ;;
7404
7405 sysv4*MP*)
7406 if test -d /usr/nec; then
7407 lt_prog_compiler_pic=-Kconform_pic
7408 fi
7409 ;;
7410
7411 hpux*)
7412 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7413 # not for PA HP-UX.
7414 case $host_cpu in
7415 hppa*64*|ia64*)
7416 # +Z the default
7417 ;;
7418 *)
7419 lt_prog_compiler_pic='-fPIC'
7420 ;;
7421 esac
7422 ;;
7423
7424 *)
7425 lt_prog_compiler_pic='-fPIC'
7426 ;;
7427 esac
7428 else
7429 # PORTME Check for flag to pass linker flags through the system compiler.
7430 case $host_os in
7431 aix*)
7432 lt_prog_compiler_wl='-Wl,'
7433 if test "$host_cpu" = ia64; then
7434 # AIX 5 now supports IA64 processor
7435 lt_prog_compiler_static='-Bstatic'
7436 else
7437 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7438 fi
7439 ;;
7440 darwin*)
7441 # PIC is the default on this platform
7442 # Common symbols not allowed in MH_DYLIB files
7443 case $cc_basename in
7444 xlc*)
7445 lt_prog_compiler_pic='-qnocommon'
7446 lt_prog_compiler_wl='-Wl,'
7447 ;;
7448 esac
7449 ;;
7450
7451 mingw* | cygwin* | pw32* | os2*)
7452 # This hack is so that the source file can tell whether it is being
7453 # built for inclusion in a dll (and should export symbols for example).
7454 lt_prog_compiler_pic='-DDLL_EXPORT'
7455 ;;
7456
7457 hpux9* | hpux10* | hpux11*)
7458 lt_prog_compiler_wl='-Wl,'
7459 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7460 # not for PA HP-UX.
7461 case $host_cpu in
7462 hppa*64*|ia64*)
7463 # +Z the default
7464 ;;
7465 *)
7466 lt_prog_compiler_pic='+Z'
7467 ;;
7468 esac
7469 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7470 lt_prog_compiler_static='${wl}-a ${wl}archive'
7471 ;;
7472
7473 irix5* | irix6* | nonstopux*)
7474 lt_prog_compiler_wl='-Wl,'
7475 # PIC (with -KPIC) is the default.
7476 lt_prog_compiler_static='-non_shared'
7477 ;;
7478
7479 newsos6)
7480 lt_prog_compiler_pic='-KPIC'
7481 lt_prog_compiler_static='-Bstatic'
7482 ;;
7483
7484 linux* | k*bsd*-gnu)
7485 case $cc_basename in
7486 icc* | ecc*)
7487 lt_prog_compiler_wl='-Wl,'
7488 lt_prog_compiler_pic='-KPIC'
7489 lt_prog_compiler_static='-static'
7490 ;;
7491 pgcc* | pgf77* | pgf90* | pgf95*)
7492 # Portland Group compilers (*not* the Pentium gcc compiler,
7493 # which looks to be a dead project)
7494 lt_prog_compiler_wl='-Wl,'
7495 lt_prog_compiler_pic='-fpic'
7496 lt_prog_compiler_static='-Bstatic'
7497 ;;
7498 ccc*)
7499 lt_prog_compiler_wl='-Wl,'
7500 # All Alpha code is PIC.
7501 lt_prog_compiler_static='-non_shared'
7502 ;;
7503 *)
7504 case `$CC -V 2>&1 | sed 5q` in
7505 *Sun\ C*)
7506 # Sun C 5.9
7507 lt_prog_compiler_pic='-KPIC'
7508 lt_prog_compiler_static='-Bstatic'
7509 lt_prog_compiler_wl='-Wl,'
7510 ;;
7511 *Sun\ F*)
7512 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7513 lt_prog_compiler_pic='-KPIC'
7514 lt_prog_compiler_static='-Bstatic'
7515 lt_prog_compiler_wl=''
7516 ;;
7517 esac
7518 ;;
7519 esac
7520 ;;
7521
7522 osf3* | osf4* | osf5*)
7523 lt_prog_compiler_wl='-Wl,'
7524 # All OSF/1 code is PIC.
7525 lt_prog_compiler_static='-non_shared'
7526 ;;
7527
7528 rdos*)
7529 lt_prog_compiler_static='-non_shared'
7530 ;;
7531
7532 solaris*)
7533 lt_prog_compiler_pic='-KPIC'
7534 lt_prog_compiler_static='-Bstatic'
7535 case $cc_basename in
7536 f77* | f90* | f95*)
7537 lt_prog_compiler_wl='-Qoption ld ';;
7538 *)
7539 lt_prog_compiler_wl='-Wl,';;
7540 esac
7541 ;;
7542
7543 sunos4*)
7544 lt_prog_compiler_wl='-Qoption ld '
7545 lt_prog_compiler_pic='-PIC'
7546 lt_prog_compiler_static='-Bstatic'
7547 ;;
7548
7549 sysv4 | sysv4.2uw2* | sysv4.3*)
7550 lt_prog_compiler_wl='-Wl,'
7551 lt_prog_compiler_pic='-KPIC'
7552 lt_prog_compiler_static='-Bstatic'
7553 ;;
7554
7555 sysv4*MP*)
7556 if test -d /usr/nec ;then
7557 lt_prog_compiler_pic='-Kconform_pic'
7558 lt_prog_compiler_static='-Bstatic'
7559 fi
7560 ;;
7561
7562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7563 lt_prog_compiler_wl='-Wl,'
7564 lt_prog_compiler_pic='-KPIC'
7565 lt_prog_compiler_static='-Bstatic'
7566 ;;
7567
7568 unicos*)
7569 lt_prog_compiler_wl='-Wl,'
7570 lt_prog_compiler_can_build_shared=no
7571 ;;
7572
7573 uts4*)
7574 lt_prog_compiler_pic='-pic'
7575 lt_prog_compiler_static='-Bstatic'
7576 ;;
7577
7578 *)
7579 lt_prog_compiler_can_build_shared=no
7580 ;;
7581 esac
7582 fi
7583
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7585$as_echo "$lt_prog_compiler_pic" >&6; }
7586
7587#
7588# Check to make sure the PIC flag actually works.
7589#
7590if test -n "$lt_prog_compiler_pic"; then
7591
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7593$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7594if ${lt_cv_prog_compiler_pic_works+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596else
7597 lt_cv_prog_compiler_pic_works=no
7598 ac_outfile=conftest.$ac_objext
7599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7600 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7601 # Insert the option either (1) after the last *FLAGS variable, or
7602 # (2) before a word containing "conftest.", or (3) at the end.
7603 # Note that $ac_compile itself does not contain backslashes and begins
7604 # with a dollar sign (not a hyphen), so the echo should work correctly.
7605 # The option is referenced via a variable to avoid confusing sed.
7606 lt_compile=`echo "$ac_compile" | $SED \
7607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7609 -e 's:$: $lt_compiler_flag:'`
7610 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7611 (eval "$lt_compile" 2>conftest.err)
7612 ac_status=$?
7613 cat conftest.err >&5
7614 echo "$as_me:__oline__: \$? = $ac_status" >&5
7615 if (exit $ac_status) && test -s "$ac_outfile"; then
7616 # The compiler can only warn and ignore the option if not recognized
7617 # So say no if there are warnings other than the usual output.
7618 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7621 lt_cv_prog_compiler_pic_works=yes
7622 fi
7623 fi
7624 $rm conftest*
7625
7626fi
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7628$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7629
7630if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7631 case $lt_prog_compiler_pic in
7632 "" | " "*) ;;
7633 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7634 esac
7635else
7636 lt_prog_compiler_pic=
7637 lt_prog_compiler_can_build_shared=no
7638fi
7639
7640fi
7641case $host_os in
7642 # For platforms which do not support PIC, -DPIC is meaningless:
7643 *djgpp*)
7644 lt_prog_compiler_pic=
7645 ;;
7646 *)
7647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7648 ;;
7649esac
7650
7651#
7652# Check to make sure the static flag actually works.
7653#
7654wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7656$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7657if ${lt_cv_prog_compiler_static_works+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659else
7660 lt_cv_prog_compiler_static_works=no
7661 save_LDFLAGS="$LDFLAGS"
7662 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7663 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7664 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7665 # The linker can only warn and ignore the option if not recognized
7666 # So say no if there are warnings
7667 if test -s conftest.err; then
7668 # Append any errors to the config.log.
7669 cat conftest.err 1>&5
7670 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672 if diff conftest.exp conftest.er2 >/dev/null; then
7673 lt_cv_prog_compiler_static_works=yes
7674 fi
7675 else
7676 lt_cv_prog_compiler_static_works=yes
7677 fi
7678 fi
7679 $rm -r conftest*
7680 LDFLAGS="$save_LDFLAGS"
7681
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7684$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7685
7686if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7687 :
7688else
7689 lt_prog_compiler_static=
7690fi
7691
7692
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7694$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7695if ${lt_cv_prog_compiler_c_o+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697else
7698 lt_cv_prog_compiler_c_o=no
7699 $rm -r conftest 2>/dev/null
7700 mkdir conftest
7701 cd conftest
7702 mkdir out
7703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7704
7705 lt_compiler_flag="-o out/conftest2.$ac_objext"
7706 # Insert the option either (1) after the last *FLAGS variable, or
7707 # (2) before a word containing "conftest.", or (3) at the end.
7708 # Note that $ac_compile itself does not contain backslashes and begins
7709 # with a dollar sign (not a hyphen), so the echo should work correctly.
7710 lt_compile=`echo "$ac_compile" | $SED \
7711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7713 -e 's:$: $lt_compiler_flag:'`
7714 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7715 (eval "$lt_compile" 2>out/conftest.err)
7716 ac_status=$?
7717 cat out/conftest.err >&5
7718 echo "$as_me:__oline__: \$? = $ac_status" >&5
7719 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7720 then
7721 # The compiler can only warn and ignore the option if not recognized
7722 # So say no if there are warnings
7723 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7724 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7725 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7726 lt_cv_prog_compiler_c_o=yes
7727 fi
7728 fi
7729 chmod u+w . 2>&5
7730 $rm conftest*
7731 # SGI C++ compiler will create directory out/ii_files/ for
7732 # template instantiation
7733 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7734 $rm out/* && rmdir out
7735 cd ..
7736 rmdir conftest
7737 $rm conftest*
7738
7739fi
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7741$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7742
7743
7744hard_links="nottested"
7745if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7746 # do not overwrite the value of need_locks provided by the user
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7748$as_echo_n "checking if we can lock with hard links... " >&6; }
7749 hard_links=yes
7750 $rm conftest*
7751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7752 touch conftest.a
7753 ln conftest.a conftest.b 2>&5 || hard_links=no
7754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7756$as_echo "$hard_links" >&6; }
7757 if test "$hard_links" = no; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7759$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7760 need_locks=warn
7761 fi
7762else
7763 need_locks=no
7764fi
7765
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7767$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7768
7769 runpath_var=
7770 allow_undefined_flag=
7771 enable_shared_with_static_runtimes=no
7772 archive_cmds=
7773 archive_expsym_cmds=
7774 old_archive_From_new_cmds=
7775 old_archive_from_expsyms_cmds=
7776 export_dynamic_flag_spec=
7777 whole_archive_flag_spec=
7778 thread_safe_flag_spec=
7779 hardcode_libdir_flag_spec=
7780 hardcode_libdir_flag_spec_ld=
7781 hardcode_libdir_separator=
7782 hardcode_direct=no
7783 hardcode_minus_L=no
7784 hardcode_shlibpath_var=unsupported
7785 link_all_deplibs=unknown
7786 hardcode_automatic=no
7787 module_cmds=
7788 module_expsym_cmds=
7789 always_export_symbols=no
7790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7791 # include_expsyms should be a list of space-separated symbols to be *always*
7792 # included in the symbol list
7793 include_expsyms=
7794 # exclude_expsyms can be an extended regexp of symbols to exclude
7795 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7796 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7797 # as well as any symbol that contains `d'.
7798 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7799 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7800 # platforms (ab)use it in PIC code, but their linkers get confused if
7801 # the symbol is explicitly referenced. Since portable code cannot
7802 # rely on this symbol name, it's probably fine to never include it in
7803 # preloaded symbol tables.
7804 # Exclude shared library initialization/finalization symbols.
7805 extract_expsyms_cmds=
7806 # Just being paranoid about ensuring that cc_basename is set.
7807 for cc_temp in $compiler""; do
7808 case $cc_temp in
7809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7811 \-*) ;;
7812 *) break;;
7813 esac
7814done
7815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7816
7817 case $host_os in
7818 cygwin* | mingw* | pw32*)
7819 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7820 # When not using gcc, we currently assume that we are using
7821 # Microsoft Visual C++.
7822 if test "$GCC" != yes; then
7823 with_gnu_ld=no
7824 fi
7825 ;;
7826 interix*)
7827 # we just hope/assume this is gcc and not c89 (= MSVC++)
7828 with_gnu_ld=yes
7829 ;;
7830 openbsd*)
7831 with_gnu_ld=no
7832 ;;
7833 esac
7834
7835 ld_shlibs=yes
7836 if test "$with_gnu_ld" = yes; then
7837 # If archive_cmds runs LD, not CC, wlarc should be empty
7838 wlarc='${wl}'
7839
7840 # Set some defaults for GNU ld with shared library support. These
7841 # are reset later if shared libraries are not supported. Putting them
7842 # here allows them to be overridden if necessary.
7843 runpath_var=LD_RUN_PATH
7844 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7845 export_dynamic_flag_spec='${wl}--export-dynamic'
7846 # ancient GNU ld didn't support --whole-archive et. al.
7847 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7848 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7849 else
7850 whole_archive_flag_spec=
7851 fi
7852 supports_anon_versioning=no
7853 case `$LD -v 2>/dev/null` in
7854 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7855 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7856 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7857 *\ 2.11.*) ;; # other 2.11 versions
7858 *) supports_anon_versioning=yes ;;
7859 esac
7860
7861 # See if GNU ld supports shared libraries.
7862 case $host_os in
7863 aix[3-9]*)
7864 # On AIX/PPC, the GNU linker is very broken
7865 if test "$host_cpu" != ia64; then
7866 ld_shlibs=no
7867 cat <<EOF 1>&2
7868
7869*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7870*** to be unable to reliably create shared libraries on AIX.
7871*** Therefore, libtool is disabling shared libraries support. If you
7872*** really care for shared libraries, you may want to modify your PATH
7873*** so that a non-GNU linker is found, and then restart.
7874
7875EOF
7876 fi
7877 ;;
7878
7879 amigaos*)
7880 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)'
7881 hardcode_libdir_flag_spec='-L$libdir'
7882 hardcode_minus_L=yes
7883
7884 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7885 # that the semantics of dynamic libraries on AmigaOS, at least up
7886 # to version 4, is to share data among multiple programs linked
7887 # with the same dynamic library. Since this doesn't match the
7888 # behavior of shared libraries on other platforms, we can't use
7889 # them.
7890 ld_shlibs=no
7891 ;;
7892
7893 beos*)
7894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7895 allow_undefined_flag=unsupported
7896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7897 # support --undefined. This deserves some investigation. FIXME
7898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 else
7900 ld_shlibs=no
7901 fi
7902 ;;
7903
7904 cygwin* | mingw* | pw32*)
7905 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7906 # as there is no search path for DLLs.
7907 hardcode_libdir_flag_spec='-L$libdir'
7908 allow_undefined_flag=unsupported
7909 always_export_symbols=no
7910 enable_shared_with_static_runtimes=yes
7911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7912
7913 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7915 # If the export-symbols file already is a .def file (1st line
7916 # is EXPORTS), use it as is; otherwise, prepend...
7917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7918 cp $export_symbols $output_objdir/$soname.def;
7919 else
7920 echo EXPORTS > $output_objdir/$soname.def;
7921 cat $export_symbols >> $output_objdir/$soname.def;
7922 fi~
7923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7924 else
7925 ld_shlibs=no
7926 fi
7927 ;;
7928
7929 interix[3-9]*)
7930 hardcode_direct=no
7931 hardcode_shlibpath_var=no
7932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7933 export_dynamic_flag_spec='${wl}-E'
7934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7935 # Instead, shared libraries are loaded at an image base (0x10000000 by
7936 # default) and relocated if they conflict, which is a slow very memory
7937 # consuming and fragmenting process. To avoid this, we pick a random,
7938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7941 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'
7942 ;;
7943
7944 gnu* | linux* | k*bsd*-gnu)
7945 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7946 tmp_addflag=
7947 case $cc_basename,$host_cpu in
7948 pgcc*) # Portland Group C compiler
7949 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'
7950 tmp_addflag=' $pic_flag'
7951 ;;
7952 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7953 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'
7954 tmp_addflag=' $pic_flag -Mnomain' ;;
7955 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7956 tmp_addflag=' -i_dynamic' ;;
7957 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7958 tmp_addflag=' -i_dynamic -nofor_main' ;;
7959 ifc* | ifort*) # Intel Fortran compiler
7960 tmp_addflag=' -nofor_main' ;;
7961 esac
7962 case `$CC -V 2>&1 | sed 5q` in
7963 *Sun\ C*) # Sun C 5.9
7964 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'
7965 tmp_sharedflag='-G' ;;
7966 *Sun\ F*) # Sun Fortran 8.3
7967 tmp_sharedflag='-G' ;;
7968 *)
7969 tmp_sharedflag='-shared' ;;
7970 esac
7971 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7972
7973 if test $supports_anon_versioning = yes; then
7974 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7975 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7976 $echo "local: *; };" >> $output_objdir/$libname.ver~
7977 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7978 fi
7979 link_all_deplibs=no
7980 else
7981 ld_shlibs=no
7982 fi
7983 ;;
7984
7985 netbsd* | netbsdelf*-gnu)
7986 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7987 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7988 wlarc=
7989 else
7990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7992 fi
7993 ;;
7994
7995 solaris*)
7996 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7997 ld_shlibs=no
7998 cat <<EOF 1>&2
7999
8000*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8001*** create shared libraries on Solaris systems. Therefore, libtool
8002*** is disabling shared libraries support. We urge you to upgrade GNU
8003*** binutils to release 2.9.1 or newer. Another option is to modify
8004*** your PATH or compiler configuration so that the native linker is
8005*** used, and then restart.
8006
8007EOF
8008 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8010 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8011 else
8012 ld_shlibs=no
8013 fi
8014 ;;
8015
8016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8017 case `$LD -v 2>&1` in
8018 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8019 ld_shlibs=no
8020 cat <<_LT_EOF 1>&2
8021
8022*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8023*** reliably create shared libraries on SCO systems. Therefore, libtool
8024*** is disabling shared libraries support. We urge you to upgrade GNU
8025*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8026*** your PATH or compiler configuration so that the native linker is
8027*** used, and then restart.
8028
8029_LT_EOF
8030 ;;
8031 *)
8032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8033 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8036 else
8037 ld_shlibs=no
8038 fi
8039 ;;
8040 esac
8041 ;;
8042
8043 sunos4*)
8044 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8045 wlarc=
8046 hardcode_direct=yes
8047 hardcode_shlibpath_var=no
8048 ;;
8049
8050 *)
8051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8054 else
8055 ld_shlibs=no
8056 fi
8057 ;;
8058 esac
8059
8060 if test "$ld_shlibs" = no; then
8061 runpath_var=
8062 hardcode_libdir_flag_spec=
8063 export_dynamic_flag_spec=
8064 whole_archive_flag_spec=
8065 fi
8066 else
8067 # PORTME fill in a description of your system's linker (not GNU ld)
8068 case $host_os in
8069 aix3*)
8070 allow_undefined_flag=unsupported
8071 always_export_symbols=yes
8072 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'
8073 # Note: this linker hardcodes the directories in LIBPATH if there
8074 # are no directories specified by -L.
8075 hardcode_minus_L=yes
8076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8077 # Neither direct hardcoding nor static linking is supported with a
8078 # broken collect2.
8079 hardcode_direct=unsupported
8080 fi
8081 ;;
8082
8083 aix[4-9]*)
8084 if test "$host_cpu" = ia64; then
8085 # On IA64, the linker does run time linking by default, so we don't
8086 # have to do anything special.
8087 aix_use_runtimelinking=no
8088 exp_sym_flag='-Bexport'
8089 no_entry_flag=""
8090 else
8091 # If we're using GNU nm, then we don't want the "-C" option.
8092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8093 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8094 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'
8095 else
8096 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'
8097 fi
8098 aix_use_runtimelinking=no
8099
8100 # Test if we are trying to use run time linking or normal
8101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8102 # need to do runtime linking.
8103 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8104 for ld_flag in $LDFLAGS; do
8105 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8106 aix_use_runtimelinking=yes
8107 break
8108 fi
8109 done
8110 ;;
8111 esac
8112
8113 exp_sym_flag='-bexport'
8114 no_entry_flag='-bnoentry'
8115 fi
8116
8117 # When large executables or shared objects are built, AIX ld can
8118 # have problems creating the table of contents. If linking a library
8119 # or program results in "error TOC overflow" add -mminimal-toc to
8120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8122
8123 archive_cmds=''
8124 hardcode_direct=yes
8125 hardcode_libdir_separator=':'
8126 link_all_deplibs=yes
8127
8128 if test "$GCC" = yes; then
8129 case $host_os in aix4.[012]|aix4.[012].*)
8130 # We only want to do this on AIX 4.2 and lower, the check
8131 # below for broken collect2 doesn't work under 4.3+
8132 collect2name=`${CC} -print-prog-name=collect2`
8133 if test -f "$collect2name" && \
8134 strings "$collect2name" | grep resolve_lib_name >/dev/null
8135 then
8136 # We have reworked collect2
8137 :
8138 else
8139 # We have old collect2
8140 hardcode_direct=unsupported
8141 # It fails to find uninstalled libraries when the uninstalled
8142 # path is not listed in the libpath. Setting hardcode_minus_L
8143 # to unsupported forces relinking
8144 hardcode_minus_L=yes
8145 hardcode_libdir_flag_spec='-L$libdir'
8146 hardcode_libdir_separator=
8147 fi
8148 ;;
8149 esac
8150 shared_flag='-shared'
8151 if test "$aix_use_runtimelinking" = yes; then
8152 shared_flag="$shared_flag "'${wl}-G'
8153 fi
8154 else
8155 # not using gcc
8156 if test "$host_cpu" = ia64; then
8157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8158 # chokes on -Wl,-G. The following line is correct:
8159 shared_flag='-G'
8160 else
8161 if test "$aix_use_runtimelinking" = yes; then
8162 shared_flag='${wl}-G'
8163 else
8164 shared_flag='${wl}-bM:SRE'
8165 fi
8166 fi
8167 fi
8168
8169 # It seems that -bexpall does not export symbols beginning with
8170 # underscore (_), so it is better to generate a list of symbols to export.
8171 always_export_symbols=yes
8172 if test "$aix_use_runtimelinking" = yes; then
8173 # Warning - without using the other runtime loading flags (-brtl),
8174 # -berok will link without error, but may produce a broken library.
8175 allow_undefined_flag='-berok'
8176 # Determine the default libpath from the value encoded in an empty executable.
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h. */
8179
8180int
8181main ()
8182{
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
8188if ac_fn_c_try_link "$LINENO"; then :
8189
8190lt_aix_libpath_sed='
8191 /Import File Strings/,/^$/ {
8192 /^0/ {
8193 s/^0 *\(.*\)$/\1/
8194 p
8195 }
8196 }'
8197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8198# Check for a 64-bit object if we didn't find anything.
8199if test -z "$aix_libpath"; then
8200 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8201fi
8202fi
8203rm -f core conftest.err conftest.$ac_objext \
8204 conftest$ac_exeext conftest.$ac_ext
8205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8206
8207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8208 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8209 else
8210 if test "$host_cpu" = ia64; then
8211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8212 allow_undefined_flag="-z nodefs"
8213 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"
8214 else
8215 # Determine the default libpath from the value encoded in an empty executable.
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h. */
8218
8219int
8220main ()
8221{
8222
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227if ac_fn_c_try_link "$LINENO"; then :
8228
8229lt_aix_libpath_sed='
8230 /Import File Strings/,/^$/ {
8231 /^0/ {
8232 s/^0 *\(.*\)$/\1/
8233 p
8234 }
8235 }'
8236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8237# Check for a 64-bit object if we didn't find anything.
8238if test -z "$aix_libpath"; then
8239 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8240fi
8241fi
8242rm -f core conftest.err conftest.$ac_objext \
8243 conftest$ac_exeext conftest.$ac_ext
8244if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8245
8246 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8247 # Warning - without using the other run time loading flags,
8248 # -berok will link without error, but may produce a broken library.
8249 no_undefined_flag=' ${wl}-bernotok'
8250 allow_undefined_flag=' ${wl}-berok'
8251 # Exported symbols can be pulled into shared objects from archives
8252 whole_archive_flag_spec='$convenience'
8253 archive_cmds_need_lc=yes
8254 # This is similar to how AIX traditionally builds its shared libraries.
8255 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'
8256 fi
8257 fi
8258 ;;
8259
8260 amigaos*)
8261 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)'
8262 hardcode_libdir_flag_spec='-L$libdir'
8263 hardcode_minus_L=yes
8264 # see comment about different semantics on the GNU ld section
8265 ld_shlibs=no
8266 ;;
8267
8268 bsdi[45]*)
8269 export_dynamic_flag_spec=-rdynamic
8270 ;;
8271
8272 cygwin* | mingw* | pw32*)
8273 # When not using gcc, we currently assume that we are using
8274 # Microsoft Visual C++.
8275 # hardcode_libdir_flag_spec is actually meaningless, as there is
8276 # no search path for DLLs.
8277 hardcode_libdir_flag_spec=' '
8278 allow_undefined_flag=unsupported
8279 # Tell ltmain to make .lib files, not .a files.
8280 libext=lib
8281 # Tell ltmain to make .dll files, not .so files.
8282 shrext_cmds=".dll"
8283 # FIXME: Setting linknames here is a bad hack.
8284 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8285 # The linker will automatically build a .lib file if we build a DLL.
8286 old_archive_From_new_cmds='true'
8287 # FIXME: Should let the user specify the lib program.
8288 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8289 fix_srcfile_path='`cygpath -w "$srcfile"`'
8290 enable_shared_with_static_runtimes=yes
8291 ;;
8292
8293 darwin* | rhapsody*)
8294 case $host_os in
8295 rhapsody* | darwin1.[012])
8296 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8297 ;;
8298 *) # Darwin 1.3 on
8299 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8300 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8301 else
8302 case ${MACOSX_DEPLOYMENT_TARGET} in
8303 10.[012])
8304 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8305 ;;
8306 10.*)
8307 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8308 ;;
8309 esac
8310 fi
8311 ;;
8312 esac
8313 archive_cmds_need_lc=no
8314 hardcode_direct=no
8315 hardcode_automatic=yes
8316 hardcode_shlibpath_var=unsupported
8317 whole_archive_flag_spec=''
8318 link_all_deplibs=yes
8319 if test "$GCC" = yes ; then
8320 output_verbose_link_cmd='echo'
8321 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8322 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8323 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}"
8324 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}"
8325 else
8326 case $cc_basename in
8327 xlc*)
8328 output_verbose_link_cmd='echo'
8329 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8330 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8331 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8332 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8333 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8334 ;;
8335 *)
8336 ld_shlibs=no
8337 ;;
8338 esac
8339 fi
8340 ;;
8341
8342 dgux*)
8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344 hardcode_libdir_flag_spec='-L$libdir'
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 freebsd1*)
8349 ld_shlibs=no
8350 ;;
8351
8352 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8353 # support. Future versions do this automatically, but an explicit c++rt0.o
8354 # does not break anything, and helps significantly (at the cost of a little
8355 # extra space).
8356 freebsd2.2*)
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8358 hardcode_libdir_flag_spec='-R$libdir'
8359 hardcode_direct=yes
8360 hardcode_shlibpath_var=no
8361 ;;
8362
8363 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8364 freebsd2*)
8365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8366 hardcode_direct=yes
8367 hardcode_minus_L=yes
8368 hardcode_shlibpath_var=no
8369 ;;
8370
8371 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8372 freebsd* | dragonfly*)
8373 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8374 hardcode_libdir_flag_spec='-R$libdir'
8375 hardcode_direct=yes
8376 hardcode_shlibpath_var=no
8377 ;;
8378
8379 hpux9*)
8380 if test "$GCC" = yes; then
8381 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'
8382 else
8383 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'
8384 fi
8385 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8386 hardcode_libdir_separator=:
8387 hardcode_direct=yes
8388
8389 # hardcode_minus_L: Not really in the search PATH,
8390 # but as the default location of the library.
8391 hardcode_minus_L=yes
8392 export_dynamic_flag_spec='${wl}-E'
8393 ;;
8394
8395 hpux10*)
8396 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8397 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8398 else
8399 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8400 fi
8401 if test "$with_gnu_ld" = no; then
8402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8403 hardcode_libdir_separator=:
8404
8405 hardcode_direct=yes
8406 export_dynamic_flag_spec='${wl}-E'
8407
8408 # hardcode_minus_L: Not really in the search PATH,
8409 # but as the default location of the library.
8410 hardcode_minus_L=yes
8411 fi
8412 ;;
8413
8414 hpux11*)
8415 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8416 case $host_cpu in
8417 hppa*64*)
8418 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 ;;
8420 ia64*)
8421 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8422 ;;
8423 *)
8424 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8425 ;;
8426 esac
8427 else
8428 case $host_cpu in
8429 hppa*64*)
8430 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431 ;;
8432 ia64*)
8433 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8434 ;;
8435 *)
8436 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8437 ;;
8438 esac
8439 fi
8440 if test "$with_gnu_ld" = no; then
8441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8442 hardcode_libdir_separator=:
8443
8444 case $host_cpu in
8445 hppa*64*|ia64*)
8446 hardcode_libdir_flag_spec_ld='+b $libdir'
8447 hardcode_direct=no
8448 hardcode_shlibpath_var=no
8449 ;;
8450 *)
8451 hardcode_direct=yes
8452 export_dynamic_flag_spec='${wl}-E'
8453
8454 # hardcode_minus_L: Not really in the search PATH,
8455 # but as the default location of the library.
8456 hardcode_minus_L=yes
8457 ;;
8458 esac
8459 fi
8460 ;;
8461
8462 irix5* | irix6* | nonstopux*)
8463 if test "$GCC" = yes; then
8464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8465 else
8466 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8467 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8468 fi
8469 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8470 hardcode_libdir_separator=:
8471 link_all_deplibs=yes
8472 ;;
8473
8474 netbsd* | netbsdelf*-gnu)
8475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8477 else
8478 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8479 fi
8480 hardcode_libdir_flag_spec='-R$libdir'
8481 hardcode_direct=yes
8482 hardcode_shlibpath_var=no
8483 ;;
8484
8485 newsos6)
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_direct=yes
8488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8489 hardcode_libdir_separator=:
8490 hardcode_shlibpath_var=no
8491 ;;
8492
8493 openbsd*)
8494 if test -f /usr/libexec/ld.so; then
8495 hardcode_direct=yes
8496 hardcode_shlibpath_var=no
8497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8498 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8499 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8500 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8501 export_dynamic_flag_spec='${wl}-E'
8502 else
8503 case $host_os in
8504 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_libdir_flag_spec='-R$libdir'
8507 ;;
8508 *)
8509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8510 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8511 ;;
8512 esac
8513 fi
8514 else
8515 ld_shlibs=no
8516 fi
8517 ;;
8518
8519 os2*)
8520 hardcode_libdir_flag_spec='-L$libdir'
8521 hardcode_minus_L=yes
8522 allow_undefined_flag=unsupported
8523 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'
8524 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8525 ;;
8526
8527 osf3*)
8528 if test "$GCC" = yes; then
8529 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8530 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8531 else
8532 allow_undefined_flag=' -expect_unresolved \*'
8533 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8534 fi
8535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8536 hardcode_libdir_separator=:
8537 ;;
8538
8539 osf4* | osf5*) # as osf3* with the addition of -msym flag
8540 if test "$GCC" = yes; then
8541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8542 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 else
8545 allow_undefined_flag=' -expect_unresolved \*'
8546 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8547 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8548 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8549
8550 # Both c and cxx compiler support -rpath directly
8551 hardcode_libdir_flag_spec='-rpath $libdir'
8552 fi
8553 hardcode_libdir_separator=:
8554 ;;
8555
8556 solaris*)
8557 no_undefined_flag=' -z text'
8558 if test "$GCC" = yes; then
8559 wlarc='${wl}'
8560 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8562 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8563 else
8564 wlarc=''
8565 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8566 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8568 fi
8569 hardcode_libdir_flag_spec='-R$libdir'
8570 hardcode_shlibpath_var=no
8571 case $host_os in
8572 solaris2.[0-5] | solaris2.[0-5].*) ;;
8573 *)
8574 # The compiler driver will combine and reorder linker options,
8575 # but understands `-z linker_flag'. GCC discards it without `$wl',
8576 # but is careful enough not to reorder.
8577 # Supported since Solaris 2.6 (maybe 2.5.1?)
8578 if test "$GCC" = yes; then
8579 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8580 else
8581 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8582 fi
8583 ;;
8584 esac
8585 link_all_deplibs=yes
8586 ;;
8587
8588 sunos4*)
8589 if test "x$host_vendor" = xsequent; then
8590 # Use $CC to link under sequent, because it throws in some extra .o
8591 # files that make .init and .fini sections work.
8592 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8593 else
8594 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8595 fi
8596 hardcode_libdir_flag_spec='-L$libdir'
8597 hardcode_direct=yes
8598 hardcode_minus_L=yes
8599 hardcode_shlibpath_var=no
8600 ;;
8601
8602 sysv4)
8603 case $host_vendor in
8604 sni)
8605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606 hardcode_direct=yes # is this really true???
8607 ;;
8608 siemens)
8609 ## LD is ld it makes a PLAMLIB
8610 ## CC just makes a GrossModule.
8611 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8612 reload_cmds='$CC -r -o $output$reload_objs'
8613 hardcode_direct=no
8614 ;;
8615 motorola)
8616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8617 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8618 ;;
8619 esac
8620 runpath_var='LD_RUN_PATH'
8621 hardcode_shlibpath_var=no
8622 ;;
8623
8624 sysv4.3*)
8625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626 hardcode_shlibpath_var=no
8627 export_dynamic_flag_spec='-Bexport'
8628 ;;
8629
8630 sysv4*MP*)
8631 if test -d /usr/nec; then
8632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633 hardcode_shlibpath_var=no
8634 runpath_var=LD_RUN_PATH
8635 hardcode_runpath_var=yes
8636 ld_shlibs=yes
8637 fi
8638 ;;
8639
8640 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8641 no_undefined_flag='${wl}-z,text'
8642 archive_cmds_need_lc=no
8643 hardcode_shlibpath_var=no
8644 runpath_var='LD_RUN_PATH'
8645
8646 if test "$GCC" = yes; then
8647 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8648 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8649 else
8650 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8651 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8652 fi
8653 ;;
8654
8655 sysv5* | sco3.2v5* | sco5v6*)
8656 # Note: We can NOT use -z defs as we might desire, because we do not
8657 # link with -lc, and that would cause any symbols used from libc to
8658 # always be unresolved, which means just about no library would
8659 # ever link correctly. If we're not using GNU ld we use -z text
8660 # though, which does catch some bad symbols but isn't as heavy-handed
8661 # as -z defs.
8662 no_undefined_flag='${wl}-z,text'
8663 allow_undefined_flag='${wl}-z,nodefs'
8664 archive_cmds_need_lc=no
8665 hardcode_shlibpath_var=no
8666 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8667 hardcode_libdir_separator=':'
8668 link_all_deplibs=yes
8669 export_dynamic_flag_spec='${wl}-Bexport'
8670 runpath_var='LD_RUN_PATH'
8671
8672 if test "$GCC" = yes; then
8673 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8674 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675 else
8676 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8677 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 fi
8679 ;;
8680
8681 uts4*)
8682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_libdir_flag_spec='-L$libdir'
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 *)
8688 ld_shlibs=no
8689 ;;
8690 esac
8691 fi
8692
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8694$as_echo "$ld_shlibs" >&6; }
8695test "$ld_shlibs" = no && can_build_shared=no
8696
8697#
8698# Do we need to explicitly link libc?
8699#
8700case "x$archive_cmds_need_lc" in
8701x|xyes)
8702 # Assume -lc should be added
8703 archive_cmds_need_lc=yes
8704
8705 if test "$enable_shared" = yes && test "$GCC" = yes; then
8706 case $archive_cmds in
8707 *'~'*)
8708 # FIXME: we may have to deal with multi-command sequences.
8709 ;;
8710 '$CC '*)
8711 # Test whether the compiler implicitly links with -lc since on some
8712 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8713 # to ld, don't add -lc before -lgcc.
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8715$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8716 $rm conftest*
8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718
8719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8720 (eval $ac_compile) 2>&5
8721 ac_status=$?
8722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8723 test $ac_status = 0; } 2>conftest.err; then
8724 soname=conftest
8725 lib=conftest
8726 libobjs=conftest.$ac_objext
8727 deplibs=
8728 wl=$lt_prog_compiler_wl
8729 pic_flag=$lt_prog_compiler_pic
8730 compiler_flags=-v
8731 linker_flags=-v
8732 verstring=
8733 output_objdir=.
8734 libname=conftest
8735 lt_save_allow_undefined_flag=$allow_undefined_flag
8736 allow_undefined_flag=
8737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8738 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8739 ac_status=$?
8740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741 test $ac_status = 0; }
8742 then
8743 archive_cmds_need_lc=no
8744 else
8745 archive_cmds_need_lc=yes
8746 fi
8747 allow_undefined_flag=$lt_save_allow_undefined_flag
8748 else
8749 cat conftest.err 1>&5
8750 fi
8751 $rm conftest*
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8753$as_echo "$archive_cmds_need_lc" >&6; }
8754 ;;
8755 esac
8756 fi
8757 ;;
8758esac
8759
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8761$as_echo_n "checking dynamic linker characteristics... " >&6; }
8762library_names_spec=
8763libname_spec='lib$name'
8764soname_spec=
8765shrext_cmds=".so"
8766postinstall_cmds=
8767postuninstall_cmds=
8768finish_cmds=
8769finish_eval=
8770shlibpath_var=
8771shlibpath_overrides_runpath=unknown
8772version_type=none
8773dynamic_linker="$host_os ld.so"
8774sys_lib_dlsearch_path_spec="/lib /usr/lib"
8775
8776if test "$GCC" = yes; then
8777 case $host_os in
8778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8779 *) lt_awk_arg="/^libraries:/" ;;
8780 esac
8781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8782 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8783 # if the path contains ";" then we assume it to be the separator
8784 # otherwise default to the standard path separator (i.e. ":") - it is
8785 # assumed that no part of a normal pathname contains ";" but that should
8786 # okay in the real world where ";" in dirpaths is itself problematic.
8787 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8788 else
8789 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8790 fi
8791 # Ok, now we have the path, separated by spaces, we can step through it
8792 # and add multilib dir if necessary.
8793 lt_tmp_lt_search_path_spec=
8794 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8795 for lt_sys_path in $lt_search_path_spec; do
8796 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8798 else
8799 test -d "$lt_sys_path" && \
8800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8801 fi
8802 done
8803 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8804BEGIN {RS=" "; FS="/|\n";} {
8805 lt_foo="";
8806 lt_count=0;
8807 for (lt_i = NF; lt_i > 0; lt_i--) {
8808 if ($lt_i != "" && $lt_i != ".") {
8809 if ($lt_i == "..") {
8810 lt_count++;
8811 } else {
8812 if (lt_count == 0) {
8813 lt_foo="/" $lt_i lt_foo;
8814 } else {
8815 lt_count--;
8816 }
8817 }
8818 }
8819 }
8820 if (lt_foo != "") { lt_freq[lt_foo]++; }
8821 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8822}'`
8823 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8824else
8825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8826fi
8827need_lib_prefix=unknown
8828hardcode_into_libs=no
8829
8830# when you set need_version to no, make sure it does not cause -set_version
8831# flags to be left without arguments
8832need_version=unknown
8833
8834case $host_os in
8835aix3*)
8836 version_type=linux
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8838 shlibpath_var=LIBPATH
8839
8840 # AIX 3 has no versioning support, so we append a major version to the name.
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 ;;
8843
8844aix[4-9]*)
8845 version_type=linux
8846 need_lib_prefix=no
8847 need_version=no
8848 hardcode_into_libs=yes
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 supports IA64
8851 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 else
8854 # With GCC up to 2.95.x, collect2 would create an import file
8855 # for dependence libraries. The import file would start with
8856 # the line `#! .'. This would cause the generated library to
8857 # depend on `.', always an invalid library. This was fixed in
8858 # development snapshots of GCC prior to 3.0.
8859 case $host_os in
8860 aix4 | aix4.[01] | aix4.[01].*)
8861 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8862 echo ' yes '
8863 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8864 :
8865 else
8866 can_build_shared=no
8867 fi
8868 ;;
8869 esac
8870 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8871 # soname into executable. Probably we can add versioning support to
8872 # collect2, so additional links can be useful in future.
8873 if test "$aix_use_runtimelinking" = yes; then
8874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8875 # instead of lib<name>.a to let people know that these are not
8876 # typical AIX shared libraries.
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 else
8879 # We preserve .a as extension for shared libraries through AIX4.2
8880 # and later when we are not doing run time linking.
8881 library_names_spec='${libname}${release}.a $libname.a'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 fi
8884 shlibpath_var=LIBPATH
8885 fi
8886 ;;
8887
8888amigaos*)
8889 library_names_spec='$libname.ixlibrary $libname.a'
8890 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8891 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'
8892 ;;
8893
8894beos*)
8895 library_names_spec='${libname}${shared_ext}'
8896 dynamic_linker="$host_os ld.so"
8897 shlibpath_var=LIBRARY_PATH
8898 ;;
8899
8900bsdi[45]*)
8901 version_type=linux
8902 need_version=no
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8906 shlibpath_var=LD_LIBRARY_PATH
8907 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8908 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8909 # the default ld.so.conf also contains /usr/contrib/lib and
8910 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8911 # libtool to hard-code these into programs
8912 ;;
8913
8914cygwin* | mingw* | pw32*)
8915 version_type=windows
8916 shrext_cmds=".dll"
8917 need_version=no
8918 need_lib_prefix=no
8919
8920 case $GCC,$host_os in
8921 yes,cygwin* | yes,mingw* | yes,pw32*)
8922 library_names_spec='$libname.dll.a'
8923 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8924 postinstall_cmds='base_file=`basename \${file}`~
8925 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8926 dldir=$destdir/`dirname \$dlpath`~
8927 test -d \$dldir || mkdir -p \$dldir~
8928 $install_prog $dir/$dlname \$dldir/$dlname~
8929 chmod a+x \$dldir/$dlname'
8930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8931 dlpath=$dir/\$dldll~
8932 $rm \$dlpath'
8933 shlibpath_overrides_runpath=yes
8934
8935 case $host_os in
8936 cygwin*)
8937 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8938 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8940 ;;
8941 mingw*)
8942 # MinGW DLLs use traditional 'lib' prefix
8943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8945 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8946 # It is most probably a Windows format PATH printed by
8947 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8948 # path with ; separators, and with drive letters. We can handle the
8949 # drive letters (cygwin fileutils understands them), so leave them,
8950 # especially as we might pass files found there to a mingw objdump,
8951 # which wouldn't understand a cygwinified path. Ahh.
8952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8953 else
8954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8955 fi
8956 ;;
8957 pw32*)
8958 # pw32 DLLs use 'pw' prefix rather than 'lib'
8959 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8960 ;;
8961 esac
8962 ;;
8963
8964 *)
8965 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8966 ;;
8967 esac
8968 dynamic_linker='Win32 ld.exe'
8969 # FIXME: first we should search . and the directory the executable is in
8970 shlibpath_var=PATH
8971 ;;
8972
8973darwin* | rhapsody*)
8974 dynamic_linker="$host_os dyld"
8975 version_type=darwin
8976 need_lib_prefix=no
8977 need_version=no
8978 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8979 soname_spec='${libname}${release}${major}$shared_ext'
8980 shlibpath_overrides_runpath=yes
8981 shlibpath_var=DYLD_LIBRARY_PATH
8982 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8983
8984 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8986 ;;
8987
8988dgux*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 shlibpath_var=LD_LIBRARY_PATH
8995 ;;
8996
8997freebsd1*)
8998 dynamic_linker=no
8999 ;;
9000
9001freebsd* | dragonfly*)
9002 # DragonFly does not have aout. When/if they implement a new
9003 # versioning mechanism, adjust this.
9004 if test -x /usr/bin/objformat; then
9005 objformat=`/usr/bin/objformat`
9006 else
9007 case $host_os in
9008 freebsd[123]*) objformat=aout ;;
9009 *) objformat=elf ;;
9010 esac
9011 fi
9012 version_type=freebsd-$objformat
9013 case $version_type in
9014 freebsd-elf*)
9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9016 need_version=no
9017 need_lib_prefix=no
9018 ;;
9019 freebsd-*)
9020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9021 need_version=yes
9022 ;;
9023 esac
9024 shlibpath_var=LD_LIBRARY_PATH
9025 case $host_os in
9026 freebsd2*)
9027 shlibpath_overrides_runpath=yes
9028 ;;
9029 freebsd3.[01]* | freebsdelf3.[01]*)
9030 shlibpath_overrides_runpath=yes
9031 hardcode_into_libs=yes
9032 ;;
9033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9035 shlibpath_overrides_runpath=no
9036 hardcode_into_libs=yes
9037 ;;
9038 *) # from 4.6 on, and DragonFly
9039 shlibpath_overrides_runpath=yes
9040 hardcode_into_libs=yes
9041 ;;
9042 esac
9043 ;;
9044
9045gnu*)
9046 version_type=linux
9047 need_lib_prefix=no
9048 need_version=no
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 hardcode_into_libs=yes
9053 ;;
9054
9055hpux9* | hpux10* | hpux11*)
9056 # Give a soname corresponding to the major version so that dld.sl refuses to
9057 # link against other versions.
9058 version_type=sunos
9059 need_lib_prefix=no
9060 need_version=no
9061 case $host_cpu in
9062 ia64*)
9063 shrext_cmds='.so'
9064 hardcode_into_libs=yes
9065 dynamic_linker="$host_os dld.so"
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069 soname_spec='${libname}${release}${shared_ext}$major'
9070 if test "X$HPUX_IA64_MODE" = X32; then
9071 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9072 else
9073 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9074 fi
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9076 ;;
9077 hppa*64*)
9078 shrext_cmds='.sl'
9079 hardcode_into_libs=yes
9080 dynamic_linker="$host_os dld.sl"
9081 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9082 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9084 soname_spec='${libname}${release}${shared_ext}$major'
9085 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9087 ;;
9088 *)
9089 shrext_cmds='.sl'
9090 dynamic_linker="$host_os dld.sl"
9091 shlibpath_var=SHLIB_PATH
9092 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 ;;
9096 esac
9097 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9098 postinstall_cmds='chmod 555 $lib'
9099 ;;
9100
9101interix[3-9]*)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 shlibpath_overrides_runpath=no
9110 hardcode_into_libs=yes
9111 ;;
9112
9113irix5* | irix6* | nonstopux*)
9114 case $host_os in
9115 nonstopux*) version_type=nonstopux ;;
9116 *)
9117 if test "$lt_cv_prog_gnu_ld" = yes; then
9118 version_type=linux
9119 else
9120 version_type=irix
9121 fi ;;
9122 esac
9123 need_lib_prefix=no
9124 need_version=no
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9127 case $host_os in
9128 irix5* | nonstopux*)
9129 libsuff= shlibsuff=
9130 ;;
9131 *)
9132 case $LD in # libtool.m4 will add one of these switches to LD
9133 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9134 libsuff= shlibsuff= libmagic=32-bit;;
9135 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9136 libsuff=32 shlibsuff=N32 libmagic=N32;;
9137 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9138 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9139 *) libsuff= shlibsuff= libmagic=never-match;;
9140 esac
9141 ;;
9142 esac
9143 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9144 shlibpath_overrides_runpath=no
9145 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9146 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9147 hardcode_into_libs=yes
9148 ;;
9149
9150# No shared lib support for Linux oldld, aout, or coff.
9151linux*oldld* | linux*aout* | linux*coff*)
9152 dynamic_linker=no
9153 ;;
9154
9155# This must be Linux ELF.
9156linux* | k*bsd*-gnu)
9157 version_type=linux
9158 need_lib_prefix=no
9159 need_version=no
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 shlibpath_overrides_runpath=no
9165 # This implies no fast_install, which is unacceptable.
9166 # Some rework will be needed to allow for fast_install
9167 # before this can be enabled.
9168 hardcode_into_libs=yes
9169
9170 # Append ld.so.conf contents to the search path
9171 if test -f /etc/ld.so.conf; then
9172 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' ' '`
9173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9174 fi
9175
9176 # We used to test for /lib/ld.so.1 and disable shared libraries on
9177 # powerpc, because MkLinux only supported shared libraries with the
9178 # GNU dynamic linker. Since this was broken with cross compilers,
9179 # most powerpc-linux boxes support dynamic linking these days and
9180 # people can always --disable-shared, the test was removed, and we
9181 # assume the GNU/Linux dynamic linker is in use.
9182 dynamic_linker='GNU/Linux ld.so'
9183 ;;
9184
9185netbsdelf*-gnu)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 shlibpath_overrides_runpath=no
9193 hardcode_into_libs=yes
9194 dynamic_linker='NetBSD ld.elf_so'
9195 ;;
9196
9197netbsd*)
9198 version_type=sunos
9199 need_lib_prefix=no
9200 need_version=no
9201 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204 dynamic_linker='NetBSD (a.out) ld.so'
9205 else
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9207 soname_spec='${libname}${release}${shared_ext}$major'
9208 dynamic_linker='NetBSD ld.elf_so'
9209 fi
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=yes
9212 hardcode_into_libs=yes
9213 ;;
9214
9215newsos6)
9216 version_type=linux
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 shlibpath_overrides_runpath=yes
9220 ;;
9221
9222nto-qnx*)
9223 version_type=linux
9224 need_lib_prefix=no
9225 need_version=no
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9229 shlibpath_overrides_runpath=yes
9230 ;;
9231
9232openbsd*)
9233 version_type=sunos
9234 sys_lib_dlsearch_path_spec="/usr/lib"
9235 need_lib_prefix=no
9236 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9237 case $host_os in
9238 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9239 *) need_version=no ;;
9240 esac
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9245 case $host_os in
9246 openbsd2.[89] | openbsd2.[89].*)
9247 shlibpath_overrides_runpath=no
9248 ;;
9249 *)
9250 shlibpath_overrides_runpath=yes
9251 ;;
9252 esac
9253 else
9254 shlibpath_overrides_runpath=yes
9255 fi
9256 ;;
9257
9258os2*)
9259 libname_spec='$name'
9260 shrext_cmds=".dll"
9261 need_lib_prefix=no
9262 library_names_spec='$libname${shared_ext} $libname.a'
9263 dynamic_linker='OS/2 ld.exe'
9264 shlibpath_var=LIBPATH
9265 ;;
9266
9267osf3* | osf4* | osf5*)
9268 version_type=osf
9269 need_lib_prefix=no
9270 need_version=no
9271 soname_spec='${libname}${release}${shared_ext}$major'
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9275 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9276 ;;
9277
9278rdos*)
9279 dynamic_linker=no
9280 ;;
9281
9282solaris*)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 hardcode_into_libs=yes
9291 # ldd complains unless libraries are executable
9292 postinstall_cmds='chmod +x $lib'
9293 ;;
9294
9295sunos4*)
9296 version_type=sunos
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9298 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9301 if test "$with_gnu_ld" = yes; then
9302 need_lib_prefix=no
9303 fi
9304 need_version=yes
9305 ;;
9306
9307sysv4 | sysv4.3*)
9308 version_type=linux
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 case $host_vendor in
9313 sni)
9314 shlibpath_overrides_runpath=no
9315 need_lib_prefix=no
9316 export_dynamic_flag_spec='${wl}-Blargedynsym'
9317 runpath_var=LD_RUN_PATH
9318 ;;
9319 siemens)
9320 need_lib_prefix=no
9321 ;;
9322 motorola)
9323 need_lib_prefix=no
9324 need_version=no
9325 shlibpath_overrides_runpath=no
9326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9327 ;;
9328 esac
9329 ;;
9330
9331sysv4*MP*)
9332 if test -d /usr/nec ;then
9333 version_type=linux
9334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9335 soname_spec='$libname${shared_ext}.$major'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 fi
9338 ;;
9339
9340sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9341 version_type=freebsd-elf
9342 need_lib_prefix=no
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9348 if test "$with_gnu_ld" = yes; then
9349 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9350 shlibpath_overrides_runpath=no
9351 else
9352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9353 shlibpath_overrides_runpath=yes
9354 case $host_os in
9355 sco3.2v5*)
9356 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9357 ;;
9358 esac
9359 fi
9360 sys_lib_dlsearch_path_spec='/usr/lib'
9361 ;;
9362
9363uts4*)
9364 version_type=linux
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 ;;
9369
9370*)
9371 dynamic_linker=no
9372 ;;
9373esac
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9375$as_echo "$dynamic_linker" >&6; }
9376test "$dynamic_linker" = no && can_build_shared=no
9377
9378if ${lt_cv_sys_lib_search_path_spec+:} false; then :
9379 $as_echo_n "(cached) " >&6
9380else
9381 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9382fi
9383
9384sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9385if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
9386 $as_echo_n "(cached) " >&6
9387else
9388 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9389fi
9390
9391sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9392
9393variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9394if test "$GCC" = yes; then
9395 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9396fi
9397
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9399$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9400hardcode_action=
9401if test -n "$hardcode_libdir_flag_spec" || \
9402 test -n "$runpath_var" || \
9403 test "X$hardcode_automatic" = "Xyes" ; then
9404
9405 # We can hardcode non-existant directories.
9406 if test "$hardcode_direct" != no &&
9407 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9408 # have to relink, otherwise we might link with an installed library
9409 # when we should be linking with a yet-to-be-installed one
9410 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9411 test "$hardcode_minus_L" != no; then
9412 # Linking always hardcodes the temporary library directory.
9413 hardcode_action=relink
9414 else
9415 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9416 hardcode_action=immediate
9417 fi
9418else
9419 # We cannot hardcode anything, or else we can only hardcode existing
9420 # directories.
9421 hardcode_action=unsupported
9422fi
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9424$as_echo "$hardcode_action" >&6; }
9425
9426if test "$hardcode_action" = relink; then
9427 # Fast installation is not supported
9428 enable_fast_install=no
9429elif test "$shlibpath_overrides_runpath" = yes ||
9430 test "$enable_shared" = no; then
9431 # Fast installation is not necessary
9432 enable_fast_install=needless
9433fi
9434
9435striplib=
9436old_striplib=
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9438$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9439if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9440 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9441 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9443$as_echo "yes" >&6; }
9444else
9445# FIXME - insert some real tests, host_os isn't really good enough
9446 case $host_os in
9447 darwin*)
9448 if test -n "$STRIP" ; then
9449 striplib="$STRIP -x"
9450 old_striplib="$STRIP -S"
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9452$as_echo "yes" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
9456fi
9457 ;;
9458 *)
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
9461 ;;
9462 esac
9463fi
9464
9465if test "x$enable_dlopen" != xyes; then
9466 enable_dlopen=unknown
9467 enable_dlopen_self=unknown
9468 enable_dlopen_self_static=unknown
9469else
9470 lt_cv_dlopen=no
9471 lt_cv_dlopen_libs=
9472
9473 case $host_os in
9474 beos*)
9475 lt_cv_dlopen="load_add_on"
9476 lt_cv_dlopen_libs=
9477 lt_cv_dlopen_self=yes
9478 ;;
9479
9480 mingw* | pw32*)
9481 lt_cv_dlopen="LoadLibrary"
9482 lt_cv_dlopen_libs=
9483 ;;
9484
9485 cygwin*)
9486 lt_cv_dlopen="dlopen"
9487 lt_cv_dlopen_libs=
9488 ;;
9489
9490 darwin*)
9491 # if libdl is installed we need to link against it
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9493$as_echo_n "checking for dlopen in -ldl... " >&6; }
9494if ${ac_cv_lib_dl_dlopen+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496else
9497 ac_check_lib_save_LIBS=$LIBS
9498LIBS="-ldl $LIBS"
9499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500/* end confdefs.h. */
9501
9502/* Override any GCC internal prototype to avoid an error.
9503 Use char because int might match the return type of a GCC
9504 builtin and then its argument prototype would still apply. */
9505#ifdef __cplusplus
9506extern "C"
9507#endif
9508char dlopen ();
9509int
9510main ()
9511{
9512return dlopen ();
9513 ;
9514 return 0;
9515}
9516_ACEOF
9517if ac_fn_c_try_link "$LINENO"; then :
9518 ac_cv_lib_dl_dlopen=yes
9519else
9520 ac_cv_lib_dl_dlopen=no
9521fi
9522rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524LIBS=$ac_check_lib_save_LIBS
9525fi
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9527$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9528if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9529 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9530else
9531
9532 lt_cv_dlopen="dyld"
9533 lt_cv_dlopen_libs=
9534 lt_cv_dlopen_self=yes
9535
9536fi
9537
9538 ;;
9539
9540 *)
9541 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9542if test "x$ac_cv_func_shl_load" = xyes; then :
9543 lt_cv_dlopen="shl_load"
9544else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9546$as_echo_n "checking for shl_load in -ldld... " >&6; }
9547if ${ac_cv_lib_dld_shl_load+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549else
9550 ac_check_lib_save_LIBS=$LIBS
9551LIBS="-ldld $LIBS"
9552cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553/* end confdefs.h. */
9554
9555/* Override any GCC internal prototype to avoid an error.
9556 Use char because int might match the return type of a GCC
9557 builtin and then its argument prototype would still apply. */
9558#ifdef __cplusplus
9559extern "C"
9560#endif
9561char shl_load ();
9562int
9563main ()
9564{
9565return shl_load ();
9566 ;
9567 return 0;
9568}
9569_ACEOF
9570if ac_fn_c_try_link "$LINENO"; then :
9571 ac_cv_lib_dld_shl_load=yes
9572else
9573 ac_cv_lib_dld_shl_load=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577LIBS=$ac_check_lib_save_LIBS
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9580$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9581if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9582 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9583else
9584 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9585if test "x$ac_cv_func_dlopen" = xyes; then :
9586 lt_cv_dlopen="dlopen"
9587else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9589$as_echo_n "checking for dlopen in -ldl... " >&6; }
9590if ${ac_cv_lib_dl_dlopen+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-ldl $LIBS"
9595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h. */
9597
9598/* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601#ifdef __cplusplus
9602extern "C"
9603#endif
9604char dlopen ();
9605int
9606main ()
9607{
9608return dlopen ();
9609 ;
9610 return 0;
9611}
9612_ACEOF
9613if ac_fn_c_try_link "$LINENO"; then :
9614 ac_cv_lib_dl_dlopen=yes
9615else
9616 ac_cv_lib_dl_dlopen=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620LIBS=$ac_check_lib_save_LIBS
9621fi
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9623$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9624if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9626else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9628$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9629if ${ac_cv_lib_svld_dlopen+:} false; then :
9630 $as_echo_n "(cached) " >&6
9631else
9632 ac_check_lib_save_LIBS=$LIBS
9633LIBS="-lsvld $LIBS"
9634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635/* end confdefs.h. */
9636
9637/* Override any GCC internal prototype to avoid an error.
9638 Use char because int might match the return type of a GCC
9639 builtin and then its argument prototype would still apply. */
9640#ifdef __cplusplus
9641extern "C"
9642#endif
9643char dlopen ();
9644int
9645main ()
9646{
9647return dlopen ();
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652if ac_fn_c_try_link "$LINENO"; then :
9653 ac_cv_lib_svld_dlopen=yes
9654else
9655 ac_cv_lib_svld_dlopen=no
9656fi
9657rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659LIBS=$ac_check_lib_save_LIBS
9660fi
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9662$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9663if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9664 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9667$as_echo_n "checking for dld_link in -ldld... " >&6; }
9668if ${ac_cv_lib_dld_dld_link+:} false; then :
9669 $as_echo_n "(cached) " >&6
9670else
9671 ac_check_lib_save_LIBS=$LIBS
9672LIBS="-ldld $LIBS"
9673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675
9676/* Override any GCC internal prototype to avoid an error.
9677 Use char because int might match the return type of a GCC
9678 builtin and then its argument prototype would still apply. */
9679#ifdef __cplusplus
9680extern "C"
9681#endif
9682char dld_link ();
9683int
9684main ()
9685{
9686return dld_link ();
9687 ;
9688 return 0;
9689}
9690_ACEOF
9691if ac_fn_c_try_link "$LINENO"; then :
9692 ac_cv_lib_dld_dld_link=yes
9693else
9694 ac_cv_lib_dld_dld_link=no
9695fi
9696rm -f core conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698LIBS=$ac_check_lib_save_LIBS
9699fi
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9701$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9702if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9703 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9704fi
9705
9706
9707fi
9708
9709
9710fi
9711
9712
9713fi
9714
9715
9716fi
9717
9718
9719fi
9720
9721 ;;
9722 esac
9723
9724 if test "x$lt_cv_dlopen" != xno; then
9725 enable_dlopen=yes
9726 else
9727 enable_dlopen=no
9728 fi
9729
9730 case $lt_cv_dlopen in
9731 dlopen)
9732 save_CPPFLAGS="$CPPFLAGS"
9733 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9734
9735 save_LDFLAGS="$LDFLAGS"
9736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9737
9738 save_LIBS="$LIBS"
9739 LIBS="$lt_cv_dlopen_libs $LIBS"
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9742$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9743if ${lt_cv_dlopen_self+:} false; then :
9744 $as_echo_n "(cached) " >&6
9745else
9746 if test "$cross_compiling" = yes; then :
9747 lt_cv_dlopen_self=cross
9748else
9749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9750 lt_status=$lt_dlunknown
9751 cat > conftest.$ac_ext <<EOF
9752#line __oline__ "configure"
9753#include "confdefs.h"
9754
9755#if HAVE_DLFCN_H
9756#include <dlfcn.h>
9757#endif
9758
9759#include <stdio.h>
9760
9761#ifdef RTLD_GLOBAL
9762# define LT_DLGLOBAL RTLD_GLOBAL
9763#else
9764# ifdef DL_GLOBAL
9765# define LT_DLGLOBAL DL_GLOBAL
9766# else
9767# define LT_DLGLOBAL 0
9768# endif
9769#endif
9770
9771/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9772 find out it does not work in some platform. */
9773#ifndef LT_DLLAZY_OR_NOW
9774# ifdef RTLD_LAZY
9775# define LT_DLLAZY_OR_NOW RTLD_LAZY
9776# else
9777# ifdef DL_LAZY
9778# define LT_DLLAZY_OR_NOW DL_LAZY
9779# else
9780# ifdef RTLD_NOW
9781# define LT_DLLAZY_OR_NOW RTLD_NOW
9782# else
9783# ifdef DL_NOW
9784# define LT_DLLAZY_OR_NOW DL_NOW
9785# else
9786# define LT_DLLAZY_OR_NOW 0
9787# endif
9788# endif
9789# endif
9790# endif
9791#endif
9792
9793#ifdef __cplusplus
9794extern "C" void exit (int);
9795#endif
9796
9797void fnord() { int i=42;}
9798int main ()
9799{
9800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9801 int status = $lt_dlunknown;
9802
9803 if (self)
9804 {
9805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9807 /* dlclose (self); */
9808 }
9809 else
9810 puts (dlerror ());
9811
9812 exit (status);
9813}
9814EOF
9815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9816 (eval $ac_link) 2>&5
9817 ac_status=$?
9818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9819 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9820 (./conftest; exit; ) >&5 2>/dev/null
9821 lt_status=$?
9822 case x$lt_status in
9823 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9824 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9825 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9826 esac
9827 else :
9828 # compilation failed
9829 lt_cv_dlopen_self=no
9830 fi
9831fi
9832rm -fr conftest*
9833
9834
9835fi
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9837$as_echo "$lt_cv_dlopen_self" >&6; }
9838
9839 if test "x$lt_cv_dlopen_self" = xyes; then
9840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9842$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9843if ${lt_cv_dlopen_self_static+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845else
9846 if test "$cross_compiling" = yes; then :
9847 lt_cv_dlopen_self_static=cross
9848else
9849 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9850 lt_status=$lt_dlunknown
9851 cat > conftest.$ac_ext <<EOF
9852#line __oline__ "configure"
9853#include "confdefs.h"
9854
9855#if HAVE_DLFCN_H
9856#include <dlfcn.h>
9857#endif
9858
9859#include <stdio.h>
9860
9861#ifdef RTLD_GLOBAL
9862# define LT_DLGLOBAL RTLD_GLOBAL
9863#else
9864# ifdef DL_GLOBAL
9865# define LT_DLGLOBAL DL_GLOBAL
9866# else
9867# define LT_DLGLOBAL 0
9868# endif
9869#endif
9870
9871/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9872 find out it does not work in some platform. */
9873#ifndef LT_DLLAZY_OR_NOW
9874# ifdef RTLD_LAZY
9875# define LT_DLLAZY_OR_NOW RTLD_LAZY
9876# else
9877# ifdef DL_LAZY
9878# define LT_DLLAZY_OR_NOW DL_LAZY
9879# else
9880# ifdef RTLD_NOW
9881# define LT_DLLAZY_OR_NOW RTLD_NOW
9882# else
9883# ifdef DL_NOW
9884# define LT_DLLAZY_OR_NOW DL_NOW
9885# else
9886# define LT_DLLAZY_OR_NOW 0
9887# endif
9888# endif
9889# endif
9890# endif
9891#endif
9892
9893#ifdef __cplusplus
9894extern "C" void exit (int);
9895#endif
9896
9897void fnord() { int i=42;}
9898int main ()
9899{
9900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9901 int status = $lt_dlunknown;
9902
9903 if (self)
9904 {
9905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9906 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9907 /* dlclose (self); */
9908 }
9909 else
9910 puts (dlerror ());
9911
9912 exit (status);
9913}
9914EOF
9915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9916 (eval $ac_link) 2>&5
9917 ac_status=$?
9918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9919 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9920 (./conftest; exit; ) >&5 2>/dev/null
9921 lt_status=$?
9922 case x$lt_status in
9923 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9924 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9925 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9926 esac
9927 else :
9928 # compilation failed
9929 lt_cv_dlopen_self_static=no
9930 fi
9931fi
9932rm -fr conftest*
9933
9934
9935fi
9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9937$as_echo "$lt_cv_dlopen_self_static" >&6; }
9938 fi
9939
9940 CPPFLAGS="$save_CPPFLAGS"
9941 LDFLAGS="$save_LDFLAGS"
9942 LIBS="$save_LIBS"
9943 ;;
9944 esac
9945
9946 case $lt_cv_dlopen_self in
9947 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9948 *) enable_dlopen_self=unknown ;;
9949 esac
9950
9951 case $lt_cv_dlopen_self_static in
9952 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9953 *) enable_dlopen_self_static=unknown ;;
9954 esac
9955fi
9956
9957
9958# Report which library types will actually be built
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9960$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9962$as_echo "$can_build_shared" >&6; }
9963
9964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9965$as_echo_n "checking whether to build shared libraries... " >&6; }
9966test "$can_build_shared" = "no" && enable_shared=no
9967
9968# On AIX, shared libraries and static libraries use the same namespace, and
9969# are all built from PIC.
9970case $host_os in
9971aix3*)
9972 test "$enable_shared" = yes && enable_static=no
9973 if test -n "$RANLIB"; then
9974 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9975 postinstall_cmds='$RANLIB $lib'
9976 fi
9977 ;;
9978
9979aix[4-9]*)
9980 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9981 test "$enable_shared" = yes && enable_static=no
9982 fi
9983 ;;
9984esac
9985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9986$as_echo "$enable_shared" >&6; }
9987
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9989$as_echo_n "checking whether to build static libraries... " >&6; }
9990# Make sure either enable_shared or enable_static is yes.
9991test "$enable_shared" = yes || enable_static=yes
9992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9993$as_echo "$enable_static" >&6; }
9994
9995# The else clause should only fire when bootstrapping the
9996# libtool distribution, otherwise you forgot to ship ltmain.sh
9997# with your package, and you will get complaints that there are
9998# no rules to generate ltmain.sh.
9999if test -f "$ltmain"; then
10000 # See if we are running on zsh, and set the options which allow our commands through
10001 # without removal of \ escapes.
10002 if test -n "${ZSH_VERSION+set}" ; then
10003 setopt NO_GLOB_SUBST
10004 fi
10005 # Now quote all the things that may contain metacharacters while being
10006 # careful not to overquote the AC_SUBSTed values. We take copies of the
10007 # variables and quote the copies for generation of the libtool script.
10008 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10009 SED SHELL STRIP \
10010 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10011 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10012 deplibs_check_method reload_flag reload_cmds need_locks \
10013 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10014 lt_cv_sys_global_symbol_to_c_name_address \
10015 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10016 old_postinstall_cmds old_postuninstall_cmds \
10017 compiler \
10018 CC \
10019 LD \
10020 lt_prog_compiler_wl \
10021 lt_prog_compiler_pic \
10022 lt_prog_compiler_static \
10023 lt_prog_compiler_no_builtin_flag \
10024 export_dynamic_flag_spec \
10025 thread_safe_flag_spec \
10026 whole_archive_flag_spec \
10027 enable_shared_with_static_runtimes \
10028 old_archive_cmds \
10029 old_archive_from_new_cmds \
10030 predep_objects \
10031 postdep_objects \
10032 predeps \
10033 postdeps \
10034 compiler_lib_search_path \
10035 compiler_lib_search_dirs \
10036 archive_cmds \
10037 archive_expsym_cmds \
10038 postinstall_cmds \
10039 postuninstall_cmds \
10040 old_archive_from_expsyms_cmds \
10041 allow_undefined_flag \
10042 no_undefined_flag \
10043 export_symbols_cmds \
10044 hardcode_libdir_flag_spec \
10045 hardcode_libdir_flag_spec_ld \
10046 hardcode_libdir_separator \
10047 hardcode_automatic \
10048 module_cmds \
10049 module_expsym_cmds \
10050 lt_cv_prog_compiler_c_o \
10051 fix_srcfile_path \
10052 exclude_expsyms \
10053 include_expsyms; do
10054
10055 case $var in
10056 old_archive_cmds | \
10057 old_archive_from_new_cmds | \
10058 archive_cmds | \
10059 archive_expsym_cmds | \
10060 module_cmds | \
10061 module_expsym_cmds | \
10062 old_archive_from_expsyms_cmds | \
10063 export_symbols_cmds | \
10064 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10065 postinstall_cmds | postuninstall_cmds | \
10066 old_postinstall_cmds | old_postuninstall_cmds | \
10067 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10068 # Double-quote double-evaled strings.
10069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10070 ;;
10071 *)
10072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10073 ;;
10074 esac
10075 done
10076
10077 case $lt_echo in
10078 *'\$0 --fallback-echo"')
10079 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10080 ;;
10081 esac
10082
10083cfgfile="${ofile}T"
10084 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10085 $rm -f "$cfgfile"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10087$as_echo "$as_me: creating $ofile" >&6;}
10088
10089 cat <<__EOF__ >> "$cfgfile"
10090#! $SHELL
10091
10092# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10093# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10094# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10095#
10096# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10097# Free Software Foundation, Inc.
10098#
10099# This file is part of GNU Libtool:
10100# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10101#
10102# This program is free software; you can redistribute it and/or modify
10103# it under the terms of the GNU General Public License as published by
10104# the Free Software Foundation; either version 2 of the License, or
10105# (at your option) any later version.
10106#
10107# This program is distributed in the hope that it will be useful, but
10108# WITHOUT ANY WARRANTY; without even the implied warranty of
10109# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10110# General Public License for more details.
10111#
10112# You should have received a copy of the GNU General Public License
10113# along with this program; if not, write to the Free Software
10114# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10115#
10116# As a special exception to the GNU General Public License, if you
10117# distribute this file as part of a program that contains a
10118# configuration script generated by Autoconf, you may include it under
10119# the same distribution terms that you use for the rest of that program.
10120
10121# A sed program that does not truncate output.
10122SED=$lt_SED
10123
10124# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10125Xsed="$SED -e 1s/^X//"
10126
10127# The HP-UX ksh and POSIX shell print the target directory to stdout
10128# if CDPATH is set.
10129(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10130
10131# The names of the tagged configurations supported by this script.
10132available_tags=
10133
10134# ### BEGIN LIBTOOL CONFIG
10135
10136# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10137
10138# Shell to use when invoking shell scripts.
10139SHELL=$lt_SHELL
10140
10141# Whether or not to build shared libraries.
10142build_libtool_libs=$enable_shared
10143
10144# Whether or not to build static libraries.
10145build_old_libs=$enable_static
10146
10147# Whether or not to add -lc for building shared libraries.
10148build_libtool_need_lc=$archive_cmds_need_lc
10149
10150# Whether or not to disallow shared libs when runtime libs are static
10151allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10152
10153# Whether or not to optimize for fast installation.
10154fast_install=$enable_fast_install
10155
10156# The host system.
10157host_alias=$host_alias
10158host=$host
10159host_os=$host_os
10160
10161# The build system.
10162build_alias=$build_alias
10163build=$build
10164build_os=$build_os
10165
10166# An echo program that does not interpret backslashes.
10167echo=$lt_echo
10168
10169# The archiver.
10170AR=$lt_AR
10171AR_FLAGS=$lt_AR_FLAGS
10172
10173# A C compiler.
10174LTCC=$lt_LTCC
10175
10176# LTCC compiler flags.
10177LTCFLAGS=$lt_LTCFLAGS
10178
10179# A language-specific compiler.
10180CC=$lt_compiler
10181
10182# Is the compiler the GNU C compiler?
10183with_gcc=$GCC
10184
10185# An ERE matcher.
10186EGREP=$lt_EGREP
10187
10188# The linker used to build libraries.
10189LD=$lt_LD
10190
10191# Whether we need hard or soft links.
10192LN_S=$lt_LN_S
10193
10194# A BSD-compatible nm program.
10195NM=$lt_NM
10196
10197# A symbol stripping program
10198STRIP=$lt_STRIP
10199
10200# Used to examine libraries when file_magic_cmd begins "file"
10201MAGIC_CMD=$MAGIC_CMD
10202
10203# Used on cygwin: DLL creation program.
10204DLLTOOL="$DLLTOOL"
10205
10206# Used on cygwin: object dumper.
10207OBJDUMP="$OBJDUMP"
10208
10209# Used on cygwin: assembler.
10210AS="$AS"
10211
10212# The name of the directory that contains temporary libtool files.
10213objdir=$objdir
10214
10215# How to create reloadable object files.
10216reload_flag=$lt_reload_flag
10217reload_cmds=$lt_reload_cmds
10218
10219# How to pass a linker flag through the compiler.
10220wl=$lt_lt_prog_compiler_wl
10221
10222# Object file suffix (normally "o").
10223objext="$ac_objext"
10224
10225# Old archive suffix (normally "a").
10226libext="$libext"
10227
10228# Shared library suffix (normally ".so").
10229shrext_cmds='$shrext_cmds'
10230
10231# Executable file suffix (normally "").
10232exeext="$exeext"
10233
10234# Additional compiler flags for building library objects.
10235pic_flag=$lt_lt_prog_compiler_pic
10236pic_mode=$pic_mode
10237
10238# What is the maximum length of a command?
10239max_cmd_len=$lt_cv_sys_max_cmd_len
10240
10241# Does compiler simultaneously support -c and -o options?
10242compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10243
10244# Must we lock files when doing compilation?
10245need_locks=$lt_need_locks
10246
10247# Do we need the lib prefix for modules?
10248need_lib_prefix=$need_lib_prefix
10249
10250# Do we need a version for libraries?
10251need_version=$need_version
10252
10253# Whether dlopen is supported.
10254dlopen_support=$enable_dlopen
10255
10256# Whether dlopen of programs is supported.
10257dlopen_self=$enable_dlopen_self
10258
10259# Whether dlopen of statically linked programs is supported.
10260dlopen_self_static=$enable_dlopen_self_static
10261
10262# Compiler flag to prevent dynamic linking.
10263link_static_flag=$lt_lt_prog_compiler_static
10264
10265# Compiler flag to turn off builtin functions.
10266no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10267
10268# Compiler flag to allow reflexive dlopens.
10269export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10270
10271# Compiler flag to generate shared objects directly from archives.
10272whole_archive_flag_spec=$lt_whole_archive_flag_spec
10273
10274# Compiler flag to generate thread-safe objects.
10275thread_safe_flag_spec=$lt_thread_safe_flag_spec
10276
10277# Library versioning type.
10278version_type=$version_type
10279
10280# Format of library name prefix.
10281libname_spec=$lt_libname_spec
10282
10283# List of archive names. First name is the real one, the rest are links.
10284# The last name is the one that the linker finds with -lNAME.
10285library_names_spec=$lt_library_names_spec
10286
10287# The coded name of the library, if different from the real name.
10288soname_spec=$lt_soname_spec
10289
10290# Commands used to build and install an old-style archive.
10291RANLIB=$lt_RANLIB
10292old_archive_cmds=$lt_old_archive_cmds
10293old_postinstall_cmds=$lt_old_postinstall_cmds
10294old_postuninstall_cmds=$lt_old_postuninstall_cmds
10295
10296# Create an old-style archive from a shared archive.
10297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10298
10299# Create a temporary old-style archive to link instead of a shared archive.
10300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10301
10302# Commands used to build and install a shared archive.
10303archive_cmds=$lt_archive_cmds
10304archive_expsym_cmds=$lt_archive_expsym_cmds
10305postinstall_cmds=$lt_postinstall_cmds
10306postuninstall_cmds=$lt_postuninstall_cmds
10307
10308# Commands used to build a loadable module (assumed same as above if empty)
10309module_cmds=$lt_module_cmds
10310module_expsym_cmds=$lt_module_expsym_cmds
10311
10312# Commands to strip libraries.
10313old_striplib=$lt_old_striplib
10314striplib=$lt_striplib
10315
10316# Dependencies to place before the objects being linked to create a
10317# shared library.
10318predep_objects=$lt_predep_objects
10319
10320# Dependencies to place after the objects being linked to create a
10321# shared library.
10322postdep_objects=$lt_postdep_objects
10323
10324# Dependencies to place before the objects being linked to create a
10325# shared library.
10326predeps=$lt_predeps
10327
10328# Dependencies to place after the objects being linked to create a
10329# shared library.
10330postdeps=$lt_postdeps
10331
10332# The directories searched by this compiler when creating a shared
10333# library
10334compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10335
10336# The library search path used internally by the compiler when linking
10337# a shared library.
10338compiler_lib_search_path=$lt_compiler_lib_search_path
10339
10340# Method to check whether dependent libraries are shared objects.
10341deplibs_check_method=$lt_deplibs_check_method
10342
10343# Command to use when deplibs_check_method == file_magic.
10344file_magic_cmd=$lt_file_magic_cmd
10345
10346# Flag that allows shared libraries with undefined symbols to be built.
10347allow_undefined_flag=$lt_allow_undefined_flag
10348
10349# Flag that forces no undefined symbols.
10350no_undefined_flag=$lt_no_undefined_flag
10351
10352# Commands used to finish a libtool library installation in a directory.
10353finish_cmds=$lt_finish_cmds
10354
10355# Same as above, but a single script fragment to be evaled but not shown.
10356finish_eval=$lt_finish_eval
10357
10358# Take the output of nm and produce a listing of raw symbols and C names.
10359global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10360
10361# Transform the output of nm in a proper C declaration
10362global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10363
10364# Transform the output of nm in a C name address pair
10365global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10366
10367# This is the shared library runtime path variable.
10368runpath_var=$runpath_var
10369
10370# This is the shared library path variable.
10371shlibpath_var=$shlibpath_var
10372
10373# Is shlibpath searched before the hard-coded library search path?
10374shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10375
10376# How to hardcode a shared library path into an executable.
10377hardcode_action=$hardcode_action
10378
10379# Whether we should hardcode library paths into libraries.
10380hardcode_into_libs=$hardcode_into_libs
10381
10382# Flag to hardcode \$libdir into a binary during linking.
10383# This must work even if \$libdir does not exist.
10384hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10385
10386# If ld is used when linking, flag to hardcode \$libdir into
10387# a binary during linking. This must work even if \$libdir does
10388# not exist.
10389hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10390
10391# Whether we need a single -rpath flag with a separated argument.
10392hardcode_libdir_separator=$lt_hardcode_libdir_separator
10393
10394# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10395# resulting binary.
10396hardcode_direct=$hardcode_direct
10397
10398# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10399# resulting binary.
10400hardcode_minus_L=$hardcode_minus_L
10401
10402# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10403# the resulting binary.
10404hardcode_shlibpath_var=$hardcode_shlibpath_var
10405
10406# Set to yes if building a shared library automatically hardcodes DIR into the library
10407# and all subsequent libraries and executables linked against it.
10408hardcode_automatic=$hardcode_automatic
10409
10410# Variables whose values should be saved in libtool wrapper scripts and
10411# restored at relink time.
10412variables_saved_for_relink="$variables_saved_for_relink"
10413
10414# Whether libtool must link a program against all its dependency libraries.
10415link_all_deplibs=$link_all_deplibs
10416
10417# Compile-time system search path for libraries
10418sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10419
10420# Run-time system search path for libraries
10421sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10422
10423# Fix the shell variable \$srcfile for the compiler.
10424fix_srcfile_path=$lt_fix_srcfile_path
10425
10426# Set to yes if exported symbols are required.
10427always_export_symbols=$always_export_symbols
10428
10429# The commands to list exported symbols.
10430export_symbols_cmds=$lt_export_symbols_cmds
10431
10432# The commands to extract the exported symbol list from a shared archive.
10433extract_expsyms_cmds=$lt_extract_expsyms_cmds
10434
10435# Symbols that should not be listed in the preloaded symbols.
10436exclude_expsyms=$lt_exclude_expsyms
10437
10438# Symbols that must always be exported.
10439include_expsyms=$lt_include_expsyms
10440
10441# ### END LIBTOOL CONFIG
10442
10443__EOF__
10444
10445
10446 case $host_os in
10447 aix3*)
10448 cat <<\EOF >> "$cfgfile"
10449
10450# AIX sometimes has problems with the GCC collect2 program. For some
10451# reason, if we set the COLLECT_NAMES environment variable, the problems
10452# vanish in a puff of smoke.
10453if test "X${COLLECT_NAMES+set}" != Xset; then
10454 COLLECT_NAMES=
10455 export COLLECT_NAMES
10456fi
10457EOF
10458 ;;
10459 esac
10460
10461 # We use sed instead of cat because bash on DJGPP gets confused if
10462 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10463 # text mode, it properly converts lines to CR/LF. This bash problem
10464 # is reportedly fixed, but why not run on old versions too?
10465 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10466
10467 mv -f "$cfgfile" "$ofile" || \
10468 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10469 chmod +x "$ofile"
10470
10471else
10472 # If there is no Makefile yet, we rely on a make rule to execute
10473 # `config.status --recheck' to rerun these tests and create the
10474 # libtool script then.
10475 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10476 if test -f "$ltmain_in"; then
10477 test -f Makefile && make "$ltmain"
10478 fi
10479fi
10480
10481
10482ac_ext=c
10483ac_cpp='$CPP $CPPFLAGS'
10484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10486ac_compiler_gnu=$ac_cv_c_compiler_gnu
10487
10488CC="$lt_save_CC"
10489
10490
10491@%:@ Check whether --with-tags was given.
10492if test "${with_tags+set}" = set; then :
10493 withval=$with_tags; tagnames="$withval"
10494fi
10495
10496
10497if test -f "$ltmain" && test -n "$tagnames"; then
10498 if test ! -f "${ofile}"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10500$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10501 fi
10502
10503 if test -z "$LTCC"; then
10504 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10505 if test -z "$LTCC"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10507$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10508 else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10510$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10511 fi
10512 fi
10513 if test -z "$LTCFLAGS"; then
10514 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10515 fi
10516
10517 # Extract list of available tagged configurations in $ofile.
10518 # Note that this assumes the entire list is on one line.
10519 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10520
10521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10522 for tagname in $tagnames; do
10523 IFS="$lt_save_ifs"
10524 # Check whether tagname contains only valid characters
10525 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10526 "") ;;
10527 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10528 ;;
10529 esac
10530
10531 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10532 then
10533 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10534 fi
10535
10536 # Update the list of available tags.
10537 if test -n "$tagname"; then
10538 echo appending configuration tag \"$tagname\" to $ofile
10539
10540 case $tagname in
10541 CXX)
10542 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10543 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10544 (test "X$CXX" != "Xg++"))) ; then
10545 ac_ext=cpp
10546ac_cpp='$CXXCPP $CPPFLAGS'
10547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10550
10551
10552
10553
10554archive_cmds_need_lc_CXX=no
10555allow_undefined_flag_CXX=
10556always_export_symbols_CXX=no
10557archive_expsym_cmds_CXX=
10558export_dynamic_flag_spec_CXX=
10559hardcode_direct_CXX=no
10560hardcode_libdir_flag_spec_CXX=
10561hardcode_libdir_flag_spec_ld_CXX=
10562hardcode_libdir_separator_CXX=
10563hardcode_minus_L_CXX=no
10564hardcode_shlibpath_var_CXX=unsupported
10565hardcode_automatic_CXX=no
10566module_cmds_CXX=
10567module_expsym_cmds_CXX=
10568link_all_deplibs_CXX=unknown
10569old_archive_cmds_CXX=$old_archive_cmds
10570no_undefined_flag_CXX=
10571whole_archive_flag_spec_CXX=
10572enable_shared_with_static_runtimes_CXX=no
10573
10574# Dependencies to place before and after the object being linked:
10575predep_objects_CXX=
10576postdep_objects_CXX=
10577predeps_CXX=
10578postdeps_CXX=
10579compiler_lib_search_path_CXX=
10580compiler_lib_search_dirs_CXX=
10581
10582# Source file extension for C++ test sources.
10583ac_ext=cpp
10584
10585# Object file extension for compiled C++ test sources.
10586objext=o
10587objext_CXX=$objext
10588
10589# Code to be used in simple compile tests
10590lt_simple_compile_test_code="int some_variable = 0;"
10591
10592# Code to be used in simple link tests
10593lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10594
10595# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10596
10597# If no C compiler was specified, use CC.
10598LTCC=${LTCC-"$CC"}
10599
10600# If no C compiler flags were specified, use CFLAGS.
10601LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10602
10603# Allow CC to be a program name with arguments.
10604compiler=$CC
10605
10606
10607# save warnings/boilerplate of simple test code
10608ac_outfile=conftest.$ac_objext
10609echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10610eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10611_lt_compiler_boilerplate=`cat conftest.err`
10612$rm conftest*
10613
10614ac_outfile=conftest.$ac_objext
10615echo "$lt_simple_link_test_code" >conftest.$ac_ext
10616eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10617_lt_linker_boilerplate=`cat conftest.err`
10618$rm -r conftest*
10619
10620
10621# Allow CC to be a program name with arguments.
10622lt_save_CC=$CC
10623lt_save_LD=$LD
10624lt_save_GCC=$GCC
10625GCC=$GXX
10626lt_save_with_gnu_ld=$with_gnu_ld
10627lt_save_path_LD=$lt_cv_path_LD
10628if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10629 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10630else
10631 $as_unset lt_cv_prog_gnu_ld
10632fi
10633if test -n "${lt_cv_path_LDCXX+set}"; then
10634 lt_cv_path_LD=$lt_cv_path_LDCXX
10635else
10636 $as_unset lt_cv_path_LD
10637fi
10638test -z "${LDCXX+set}" || LD=$LDCXX
10639CC=${CXX-"c++"}
10640compiler=$CC
10641compiler_CXX=$CC
10642for cc_temp in $compiler""; do
10643 case $cc_temp in
10644 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10645 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10646 \-*) ;;
10647 *) break;;
10648 esac
10649done
10650cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10651
10652
10653# We don't want -fno-exception wen compiling C++ code, so set the
10654# no_builtin_flag separately
10655if test "$GXX" = yes; then
10656 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10657else
10658 lt_prog_compiler_no_builtin_flag_CXX=
10659fi
10660
10661if test "$GXX" = yes; then
10662 # Set up default GNU C++ configuration
10663
10664
10665@%:@ Check whether --with-gnu-ld was given.
10666if test "${with_gnu_ld+set}" = set; then :
10667 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10668else
10669 with_gnu_ld=no
10670fi
10671
10672ac_prog=ld
10673if test "$GCC" = yes; then
10674 # Check if gcc -print-prog-name=ld gives a path.
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10676$as_echo_n "checking for ld used by $CC... " >&6; }
10677 case $host in
10678 *-*-mingw*)
10679 # gcc leaves a trailing carriage return which upsets mingw
10680 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10681 *)
10682 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10683 esac
10684 case $ac_prog in
10685 # Accept absolute paths.
10686 [\\/]* | ?:[\\/]*)
10687 re_direlt='/[^/][^/]*/\.\./'
10688 # Canonicalize the pathname of ld
10689 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10690 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10691 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10692 done
10693 test -z "$LD" && LD="$ac_prog"
10694 ;;
10695 "")
10696 # If it fails, then pretend we aren't using GCC.
10697 ac_prog=ld
10698 ;;
10699 *)
10700 # If it is relative, then search for the first ld in PATH.
10701 with_gnu_ld=unknown
10702 ;;
10703 esac
10704elif test "$with_gnu_ld" = yes; then
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10706$as_echo_n "checking for GNU ld... " >&6; }
10707else
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10709$as_echo_n "checking for non-GNU ld... " >&6; }
10710fi
10711if ${lt_cv_path_LD+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713else
10714 if test -z "$LD"; then
10715 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10716 for ac_dir in $PATH; do
10717 IFS="$lt_save_ifs"
10718 test -z "$ac_dir" && ac_dir=.
10719 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10720 lt_cv_path_LD="$ac_dir/$ac_prog"
10721 # Check to see if the program is GNU ld. I'd rather use --version,
10722 # but apparently some variants of GNU ld only accept -v.
10723 # Break only if it was the GNU/non-GNU ld that we prefer.
10724 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10725 *GNU* | *'with BFD'*)
10726 test "$with_gnu_ld" != no && break
10727 ;;
10728 *)
10729 test "$with_gnu_ld" != yes && break
10730 ;;
10731 esac
10732 fi
10733 done
10734 IFS="$lt_save_ifs"
10735else
10736 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10737fi
10738fi
10739
10740LD="$lt_cv_path_LD"
10741if test -n "$LD"; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10743$as_echo "$LD" >&6; }
10744else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
10747fi
10748test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10750$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10751if ${lt_cv_prog_gnu_ld+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753else
10754 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10755case `$LD -v 2>&1 </dev/null` in
10756*GNU* | *'with BFD'*)
10757 lt_cv_prog_gnu_ld=yes
10758 ;;
10759*)
10760 lt_cv_prog_gnu_ld=no
10761 ;;
10762esac
10763fi
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10765$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10766with_gnu_ld=$lt_cv_prog_gnu_ld
10767
10768
10769
10770 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10771 # archiving commands below assume that GNU ld is being used.
10772 if test "$with_gnu_ld" = yes; then
10773 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10774 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10775
10776 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10777 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10778
10779 # If archive_cmds runs LD, not CC, wlarc should be empty
10780 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10781 # investigate it a little bit more. (MM)
10782 wlarc='${wl}'
10783
10784 # ancient GNU ld didn't support --whole-archive et. al.
10785 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10786 grep 'no-whole-archive' > /dev/null; then
10787 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10788 else
10789 whole_archive_flag_spec_CXX=
10790 fi
10791 else
10792 with_gnu_ld=no
10793 wlarc=
10794
10795 # A generic and very simple default shared library creation
10796 # command for GNU C++ for the case where it uses the native
10797 # linker, instead of GNU ld. If possible, this setting should
10798 # overridden to take advantage of the native linker features on
10799 # the platform it is being used on.
10800 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10801 fi
10802
10803 # Commands to make compiler produce verbose output that lists
10804 # what "hidden" libraries, object files and flags are used when
10805 # linking a shared library.
10806 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10807
10808else
10809 GXX=no
10810 with_gnu_ld=no
10811 wlarc=
10812fi
10813
10814# PORTME: fill in a description of your system's C++ link characteristics
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10816$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10817ld_shlibs_CXX=yes
10818case $host_os in
10819 aix3*)
10820 # FIXME: insert proper C++ library support
10821 ld_shlibs_CXX=no
10822 ;;
10823 aix[4-9]*)
10824 if test "$host_cpu" = ia64; then
10825 # On IA64, the linker does run time linking by default, so we don't
10826 # have to do anything special.
10827 aix_use_runtimelinking=no
10828 exp_sym_flag='-Bexport'
10829 no_entry_flag=""
10830 else
10831 aix_use_runtimelinking=no
10832
10833 # Test if we are trying to use run time linking or normal
10834 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10835 # need to do runtime linking.
10836 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10837 for ld_flag in $LDFLAGS; do
10838 case $ld_flag in
10839 *-brtl*)
10840 aix_use_runtimelinking=yes
10841 break
10842 ;;
10843 esac
10844 done
10845 ;;
10846 esac
10847
10848 exp_sym_flag='-bexport'
10849 no_entry_flag='-bnoentry'
10850 fi
10851
10852 # When large executables or shared objects are built, AIX ld can
10853 # have problems creating the table of contents. If linking a library
10854 # or program results in "error TOC overflow" add -mminimal-toc to
10855 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10856 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10857
10858 archive_cmds_CXX=''
10859 hardcode_direct_CXX=yes
10860 hardcode_libdir_separator_CXX=':'
10861 link_all_deplibs_CXX=yes
10862
10863 if test "$GXX" = yes; then
10864 case $host_os in aix4.[012]|aix4.[012].*)
10865 # We only want to do this on AIX 4.2 and lower, the check
10866 # below for broken collect2 doesn't work under 4.3+
10867 collect2name=`${CC} -print-prog-name=collect2`
10868 if test -f "$collect2name" && \
10869 strings "$collect2name" | grep resolve_lib_name >/dev/null
10870 then
10871 # We have reworked collect2
10872 :
10873 else
10874 # We have old collect2
10875 hardcode_direct_CXX=unsupported
10876 # It fails to find uninstalled libraries when the uninstalled
10877 # path is not listed in the libpath. Setting hardcode_minus_L
10878 # to unsupported forces relinking
10879 hardcode_minus_L_CXX=yes
10880 hardcode_libdir_flag_spec_CXX='-L$libdir'
10881 hardcode_libdir_separator_CXX=
10882 fi
10883 ;;
10884 esac
10885 shared_flag='-shared'
10886 if test "$aix_use_runtimelinking" = yes; then
10887 shared_flag="$shared_flag "'${wl}-G'
10888 fi
10889 else
10890 # not using gcc
10891 if test "$host_cpu" = ia64; then
10892 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10893 # chokes on -Wl,-G. The following line is correct:
10894 shared_flag='-G'
10895 else
10896 if test "$aix_use_runtimelinking" = yes; then
10897 shared_flag='${wl}-G'
10898 else
10899 shared_flag='${wl}-bM:SRE'
10900 fi
10901 fi
10902 fi
10903
10904 # It seems that -bexpall does not export symbols beginning with
10905 # underscore (_), so it is better to generate a list of symbols to export.
10906 always_export_symbols_CXX=yes
10907 if test "$aix_use_runtimelinking" = yes; then
10908 # Warning - without using the other runtime loading flags (-brtl),
10909 # -berok will link without error, but may produce a broken library.
10910 allow_undefined_flag_CXX='-berok'
10911 # Determine the default libpath from the value encoded in an empty executable.
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913/* end confdefs.h. */
10914
10915int
10916main ()
10917{
10918
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923if ac_fn_cxx_try_link "$LINENO"; then :
10924
10925lt_aix_libpath_sed='
10926 /Import File Strings/,/^$/ {
10927 /^0/ {
10928 s/^0 *\(.*\)$/\1/
10929 p
10930 }
10931 }'
10932aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10933# Check for a 64-bit object if we didn't find anything.
10934if test -z "$aix_libpath"; then
10935 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10936fi
10937fi
10938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10941
10942 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10943
10944 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10945 else
10946 if test "$host_cpu" = ia64; then
10947 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10948 allow_undefined_flag_CXX="-z nodefs"
10949 archive_expsym_cmds_CXX="\$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"
10950 else
10951 # Determine the default libpath from the value encoded in an empty executable.
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953/* end confdefs.h. */
10954
10955int
10956main ()
10957{
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963if ac_fn_cxx_try_link "$LINENO"; then :
10964
10965lt_aix_libpath_sed='
10966 /Import File Strings/,/^$/ {
10967 /^0/ {
10968 s/^0 *\(.*\)$/\1/
10969 p
10970 }
10971 }'
10972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10973# Check for a 64-bit object if we didn't find anything.
10974if test -z "$aix_libpath"; then
10975 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10976fi
10977fi
10978rm -f core conftest.err conftest.$ac_objext \
10979 conftest$ac_exeext conftest.$ac_ext
10980if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10981
10982 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10983 # Warning - without using the other run time loading flags,
10984 # -berok will link without error, but may produce a broken library.
10985 no_undefined_flag_CXX=' ${wl}-bernotok'
10986 allow_undefined_flag_CXX=' ${wl}-berok'
10987 # Exported symbols can be pulled into shared objects from archives
10988 whole_archive_flag_spec_CXX='$convenience'
10989 archive_cmds_need_lc_CXX=yes
10990 # This is similar to how AIX traditionally builds its shared libraries.
10991 archive_expsym_cmds_CXX="\$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'
10992 fi
10993 fi
10994 ;;
10995
10996 beos*)
10997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10998 allow_undefined_flag_CXX=unsupported
10999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11000 # support --undefined. This deserves some investigation. FIXME
11001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11002 else
11003 ld_shlibs_CXX=no
11004 fi
11005 ;;
11006
11007 chorus*)
11008 case $cc_basename in
11009 *)
11010 # FIXME: insert proper C++ library support
11011 ld_shlibs_CXX=no
11012 ;;
11013 esac
11014 ;;
11015
11016 cygwin* | mingw* | pw32*)
11017 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11018 # as there is no search path for DLLs.
11019 hardcode_libdir_flag_spec_CXX='-L$libdir'
11020 allow_undefined_flag_CXX=unsupported
11021 always_export_symbols_CXX=no
11022 enable_shared_with_static_runtimes_CXX=yes
11023
11024 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11025 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11026 # If the export-symbols file already is a .def file (1st line
11027 # is EXPORTS), use it as is; otherwise, prepend...
11028 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11029 cp $export_symbols $output_objdir/$soname.def;
11030 else
11031 echo EXPORTS > $output_objdir/$soname.def;
11032 cat $export_symbols >> $output_objdir/$soname.def;
11033 fi~
11034 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11035 else
11036 ld_shlibs_CXX=no
11037 fi
11038 ;;
11039 darwin* | rhapsody*)
11040 archive_cmds_need_lc_CXX=no
11041 hardcode_direct_CXX=no
11042 hardcode_automatic_CXX=yes
11043 hardcode_shlibpath_var_CXX=unsupported
11044 whole_archive_flag_spec_CXX=''
11045 link_all_deplibs_CXX=yes
11046 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11047 if test "$GXX" = yes ; then
11048 output_verbose_link_cmd='echo'
11049 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11050 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11051 archive_expsym_cmds_CXX="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}"
11052 module_expsym_cmds_CXX="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}"
11053 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11054 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11055 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11056 fi
11057 else
11058 case $cc_basename in
11059 xlc*)
11060 output_verbose_link_cmd='echo'
11061 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11062 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11063 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11064 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11065 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11066 ;;
11067 *)
11068 ld_shlibs_CXX=no
11069 ;;
11070 esac
11071 fi
11072 ;;
11073
11074 dgux*)
11075 case $cc_basename in
11076 ec++*)
11077 # FIXME: insert proper C++ library support
11078 ld_shlibs_CXX=no
11079 ;;
11080 ghcx*)
11081 # Green Hills C++ Compiler
11082 # FIXME: insert proper C++ library support
11083 ld_shlibs_CXX=no
11084 ;;
11085 *)
11086 # FIXME: insert proper C++ library support
11087 ld_shlibs_CXX=no
11088 ;;
11089 esac
11090 ;;
11091 freebsd[12]*)
11092 # C++ shared libraries reported to be fairly broken before switch to ELF
11093 ld_shlibs_CXX=no
11094 ;;
11095 freebsd-elf*)
11096 archive_cmds_need_lc_CXX=no
11097 ;;
11098 freebsd* | dragonfly*)
11099 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11100 # conventions
11101 ld_shlibs_CXX=yes
11102 ;;
11103 gnu*)
11104 ;;
11105 hpux9*)
11106 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11107 hardcode_libdir_separator_CXX=:
11108 export_dynamic_flag_spec_CXX='${wl}-E'
11109 hardcode_direct_CXX=yes
11110 hardcode_minus_L_CXX=yes # Not in the search PATH,
11111 # but as the default
11112 # location of the library.
11113
11114 case $cc_basename in
11115 CC*)
11116 # FIXME: insert proper C++ library support
11117 ld_shlibs_CXX=no
11118 ;;
11119 aCC*)
11120 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11121 # Commands to make compiler produce verbose output that lists
11122 # what "hidden" libraries, object files and flags are used when
11123 # linking a shared library.
11124 #
11125 # There doesn't appear to be a way to prevent this compiler from
11126 # explicitly linking system object files so we need to strip them
11127 # from the output so that they don't get included in the library
11128 # dependencies.
11129 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11130 ;;
11131 *)
11132 if test "$GXX" = yes; then
11133 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11134 else
11135 # FIXME: insert proper C++ library support
11136 ld_shlibs_CXX=no
11137 fi
11138 ;;
11139 esac
11140 ;;
11141 hpux10*|hpux11*)
11142 if test $with_gnu_ld = no; then
11143 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11144 hardcode_libdir_separator_CXX=:
11145
11146 case $host_cpu in
11147 hppa*64*|ia64*) ;;
11148 *)
11149 export_dynamic_flag_spec_CXX='${wl}-E'
11150 ;;
11151 esac
11152 fi
11153 case $host_cpu in
11154 hppa*64*|ia64*)
11155 hardcode_direct_CXX=no
11156 hardcode_shlibpath_var_CXX=no
11157 ;;
11158 *)
11159 hardcode_direct_CXX=yes
11160 hardcode_minus_L_CXX=yes # Not in the search PATH,
11161 # but as the default
11162 # location of the library.
11163 ;;
11164 esac
11165
11166 case $cc_basename in
11167 CC*)
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11170 ;;
11171 aCC*)
11172 case $host_cpu in
11173 hppa*64*)
11174 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11175 ;;
11176 ia64*)
11177 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11178 ;;
11179 *)
11180 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11181 ;;
11182 esac
11183 # Commands to make compiler produce verbose output that lists
11184 # what "hidden" libraries, object files and flags are used when
11185 # linking a shared library.
11186 #
11187 # There doesn't appear to be a way to prevent this compiler from
11188 # explicitly linking system object files so we need to strip them
11189 # from the output so that they don't get included in the library
11190 # dependencies.
11191 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11192 ;;
11193 *)
11194 if test "$GXX" = yes; then
11195 if test $with_gnu_ld = no; then
11196 case $host_cpu in
11197 hppa*64*)
11198 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11199 ;;
11200 ia64*)
11201 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11202 ;;
11203 *)
11204 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11205 ;;
11206 esac
11207 fi
11208 else
11209 # FIXME: insert proper C++ library support
11210 ld_shlibs_CXX=no
11211 fi
11212 ;;
11213 esac
11214 ;;
11215 interix[3-9]*)
11216 hardcode_direct_CXX=no
11217 hardcode_shlibpath_var_CXX=no
11218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11219 export_dynamic_flag_spec_CXX='${wl}-E'
11220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11221 # Instead, shared libraries are loaded at an image base (0x10000000 by
11222 # default) and relocated if they conflict, which is a slow very memory
11223 # consuming and fragmenting process. To avoid this, we pick a random,
11224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11225 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11226 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11227 archive_expsym_cmds_CXX='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'
11228 ;;
11229 irix5* | irix6*)
11230 case $cc_basename in
11231 CC*)
11232 # SGI C++
11233 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11234
11235 # Archives containing C++ object files must be created using
11236 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11237 # necessary to make sure instantiated templates are included
11238 # in the archive.
11239 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11240 ;;
11241 *)
11242 if test "$GXX" = yes; then
11243 if test "$with_gnu_ld" = no; then
11244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11245 else
11246 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11247 fi
11248 fi
11249 link_all_deplibs_CXX=yes
11250 ;;
11251 esac
11252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11253 hardcode_libdir_separator_CXX=:
11254 ;;
11255 linux* | k*bsd*-gnu)
11256 case $cc_basename in
11257 KCC*)
11258 # Kuck and Associates, Inc. (KAI) C++ Compiler
11259
11260 # KCC will only create a shared library if the output file
11261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11262 # to its proper name (with version) after linking.
11263 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11264 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11265 # Commands to make compiler produce verbose output that lists
11266 # what "hidden" libraries, object files and flags are used when
11267 # linking a shared library.
11268 #
11269 # There doesn't appear to be a way to prevent this compiler from
11270 # explicitly linking system object files so we need to strip them
11271 # from the output so that they don't get included in the library
11272 # dependencies.
11273 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11274
11275 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11277
11278 # Archives containing C++ object files must be created using
11279 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11280 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11281 ;;
11282 icpc*)
11283 # Intel C++
11284 with_gnu_ld=yes
11285 # version 8.0 and above of icpc choke on multiply defined symbols
11286 # if we add $predep_objects and $postdep_objects, however 7.1 and
11287 # earlier do not add the objects themselves.
11288 case `$CC -V 2>&1` in
11289 *"Version 7."*)
11290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11291 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11292 ;;
11293 *) # Version 8.0 or newer
11294 tmp_idyn=
11295 case $host_cpu in
11296 ia64*) tmp_idyn=' -i_dynamic';;
11297 esac
11298 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11299 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11300 ;;
11301 esac
11302 archive_cmds_need_lc_CXX=no
11303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11304 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11305 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11306 ;;
11307 pgCC* | pgcpp*)
11308 # Portland Group C++ compiler
11309 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11310 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11311
11312 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11313 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11314 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11315 ;;
11316 cxx*)
11317 # Compaq C++
11318 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11319 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11320
11321 runpath_var=LD_RUN_PATH
11322 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11323 hardcode_libdir_separator_CXX=:
11324
11325 # Commands to make compiler produce verbose output that lists
11326 # what "hidden" libraries, object files and flags are used when
11327 # linking a shared library.
11328 #
11329 # There doesn't appear to be a way to prevent this compiler from
11330 # explicitly linking system object files so we need to strip them
11331 # from the output so that they don't get included in the library
11332 # dependencies.
11333 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11334 ;;
11335 *)
11336 case `$CC -V 2>&1 | sed 5q` in
11337 *Sun\ C*)
11338 # Sun C++ 5.9
11339 no_undefined_flag_CXX=' -zdefs'
11340 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11341 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11342 hardcode_libdir_flag_spec_CXX='-R$libdir'
11343 whole_archive_flag_spec_CXX='${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'
11344
11345 # Not sure whether something based on
11346 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11347 # would be better.
11348 output_verbose_link_cmd='echo'
11349
11350 # Archives containing C++ object files must be created using
11351 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11352 # necessary to make sure instantiated templates are included
11353 # in the archive.
11354 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11355 ;;
11356 esac
11357 ;;
11358 esac
11359 ;;
11360 lynxos*)
11361 # FIXME: insert proper C++ library support
11362 ld_shlibs_CXX=no
11363 ;;
11364 m88k*)
11365 # FIXME: insert proper C++ library support
11366 ld_shlibs_CXX=no
11367 ;;
11368 mvs*)
11369 case $cc_basename in
11370 cxx*)
11371 # FIXME: insert proper C++ library support
11372 ld_shlibs_CXX=no
11373 ;;
11374 *)
11375 # FIXME: insert proper C++ library support
11376 ld_shlibs_CXX=no
11377 ;;
11378 esac
11379 ;;
11380 netbsd* | netbsdelf*-gnu)
11381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11382 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11383 wlarc=
11384 hardcode_libdir_flag_spec_CXX='-R$libdir'
11385 hardcode_direct_CXX=yes
11386 hardcode_shlibpath_var_CXX=no
11387 fi
11388 # Workaround some broken pre-1.5 toolchains
11389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11390 ;;
11391 openbsd2*)
11392 # C++ shared libraries are fairly broken
11393 ld_shlibs_CXX=no
11394 ;;
11395 openbsd*)
11396 if test -f /usr/libexec/ld.so; then
11397 hardcode_direct_CXX=yes
11398 hardcode_shlibpath_var_CXX=no
11399 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11402 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11403 export_dynamic_flag_spec_CXX='${wl}-E'
11404 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11405 fi
11406 output_verbose_link_cmd='echo'
11407 else
11408 ld_shlibs_CXX=no
11409 fi
11410 ;;
11411 osf3*)
11412 case $cc_basename in
11413 KCC*)
11414 # Kuck and Associates, Inc. (KAI) C++ Compiler
11415
11416 # KCC will only create a shared library if the output file
11417 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11418 # to its proper name (with version) after linking.
11419 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11420
11421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11422 hardcode_libdir_separator_CXX=:
11423
11424 # Archives containing C++ object files must be created using
11425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11427
11428 ;;
11429 RCC*)
11430 # Rational C++ 2.4.1
11431 # FIXME: insert proper C++ library support
11432 ld_shlibs_CXX=no
11433 ;;
11434 cxx*)
11435 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11436 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11437
11438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11439 hardcode_libdir_separator_CXX=:
11440
11441 # Commands to make compiler produce verbose output that lists
11442 # what "hidden" libraries, object files and flags are used when
11443 # linking a shared library.
11444 #
11445 # There doesn't appear to be a way to prevent this compiler from
11446 # explicitly linking system object files so we need to strip them
11447 # from the output so that they don't get included in the library
11448 # dependencies.
11449 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11450 ;;
11451 *)
11452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11454 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11455
11456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11457 hardcode_libdir_separator_CXX=:
11458
11459 # Commands to make compiler produce verbose output that lists
11460 # what "hidden" libraries, object files and flags are used when
11461 # linking a shared library.
11462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11463
11464 else
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 fi
11468 ;;
11469 esac
11470 ;;
11471 osf4* | osf5*)
11472 case $cc_basename in
11473 KCC*)
11474 # Kuck and Associates, Inc. (KAI) C++ Compiler
11475
11476 # KCC will only create a shared library if the output file
11477 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11478 # to its proper name (with version) after linking.
11479 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11480
11481 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11482 hardcode_libdir_separator_CXX=:
11483
11484 # Archives containing C++ object files must be created using
11485 # the KAI C++ compiler.
11486 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11487 ;;
11488 RCC*)
11489 # Rational C++ 2.4.1
11490 # FIXME: insert proper C++ library support
11491 ld_shlibs_CXX=no
11492 ;;
11493 cxx*)
11494 allow_undefined_flag_CXX=' -expect_unresolved \*'
11495 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11496 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11497 echo "-hidden">> $lib.exp~
11498 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11499 $rm $lib.exp'
11500
11501 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11502 hardcode_libdir_separator_CXX=:
11503
11504 # Commands to make compiler produce verbose output that lists
11505 # what "hidden" libraries, object files and flags are used when
11506 # linking a shared library.
11507 #
11508 # There doesn't appear to be a way to prevent this compiler from
11509 # explicitly linking system object files so we need to strip them
11510 # from the output so that they don't get included in the library
11511 # dependencies.
11512 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11513 ;;
11514 *)
11515 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11516 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11517 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11518
11519 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11520 hardcode_libdir_separator_CXX=:
11521
11522 # Commands to make compiler produce verbose output that lists
11523 # what "hidden" libraries, object files and flags are used when
11524 # linking a shared library.
11525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11526
11527 else
11528 # FIXME: insert proper C++ library support
11529 ld_shlibs_CXX=no
11530 fi
11531 ;;
11532 esac
11533 ;;
11534 psos*)
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 ;;
11538 sunos4*)
11539 case $cc_basename in
11540 CC*)
11541 # Sun C++ 4.x
11542 # FIXME: insert proper C++ library support
11543 ld_shlibs_CXX=no
11544 ;;
11545 lcc*)
11546 # Lucid
11547 # FIXME: insert proper C++ library support
11548 ld_shlibs_CXX=no
11549 ;;
11550 *)
11551 # FIXME: insert proper C++ library support
11552 ld_shlibs_CXX=no
11553 ;;
11554 esac
11555 ;;
11556 solaris*)
11557 case $cc_basename in
11558 CC*)
11559 # Sun C++ 4.2, 5.x and Centerline C++
11560 archive_cmds_need_lc_CXX=yes
11561 no_undefined_flag_CXX=' -zdefs'
11562 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11563 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11564 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11565
11566 hardcode_libdir_flag_spec_CXX='-R$libdir'
11567 hardcode_shlibpath_var_CXX=no
11568 case $host_os in
11569 solaris2.[0-5] | solaris2.[0-5].*) ;;
11570 *)
11571 # The compiler driver will combine and reorder linker options,
11572 # but understands `-z linker_flag'.
11573 # Supported since Solaris 2.6 (maybe 2.5.1?)
11574 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11575 ;;
11576 esac
11577 link_all_deplibs_CXX=yes
11578
11579 output_verbose_link_cmd='echo'
11580
11581 # Archives containing C++ object files must be created using
11582 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11583 # necessary to make sure instantiated templates are included
11584 # in the archive.
11585 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11586 ;;
11587 gcx*)
11588 # Green Hills C++ Compiler
11589 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11590
11591 # The C++ compiler must be used to create the archive.
11592 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11593 ;;
11594 *)
11595 # GNU C++ compiler with Solaris linker
11596 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11597 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11598 if $CC --version | grep -v '^2\.7' > /dev/null; then
11599 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11600 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11601 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11602
11603 # Commands to make compiler produce verbose output that lists
11604 # what "hidden" libraries, object files and flags are used when
11605 # linking a shared library.
11606 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11607 else
11608 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11609 # platform.
11610 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11611 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11612 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11613
11614 # Commands to make compiler produce verbose output that lists
11615 # what "hidden" libraries, object files and flags are used when
11616 # linking a shared library.
11617 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11618 fi
11619
11620 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11621 case $host_os in
11622 solaris2.[0-5] | solaris2.[0-5].*) ;;
11623 *)
11624 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11625 ;;
11626 esac
11627 fi
11628 ;;
11629 esac
11630 ;;
11631 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11632 no_undefined_flag_CXX='${wl}-z,text'
11633 archive_cmds_need_lc_CXX=no
11634 hardcode_shlibpath_var_CXX=no
11635 runpath_var='LD_RUN_PATH'
11636
11637 case $cc_basename in
11638 CC*)
11639 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11641 ;;
11642 *)
11643 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 ;;
11646 esac
11647 ;;
11648 sysv5* | sco3.2v5* | sco5v6*)
11649 # Note: We can NOT use -z defs as we might desire, because we do not
11650 # link with -lc, and that would cause any symbols used from libc to
11651 # always be unresolved, which means just about no library would
11652 # ever link correctly. If we're not using GNU ld we use -z text
11653 # though, which does catch some bad symbols but isn't as heavy-handed
11654 # as -z defs.
11655 # For security reasons, it is highly recommended that you always
11656 # use absolute paths for naming shared libraries, and exclude the
11657 # DT_RUNPATH tag from executables and libraries. But doing so
11658 # requires that you compile everything twice, which is a pain.
11659 # So that behaviour is only enabled if SCOABSPATH is set to a
11660 # non-empty value in the environment. Most likely only useful for
11661 # creating official distributions of packages.
11662 # This is a hack until libtool officially supports absolute path
11663 # names for shared libraries.
11664 no_undefined_flag_CXX='${wl}-z,text'
11665 allow_undefined_flag_CXX='${wl}-z,nodefs'
11666 archive_cmds_need_lc_CXX=no
11667 hardcode_shlibpath_var_CXX=no
11668 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11669 hardcode_libdir_separator_CXX=':'
11670 link_all_deplibs_CXX=yes
11671 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11672 runpath_var='LD_RUN_PATH'
11673
11674 case $cc_basename in
11675 CC*)
11676 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11677 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11678 ;;
11679 *)
11680 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11682 ;;
11683 esac
11684 ;;
11685 tandem*)
11686 case $cc_basename in
11687 NCC*)
11688 # NonStop-UX NCC 3.20
11689 # FIXME: insert proper C++ library support
11690 ld_shlibs_CXX=no
11691 ;;
11692 *)
11693 # FIXME: insert proper C++ library support
11694 ld_shlibs_CXX=no
11695 ;;
11696 esac
11697 ;;
11698 vxworks*)
11699 # FIXME: insert proper C++ library support
11700 ld_shlibs_CXX=no
11701 ;;
11702 *)
11703 # FIXME: insert proper C++ library support
11704 ld_shlibs_CXX=no
11705 ;;
11706esac
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11708$as_echo "$ld_shlibs_CXX" >&6; }
11709test "$ld_shlibs_CXX" = no && can_build_shared=no
11710
11711GCC_CXX="$GXX"
11712LD_CXX="$LD"
11713
11714cat > conftest.$ac_ext <<EOF
11715class Foo
11716{
11717public:
11718 Foo (void) { a = 0; }
11719private:
11720 int a;
11721};
11722EOF
11723
11724if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11725 (eval $ac_compile) 2>&5
11726 ac_status=$?
11727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11728 test $ac_status = 0; }; then
11729 # Parse the compiler output and extract the necessary
11730 # objects, libraries and library flags.
11731
11732 # Sentinel used to keep track of whether or not we are before
11733 # the conftest object file.
11734 pre_test_object_deps_done=no
11735
11736 # The `*' in the case matches for architectures that use `case' in
11737 # $output_verbose_cmd can trigger glob expansion during the loop
11738 # eval without this substitution.
11739 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11740
11741 for p in `eval $output_verbose_link_cmd`; do
11742 case $p in
11743
11744 -L* | -R* | -l*)
11745 # Some compilers place space between "-{L,R}" and the path.
11746 # Remove the space.
11747 if test $p = "-L" \
11748 || test $p = "-R"; then
11749 prev=$p
11750 continue
11751 else
11752 prev=
11753 fi
11754
11755 if test "$pre_test_object_deps_done" = no; then
11756 case $p in
11757 -L* | -R*)
11758 # Internal compiler library paths should come after those
11759 # provided the user. The postdeps already come after the
11760 # user supplied libs so there is no need to process them.
11761 if test -z "$compiler_lib_search_path_CXX"; then
11762 compiler_lib_search_path_CXX="${prev}${p}"
11763 else
11764 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11765 fi
11766 ;;
11767 # The "-l" case would never come before the object being
11768 # linked, so don't bother handling this case.
11769 esac
11770 else
11771 if test -z "$postdeps_CXX"; then
11772 postdeps_CXX="${prev}${p}"
11773 else
11774 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11775 fi
11776 fi
11777 ;;
11778
11779 *.$objext)
11780 # This assumes that the test object file only shows up
11781 # once in the compiler output.
11782 if test "$p" = "conftest.$objext"; then
11783 pre_test_object_deps_done=yes
11784 continue
11785 fi
11786
11787 if test "$pre_test_object_deps_done" = no; then
11788 if test -z "$predep_objects_CXX"; then
11789 predep_objects_CXX="$p"
11790 else
11791 predep_objects_CXX="$predep_objects_CXX $p"
11792 fi
11793 else
11794 if test -z "$postdep_objects_CXX"; then
11795 postdep_objects_CXX="$p"
11796 else
11797 postdep_objects_CXX="$postdep_objects_CXX $p"
11798 fi
11799 fi
11800 ;;
11801
11802 *) ;; # Ignore the rest.
11803
11804 esac
11805 done
11806
11807 # Clean up.
11808 rm -f a.out a.exe
11809else
11810 echo "libtool.m4: error: problem compiling CXX test program"
11811fi
11812
11813$rm -f confest.$objext
11814
11815compiler_lib_search_dirs_CXX=
11816if test -n "$compiler_lib_search_path_CXX"; then
11817 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11818fi
11819
11820# PORTME: override above test on systems where it is broken
11821case $host_os in
11822interix[3-9]*)
11823 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11824 # hack all around it, let's just trust "g++" to DTRT.
11825 predep_objects_CXX=
11826 postdep_objects_CXX=
11827 postdeps_CXX=
11828 ;;
11829
11830linux*)
11831 case `$CC -V 2>&1 | sed 5q` in
11832 *Sun\ C*)
11833 # Sun C++ 5.9
11834 #
11835 # The more standards-conforming stlport4 library is
11836 # incompatible with the Cstd library. Avoid specifying
11837 # it if it's in CXXFLAGS. Ignore libCrun as
11838 # -library=stlport4 depends on it.
11839 case " $CXX $CXXFLAGS " in
11840 *" -library=stlport4 "*)
11841 solaris_use_stlport4=yes
11842 ;;
11843 esac
11844 if test "$solaris_use_stlport4" != yes; then
11845 postdeps_CXX='-library=Cstd -library=Crun'
11846 fi
11847 ;;
11848 esac
11849 ;;
11850
11851solaris*)
11852 case $cc_basename in
11853 CC*)
11854 # The more standards-conforming stlport4 library is
11855 # incompatible with the Cstd library. Avoid specifying
11856 # it if it's in CXXFLAGS. Ignore libCrun as
11857 # -library=stlport4 depends on it.
11858 case " $CXX $CXXFLAGS " in
11859 *" -library=stlport4 "*)
11860 solaris_use_stlport4=yes
11861 ;;
11862 esac
11863
11864 # Adding this requires a known-good setup of shared libraries for
11865 # Sun compiler versions before 5.6, else PIC objects from an old
11866 # archive will be linked into the output, leading to subtle bugs.
11867 if test "$solaris_use_stlport4" != yes; then
11868 postdeps_CXX='-library=Cstd -library=Crun'
11869 fi
11870 ;;
11871 esac
11872 ;;
11873esac
11874
11875case " $postdeps_CXX " in
11876*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11877esac
11878
11879lt_prog_compiler_wl_CXX=
11880lt_prog_compiler_pic_CXX=
11881lt_prog_compiler_static_CXX=
11882
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11884$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11885
11886 # C++ specific cases for pic, static, wl, etc.
11887 if test "$GXX" = yes; then
11888 lt_prog_compiler_wl_CXX='-Wl,'
11889 lt_prog_compiler_static_CXX='-static'
11890
11891 case $host_os in
11892 aix*)
11893 # All AIX code is PIC.
11894 if test "$host_cpu" = ia64; then
11895 # AIX 5 now supports IA64 processor
11896 lt_prog_compiler_static_CXX='-Bstatic'
11897 fi
11898 ;;
11899 amigaos*)
11900 # FIXME: we need at least 68020 code to build shared libraries, but
11901 # adding the `-m68020' flag to GCC prevents building anything better,
11902 # like `-m68040'.
11903 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11904 ;;
11905 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11906 # PIC is the default for these OSes.
11907 ;;
11908 mingw* | cygwin* | os2* | pw32*)
11909 # This hack is so that the source file can tell whether it is being
11910 # built for inclusion in a dll (and should export symbols for example).
11911 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11912 # (--disable-auto-import) libraries
11913 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11914 ;;
11915 darwin* | rhapsody*)
11916 # PIC is the default on this platform
11917 # Common symbols not allowed in MH_DYLIB files
11918 lt_prog_compiler_pic_CXX='-fno-common'
11919 ;;
11920 *djgpp*)
11921 # DJGPP does not support shared libraries at all
11922 lt_prog_compiler_pic_CXX=
11923 ;;
11924 interix[3-9]*)
11925 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11926 # Instead, we relocate shared libraries at runtime.
11927 ;;
11928 sysv4*MP*)
11929 if test -d /usr/nec; then
11930 lt_prog_compiler_pic_CXX=-Kconform_pic
11931 fi
11932 ;;
11933 hpux*)
11934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11935 # not for PA HP-UX.
11936 case $host_cpu in
11937 hppa*64*|ia64*)
11938 ;;
11939 *)
11940 lt_prog_compiler_pic_CXX='-fPIC'
11941 ;;
11942 esac
11943 ;;
11944 *)
11945 lt_prog_compiler_pic_CXX='-fPIC'
11946 ;;
11947 esac
11948 else
11949 case $host_os in
11950 aix[4-9]*)
11951 # All AIX code is PIC.
11952 if test "$host_cpu" = ia64; then
11953 # AIX 5 now supports IA64 processor
11954 lt_prog_compiler_static_CXX='-Bstatic'
11955 else
11956 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11957 fi
11958 ;;
11959 chorus*)
11960 case $cc_basename in
11961 cxch68*)
11962 # Green Hills C++ Compiler
11963 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11964 ;;
11965 esac
11966 ;;
11967 darwin*)
11968 # PIC is the default on this platform
11969 # Common symbols not allowed in MH_DYLIB files
11970 case $cc_basename in
11971 xlc*)
11972 lt_prog_compiler_pic_CXX='-qnocommon'
11973 lt_prog_compiler_wl_CXX='-Wl,'
11974 ;;
11975 esac
11976 ;;
11977 dgux*)
11978 case $cc_basename in
11979 ec++*)
11980 lt_prog_compiler_pic_CXX='-KPIC'
11981 ;;
11982 ghcx*)
11983 # Green Hills C++ Compiler
11984 lt_prog_compiler_pic_CXX='-pic'
11985 ;;
11986 *)
11987 ;;
11988 esac
11989 ;;
11990 freebsd* | dragonfly*)
11991 # FreeBSD uses GNU C++
11992 ;;
11993 hpux9* | hpux10* | hpux11*)
11994 case $cc_basename in
11995 CC*)
11996 lt_prog_compiler_wl_CXX='-Wl,'
11997 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11998 if test "$host_cpu" != ia64; then
11999 lt_prog_compiler_pic_CXX='+Z'
12000 fi
12001 ;;
12002 aCC*)
12003 lt_prog_compiler_wl_CXX='-Wl,'
12004 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12005 case $host_cpu in
12006 hppa*64*|ia64*)
12007 # +Z the default
12008 ;;
12009 *)
12010 lt_prog_compiler_pic_CXX='+Z'
12011 ;;
12012 esac
12013 ;;
12014 *)
12015 ;;
12016 esac
12017 ;;
12018 interix*)
12019 # This is c89, which is MS Visual C++ (no shared libs)
12020 # Anyone wants to do a port?
12021 ;;
12022 irix5* | irix6* | nonstopux*)
12023 case $cc_basename in
12024 CC*)
12025 lt_prog_compiler_wl_CXX='-Wl,'
12026 lt_prog_compiler_static_CXX='-non_shared'
12027 # CC pic flag -KPIC is the default.
12028 ;;
12029 *)
12030 ;;
12031 esac
12032 ;;
12033 linux* | k*bsd*-gnu)
12034 case $cc_basename in
12035 KCC*)
12036 # KAI C++ Compiler
12037 lt_prog_compiler_wl_CXX='--backend -Wl,'
12038 lt_prog_compiler_pic_CXX='-fPIC'
12039 ;;
12040 icpc* | ecpc*)
12041 # Intel C++
12042 lt_prog_compiler_wl_CXX='-Wl,'
12043 lt_prog_compiler_pic_CXX='-KPIC'
12044 lt_prog_compiler_static_CXX='-static'
12045 ;;
12046 pgCC* | pgcpp*)
12047 # Portland Group C++ compiler.
12048 lt_prog_compiler_wl_CXX='-Wl,'
12049 lt_prog_compiler_pic_CXX='-fpic'
12050 lt_prog_compiler_static_CXX='-Bstatic'
12051 ;;
12052 cxx*)
12053 # Compaq C++
12054 # Make sure the PIC flag is empty. It appears that all Alpha
12055 # Linux and Compaq Tru64 Unix objects are PIC.
12056 lt_prog_compiler_pic_CXX=
12057 lt_prog_compiler_static_CXX='-non_shared'
12058 ;;
12059 *)
12060 case `$CC -V 2>&1 | sed 5q` in
12061 *Sun\ C*)
12062 # Sun C++ 5.9
12063 lt_prog_compiler_pic_CXX='-KPIC'
12064 lt_prog_compiler_static_CXX='-Bstatic'
12065 lt_prog_compiler_wl_CXX='-Qoption ld '
12066 ;;
12067 esac
12068 ;;
12069 esac
12070 ;;
12071 lynxos*)
12072 ;;
12073 m88k*)
12074 ;;
12075 mvs*)
12076 case $cc_basename in
12077 cxx*)
12078 lt_prog_compiler_pic_CXX='-W c,exportall'
12079 ;;
12080 *)
12081 ;;
12082 esac
12083 ;;
12084 netbsd* | netbsdelf*-gnu)
12085 ;;
12086 osf3* | osf4* | osf5*)
12087 case $cc_basename in
12088 KCC*)
12089 lt_prog_compiler_wl_CXX='--backend -Wl,'
12090 ;;
12091 RCC*)
12092 # Rational C++ 2.4.1
12093 lt_prog_compiler_pic_CXX='-pic'
12094 ;;
12095 cxx*)
12096 # Digital/Compaq C++
12097 lt_prog_compiler_wl_CXX='-Wl,'
12098 # Make sure the PIC flag is empty. It appears that all Alpha
12099 # Linux and Compaq Tru64 Unix objects are PIC.
12100 lt_prog_compiler_pic_CXX=
12101 lt_prog_compiler_static_CXX='-non_shared'
12102 ;;
12103 *)
12104 ;;
12105 esac
12106 ;;
12107 psos*)
12108 ;;
12109 solaris*)
12110 case $cc_basename in
12111 CC*)
12112 # Sun C++ 4.2, 5.x and Centerline C++
12113 lt_prog_compiler_pic_CXX='-KPIC'
12114 lt_prog_compiler_static_CXX='-Bstatic'
12115 lt_prog_compiler_wl_CXX='-Qoption ld '
12116 ;;
12117 gcx*)
12118 # Green Hills C++ Compiler
12119 lt_prog_compiler_pic_CXX='-PIC'
12120 ;;
12121 *)
12122 ;;
12123 esac
12124 ;;
12125 sunos4*)
12126 case $cc_basename in
12127 CC*)
12128 # Sun C++ 4.x
12129 lt_prog_compiler_pic_CXX='-pic'
12130 lt_prog_compiler_static_CXX='-Bstatic'
12131 ;;
12132 lcc*)
12133 # Lucid
12134 lt_prog_compiler_pic_CXX='-pic'
12135 ;;
12136 *)
12137 ;;
12138 esac
12139 ;;
12140 tandem*)
12141 case $cc_basename in
12142 NCC*)
12143 # NonStop-UX NCC 3.20
12144 lt_prog_compiler_pic_CXX='-KPIC'
12145 ;;
12146 *)
12147 ;;
12148 esac
12149 ;;
12150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12151 case $cc_basename in
12152 CC*)
12153 lt_prog_compiler_wl_CXX='-Wl,'
12154 lt_prog_compiler_pic_CXX='-KPIC'
12155 lt_prog_compiler_static_CXX='-Bstatic'
12156 ;;
12157 esac
12158 ;;
12159 vxworks*)
12160 ;;
12161 *)
12162 lt_prog_compiler_can_build_shared_CXX=no
12163 ;;
12164 esac
12165 fi
12166
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12168$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12169
12170#
12171# Check to make sure the PIC flag actually works.
12172#
12173if test -n "$lt_prog_compiler_pic_CXX"; then
12174
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12176$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12177if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
12178 $as_echo_n "(cached) " >&6
12179else
12180 lt_cv_prog_compiler_pic_works_CXX=no
12181 ac_outfile=conftest.$ac_objext
12182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12183 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12184 # Insert the option either (1) after the last *FLAGS variable, or
12185 # (2) before a word containing "conftest.", or (3) at the end.
12186 # Note that $ac_compile itself does not contain backslashes and begins
12187 # with a dollar sign (not a hyphen), so the echo should work correctly.
12188 # The option is referenced via a variable to avoid confusing sed.
12189 lt_compile=`echo "$ac_compile" | $SED \
12190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12192 -e 's:$: $lt_compiler_flag:'`
12193 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12194 (eval "$lt_compile" 2>conftest.err)
12195 ac_status=$?
12196 cat conftest.err >&5
12197 echo "$as_me:__oline__: \$? = $ac_status" >&5
12198 if (exit $ac_status) && test -s "$ac_outfile"; then
12199 # The compiler can only warn and ignore the option if not recognized
12200 # So say no if there are warnings other than the usual output.
12201 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12204 lt_cv_prog_compiler_pic_works_CXX=yes
12205 fi
12206 fi
12207 $rm conftest*
12208
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12211$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12212
12213if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12214 case $lt_prog_compiler_pic_CXX in
12215 "" | " "*) ;;
12216 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12217 esac
12218else
12219 lt_prog_compiler_pic_CXX=
12220 lt_prog_compiler_can_build_shared_CXX=no
12221fi
12222
12223fi
12224case $host_os in
12225 # For platforms which do not support PIC, -DPIC is meaningless:
12226 *djgpp*)
12227 lt_prog_compiler_pic_CXX=
12228 ;;
12229 *)
12230 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12231 ;;
12232esac
12233
12234#
12235# Check to make sure the static flag actually works.
12236#
12237wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12239$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12240if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
12241 $as_echo_n "(cached) " >&6
12242else
12243 lt_cv_prog_compiler_static_works_CXX=no
12244 save_LDFLAGS="$LDFLAGS"
12245 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12246 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12247 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12248 # The linker can only warn and ignore the option if not recognized
12249 # So say no if there are warnings
12250 if test -s conftest.err; then
12251 # Append any errors to the config.log.
12252 cat conftest.err 1>&5
12253 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12255 if diff conftest.exp conftest.er2 >/dev/null; then
12256 lt_cv_prog_compiler_static_works_CXX=yes
12257 fi
12258 else
12259 lt_cv_prog_compiler_static_works_CXX=yes
12260 fi
12261 fi
12262 $rm -r conftest*
12263 LDFLAGS="$save_LDFLAGS"
12264
12265fi
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12267$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12268
12269if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12270 :
12271else
12272 lt_prog_compiler_static_CXX=
12273fi
12274
12275
12276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12277$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12278if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12279 $as_echo_n "(cached) " >&6
12280else
12281 lt_cv_prog_compiler_c_o_CXX=no
12282 $rm -r conftest 2>/dev/null
12283 mkdir conftest
12284 cd conftest
12285 mkdir out
12286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12287
12288 lt_compiler_flag="-o out/conftest2.$ac_objext"
12289 # Insert the option either (1) after the last *FLAGS variable, or
12290 # (2) before a word containing "conftest.", or (3) at the end.
12291 # Note that $ac_compile itself does not contain backslashes and begins
12292 # with a dollar sign (not a hyphen), so the echo should work correctly.
12293 lt_compile=`echo "$ac_compile" | $SED \
12294 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12296 -e 's:$: $lt_compiler_flag:'`
12297 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12298 (eval "$lt_compile" 2>out/conftest.err)
12299 ac_status=$?
12300 cat out/conftest.err >&5
12301 echo "$as_me:__oline__: \$? = $ac_status" >&5
12302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12303 then
12304 # The compiler can only warn and ignore the option if not recognized
12305 # So say no if there are warnings
12306 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12307 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12308 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12309 lt_cv_prog_compiler_c_o_CXX=yes
12310 fi
12311 fi
12312 chmod u+w . 2>&5
12313 $rm conftest*
12314 # SGI C++ compiler will create directory out/ii_files/ for
12315 # template instantiation
12316 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12317 $rm out/* && rmdir out
12318 cd ..
12319 rmdir conftest
12320 $rm conftest*
12321
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12324$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12325
12326
12327hard_links="nottested"
12328if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12329 # do not overwrite the value of need_locks provided by the user
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12331$as_echo_n "checking if we can lock with hard links... " >&6; }
12332 hard_links=yes
12333 $rm conftest*
12334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12335 touch conftest.a
12336 ln conftest.a conftest.b 2>&5 || hard_links=no
12337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12339$as_echo "$hard_links" >&6; }
12340 if test "$hard_links" = no; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12342$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12343 need_locks=warn
12344 fi
12345else
12346 need_locks=no
12347fi
12348
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12350$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12351
12352 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353 case $host_os in
12354 aix[4-9]*)
12355 # If we're using GNU nm, then we don't want the "-C" option.
12356 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12357 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12358 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12359 else
12360 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12361 fi
12362 ;;
12363 pw32*)
12364 export_symbols_cmds_CXX="$ltdll_cmds"
12365 ;;
12366 cygwin* | mingw*)
12367 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12368 ;;
12369 linux* | k*bsd*-gnu)
12370 link_all_deplibs_CXX=no
12371 ;;
12372 *)
12373 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12374 ;;
12375 esac
12376 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12377
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12379$as_echo "$ld_shlibs_CXX" >&6; }
12380test "$ld_shlibs_CXX" = no && can_build_shared=no
12381
12382#
12383# Do we need to explicitly link libc?
12384#
12385case "x$archive_cmds_need_lc_CXX" in
12386x|xyes)
12387 # Assume -lc should be added
12388 archive_cmds_need_lc_CXX=yes
12389
12390 if test "$enable_shared" = yes && test "$GCC" = yes; then
12391 case $archive_cmds_CXX in
12392 *'~'*)
12393 # FIXME: we may have to deal with multi-command sequences.
12394 ;;
12395 '$CC '*)
12396 # Test whether the compiler implicitly links with -lc since on some
12397 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12398 # to ld, don't add -lc before -lgcc.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12400$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12401 $rm conftest*
12402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12403
12404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12405 (eval $ac_compile) 2>&5
12406 ac_status=$?
12407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12408 test $ac_status = 0; } 2>conftest.err; then
12409 soname=conftest
12410 lib=conftest
12411 libobjs=conftest.$ac_objext
12412 deplibs=
12413 wl=$lt_prog_compiler_wl_CXX
12414 pic_flag=$lt_prog_compiler_pic_CXX
12415 compiler_flags=-v
12416 linker_flags=-v
12417 verstring=
12418 output_objdir=.
12419 libname=conftest
12420 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12421 allow_undefined_flag_CXX=
12422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12423 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12424 ac_status=$?
12425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426 test $ac_status = 0; }
12427 then
12428 archive_cmds_need_lc_CXX=no
12429 else
12430 archive_cmds_need_lc_CXX=yes
12431 fi
12432 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12433 else
12434 cat conftest.err 1>&5
12435 fi
12436 $rm conftest*
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12438$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12439 ;;
12440 esac
12441 fi
12442 ;;
12443esac
12444
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12446$as_echo_n "checking dynamic linker characteristics... " >&6; }
12447library_names_spec=
12448libname_spec='lib$name'
12449soname_spec=
12450shrext_cmds=".so"
12451postinstall_cmds=
12452postuninstall_cmds=
12453finish_cmds=
12454finish_eval=
12455shlibpath_var=
12456shlibpath_overrides_runpath=unknown
12457version_type=none
12458dynamic_linker="$host_os ld.so"
12459sys_lib_dlsearch_path_spec="/lib /usr/lib"
12460
12461need_lib_prefix=unknown
12462hardcode_into_libs=no
12463
12464# when you set need_version to no, make sure it does not cause -set_version
12465# flags to be left without arguments
12466need_version=unknown
12467
12468case $host_os in
12469aix3*)
12470 version_type=linux
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12472 shlibpath_var=LIBPATH
12473
12474 # AIX 3 has no versioning support, so we append a major version to the name.
12475 soname_spec='${libname}${release}${shared_ext}$major'
12476 ;;
12477
12478aix[4-9]*)
12479 version_type=linux
12480 need_lib_prefix=no
12481 need_version=no
12482 hardcode_into_libs=yes
12483 if test "$host_cpu" = ia64; then
12484 # AIX 5 supports IA64
12485 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 else
12488 # With GCC up to 2.95.x, collect2 would create an import file
12489 # for dependence libraries. The import file would start with
12490 # the line `#! .'. This would cause the generated library to
12491 # depend on `.', always an invalid library. This was fixed in
12492 # development snapshots of GCC prior to 3.0.
12493 case $host_os in
12494 aix4 | aix4.[01] | aix4.[01].*)
12495 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12496 echo ' yes '
12497 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12498 :
12499 else
12500 can_build_shared=no
12501 fi
12502 ;;
12503 esac
12504 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12505 # soname into executable. Probably we can add versioning support to
12506 # collect2, so additional links can be useful in future.
12507 if test "$aix_use_runtimelinking" = yes; then
12508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12509 # instead of lib<name>.a to let people know that these are not
12510 # typical AIX shared libraries.
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12512 else
12513 # We preserve .a as extension for shared libraries through AIX4.2
12514 # and later when we are not doing run time linking.
12515 library_names_spec='${libname}${release}.a $libname.a'
12516 soname_spec='${libname}${release}${shared_ext}$major'
12517 fi
12518 shlibpath_var=LIBPATH
12519 fi
12520 ;;
12521
12522amigaos*)
12523 library_names_spec='$libname.ixlibrary $libname.a'
12524 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12525 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'
12526 ;;
12527
12528beos*)
12529 library_names_spec='${libname}${shared_ext}'
12530 dynamic_linker="$host_os ld.so"
12531 shlibpath_var=LIBRARY_PATH
12532 ;;
12533
12534bsdi[45]*)
12535 version_type=linux
12536 need_version=no
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538 soname_spec='${libname}${release}${shared_ext}$major'
12539 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12542 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12543 # the default ld.so.conf also contains /usr/contrib/lib and
12544 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12545 # libtool to hard-code these into programs
12546 ;;
12547
12548cygwin* | mingw* | pw32*)
12549 version_type=windows
12550 shrext_cmds=".dll"
12551 need_version=no
12552 need_lib_prefix=no
12553
12554 case $GCC,$host_os in
12555 yes,cygwin* | yes,mingw* | yes,pw32*)
12556 library_names_spec='$libname.dll.a'
12557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12558 postinstall_cmds='base_file=`basename \${file}`~
12559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12560 dldir=$destdir/`dirname \$dlpath`~
12561 test -d \$dldir || mkdir -p \$dldir~
12562 $install_prog $dir/$dlname \$dldir/$dlname~
12563 chmod a+x \$dldir/$dlname'
12564 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12565 dlpath=$dir/\$dldll~
12566 $rm \$dlpath'
12567 shlibpath_overrides_runpath=yes
12568
12569 case $host_os in
12570 cygwin*)
12571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12572 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12573 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12574 ;;
12575 mingw*)
12576 # MinGW DLLs use traditional 'lib' prefix
12577 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12578 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12579 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12580 # It is most probably a Windows format PATH printed by
12581 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12582 # path with ; separators, and with drive letters. We can handle the
12583 # drive letters (cygwin fileutils understands them), so leave them,
12584 # especially as we might pass files found there to a mingw objdump,
12585 # which wouldn't understand a cygwinified path. Ahh.
12586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12587 else
12588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12589 fi
12590 ;;
12591 pw32*)
12592 # pw32 DLLs use 'pw' prefix rather than 'lib'
12593 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12594 ;;
12595 esac
12596 ;;
12597
12598 *)
12599 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12600 ;;
12601 esac
12602 dynamic_linker='Win32 ld.exe'
12603 # FIXME: first we should search . and the directory the executable is in
12604 shlibpath_var=PATH
12605 ;;
12606
12607darwin* | rhapsody*)
12608 dynamic_linker="$host_os dyld"
12609 version_type=darwin
12610 need_lib_prefix=no
12611 need_version=no
12612 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12613 soname_spec='${libname}${release}${major}$shared_ext'
12614 shlibpath_overrides_runpath=yes
12615 shlibpath_var=DYLD_LIBRARY_PATH
12616 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12617
12618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12619 ;;
12620
12621dgux*)
12622 version_type=linux
12623 need_lib_prefix=no
12624 need_version=no
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 ;;
12629
12630freebsd1*)
12631 dynamic_linker=no
12632 ;;
12633
12634freebsd* | dragonfly*)
12635 # DragonFly does not have aout. When/if they implement a new
12636 # versioning mechanism, adjust this.
12637 if test -x /usr/bin/objformat; then
12638 objformat=`/usr/bin/objformat`
12639 else
12640 case $host_os in
12641 freebsd[123]*) objformat=aout ;;
12642 *) objformat=elf ;;
12643 esac
12644 fi
12645 version_type=freebsd-$objformat
12646 case $version_type in
12647 freebsd-elf*)
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12649 need_version=no
12650 need_lib_prefix=no
12651 ;;
12652 freebsd-*)
12653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12654 need_version=yes
12655 ;;
12656 esac
12657 shlibpath_var=LD_LIBRARY_PATH
12658 case $host_os in
12659 freebsd2*)
12660 shlibpath_overrides_runpath=yes
12661 ;;
12662 freebsd3.[01]* | freebsdelf3.[01]*)
12663 shlibpath_overrides_runpath=yes
12664 hardcode_into_libs=yes
12665 ;;
12666 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12667 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12668 shlibpath_overrides_runpath=no
12669 hardcode_into_libs=yes
12670 ;;
12671 *) # from 4.6 on, and DragonFly
12672 shlibpath_overrides_runpath=yes
12673 hardcode_into_libs=yes
12674 ;;
12675 esac
12676 ;;
12677
12678gnu*)
12679 version_type=linux
12680 need_lib_prefix=no
12681 need_version=no
12682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12683 soname_spec='${libname}${release}${shared_ext}$major'
12684 shlibpath_var=LD_LIBRARY_PATH
12685 hardcode_into_libs=yes
12686 ;;
12687
12688hpux9* | hpux10* | hpux11*)
12689 # Give a soname corresponding to the major version so that dld.sl refuses to
12690 # link against other versions.
12691 version_type=sunos
12692 need_lib_prefix=no
12693 need_version=no
12694 case $host_cpu in
12695 ia64*)
12696 shrext_cmds='.so'
12697 hardcode_into_libs=yes
12698 dynamic_linker="$host_os dld.so"
12699 shlibpath_var=LD_LIBRARY_PATH
12700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 if test "X$HPUX_IA64_MODE" = X32; then
12704 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12705 else
12706 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12707 fi
12708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12709 ;;
12710 hppa*64*)
12711 shrext_cmds='.sl'
12712 hardcode_into_libs=yes
12713 dynamic_linker="$host_os dld.sl"
12714 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12717 soname_spec='${libname}${release}${shared_ext}$major'
12718 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12719 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12720 ;;
12721 *)
12722 shrext_cmds='.sl'
12723 dynamic_linker="$host_os dld.sl"
12724 shlibpath_var=SHLIB_PATH
12725 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 ;;
12729 esac
12730 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12731 postinstall_cmds='chmod 555 $lib'
12732 ;;
12733
12734interix[3-9]*)
12735 version_type=linux
12736 need_lib_prefix=no
12737 need_version=no
12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12739 soname_spec='${libname}${release}${shared_ext}$major'
12740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=no
12743 hardcode_into_libs=yes
12744 ;;
12745
12746irix5* | irix6* | nonstopux*)
12747 case $host_os in
12748 nonstopux*) version_type=nonstopux ;;
12749 *)
12750 if test "$lt_cv_prog_gnu_ld" = yes; then
12751 version_type=linux
12752 else
12753 version_type=irix
12754 fi ;;
12755 esac
12756 need_lib_prefix=no
12757 need_version=no
12758 soname_spec='${libname}${release}${shared_ext}$major'
12759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12760 case $host_os in
12761 irix5* | nonstopux*)
12762 libsuff= shlibsuff=
12763 ;;
12764 *)
12765 case $LD in # libtool.m4 will add one of these switches to LD
12766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12767 libsuff= shlibsuff= libmagic=32-bit;;
12768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12769 libsuff=32 shlibsuff=N32 libmagic=N32;;
12770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12772 *) libsuff= shlibsuff= libmagic=never-match;;
12773 esac
12774 ;;
12775 esac
12776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12777 shlibpath_overrides_runpath=no
12778 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12779 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12780 hardcode_into_libs=yes
12781 ;;
12782
12783# No shared lib support for Linux oldld, aout, or coff.
12784linux*oldld* | linux*aout* | linux*coff*)
12785 dynamic_linker=no
12786 ;;
12787
12788# This must be Linux ELF.
12789linux* | k*bsd*-gnu)
12790 version_type=linux
12791 need_lib_prefix=no
12792 need_version=no
12793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12794 soname_spec='${libname}${release}${shared_ext}$major'
12795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12796 shlibpath_var=LD_LIBRARY_PATH
12797 shlibpath_overrides_runpath=no
12798 # This implies no fast_install, which is unacceptable.
12799 # Some rework will be needed to allow for fast_install
12800 # before this can be enabled.
12801 hardcode_into_libs=yes
12802
12803 # Append ld.so.conf contents to the search path
12804 if test -f /etc/ld.so.conf; then
12805 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' ' '`
12806 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12807 fi
12808
12809 # We used to test for /lib/ld.so.1 and disable shared libraries on
12810 # powerpc, because MkLinux only supported shared libraries with the
12811 # GNU dynamic linker. Since this was broken with cross compilers,
12812 # most powerpc-linux boxes support dynamic linking these days and
12813 # people can always --disable-shared, the test was removed, and we
12814 # assume the GNU/Linux dynamic linker is in use.
12815 dynamic_linker='GNU/Linux ld.so'
12816 ;;
12817
12818netbsdelf*-gnu)
12819 version_type=linux
12820 need_lib_prefix=no
12821 need_version=no
12822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12823 soname_spec='${libname}${release}${shared_ext}$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=no
12826 hardcode_into_libs=yes
12827 dynamic_linker='NetBSD ld.elf_so'
12828 ;;
12829
12830netbsd*)
12831 version_type=sunos
12832 need_lib_prefix=no
12833 need_version=no
12834 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12837 dynamic_linker='NetBSD (a.out) ld.so'
12838 else
12839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12840 soname_spec='${libname}${release}${shared_ext}$major'
12841 dynamic_linker='NetBSD ld.elf_so'
12842 fi
12843 shlibpath_var=LD_LIBRARY_PATH
12844 shlibpath_overrides_runpath=yes
12845 hardcode_into_libs=yes
12846 ;;
12847
12848newsos6)
12849 version_type=linux
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 shlibpath_overrides_runpath=yes
12853 ;;
12854
12855nto-qnx*)
12856 version_type=linux
12857 need_lib_prefix=no
12858 need_version=no
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12860 soname_spec='${libname}${release}${shared_ext}$major'
12861 shlibpath_var=LD_LIBRARY_PATH
12862 shlibpath_overrides_runpath=yes
12863 ;;
12864
12865openbsd*)
12866 version_type=sunos
12867 sys_lib_dlsearch_path_spec="/usr/lib"
12868 need_lib_prefix=no
12869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12870 case $host_os in
12871 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12872 *) need_version=no ;;
12873 esac
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12876 shlibpath_var=LD_LIBRARY_PATH
12877 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12878 case $host_os in
12879 openbsd2.[89] | openbsd2.[89].*)
12880 shlibpath_overrides_runpath=no
12881 ;;
12882 *)
12883 shlibpath_overrides_runpath=yes
12884 ;;
12885 esac
12886 else
12887 shlibpath_overrides_runpath=yes
12888 fi
12889 ;;
12890
12891os2*)
12892 libname_spec='$name'
12893 shrext_cmds=".dll"
12894 need_lib_prefix=no
12895 library_names_spec='$libname${shared_ext} $libname.a'
12896 dynamic_linker='OS/2 ld.exe'
12897 shlibpath_var=LIBPATH
12898 ;;
12899
12900osf3* | osf4* | osf5*)
12901 version_type=osf
12902 need_lib_prefix=no
12903 need_version=no
12904 soname_spec='${libname}${release}${shared_ext}$major'
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12909 ;;
12910
12911rdos*)
12912 dynamic_linker=no
12913 ;;
12914
12915solaris*)
12916 version_type=linux
12917 need_lib_prefix=no
12918 need_version=no
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12920 soname_spec='${libname}${release}${shared_ext}$major'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12923 hardcode_into_libs=yes
12924 # ldd complains unless libraries are executable
12925 postinstall_cmds='chmod +x $lib'
12926 ;;
12927
12928sunos4*)
12929 version_type=sunos
12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 if test "$with_gnu_ld" = yes; then
12935 need_lib_prefix=no
12936 fi
12937 need_version=yes
12938 ;;
12939
12940sysv4 | sysv4.3*)
12941 version_type=linux
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 shlibpath_var=LD_LIBRARY_PATH
12945 case $host_vendor in
12946 sni)
12947 shlibpath_overrides_runpath=no
12948 need_lib_prefix=no
12949 export_dynamic_flag_spec='${wl}-Blargedynsym'
12950 runpath_var=LD_RUN_PATH
12951 ;;
12952 siemens)
12953 need_lib_prefix=no
12954 ;;
12955 motorola)
12956 need_lib_prefix=no
12957 need_version=no
12958 shlibpath_overrides_runpath=no
12959 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12960 ;;
12961 esac
12962 ;;
12963
12964sysv4*MP*)
12965 if test -d /usr/nec ;then
12966 version_type=linux
12967 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12968 soname_spec='$libname${shared_ext}.$major'
12969 shlibpath_var=LD_LIBRARY_PATH
12970 fi
12971 ;;
12972
12973sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12974 version_type=freebsd-elf
12975 need_lib_prefix=no
12976 need_version=no
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 shlibpath_var=LD_LIBRARY_PATH
12980 hardcode_into_libs=yes
12981 if test "$with_gnu_ld" = yes; then
12982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12983 shlibpath_overrides_runpath=no
12984 else
12985 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12986 shlibpath_overrides_runpath=yes
12987 case $host_os in
12988 sco3.2v5*)
12989 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12990 ;;
12991 esac
12992 fi
12993 sys_lib_dlsearch_path_spec='/usr/lib'
12994 ;;
12995
12996uts4*)
12997 version_type=linux
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 shlibpath_var=LD_LIBRARY_PATH
13001 ;;
13002
13003*)
13004 dynamic_linker=no
13005 ;;
13006esac
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13008$as_echo "$dynamic_linker" >&6; }
13009test "$dynamic_linker" = no && can_build_shared=no
13010
13011if ${lt_cv_sys_lib_search_path_spec+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013else
13014 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13015fi
13016
13017sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13018if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
13019 $as_echo_n "(cached) " >&6
13020else
13021 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13022fi
13023
13024sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13025
13026variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13027if test "$GCC" = yes; then
13028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13029fi
13030
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13032$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13033hardcode_action_CXX=
13034if test -n "$hardcode_libdir_flag_spec_CXX" || \
13035 test -n "$runpath_var_CXX" || \
13036 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13037
13038 # We can hardcode non-existant directories.
13039 if test "$hardcode_direct_CXX" != no &&
13040 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13041 # have to relink, otherwise we might link with an installed library
13042 # when we should be linking with a yet-to-be-installed one
13043 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13044 test "$hardcode_minus_L_CXX" != no; then
13045 # Linking always hardcodes the temporary library directory.
13046 hardcode_action_CXX=relink
13047 else
13048 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13049 hardcode_action_CXX=immediate
13050 fi
13051else
13052 # We cannot hardcode anything, or else we can only hardcode existing
13053 # directories.
13054 hardcode_action_CXX=unsupported
13055fi
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13057$as_echo "$hardcode_action_CXX" >&6; }
13058
13059if test "$hardcode_action_CXX" = relink; then
13060 # Fast installation is not supported
13061 enable_fast_install=no
13062elif test "$shlibpath_overrides_runpath" = yes ||
13063 test "$enable_shared" = no; then
13064 # Fast installation is not necessary
13065 enable_fast_install=needless
13066fi
13067
13068
13069# The else clause should only fire when bootstrapping the
13070# libtool distribution, otherwise you forgot to ship ltmain.sh
13071# with your package, and you will get complaints that there are
13072# no rules to generate ltmain.sh.
13073if test -f "$ltmain"; then
13074 # See if we are running on zsh, and set the options which allow our commands through
13075 # without removal of \ escapes.
13076 if test -n "${ZSH_VERSION+set}" ; then
13077 setopt NO_GLOB_SUBST
13078 fi
13079 # Now quote all the things that may contain metacharacters while being
13080 # careful not to overquote the AC_SUBSTed values. We take copies of the
13081 # variables and quote the copies for generation of the libtool script.
13082 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13083 SED SHELL STRIP \
13084 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13085 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13086 deplibs_check_method reload_flag reload_cmds need_locks \
13087 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13088 lt_cv_sys_global_symbol_to_c_name_address \
13089 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13090 old_postinstall_cmds old_postuninstall_cmds \
13091 compiler_CXX \
13092 CC_CXX \
13093 LD_CXX \
13094 lt_prog_compiler_wl_CXX \
13095 lt_prog_compiler_pic_CXX \
13096 lt_prog_compiler_static_CXX \
13097 lt_prog_compiler_no_builtin_flag_CXX \
13098 export_dynamic_flag_spec_CXX \
13099 thread_safe_flag_spec_CXX \
13100 whole_archive_flag_spec_CXX \
13101 enable_shared_with_static_runtimes_CXX \
13102 old_archive_cmds_CXX \
13103 old_archive_from_new_cmds_CXX \
13104 predep_objects_CXX \
13105 postdep_objects_CXX \
13106 predeps_CXX \
13107 postdeps_CXX \
13108 compiler_lib_search_path_CXX \
13109 compiler_lib_search_dirs_CXX \
13110 archive_cmds_CXX \
13111 archive_expsym_cmds_CXX \
13112 postinstall_cmds_CXX \
13113 postuninstall_cmds_CXX \
13114 old_archive_from_expsyms_cmds_CXX \
13115 allow_undefined_flag_CXX \
13116 no_undefined_flag_CXX \
13117 export_symbols_cmds_CXX \
13118 hardcode_libdir_flag_spec_CXX \
13119 hardcode_libdir_flag_spec_ld_CXX \
13120 hardcode_libdir_separator_CXX \
13121 hardcode_automatic_CXX \
13122 module_cmds_CXX \
13123 module_expsym_cmds_CXX \
13124 lt_cv_prog_compiler_c_o_CXX \
13125 fix_srcfile_path_CXX \
13126 exclude_expsyms_CXX \
13127 include_expsyms_CXX; do
13128
13129 case $var in
13130 old_archive_cmds_CXX | \
13131 old_archive_from_new_cmds_CXX | \
13132 archive_cmds_CXX | \
13133 archive_expsym_cmds_CXX | \
13134 module_cmds_CXX | \
13135 module_expsym_cmds_CXX | \
13136 old_archive_from_expsyms_cmds_CXX | \
13137 export_symbols_cmds_CXX | \
13138 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13139 postinstall_cmds | postuninstall_cmds | \
13140 old_postinstall_cmds | old_postuninstall_cmds | \
13141 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13142 # Double-quote double-evaled strings.
13143 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13144 ;;
13145 *)
13146 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13147 ;;
13148 esac
13149 done
13150
13151 case $lt_echo in
13152 *'\$0 --fallback-echo"')
13153 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13154 ;;
13155 esac
13156
13157cfgfile="$ofile"
13158
13159 cat <<__EOF__ >> "$cfgfile"
13160# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13161
13162# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13163
13164# Shell to use when invoking shell scripts.
13165SHELL=$lt_SHELL
13166
13167# Whether or not to build shared libraries.
13168build_libtool_libs=$enable_shared
13169
13170# Whether or not to build static libraries.
13171build_old_libs=$enable_static
13172
13173# Whether or not to add -lc for building shared libraries.
13174build_libtool_need_lc=$archive_cmds_need_lc_CXX
13175
13176# Whether or not to disallow shared libs when runtime libs are static
13177allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13178
13179# Whether or not to optimize for fast installation.
13180fast_install=$enable_fast_install
13181
13182# The host system.
13183host_alias=$host_alias
13184host=$host
13185host_os=$host_os
13186
13187# The build system.
13188build_alias=$build_alias
13189build=$build
13190build_os=$build_os
13191
13192# An echo program that does not interpret backslashes.
13193echo=$lt_echo
13194
13195# The archiver.
13196AR=$lt_AR
13197AR_FLAGS=$lt_AR_FLAGS
13198
13199# A C compiler.
13200LTCC=$lt_LTCC
13201
13202# LTCC compiler flags.
13203LTCFLAGS=$lt_LTCFLAGS
13204
13205# A language-specific compiler.
13206CC=$lt_compiler_CXX
13207
13208# Is the compiler the GNU C compiler?
13209with_gcc=$GCC_CXX
13210
13211# An ERE matcher.
13212EGREP=$lt_EGREP
13213
13214# The linker used to build libraries.
13215LD=$lt_LD_CXX
13216
13217# Whether we need hard or soft links.
13218LN_S=$lt_LN_S
13219
13220# A BSD-compatible nm program.
13221NM=$lt_NM
13222
13223# A symbol stripping program
13224STRIP=$lt_STRIP
13225
13226# Used to examine libraries when file_magic_cmd begins "file"
13227MAGIC_CMD=$MAGIC_CMD
13228
13229# Used on cygwin: DLL creation program.
13230DLLTOOL="$DLLTOOL"
13231
13232# Used on cygwin: object dumper.
13233OBJDUMP="$OBJDUMP"
13234
13235# Used on cygwin: assembler.
13236AS="$AS"
13237
13238# The name of the directory that contains temporary libtool files.
13239objdir=$objdir
13240
13241# How to create reloadable object files.
13242reload_flag=$lt_reload_flag
13243reload_cmds=$lt_reload_cmds
13244
13245# How to pass a linker flag through the compiler.
13246wl=$lt_lt_prog_compiler_wl_CXX
13247
13248# Object file suffix (normally "o").
13249objext="$ac_objext"
13250
13251# Old archive suffix (normally "a").
13252libext="$libext"
13253
13254# Shared library suffix (normally ".so").
13255shrext_cmds='$shrext_cmds'
13256
13257# Executable file suffix (normally "").
13258exeext="$exeext"
13259
13260# Additional compiler flags for building library objects.
13261pic_flag=$lt_lt_prog_compiler_pic_CXX
13262pic_mode=$pic_mode
13263
13264# What is the maximum length of a command?
13265max_cmd_len=$lt_cv_sys_max_cmd_len
13266
13267# Does compiler simultaneously support -c and -o options?
13268compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13269
13270# Must we lock files when doing compilation?
13271need_locks=$lt_need_locks
13272
13273# Do we need the lib prefix for modules?
13274need_lib_prefix=$need_lib_prefix
13275
13276# Do we need a version for libraries?
13277need_version=$need_version
13278
13279# Whether dlopen is supported.
13280dlopen_support=$enable_dlopen
13281
13282# Whether dlopen of programs is supported.
13283dlopen_self=$enable_dlopen_self
13284
13285# Whether dlopen of statically linked programs is supported.
13286dlopen_self_static=$enable_dlopen_self_static
13287
13288# Compiler flag to prevent dynamic linking.
13289link_static_flag=$lt_lt_prog_compiler_static_CXX
13290
13291# Compiler flag to turn off builtin functions.
13292no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13293
13294# Compiler flag to allow reflexive dlopens.
13295export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13296
13297# Compiler flag to generate shared objects directly from archives.
13298whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13299
13300# Compiler flag to generate thread-safe objects.
13301thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13302
13303# Library versioning type.
13304version_type=$version_type
13305
13306# Format of library name prefix.
13307libname_spec=$lt_libname_spec
13308
13309# List of archive names. First name is the real one, the rest are links.
13310# The last name is the one that the linker finds with -lNAME.
13311library_names_spec=$lt_library_names_spec
13312
13313# The coded name of the library, if different from the real name.
13314soname_spec=$lt_soname_spec
13315
13316# Commands used to build and install an old-style archive.
13317RANLIB=$lt_RANLIB
13318old_archive_cmds=$lt_old_archive_cmds_CXX
13319old_postinstall_cmds=$lt_old_postinstall_cmds
13320old_postuninstall_cmds=$lt_old_postuninstall_cmds
13321
13322# Create an old-style archive from a shared archive.
13323old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13324
13325# Create a temporary old-style archive to link instead of a shared archive.
13326old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13327
13328# Commands used to build and install a shared archive.
13329archive_cmds=$lt_archive_cmds_CXX
13330archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13331postinstall_cmds=$lt_postinstall_cmds
13332postuninstall_cmds=$lt_postuninstall_cmds
13333
13334# Commands used to build a loadable module (assumed same as above if empty)
13335module_cmds=$lt_module_cmds_CXX
13336module_expsym_cmds=$lt_module_expsym_cmds_CXX
13337
13338# Commands to strip libraries.
13339old_striplib=$lt_old_striplib
13340striplib=$lt_striplib
13341
13342# Dependencies to place before the objects being linked to create a
13343# shared library.
13344predep_objects=$lt_predep_objects_CXX
13345
13346# Dependencies to place after the objects being linked to create a
13347# shared library.
13348postdep_objects=$lt_postdep_objects_CXX
13349
13350# Dependencies to place before the objects being linked to create a
13351# shared library.
13352predeps=$lt_predeps_CXX
13353
13354# Dependencies to place after the objects being linked to create a
13355# shared library.
13356postdeps=$lt_postdeps_CXX
13357
13358# The directories searched by this compiler when creating a shared
13359# library
13360compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13361
13362# The library search path used internally by the compiler when linking
13363# a shared library.
13364compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13365
13366# Method to check whether dependent libraries are shared objects.
13367deplibs_check_method=$lt_deplibs_check_method
13368
13369# Command to use when deplibs_check_method == file_magic.
13370file_magic_cmd=$lt_file_magic_cmd
13371
13372# Flag that allows shared libraries with undefined symbols to be built.
13373allow_undefined_flag=$lt_allow_undefined_flag_CXX
13374
13375# Flag that forces no undefined symbols.
13376no_undefined_flag=$lt_no_undefined_flag_CXX
13377
13378# Commands used to finish a libtool library installation in a directory.
13379finish_cmds=$lt_finish_cmds
13380
13381# Same as above, but a single script fragment to be evaled but not shown.
13382finish_eval=$lt_finish_eval
13383
13384# Take the output of nm and produce a listing of raw symbols and C names.
13385global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13386
13387# Transform the output of nm in a proper C declaration
13388global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13389
13390# Transform the output of nm in a C name address pair
13391global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13392
13393# This is the shared library runtime path variable.
13394runpath_var=$runpath_var
13395
13396# This is the shared library path variable.
13397shlibpath_var=$shlibpath_var
13398
13399# Is shlibpath searched before the hard-coded library search path?
13400shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13401
13402# How to hardcode a shared library path into an executable.
13403hardcode_action=$hardcode_action_CXX
13404
13405# Whether we should hardcode library paths into libraries.
13406hardcode_into_libs=$hardcode_into_libs
13407
13408# Flag to hardcode \$libdir into a binary during linking.
13409# This must work even if \$libdir does not exist.
13410hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13411
13412# If ld is used when linking, flag to hardcode \$libdir into
13413# a binary during linking. This must work even if \$libdir does
13414# not exist.
13415hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13416
13417# Whether we need a single -rpath flag with a separated argument.
13418hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13419
13420# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13421# resulting binary.
13422hardcode_direct=$hardcode_direct_CXX
13423
13424# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13425# resulting binary.
13426hardcode_minus_L=$hardcode_minus_L_CXX
13427
13428# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13429# the resulting binary.
13430hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13431
13432# Set to yes if building a shared library automatically hardcodes DIR into the library
13433# and all subsequent libraries and executables linked against it.
13434hardcode_automatic=$hardcode_automatic_CXX
13435
13436# Variables whose values should be saved in libtool wrapper scripts and
13437# restored at relink time.
13438variables_saved_for_relink="$variables_saved_for_relink"
13439
13440# Whether libtool must link a program against all its dependency libraries.
13441link_all_deplibs=$link_all_deplibs_CXX
13442
13443# Compile-time system search path for libraries
13444sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13445
13446# Run-time system search path for libraries
13447sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13448
13449# Fix the shell variable \$srcfile for the compiler.
13450fix_srcfile_path=$lt_fix_srcfile_path
13451
13452# Set to yes if exported symbols are required.
13453always_export_symbols=$always_export_symbols_CXX
13454
13455# The commands to list exported symbols.
13456export_symbols_cmds=$lt_export_symbols_cmds_CXX
13457
13458# The commands to extract the exported symbol list from a shared archive.
13459extract_expsyms_cmds=$lt_extract_expsyms_cmds
13460
13461# Symbols that should not be listed in the preloaded symbols.
13462exclude_expsyms=$lt_exclude_expsyms_CXX
13463
13464# Symbols that must always be exported.
13465include_expsyms=$lt_include_expsyms_CXX
13466
13467# ### END LIBTOOL TAG CONFIG: $tagname
13468
13469__EOF__
13470
13471
13472else
13473 # If there is no Makefile yet, we rely on a make rule to execute
13474 # `config.status --recheck' to rerun these tests and create the
13475 # libtool script then.
13476 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13477 if test -f "$ltmain_in"; then
13478 test -f Makefile && make "$ltmain"
13479 fi
13480fi
13481
13482
13483ac_ext=c
13484ac_cpp='$CPP $CPPFLAGS'
13485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488
13489CC=$lt_save_CC
13490LDCXX=$LD
13491LD=$lt_save_LD
13492GCC=$lt_save_GCC
13493with_gnu_ldcxx=$with_gnu_ld
13494with_gnu_ld=$lt_save_with_gnu_ld
13495lt_cv_path_LDCXX=$lt_cv_path_LD
13496lt_cv_path_LD=$lt_save_path_LD
13497lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13498lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13499
13500 else
13501 tagname=""
13502 fi
13503 ;;
13504
13505 F77)
13506 if test -n "$F77" && test "X$F77" != "Xno"; then
13507
13508ac_ext=f
13509ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13510ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13511ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13512
13513
13514archive_cmds_need_lc_F77=no
13515allow_undefined_flag_F77=
13516always_export_symbols_F77=no
13517archive_expsym_cmds_F77=
13518export_dynamic_flag_spec_F77=
13519hardcode_direct_F77=no
13520hardcode_libdir_flag_spec_F77=
13521hardcode_libdir_flag_spec_ld_F77=
13522hardcode_libdir_separator_F77=
13523hardcode_minus_L_F77=no
13524hardcode_automatic_F77=no
13525module_cmds_F77=
13526module_expsym_cmds_F77=
13527link_all_deplibs_F77=unknown
13528old_archive_cmds_F77=$old_archive_cmds
13529no_undefined_flag_F77=
13530whole_archive_flag_spec_F77=
13531enable_shared_with_static_runtimes_F77=no
13532
13533# Source file extension for f77 test sources.
13534ac_ext=f
13535
13536# Object file extension for compiled f77 test sources.
13537objext=o
13538objext_F77=$objext
13539
13540# Code to be used in simple compile tests
13541lt_simple_compile_test_code="\
13542 subroutine t
13543 return
13544 end
13545"
13546
13547# Code to be used in simple link tests
13548lt_simple_link_test_code="\
13549 program t
13550 end
13551"
13552
13553# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13554
13555# If no C compiler was specified, use CC.
13556LTCC=${LTCC-"$CC"}
13557
13558# If no C compiler flags were specified, use CFLAGS.
13559LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13560
13561# Allow CC to be a program name with arguments.
13562compiler=$CC
13563
13564
13565# save warnings/boilerplate of simple test code
13566ac_outfile=conftest.$ac_objext
13567echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13568eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13569_lt_compiler_boilerplate=`cat conftest.err`
13570$rm conftest*
13571
13572ac_outfile=conftest.$ac_objext
13573echo "$lt_simple_link_test_code" >conftest.$ac_ext
13574eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13575_lt_linker_boilerplate=`cat conftest.err`
13576$rm -r conftest*
13577
13578
13579# Allow CC to be a program name with arguments.
13580lt_save_CC="$CC"
13581CC=${F77-"f77"}
13582compiler=$CC
13583compiler_F77=$CC
13584for cc_temp in $compiler""; do
13585 case $cc_temp in
13586 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13587 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13588 \-*) ;;
13589 *) break;;
13590 esac
13591done
13592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13593
13594
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13596$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13598$as_echo "$can_build_shared" >&6; }
13599
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13601$as_echo_n "checking whether to build shared libraries... " >&6; }
13602test "$can_build_shared" = "no" && enable_shared=no
13603
13604# On AIX, shared libraries and static libraries use the same namespace, and
13605# are all built from PIC.
13606case $host_os in
13607aix3*)
13608 test "$enable_shared" = yes && enable_static=no
13609 if test -n "$RANLIB"; then
13610 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13611 postinstall_cmds='$RANLIB $lib'
13612 fi
13613 ;;
13614aix[4-9]*)
13615 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13616 test "$enable_shared" = yes && enable_static=no
13617 fi
13618 ;;
13619esac
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13621$as_echo "$enable_shared" >&6; }
13622
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13624$as_echo_n "checking whether to build static libraries... " >&6; }
13625# Make sure either enable_shared or enable_static is yes.
13626test "$enable_shared" = yes || enable_static=yes
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13628$as_echo "$enable_static" >&6; }
13629
13630GCC_F77="$G77"
13631LD_F77="$LD"
13632
13633lt_prog_compiler_wl_F77=
13634lt_prog_compiler_pic_F77=
13635lt_prog_compiler_static_F77=
13636
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13638$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13639
13640 if test "$GCC" = yes; then
13641 lt_prog_compiler_wl_F77='-Wl,'
13642 lt_prog_compiler_static_F77='-static'
13643
13644 case $host_os in
13645 aix*)
13646 # All AIX code is PIC.
13647 if test "$host_cpu" = ia64; then
13648 # AIX 5 now supports IA64 processor
13649 lt_prog_compiler_static_F77='-Bstatic'
13650 fi
13651 ;;
13652
13653 amigaos*)
13654 # FIXME: we need at least 68020 code to build shared libraries, but
13655 # adding the `-m68020' flag to GCC prevents building anything better,
13656 # like `-m68040'.
13657 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13658 ;;
13659
13660 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13661 # PIC is the default for these OSes.
13662 ;;
13663
13664 mingw* | cygwin* | pw32* | os2*)
13665 # This hack is so that the source file can tell whether it is being
13666 # built for inclusion in a dll (and should export symbols for example).
13667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13668 # (--disable-auto-import) libraries
13669 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13670 ;;
13671
13672 darwin* | rhapsody*)
13673 # PIC is the default on this platform
13674 # Common symbols not allowed in MH_DYLIB files
13675 lt_prog_compiler_pic_F77='-fno-common'
13676 ;;
13677
13678 interix[3-9]*)
13679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13680 # Instead, we relocate shared libraries at runtime.
13681 ;;
13682
13683 msdosdjgpp*)
13684 # Just because we use GCC doesn't mean we suddenly get shared libraries
13685 # on systems that don't support them.
13686 lt_prog_compiler_can_build_shared_F77=no
13687 enable_shared=no
13688 ;;
13689
13690 sysv4*MP*)
13691 if test -d /usr/nec; then
13692 lt_prog_compiler_pic_F77=-Kconform_pic
13693 fi
13694 ;;
13695
13696 hpux*)
13697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13698 # not for PA HP-UX.
13699 case $host_cpu in
13700 hppa*64*|ia64*)
13701 # +Z the default
13702 ;;
13703 *)
13704 lt_prog_compiler_pic_F77='-fPIC'
13705 ;;
13706 esac
13707 ;;
13708
13709 *)
13710 lt_prog_compiler_pic_F77='-fPIC'
13711 ;;
13712 esac
13713 else
13714 # PORTME Check for flag to pass linker flags through the system compiler.
13715 case $host_os in
13716 aix*)
13717 lt_prog_compiler_wl_F77='-Wl,'
13718 if test "$host_cpu" = ia64; then
13719 # AIX 5 now supports IA64 processor
13720 lt_prog_compiler_static_F77='-Bstatic'
13721 else
13722 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13723 fi
13724 ;;
13725 darwin*)
13726 # PIC is the default on this platform
13727 # Common symbols not allowed in MH_DYLIB files
13728 case $cc_basename in
13729 xlc*)
13730 lt_prog_compiler_pic_F77='-qnocommon'
13731 lt_prog_compiler_wl_F77='-Wl,'
13732 ;;
13733 esac
13734 ;;
13735
13736 mingw* | cygwin* | pw32* | os2*)
13737 # This hack is so that the source file can tell whether it is being
13738 # built for inclusion in a dll (and should export symbols for example).
13739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13740 ;;
13741
13742 hpux9* | hpux10* | hpux11*)
13743 lt_prog_compiler_wl_F77='-Wl,'
13744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13745 # not for PA HP-UX.
13746 case $host_cpu in
13747 hppa*64*|ia64*)
13748 # +Z the default
13749 ;;
13750 *)
13751 lt_prog_compiler_pic_F77='+Z'
13752 ;;
13753 esac
13754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13756 ;;
13757
13758 irix5* | irix6* | nonstopux*)
13759 lt_prog_compiler_wl_F77='-Wl,'
13760 # PIC (with -KPIC) is the default.
13761 lt_prog_compiler_static_F77='-non_shared'
13762 ;;
13763
13764 newsos6)
13765 lt_prog_compiler_pic_F77='-KPIC'
13766 lt_prog_compiler_static_F77='-Bstatic'
13767 ;;
13768
13769 linux* | k*bsd*-gnu)
13770 case $cc_basename in
13771 icc* | ecc*)
13772 lt_prog_compiler_wl_F77='-Wl,'
13773 lt_prog_compiler_pic_F77='-KPIC'
13774 lt_prog_compiler_static_F77='-static'
13775 ;;
13776 pgcc* | pgf77* | pgf90* | pgf95*)
13777 # Portland Group compilers (*not* the Pentium gcc compiler,
13778 # which looks to be a dead project)
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 lt_prog_compiler_pic_F77='-fpic'
13781 lt_prog_compiler_static_F77='-Bstatic'
13782 ;;
13783 ccc*)
13784 lt_prog_compiler_wl_F77='-Wl,'
13785 # All Alpha code is PIC.
13786 lt_prog_compiler_static_F77='-non_shared'
13787 ;;
13788 *)
13789 case `$CC -V 2>&1 | sed 5q` in
13790 *Sun\ C*)
13791 # Sun C 5.9
13792 lt_prog_compiler_pic_F77='-KPIC'
13793 lt_prog_compiler_static_F77='-Bstatic'
13794 lt_prog_compiler_wl_F77='-Wl,'
13795 ;;
13796 *Sun\ F*)
13797 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13798 lt_prog_compiler_pic_F77='-KPIC'
13799 lt_prog_compiler_static_F77='-Bstatic'
13800 lt_prog_compiler_wl_F77=''
13801 ;;
13802 esac
13803 ;;
13804 esac
13805 ;;
13806
13807 osf3* | osf4* | osf5*)
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 # All OSF/1 code is PIC.
13810 lt_prog_compiler_static_F77='-non_shared'
13811 ;;
13812
13813 rdos*)
13814 lt_prog_compiler_static_F77='-non_shared'
13815 ;;
13816
13817 solaris*)
13818 lt_prog_compiler_pic_F77='-KPIC'
13819 lt_prog_compiler_static_F77='-Bstatic'
13820 case $cc_basename in
13821 f77* | f90* | f95*)
13822 lt_prog_compiler_wl_F77='-Qoption ld ';;
13823 *)
13824 lt_prog_compiler_wl_F77='-Wl,';;
13825 esac
13826 ;;
13827
13828 sunos4*)
13829 lt_prog_compiler_wl_F77='-Qoption ld '
13830 lt_prog_compiler_pic_F77='-PIC'
13831 lt_prog_compiler_static_F77='-Bstatic'
13832 ;;
13833
13834 sysv4 | sysv4.2uw2* | sysv4.3*)
13835 lt_prog_compiler_wl_F77='-Wl,'
13836 lt_prog_compiler_pic_F77='-KPIC'
13837 lt_prog_compiler_static_F77='-Bstatic'
13838 ;;
13839
13840 sysv4*MP*)
13841 if test -d /usr/nec ;then
13842 lt_prog_compiler_pic_F77='-Kconform_pic'
13843 lt_prog_compiler_static_F77='-Bstatic'
13844 fi
13845 ;;
13846
13847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13848 lt_prog_compiler_wl_F77='-Wl,'
13849 lt_prog_compiler_pic_F77='-KPIC'
13850 lt_prog_compiler_static_F77='-Bstatic'
13851 ;;
13852
13853 unicos*)
13854 lt_prog_compiler_wl_F77='-Wl,'
13855 lt_prog_compiler_can_build_shared_F77=no
13856 ;;
13857
13858 uts4*)
13859 lt_prog_compiler_pic_F77='-pic'
13860 lt_prog_compiler_static_F77='-Bstatic'
13861 ;;
13862
13863 *)
13864 lt_prog_compiler_can_build_shared_F77=no
13865 ;;
13866 esac
13867 fi
13868
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13870$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13871
13872#
13873# Check to make sure the PIC flag actually works.
13874#
13875if test -n "$lt_prog_compiler_pic_F77"; then
13876
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13879if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13880 $as_echo_n "(cached) " >&6
13881else
13882 lt_cv_prog_compiler_pic_works_F77=no
13883 ac_outfile=conftest.$ac_objext
13884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13885 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13886 # Insert the option either (1) after the last *FLAGS variable, or
13887 # (2) before a word containing "conftest.", or (3) at the end.
13888 # Note that $ac_compile itself does not contain backslashes and begins
13889 # with a dollar sign (not a hyphen), so the echo should work correctly.
13890 # The option is referenced via a variable to avoid confusing sed.
13891 lt_compile=`echo "$ac_compile" | $SED \
13892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13894 -e 's:$: $lt_compiler_flag:'`
13895 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13896 (eval "$lt_compile" 2>conftest.err)
13897 ac_status=$?
13898 cat conftest.err >&5
13899 echo "$as_me:__oline__: \$? = $ac_status" >&5
13900 if (exit $ac_status) && test -s "$ac_outfile"; then
13901 # The compiler can only warn and ignore the option if not recognized
13902 # So say no if there are warnings other than the usual output.
13903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13906 lt_cv_prog_compiler_pic_works_F77=yes
13907 fi
13908 fi
13909 $rm conftest*
13910
13911fi
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13913$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13914
13915if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13916 case $lt_prog_compiler_pic_F77 in
13917 "" | " "*) ;;
13918 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13919 esac
13920else
13921 lt_prog_compiler_pic_F77=
13922 lt_prog_compiler_can_build_shared_F77=no
13923fi
13924
13925fi
13926case $host_os in
13927 # For platforms which do not support PIC, -DPIC is meaningless:
13928 *djgpp*)
13929 lt_prog_compiler_pic_F77=
13930 ;;
13931 *)
13932 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13933 ;;
13934esac
13935
13936#
13937# Check to make sure the static flag actually works.
13938#
13939wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13942if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13943 $as_echo_n "(cached) " >&6
13944else
13945 lt_cv_prog_compiler_static_works_F77=no
13946 save_LDFLAGS="$LDFLAGS"
13947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13948 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13950 # The linker can only warn and ignore the option if not recognized
13951 # So say no if there are warnings
13952 if test -s conftest.err; then
13953 # Append any errors to the config.log.
13954 cat conftest.err 1>&5
13955 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13957 if diff conftest.exp conftest.er2 >/dev/null; then
13958 lt_cv_prog_compiler_static_works_F77=yes
13959 fi
13960 else
13961 lt_cv_prog_compiler_static_works_F77=yes
13962 fi
13963 fi
13964 $rm -r conftest*
13965 LDFLAGS="$save_LDFLAGS"
13966
13967fi
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13969$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13970
13971if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13972 :
13973else
13974 lt_prog_compiler_static_F77=
13975fi
13976
13977
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13980if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13981 $as_echo_n "(cached) " >&6
13982else
13983 lt_cv_prog_compiler_c_o_F77=no
13984 $rm -r conftest 2>/dev/null
13985 mkdir conftest
13986 cd conftest
13987 mkdir out
13988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13989
13990 lt_compiler_flag="-o out/conftest2.$ac_objext"
13991 # Insert the option either (1) after the last *FLAGS variable, or
13992 # (2) before a word containing "conftest.", or (3) at the end.
13993 # Note that $ac_compile itself does not contain backslashes and begins
13994 # with a dollar sign (not a hyphen), so the echo should work correctly.
13995 lt_compile=`echo "$ac_compile" | $SED \
13996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13998 -e 's:$: $lt_compiler_flag:'`
13999 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14000 (eval "$lt_compile" 2>out/conftest.err)
14001 ac_status=$?
14002 cat out/conftest.err >&5
14003 echo "$as_me:__oline__: \$? = $ac_status" >&5
14004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14005 then
14006 # The compiler can only warn and ignore the option if not recognized
14007 # So say no if there are warnings
14008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14011 lt_cv_prog_compiler_c_o_F77=yes
14012 fi
14013 fi
14014 chmod u+w . 2>&5
14015 $rm conftest*
14016 # SGI C++ compiler will create directory out/ii_files/ for
14017 # template instantiation
14018 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14019 $rm out/* && rmdir out
14020 cd ..
14021 rmdir conftest
14022 $rm conftest*
14023
14024fi
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14026$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14027
14028
14029hard_links="nottested"
14030if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14031 # do not overwrite the value of need_locks provided by the user
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14033$as_echo_n "checking if we can lock with hard links... " >&6; }
14034 hard_links=yes
14035 $rm conftest*
14036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14037 touch conftest.a
14038 ln conftest.a conftest.b 2>&5 || hard_links=no
14039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14041$as_echo "$hard_links" >&6; }
14042 if test "$hard_links" = no; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14044$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14045 need_locks=warn
14046 fi
14047else
14048 need_locks=no
14049fi
14050
14051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14053
14054 runpath_var=
14055 allow_undefined_flag_F77=
14056 enable_shared_with_static_runtimes_F77=no
14057 archive_cmds_F77=
14058 archive_expsym_cmds_F77=
14059 old_archive_From_new_cmds_F77=
14060 old_archive_from_expsyms_cmds_F77=
14061 export_dynamic_flag_spec_F77=
14062 whole_archive_flag_spec_F77=
14063 thread_safe_flag_spec_F77=
14064 hardcode_libdir_flag_spec_F77=
14065 hardcode_libdir_flag_spec_ld_F77=
14066 hardcode_libdir_separator_F77=
14067 hardcode_direct_F77=no
14068 hardcode_minus_L_F77=no
14069 hardcode_shlibpath_var_F77=unsupported
14070 link_all_deplibs_F77=unknown
14071 hardcode_automatic_F77=no
14072 module_cmds_F77=
14073 module_expsym_cmds_F77=
14074 always_export_symbols_F77=no
14075 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14076 # include_expsyms should be a list of space-separated symbols to be *always*
14077 # included in the symbol list
14078 include_expsyms_F77=
14079 # exclude_expsyms can be an extended regexp of symbols to exclude
14080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14082 # as well as any symbol that contains `d'.
14083 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14085 # platforms (ab)use it in PIC code, but their linkers get confused if
14086 # the symbol is explicitly referenced. Since portable code cannot
14087 # rely on this symbol name, it's probably fine to never include it in
14088 # preloaded symbol tables.
14089 # Exclude shared library initialization/finalization symbols.
14090 extract_expsyms_cmds=
14091 # Just being paranoid about ensuring that cc_basename is set.
14092 for cc_temp in $compiler""; do
14093 case $cc_temp in
14094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14096 \-*) ;;
14097 *) break;;
14098 esac
14099done
14100cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14101
14102 case $host_os in
14103 cygwin* | mingw* | pw32*)
14104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14105 # When not using gcc, we currently assume that we are using
14106 # Microsoft Visual C++.
14107 if test "$GCC" != yes; then
14108 with_gnu_ld=no
14109 fi
14110 ;;
14111 interix*)
14112 # we just hope/assume this is gcc and not c89 (= MSVC++)
14113 with_gnu_ld=yes
14114 ;;
14115 openbsd*)
14116 with_gnu_ld=no
14117 ;;
14118 esac
14119
14120 ld_shlibs_F77=yes
14121 if test "$with_gnu_ld" = yes; then
14122 # If archive_cmds runs LD, not CC, wlarc should be empty
14123 wlarc='${wl}'
14124
14125 # Set some defaults for GNU ld with shared library support. These
14126 # are reset later if shared libraries are not supported. Putting them
14127 # here allows them to be overridden if necessary.
14128 runpath_var=LD_RUN_PATH
14129 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14130 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14131 # ancient GNU ld didn't support --whole-archive et. al.
14132 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14133 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14134 else
14135 whole_archive_flag_spec_F77=
14136 fi
14137 supports_anon_versioning=no
14138 case `$LD -v 2>/dev/null` in
14139 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14140 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14141 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14142 *\ 2.11.*) ;; # other 2.11 versions
14143 *) supports_anon_versioning=yes ;;
14144 esac
14145
14146 # See if GNU ld supports shared libraries.
14147 case $host_os in
14148 aix[3-9]*)
14149 # On AIX/PPC, the GNU linker is very broken
14150 if test "$host_cpu" != ia64; then
14151 ld_shlibs_F77=no
14152 cat <<EOF 1>&2
14153
14154*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14155*** to be unable to reliably create shared libraries on AIX.
14156*** Therefore, libtool is disabling shared libraries support. If you
14157*** really care for shared libraries, you may want to modify your PATH
14158*** so that a non-GNU linker is found, and then restart.
14159
14160EOF
14161 fi
14162 ;;
14163
14164 amigaos*)
14165 archive_cmds_F77='$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)'
14166 hardcode_libdir_flag_spec_F77='-L$libdir'
14167 hardcode_minus_L_F77=yes
14168
14169 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14170 # that the semantics of dynamic libraries on AmigaOS, at least up
14171 # to version 4, is to share data among multiple programs linked
14172 # with the same dynamic library. Since this doesn't match the
14173 # behavior of shared libraries on other platforms, we can't use
14174 # them.
14175 ld_shlibs_F77=no
14176 ;;
14177
14178 beos*)
14179 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14180 allow_undefined_flag_F77=unsupported
14181 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14182 # support --undefined. This deserves some investigation. FIXME
14183 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14184 else
14185 ld_shlibs_F77=no
14186 fi
14187 ;;
14188
14189 cygwin* | mingw* | pw32*)
14190 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14191 # as there is no search path for DLLs.
14192 hardcode_libdir_flag_spec_F77='-L$libdir'
14193 allow_undefined_flag_F77=unsupported
14194 always_export_symbols_F77=no
14195 enable_shared_with_static_runtimes_F77=yes
14196 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14197
14198 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14199 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14200 # If the export-symbols file already is a .def file (1st line
14201 # is EXPORTS), use it as is; otherwise, prepend...
14202 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14203 cp $export_symbols $output_objdir/$soname.def;
14204 else
14205 echo EXPORTS > $output_objdir/$soname.def;
14206 cat $export_symbols >> $output_objdir/$soname.def;
14207 fi~
14208 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14209 else
14210 ld_shlibs_F77=no
14211 fi
14212 ;;
14213
14214 interix[3-9]*)
14215 hardcode_direct_F77=no
14216 hardcode_shlibpath_var_F77=no
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14218 export_dynamic_flag_spec_F77='${wl}-E'
14219 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14220 # Instead, shared libraries are loaded at an image base (0x10000000 by
14221 # default) and relocated if they conflict, which is a slow very memory
14222 # consuming and fragmenting process. To avoid this, we pick a random,
14223 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14224 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14225 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14226 archive_expsym_cmds_F77='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'
14227 ;;
14228
14229 gnu* | linux* | k*bsd*-gnu)
14230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14231 tmp_addflag=
14232 case $cc_basename,$host_cpu in
14233 pgcc*) # Portland Group C compiler
14234 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14235 tmp_addflag=' $pic_flag'
14236 ;;
14237 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14238 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14239 tmp_addflag=' $pic_flag -Mnomain' ;;
14240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14241 tmp_addflag=' -i_dynamic' ;;
14242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14243 tmp_addflag=' -i_dynamic -nofor_main' ;;
14244 ifc* | ifort*) # Intel Fortran compiler
14245 tmp_addflag=' -nofor_main' ;;
14246 esac
14247 case `$CC -V 2>&1 | sed 5q` in
14248 *Sun\ C*) # Sun C 5.9
14249 whole_archive_flag_spec_F77='${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'
14250 tmp_sharedflag='-G' ;;
14251 *Sun\ F*) # Sun Fortran 8.3
14252 tmp_sharedflag='-G' ;;
14253 *)
14254 tmp_sharedflag='-shared' ;;
14255 esac
14256 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257
14258 if test $supports_anon_versioning = yes; then
14259 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14261 $echo "local: *; };" >> $output_objdir/$libname.ver~
14262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14263 fi
14264 link_all_deplibs_F77=no
14265 else
14266 ld_shlibs_F77=no
14267 fi
14268 ;;
14269
14270 netbsd* | netbsdelf*-gnu)
14271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14272 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14273 wlarc=
14274 else
14275 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14276 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14277 fi
14278 ;;
14279
14280 solaris*)
14281 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14282 ld_shlibs_F77=no
14283 cat <<EOF 1>&2
14284
14285*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14286*** create shared libraries on Solaris systems. Therefore, libtool
14287*** is disabling shared libraries support. We urge you to upgrade GNU
14288*** binutils to release 2.9.1 or newer. Another option is to modify
14289*** your PATH or compiler configuration so that the native linker is
14290*** used, and then restart.
14291
14292EOF
14293 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14294 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14295 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14296 else
14297 ld_shlibs_F77=no
14298 fi
14299 ;;
14300
14301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14302 case `$LD -v 2>&1` in
14303 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14304 ld_shlibs_F77=no
14305 cat <<_LT_EOF 1>&2
14306
14307*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14308*** reliably create shared libraries on SCO systems. Therefore, libtool
14309*** is disabling shared libraries support. We urge you to upgrade GNU
14310*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14311*** your PATH or compiler configuration so that the native linker is
14312*** used, and then restart.
14313
14314_LT_EOF
14315 ;;
14316 *)
14317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14318 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14321 else
14322 ld_shlibs_F77=no
14323 fi
14324 ;;
14325 esac
14326 ;;
14327
14328 sunos4*)
14329 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14330 wlarc=
14331 hardcode_direct_F77=yes
14332 hardcode_shlibpath_var_F77=no
14333 ;;
14334
14335 *)
14336 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14339 else
14340 ld_shlibs_F77=no
14341 fi
14342 ;;
14343 esac
14344
14345 if test "$ld_shlibs_F77" = no; then
14346 runpath_var=
14347 hardcode_libdir_flag_spec_F77=
14348 export_dynamic_flag_spec_F77=
14349 whole_archive_flag_spec_F77=
14350 fi
14351 else
14352 # PORTME fill in a description of your system's linker (not GNU ld)
14353 case $host_os in
14354 aix3*)
14355 allow_undefined_flag_F77=unsupported
14356 always_export_symbols_F77=yes
14357 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14358 # Note: this linker hardcodes the directories in LIBPATH if there
14359 # are no directories specified by -L.
14360 hardcode_minus_L_F77=yes
14361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14362 # Neither direct hardcoding nor static linking is supported with a
14363 # broken collect2.
14364 hardcode_direct_F77=unsupported
14365 fi
14366 ;;
14367
14368 aix[4-9]*)
14369 if test "$host_cpu" = ia64; then
14370 # On IA64, the linker does run time linking by default, so we don't
14371 # have to do anything special.
14372 aix_use_runtimelinking=no
14373 exp_sym_flag='-Bexport'
14374 no_entry_flag=""
14375 else
14376 # If we're using GNU nm, then we don't want the "-C" option.
14377 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14378 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14379 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14380 else
14381 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14382 fi
14383 aix_use_runtimelinking=no
14384
14385 # Test if we are trying to use run time linking or normal
14386 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14387 # need to do runtime linking.
14388 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14389 for ld_flag in $LDFLAGS; do
14390 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14391 aix_use_runtimelinking=yes
14392 break
14393 fi
14394 done
14395 ;;
14396 esac
14397
14398 exp_sym_flag='-bexport'
14399 no_entry_flag='-bnoentry'
14400 fi
14401
14402 # When large executables or shared objects are built, AIX ld can
14403 # have problems creating the table of contents. If linking a library
14404 # or program results in "error TOC overflow" add -mminimal-toc to
14405 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14406 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14407
14408 archive_cmds_F77=''
14409 hardcode_direct_F77=yes
14410 hardcode_libdir_separator_F77=':'
14411 link_all_deplibs_F77=yes
14412
14413 if test "$GCC" = yes; then
14414 case $host_os in aix4.[012]|aix4.[012].*)
14415 # We only want to do this on AIX 4.2 and lower, the check
14416 # below for broken collect2 doesn't work under 4.3+
14417 collect2name=`${CC} -print-prog-name=collect2`
14418 if test -f "$collect2name" && \
14419 strings "$collect2name" | grep resolve_lib_name >/dev/null
14420 then
14421 # We have reworked collect2
14422 :
14423 else
14424 # We have old collect2
14425 hardcode_direct_F77=unsupported
14426 # It fails to find uninstalled libraries when the uninstalled
14427 # path is not listed in the libpath. Setting hardcode_minus_L
14428 # to unsupported forces relinking
14429 hardcode_minus_L_F77=yes
14430 hardcode_libdir_flag_spec_F77='-L$libdir'
14431 hardcode_libdir_separator_F77=
14432 fi
14433 ;;
14434 esac
14435 shared_flag='-shared'
14436 if test "$aix_use_runtimelinking" = yes; then
14437 shared_flag="$shared_flag "'${wl}-G'
14438 fi
14439 else
14440 # not using gcc
14441 if test "$host_cpu" = ia64; then
14442 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14443 # chokes on -Wl,-G. The following line is correct:
14444 shared_flag='-G'
14445 else
14446 if test "$aix_use_runtimelinking" = yes; then
14447 shared_flag='${wl}-G'
14448 else
14449 shared_flag='${wl}-bM:SRE'
14450 fi
14451 fi
14452 fi
14453
14454 # It seems that -bexpall does not export symbols beginning with
14455 # underscore (_), so it is better to generate a list of symbols to export.
14456 always_export_symbols_F77=yes
14457 if test "$aix_use_runtimelinking" = yes; then
14458 # Warning - without using the other runtime loading flags (-brtl),
14459 # -berok will link without error, but may produce a broken library.
14460 allow_undefined_flag_F77='-berok'
14461 # Determine the default libpath from the value encoded in an empty executable.
14462 cat > conftest.$ac_ext <<_ACEOF
14463 program main
14464
14465 end
14466_ACEOF
14467if ac_fn_f77_try_link "$LINENO"; then :
14468
14469lt_aix_libpath_sed='
14470 /Import File Strings/,/^$/ {
14471 /^0/ {
14472 s/^0 *\(.*\)$/\1/
14473 p
14474 }
14475 }'
14476aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14477# Check for a 64-bit object if we didn't find anything.
14478if test -z "$aix_libpath"; then
14479 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14480fi
14481fi
14482rm -f core conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
14484if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14485
14486 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14487 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14488 else
14489 if test "$host_cpu" = ia64; then
14490 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14491 allow_undefined_flag_F77="-z nodefs"
14492 archive_expsym_cmds_F77="\$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"
14493 else
14494 # Determine the default libpath from the value encoded in an empty executable.
14495 cat > conftest.$ac_ext <<_ACEOF
14496 program main
14497
14498 end
14499_ACEOF
14500if ac_fn_f77_try_link "$LINENO"; then :
14501
14502lt_aix_libpath_sed='
14503 /Import File Strings/,/^$/ {
14504 /^0/ {
14505 s/^0 *\(.*\)$/\1/
14506 p
14507 }
14508 }'
14509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14510# Check for a 64-bit object if we didn't find anything.
14511if test -z "$aix_libpath"; then
14512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14513fi
14514fi
14515rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext conftest.$ac_ext
14517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14518
14519 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14520 # Warning - without using the other run time loading flags,
14521 # -berok will link without error, but may produce a broken library.
14522 no_undefined_flag_F77=' ${wl}-bernotok'
14523 allow_undefined_flag_F77=' ${wl}-berok'
14524 # Exported symbols can be pulled into shared objects from archives
14525 whole_archive_flag_spec_F77='$convenience'
14526 archive_cmds_need_lc_F77=yes
14527 # This is similar to how AIX traditionally builds its shared libraries.
14528 archive_expsym_cmds_F77="\$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'
14529 fi
14530 fi
14531 ;;
14532
14533 amigaos*)
14534 archive_cmds_F77='$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)'
14535 hardcode_libdir_flag_spec_F77='-L$libdir'
14536 hardcode_minus_L_F77=yes
14537 # see comment about different semantics on the GNU ld section
14538 ld_shlibs_F77=no
14539 ;;
14540
14541 bsdi[45]*)
14542 export_dynamic_flag_spec_F77=-rdynamic
14543 ;;
14544
14545 cygwin* | mingw* | pw32*)
14546 # When not using gcc, we currently assume that we are using
14547 # Microsoft Visual C++.
14548 # hardcode_libdir_flag_spec is actually meaningless, as there is
14549 # no search path for DLLs.
14550 hardcode_libdir_flag_spec_F77=' '
14551 allow_undefined_flag_F77=unsupported
14552 # Tell ltmain to make .lib files, not .a files.
14553 libext=lib
14554 # Tell ltmain to make .dll files, not .so files.
14555 shrext_cmds=".dll"
14556 # FIXME: Setting linknames here is a bad hack.
14557 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14558 # The linker will automatically build a .lib file if we build a DLL.
14559 old_archive_From_new_cmds_F77='true'
14560 # FIXME: Should let the user specify the lib program.
14561 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14562 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14563 enable_shared_with_static_runtimes_F77=yes
14564 ;;
14565
14566 darwin* | rhapsody*)
14567 case $host_os in
14568 rhapsody* | darwin1.[012])
14569 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14570 ;;
14571 *) # Darwin 1.3 on
14572 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14573 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14574 else
14575 case ${MACOSX_DEPLOYMENT_TARGET} in
14576 10.[012])
14577 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14578 ;;
14579 10.*)
14580 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14581 ;;
14582 esac
14583 fi
14584 ;;
14585 esac
14586 archive_cmds_need_lc_F77=no
14587 hardcode_direct_F77=no
14588 hardcode_automatic_F77=yes
14589 hardcode_shlibpath_var_F77=unsupported
14590 whole_archive_flag_spec_F77=''
14591 link_all_deplibs_F77=yes
14592 if test "$GCC" = yes ; then
14593 output_verbose_link_cmd='echo'
14594 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14595 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14596 archive_expsym_cmds_F77="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}"
14597 module_expsym_cmds_F77="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}"
14598 else
14599 case $cc_basename in
14600 xlc*)
14601 output_verbose_link_cmd='echo'
14602 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14603 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14605 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14606 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14607 ;;
14608 *)
14609 ld_shlibs_F77=no
14610 ;;
14611 esac
14612 fi
14613 ;;
14614
14615 dgux*)
14616 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14617 hardcode_libdir_flag_spec_F77='-L$libdir'
14618 hardcode_shlibpath_var_F77=no
14619 ;;
14620
14621 freebsd1*)
14622 ld_shlibs_F77=no
14623 ;;
14624
14625 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14626 # support. Future versions do this automatically, but an explicit c++rt0.o
14627 # does not break anything, and helps significantly (at the cost of a little
14628 # extra space).
14629 freebsd2.2*)
14630 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14631 hardcode_libdir_flag_spec_F77='-R$libdir'
14632 hardcode_direct_F77=yes
14633 hardcode_shlibpath_var_F77=no
14634 ;;
14635
14636 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14637 freebsd2*)
14638 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14639 hardcode_direct_F77=yes
14640 hardcode_minus_L_F77=yes
14641 hardcode_shlibpath_var_F77=no
14642 ;;
14643
14644 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14645 freebsd* | dragonfly*)
14646 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14647 hardcode_libdir_flag_spec_F77='-R$libdir'
14648 hardcode_direct_F77=yes
14649 hardcode_shlibpath_var_F77=no
14650 ;;
14651
14652 hpux9*)
14653 if test "$GCC" = yes; then
14654 archive_cmds_F77='$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'
14655 else
14656 archive_cmds_F77='$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'
14657 fi
14658 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14659 hardcode_libdir_separator_F77=:
14660 hardcode_direct_F77=yes
14661
14662 # hardcode_minus_L: Not really in the search PATH,
14663 # but as the default location of the library.
14664 hardcode_minus_L_F77=yes
14665 export_dynamic_flag_spec_F77='${wl}-E'
14666 ;;
14667
14668 hpux10*)
14669 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14670 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14671 else
14672 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14673 fi
14674 if test "$with_gnu_ld" = no; then
14675 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14676 hardcode_libdir_separator_F77=:
14677
14678 hardcode_direct_F77=yes
14679 export_dynamic_flag_spec_F77='${wl}-E'
14680
14681 # hardcode_minus_L: Not really in the search PATH,
14682 # but as the default location of the library.
14683 hardcode_minus_L_F77=yes
14684 fi
14685 ;;
14686
14687 hpux11*)
14688 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14689 case $host_cpu in
14690 hppa*64*)
14691 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14692 ;;
14693 ia64*)
14694 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14695 ;;
14696 *)
14697 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14698 ;;
14699 esac
14700 else
14701 case $host_cpu in
14702 hppa*64*)
14703 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704 ;;
14705 ia64*)
14706 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14707 ;;
14708 *)
14709 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14710 ;;
14711 esac
14712 fi
14713 if test "$with_gnu_ld" = no; then
14714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14715 hardcode_libdir_separator_F77=:
14716
14717 case $host_cpu in
14718 hppa*64*|ia64*)
14719 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14720 hardcode_direct_F77=no
14721 hardcode_shlibpath_var_F77=no
14722 ;;
14723 *)
14724 hardcode_direct_F77=yes
14725 export_dynamic_flag_spec_F77='${wl}-E'
14726
14727 # hardcode_minus_L: Not really in the search PATH,
14728 # but as the default location of the library.
14729 hardcode_minus_L_F77=yes
14730 ;;
14731 esac
14732 fi
14733 ;;
14734
14735 irix5* | irix6* | nonstopux*)
14736 if test "$GCC" = yes; then
14737 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14738 else
14739 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14740 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14741 fi
14742 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14743 hardcode_libdir_separator_F77=:
14744 link_all_deplibs_F77=yes
14745 ;;
14746
14747 netbsd* | netbsdelf*-gnu)
14748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14749 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14750 else
14751 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14752 fi
14753 hardcode_libdir_flag_spec_F77='-R$libdir'
14754 hardcode_direct_F77=yes
14755 hardcode_shlibpath_var_F77=no
14756 ;;
14757
14758 newsos6)
14759 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_direct_F77=yes
14761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14762 hardcode_libdir_separator_F77=:
14763 hardcode_shlibpath_var_F77=no
14764 ;;
14765
14766 openbsd*)
14767 if test -f /usr/libexec/ld.so; then
14768 hardcode_direct_F77=yes
14769 hardcode_shlibpath_var_F77=no
14770 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14771 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14772 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14773 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14774 export_dynamic_flag_spec_F77='${wl}-E'
14775 else
14776 case $host_os in
14777 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14778 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14779 hardcode_libdir_flag_spec_F77='-R$libdir'
14780 ;;
14781 *)
14782 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14783 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14784 ;;
14785 esac
14786 fi
14787 else
14788 ld_shlibs_F77=no
14789 fi
14790 ;;
14791
14792 os2*)
14793 hardcode_libdir_flag_spec_F77='-L$libdir'
14794 hardcode_minus_L_F77=yes
14795 allow_undefined_flag_F77=unsupported
14796 archive_cmds_F77='$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'
14797 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14798 ;;
14799
14800 osf3*)
14801 if test "$GCC" = yes; then
14802 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14803 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14804 else
14805 allow_undefined_flag_F77=' -expect_unresolved \*'
14806 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14807 fi
14808 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14810 ;;
14811
14812 osf4* | osf5*) # as osf3* with the addition of -msym flag
14813 if test "$GCC" = yes; then
14814 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14815 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14816 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14817 else
14818 allow_undefined_flag_F77=' -expect_unresolved \*'
14819 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14820 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14821 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14822
14823 # Both c and cxx compiler support -rpath directly
14824 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14825 fi
14826 hardcode_libdir_separator_F77=:
14827 ;;
14828
14829 solaris*)
14830 no_undefined_flag_F77=' -z text'
14831 if test "$GCC" = yes; then
14832 wlarc='${wl}'
14833 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14835 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14836 else
14837 wlarc=''
14838 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14839 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14840 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14841 fi
14842 hardcode_libdir_flag_spec_F77='-R$libdir'
14843 hardcode_shlibpath_var_F77=no
14844 case $host_os in
14845 solaris2.[0-5] | solaris2.[0-5].*) ;;
14846 *)
14847 # The compiler driver will combine and reorder linker options,
14848 # but understands `-z linker_flag'. GCC discards it without `$wl',
14849 # but is careful enough not to reorder.
14850 # Supported since Solaris 2.6 (maybe 2.5.1?)
14851 if test "$GCC" = yes; then
14852 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14853 else
14854 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14855 fi
14856 ;;
14857 esac
14858 link_all_deplibs_F77=yes
14859 ;;
14860
14861 sunos4*)
14862 if test "x$host_vendor" = xsequent; then
14863 # Use $CC to link under sequent, because it throws in some extra .o
14864 # files that make .init and .fini sections work.
14865 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14866 else
14867 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14868 fi
14869 hardcode_libdir_flag_spec_F77='-L$libdir'
14870 hardcode_direct_F77=yes
14871 hardcode_minus_L_F77=yes
14872 hardcode_shlibpath_var_F77=no
14873 ;;
14874
14875 sysv4)
14876 case $host_vendor in
14877 sni)
14878 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14879 hardcode_direct_F77=yes # is this really true???
14880 ;;
14881 siemens)
14882 ## LD is ld it makes a PLAMLIB
14883 ## CC just makes a GrossModule.
14884 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14885 reload_cmds_F77='$CC -r -o $output$reload_objs'
14886 hardcode_direct_F77=no
14887 ;;
14888 motorola)
14889 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14891 ;;
14892 esac
14893 runpath_var='LD_RUN_PATH'
14894 hardcode_shlibpath_var_F77=no
14895 ;;
14896
14897 sysv4.3*)
14898 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14899 hardcode_shlibpath_var_F77=no
14900 export_dynamic_flag_spec_F77='-Bexport'
14901 ;;
14902
14903 sysv4*MP*)
14904 if test -d /usr/nec; then
14905 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14906 hardcode_shlibpath_var_F77=no
14907 runpath_var=LD_RUN_PATH
14908 hardcode_runpath_var=yes
14909 ld_shlibs_F77=yes
14910 fi
14911 ;;
14912
14913 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14914 no_undefined_flag_F77='${wl}-z,text'
14915 archive_cmds_need_lc_F77=no
14916 hardcode_shlibpath_var_F77=no
14917 runpath_var='LD_RUN_PATH'
14918
14919 if test "$GCC" = yes; then
14920 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14921 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14922 else
14923 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14925 fi
14926 ;;
14927
14928 sysv5* | sco3.2v5* | sco5v6*)
14929 # Note: We can NOT use -z defs as we might desire, because we do not
14930 # link with -lc, and that would cause any symbols used from libc to
14931 # always be unresolved, which means just about no library would
14932 # ever link correctly. If we're not using GNU ld we use -z text
14933 # though, which does catch some bad symbols but isn't as heavy-handed
14934 # as -z defs.
14935 no_undefined_flag_F77='${wl}-z,text'
14936 allow_undefined_flag_F77='${wl}-z,nodefs'
14937 archive_cmds_need_lc_F77=no
14938 hardcode_shlibpath_var_F77=no
14939 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14940 hardcode_libdir_separator_F77=':'
14941 link_all_deplibs_F77=yes
14942 export_dynamic_flag_spec_F77='${wl}-Bexport'
14943 runpath_var='LD_RUN_PATH'
14944
14945 if test "$GCC" = yes; then
14946 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14947 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14948 else
14949 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14950 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14951 fi
14952 ;;
14953
14954 uts4*)
14955 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14956 hardcode_libdir_flag_spec_F77='-L$libdir'
14957 hardcode_shlibpath_var_F77=no
14958 ;;
14959
14960 *)
14961 ld_shlibs_F77=no
14962 ;;
14963 esac
14964 fi
14965
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14967$as_echo "$ld_shlibs_F77" >&6; }
14968test "$ld_shlibs_F77" = no && can_build_shared=no
14969
14970#
14971# Do we need to explicitly link libc?
14972#
14973case "x$archive_cmds_need_lc_F77" in
14974x|xyes)
14975 # Assume -lc should be added
14976 archive_cmds_need_lc_F77=yes
14977
14978 if test "$enable_shared" = yes && test "$GCC" = yes; then
14979 case $archive_cmds_F77 in
14980 *'~'*)
14981 # FIXME: we may have to deal with multi-command sequences.
14982 ;;
14983 '$CC '*)
14984 # Test whether the compiler implicitly links with -lc since on some
14985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14986 # to ld, don't add -lc before -lgcc.
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14988$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14989 $rm conftest*
14990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14991
14992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14993 (eval $ac_compile) 2>&5
14994 ac_status=$?
14995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14996 test $ac_status = 0; } 2>conftest.err; then
14997 soname=conftest
14998 lib=conftest
14999 libobjs=conftest.$ac_objext
15000 deplibs=
15001 wl=$lt_prog_compiler_wl_F77
15002 pic_flag=$lt_prog_compiler_pic_F77
15003 compiler_flags=-v
15004 linker_flags=-v
15005 verstring=
15006 output_objdir=.
15007 libname=conftest
15008 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15009 allow_undefined_flag_F77=
15010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15011 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15012 ac_status=$?
15013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15014 test $ac_status = 0; }
15015 then
15016 archive_cmds_need_lc_F77=no
15017 else
15018 archive_cmds_need_lc_F77=yes
15019 fi
15020 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15021 else
15022 cat conftest.err 1>&5
15023 fi
15024 $rm conftest*
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15026$as_echo "$archive_cmds_need_lc_F77" >&6; }
15027 ;;
15028 esac
15029 fi
15030 ;;
15031esac
15032
15033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15034$as_echo_n "checking dynamic linker characteristics... " >&6; }
15035library_names_spec=
15036libname_spec='lib$name'
15037soname_spec=
15038shrext_cmds=".so"
15039postinstall_cmds=
15040postuninstall_cmds=
15041finish_cmds=
15042finish_eval=
15043shlibpath_var=
15044shlibpath_overrides_runpath=unknown
15045version_type=none
15046dynamic_linker="$host_os ld.so"
15047sys_lib_dlsearch_path_spec="/lib /usr/lib"
15048
15049need_lib_prefix=unknown
15050hardcode_into_libs=no
15051
15052# when you set need_version to no, make sure it does not cause -set_version
15053# flags to be left without arguments
15054need_version=unknown
15055
15056case $host_os in
15057aix3*)
15058 version_type=linux
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15060 shlibpath_var=LIBPATH
15061
15062 # AIX 3 has no versioning support, so we append a major version to the name.
15063 soname_spec='${libname}${release}${shared_ext}$major'
15064 ;;
15065
15066aix[4-9]*)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 hardcode_into_libs=yes
15071 if test "$host_cpu" = ia64; then
15072 # AIX 5 supports IA64
15073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 else
15076 # With GCC up to 2.95.x, collect2 would create an import file
15077 # for dependence libraries. The import file would start with
15078 # the line `#! .'. This would cause the generated library to
15079 # depend on `.', always an invalid library. This was fixed in
15080 # development snapshots of GCC prior to 3.0.
15081 case $host_os in
15082 aix4 | aix4.[01] | aix4.[01].*)
15083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15084 echo ' yes '
15085 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15086 :
15087 else
15088 can_build_shared=no
15089 fi
15090 ;;
15091 esac
15092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15093 # soname into executable. Probably we can add versioning support to
15094 # collect2, so additional links can be useful in future.
15095 if test "$aix_use_runtimelinking" = yes; then
15096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15097 # instead of lib<name>.a to let people know that these are not
15098 # typical AIX shared libraries.
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100 else
15101 # We preserve .a as extension for shared libraries through AIX4.2
15102 # and later when we are not doing run time linking.
15103 library_names_spec='${libname}${release}.a $libname.a'
15104 soname_spec='${libname}${release}${shared_ext}$major'
15105 fi
15106 shlibpath_var=LIBPATH
15107 fi
15108 ;;
15109
15110amigaos*)
15111 library_names_spec='$libname.ixlibrary $libname.a'
15112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15113 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'
15114 ;;
15115
15116beos*)
15117 library_names_spec='${libname}${shared_ext}'
15118 dynamic_linker="$host_os ld.so"
15119 shlibpath_var=LIBRARY_PATH
15120 ;;
15121
15122bsdi[45]*)
15123 version_type=linux
15124 need_version=no
15125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15126 soname_spec='${libname}${release}${shared_ext}$major'
15127 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15128 shlibpath_var=LD_LIBRARY_PATH
15129 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15130 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15131 # the default ld.so.conf also contains /usr/contrib/lib and
15132 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15133 # libtool to hard-code these into programs
15134 ;;
15135
15136cygwin* | mingw* | pw32*)
15137 version_type=windows
15138 shrext_cmds=".dll"
15139 need_version=no
15140 need_lib_prefix=no
15141
15142 case $GCC,$host_os in
15143 yes,cygwin* | yes,mingw* | yes,pw32*)
15144 library_names_spec='$libname.dll.a'
15145 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15146 postinstall_cmds='base_file=`basename \${file}`~
15147 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15148 dldir=$destdir/`dirname \$dlpath`~
15149 test -d \$dldir || mkdir -p \$dldir~
15150 $install_prog $dir/$dlname \$dldir/$dlname~
15151 chmod a+x \$dldir/$dlname'
15152 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15153 dlpath=$dir/\$dldll~
15154 $rm \$dlpath'
15155 shlibpath_overrides_runpath=yes
15156
15157 case $host_os in
15158 cygwin*)
15159 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15161 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15162 ;;
15163 mingw*)
15164 # MinGW DLLs use traditional 'lib' prefix
15165 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15166 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15167 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15168 # It is most probably a Windows format PATH printed by
15169 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15170 # path with ; separators, and with drive letters. We can handle the
15171 # drive letters (cygwin fileutils understands them), so leave them,
15172 # especially as we might pass files found there to a mingw objdump,
15173 # which wouldn't understand a cygwinified path. Ahh.
15174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15175 else
15176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15177 fi
15178 ;;
15179 pw32*)
15180 # pw32 DLLs use 'pw' prefix rather than 'lib'
15181 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15182 ;;
15183 esac
15184 ;;
15185
15186 *)
15187 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15188 ;;
15189 esac
15190 dynamic_linker='Win32 ld.exe'
15191 # FIXME: first we should search . and the directory the executable is in
15192 shlibpath_var=PATH
15193 ;;
15194
15195darwin* | rhapsody*)
15196 dynamic_linker="$host_os dyld"
15197 version_type=darwin
15198 need_lib_prefix=no
15199 need_version=no
15200 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15201 soname_spec='${libname}${release}${major}$shared_ext'
15202 shlibpath_overrides_runpath=yes
15203 shlibpath_var=DYLD_LIBRARY_PATH
15204 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15205
15206 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15207 ;;
15208
15209dgux*)
15210 version_type=linux
15211 need_lib_prefix=no
15212 need_version=no
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 ;;
15217
15218freebsd1*)
15219 dynamic_linker=no
15220 ;;
15221
15222freebsd* | dragonfly*)
15223 # DragonFly does not have aout. When/if they implement a new
15224 # versioning mechanism, adjust this.
15225 if test -x /usr/bin/objformat; then
15226 objformat=`/usr/bin/objformat`
15227 else
15228 case $host_os in
15229 freebsd[123]*) objformat=aout ;;
15230 *) objformat=elf ;;
15231 esac
15232 fi
15233 version_type=freebsd-$objformat
15234 case $version_type in
15235 freebsd-elf*)
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15237 need_version=no
15238 need_lib_prefix=no
15239 ;;
15240 freebsd-*)
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15242 need_version=yes
15243 ;;
15244 esac
15245 shlibpath_var=LD_LIBRARY_PATH
15246 case $host_os in
15247 freebsd2*)
15248 shlibpath_overrides_runpath=yes
15249 ;;
15250 freebsd3.[01]* | freebsdelf3.[01]*)
15251 shlibpath_overrides_runpath=yes
15252 hardcode_into_libs=yes
15253 ;;
15254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15256 shlibpath_overrides_runpath=no
15257 hardcode_into_libs=yes
15258 ;;
15259 *) # from 4.6 on, and DragonFly
15260 shlibpath_overrides_runpath=yes
15261 hardcode_into_libs=yes
15262 ;;
15263 esac
15264 ;;
15265
15266gnu*)
15267 version_type=linux
15268 need_lib_prefix=no
15269 need_version=no
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 hardcode_into_libs=yes
15274 ;;
15275
15276hpux9* | hpux10* | hpux11*)
15277 # Give a soname corresponding to the major version so that dld.sl refuses to
15278 # link against other versions.
15279 version_type=sunos
15280 need_lib_prefix=no
15281 need_version=no
15282 case $host_cpu in
15283 ia64*)
15284 shrext_cmds='.so'
15285 hardcode_into_libs=yes
15286 dynamic_linker="$host_os dld.so"
15287 shlibpath_var=LD_LIBRARY_PATH
15288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 if test "X$HPUX_IA64_MODE" = X32; then
15292 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15293 else
15294 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15295 fi
15296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15297 ;;
15298 hppa*64*)
15299 shrext_cmds='.sl'
15300 hardcode_into_libs=yes
15301 dynamic_linker="$host_os dld.sl"
15302 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15308 ;;
15309 *)
15310 shrext_cmds='.sl'
15311 dynamic_linker="$host_os dld.sl"
15312 shlibpath_var=SHLIB_PATH
15313 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 ;;
15317 esac
15318 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15319 postinstall_cmds='chmod 555 $lib'
15320 ;;
15321
15322interix[3-9]*)
15323 version_type=linux
15324 need_lib_prefix=no
15325 need_version=no
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15329 shlibpath_var=LD_LIBRARY_PATH
15330 shlibpath_overrides_runpath=no
15331 hardcode_into_libs=yes
15332 ;;
15333
15334irix5* | irix6* | nonstopux*)
15335 case $host_os in
15336 nonstopux*) version_type=nonstopux ;;
15337 *)
15338 if test "$lt_cv_prog_gnu_ld" = yes; then
15339 version_type=linux
15340 else
15341 version_type=irix
15342 fi ;;
15343 esac
15344 need_lib_prefix=no
15345 need_version=no
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15348 case $host_os in
15349 irix5* | nonstopux*)
15350 libsuff= shlibsuff=
15351 ;;
15352 *)
15353 case $LD in # libtool.m4 will add one of these switches to LD
15354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15355 libsuff= shlibsuff= libmagic=32-bit;;
15356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15357 libsuff=32 shlibsuff=N32 libmagic=N32;;
15358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15360 *) libsuff= shlibsuff= libmagic=never-match;;
15361 esac
15362 ;;
15363 esac
15364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15365 shlibpath_overrides_runpath=no
15366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15368 hardcode_into_libs=yes
15369 ;;
15370
15371# No shared lib support for Linux oldld, aout, or coff.
15372linux*oldld* | linux*aout* | linux*coff*)
15373 dynamic_linker=no
15374 ;;
15375
15376# This must be Linux ELF.
15377linux* | k*bsd*-gnu)
15378 version_type=linux
15379 need_lib_prefix=no
15380 need_version=no
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15384 shlibpath_var=LD_LIBRARY_PATH
15385 shlibpath_overrides_runpath=no
15386 # This implies no fast_install, which is unacceptable.
15387 # Some rework will be needed to allow for fast_install
15388 # before this can be enabled.
15389 hardcode_into_libs=yes
15390
15391 # Append ld.so.conf contents to the search path
15392 if test -f /etc/ld.so.conf; then
15393 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' ' '`
15394 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15395 fi
15396
15397 # We used to test for /lib/ld.so.1 and disable shared libraries on
15398 # powerpc, because MkLinux only supported shared libraries with the
15399 # GNU dynamic linker. Since this was broken with cross compilers,
15400 # most powerpc-linux boxes support dynamic linking these days and
15401 # people can always --disable-shared, the test was removed, and we
15402 # assume the GNU/Linux dynamic linker is in use.
15403 dynamic_linker='GNU/Linux ld.so'
15404 ;;
15405
15406netbsdelf*-gnu)
15407 version_type=linux
15408 need_lib_prefix=no
15409 need_version=no
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=no
15414 hardcode_into_libs=yes
15415 dynamic_linker='NetBSD ld.elf_so'
15416 ;;
15417
15418netbsd*)
15419 version_type=sunos
15420 need_lib_prefix=no
15421 need_version=no
15422 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15424 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15425 dynamic_linker='NetBSD (a.out) ld.so'
15426 else
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 dynamic_linker='NetBSD ld.elf_so'
15430 fi
15431 shlibpath_var=LD_LIBRARY_PATH
15432 shlibpath_overrides_runpath=yes
15433 hardcode_into_libs=yes
15434 ;;
15435
15436newsos6)
15437 version_type=linux
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes
15441 ;;
15442
15443nto-qnx*)
15444 version_type=linux
15445 need_lib_prefix=no
15446 need_version=no
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=yes
15451 ;;
15452
15453openbsd*)
15454 version_type=sunos
15455 sys_lib_dlsearch_path_spec="/usr/lib"
15456 need_lib_prefix=no
15457 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15458 case $host_os in
15459 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15460 *) need_version=no ;;
15461 esac
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15466 case $host_os in
15467 openbsd2.[89] | openbsd2.[89].*)
15468 shlibpath_overrides_runpath=no
15469 ;;
15470 *)
15471 shlibpath_overrides_runpath=yes
15472 ;;
15473 esac
15474 else
15475 shlibpath_overrides_runpath=yes
15476 fi
15477 ;;
15478
15479os2*)
15480 libname_spec='$name'
15481 shrext_cmds=".dll"
15482 need_lib_prefix=no
15483 library_names_spec='$libname${shared_ext} $libname.a'
15484 dynamic_linker='OS/2 ld.exe'
15485 shlibpath_var=LIBPATH
15486 ;;
15487
15488osf3* | osf4* | osf5*)
15489 version_type=osf
15490 need_lib_prefix=no
15491 need_version=no
15492 soname_spec='${libname}${release}${shared_ext}$major'
15493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15494 shlibpath_var=LD_LIBRARY_PATH
15495 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15496 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15497 ;;
15498
15499rdos*)
15500 dynamic_linker=no
15501 ;;
15502
15503solaris*)
15504 version_type=linux
15505 need_lib_prefix=no
15506 need_version=no
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15508 soname_spec='${libname}${release}${shared_ext}$major'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 shlibpath_overrides_runpath=yes
15511 hardcode_into_libs=yes
15512 # ldd complains unless libraries are executable
15513 postinstall_cmds='chmod +x $lib'
15514 ;;
15515
15516sunos4*)
15517 version_type=sunos
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15519 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15520 shlibpath_var=LD_LIBRARY_PATH
15521 shlibpath_overrides_runpath=yes
15522 if test "$with_gnu_ld" = yes; then
15523 need_lib_prefix=no
15524 fi
15525 need_version=yes
15526 ;;
15527
15528sysv4 | sysv4.3*)
15529 version_type=linux
15530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531 soname_spec='${libname}${release}${shared_ext}$major'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 case $host_vendor in
15534 sni)
15535 shlibpath_overrides_runpath=no
15536 need_lib_prefix=no
15537 export_dynamic_flag_spec='${wl}-Blargedynsym'
15538 runpath_var=LD_RUN_PATH
15539 ;;
15540 siemens)
15541 need_lib_prefix=no
15542 ;;
15543 motorola)
15544 need_lib_prefix=no
15545 need_version=no
15546 shlibpath_overrides_runpath=no
15547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15548 ;;
15549 esac
15550 ;;
15551
15552sysv4*MP*)
15553 if test -d /usr/nec ;then
15554 version_type=linux
15555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15556 soname_spec='$libname${shared_ext}.$major'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 fi
15559 ;;
15560
15561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15562 version_type=freebsd-elf
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 hardcode_into_libs=yes
15569 if test "$with_gnu_ld" = yes; then
15570 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15571 shlibpath_overrides_runpath=no
15572 else
15573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15574 shlibpath_overrides_runpath=yes
15575 case $host_os in
15576 sco3.2v5*)
15577 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15578 ;;
15579 esac
15580 fi
15581 sys_lib_dlsearch_path_spec='/usr/lib'
15582 ;;
15583
15584uts4*)
15585 version_type=linux
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 ;;
15590
15591*)
15592 dynamic_linker=no
15593 ;;
15594esac
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15596$as_echo "$dynamic_linker" >&6; }
15597test "$dynamic_linker" = no && can_build_shared=no
15598
15599if ${lt_cv_sys_lib_search_path_spec+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601else
15602 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15603fi
15604
15605sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15606if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
15607 $as_echo_n "(cached) " >&6
15608else
15609 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15610fi
15611
15612sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15613
15614variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15615if test "$GCC" = yes; then
15616 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15617fi
15618
15619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15620$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15621hardcode_action_F77=
15622if test -n "$hardcode_libdir_flag_spec_F77" || \
15623 test -n "$runpath_var_F77" || \
15624 test "X$hardcode_automatic_F77" = "Xyes" ; then
15625
15626 # We can hardcode non-existant directories.
15627 if test "$hardcode_direct_F77" != no &&
15628 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15629 # have to relink, otherwise we might link with an installed library
15630 # when we should be linking with a yet-to-be-installed one
15631 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15632 test "$hardcode_minus_L_F77" != no; then
15633 # Linking always hardcodes the temporary library directory.
15634 hardcode_action_F77=relink
15635 else
15636 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15637 hardcode_action_F77=immediate
15638 fi
15639else
15640 # We cannot hardcode anything, or else we can only hardcode existing
15641 # directories.
15642 hardcode_action_F77=unsupported
15643fi
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15645$as_echo "$hardcode_action_F77" >&6; }
15646
15647if test "$hardcode_action_F77" = relink; then
15648 # Fast installation is not supported
15649 enable_fast_install=no
15650elif test "$shlibpath_overrides_runpath" = yes ||
15651 test "$enable_shared" = no; then
15652 # Fast installation is not necessary
15653 enable_fast_install=needless
15654fi
15655
15656
15657# The else clause should only fire when bootstrapping the
15658# libtool distribution, otherwise you forgot to ship ltmain.sh
15659# with your package, and you will get complaints that there are
15660# no rules to generate ltmain.sh.
15661if test -f "$ltmain"; then
15662 # See if we are running on zsh, and set the options which allow our commands through
15663 # without removal of \ escapes.
15664 if test -n "${ZSH_VERSION+set}" ; then
15665 setopt NO_GLOB_SUBST
15666 fi
15667 # Now quote all the things that may contain metacharacters while being
15668 # careful not to overquote the AC_SUBSTed values. We take copies of the
15669 # variables and quote the copies for generation of the libtool script.
15670 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15671 SED SHELL STRIP \
15672 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15673 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15674 deplibs_check_method reload_flag reload_cmds need_locks \
15675 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15676 lt_cv_sys_global_symbol_to_c_name_address \
15677 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15678 old_postinstall_cmds old_postuninstall_cmds \
15679 compiler_F77 \
15680 CC_F77 \
15681 LD_F77 \
15682 lt_prog_compiler_wl_F77 \
15683 lt_prog_compiler_pic_F77 \
15684 lt_prog_compiler_static_F77 \
15685 lt_prog_compiler_no_builtin_flag_F77 \
15686 export_dynamic_flag_spec_F77 \
15687 thread_safe_flag_spec_F77 \
15688 whole_archive_flag_spec_F77 \
15689 enable_shared_with_static_runtimes_F77 \
15690 old_archive_cmds_F77 \
15691 old_archive_from_new_cmds_F77 \
15692 predep_objects_F77 \
15693 postdep_objects_F77 \
15694 predeps_F77 \
15695 postdeps_F77 \
15696 compiler_lib_search_path_F77 \
15697 compiler_lib_search_dirs_F77 \
15698 archive_cmds_F77 \
15699 archive_expsym_cmds_F77 \
15700 postinstall_cmds_F77 \
15701 postuninstall_cmds_F77 \
15702 old_archive_from_expsyms_cmds_F77 \
15703 allow_undefined_flag_F77 \
15704 no_undefined_flag_F77 \
15705 export_symbols_cmds_F77 \
15706 hardcode_libdir_flag_spec_F77 \
15707 hardcode_libdir_flag_spec_ld_F77 \
15708 hardcode_libdir_separator_F77 \
15709 hardcode_automatic_F77 \
15710 module_cmds_F77 \
15711 module_expsym_cmds_F77 \
15712 lt_cv_prog_compiler_c_o_F77 \
15713 fix_srcfile_path_F77 \
15714 exclude_expsyms_F77 \
15715 include_expsyms_F77; do
15716
15717 case $var in
15718 old_archive_cmds_F77 | \
15719 old_archive_from_new_cmds_F77 | \
15720 archive_cmds_F77 | \
15721 archive_expsym_cmds_F77 | \
15722 module_cmds_F77 | \
15723 module_expsym_cmds_F77 | \
15724 old_archive_from_expsyms_cmds_F77 | \
15725 export_symbols_cmds_F77 | \
15726 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15727 postinstall_cmds | postuninstall_cmds | \
15728 old_postinstall_cmds | old_postuninstall_cmds | \
15729 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15730 # Double-quote double-evaled strings.
15731 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15732 ;;
15733 *)
15734 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15735 ;;
15736 esac
15737 done
15738
15739 case $lt_echo in
15740 *'\$0 --fallback-echo"')
15741 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15742 ;;
15743 esac
15744
15745cfgfile="$ofile"
15746
15747 cat <<__EOF__ >> "$cfgfile"
15748# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15749
15750# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15751
15752# Shell to use when invoking shell scripts.
15753SHELL=$lt_SHELL
15754
15755# Whether or not to build shared libraries.
15756build_libtool_libs=$enable_shared
15757
15758# Whether or not to build static libraries.
15759build_old_libs=$enable_static
15760
15761# Whether or not to add -lc for building shared libraries.
15762build_libtool_need_lc=$archive_cmds_need_lc_F77
15763
15764# Whether or not to disallow shared libs when runtime libs are static
15765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15766
15767# Whether or not to optimize for fast installation.
15768fast_install=$enable_fast_install
15769
15770# The host system.
15771host_alias=$host_alias
15772host=$host
15773host_os=$host_os
15774
15775# The build system.
15776build_alias=$build_alias
15777build=$build
15778build_os=$build_os
15779
15780# An echo program that does not interpret backslashes.
15781echo=$lt_echo
15782
15783# The archiver.
15784AR=$lt_AR
15785AR_FLAGS=$lt_AR_FLAGS
15786
15787# A C compiler.
15788LTCC=$lt_LTCC
15789
15790# LTCC compiler flags.
15791LTCFLAGS=$lt_LTCFLAGS
15792
15793# A language-specific compiler.
15794CC=$lt_compiler_F77
15795
15796# Is the compiler the GNU C compiler?
15797with_gcc=$GCC_F77
15798
15799# An ERE matcher.
15800EGREP=$lt_EGREP
15801
15802# The linker used to build libraries.
15803LD=$lt_LD_F77
15804
15805# Whether we need hard or soft links.
15806LN_S=$lt_LN_S
15807
15808# A BSD-compatible nm program.
15809NM=$lt_NM
15810
15811# A symbol stripping program
15812STRIP=$lt_STRIP
15813
15814# Used to examine libraries when file_magic_cmd begins "file"
15815MAGIC_CMD=$MAGIC_CMD
15816
15817# Used on cygwin: DLL creation program.
15818DLLTOOL="$DLLTOOL"
15819
15820# Used on cygwin: object dumper.
15821OBJDUMP="$OBJDUMP"
15822
15823# Used on cygwin: assembler.
15824AS="$AS"
15825
15826# The name of the directory that contains temporary libtool files.
15827objdir=$objdir
15828
15829# How to create reloadable object files.
15830reload_flag=$lt_reload_flag
15831reload_cmds=$lt_reload_cmds
15832
15833# How to pass a linker flag through the compiler.
15834wl=$lt_lt_prog_compiler_wl_F77
15835
15836# Object file suffix (normally "o").
15837objext="$ac_objext"
15838
15839# Old archive suffix (normally "a").
15840libext="$libext"
15841
15842# Shared library suffix (normally ".so").
15843shrext_cmds='$shrext_cmds'
15844
15845# Executable file suffix (normally "").
15846exeext="$exeext"
15847
15848# Additional compiler flags for building library objects.
15849pic_flag=$lt_lt_prog_compiler_pic_F77
15850pic_mode=$pic_mode
15851
15852# What is the maximum length of a command?
15853max_cmd_len=$lt_cv_sys_max_cmd_len
15854
15855# Does compiler simultaneously support -c and -o options?
15856compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15857
15858# Must we lock files when doing compilation?
15859need_locks=$lt_need_locks
15860
15861# Do we need the lib prefix for modules?
15862need_lib_prefix=$need_lib_prefix
15863
15864# Do we need a version for libraries?
15865need_version=$need_version
15866
15867# Whether dlopen is supported.
15868dlopen_support=$enable_dlopen
15869
15870# Whether dlopen of programs is supported.
15871dlopen_self=$enable_dlopen_self
15872
15873# Whether dlopen of statically linked programs is supported.
15874dlopen_self_static=$enable_dlopen_self_static
15875
15876# Compiler flag to prevent dynamic linking.
15877link_static_flag=$lt_lt_prog_compiler_static_F77
15878
15879# Compiler flag to turn off builtin functions.
15880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15881
15882# Compiler flag to allow reflexive dlopens.
15883export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15884
15885# Compiler flag to generate shared objects directly from archives.
15886whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15887
15888# Compiler flag to generate thread-safe objects.
15889thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15890
15891# Library versioning type.
15892version_type=$version_type
15893
15894# Format of library name prefix.
15895libname_spec=$lt_libname_spec
15896
15897# List of archive names. First name is the real one, the rest are links.
15898# The last name is the one that the linker finds with -lNAME.
15899library_names_spec=$lt_library_names_spec
15900
15901# The coded name of the library, if different from the real name.
15902soname_spec=$lt_soname_spec
15903
15904# Commands used to build and install an old-style archive.
15905RANLIB=$lt_RANLIB
15906old_archive_cmds=$lt_old_archive_cmds_F77
15907old_postinstall_cmds=$lt_old_postinstall_cmds
15908old_postuninstall_cmds=$lt_old_postuninstall_cmds
15909
15910# Create an old-style archive from a shared archive.
15911old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15912
15913# Create a temporary old-style archive to link instead of a shared archive.
15914old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15915
15916# Commands used to build and install a shared archive.
15917archive_cmds=$lt_archive_cmds_F77
15918archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15919postinstall_cmds=$lt_postinstall_cmds
15920postuninstall_cmds=$lt_postuninstall_cmds
15921
15922# Commands used to build a loadable module (assumed same as above if empty)
15923module_cmds=$lt_module_cmds_F77
15924module_expsym_cmds=$lt_module_expsym_cmds_F77
15925
15926# Commands to strip libraries.
15927old_striplib=$lt_old_striplib
15928striplib=$lt_striplib
15929
15930# Dependencies to place before the objects being linked to create a
15931# shared library.
15932predep_objects=$lt_predep_objects_F77
15933
15934# Dependencies to place after the objects being linked to create a
15935# shared library.
15936postdep_objects=$lt_postdep_objects_F77
15937
15938# Dependencies to place before the objects being linked to create a
15939# shared library.
15940predeps=$lt_predeps_F77
15941
15942# Dependencies to place after the objects being linked to create a
15943# shared library.
15944postdeps=$lt_postdeps_F77
15945
15946# The directories searched by this compiler when creating a shared
15947# library
15948compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15949
15950# The library search path used internally by the compiler when linking
15951# a shared library.
15952compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15953
15954# Method to check whether dependent libraries are shared objects.
15955deplibs_check_method=$lt_deplibs_check_method
15956
15957# Command to use when deplibs_check_method == file_magic.
15958file_magic_cmd=$lt_file_magic_cmd
15959
15960# Flag that allows shared libraries with undefined symbols to be built.
15961allow_undefined_flag=$lt_allow_undefined_flag_F77
15962
15963# Flag that forces no undefined symbols.
15964no_undefined_flag=$lt_no_undefined_flag_F77
15965
15966# Commands used to finish a libtool library installation in a directory.
15967finish_cmds=$lt_finish_cmds
15968
15969# Same as above, but a single script fragment to be evaled but not shown.
15970finish_eval=$lt_finish_eval
15971
15972# Take the output of nm and produce a listing of raw symbols and C names.
15973global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15974
15975# Transform the output of nm in a proper C declaration
15976global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15977
15978# Transform the output of nm in a C name address pair
15979global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15980
15981# This is the shared library runtime path variable.
15982runpath_var=$runpath_var
15983
15984# This is the shared library path variable.
15985shlibpath_var=$shlibpath_var
15986
15987# Is shlibpath searched before the hard-coded library search path?
15988shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15989
15990# How to hardcode a shared library path into an executable.
15991hardcode_action=$hardcode_action_F77
15992
15993# Whether we should hardcode library paths into libraries.
15994hardcode_into_libs=$hardcode_into_libs
15995
15996# Flag to hardcode \$libdir into a binary during linking.
15997# This must work even if \$libdir does not exist.
15998hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15999
16000# If ld is used when linking, flag to hardcode \$libdir into
16001# a binary during linking. This must work even if \$libdir does
16002# not exist.
16003hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16004
16005# Whether we need a single -rpath flag with a separated argument.
16006hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16007
16008# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16009# resulting binary.
16010hardcode_direct=$hardcode_direct_F77
16011
16012# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16013# resulting binary.
16014hardcode_minus_L=$hardcode_minus_L_F77
16015
16016# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16017# the resulting binary.
16018hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16019
16020# Set to yes if building a shared library automatically hardcodes DIR into the library
16021# and all subsequent libraries and executables linked against it.
16022hardcode_automatic=$hardcode_automatic_F77
16023
16024# Variables whose values should be saved in libtool wrapper scripts and
16025# restored at relink time.
16026variables_saved_for_relink="$variables_saved_for_relink"
16027
16028# Whether libtool must link a program against all its dependency libraries.
16029link_all_deplibs=$link_all_deplibs_F77
16030
16031# Compile-time system search path for libraries
16032sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16033
16034# Run-time system search path for libraries
16035sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16036
16037# Fix the shell variable \$srcfile for the compiler.
16038fix_srcfile_path=$lt_fix_srcfile_path
16039
16040# Set to yes if exported symbols are required.
16041always_export_symbols=$always_export_symbols_F77
16042
16043# The commands to list exported symbols.
16044export_symbols_cmds=$lt_export_symbols_cmds_F77
16045
16046# The commands to extract the exported symbol list from a shared archive.
16047extract_expsyms_cmds=$lt_extract_expsyms_cmds
16048
16049# Symbols that should not be listed in the preloaded symbols.
16050exclude_expsyms=$lt_exclude_expsyms_F77
16051
16052# Symbols that must always be exported.
16053include_expsyms=$lt_include_expsyms_F77
16054
16055# ### END LIBTOOL TAG CONFIG: $tagname
16056
16057__EOF__
16058
16059
16060else
16061 # If there is no Makefile yet, we rely on a make rule to execute
16062 # `config.status --recheck' to rerun these tests and create the
16063 # libtool script then.
16064 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16065 if test -f "$ltmain_in"; then
16066 test -f Makefile && make "$ltmain"
16067 fi
16068fi
16069
16070
16071ac_ext=c
16072ac_cpp='$CPP $CPPFLAGS'
16073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16075ac_compiler_gnu=$ac_cv_c_compiler_gnu
16076
16077CC="$lt_save_CC"
16078
16079 else
16080 tagname=""
16081 fi
16082 ;;
16083
16084 GCJ)
16085 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16086
16087
16088# Source file extension for Java test sources.
16089ac_ext=java
16090
16091# Object file extension for compiled Java test sources.
16092objext=o
16093objext_GCJ=$objext
16094
16095# Code to be used in simple compile tests
16096lt_simple_compile_test_code="class foo {}"
16097
16098# Code to be used in simple link tests
16099lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16100
16101# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16102
16103# If no C compiler was specified, use CC.
16104LTCC=${LTCC-"$CC"}
16105
16106# If no C compiler flags were specified, use CFLAGS.
16107LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16108
16109# Allow CC to be a program name with arguments.
16110compiler=$CC
16111
16112
16113# save warnings/boilerplate of simple test code
16114ac_outfile=conftest.$ac_objext
16115echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16116eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16117_lt_compiler_boilerplate=`cat conftest.err`
16118$rm conftest*
16119
16120ac_outfile=conftest.$ac_objext
16121echo "$lt_simple_link_test_code" >conftest.$ac_ext
16122eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16123_lt_linker_boilerplate=`cat conftest.err`
16124$rm -r conftest*
16125
16126
16127# Allow CC to be a program name with arguments.
16128lt_save_CC="$CC"
16129CC=${GCJ-"gcj"}
16130compiler=$CC
16131compiler_GCJ=$CC
16132for cc_temp in $compiler""; do
16133 case $cc_temp in
16134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16136 \-*) ;;
16137 *) break;;
16138 esac
16139done
16140cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16141
16142
16143# GCJ did not exist at the time GCC didn't implicitly link libc in.
16144archive_cmds_need_lc_GCJ=no
16145
16146old_archive_cmds_GCJ=$old_archive_cmds
16147
16148
16149lt_prog_compiler_no_builtin_flag_GCJ=
16150
16151if test "$GCC" = yes; then
16152 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16153
16154
16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16156$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16157if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16158 $as_echo_n "(cached) " >&6
16159else
16160 lt_cv_prog_compiler_rtti_exceptions=no
16161 ac_outfile=conftest.$ac_objext
16162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16163 lt_compiler_flag="-fno-rtti -fno-exceptions"
16164 # Insert the option either (1) after the last *FLAGS variable, or
16165 # (2) before a word containing "conftest.", or (3) at the end.
16166 # Note that $ac_compile itself does not contain backslashes and begins
16167 # with a dollar sign (not a hyphen), so the echo should work correctly.
16168 # The option is referenced via a variable to avoid confusing sed.
16169 lt_compile=`echo "$ac_compile" | $SED \
16170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172 -e 's:$: $lt_compiler_flag:'`
16173 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16174 (eval "$lt_compile" 2>conftest.err)
16175 ac_status=$?
16176 cat conftest.err >&5
16177 echo "$as_me:__oline__: \$? = $ac_status" >&5
16178 if (exit $ac_status) && test -s "$ac_outfile"; then
16179 # The compiler can only warn and ignore the option if not recognized
16180 # So say no if there are warnings other than the usual output.
16181 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16184 lt_cv_prog_compiler_rtti_exceptions=yes
16185 fi
16186 fi
16187 $rm conftest*
16188
16189fi
16190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16191$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16192
16193if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16194 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16195else
16196 :
16197fi
16198
16199fi
16200
16201lt_prog_compiler_wl_GCJ=
16202lt_prog_compiler_pic_GCJ=
16203lt_prog_compiler_static_GCJ=
16204
16205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16206$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16207
16208 if test "$GCC" = yes; then
16209 lt_prog_compiler_wl_GCJ='-Wl,'
16210 lt_prog_compiler_static_GCJ='-static'
16211
16212 case $host_os in
16213 aix*)
16214 # All AIX code is PIC.
16215 if test "$host_cpu" = ia64; then
16216 # AIX 5 now supports IA64 processor
16217 lt_prog_compiler_static_GCJ='-Bstatic'
16218 fi
16219 ;;
16220
16221 amigaos*)
16222 # FIXME: we need at least 68020 code to build shared libraries, but
16223 # adding the `-m68020' flag to GCC prevents building anything better,
16224 # like `-m68040'.
16225 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16226 ;;
16227
16228 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16229 # PIC is the default for these OSes.
16230 ;;
16231
16232 mingw* | cygwin* | pw32* | os2*)
16233 # This hack is so that the source file can tell whether it is being
16234 # built for inclusion in a dll (and should export symbols for example).
16235 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16236 # (--disable-auto-import) libraries
16237
16238 ;;
16239
16240 darwin* | rhapsody*)
16241 # PIC is the default on this platform
16242 # Common symbols not allowed in MH_DYLIB files
16243 lt_prog_compiler_pic_GCJ='-fno-common'
16244 ;;
16245
16246 interix[3-9]*)
16247 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16248 # Instead, we relocate shared libraries at runtime.
16249 ;;
16250
16251 msdosdjgpp*)
16252 # Just because we use GCC doesn't mean we suddenly get shared libraries
16253 # on systems that don't support them.
16254 lt_prog_compiler_can_build_shared_GCJ=no
16255 enable_shared=no
16256 ;;
16257
16258 sysv4*MP*)
16259 if test -d /usr/nec; then
16260 lt_prog_compiler_pic_GCJ=-Kconform_pic
16261 fi
16262 ;;
16263
16264 hpux*)
16265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16266 # not for PA HP-UX.
16267 case $host_cpu in
16268 hppa*64*|ia64*)
16269 # +Z the default
16270 ;;
16271 *)
16272 lt_prog_compiler_pic_GCJ='-fPIC'
16273 ;;
16274 esac
16275 ;;
16276
16277 *)
16278 lt_prog_compiler_pic_GCJ='-fPIC'
16279 ;;
16280 esac
16281 else
16282 # PORTME Check for flag to pass linker flags through the system compiler.
16283 case $host_os in
16284 aix*)
16285 lt_prog_compiler_wl_GCJ='-Wl,'
16286 if test "$host_cpu" = ia64; then
16287 # AIX 5 now supports IA64 processor
16288 lt_prog_compiler_static_GCJ='-Bstatic'
16289 else
16290 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16291 fi
16292 ;;
16293 darwin*)
16294 # PIC is the default on this platform
16295 # Common symbols not allowed in MH_DYLIB files
16296 case $cc_basename in
16297 xlc*)
16298 lt_prog_compiler_pic_GCJ='-qnocommon'
16299 lt_prog_compiler_wl_GCJ='-Wl,'
16300 ;;
16301 esac
16302 ;;
16303
16304 mingw* | cygwin* | pw32* | os2*)
16305 # This hack is so that the source file can tell whether it is being
16306 # built for inclusion in a dll (and should export symbols for example).
16307
16308 ;;
16309
16310 hpux9* | hpux10* | hpux11*)
16311 lt_prog_compiler_wl_GCJ='-Wl,'
16312 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16313 # not for PA HP-UX.
16314 case $host_cpu in
16315 hppa*64*|ia64*)
16316 # +Z the default
16317 ;;
16318 *)
16319 lt_prog_compiler_pic_GCJ='+Z'
16320 ;;
16321 esac
16322 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16323 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16324 ;;
16325
16326 irix5* | irix6* | nonstopux*)
16327 lt_prog_compiler_wl_GCJ='-Wl,'
16328 # PIC (with -KPIC) is the default.
16329 lt_prog_compiler_static_GCJ='-non_shared'
16330 ;;
16331
16332 newsos6)
16333 lt_prog_compiler_pic_GCJ='-KPIC'
16334 lt_prog_compiler_static_GCJ='-Bstatic'
16335 ;;
16336
16337 linux* | k*bsd*-gnu)
16338 case $cc_basename in
16339 icc* | ecc*)
16340 lt_prog_compiler_wl_GCJ='-Wl,'
16341 lt_prog_compiler_pic_GCJ='-KPIC'
16342 lt_prog_compiler_static_GCJ='-static'
16343 ;;
16344 pgcc* | pgf77* | pgf90* | pgf95*)
16345 # Portland Group compilers (*not* the Pentium gcc compiler,
16346 # which looks to be a dead project)
16347 lt_prog_compiler_wl_GCJ='-Wl,'
16348 lt_prog_compiler_pic_GCJ='-fpic'
16349 lt_prog_compiler_static_GCJ='-Bstatic'
16350 ;;
16351 ccc*)
16352 lt_prog_compiler_wl_GCJ='-Wl,'
16353 # All Alpha code is PIC.
16354 lt_prog_compiler_static_GCJ='-non_shared'
16355 ;;
16356 *)
16357 case `$CC -V 2>&1 | sed 5q` in
16358 *Sun\ C*)
16359 # Sun C 5.9
16360 lt_prog_compiler_pic_GCJ='-KPIC'
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16362 lt_prog_compiler_wl_GCJ='-Wl,'
16363 ;;
16364 *Sun\ F*)
16365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16366 lt_prog_compiler_pic_GCJ='-KPIC'
16367 lt_prog_compiler_static_GCJ='-Bstatic'
16368 lt_prog_compiler_wl_GCJ=''
16369 ;;
16370 esac
16371 ;;
16372 esac
16373 ;;
16374
16375 osf3* | osf4* | osf5*)
16376 lt_prog_compiler_wl_GCJ='-Wl,'
16377 # All OSF/1 code is PIC.
16378 lt_prog_compiler_static_GCJ='-non_shared'
16379 ;;
16380
16381 rdos*)
16382 lt_prog_compiler_static_GCJ='-non_shared'
16383 ;;
16384
16385 solaris*)
16386 lt_prog_compiler_pic_GCJ='-KPIC'
16387 lt_prog_compiler_static_GCJ='-Bstatic'
16388 case $cc_basename in
16389 f77* | f90* | f95*)
16390 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16391 *)
16392 lt_prog_compiler_wl_GCJ='-Wl,';;
16393 esac
16394 ;;
16395
16396 sunos4*)
16397 lt_prog_compiler_wl_GCJ='-Qoption ld '
16398 lt_prog_compiler_pic_GCJ='-PIC'
16399 lt_prog_compiler_static_GCJ='-Bstatic'
16400 ;;
16401
16402 sysv4 | sysv4.2uw2* | sysv4.3*)
16403 lt_prog_compiler_wl_GCJ='-Wl,'
16404 lt_prog_compiler_pic_GCJ='-KPIC'
16405 lt_prog_compiler_static_GCJ='-Bstatic'
16406 ;;
16407
16408 sysv4*MP*)
16409 if test -d /usr/nec ;then
16410 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16411 lt_prog_compiler_static_GCJ='-Bstatic'
16412 fi
16413 ;;
16414
16415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 lt_prog_compiler_pic_GCJ='-KPIC'
16418 lt_prog_compiler_static_GCJ='-Bstatic'
16419 ;;
16420
16421 unicos*)
16422 lt_prog_compiler_wl_GCJ='-Wl,'
16423 lt_prog_compiler_can_build_shared_GCJ=no
16424 ;;
16425
16426 uts4*)
16427 lt_prog_compiler_pic_GCJ='-pic'
16428 lt_prog_compiler_static_GCJ='-Bstatic'
16429 ;;
16430
16431 *)
16432 lt_prog_compiler_can_build_shared_GCJ=no
16433 ;;
16434 esac
16435 fi
16436
16437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16438$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16439
16440#
16441# Check to make sure the PIC flag actually works.
16442#
16443if test -n "$lt_prog_compiler_pic_GCJ"; then
16444
16445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16446$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16447if ${lt_cv_prog_compiler_pic_works_GCJ+:} false; then :
16448 $as_echo_n "(cached) " >&6
16449else
16450 lt_cv_prog_compiler_pic_works_GCJ=no
16451 ac_outfile=conftest.$ac_objext
16452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16453 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16454 # Insert the option either (1) after the last *FLAGS variable, or
16455 # (2) before a word containing "conftest.", or (3) at the end.
16456 # Note that $ac_compile itself does not contain backslashes and begins
16457 # with a dollar sign (not a hyphen), so the echo should work correctly.
16458 # The option is referenced via a variable to avoid confusing sed.
16459 lt_compile=`echo "$ac_compile" | $SED \
16460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16462 -e 's:$: $lt_compiler_flag:'`
16463 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16464 (eval "$lt_compile" 2>conftest.err)
16465 ac_status=$?
16466 cat conftest.err >&5
16467 echo "$as_me:__oline__: \$? = $ac_status" >&5
16468 if (exit $ac_status) && test -s "$ac_outfile"; then
16469 # The compiler can only warn and ignore the option if not recognized
16470 # So say no if there are warnings other than the usual output.
16471 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16472 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16473 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16474 lt_cv_prog_compiler_pic_works_GCJ=yes
16475 fi
16476 fi
16477 $rm conftest*
16478
16479fi
16480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16481$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16482
16483if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16484 case $lt_prog_compiler_pic_GCJ in
16485 "" | " "*) ;;
16486 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16487 esac
16488else
16489 lt_prog_compiler_pic_GCJ=
16490 lt_prog_compiler_can_build_shared_GCJ=no
16491fi
16492
16493fi
16494case $host_os in
16495 # For platforms which do not support PIC, -DPIC is meaningless:
16496 *djgpp*)
16497 lt_prog_compiler_pic_GCJ=
16498 ;;
16499 *)
16500 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16501 ;;
16502esac
16503
16504#
16505# Check to make sure the static flag actually works.
16506#
16507wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16509$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16510if ${lt_cv_prog_compiler_static_works_GCJ+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512else
16513 lt_cv_prog_compiler_static_works_GCJ=no
16514 save_LDFLAGS="$LDFLAGS"
16515 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16516 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16517 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16518 # The linker can only warn and ignore the option if not recognized
16519 # So say no if there are warnings
16520 if test -s conftest.err; then
16521 # Append any errors to the config.log.
16522 cat conftest.err 1>&5
16523 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16525 if diff conftest.exp conftest.er2 >/dev/null; then
16526 lt_cv_prog_compiler_static_works_GCJ=yes
16527 fi
16528 else
16529 lt_cv_prog_compiler_static_works_GCJ=yes
16530 fi
16531 fi
16532 $rm -r conftest*
16533 LDFLAGS="$save_LDFLAGS"
16534
16535fi
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16537$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16538
16539if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16540 :
16541else
16542 lt_prog_compiler_static_GCJ=
16543fi
16544
16545
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16547$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16548if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16549 $as_echo_n "(cached) " >&6
16550else
16551 lt_cv_prog_compiler_c_o_GCJ=no
16552 $rm -r conftest 2>/dev/null
16553 mkdir conftest
16554 cd conftest
16555 mkdir out
16556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16557
16558 lt_compiler_flag="-o out/conftest2.$ac_objext"
16559 # Insert the option either (1) after the last *FLAGS variable, or
16560 # (2) before a word containing "conftest.", or (3) at the end.
16561 # Note that $ac_compile itself does not contain backslashes and begins
16562 # with a dollar sign (not a hyphen), so the echo should work correctly.
16563 lt_compile=`echo "$ac_compile" | $SED \
16564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16566 -e 's:$: $lt_compiler_flag:'`
16567 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16568 (eval "$lt_compile" 2>out/conftest.err)
16569 ac_status=$?
16570 cat out/conftest.err >&5
16571 echo "$as_me:__oline__: \$? = $ac_status" >&5
16572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16573 then
16574 # The compiler can only warn and ignore the option if not recognized
16575 # So say no if there are warnings
16576 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16579 lt_cv_prog_compiler_c_o_GCJ=yes
16580 fi
16581 fi
16582 chmod u+w . 2>&5
16583 $rm conftest*
16584 # SGI C++ compiler will create directory out/ii_files/ for
16585 # template instantiation
16586 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16587 $rm out/* && rmdir out
16588 cd ..
16589 rmdir conftest
16590 $rm conftest*
16591
16592fi
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16594$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16595
16596
16597hard_links="nottested"
16598if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16599 # do not overwrite the value of need_locks provided by the user
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16601$as_echo_n "checking if we can lock with hard links... " >&6; }
16602 hard_links=yes
16603 $rm conftest*
16604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16605 touch conftest.a
16606 ln conftest.a conftest.b 2>&5 || hard_links=no
16607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16609$as_echo "$hard_links" >&6; }
16610 if test "$hard_links" = no; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16612$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16613 need_locks=warn
16614 fi
16615else
16616 need_locks=no
16617fi
16618
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16620$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16621
16622 runpath_var=
16623 allow_undefined_flag_GCJ=
16624 enable_shared_with_static_runtimes_GCJ=no
16625 archive_cmds_GCJ=
16626 archive_expsym_cmds_GCJ=
16627 old_archive_From_new_cmds_GCJ=
16628 old_archive_from_expsyms_cmds_GCJ=
16629 export_dynamic_flag_spec_GCJ=
16630 whole_archive_flag_spec_GCJ=
16631 thread_safe_flag_spec_GCJ=
16632 hardcode_libdir_flag_spec_GCJ=
16633 hardcode_libdir_flag_spec_ld_GCJ=
16634 hardcode_libdir_separator_GCJ=
16635 hardcode_direct_GCJ=no
16636 hardcode_minus_L_GCJ=no
16637 hardcode_shlibpath_var_GCJ=unsupported
16638 link_all_deplibs_GCJ=unknown
16639 hardcode_automatic_GCJ=no
16640 module_cmds_GCJ=
16641 module_expsym_cmds_GCJ=
16642 always_export_symbols_GCJ=no
16643 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16644 # include_expsyms should be a list of space-separated symbols to be *always*
16645 # included in the symbol list
16646 include_expsyms_GCJ=
16647 # exclude_expsyms can be an extended regexp of symbols to exclude
16648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16650 # as well as any symbol that contains `d'.
16651 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16653 # platforms (ab)use it in PIC code, but their linkers get confused if
16654 # the symbol is explicitly referenced. Since portable code cannot
16655 # rely on this symbol name, it's probably fine to never include it in
16656 # preloaded symbol tables.
16657 # Exclude shared library initialization/finalization symbols.
16658 extract_expsyms_cmds=
16659 # Just being paranoid about ensuring that cc_basename is set.
16660 for cc_temp in $compiler""; do
16661 case $cc_temp in
16662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16664 \-*) ;;
16665 *) break;;
16666 esac
16667done
16668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16669
16670 case $host_os in
16671 cygwin* | mingw* | pw32*)
16672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16673 # When not using gcc, we currently assume that we are using
16674 # Microsoft Visual C++.
16675 if test "$GCC" != yes; then
16676 with_gnu_ld=no
16677 fi
16678 ;;
16679 interix*)
16680 # we just hope/assume this is gcc and not c89 (= MSVC++)
16681 with_gnu_ld=yes
16682 ;;
16683 openbsd*)
16684 with_gnu_ld=no
16685 ;;
16686 esac
16687
16688 ld_shlibs_GCJ=yes
16689 if test "$with_gnu_ld" = yes; then
16690 # If archive_cmds runs LD, not CC, wlarc should be empty
16691 wlarc='${wl}'
16692
16693 # Set some defaults for GNU ld with shared library support. These
16694 # are reset later if shared libraries are not supported. Putting them
16695 # here allows them to be overridden if necessary.
16696 runpath_var=LD_RUN_PATH
16697 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16698 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16699 # ancient GNU ld didn't support --whole-archive et. al.
16700 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16701 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16702 else
16703 whole_archive_flag_spec_GCJ=
16704 fi
16705 supports_anon_versioning=no
16706 case `$LD -v 2>/dev/null` in
16707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16710 *\ 2.11.*) ;; # other 2.11 versions
16711 *) supports_anon_versioning=yes ;;
16712 esac
16713
16714 # See if GNU ld supports shared libraries.
16715 case $host_os in
16716 aix[3-9]*)
16717 # On AIX/PPC, the GNU linker is very broken
16718 if test "$host_cpu" != ia64; then
16719 ld_shlibs_GCJ=no
16720 cat <<EOF 1>&2
16721
16722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16723*** to be unable to reliably create shared libraries on AIX.
16724*** Therefore, libtool is disabling shared libraries support. If you
16725*** really care for shared libraries, you may want to modify your PATH
16726*** so that a non-GNU linker is found, and then restart.
16727
16728EOF
16729 fi
16730 ;;
16731
16732 amigaos*)
16733 archive_cmds_GCJ='$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)'
16734 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16735 hardcode_minus_L_GCJ=yes
16736
16737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16738 # that the semantics of dynamic libraries on AmigaOS, at least up
16739 # to version 4, is to share data among multiple programs linked
16740 # with the same dynamic library. Since this doesn't match the
16741 # behavior of shared libraries on other platforms, we can't use
16742 # them.
16743 ld_shlibs_GCJ=no
16744 ;;
16745
16746 beos*)
16747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16748 allow_undefined_flag_GCJ=unsupported
16749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16750 # support --undefined. This deserves some investigation. FIXME
16751 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16752 else
16753 ld_shlibs_GCJ=no
16754 fi
16755 ;;
16756
16757 cygwin* | mingw* | pw32*)
16758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16759 # as there is no search path for DLLs.
16760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16761 allow_undefined_flag_GCJ=unsupported
16762 always_export_symbols_GCJ=no
16763 enable_shared_with_static_runtimes_GCJ=yes
16764 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16765
16766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16767 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16768 # If the export-symbols file already is a .def file (1st line
16769 # is EXPORTS), use it as is; otherwise, prepend...
16770 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16771 cp $export_symbols $output_objdir/$soname.def;
16772 else
16773 echo EXPORTS > $output_objdir/$soname.def;
16774 cat $export_symbols >> $output_objdir/$soname.def;
16775 fi~
16776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16777 else
16778 ld_shlibs_GCJ=no
16779 fi
16780 ;;
16781
16782 interix[3-9]*)
16783 hardcode_direct_GCJ=no
16784 hardcode_shlibpath_var_GCJ=no
16785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16786 export_dynamic_flag_spec_GCJ='${wl}-E'
16787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16788 # Instead, shared libraries are loaded at an image base (0x10000000 by
16789 # default) and relocated if they conflict, which is a slow very memory
16790 # consuming and fragmenting process. To avoid this, we pick a random,
16791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16793 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16794 archive_expsym_cmds_GCJ='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'
16795 ;;
16796
16797 gnu* | linux* | k*bsd*-gnu)
16798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16799 tmp_addflag=
16800 case $cc_basename,$host_cpu in
16801 pgcc*) # Portland Group C compiler
16802 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16803 tmp_addflag=' $pic_flag'
16804 ;;
16805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16806 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16807 tmp_addflag=' $pic_flag -Mnomain' ;;
16808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16809 tmp_addflag=' -i_dynamic' ;;
16810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16811 tmp_addflag=' -i_dynamic -nofor_main' ;;
16812 ifc* | ifort*) # Intel Fortran compiler
16813 tmp_addflag=' -nofor_main' ;;
16814 esac
16815 case `$CC -V 2>&1 | sed 5q` in
16816 *Sun\ C*) # Sun C 5.9
16817 whole_archive_flag_spec_GCJ='${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'
16818 tmp_sharedflag='-G' ;;
16819 *Sun\ F*) # Sun Fortran 8.3
16820 tmp_sharedflag='-G' ;;
16821 *)
16822 tmp_sharedflag='-shared' ;;
16823 esac
16824 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16825
16826 if test $supports_anon_versioning = yes; then
16827 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16829 $echo "local: *; };" >> $output_objdir/$libname.ver~
16830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16831 fi
16832 link_all_deplibs_GCJ=no
16833 else
16834 ld_shlibs_GCJ=no
16835 fi
16836 ;;
16837
16838 netbsd* | netbsdelf*-gnu)
16839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16840 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16841 wlarc=
16842 else
16843 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16844 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16845 fi
16846 ;;
16847
16848 solaris*)
16849 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16850 ld_shlibs_GCJ=no
16851 cat <<EOF 1>&2
16852
16853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16854*** create shared libraries on Solaris systems. Therefore, libtool
16855*** is disabling shared libraries support. We urge you to upgrade GNU
16856*** binutils to release 2.9.1 or newer. Another option is to modify
16857*** your PATH or compiler configuration so that the native linker is
16858*** used, and then restart.
16859
16860EOF
16861 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16862 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16863 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16864 else
16865 ld_shlibs_GCJ=no
16866 fi
16867 ;;
16868
16869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16870 case `$LD -v 2>&1` in
16871 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16872 ld_shlibs_GCJ=no
16873 cat <<_LT_EOF 1>&2
16874
16875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16876*** reliably create shared libraries on SCO systems. Therefore, libtool
16877*** is disabling shared libraries support. We urge you to upgrade GNU
16878*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16879*** your PATH or compiler configuration so that the native linker is
16880*** used, and then restart.
16881
16882_LT_EOF
16883 ;;
16884 *)
16885 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16886 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16887 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16888 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16889 else
16890 ld_shlibs_GCJ=no
16891 fi
16892 ;;
16893 esac
16894 ;;
16895
16896 sunos4*)
16897 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16898 wlarc=
16899 hardcode_direct_GCJ=yes
16900 hardcode_shlibpath_var_GCJ=no
16901 ;;
16902
16903 *)
16904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16906 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16907 else
16908 ld_shlibs_GCJ=no
16909 fi
16910 ;;
16911 esac
16912
16913 if test "$ld_shlibs_GCJ" = no; then
16914 runpath_var=
16915 hardcode_libdir_flag_spec_GCJ=
16916 export_dynamic_flag_spec_GCJ=
16917 whole_archive_flag_spec_GCJ=
16918 fi
16919 else
16920 # PORTME fill in a description of your system's linker (not GNU ld)
16921 case $host_os in
16922 aix3*)
16923 allow_undefined_flag_GCJ=unsupported
16924 always_export_symbols_GCJ=yes
16925 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16926 # Note: this linker hardcodes the directories in LIBPATH if there
16927 # are no directories specified by -L.
16928 hardcode_minus_L_GCJ=yes
16929 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16930 # Neither direct hardcoding nor static linking is supported with a
16931 # broken collect2.
16932 hardcode_direct_GCJ=unsupported
16933 fi
16934 ;;
16935
16936 aix[4-9]*)
16937 if test "$host_cpu" = ia64; then
16938 # On IA64, the linker does run time linking by default, so we don't
16939 # have to do anything special.
16940 aix_use_runtimelinking=no
16941 exp_sym_flag='-Bexport'
16942 no_entry_flag=""
16943 else
16944 # If we're using GNU nm, then we don't want the "-C" option.
16945 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16946 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16947 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16948 else
16949 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16950 fi
16951 aix_use_runtimelinking=no
16952
16953 # Test if we are trying to use run time linking or normal
16954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16955 # need to do runtime linking.
16956 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16957 for ld_flag in $LDFLAGS; do
16958 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16959 aix_use_runtimelinking=yes
16960 break
16961 fi
16962 done
16963 ;;
16964 esac
16965
16966 exp_sym_flag='-bexport'
16967 no_entry_flag='-bnoentry'
16968 fi
16969
16970 # When large executables or shared objects are built, AIX ld can
16971 # have problems creating the table of contents. If linking a library
16972 # or program results in "error TOC overflow" add -mminimal-toc to
16973 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16974 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16975
16976 archive_cmds_GCJ=''
16977 hardcode_direct_GCJ=yes
16978 hardcode_libdir_separator_GCJ=':'
16979 link_all_deplibs_GCJ=yes
16980
16981 if test "$GCC" = yes; then
16982 case $host_os in aix4.[012]|aix4.[012].*)
16983 # We only want to do this on AIX 4.2 and lower, the check
16984 # below for broken collect2 doesn't work under 4.3+
16985 collect2name=`${CC} -print-prog-name=collect2`
16986 if test -f "$collect2name" && \
16987 strings "$collect2name" | grep resolve_lib_name >/dev/null
16988 then
16989 # We have reworked collect2
16990 :
16991 else
16992 # We have old collect2
16993 hardcode_direct_GCJ=unsupported
16994 # It fails to find uninstalled libraries when the uninstalled
16995 # path is not listed in the libpath. Setting hardcode_minus_L
16996 # to unsupported forces relinking
16997 hardcode_minus_L_GCJ=yes
16998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999 hardcode_libdir_separator_GCJ=
17000 fi
17001 ;;
17002 esac
17003 shared_flag='-shared'
17004 if test "$aix_use_runtimelinking" = yes; then
17005 shared_flag="$shared_flag "'${wl}-G'
17006 fi
17007 else
17008 # not using gcc
17009 if test "$host_cpu" = ia64; then
17010 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17011 # chokes on -Wl,-G. The following line is correct:
17012 shared_flag='-G'
17013 else
17014 if test "$aix_use_runtimelinking" = yes; then
17015 shared_flag='${wl}-G'
17016 else
17017 shared_flag='${wl}-bM:SRE'
17018 fi
17019 fi
17020 fi
17021
17022 # It seems that -bexpall does not export symbols beginning with
17023 # underscore (_), so it is better to generate a list of symbols to export.
17024 always_export_symbols_GCJ=yes
17025 if test "$aix_use_runtimelinking" = yes; then
17026 # Warning - without using the other runtime loading flags (-brtl),
17027 # -berok will link without error, but may produce a broken library.
17028 allow_undefined_flag_GCJ='-berok'
17029 # Determine the default libpath from the value encoded in an empty executable.
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031/* end confdefs.h. */
17032
17033int
17034main ()
17035{
17036
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041if ac_fn_c_try_link "$LINENO"; then :
17042
17043lt_aix_libpath_sed='
17044 /Import File Strings/,/^$/ {
17045 /^0/ {
17046 s/^0 *\(.*\)$/\1/
17047 p
17048 }
17049 }'
17050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17051# Check for a 64-bit object if we didn't find anything.
17052if test -z "$aix_libpath"; then
17053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17054fi
17055fi
17056rm -f core conftest.err conftest.$ac_objext \
17057 conftest$ac_exeext conftest.$ac_ext
17058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17059
17060 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17061 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17062 else
17063 if test "$host_cpu" = ia64; then
17064 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17065 allow_undefined_flag_GCJ="-z nodefs"
17066 archive_expsym_cmds_GCJ="\$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"
17067 else
17068 # Determine the default libpath from the value encoded in an empty executable.
17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h. */
17071
17072int
17073main ()
17074{
17075
17076 ;
17077 return 0;
17078}
17079_ACEOF
17080if ac_fn_c_try_link "$LINENO"; then :
17081
17082lt_aix_libpath_sed='
17083 /Import File Strings/,/^$/ {
17084 /^0/ {
17085 s/^0 *\(.*\)$/\1/
17086 p
17087 }
17088 }'
17089aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17090# Check for a 64-bit object if we didn't find anything.
17091if test -z "$aix_libpath"; then
17092 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17093fi
17094fi
17095rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17098
17099 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17100 # Warning - without using the other run time loading flags,
17101 # -berok will link without error, but may produce a broken library.
17102 no_undefined_flag_GCJ=' ${wl}-bernotok'
17103 allow_undefined_flag_GCJ=' ${wl}-berok'
17104 # Exported symbols can be pulled into shared objects from archives
17105 whole_archive_flag_spec_GCJ='$convenience'
17106 archive_cmds_need_lc_GCJ=yes
17107 # This is similar to how AIX traditionally builds its shared libraries.
17108 archive_expsym_cmds_GCJ="\$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'
17109 fi
17110 fi
17111 ;;
17112
17113 amigaos*)
17114 archive_cmds_GCJ='$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)'
17115 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17116 hardcode_minus_L_GCJ=yes
17117 # see comment about different semantics on the GNU ld section
17118 ld_shlibs_GCJ=no
17119 ;;
17120
17121 bsdi[45]*)
17122 export_dynamic_flag_spec_GCJ=-rdynamic
17123 ;;
17124
17125 cygwin* | mingw* | pw32*)
17126 # When not using gcc, we currently assume that we are using
17127 # Microsoft Visual C++.
17128 # hardcode_libdir_flag_spec is actually meaningless, as there is
17129 # no search path for DLLs.
17130 hardcode_libdir_flag_spec_GCJ=' '
17131 allow_undefined_flag_GCJ=unsupported
17132 # Tell ltmain to make .lib files, not .a files.
17133 libext=lib
17134 # Tell ltmain to make .dll files, not .so files.
17135 shrext_cmds=".dll"
17136 # FIXME: Setting linknames here is a bad hack.
17137 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17138 # The linker will automatically build a .lib file if we build a DLL.
17139 old_archive_From_new_cmds_GCJ='true'
17140 # FIXME: Should let the user specify the lib program.
17141 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17142 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17143 enable_shared_with_static_runtimes_GCJ=yes
17144 ;;
17145
17146 darwin* | rhapsody*)
17147 case $host_os in
17148 rhapsody* | darwin1.[012])
17149 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17150 ;;
17151 *) # Darwin 1.3 on
17152 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17153 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17154 else
17155 case ${MACOSX_DEPLOYMENT_TARGET} in
17156 10.[012])
17157 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17158 ;;
17159 10.*)
17160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17161 ;;
17162 esac
17163 fi
17164 ;;
17165 esac
17166 archive_cmds_need_lc_GCJ=no
17167 hardcode_direct_GCJ=no
17168 hardcode_automatic_GCJ=yes
17169 hardcode_shlibpath_var_GCJ=unsupported
17170 whole_archive_flag_spec_GCJ=''
17171 link_all_deplibs_GCJ=yes
17172 if test "$GCC" = yes ; then
17173 output_verbose_link_cmd='echo'
17174 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17175 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17176 archive_expsym_cmds_GCJ="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}"
17177 module_expsym_cmds_GCJ="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}"
17178 else
17179 case $cc_basename in
17180 xlc*)
17181 output_verbose_link_cmd='echo'
17182 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17183 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17185 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17186 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17187 ;;
17188 *)
17189 ld_shlibs_GCJ=no
17190 ;;
17191 esac
17192 fi
17193 ;;
17194
17195 dgux*)
17196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_shlibpath_var_GCJ=no
17199 ;;
17200
17201 freebsd1*)
17202 ld_shlibs_GCJ=no
17203 ;;
17204
17205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17206 # support. Future versions do this automatically, but an explicit c++rt0.o
17207 # does not break anything, and helps significantly (at the cost of a little
17208 # extra space).
17209 freebsd2.2*)
17210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17211 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17212 hardcode_direct_GCJ=yes
17213 hardcode_shlibpath_var_GCJ=no
17214 ;;
17215
17216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17217 freebsd2*)
17218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17219 hardcode_direct_GCJ=yes
17220 hardcode_minus_L_GCJ=yes
17221 hardcode_shlibpath_var_GCJ=no
17222 ;;
17223
17224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17225 freebsd* | dragonfly*)
17226 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17228 hardcode_direct_GCJ=yes
17229 hardcode_shlibpath_var_GCJ=no
17230 ;;
17231
17232 hpux9*)
17233 if test "$GCC" = yes; then
17234 archive_cmds_GCJ='$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'
17235 else
17236 archive_cmds_GCJ='$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'
17237 fi
17238 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17239 hardcode_libdir_separator_GCJ=:
17240 hardcode_direct_GCJ=yes
17241
17242 # hardcode_minus_L: Not really in the search PATH,
17243 # but as the default location of the library.
17244 hardcode_minus_L_GCJ=yes
17245 export_dynamic_flag_spec_GCJ='${wl}-E'
17246 ;;
17247
17248 hpux10*)
17249 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17250 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17251 else
17252 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17253 fi
17254 if test "$with_gnu_ld" = no; then
17255 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17256 hardcode_libdir_separator_GCJ=:
17257
17258 hardcode_direct_GCJ=yes
17259 export_dynamic_flag_spec_GCJ='${wl}-E'
17260
17261 # hardcode_minus_L: Not really in the search PATH,
17262 # but as the default location of the library.
17263 hardcode_minus_L_GCJ=yes
17264 fi
17265 ;;
17266
17267 hpux11*)
17268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17269 case $host_cpu in
17270 hppa*64*)
17271 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17272 ;;
17273 ia64*)
17274 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17275 ;;
17276 *)
17277 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17278 ;;
17279 esac
17280 else
17281 case $host_cpu in
17282 hppa*64*)
17283 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17284 ;;
17285 ia64*)
17286 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17287 ;;
17288 *)
17289 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17290 ;;
17291 esac
17292 fi
17293 if test "$with_gnu_ld" = no; then
17294 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17295 hardcode_libdir_separator_GCJ=:
17296
17297 case $host_cpu in
17298 hppa*64*|ia64*)
17299 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17300 hardcode_direct_GCJ=no
17301 hardcode_shlibpath_var_GCJ=no
17302 ;;
17303 *)
17304 hardcode_direct_GCJ=yes
17305 export_dynamic_flag_spec_GCJ='${wl}-E'
17306
17307 # hardcode_minus_L: Not really in the search PATH,
17308 # but as the default location of the library.
17309 hardcode_minus_L_GCJ=yes
17310 ;;
17311 esac
17312 fi
17313 ;;
17314
17315 irix5* | irix6* | nonstopux*)
17316 if test "$GCC" = yes; then
17317 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17318 else
17319 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17320 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17321 fi
17322 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17323 hardcode_libdir_separator_GCJ=:
17324 link_all_deplibs_GCJ=yes
17325 ;;
17326
17327 netbsd* | netbsdelf*-gnu)
17328 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17329 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17330 else
17331 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17332 fi
17333 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17334 hardcode_direct_GCJ=yes
17335 hardcode_shlibpath_var_GCJ=no
17336 ;;
17337
17338 newsos6)
17339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17340 hardcode_direct_GCJ=yes
17341 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17342 hardcode_libdir_separator_GCJ=:
17343 hardcode_shlibpath_var_GCJ=no
17344 ;;
17345
17346 openbsd*)
17347 if test -f /usr/libexec/ld.so; then
17348 hardcode_direct_GCJ=yes
17349 hardcode_shlibpath_var_GCJ=no
17350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17351 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17352 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17353 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17354 export_dynamic_flag_spec_GCJ='${wl}-E'
17355 else
17356 case $host_os in
17357 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17358 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17359 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17360 ;;
17361 *)
17362 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17363 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17364 ;;
17365 esac
17366 fi
17367 else
17368 ld_shlibs_GCJ=no
17369 fi
17370 ;;
17371
17372 os2*)
17373 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374 hardcode_minus_L_GCJ=yes
17375 allow_undefined_flag_GCJ=unsupported
17376 archive_cmds_GCJ='$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'
17377 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17378 ;;
17379
17380 osf3*)
17381 if test "$GCC" = yes; then
17382 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17383 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17384 else
17385 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17386 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17387 fi
17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17389 hardcode_libdir_separator_GCJ=:
17390 ;;
17391
17392 osf4* | osf5*) # as osf3* with the addition of -msym flag
17393 if test "$GCC" = yes; then
17394 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17395 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17396 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17397 else
17398 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17399 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17400 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17401 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17402
17403 # Both c and cxx compiler support -rpath directly
17404 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17405 fi
17406 hardcode_libdir_separator_GCJ=:
17407 ;;
17408
17409 solaris*)
17410 no_undefined_flag_GCJ=' -z text'
17411 if test "$GCC" = yes; then
17412 wlarc='${wl}'
17413 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17414 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17416 else
17417 wlarc=''
17418 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17421 fi
17422 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17423 hardcode_shlibpath_var_GCJ=no
17424 case $host_os in
17425 solaris2.[0-5] | solaris2.[0-5].*) ;;
17426 *)
17427 # The compiler driver will combine and reorder linker options,
17428 # but understands `-z linker_flag'. GCC discards it without `$wl',
17429 # but is careful enough not to reorder.
17430 # Supported since Solaris 2.6 (maybe 2.5.1?)
17431 if test "$GCC" = yes; then
17432 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17433 else
17434 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17435 fi
17436 ;;
17437 esac
17438 link_all_deplibs_GCJ=yes
17439 ;;
17440
17441 sunos4*)
17442 if test "x$host_vendor" = xsequent; then
17443 # Use $CC to link under sequent, because it throws in some extra .o
17444 # files that make .init and .fini sections work.
17445 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17446 else
17447 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17448 fi
17449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17450 hardcode_direct_GCJ=yes
17451 hardcode_minus_L_GCJ=yes
17452 hardcode_shlibpath_var_GCJ=no
17453 ;;
17454
17455 sysv4)
17456 case $host_vendor in
17457 sni)
17458 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17459 hardcode_direct_GCJ=yes # is this really true???
17460 ;;
17461 siemens)
17462 ## LD is ld it makes a PLAMLIB
17463 ## CC just makes a GrossModule.
17464 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17465 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17466 hardcode_direct_GCJ=no
17467 ;;
17468 motorola)
17469 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17471 ;;
17472 esac
17473 runpath_var='LD_RUN_PATH'
17474 hardcode_shlibpath_var_GCJ=no
17475 ;;
17476
17477 sysv4.3*)
17478 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479 hardcode_shlibpath_var_GCJ=no
17480 export_dynamic_flag_spec_GCJ='-Bexport'
17481 ;;
17482
17483 sysv4*MP*)
17484 if test -d /usr/nec; then
17485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17486 hardcode_shlibpath_var_GCJ=no
17487 runpath_var=LD_RUN_PATH
17488 hardcode_runpath_var=yes
17489 ld_shlibs_GCJ=yes
17490 fi
17491 ;;
17492
17493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17494 no_undefined_flag_GCJ='${wl}-z,text'
17495 archive_cmds_need_lc_GCJ=no
17496 hardcode_shlibpath_var_GCJ=no
17497 runpath_var='LD_RUN_PATH'
17498
17499 if test "$GCC" = yes; then
17500 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17502 else
17503 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17504 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17505 fi
17506 ;;
17507
17508 sysv5* | sco3.2v5* | sco5v6*)
17509 # Note: We can NOT use -z defs as we might desire, because we do not
17510 # link with -lc, and that would cause any symbols used from libc to
17511 # always be unresolved, which means just about no library would
17512 # ever link correctly. If we're not using GNU ld we use -z text
17513 # though, which does catch some bad symbols but isn't as heavy-handed
17514 # as -z defs.
17515 no_undefined_flag_GCJ='${wl}-z,text'
17516 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17517 archive_cmds_need_lc_GCJ=no
17518 hardcode_shlibpath_var_GCJ=no
17519 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17520 hardcode_libdir_separator_GCJ=':'
17521 link_all_deplibs_GCJ=yes
17522 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17523 runpath_var='LD_RUN_PATH'
17524
17525 if test "$GCC" = yes; then
17526 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17527 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17528 else
17529 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17530 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17531 fi
17532 ;;
17533
17534 uts4*)
17535 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17536 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17537 hardcode_shlibpath_var_GCJ=no
17538 ;;
17539
17540 *)
17541 ld_shlibs_GCJ=no
17542 ;;
17543 esac
17544 fi
17545
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17547$as_echo "$ld_shlibs_GCJ" >&6; }
17548test "$ld_shlibs_GCJ" = no && can_build_shared=no
17549
17550#
17551# Do we need to explicitly link libc?
17552#
17553case "x$archive_cmds_need_lc_GCJ" in
17554x|xyes)
17555 # Assume -lc should be added
17556 archive_cmds_need_lc_GCJ=yes
17557
17558 if test "$enable_shared" = yes && test "$GCC" = yes; then
17559 case $archive_cmds_GCJ in
17560 *'~'*)
17561 # FIXME: we may have to deal with multi-command sequences.
17562 ;;
17563 '$CC '*)
17564 # Test whether the compiler implicitly links with -lc since on some
17565 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17566 # to ld, don't add -lc before -lgcc.
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17568$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17569 $rm conftest*
17570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17571
17572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17573 (eval $ac_compile) 2>&5
17574 ac_status=$?
17575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17576 test $ac_status = 0; } 2>conftest.err; then
17577 soname=conftest
17578 lib=conftest
17579 libobjs=conftest.$ac_objext
17580 deplibs=
17581 wl=$lt_prog_compiler_wl_GCJ
17582 pic_flag=$lt_prog_compiler_pic_GCJ
17583 compiler_flags=-v
17584 linker_flags=-v
17585 verstring=
17586 output_objdir=.
17587 libname=conftest
17588 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17589 allow_undefined_flag_GCJ=
17590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17591 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17592 ac_status=$?
17593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17594 test $ac_status = 0; }
17595 then
17596 archive_cmds_need_lc_GCJ=no
17597 else
17598 archive_cmds_need_lc_GCJ=yes
17599 fi
17600 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17601 else
17602 cat conftest.err 1>&5
17603 fi
17604 $rm conftest*
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17606$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17607 ;;
17608 esac
17609 fi
17610 ;;
17611esac
17612
17613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17614$as_echo_n "checking dynamic linker characteristics... " >&6; }
17615library_names_spec=
17616libname_spec='lib$name'
17617soname_spec=
17618shrext_cmds=".so"
17619postinstall_cmds=
17620postuninstall_cmds=
17621finish_cmds=
17622finish_eval=
17623shlibpath_var=
17624shlibpath_overrides_runpath=unknown
17625version_type=none
17626dynamic_linker="$host_os ld.so"
17627sys_lib_dlsearch_path_spec="/lib /usr/lib"
17628
17629need_lib_prefix=unknown
17630hardcode_into_libs=no
17631
17632# when you set need_version to no, make sure it does not cause -set_version
17633# flags to be left without arguments
17634need_version=unknown
17635
17636case $host_os in
17637aix3*)
17638 version_type=linux
17639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17640 shlibpath_var=LIBPATH
17641
17642 # AIX 3 has no versioning support, so we append a major version to the name.
17643 soname_spec='${libname}${release}${shared_ext}$major'
17644 ;;
17645
17646aix[4-9]*)
17647 version_type=linux
17648 need_lib_prefix=no
17649 need_version=no
17650 hardcode_into_libs=yes
17651 if test "$host_cpu" = ia64; then
17652 # AIX 5 supports IA64
17653 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17654 shlibpath_var=LD_LIBRARY_PATH
17655 else
17656 # With GCC up to 2.95.x, collect2 would create an import file
17657 # for dependence libraries. The import file would start with
17658 # the line `#! .'. This would cause the generated library to
17659 # depend on `.', always an invalid library. This was fixed in
17660 # development snapshots of GCC prior to 3.0.
17661 case $host_os in
17662 aix4 | aix4.[01] | aix4.[01].*)
17663 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17664 echo ' yes '
17665 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17666 :
17667 else
17668 can_build_shared=no
17669 fi
17670 ;;
17671 esac
17672 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17673 # soname into executable. Probably we can add versioning support to
17674 # collect2, so additional links can be useful in future.
17675 if test "$aix_use_runtimelinking" = yes; then
17676 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17677 # instead of lib<name>.a to let people know that these are not
17678 # typical AIX shared libraries.
17679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17680 else
17681 # We preserve .a as extension for shared libraries through AIX4.2
17682 # and later when we are not doing run time linking.
17683 library_names_spec='${libname}${release}.a $libname.a'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 fi
17686 shlibpath_var=LIBPATH
17687 fi
17688 ;;
17689
17690amigaos*)
17691 library_names_spec='$libname.ixlibrary $libname.a'
17692 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17693 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'
17694 ;;
17695
17696beos*)
17697 library_names_spec='${libname}${shared_ext}'
17698 dynamic_linker="$host_os ld.so"
17699 shlibpath_var=LIBRARY_PATH
17700 ;;
17701
17702bsdi[45]*)
17703 version_type=linux
17704 need_version=no
17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17710 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17711 # the default ld.so.conf also contains /usr/contrib/lib and
17712 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17713 # libtool to hard-code these into programs
17714 ;;
17715
17716cygwin* | mingw* | pw32*)
17717 version_type=windows
17718 shrext_cmds=".dll"
17719 need_version=no
17720 need_lib_prefix=no
17721
17722 case $GCC,$host_os in
17723 yes,cygwin* | yes,mingw* | yes,pw32*)
17724 library_names_spec='$libname.dll.a'
17725 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17726 postinstall_cmds='base_file=`basename \${file}`~
17727 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17728 dldir=$destdir/`dirname \$dlpath`~
17729 test -d \$dldir || mkdir -p \$dldir~
17730 $install_prog $dir/$dlname \$dldir/$dlname~
17731 chmod a+x \$dldir/$dlname'
17732 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17733 dlpath=$dir/\$dldll~
17734 $rm \$dlpath'
17735 shlibpath_overrides_runpath=yes
17736
17737 case $host_os in
17738 cygwin*)
17739 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17740 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17741 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17742 ;;
17743 mingw*)
17744 # MinGW DLLs use traditional 'lib' prefix
17745 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17746 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17747 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17748 # It is most probably a Windows format PATH printed by
17749 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17750 # path with ; separators, and with drive letters. We can handle the
17751 # drive letters (cygwin fileutils understands them), so leave them,
17752 # especially as we might pass files found there to a mingw objdump,
17753 # which wouldn't understand a cygwinified path. Ahh.
17754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17755 else
17756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17757 fi
17758 ;;
17759 pw32*)
17760 # pw32 DLLs use 'pw' prefix rather than 'lib'
17761 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17762 ;;
17763 esac
17764 ;;
17765
17766 *)
17767 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17768 ;;
17769 esac
17770 dynamic_linker='Win32 ld.exe'
17771 # FIXME: first we should search . and the directory the executable is in
17772 shlibpath_var=PATH
17773 ;;
17774
17775darwin* | rhapsody*)
17776 dynamic_linker="$host_os dyld"
17777 version_type=darwin
17778 need_lib_prefix=no
17779 need_version=no
17780 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17781 soname_spec='${libname}${release}${major}$shared_ext'
17782 shlibpath_overrides_runpath=yes
17783 shlibpath_var=DYLD_LIBRARY_PATH
17784 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17785
17786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17787 ;;
17788
17789dgux*)
17790 version_type=linux
17791 need_lib_prefix=no
17792 need_version=no
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 ;;
17797
17798freebsd1*)
17799 dynamic_linker=no
17800 ;;
17801
17802freebsd* | dragonfly*)
17803 # DragonFly does not have aout. When/if they implement a new
17804 # versioning mechanism, adjust this.
17805 if test -x /usr/bin/objformat; then
17806 objformat=`/usr/bin/objformat`
17807 else
17808 case $host_os in
17809 freebsd[123]*) objformat=aout ;;
17810 *) objformat=elf ;;
17811 esac
17812 fi
17813 version_type=freebsd-$objformat
17814 case $version_type in
17815 freebsd-elf*)
17816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17817 need_version=no
17818 need_lib_prefix=no
17819 ;;
17820 freebsd-*)
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17822 need_version=yes
17823 ;;
17824 esac
17825 shlibpath_var=LD_LIBRARY_PATH
17826 case $host_os in
17827 freebsd2*)
17828 shlibpath_overrides_runpath=yes
17829 ;;
17830 freebsd3.[01]* | freebsdelf3.[01]*)
17831 shlibpath_overrides_runpath=yes
17832 hardcode_into_libs=yes
17833 ;;
17834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17836 shlibpath_overrides_runpath=no
17837 hardcode_into_libs=yes
17838 ;;
17839 *) # from 4.6 on, and DragonFly
17840 shlibpath_overrides_runpath=yes
17841 hardcode_into_libs=yes
17842 ;;
17843 esac
17844 ;;
17845
17846gnu*)
17847 version_type=linux
17848 need_lib_prefix=no
17849 need_version=no
17850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 shlibpath_var=LD_LIBRARY_PATH
17853 hardcode_into_libs=yes
17854 ;;
17855
17856hpux9* | hpux10* | hpux11*)
17857 # Give a soname corresponding to the major version so that dld.sl refuses to
17858 # link against other versions.
17859 version_type=sunos
17860 need_lib_prefix=no
17861 need_version=no
17862 case $host_cpu in
17863 ia64*)
17864 shrext_cmds='.so'
17865 hardcode_into_libs=yes
17866 dynamic_linker="$host_os dld.so"
17867 shlibpath_var=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 if test "X$HPUX_IA64_MODE" = X32; then
17872 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17873 else
17874 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17875 fi
17876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17877 ;;
17878 hppa*64*)
17879 shrext_cmds='.sl'
17880 hardcode_into_libs=yes
17881 dynamic_linker="$host_os dld.sl"
17882 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17888 ;;
17889 *)
17890 shrext_cmds='.sl'
17891 dynamic_linker="$host_os dld.sl"
17892 shlibpath_var=SHLIB_PATH
17893 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17895 soname_spec='${libname}${release}${shared_ext}$major'
17896 ;;
17897 esac
17898 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17899 postinstall_cmds='chmod 555 $lib'
17900 ;;
17901
17902interix[3-9]*)
17903 version_type=linux
17904 need_lib_prefix=no
17905 need_version=no
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17907 soname_spec='${libname}${release}${shared_ext}$major'
17908 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17909 shlibpath_var=LD_LIBRARY_PATH
17910 shlibpath_overrides_runpath=no
17911 hardcode_into_libs=yes
17912 ;;
17913
17914irix5* | irix6* | nonstopux*)
17915 case $host_os in
17916 nonstopux*) version_type=nonstopux ;;
17917 *)
17918 if test "$lt_cv_prog_gnu_ld" = yes; then
17919 version_type=linux
17920 else
17921 version_type=irix
17922 fi ;;
17923 esac
17924 need_lib_prefix=no
17925 need_version=no
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17928 case $host_os in
17929 irix5* | nonstopux*)
17930 libsuff= shlibsuff=
17931 ;;
17932 *)
17933 case $LD in # libtool.m4 will add one of these switches to LD
17934 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17935 libsuff= shlibsuff= libmagic=32-bit;;
17936 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17937 libsuff=32 shlibsuff=N32 libmagic=N32;;
17938 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17939 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17940 *) libsuff= shlibsuff= libmagic=never-match;;
17941 esac
17942 ;;
17943 esac
17944 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17945 shlibpath_overrides_runpath=no
17946 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17947 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17948 hardcode_into_libs=yes
17949 ;;
17950
17951# No shared lib support for Linux oldld, aout, or coff.
17952linux*oldld* | linux*aout* | linux*coff*)
17953 dynamic_linker=no
17954 ;;
17955
17956# This must be Linux ELF.
17957linux* | k*bsd*-gnu)
17958 version_type=linux
17959 need_lib_prefix=no
17960 need_version=no
17961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17962 soname_spec='${libname}${release}${shared_ext}$major'
17963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17964 shlibpath_var=LD_LIBRARY_PATH
17965 shlibpath_overrides_runpath=no
17966 # This implies no fast_install, which is unacceptable.
17967 # Some rework will be needed to allow for fast_install
17968 # before this can be enabled.
17969 hardcode_into_libs=yes
17970
17971 # Append ld.so.conf contents to the search path
17972 if test -f /etc/ld.so.conf; then
17973 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' ' '`
17974 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17975 fi
17976
17977 # We used to test for /lib/ld.so.1 and disable shared libraries on
17978 # powerpc, because MkLinux only supported shared libraries with the
17979 # GNU dynamic linker. Since this was broken with cross compilers,
17980 # most powerpc-linux boxes support dynamic linking these days and
17981 # people can always --disable-shared, the test was removed, and we
17982 # assume the GNU/Linux dynamic linker is in use.
17983 dynamic_linker='GNU/Linux ld.so'
17984 ;;
17985
17986netbsdelf*-gnu)
17987 version_type=linux
17988 need_lib_prefix=no
17989 need_version=no
17990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17991 soname_spec='${libname}${release}${shared_ext}$major'
17992 shlibpath_var=LD_LIBRARY_PATH
17993 shlibpath_overrides_runpath=no
17994 hardcode_into_libs=yes
17995 dynamic_linker='NetBSD ld.elf_so'
17996 ;;
17997
17998netbsd*)
17999 version_type=sunos
18000 need_lib_prefix=no
18001 need_version=no
18002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18005 dynamic_linker='NetBSD (a.out) ld.so'
18006 else
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 dynamic_linker='NetBSD ld.elf_so'
18010 fi
18011 shlibpath_var=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath=yes
18013 hardcode_into_libs=yes
18014 ;;
18015
18016newsos6)
18017 version_type=linux
18018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 shlibpath_overrides_runpath=yes
18021 ;;
18022
18023nto-qnx*)
18024 version_type=linux
18025 need_lib_prefix=no
18026 need_version=no
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath=yes
18031 ;;
18032
18033openbsd*)
18034 version_type=sunos
18035 sys_lib_dlsearch_path_spec="/usr/lib"
18036 need_lib_prefix=no
18037 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18038 case $host_os in
18039 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18040 *) need_version=no ;;
18041 esac
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18046 case $host_os in
18047 openbsd2.[89] | openbsd2.[89].*)
18048 shlibpath_overrides_runpath=no
18049 ;;
18050 *)
18051 shlibpath_overrides_runpath=yes
18052 ;;
18053 esac
18054 else
18055 shlibpath_overrides_runpath=yes
18056 fi
18057 ;;
18058
18059os2*)
18060 libname_spec='$name'
18061 shrext_cmds=".dll"
18062 need_lib_prefix=no
18063 library_names_spec='$libname${shared_ext} $libname.a'
18064 dynamic_linker='OS/2 ld.exe'
18065 shlibpath_var=LIBPATH
18066 ;;
18067
18068osf3* | osf4* | osf5*)
18069 version_type=osf
18070 need_lib_prefix=no
18071 need_version=no
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074 shlibpath_var=LD_LIBRARY_PATH
18075 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18076 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18077 ;;
18078
18079rdos*)
18080 dynamic_linker=no
18081 ;;
18082
18083solaris*)
18084 version_type=linux
18085 need_lib_prefix=no
18086 need_version=no
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088 soname_spec='${libname}${release}${shared_ext}$major'
18089 shlibpath_var=LD_LIBRARY_PATH
18090 shlibpath_overrides_runpath=yes
18091 hardcode_into_libs=yes
18092 # ldd complains unless libraries are executable
18093 postinstall_cmds='chmod +x $lib'
18094 ;;
18095
18096sunos4*)
18097 version_type=sunos
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18099 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=yes
18102 if test "$with_gnu_ld" = yes; then
18103 need_lib_prefix=no
18104 fi
18105 need_version=yes
18106 ;;
18107
18108sysv4 | sysv4.3*)
18109 version_type=linux
18110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18111 soname_spec='${libname}${release}${shared_ext}$major'
18112 shlibpath_var=LD_LIBRARY_PATH
18113 case $host_vendor in
18114 sni)
18115 shlibpath_overrides_runpath=no
18116 need_lib_prefix=no
18117 export_dynamic_flag_spec='${wl}-Blargedynsym'
18118 runpath_var=LD_RUN_PATH
18119 ;;
18120 siemens)
18121 need_lib_prefix=no
18122 ;;
18123 motorola)
18124 need_lib_prefix=no
18125 need_version=no
18126 shlibpath_overrides_runpath=no
18127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18128 ;;
18129 esac
18130 ;;
18131
18132sysv4*MP*)
18133 if test -d /usr/nec ;then
18134 version_type=linux
18135 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18136 soname_spec='$libname${shared_ext}.$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 fi
18139 ;;
18140
18141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18142 version_type=freebsd-elf
18143 need_lib_prefix=no
18144 need_version=no
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18146 soname_spec='${libname}${release}${shared_ext}$major'
18147 shlibpath_var=LD_LIBRARY_PATH
18148 hardcode_into_libs=yes
18149 if test "$with_gnu_ld" = yes; then
18150 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18151 shlibpath_overrides_runpath=no
18152 else
18153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18154 shlibpath_overrides_runpath=yes
18155 case $host_os in
18156 sco3.2v5*)
18157 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18158 ;;
18159 esac
18160 fi
18161 sys_lib_dlsearch_path_spec='/usr/lib'
18162 ;;
18163
18164uts4*)
18165 version_type=linux
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167 soname_spec='${libname}${release}${shared_ext}$major'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 ;;
18170
18171*)
18172 dynamic_linker=no
18173 ;;
18174esac
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18176$as_echo "$dynamic_linker" >&6; }
18177test "$dynamic_linker" = no && can_build_shared=no
18178
18179if ${lt_cv_sys_lib_search_path_spec+:} false; then :
18180 $as_echo_n "(cached) " >&6
18181else
18182 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18183fi
18184
18185sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18186if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
18187 $as_echo_n "(cached) " >&6
18188else
18189 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18190fi
18191
18192sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18193
18194variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18195if test "$GCC" = yes; then
18196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18197fi
18198
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18200$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18201hardcode_action_GCJ=
18202if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18203 test -n "$runpath_var_GCJ" || \
18204 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18205
18206 # We can hardcode non-existant directories.
18207 if test "$hardcode_direct_GCJ" != no &&
18208 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18209 # have to relink, otherwise we might link with an installed library
18210 # when we should be linking with a yet-to-be-installed one
18211 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18212 test "$hardcode_minus_L_GCJ" != no; then
18213 # Linking always hardcodes the temporary library directory.
18214 hardcode_action_GCJ=relink
18215 else
18216 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18217 hardcode_action_GCJ=immediate
18218 fi
18219else
18220 # We cannot hardcode anything, or else we can only hardcode existing
18221 # directories.
18222 hardcode_action_GCJ=unsupported
18223fi
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18225$as_echo "$hardcode_action_GCJ" >&6; }
18226
18227if test "$hardcode_action_GCJ" = relink; then
18228 # Fast installation is not supported
18229 enable_fast_install=no
18230elif test "$shlibpath_overrides_runpath" = yes ||
18231 test "$enable_shared" = no; then
18232 # Fast installation is not necessary
18233 enable_fast_install=needless
18234fi
18235
18236
18237# The else clause should only fire when bootstrapping the
18238# libtool distribution, otherwise you forgot to ship ltmain.sh
18239# with your package, and you will get complaints that there are
18240# no rules to generate ltmain.sh.
18241if test -f "$ltmain"; then
18242 # See if we are running on zsh, and set the options which allow our commands through
18243 # without removal of \ escapes.
18244 if test -n "${ZSH_VERSION+set}" ; then
18245 setopt NO_GLOB_SUBST
18246 fi
18247 # Now quote all the things that may contain metacharacters while being
18248 # careful not to overquote the AC_SUBSTed values. We take copies of the
18249 # variables and quote the copies for generation of the libtool script.
18250 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18251 SED SHELL STRIP \
18252 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18253 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18254 deplibs_check_method reload_flag reload_cmds need_locks \
18255 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18256 lt_cv_sys_global_symbol_to_c_name_address \
18257 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18258 old_postinstall_cmds old_postuninstall_cmds \
18259 compiler_GCJ \
18260 CC_GCJ \
18261 LD_GCJ \
18262 lt_prog_compiler_wl_GCJ \
18263 lt_prog_compiler_pic_GCJ \
18264 lt_prog_compiler_static_GCJ \
18265 lt_prog_compiler_no_builtin_flag_GCJ \
18266 export_dynamic_flag_spec_GCJ \
18267 thread_safe_flag_spec_GCJ \
18268 whole_archive_flag_spec_GCJ \
18269 enable_shared_with_static_runtimes_GCJ \
18270 old_archive_cmds_GCJ \
18271 old_archive_from_new_cmds_GCJ \
18272 predep_objects_GCJ \
18273 postdep_objects_GCJ \
18274 predeps_GCJ \
18275 postdeps_GCJ \
18276 compiler_lib_search_path_GCJ \
18277 compiler_lib_search_dirs_GCJ \
18278 archive_cmds_GCJ \
18279 archive_expsym_cmds_GCJ \
18280 postinstall_cmds_GCJ \
18281 postuninstall_cmds_GCJ \
18282 old_archive_from_expsyms_cmds_GCJ \
18283 allow_undefined_flag_GCJ \
18284 no_undefined_flag_GCJ \
18285 export_symbols_cmds_GCJ \
18286 hardcode_libdir_flag_spec_GCJ \
18287 hardcode_libdir_flag_spec_ld_GCJ \
18288 hardcode_libdir_separator_GCJ \
18289 hardcode_automatic_GCJ \
18290 module_cmds_GCJ \
18291 module_expsym_cmds_GCJ \
18292 lt_cv_prog_compiler_c_o_GCJ \
18293 fix_srcfile_path_GCJ \
18294 exclude_expsyms_GCJ \
18295 include_expsyms_GCJ; do
18296
18297 case $var in
18298 old_archive_cmds_GCJ | \
18299 old_archive_from_new_cmds_GCJ | \
18300 archive_cmds_GCJ | \
18301 archive_expsym_cmds_GCJ | \
18302 module_cmds_GCJ | \
18303 module_expsym_cmds_GCJ | \
18304 old_archive_from_expsyms_cmds_GCJ | \
18305 export_symbols_cmds_GCJ | \
18306 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18307 postinstall_cmds | postuninstall_cmds | \
18308 old_postinstall_cmds | old_postuninstall_cmds | \
18309 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18310 # Double-quote double-evaled strings.
18311 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18312 ;;
18313 *)
18314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18315 ;;
18316 esac
18317 done
18318
18319 case $lt_echo in
18320 *'\$0 --fallback-echo"')
18321 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18322 ;;
18323 esac
18324
18325cfgfile="$ofile"
18326
18327 cat <<__EOF__ >> "$cfgfile"
18328# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18329
18330# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18331
18332# Shell to use when invoking shell scripts.
18333SHELL=$lt_SHELL
18334
18335# Whether or not to build shared libraries.
18336build_libtool_libs=$enable_shared
18337
18338# Whether or not to build static libraries.
18339build_old_libs=$enable_static
18340
18341# Whether or not to add -lc for building shared libraries.
18342build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18343
18344# Whether or not to disallow shared libs when runtime libs are static
18345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18346
18347# Whether or not to optimize for fast installation.
18348fast_install=$enable_fast_install
18349
18350# The host system.
18351host_alias=$host_alias
18352host=$host
18353host_os=$host_os
18354
18355# The build system.
18356build_alias=$build_alias
18357build=$build
18358build_os=$build_os
18359
18360# An echo program that does not interpret backslashes.
18361echo=$lt_echo
18362
18363# The archiver.
18364AR=$lt_AR
18365AR_FLAGS=$lt_AR_FLAGS
18366
18367# A C compiler.
18368LTCC=$lt_LTCC
18369
18370# LTCC compiler flags.
18371LTCFLAGS=$lt_LTCFLAGS
18372
18373# A language-specific compiler.
18374CC=$lt_compiler_GCJ
18375
18376# Is the compiler the GNU C compiler?
18377with_gcc=$GCC_GCJ
18378
18379# An ERE matcher.
18380EGREP=$lt_EGREP
18381
18382# The linker used to build libraries.
18383LD=$lt_LD_GCJ
18384
18385# Whether we need hard or soft links.
18386LN_S=$lt_LN_S
18387
18388# A BSD-compatible nm program.
18389NM=$lt_NM
18390
18391# A symbol stripping program
18392STRIP=$lt_STRIP
18393
18394# Used to examine libraries when file_magic_cmd begins "file"
18395MAGIC_CMD=$MAGIC_CMD
18396
18397# Used on cygwin: DLL creation program.
18398DLLTOOL="$DLLTOOL"
18399
18400# Used on cygwin: object dumper.
18401OBJDUMP="$OBJDUMP"
18402
18403# Used on cygwin: assembler.
18404AS="$AS"
18405
18406# The name of the directory that contains temporary libtool files.
18407objdir=$objdir
18408
18409# How to create reloadable object files.
18410reload_flag=$lt_reload_flag
18411reload_cmds=$lt_reload_cmds
18412
18413# How to pass a linker flag through the compiler.
18414wl=$lt_lt_prog_compiler_wl_GCJ
18415
18416# Object file suffix (normally "o").
18417objext="$ac_objext"
18418
18419# Old archive suffix (normally "a").
18420libext="$libext"
18421
18422# Shared library suffix (normally ".so").
18423shrext_cmds='$shrext_cmds'
18424
18425# Executable file suffix (normally "").
18426exeext="$exeext"
18427
18428# Additional compiler flags for building library objects.
18429pic_flag=$lt_lt_prog_compiler_pic_GCJ
18430pic_mode=$pic_mode
18431
18432# What is the maximum length of a command?
18433max_cmd_len=$lt_cv_sys_max_cmd_len
18434
18435# Does compiler simultaneously support -c and -o options?
18436compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18437
18438# Must we lock files when doing compilation?
18439need_locks=$lt_need_locks
18440
18441# Do we need the lib prefix for modules?
18442need_lib_prefix=$need_lib_prefix
18443
18444# Do we need a version for libraries?
18445need_version=$need_version
18446
18447# Whether dlopen is supported.
18448dlopen_support=$enable_dlopen
18449
18450# Whether dlopen of programs is supported.
18451dlopen_self=$enable_dlopen_self
18452
18453# Whether dlopen of statically linked programs is supported.
18454dlopen_self_static=$enable_dlopen_self_static
18455
18456# Compiler flag to prevent dynamic linking.
18457link_static_flag=$lt_lt_prog_compiler_static_GCJ
18458
18459# Compiler flag to turn off builtin functions.
18460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18461
18462# Compiler flag to allow reflexive dlopens.
18463export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18464
18465# Compiler flag to generate shared objects directly from archives.
18466whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18467
18468# Compiler flag to generate thread-safe objects.
18469thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18470
18471# Library versioning type.
18472version_type=$version_type
18473
18474# Format of library name prefix.
18475libname_spec=$lt_libname_spec
18476
18477# List of archive names. First name is the real one, the rest are links.
18478# The last name is the one that the linker finds with -lNAME.
18479library_names_spec=$lt_library_names_spec
18480
18481# The coded name of the library, if different from the real name.
18482soname_spec=$lt_soname_spec
18483
18484# Commands used to build and install an old-style archive.
18485RANLIB=$lt_RANLIB
18486old_archive_cmds=$lt_old_archive_cmds_GCJ
18487old_postinstall_cmds=$lt_old_postinstall_cmds
18488old_postuninstall_cmds=$lt_old_postuninstall_cmds
18489
18490# Create an old-style archive from a shared archive.
18491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18492
18493# Create a temporary old-style archive to link instead of a shared archive.
18494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18495
18496# Commands used to build and install a shared archive.
18497archive_cmds=$lt_archive_cmds_GCJ
18498archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18499postinstall_cmds=$lt_postinstall_cmds
18500postuninstall_cmds=$lt_postuninstall_cmds
18501
18502# Commands used to build a loadable module (assumed same as above if empty)
18503module_cmds=$lt_module_cmds_GCJ
18504module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18505
18506# Commands to strip libraries.
18507old_striplib=$lt_old_striplib
18508striplib=$lt_striplib
18509
18510# Dependencies to place before the objects being linked to create a
18511# shared library.
18512predep_objects=$lt_predep_objects_GCJ
18513
18514# Dependencies to place after the objects being linked to create a
18515# shared library.
18516postdep_objects=$lt_postdep_objects_GCJ
18517
18518# Dependencies to place before the objects being linked to create a
18519# shared library.
18520predeps=$lt_predeps_GCJ
18521
18522# Dependencies to place after the objects being linked to create a
18523# shared library.
18524postdeps=$lt_postdeps_GCJ
18525
18526# The directories searched by this compiler when creating a shared
18527# library
18528compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18529
18530# The library search path used internally by the compiler when linking
18531# a shared library.
18532compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18533
18534# Method to check whether dependent libraries are shared objects.
18535deplibs_check_method=$lt_deplibs_check_method
18536
18537# Command to use when deplibs_check_method == file_magic.
18538file_magic_cmd=$lt_file_magic_cmd
18539
18540# Flag that allows shared libraries with undefined symbols to be built.
18541allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18542
18543# Flag that forces no undefined symbols.
18544no_undefined_flag=$lt_no_undefined_flag_GCJ
18545
18546# Commands used to finish a libtool library installation in a directory.
18547finish_cmds=$lt_finish_cmds
18548
18549# Same as above, but a single script fragment to be evaled but not shown.
18550finish_eval=$lt_finish_eval
18551
18552# Take the output of nm and produce a listing of raw symbols and C names.
18553global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18554
18555# Transform the output of nm in a proper C declaration
18556global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18557
18558# Transform the output of nm in a C name address pair
18559global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18560
18561# This is the shared library runtime path variable.
18562runpath_var=$runpath_var
18563
18564# This is the shared library path variable.
18565shlibpath_var=$shlibpath_var
18566
18567# Is shlibpath searched before the hard-coded library search path?
18568shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18569
18570# How to hardcode a shared library path into an executable.
18571hardcode_action=$hardcode_action_GCJ
18572
18573# Whether we should hardcode library paths into libraries.
18574hardcode_into_libs=$hardcode_into_libs
18575
18576# Flag to hardcode \$libdir into a binary during linking.
18577# This must work even if \$libdir does not exist.
18578hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18579
18580# If ld is used when linking, flag to hardcode \$libdir into
18581# a binary during linking. This must work even if \$libdir does
18582# not exist.
18583hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18584
18585# Whether we need a single -rpath flag with a separated argument.
18586hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18587
18588# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18589# resulting binary.
18590hardcode_direct=$hardcode_direct_GCJ
18591
18592# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18593# resulting binary.
18594hardcode_minus_L=$hardcode_minus_L_GCJ
18595
18596# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18597# the resulting binary.
18598hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18599
18600# Set to yes if building a shared library automatically hardcodes DIR into the library
18601# and all subsequent libraries and executables linked against it.
18602hardcode_automatic=$hardcode_automatic_GCJ
18603
18604# Variables whose values should be saved in libtool wrapper scripts and
18605# restored at relink time.
18606variables_saved_for_relink="$variables_saved_for_relink"
18607
18608# Whether libtool must link a program against all its dependency libraries.
18609link_all_deplibs=$link_all_deplibs_GCJ
18610
18611# Compile-time system search path for libraries
18612sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18613
18614# Run-time system search path for libraries
18615sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18616
18617# Fix the shell variable \$srcfile for the compiler.
18618fix_srcfile_path=$lt_fix_srcfile_path
18619
18620# Set to yes if exported symbols are required.
18621always_export_symbols=$always_export_symbols_GCJ
18622
18623# The commands to list exported symbols.
18624export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18625
18626# The commands to extract the exported symbol list from a shared archive.
18627extract_expsyms_cmds=$lt_extract_expsyms_cmds
18628
18629# Symbols that should not be listed in the preloaded symbols.
18630exclude_expsyms=$lt_exclude_expsyms_GCJ
18631
18632# Symbols that must always be exported.
18633include_expsyms=$lt_include_expsyms_GCJ
18634
18635# ### END LIBTOOL TAG CONFIG: $tagname
18636
18637__EOF__
18638
18639
18640else
18641 # If there is no Makefile yet, we rely on a make rule to execute
18642 # `config.status --recheck' to rerun these tests and create the
18643 # libtool script then.
18644 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18645 if test -f "$ltmain_in"; then
18646 test -f Makefile && make "$ltmain"
18647 fi
18648fi
18649
18650
18651ac_ext=c
18652ac_cpp='$CPP $CPPFLAGS'
18653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18655ac_compiler_gnu=$ac_cv_c_compiler_gnu
18656
18657CC="$lt_save_CC"
18658
18659 else
18660 tagname=""
18661 fi
18662 ;;
18663
18664 RC)
18665
18666
18667# Source file extension for RC test sources.
18668ac_ext=rc
18669
18670# Object file extension for compiled RC test sources.
18671objext=o
18672objext_RC=$objext
18673
18674# Code to be used in simple compile tests
18675lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18676
18677# Code to be used in simple link tests
18678lt_simple_link_test_code="$lt_simple_compile_test_code"
18679
18680# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18681
18682# If no C compiler was specified, use CC.
18683LTCC=${LTCC-"$CC"}
18684
18685# If no C compiler flags were specified, use CFLAGS.
18686LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18687
18688# Allow CC to be a program name with arguments.
18689compiler=$CC
18690
18691
18692# save warnings/boilerplate of simple test code
18693ac_outfile=conftest.$ac_objext
18694echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18695eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18696_lt_compiler_boilerplate=`cat conftest.err`
18697$rm conftest*
18698
18699ac_outfile=conftest.$ac_objext
18700echo "$lt_simple_link_test_code" >conftest.$ac_ext
18701eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18702_lt_linker_boilerplate=`cat conftest.err`
18703$rm -r conftest*
18704
18705
18706# Allow CC to be a program name with arguments.
18707lt_save_CC="$CC"
18708CC=${RC-"windres"}
18709compiler=$CC
18710compiler_RC=$CC
18711for cc_temp in $compiler""; do
18712 case $cc_temp in
18713 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18714 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18715 \-*) ;;
18716 *) break;;
18717 esac
18718done
18719cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18720
18721lt_cv_prog_compiler_c_o_RC=yes
18722
18723# The else clause should only fire when bootstrapping the
18724# libtool distribution, otherwise you forgot to ship ltmain.sh
18725# with your package, and you will get complaints that there are
18726# no rules to generate ltmain.sh.
18727if test -f "$ltmain"; then
18728 # See if we are running on zsh, and set the options which allow our commands through
18729 # without removal of \ escapes.
18730 if test -n "${ZSH_VERSION+set}" ; then
18731 setopt NO_GLOB_SUBST
18732 fi
18733 # Now quote all the things that may contain metacharacters while being
18734 # careful not to overquote the AC_SUBSTed values. We take copies of the
18735 # variables and quote the copies for generation of the libtool script.
18736 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18737 SED SHELL STRIP \
18738 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18739 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18740 deplibs_check_method reload_flag reload_cmds need_locks \
18741 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18742 lt_cv_sys_global_symbol_to_c_name_address \
18743 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18744 old_postinstall_cmds old_postuninstall_cmds \
18745 compiler_RC \
18746 CC_RC \
18747 LD_RC \
18748 lt_prog_compiler_wl_RC \
18749 lt_prog_compiler_pic_RC \
18750 lt_prog_compiler_static_RC \
18751 lt_prog_compiler_no_builtin_flag_RC \
18752 export_dynamic_flag_spec_RC \
18753 thread_safe_flag_spec_RC \
18754 whole_archive_flag_spec_RC \
18755 enable_shared_with_static_runtimes_RC \
18756 old_archive_cmds_RC \
18757 old_archive_from_new_cmds_RC \
18758 predep_objects_RC \
18759 postdep_objects_RC \
18760 predeps_RC \
18761 postdeps_RC \
18762 compiler_lib_search_path_RC \
18763 compiler_lib_search_dirs_RC \
18764 archive_cmds_RC \
18765 archive_expsym_cmds_RC \
18766 postinstall_cmds_RC \
18767 postuninstall_cmds_RC \
18768 old_archive_from_expsyms_cmds_RC \
18769 allow_undefined_flag_RC \
18770 no_undefined_flag_RC \
18771 export_symbols_cmds_RC \
18772 hardcode_libdir_flag_spec_RC \
18773 hardcode_libdir_flag_spec_ld_RC \
18774 hardcode_libdir_separator_RC \
18775 hardcode_automatic_RC \
18776 module_cmds_RC \
18777 module_expsym_cmds_RC \
18778 lt_cv_prog_compiler_c_o_RC \
18779 fix_srcfile_path_RC \
18780 exclude_expsyms_RC \
18781 include_expsyms_RC; do
18782
18783 case $var in
18784 old_archive_cmds_RC | \
18785 old_archive_from_new_cmds_RC | \
18786 archive_cmds_RC | \
18787 archive_expsym_cmds_RC | \
18788 module_cmds_RC | \
18789 module_expsym_cmds_RC | \
18790 old_archive_from_expsyms_cmds_RC | \
18791 export_symbols_cmds_RC | \
18792 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18793 postinstall_cmds | postuninstall_cmds | \
18794 old_postinstall_cmds | old_postuninstall_cmds | \
18795 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18796 # Double-quote double-evaled strings.
18797 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18798 ;;
18799 *)
18800 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18801 ;;
18802 esac
18803 done
18804
18805 case $lt_echo in
18806 *'\$0 --fallback-echo"')
18807 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18808 ;;
18809 esac
18810
18811cfgfile="$ofile"
18812
18813 cat <<__EOF__ >> "$cfgfile"
18814# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18815
18816# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18817
18818# Shell to use when invoking shell scripts.
18819SHELL=$lt_SHELL
18820
18821# Whether or not to build shared libraries.
18822build_libtool_libs=$enable_shared
18823
18824# Whether or not to build static libraries.
18825build_old_libs=$enable_static
18826
18827# Whether or not to add -lc for building shared libraries.
18828build_libtool_need_lc=$archive_cmds_need_lc_RC
18829
18830# Whether or not to disallow shared libs when runtime libs are static
18831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18832
18833# Whether or not to optimize for fast installation.
18834fast_install=$enable_fast_install
18835
18836# The host system.
18837host_alias=$host_alias
18838host=$host
18839host_os=$host_os
18840
18841# The build system.
18842build_alias=$build_alias
18843build=$build
18844build_os=$build_os
18845
18846# An echo program that does not interpret backslashes.
18847echo=$lt_echo
18848
18849# The archiver.
18850AR=$lt_AR
18851AR_FLAGS=$lt_AR_FLAGS
18852
18853# A C compiler.
18854LTCC=$lt_LTCC
18855
18856# LTCC compiler flags.
18857LTCFLAGS=$lt_LTCFLAGS
18858
18859# A language-specific compiler.
18860CC=$lt_compiler_RC
18861
18862# Is the compiler the GNU C compiler?
18863with_gcc=$GCC_RC
18864
18865# An ERE matcher.
18866EGREP=$lt_EGREP
18867
18868# The linker used to build libraries.
18869LD=$lt_LD_RC
18870
18871# Whether we need hard or soft links.
18872LN_S=$lt_LN_S
18873
18874# A BSD-compatible nm program.
18875NM=$lt_NM
18876
18877# A symbol stripping program
18878STRIP=$lt_STRIP
18879
18880# Used to examine libraries when file_magic_cmd begins "file"
18881MAGIC_CMD=$MAGIC_CMD
18882
18883# Used on cygwin: DLL creation program.
18884DLLTOOL="$DLLTOOL"
18885
18886# Used on cygwin: object dumper.
18887OBJDUMP="$OBJDUMP"
18888
18889# Used on cygwin: assembler.
18890AS="$AS"
18891
18892# The name of the directory that contains temporary libtool files.
18893objdir=$objdir
18894
18895# How to create reloadable object files.
18896reload_flag=$lt_reload_flag
18897reload_cmds=$lt_reload_cmds
18898
18899# How to pass a linker flag through the compiler.
18900wl=$lt_lt_prog_compiler_wl_RC
18901
18902# Object file suffix (normally "o").
18903objext="$ac_objext"
18904
18905# Old archive suffix (normally "a").
18906libext="$libext"
18907
18908# Shared library suffix (normally ".so").
18909shrext_cmds='$shrext_cmds'
18910
18911# Executable file suffix (normally "").
18912exeext="$exeext"
18913
18914# Additional compiler flags for building library objects.
18915pic_flag=$lt_lt_prog_compiler_pic_RC
18916pic_mode=$pic_mode
18917
18918# What is the maximum length of a command?
18919max_cmd_len=$lt_cv_sys_max_cmd_len
18920
18921# Does compiler simultaneously support -c and -o options?
18922compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18923
18924# Must we lock files when doing compilation?
18925need_locks=$lt_need_locks
18926
18927# Do we need the lib prefix for modules?
18928need_lib_prefix=$need_lib_prefix
18929
18930# Do we need a version for libraries?
18931need_version=$need_version
18932
18933# Whether dlopen is supported.
18934dlopen_support=$enable_dlopen
18935
18936# Whether dlopen of programs is supported.
18937dlopen_self=$enable_dlopen_self
18938
18939# Whether dlopen of statically linked programs is supported.
18940dlopen_self_static=$enable_dlopen_self_static
18941
18942# Compiler flag to prevent dynamic linking.
18943link_static_flag=$lt_lt_prog_compiler_static_RC
18944
18945# Compiler flag to turn off builtin functions.
18946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18947
18948# Compiler flag to allow reflexive dlopens.
18949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18950
18951# Compiler flag to generate shared objects directly from archives.
18952whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18953
18954# Compiler flag to generate thread-safe objects.
18955thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18956
18957# Library versioning type.
18958version_type=$version_type
18959
18960# Format of library name prefix.
18961libname_spec=$lt_libname_spec
18962
18963# List of archive names. First name is the real one, the rest are links.
18964# The last name is the one that the linker finds with -lNAME.
18965library_names_spec=$lt_library_names_spec
18966
18967# The coded name of the library, if different from the real name.
18968soname_spec=$lt_soname_spec
18969
18970# Commands used to build and install an old-style archive.
18971RANLIB=$lt_RANLIB
18972old_archive_cmds=$lt_old_archive_cmds_RC
18973old_postinstall_cmds=$lt_old_postinstall_cmds
18974old_postuninstall_cmds=$lt_old_postuninstall_cmds
18975
18976# Create an old-style archive from a shared archive.
18977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18978
18979# Create a temporary old-style archive to link instead of a shared archive.
18980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18981
18982# Commands used to build and install a shared archive.
18983archive_cmds=$lt_archive_cmds_RC
18984archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18985postinstall_cmds=$lt_postinstall_cmds
18986postuninstall_cmds=$lt_postuninstall_cmds
18987
18988# Commands used to build a loadable module (assumed same as above if empty)
18989module_cmds=$lt_module_cmds_RC
18990module_expsym_cmds=$lt_module_expsym_cmds_RC
18991
18992# Commands to strip libraries.
18993old_striplib=$lt_old_striplib
18994striplib=$lt_striplib
18995
18996# Dependencies to place before the objects being linked to create a
18997# shared library.
18998predep_objects=$lt_predep_objects_RC
18999
19000# Dependencies to place after the objects being linked to create a
19001# shared library.
19002postdep_objects=$lt_postdep_objects_RC
19003
19004# Dependencies to place before the objects being linked to create a
19005# shared library.
19006predeps=$lt_predeps_RC
19007
19008# Dependencies to place after the objects being linked to create a
19009# shared library.
19010postdeps=$lt_postdeps_RC
19011
19012# The directories searched by this compiler when creating a shared
19013# library
19014compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19015
19016# The library search path used internally by the compiler when linking
19017# a shared library.
19018compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19019
19020# Method to check whether dependent libraries are shared objects.
19021deplibs_check_method=$lt_deplibs_check_method
19022
19023# Command to use when deplibs_check_method == file_magic.
19024file_magic_cmd=$lt_file_magic_cmd
19025
19026# Flag that allows shared libraries with undefined symbols to be built.
19027allow_undefined_flag=$lt_allow_undefined_flag_RC
19028
19029# Flag that forces no undefined symbols.
19030no_undefined_flag=$lt_no_undefined_flag_RC
19031
19032# Commands used to finish a libtool library installation in a directory.
19033finish_cmds=$lt_finish_cmds
19034
19035# Same as above, but a single script fragment to be evaled but not shown.
19036finish_eval=$lt_finish_eval
19037
19038# Take the output of nm and produce a listing of raw symbols and C names.
19039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19040
19041# Transform the output of nm in a proper C declaration
19042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19043
19044# Transform the output of nm in a C name address pair
19045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19046
19047# This is the shared library runtime path variable.
19048runpath_var=$runpath_var
19049
19050# This is the shared library path variable.
19051shlibpath_var=$shlibpath_var
19052
19053# Is shlibpath searched before the hard-coded library search path?
19054shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19055
19056# How to hardcode a shared library path into an executable.
19057hardcode_action=$hardcode_action_RC
19058
19059# Whether we should hardcode library paths into libraries.
19060hardcode_into_libs=$hardcode_into_libs
19061
19062# Flag to hardcode \$libdir into a binary during linking.
19063# This must work even if \$libdir does not exist.
19064hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19065
19066# If ld is used when linking, flag to hardcode \$libdir into
19067# a binary during linking. This must work even if \$libdir does
19068# not exist.
19069hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19070
19071# Whether we need a single -rpath flag with a separated argument.
19072hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19073
19074# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19075# resulting binary.
19076hardcode_direct=$hardcode_direct_RC
19077
19078# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19079# resulting binary.
19080hardcode_minus_L=$hardcode_minus_L_RC
19081
19082# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19083# the resulting binary.
19084hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19085
19086# Set to yes if building a shared library automatically hardcodes DIR into the library
19087# and all subsequent libraries and executables linked against it.
19088hardcode_automatic=$hardcode_automatic_RC
19089
19090# Variables whose values should be saved in libtool wrapper scripts and
19091# restored at relink time.
19092variables_saved_for_relink="$variables_saved_for_relink"
19093
19094# Whether libtool must link a program against all its dependency libraries.
19095link_all_deplibs=$link_all_deplibs_RC
19096
19097# Compile-time system search path for libraries
19098sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19099
19100# Run-time system search path for libraries
19101sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19102
19103# Fix the shell variable \$srcfile for the compiler.
19104fix_srcfile_path=$lt_fix_srcfile_path
19105
19106# Set to yes if exported symbols are required.
19107always_export_symbols=$always_export_symbols_RC
19108
19109# The commands to list exported symbols.
19110export_symbols_cmds=$lt_export_symbols_cmds_RC
19111
19112# The commands to extract the exported symbol list from a shared archive.
19113extract_expsyms_cmds=$lt_extract_expsyms_cmds
19114
19115# Symbols that should not be listed in the preloaded symbols.
19116exclude_expsyms=$lt_exclude_expsyms_RC
19117
19118# Symbols that must always be exported.
19119include_expsyms=$lt_include_expsyms_RC
19120
19121# ### END LIBTOOL TAG CONFIG: $tagname
19122
19123__EOF__
19124
19125
19126else
19127 # If there is no Makefile yet, we rely on a make rule to execute
19128 # `config.status --recheck' to rerun these tests and create the
19129 # libtool script then.
19130 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19131 if test -f "$ltmain_in"; then
19132 test -f Makefile && make "$ltmain"
19133 fi
19134fi
19135
19136
19137ac_ext=c
19138ac_cpp='$CPP $CPPFLAGS'
19139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19141ac_compiler_gnu=$ac_cv_c_compiler_gnu
19142
19143CC="$lt_save_CC"
19144
19145 ;;
19146
19147 *)
19148 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19149 ;;
19150 esac
19151
19152 # Append the new tag name to the list of available tags.
19153 if test -n "$tagname" ; then
19154 available_tags="$available_tags $tagname"
19155 fi
19156 fi
19157 done
19158 IFS="$lt_save_ifs"
19159
19160 # Now substitute the updated list of available tags.
19161 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19162 mv "${ofile}T" "$ofile"
19163 chmod +x "$ofile"
19164 else
19165 rm -f "${ofile}T"
19166 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19167 fi
19168fi
19169
19170
19171
19172# This can be used to rebuild libtool when needed
19173LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19174
19175# Always use our own libtool.
19176LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19177
19178# Prevent multiple expansion
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201@%:@ Check whether --with-kernel was given.
19202if test "${with_kernel+set}" = set; then :
19203 withval=$with_kernel; kbuilddir="$withval"; ksourcedir="$withval";
19204fi
19205
19206
19207@%:@ Check whether --with-kbuild was given.
19208if test "${with_kbuild+set}" = set; then :
19209 withval=$with_kbuild; kbuilddir="$withval"
19210fi
19211
19212
19213@%:@ Check whether --with-ksource was given.
19214if test "${with_ksource+set}" = set; then :
19215 withval=$with_ksource; ksourcedir="$withval"
19216fi
19217
19218
19219@%:@ Check whether --with-xtlibdir was given.
19220if test "${with_xtlibdir+set}" = set; then :
19221 withval=$with_xtlibdir; xtlibdir="$withval"
19222else
19223 xtlibdir="${libexecdir}/xtables"
19224fi
19225
19226@%:@ Check whether --enable-ipv4 was given.
19227if test "${enable_ipv4+set}" = set; then :
19228 enableval=$enable_ipv4; enable_ipv4="$enableval"
19229else
19230 enable_ipv4="yes"
19231fi
19232
19233@%:@ Check whether --enable-ipv6 was given.
19234if test "${enable_ipv6+set}" = set; then :
19235 enableval=$enable_ipv6; enable_ipv6="$enableval"
19236else
19237 enable_ipv6="yes"
19238fi
19239
19240@%:@ Check whether --enable-devel was given.
19241if test "${enable_devel+set}" = set; then :
19242 enableval=$enable_devel; enable_devel="$enableval"
19243else
19244 enable_devel="yes"
19245fi
19246
19247@%:@ Check whether --enable-libipq was given.
19248if test "${enable_libipq+set}" = set; then :
19249 enableval=$enable_libipq;
19250fi
19251
19252
19253@%:@ Check whether --with-pkgconfigdir was given.
19254if test "${with_pkgconfigdir+set}" = set; then :
19255 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
19256else
19257 pkgconfigdir='${libdir}/pkgconfig'
19258fi
19259
19260
19261ac_fn_c_check_header_mongrel "$LINENO" "linux/dccp.h" "ac_cv_header_linux_dccp_h" "$ac_includes_default"
19262if test "x$ac_cv_header_linux_dccp_h" = xyes; then :
19263
19264fi
19265
19266
19267
19268blacklist_modules="";
19269if test "$ac_cv_header_linux_dccp_h" != "yes"; then
19270 blacklist_modules="$blacklist_modules dccp";
19271fi;
19272
19273
19274 if test "$enable_static" = "yes"; then
19275 ENABLE_STATIC_TRUE=
19276 ENABLE_STATIC_FALSE='#'
19277else
19278 ENABLE_STATIC_TRUE='#'
19279 ENABLE_STATIC_FALSE=
19280fi
19281
19282 if test "$enable_shared" = "yes"; then
19283 ENABLE_SHARED_TRUE=
19284 ENABLE_SHARED_FALSE='#'
19285else
19286 ENABLE_SHARED_TRUE='#'
19287 ENABLE_SHARED_FALSE=
19288fi
19289
19290 if test "$enable_ipv4" = "yes"; then
19291 ENABLE_IPV4_TRUE=
19292 ENABLE_IPV4_FALSE='#'
19293else
19294 ENABLE_IPV4_TRUE='#'
19295 ENABLE_IPV4_FALSE=
19296fi
19297
19298 if test "$enable_ipv6" = "yes"; then
19299 ENABLE_IPV6_TRUE=
19300 ENABLE_IPV6_FALSE='#'
19301else
19302 ENABLE_IPV6_TRUE='#'
19303 ENABLE_IPV6_FALSE=
19304fi
19305
19306 if test "$enable_devel" = "yes"; then
19307 ENABLE_DEVEL_TRUE=
19308 ENABLE_DEVEL_FALSE='#'
19309else
19310 ENABLE_DEVEL_TRUE='#'
19311 ENABLE_DEVEL_FALSE=
19312fi
19313
19314 if test "$enable_libipq" = "yes"; then
19315 ENABLE_LIBIPQ_TRUE=
19316 ENABLE_LIBIPQ_FALSE='#'
19317else
19318 ENABLE_LIBIPQ_TRUE='#'
19319 ENABLE_LIBIPQ_FALSE=
19320fi
19321
19322
19323regular_CFLAGS="-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
19324 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
19325 -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
19326 -Winline -pipe \
19327 -DXTABLES_LIBDIR=\\\"\${xtlibdir}\\\" -DXTABLES_INTERNAL";
19328kinclude_CFLAGS="";
19329if [ "$enable_static" = yes ]; then
19330 regular_CFLAGS="$regular_CFLAGS -DNO_SHARED_LIBS=1";
19331fi
19332if [ -n "$kbuilddir" ]; then
19333 kinclude_CFLAGS="$kinclude_CFLAGS -I $kbuilddir/include";
19334fi;
19335if [ -n "$ksourcedir" ]; then
19336 kinclude_CFLAGS="$kinclude_CFLAGS -I $ksourcedir/include";
19337fi;
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347libxtables_vmajor=$(($libxtables_vcurrent - $libxtables_vage));
19348
19349
19350ac_config_files="$ac_config_files Makefile extensions/GNUmakefile include/Makefile libipq/Makefile include/xtables.h include/iptables/internal.h libiptc.pc xtables.pc"
19351
19352cat >confcache <<\_ACEOF
19353# This file is a shell script that caches the results of configure
19354# tests run on this system so they can be shared between configure
19355# scripts and configure runs, see configure's option --config-cache.
19356# It is not useful on other systems. If it contains results you don't
19357# want to keep, you may remove or edit it.
19358#
19359# config.status only pays attention to the cache file if you give it
19360# the --recheck option to rerun configure.
19361#
19362# `ac_cv_env_foo' variables (set or unset) will be overridden when
19363# loading this file, other *unset* `ac_cv_foo' will be assigned the
19364# following values.
19365
19366_ACEOF
19367
19368# The following way of writing the cache mishandles newlines in values,
19369# but we know of no workaround that is simple, portable, and efficient.
19370# So, we kill variables containing newlines.
19371# Ultrix sh set writes to stderr and can't be redirected directly,
19372# and sets the high bit in the cache file unless we assign to the vars.
19373(
19374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19375 eval ac_val=\$$ac_var
19376 case $ac_val in #(
19377 *${as_nl}*)
19378 case $ac_var in #(
19379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19380$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19381 esac
19382 case $ac_var in #(
19383 _ | IFS | as_nl) ;; #(
19384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19385 *) { eval $ac_var=; unset $ac_var;} ;;
19386 esac ;;
19387 esac
19388 done
19389
19390 (set) 2>&1 |
19391 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19392 *${as_nl}ac_space=\ *)
19393 # `set' does not quote correctly, so add quotes: double-quote
19394 # substitution turns \\\\ into \\, and sed turns \\ into \.
19395 sed -n \
19396 "s/'/'\\\\''/g;
19397 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19398 ;; #(
19399 *)
19400 # `set' quotes correctly as required by POSIX, so do not add quotes.
19401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19402 ;;
19403 esac |
19404 sort
19405) |
19406 sed '
19407 /^ac_cv_env_/b end
19408 t clear
19409 :clear
19410 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19411 t end
19412 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19413 :end' >>confcache
19414if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19415 if test -w "$cache_file"; then
19416 if test "x$cache_file" != "x/dev/null"; then
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19418$as_echo "$as_me: updating cache $cache_file" >&6;}
19419 if test ! -f "$cache_file" || test -h "$cache_file"; then
19420 cat confcache >"$cache_file"
19421 else
19422 case $cache_file in #(
19423 */* | ?:*)
19424 mv -f confcache "$cache_file"$$ &&
19425 mv -f "$cache_file"$$ "$cache_file" ;; #(
19426 *)
19427 mv -f confcache "$cache_file" ;;
19428 esac
19429 fi
19430 fi
19431 else
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19433$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19434 fi
19435fi
19436rm -f confcache
19437
19438test "x$prefix" = xNONE && prefix=$ac_default_prefix
19439# Let make expand exec_prefix.
19440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19441
19442DEFS=-DHAVE_CONFIG_H
19443
19444ac_libobjs=
19445ac_ltlibobjs=
19446U=
19447for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19448 # 1. Remove the extension, and $U if already installed.
19449 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19450 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19451 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19452 # will be set to the directory where LIBOBJS objects are built.
19453 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19454 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19455done
19456LIB@&t@OBJS=$ac_libobjs
19457
19458LTLIBOBJS=$ac_ltlibobjs
19459
19460
19461if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19462 as_fn_error $? "conditional \"AMDEP\" was never defined.
19463Usually this means the macro was only invoked conditionally." "$LINENO" 5
19464fi
19465if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19467Usually this means the macro was only invoked conditionally." "$LINENO" 5
19468fi
19469if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19470 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19471Usually this means the macro was only invoked conditionally." "$LINENO" 5
19472fi
19473if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
19474 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
19475Usually this means the macro was only invoked conditionally." "$LINENO" 5
19476fi
19477if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
19478 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
19479Usually this means the macro was only invoked conditionally." "$LINENO" 5
19480fi
19481if test -z "${ENABLE_IPV4_TRUE}" && test -z "${ENABLE_IPV4_FALSE}"; then
19482 as_fn_error $? "conditional \"ENABLE_IPV4\" was never defined.
19483Usually this means the macro was only invoked conditionally." "$LINENO" 5
19484fi
19485if test -z "${ENABLE_IPV6_TRUE}" && test -z "${ENABLE_IPV6_FALSE}"; then
19486 as_fn_error $? "conditional \"ENABLE_IPV6\" was never defined.
19487Usually this means the macro was only invoked conditionally." "$LINENO" 5
19488fi
19489if test -z "${ENABLE_DEVEL_TRUE}" && test -z "${ENABLE_DEVEL_FALSE}"; then
19490 as_fn_error $? "conditional \"ENABLE_DEVEL\" was never defined.
19491Usually this means the macro was only invoked conditionally." "$LINENO" 5
19492fi
19493if test -z "${ENABLE_LIBIPQ_TRUE}" && test -z "${ENABLE_LIBIPQ_FALSE}"; then
19494 as_fn_error $? "conditional \"ENABLE_LIBIPQ\" was never defined.
19495Usually this means the macro was only invoked conditionally." "$LINENO" 5
19496fi
19497
19498: "${CONFIG_STATUS=./config.status}"
19499ac_write_fail=0
19500ac_clean_files_save=$ac_clean_files
19501ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19504as_write_fail=0
19505cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19506#! $SHELL
19507# Generated by $as_me.
19508# Run this file to recreate the current configuration.
19509# Compiler output produced by configure, useful for debugging
19510# configure, is in config.log if it exists.
19511
19512debug=false
19513ac_cs_recheck=false
19514ac_cs_silent=false
19515
19516SHELL=\${CONFIG_SHELL-$SHELL}
19517export SHELL
19518_ASEOF
19519cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19520## -------------------- ##
19521## M4sh Initialization. ##
19522## -------------------- ##
19523
19524# Be more Bourne compatible
19525DUALCASE=1; export DUALCASE # for MKS sh
19526if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19527 emulate sh
19528 NULLCMD=:
19529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19530 # is contrary to our usage. Disable this feature.
19531 alias -g '${1+"$@"}'='"$@"'
19532 setopt NO_GLOB_SUBST
19533else
19534 case `(set -o) 2>/dev/null` in @%:@(
19535 *posix*) :
19536 set -o posix ;; @%:@(
19537 *) :
19538 ;;
19539esac
19540fi
19541
19542
19543as_nl='
19544'
19545export as_nl
19546# Printing a long string crashes Solaris 7 /usr/bin/printf.
19547as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19549as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19550# Prefer a ksh shell builtin over an external printf program on Solaris,
19551# but without wasting forks for bash or zsh.
19552if test -z "$BASH_VERSION$ZSH_VERSION" \
19553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19554 as_echo='print -r --'
19555 as_echo_n='print -rn --'
19556elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19557 as_echo='printf %s\n'
19558 as_echo_n='printf %s'
19559else
19560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19562 as_echo_n='/usr/ucb/echo -n'
19563 else
19564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19565 as_echo_n_body='eval
19566 arg=$1;
19567 case $arg in @%:@(
19568 *"$as_nl"*)
19569 expr "X$arg" : "X\\(.*\\)$as_nl";
19570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19571 esac;
19572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19573 '
19574 export as_echo_n_body
19575 as_echo_n='sh -c $as_echo_n_body as_echo'
19576 fi
19577 export as_echo_body
19578 as_echo='sh -c $as_echo_body as_echo'
19579fi
19580
19581# The user is always right.
19582if test "${PATH_SEPARATOR+set}" != set; then
19583 PATH_SEPARATOR=:
19584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19586 PATH_SEPARATOR=';'
19587 }
19588fi
19589
19590
19591# IFS
19592# We need space, tab and new line, in precisely that order. Quoting is
19593# there to prevent editors from complaining about space-tab.
19594# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19595# splitting by setting IFS to empty value.)
19596IFS=" "" $as_nl"
19597
19598# Find who we are. Look in the path if we contain no directory separator.
19599as_myself=
19600case $0 in @%:@((
19601 *[\\/]* ) as_myself=$0 ;;
19602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19603for as_dir in $PATH
19604do
19605 IFS=$as_save_IFS
19606 test -z "$as_dir" && as_dir=.
19607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19608 done
19609IFS=$as_save_IFS
19610
19611 ;;
19612esac
19613# We did not find ourselves, most probably we were run as `sh COMMAND'
19614# in which case we are not to be found in the path.
19615if test "x$as_myself" = x; then
19616 as_myself=$0
19617fi
19618if test ! -f "$as_myself"; then
19619 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19620 exit 1
19621fi
19622
19623# Unset variables that we do not need and which cause bugs (e.g. in
19624# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19625# suppresses any "Segmentation fault" message there. '((' could
19626# trigger a bug in pdksh 5.2.14.
19627for as_var in BASH_ENV ENV MAIL MAILPATH
19628do eval test x\${$as_var+set} = xset \
19629 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19630done
19631PS1='$ '
19632PS2='> '
19633PS4='+ '
19634
19635# NLS nuisances.
19636LC_ALL=C
19637export LC_ALL
19638LANGUAGE=C
19639export LANGUAGE
19640
19641# CDPATH.
19642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19643
19644
19645@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
19646@%:@ ----------------------------------------
19647@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19648@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19649@%:@ script with STATUS, using 1 if that was 0.
19650as_fn_error ()
19651{
19652 as_status=$1; test $as_status -eq 0 && as_status=1
19653 if test "$4"; then
19654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19655 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19656 fi
19657 $as_echo "$as_me: error: $2" >&2
19658 as_fn_exit $as_status
19659} @%:@ as_fn_error
19660
19661
19662@%:@ as_fn_set_status STATUS
19663@%:@ -----------------------
19664@%:@ Set @S|@? to STATUS, without forking.
19665as_fn_set_status ()
19666{
19667 return $1
19668} @%:@ as_fn_set_status
19669
19670@%:@ as_fn_exit STATUS
19671@%:@ -----------------
19672@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19673as_fn_exit ()
19674{
19675 set +e
19676 as_fn_set_status $1
19677 exit $1
19678} @%:@ as_fn_exit
19679
19680@%:@ as_fn_unset VAR
19681@%:@ ---------------
19682@%:@ Portably unset VAR.
19683as_fn_unset ()
19684{
19685 { eval $1=; unset $1;}
19686}
19687as_unset=as_fn_unset
19688@%:@ as_fn_append VAR VALUE
19689@%:@ ----------------------
19690@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
19691@%:@ advantage of any shell optimizations that allow amortized linear growth over
19692@%:@ repeated appends, instead of the typical quadratic growth present in naive
19693@%:@ implementations.
19694if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19695 eval 'as_fn_append ()
19696 {
19697 eval $1+=\$2
19698 }'
19699else
19700 as_fn_append ()
19701 {
19702 eval $1=\$$1\$2
19703 }
19704fi # as_fn_append
19705
19706@%:@ as_fn_arith ARG...
19707@%:@ ------------------
19708@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
19709@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
19710@%:@ must be portable across @S|@(()) and expr.
19711if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19712 eval 'as_fn_arith ()
19713 {
19714 as_val=$(( $* ))
19715 }'
19716else
19717 as_fn_arith ()
19718 {
19719 as_val=`expr "$@" || test $? -eq 1`
19720 }
19721fi # as_fn_arith
19722
19723
19724if expr a : '\(a\)' >/dev/null 2>&1 &&
19725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19726 as_expr=expr
19727else
19728 as_expr=false
19729fi
19730
19731if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19732 as_basename=basename
19733else
19734 as_basename=false
19735fi
19736
19737if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19738 as_dirname=dirname
19739else
19740 as_dirname=false
19741fi
19742
19743as_me=`$as_basename -- "$0" ||
19744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19745 X"$0" : 'X\(//\)$' \| \
19746 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19747$as_echo X/"$0" |
19748 sed '/^.*\/\([^/][^/]*\)\/*$/{
19749 s//\1/
19750 q
19751 }
19752 /^X\/\(\/\/\)$/{
19753 s//\1/
19754 q
19755 }
19756 /^X\/\(\/\).*/{
19757 s//\1/
19758 q
19759 }
19760 s/.*/./; q'`
19761
19762# Avoid depending upon Character Ranges.
19763as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19764as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19765as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19766as_cr_digits='0123456789'
19767as_cr_alnum=$as_cr_Letters$as_cr_digits
19768
19769ECHO_C= ECHO_N= ECHO_T=
19770case `echo -n x` in @%:@(((((
19771-n*)
19772 case `echo 'xy\c'` in
19773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19774 xy) ECHO_C='\c';;
19775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19776 ECHO_T=' ';;
19777 esac;;
19778*)
19779 ECHO_N='-n';;
19780esac
19781
19782rm -f conf$$ conf$$.exe conf$$.file
19783if test -d conf$$.dir; then
19784 rm -f conf$$.dir/conf$$.file
19785else
19786 rm -f conf$$.dir
19787 mkdir conf$$.dir 2>/dev/null
19788fi
19789if (echo >conf$$.file) 2>/dev/null; then
19790 if ln -s conf$$.file conf$$ 2>/dev/null; then
19791 as_ln_s='ln -s'
19792 # ... but there are two gotchas:
19793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19795 # In both cases, we have to default to `cp -pR'.
19796 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19797 as_ln_s='cp -pR'
19798 elif ln conf$$.file conf$$ 2>/dev/null; then
19799 as_ln_s=ln
19800 else
19801 as_ln_s='cp -pR'
19802 fi
19803else
19804 as_ln_s='cp -pR'
19805fi
19806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19807rmdir conf$$.dir 2>/dev/null
19808
19809
19810@%:@ as_fn_mkdir_p
19811@%:@ -------------
19812@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
19813as_fn_mkdir_p ()
19814{
19815
19816 case $as_dir in #(
19817 -*) as_dir=./$as_dir;;
19818 esac
19819 test -d "$as_dir" || eval $as_mkdir_p || {
19820 as_dirs=
19821 while :; do
19822 case $as_dir in #(
19823 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19824 *) as_qdir=$as_dir;;
19825 esac
19826 as_dirs="'$as_qdir' $as_dirs"
19827 as_dir=`$as_dirname -- "$as_dir" ||
19828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19829 X"$as_dir" : 'X\(//\)[^/]' \| \
19830 X"$as_dir" : 'X\(//\)$' \| \
19831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19832$as_echo X"$as_dir" |
19833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19834 s//\1/
19835 q
19836 }
19837 /^X\(\/\/\)[^/].*/{
19838 s//\1/
19839 q
19840 }
19841 /^X\(\/\/\)$/{
19842 s//\1/
19843 q
19844 }
19845 /^X\(\/\).*/{
19846 s//\1/
19847 q
19848 }
19849 s/.*/./; q'`
19850 test -d "$as_dir" && break
19851 done
19852 test -z "$as_dirs" || eval "mkdir $as_dirs"
19853 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19854
19855
19856} @%:@ as_fn_mkdir_p
19857if mkdir -p . 2>/dev/null; then
19858 as_mkdir_p='mkdir -p "$as_dir"'
19859else
19860 test -d ./-p && rmdir ./-p
19861 as_mkdir_p=false
19862fi
19863
19864
19865@%:@ as_fn_executable_p FILE
19866@%:@ -----------------------
19867@%:@ Test if FILE is an executable regular file.
19868as_fn_executable_p ()
19869{
19870 test -f "$1" && test -x "$1"
19871} @%:@ as_fn_executable_p
19872as_test_x='test -x'
19873as_executable_p=as_fn_executable_p
19874
19875# Sed expression to map a string onto a valid CPP name.
19876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19877
19878# Sed expression to map a string onto a valid variable name.
19879as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19880
19881
19882exec 6>&1
19883## ----------------------------------- ##
19884## Main body of $CONFIG_STATUS script. ##
19885## ----------------------------------- ##
19886_ASEOF
19887test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19888
19889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19890# Save the log message, to keep $0 and so on meaningful, and to
19891# report actual input values of CONFIG_FILES etc. instead of their
19892# values after options handling.
19893ac_log="
19894This file was extended by iptables $as_me 1.4.3.2, which was
19895generated by GNU Autoconf 2.69. Invocation command line was
19896
19897 CONFIG_FILES = $CONFIG_FILES
19898 CONFIG_HEADERS = $CONFIG_HEADERS
19899 CONFIG_LINKS = $CONFIG_LINKS
19900 CONFIG_COMMANDS = $CONFIG_COMMANDS
19901 $ $0 $@
19902
19903on `(hostname || uname -n) 2>/dev/null | sed 1q`
19904"
19905
19906_ACEOF
19907
19908case $ac_config_files in *"
19909"*) set x $ac_config_files; shift; ac_config_files=$*;;
19910esac
19911
19912case $ac_config_headers in *"
19913"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19914esac
19915
19916
19917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19918# Files that config.status was made for.
19919config_files="$ac_config_files"
19920config_headers="$ac_config_headers"
19921config_commands="$ac_config_commands"
19922
19923_ACEOF
19924
19925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19926ac_cs_usage="\
19927\`$as_me' instantiates files and other configuration actions
19928from templates according to the current configuration. Unless the files
19929and actions are specified as TAGs, all are instantiated by default.
19930
19931Usage: $0 [OPTION]... [TAG]...
19932
19933 -h, --help print this help, then exit
19934 -V, --version print version number and configuration settings, then exit
19935 --config print configuration, then exit
19936 -q, --quiet, --silent
19937 do not print progress messages
19938 -d, --debug don't remove temporary files
19939 --recheck update $as_me by reconfiguring in the same conditions
19940 --file=FILE[:TEMPLATE]
19941 instantiate the configuration file FILE
19942 --header=FILE[:TEMPLATE]
19943 instantiate the configuration header FILE
19944
19945Configuration files:
19946$config_files
19947
19948Configuration headers:
19949$config_headers
19950
19951Configuration commands:
19952$config_commands
19953
19954Report bugs to the package provider."
19955
19956_ACEOF
19957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19958ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19959ac_cs_version="\\
19960iptables config.status 1.4.3.2
19961configured by $0, generated by GNU Autoconf 2.69,
19962 with options \\"\$ac_cs_config\\"
19963
19964Copyright (C) 2012 Free Software Foundation, Inc.
19965This config.status script is free software; the Free Software Foundation
19966gives unlimited permission to copy, distribute and modify it."
19967
19968ac_pwd='$ac_pwd'
19969srcdir='$srcdir'
19970INSTALL='$INSTALL'
19971MKDIR_P='$MKDIR_P'
19972AWK='$AWK'
19973test -n "\$AWK" || AWK=awk
19974_ACEOF
19975
19976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19977# The default lists apply if the user does not specify any file.
19978ac_need_defaults=:
19979while test $# != 0
19980do
19981 case $1 in
19982 --*=?*)
19983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19985 ac_shift=:
19986 ;;
19987 --*=)
19988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19989 ac_optarg=
19990 ac_shift=:
19991 ;;
19992 *)
19993 ac_option=$1
19994 ac_optarg=$2
19995 ac_shift=shift
19996 ;;
19997 esac
19998
19999 case $ac_option in
20000 # Handling of the options.
20001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20002 ac_cs_recheck=: ;;
20003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20004 $as_echo "$ac_cs_version"; exit ;;
20005 --config | --confi | --conf | --con | --co | --c )
20006 $as_echo "$ac_cs_config"; exit ;;
20007 --debug | --debu | --deb | --de | --d | -d )
20008 debug=: ;;
20009 --file | --fil | --fi | --f )
20010 $ac_shift
20011 case $ac_optarg in
20012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20013 '') as_fn_error $? "missing file argument" ;;
20014 esac
20015 as_fn_append CONFIG_FILES " '$ac_optarg'"
20016 ac_need_defaults=false;;
20017 --header | --heade | --head | --hea )
20018 $ac_shift
20019 case $ac_optarg in
20020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20021 esac
20022 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20023 ac_need_defaults=false;;
20024 --he | --h)
20025 # Conflict between --help and --header
20026 as_fn_error $? "ambiguous option: \`$1'
20027Try \`$0 --help' for more information.";;
20028 --help | --hel | -h )
20029 $as_echo "$ac_cs_usage"; exit ;;
20030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20032 ac_cs_silent=: ;;
20033
20034 # This is an error.
20035 -*) as_fn_error $? "unrecognized option: \`$1'
20036Try \`$0 --help' for more information." ;;
20037
20038 *) as_fn_append ac_config_targets " $1"
20039 ac_need_defaults=false ;;
20040
20041 esac
20042 shift
20043done
20044
20045ac_configure_extra_args=
20046
20047if $ac_cs_silent; then
20048 exec 6>/dev/null
20049 ac_configure_extra_args="$ac_configure_extra_args --silent"
20050fi
20051
20052_ACEOF
20053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054if \$ac_cs_recheck; then
20055 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20056 shift
20057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20058 CONFIG_SHELL='$SHELL'
20059 export CONFIG_SHELL
20060 exec "\$@"
20061fi
20062
20063_ACEOF
20064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20065exec 5>>config.log
20066{
20067 echo
20068 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20069@%:@@%:@ Running $as_me. @%:@@%:@
20070_ASBOX
20071 $as_echo "$ac_log"
20072} >&5
20073
20074_ACEOF
20075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20076#
20077# INIT-COMMANDS
20078#
20079AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20080
20081_ACEOF
20082
20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084
20085# Handling of arguments.
20086for ac_config_target in $ac_config_targets
20087do
20088 case $ac_config_target in
20089 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20090 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20091 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20092 "extensions/GNUmakefile") CONFIG_FILES="$CONFIG_FILES extensions/GNUmakefile" ;;
20093 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20094 "libipq/Makefile") CONFIG_FILES="$CONFIG_FILES libipq/Makefile" ;;
20095 "include/xtables.h") CONFIG_FILES="$CONFIG_FILES include/xtables.h" ;;
20096 "include/iptables/internal.h") CONFIG_FILES="$CONFIG_FILES include/iptables/internal.h" ;;
20097 "libiptc.pc") CONFIG_FILES="$CONFIG_FILES libiptc.pc" ;;
20098 "xtables.pc") CONFIG_FILES="$CONFIG_FILES xtables.pc" ;;
20099
20100 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20101 esac
20102done
20103
20104
20105# If the user did not use the arguments to specify the items to instantiate,
20106# then the envvar interface is used. Set only those that are not.
20107# We use the long form for the default assignment because of an extremely
20108# bizarre bug on SunOS 4.1.3.
20109if $ac_need_defaults; then
20110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20113fi
20114
20115# Have a temporary directory for convenience. Make it in the build tree
20116# simply because there is no reason against having it here, and in addition,
20117# creating and moving files from /tmp can sometimes cause problems.
20118# Hook for its removal unless debugging.
20119# Note that there is a small window in which the directory will not be cleaned:
20120# after its creation but before its name has been assigned to `$tmp'.
20121$debug ||
20122{
20123 tmp= ac_tmp=
20124 trap 'exit_status=$?
20125 : "${ac_tmp:=$tmp}"
20126 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20127' 0
20128 trap 'as_fn_exit 1' 1 2 13 15
20129}
20130# Create a (secure) tmp directory for tmp files.
20131
20132{
20133 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20134 test -d "$tmp"
20135} ||
20136{
20137 tmp=./conf$$-$RANDOM
20138 (umask 077 && mkdir "$tmp")
20139} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20140ac_tmp=$tmp
20141
20142# Set up the scripts for CONFIG_FILES section.
20143# No need to generate them if there are no CONFIG_FILES.
20144# This happens for instance with `./config.status config.h'.
20145if test -n "$CONFIG_FILES"; then
20146
20147
20148ac_cr=`echo X | tr X '\015'`
20149# On cygwin, bash can eat \r inside `` if the user requested igncr.
20150# But we know of no other shell where ac_cr would be empty at this
20151# point, so we can use a bashism as a fallback.
20152if test "x$ac_cr" = x; then
20153 eval ac_cr=\$\'\\r\'
20154fi
20155ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20156if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20157 ac_cs_awk_cr='\\r'
20158else
20159 ac_cs_awk_cr=$ac_cr
20160fi
20161
20162echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20163_ACEOF
20164
20165
20166{
20167 echo "cat >conf$$subs.awk <<_ACEOF" &&
20168 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20169 echo "_ACEOF"
20170} >conf$$subs.sh ||
20171 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20172ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20173ac_delim='%!_!# '
20174for ac_last_try in false false false false false :; do
20175 . ./conf$$subs.sh ||
20176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20177
20178 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20179 if test $ac_delim_n = $ac_delim_num; then
20180 break
20181 elif $ac_last_try; then
20182 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20183 else
20184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20185 fi
20186done
20187rm -f conf$$subs.sh
20188
20189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20190cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20191_ACEOF
20192sed -n '
20193h
20194s/^/S["/; s/!.*/"]=/
20195p
20196g
20197s/^[^!]*!//
20198:repl
20199t repl
20200s/'"$ac_delim"'$//
20201t delim
20202:nl
20203h
20204s/\(.\{148\}\)..*/\1/
20205t more1
20206s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20207p
20208n
20209b repl
20210:more1
20211s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20212p
20213g
20214s/.\{148\}//
20215t nl
20216:delim
20217h
20218s/\(.\{148\}\)..*/\1/
20219t more2
20220s/["\\]/\\&/g; s/^/"/; s/$/"/
20221p
20222b
20223:more2
20224s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20225p
20226g
20227s/.\{148\}//
20228t delim
20229' <conf$$subs.awk | sed '
20230/^[^""]/{
20231 N
20232 s/\n//
20233}
20234' >>$CONFIG_STATUS || ac_write_fail=1
20235rm -f conf$$subs.awk
20236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237_ACAWK
20238cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20239 for (key in S) S_is_set[key] = 1
20240 FS = ""
20241
20242}
20243{
20244 line = $ 0
20245 nfields = split(line, field, "@")
20246 substed = 0
20247 len = length(field[1])
20248 for (i = 2; i < nfields; i++) {
20249 key = field[i]
20250 keylen = length(key)
20251 if (S_is_set[key]) {
20252 value = S[key]
20253 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20254 len += length(value) + length(field[++i])
20255 substed = 1
20256 } else
20257 len += 1 + keylen
20258 }
20259
20260 print line
20261}
20262
20263_ACAWK
20264_ACEOF
20265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20266if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20267 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20268else
20269 cat
20270fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20271 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20272_ACEOF
20273
20274# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20275# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20276# trailing colons and then remove the whole line if VPATH becomes empty
20277# (actually we leave an empty line to preserve line numbers).
20278if test "x$srcdir" = x.; then
20279 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20280h
20281s///
20282s/^/:/
20283s/[ ]*$/:/
20284s/:\$(srcdir):/:/g
20285s/:\${srcdir}:/:/g
20286s/:@srcdir@:/:/g
20287s/^:*//
20288s/:*$//
20289x
20290s/\(=[ ]*\).*/\1/
20291G
20292s/\n//
20293s/^[^=]*=[ ]*$//
20294}'
20295fi
20296
20297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20298fi # test -n "$CONFIG_FILES"
20299
20300# Set up the scripts for CONFIG_HEADERS section.
20301# No need to generate them if there are no CONFIG_HEADERS.
20302# This happens for instance with `./config.status Makefile'.
20303if test -n "$CONFIG_HEADERS"; then
20304cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20305BEGIN {
20306_ACEOF
20307
20308# Transform confdefs.h into an awk script `defines.awk', embedded as
20309# here-document in config.status, that substitutes the proper values into
20310# config.h.in to produce config.h.
20311
20312# Create a delimiter string that does not exist in confdefs.h, to ease
20313# handling of long lines.
20314ac_delim='%!_!# '
20315for ac_last_try in false false :; do
20316 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20317 if test -z "$ac_tt"; then
20318 break
20319 elif $ac_last_try; then
20320 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20321 else
20322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20323 fi
20324done
20325
20326# For the awk script, D is an array of macro values keyed by name,
20327# likewise P contains macro parameters if any. Preserve backslash
20328# newline sequences.
20329
20330ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20331sed -n '
20332s/.\{148\}/&'"$ac_delim"'/g
20333t rset
20334:rset
20335s/^[ ]*#[ ]*define[ ][ ]*/ /
20336t def
20337d
20338:def
20339s/\\$//
20340t bsnl
20341s/["\\]/\\&/g
20342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20343D["\1"]=" \3"/p
20344s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20345d
20346:bsnl
20347s/["\\]/\\&/g
20348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20349D["\1"]=" \3\\\\\\n"\\/p
20350t cont
20351s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20352t cont
20353d
20354:cont
20355n
20356s/.\{148\}/&'"$ac_delim"'/g
20357t clear
20358:clear
20359s/\\$//
20360t bsnlc
20361s/["\\]/\\&/g; s/^/"/; s/$/"/p
20362d
20363:bsnlc
20364s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20365b cont
20366' <confdefs.h | sed '
20367s/'"$ac_delim"'/"\\\
20368"/g' >>$CONFIG_STATUS || ac_write_fail=1
20369
20370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20371 for (key in D) D_is_set[key] = 1
20372 FS = ""
20373}
20374/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20375 line = \$ 0
20376 split(line, arg, " ")
20377 if (arg[1] == "#") {
20378 defundef = arg[2]
20379 mac1 = arg[3]
20380 } else {
20381 defundef = substr(arg[1], 2)
20382 mac1 = arg[2]
20383 }
20384 split(mac1, mac2, "(") #)
20385 macro = mac2[1]
20386 prefix = substr(line, 1, index(line, defundef) - 1)
20387 if (D_is_set[macro]) {
20388 # Preserve the white space surrounding the "#".
20389 print prefix "define", macro P[macro] D[macro]
20390 next
20391 } else {
20392 # Replace #undef with comments. This is necessary, for example,
20393 # in the case of _POSIX_SOURCE, which is predefined and required
20394 # on some systems where configure will not decide to define it.
20395 if (defundef == "undef") {
20396 print "/*", prefix defundef, macro, "*/"
20397 next
20398 }
20399 }
20400}
20401{ print }
20402_ACAWK
20403_ACEOF
20404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20405 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20406fi # test -n "$CONFIG_HEADERS"
20407
20408
20409eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20410shift
20411for ac_tag
20412do
20413 case $ac_tag in
20414 :[FHLC]) ac_mode=$ac_tag; continue;;
20415 esac
20416 case $ac_mode$ac_tag in
20417 :[FHL]*:*);;
20418 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20419 :[FH]-) ac_tag=-:-;;
20420 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20421 esac
20422 ac_save_IFS=$IFS
20423 IFS=:
20424 set x $ac_tag
20425 IFS=$ac_save_IFS
20426 shift
20427 ac_file=$1
20428 shift
20429
20430 case $ac_mode in
20431 :L) ac_source=$1;;
20432 :[FH])
20433 ac_file_inputs=
20434 for ac_f
20435 do
20436 case $ac_f in
20437 -) ac_f="$ac_tmp/stdin";;
20438 *) # Look for the file first in the build tree, then in the source tree
20439 # (if the path is not absolute). The absolute path cannot be DOS-style,
20440 # because $ac_f cannot contain `:'.
20441 test -f "$ac_f" ||
20442 case $ac_f in
20443 [\\/$]*) false;;
20444 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20445 esac ||
20446 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20447 esac
20448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20449 as_fn_append ac_file_inputs " '$ac_f'"
20450 done
20451
20452 # Let's still pretend it is `configure' which instantiates (i.e., don't
20453 # use $as_me), people would be surprised to read:
20454 # /* config.h. Generated by config.status. */
20455 configure_input='Generated from '`
20456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20457 `' by configure.'
20458 if test x"$ac_file" != x-; then
20459 configure_input="$ac_file. $configure_input"
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20461$as_echo "$as_me: creating $ac_file" >&6;}
20462 fi
20463 # Neutralize special characters interpreted by sed in replacement strings.
20464 case $configure_input in #(
20465 *\&* | *\|* | *\\* )
20466 ac_sed_conf_input=`$as_echo "$configure_input" |
20467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20468 *) ac_sed_conf_input=$configure_input;;
20469 esac
20470
20471 case $ac_tag in
20472 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20474 esac
20475 ;;
20476 esac
20477
20478 ac_dir=`$as_dirname -- "$ac_file" ||
20479$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20480 X"$ac_file" : 'X\(//\)[^/]' \| \
20481 X"$ac_file" : 'X\(//\)$' \| \
20482 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20483$as_echo X"$ac_file" |
20484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20485 s//\1/
20486 q
20487 }
20488 /^X\(\/\/\)[^/].*/{
20489 s//\1/
20490 q
20491 }
20492 /^X\(\/\/\)$/{
20493 s//\1/
20494 q
20495 }
20496 /^X\(\/\).*/{
20497 s//\1/
20498 q
20499 }
20500 s/.*/./; q'`
20501 as_dir="$ac_dir"; as_fn_mkdir_p
20502 ac_builddir=.
20503
20504case "$ac_dir" in
20505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20506*)
20507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20508 # A ".." for each directory in $ac_dir_suffix.
20509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20510 case $ac_top_builddir_sub in
20511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20513 esac ;;
20514esac
20515ac_abs_top_builddir=$ac_pwd
20516ac_abs_builddir=$ac_pwd$ac_dir_suffix
20517# for backward compatibility:
20518ac_top_builddir=$ac_top_build_prefix
20519
20520case $srcdir in
20521 .) # We are building in place.
20522 ac_srcdir=.
20523 ac_top_srcdir=$ac_top_builddir_sub
20524 ac_abs_top_srcdir=$ac_pwd ;;
20525 [\\/]* | ?:[\\/]* ) # Absolute name.
20526 ac_srcdir=$srcdir$ac_dir_suffix;
20527 ac_top_srcdir=$srcdir
20528 ac_abs_top_srcdir=$srcdir ;;
20529 *) # Relative name.
20530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20531 ac_top_srcdir=$ac_top_build_prefix$srcdir
20532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20533esac
20534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20535
20536
20537 case $ac_mode in
20538 :F)
20539 #
20540 # CONFIG_FILE
20541 #
20542
20543 case $INSTALL in
20544 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20545 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20546 esac
20547 ac_MKDIR_P=$MKDIR_P
20548 case $MKDIR_P in
20549 [\\/$]* | ?:[\\/]* ) ;;
20550 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20551 esac
20552_ACEOF
20553
20554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20555# If the template does not know about datarootdir, expand it.
20556# FIXME: This hack should be removed a few years after 2.60.
20557ac_datarootdir_hack=; ac_datarootdir_seen=
20558ac_sed_dataroot='
20559/datarootdir/ {
20560 p
20561 q
20562}
20563/@datadir@/p
20564/@docdir@/p
20565/@infodir@/p
20566/@localedir@/p
20567/@mandir@/p'
20568case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20569*datarootdir*) ac_datarootdir_seen=yes;;
20570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20572$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20573_ACEOF
20574cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20575 ac_datarootdir_hack='
20576 s&@datadir@&$datadir&g
20577 s&@docdir@&$docdir&g
20578 s&@infodir@&$infodir&g
20579 s&@localedir@&$localedir&g
20580 s&@mandir@&$mandir&g
20581 s&\\\${datarootdir}&$datarootdir&g' ;;
20582esac
20583_ACEOF
20584
20585# Neutralize VPATH when `$srcdir' = `.'.
20586# Shell code in configure.ac might set extrasub.
20587# FIXME: do we really want to maintain this feature?
20588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20589ac_sed_extra="$ac_vpsub
20590$extrasub
20591_ACEOF
20592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20593:t
20594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20595s|@configure_input@|$ac_sed_conf_input|;t t
20596s&@top_builddir@&$ac_top_builddir_sub&;t t
20597s&@top_build_prefix@&$ac_top_build_prefix&;t t
20598s&@srcdir@&$ac_srcdir&;t t
20599s&@abs_srcdir@&$ac_abs_srcdir&;t t
20600s&@top_srcdir@&$ac_top_srcdir&;t t
20601s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20602s&@builddir@&$ac_builddir&;t t
20603s&@abs_builddir@&$ac_abs_builddir&;t t
20604s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20605s&@INSTALL@&$ac_INSTALL&;t t
20606s&@MKDIR_P@&$ac_MKDIR_P&;t t
20607$ac_datarootdir_hack
20608"
20609eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20610 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20611
20612test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20613 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20614 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20615 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20617which seems to be undefined. Please make sure it is defined" >&5
20618$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20619which seems to be undefined. Please make sure it is defined" >&2;}
20620
20621 rm -f "$ac_tmp/stdin"
20622 case $ac_file in
20623 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20624 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20625 esac \
20626 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20627 ;;
20628 :H)
20629 #
20630 # CONFIG_HEADER
20631 #
20632 if test x"$ac_file" != x-; then
20633 {
20634 $as_echo "/* $configure_input */" \
20635 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20636 } >"$ac_tmp/config.h" \
20637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20638 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20640$as_echo "$as_me: $ac_file is unchanged" >&6;}
20641 else
20642 rm -f "$ac_file"
20643 mv "$ac_tmp/config.h" "$ac_file" \
20644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20645 fi
20646 else
20647 $as_echo "/* $configure_input */" \
20648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20649 || as_fn_error $? "could not create -" "$LINENO" 5
20650 fi
20651# Compute "$ac_file"'s index in $config_headers.
20652_am_arg="$ac_file"
20653_am_stamp_count=1
20654for _am_header in $config_headers :; do
20655 case $_am_header in
20656 $_am_arg | $_am_arg:* )
20657 break ;;
20658 * )
20659 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20660 esac
20661done
20662echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20663$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20664 X"$_am_arg" : 'X\(//\)[^/]' \| \
20665 X"$_am_arg" : 'X\(//\)$' \| \
20666 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20667$as_echo X"$_am_arg" |
20668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20669 s//\1/
20670 q
20671 }
20672 /^X\(\/\/\)[^/].*/{
20673 s//\1/
20674 q
20675 }
20676 /^X\(\/\/\)$/{
20677 s//\1/
20678 q
20679 }
20680 /^X\(\/\).*/{
20681 s//\1/
20682 q
20683 }
20684 s/.*/./; q'`/stamp-h$_am_stamp_count
20685 ;;
20686
20687 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20688$as_echo "$as_me: executing $ac_file commands" >&6;}
20689 ;;
20690 esac
20691
20692
20693 case $ac_file$ac_mode in
20694 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20695 # Strip MF so we end up with the name of the file.
20696 mf=`echo "$mf" | sed -e 's/:.*$//'`
20697 # Check whether this is an Automake generated Makefile or not.
20698 # We used to match only the files named `Makefile.in', but
20699 # some people rename them; so instead we look at the file content.
20700 # Grep'ing the first line is not enough: some people post-process
20701 # each Makefile.in and add a new line on top of each file to say so.
20702 # Grep'ing the whole file is not good either: AIX grep has a line
20703 # limit of 2048, but all sed's we know have understand at least 4000.
20704 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20705 dirpart=`$as_dirname -- "$mf" ||
20706$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$mf" : 'X\(//\)[^/]' \| \
20708 X"$mf" : 'X\(//\)$' \| \
20709 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20710$as_echo X"$mf" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\/\)[^/].*/{
20716 s//\1/
20717 q
20718 }
20719 /^X\(\/\/\)$/{
20720 s//\1/
20721 q
20722 }
20723 /^X\(\/\).*/{
20724 s//\1/
20725 q
20726 }
20727 s/.*/./; q'`
20728 else
20729 continue
20730 fi
20731 # Extract the definition of DEPDIR, am__include, and am__quote
20732 # from the Makefile without running `make'.
20733 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20734 test -z "$DEPDIR" && continue
20735 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20736 test -z "am__include" && continue
20737 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20738 # When using ansi2knr, U may be empty or an underscore; expand it
20739 U=`sed -n 's/^U = //p' < "$mf"`
20740 # Find all dependency output files, they are included files with
20741 # $(DEPDIR) in their names. We invoke sed twice because it is the
20742 # simplest approach to changing $(DEPDIR) to its actual value in the
20743 # expansion.
20744 for file in `sed -n "
20745 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20746 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20747 # Make sure the directory exists.
20748 test -f "$dirpart/$file" && continue
20749 fdir=`$as_dirname -- "$file" ||
20750$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20751 X"$file" : 'X\(//\)[^/]' \| \
20752 X"$file" : 'X\(//\)$' \| \
20753 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20754$as_echo X"$file" |
20755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20756 s//\1/
20757 q
20758 }
20759 /^X\(\/\/\)[^/].*/{
20760 s//\1/
20761 q
20762 }
20763 /^X\(\/\/\)$/{
20764 s//\1/
20765 q
20766 }
20767 /^X\(\/\).*/{
20768 s//\1/
20769 q
20770 }
20771 s/.*/./; q'`
20772 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20773 # echo "creating $dirpart/$file"
20774 echo '# dummy' > "$dirpart/$file"
20775 done
20776done
20777 ;;
20778
20779 esac
20780done # for ac_tag
20781
20782
20783as_fn_exit 0
20784_ACEOF
20785ac_clean_files=$ac_clean_files_save
20786
20787test $ac_write_fail = 0 ||
20788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20789
20790
20791# configure is writing to config.log, and then calls config.status.
20792# config.status does its own redirection, appending to config.log.
20793# Unfortunately, on DOS this fails, as config.log is still kept open
20794# by configure, so config.status won't be able to write to it; its
20795# output is simply discarded. So we exec the FD to /dev/null,
20796# effectively closing config.log, so it can be properly (re)opened and
20797# appended to by config.status. When coming back to configure, we
20798# need to make the FD available again.
20799if test "$no_create" != yes; then
20800 ac_cs_success=:
20801 ac_config_status_args=
20802 test "$silent" = yes &&
20803 ac_config_status_args="$ac_config_status_args --quiet"
20804 exec 5>/dev/null
20805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20806 exec 5>>config.log
20807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20808 # would make configure fail if this is the last instruction.
20809 $ac_cs_success || as_fn_exit 1
20810fi
20811if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20813$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20814fi
20815