Deleted Added
full compact
configure (195740) configure (196031)
1#! /bin/sh
1#! /bin/sh
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#52 .
2# From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#53 .
3# Guess values for system-dependent variables and create Makefiles.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.62 for OpenBSM 1.1p1.
4# Generated by GNU Autoconf 2.62 for OpenBSM 1.1p2.
5#
6# Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84# Support unset when possible.
85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87else
88 as_unset=false
89fi
90
91
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121fi
122
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# Required to use basename.
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141else
142 as_expr=false
143fi
144
145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147else
148 as_basename=false
149fi
150
151
152# Name of the executable.
153as_me=`$as_basename -- "$0" ||
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157$as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172# CDPATH.
173$as_unset CDPATH
174
175
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
199
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
207
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486}
487
488
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533else
534 as_ln_s='cp -p'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
568
569# Sed expression to map a string onto a valid CPP name.
570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572# Sed expression to map a string onto a valid variable name.
573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577
578# Check that we are running under the correct shell.
579SHELL=${CONFIG_SHELL-/bin/sh}
580
581case X$ECHO in
582X*--fallback-echo)
583 # Remove one level of quotation (which was required for Make).
584 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 ;;
586esac
587
588echo=${ECHO-echo}
589if test "X$1" = X--no-reexec; then
590 # Discard the --no-reexec flag, and continue.
591 shift
592elif test "X$1" = X--fallback-echo; then
593 # Avoid inline document here, it may be left over
594 :
595elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
596 # Yippee, $echo works!
597 :
598else
599 # Restart under the correct shell.
600 exec $SHELL "$0" --no-reexec ${1+"$@"}
601fi
602
603if test "X$1" = X--fallback-echo; then
604 # used as fallback echo
605 shift
606 cat <<EOF
607$*
608EOF
609 exit 0
610fi
611
612# The HP-UX ksh and POSIX shell print the target directory to stdout
613# if CDPATH is set.
614(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
616if test -z "$ECHO"; then
617if test "X${echo_test_string+set}" != Xset; then
618# find a string as large as possible, as long as the shell can cope with it
619 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
622 echo_test_string=`eval $cmd` &&
623 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
624 then
625 break
626 fi
627 done
628fi
629
630if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
640
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 echo="$dir/echo"
649 break
650 fi
651 done
652 IFS="$lt_save_ifs"
653
654 if test "X$echo" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 echo='print -r'
661 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 else
670 # Try using printf.
671 echo='printf %s\n'
672 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 echo="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 echo="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
694
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
702
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 echo=echo
710 fi
711 fi
712 fi
713 fi
714fi
715fi
716
717# Copy echo and quote the copy suitably for passing to libtool from
718# the Makefile, instead of quoting the original, which is used later.
719ECHO=$echo
720if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722fi
723
724
725
726
727tagnames=${tagnames+${tagnames},}CXX
728
729tagnames=${tagnames+${tagnames},}F77
730
731exec 7<&0 </dev/null 6>&1
732
733# Name of the host.
734# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
735# so uname gets run too.
736ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
737
738#
739# Initializations.
740#
741ac_default_prefix=/usr/local
742ac_clean_files=
743ac_config_libobj_dir=.
744LIBOBJS=
745cross_compiling=no
746subdirs=
747MFLAGS=
748MAKEFLAGS=
749SHELL=${CONFIG_SHELL-/bin/sh}
750
751# Identity of this package.
752PACKAGE_NAME='OpenBSM'
753PACKAGE_TARNAME='openbsm'
5#
6# Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43as_nl='
44'
45export as_nl
46# Printing a long string crashes Solaris 7 /usr/bin/printf.
47as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73fi
74
75# The user is always right.
76if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82fi
83
84# Support unset when possible.
85if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86 as_unset=unset
87else
88 as_unset=false
89fi
90
91
92# IFS
93# We need space, tab and new line, in precisely that order. Quoting is
94# there to prevent editors from complaining about space-tab.
95# (If _AS_PATH_WALK were called with IFS unset, it would disable word
96# splitting by setting IFS to empty value.)
97IFS=" "" $as_nl"
98
99# Find who we are. Look in the path if we contain no directory separator.
100case $0 in
101 *[\\/]* ) as_myself=$0 ;;
102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103for as_dir in $PATH
104do
105 IFS=$as_save_IFS
106 test -z "$as_dir" && as_dir=.
107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108done
109IFS=$as_save_IFS
110
111 ;;
112esac
113# We did not find ourselves, most probably we were run as `sh COMMAND'
114# in which case we are not to be found in the path.
115if test "x$as_myself" = x; then
116 as_myself=$0
117fi
118if test ! -f "$as_myself"; then
119 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 { (exit 1); exit 1; }
121fi
122
123# Work around bugs in pre-3.0 UWIN ksh.
124for as_var in ENV MAIL MAILPATH
125do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126done
127PS1='$ '
128PS2='> '
129PS4='+ '
130
131# NLS nuisances.
132LC_ALL=C
133export LC_ALL
134LANGUAGE=C
135export LANGUAGE
136
137# Required to use basename.
138if expr a : '\(a\)' >/dev/null 2>&1 &&
139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
140 as_expr=expr
141else
142 as_expr=false
143fi
144
145if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146 as_basename=basename
147else
148 as_basename=false
149fi
150
151
152# Name of the executable.
153as_me=`$as_basename -- "$0" ||
154$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155 X"$0" : 'X\(//\)$' \| \
156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157$as_echo X/"$0" |
158 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 s//\1/
160 q
161 }
162 /^X\/\(\/\/\)$/{
163 s//\1/
164 q
165 }
166 /^X\/\(\/\).*/{
167 s//\1/
168 q
169 }
170 s/.*/./; q'`
171
172# CDPATH.
173$as_unset CDPATH
174
175
176if test "x$CONFIG_SHELL" = x; then
177 if (eval ":") 2>/dev/null; then
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182
183 if test $as_have_required = yes && (eval ":
184(as_func_return () {
185 (exit \$1)
186}
187as_func_success () {
188 as_func_return 0
189}
190as_func_failure () {
191 as_func_return 1
192}
193as_func_ret_success () {
194 return 0
195}
196as_func_ret_failure () {
197 return 1
198}
199
200exitcode=0
201if as_func_success; then
202 :
203else
204 exitcode=1
205 echo as_func_success failed.
206fi
207
208if as_func_failure; then
209 exitcode=1
210 echo as_func_failure succeeded.
211fi
212
213if as_func_ret_success; then
214 :
215else
216 exitcode=1
217 echo as_func_ret_success failed.
218fi
219
220if as_func_ret_failure; then
221 exitcode=1
222 echo as_func_ret_failure succeeded.
223fi
224
225if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 :
227else
228 exitcode=1
229 echo positional parameters were not saved.
230fi
231
232test \$exitcode = 0) || { (exit 1); exit 1; }
233
234(
235 as_lineno_1=\$LINENO
236 as_lineno_2=\$LINENO
237 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239") 2> /dev/null; then
240 :
241else
242 as_candidate_shells=
243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245do
246 IFS=$as_save_IFS
247 test -z "$as_dir" && as_dir=.
248 case $as_dir in
249 /*)
250 for as_base in sh bash ksh sh5; do
251 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252 done;;
253 esac
254done
255IFS=$as_save_IFS
256
257
258 for as_shell in $as_candidate_shells $SHELL; do
259 # Try only shells that exist, to save several forks.
260 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261 { ("$as_shell") 2> /dev/null <<\_ASEOF
262if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272esac
273
274fi
275
276
277:
278_ASEOF
279}; then
280 CONFIG_SHELL=$as_shell
281 as_have_required=yes
282 if { "$as_shell" 2> /dev/null <<\_ASEOF
283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284 emulate sh
285 NULLCMD=:
286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287 # is contrary to our usage. Disable this feature.
288 alias -g '${1+"$@"}'='"$@"'
289 setopt NO_GLOB_SUBST
290else
291 case `(set -o) 2>/dev/null` in
292 *posix*) set -o posix ;;
293esac
294
295fi
296
297
298:
299(as_func_return () {
300 (exit $1)
301}
302as_func_success () {
303 as_func_return 0
304}
305as_func_failure () {
306 as_func_return 1
307}
308as_func_ret_success () {
309 return 0
310}
311as_func_ret_failure () {
312 return 1
313}
314
315exitcode=0
316if as_func_success; then
317 :
318else
319 exitcode=1
320 echo as_func_success failed.
321fi
322
323if as_func_failure; then
324 exitcode=1
325 echo as_func_failure succeeded.
326fi
327
328if as_func_ret_success; then
329 :
330else
331 exitcode=1
332 echo as_func_ret_success failed.
333fi
334
335if as_func_ret_failure; then
336 exitcode=1
337 echo as_func_ret_failure succeeded.
338fi
339
340if ( set x; as_func_ret_success y && test x = "$1" ); then
341 :
342else
343 exitcode=1
344 echo positional parameters were not saved.
345fi
346
347test $exitcode = 0) || { (exit 1); exit 1; }
348
349(
350 as_lineno_1=$LINENO
351 as_lineno_2=$LINENO
352 test "x$as_lineno_1" != "x$as_lineno_2" &&
353 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355_ASEOF
356}; then
357 break
358fi
359
360fi
361
362 done
363
364 if test "x$CONFIG_SHELL" != x; then
365 for as_var in BASH_ENV ENV
366 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367 done
368 export CONFIG_SHELL
369 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370fi
371
372
373 if test $as_have_required = no; then
374 echo This script requires a shell more modern than all the
375 echo shells that I found on your system. Please install a
376 echo modern shell, or manually run the script under such a
377 echo shell if you do have one.
378 { (exit 1); exit 1; }
379fi
380
381
382fi
383
384fi
385
386
387
388(eval "as_func_return () {
389 (exit \$1)
390}
391as_func_success () {
392 as_func_return 0
393}
394as_func_failure () {
395 as_func_return 1
396}
397as_func_ret_success () {
398 return 0
399}
400as_func_ret_failure () {
401 return 1
402}
403
404exitcode=0
405if as_func_success; then
406 :
407else
408 exitcode=1
409 echo as_func_success failed.
410fi
411
412if as_func_failure; then
413 exitcode=1
414 echo as_func_failure succeeded.
415fi
416
417if as_func_ret_success; then
418 :
419else
420 exitcode=1
421 echo as_func_ret_success failed.
422fi
423
424if as_func_ret_failure; then
425 exitcode=1
426 echo as_func_ret_failure succeeded.
427fi
428
429if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 :
431else
432 exitcode=1
433 echo positional parameters were not saved.
434fi
435
436test \$exitcode = 0") || {
437 echo No shell found that supports shell functions.
438 echo Please tell bug-autoconf@gnu.org about your system,
439 echo including any error possibly output before this message.
440 echo This can help us improve future autoconf versions.
441 echo Configuration will now proceed without shell functions.
442}
443
444
445
446 as_lineno_1=$LINENO
447 as_lineno_2=$LINENO
448 test "x$as_lineno_1" != "x$as_lineno_2" &&
449 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452 # uniformly replaced by the line number. The first 'sed' inserts a
453 # line-number line after each line using $LINENO; the second 'sed'
454 # does the real work. The second script uses 'N' to pair each
455 # line-number line with the line containing $LINENO, and appends
456 # trailing '-' during substitution so that $LINENO is not a special
457 # case at line end.
458 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459 # scripts with optimization help from Paolo Bonzini. Blame Lee
460 # E. McMahon (1931-1989) for sed's syntax. :-)
461 sed -n '
462 p
463 /[$]LINENO/=
464 ' <$as_myself |
465 sed '
466 s/[$]LINENO.*/&-/
467 t lineno
468 b
469 :lineno
470 N
471 :loop
472 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 t loop
474 s/-\n.*//
475 ' >$as_me.lineno &&
476 chmod +x "$as_me.lineno" ||
477 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478 { (exit 1); exit 1; }; }
479
480 # Don't try to exec as it changes $[0], causing all sort of problems
481 # (the dirname of $[0] is not the place where we might find the
482 # original and so on. Autoconf is especially sensitive to this).
483 . "./$as_me.lineno"
484 # Exit status is that of the last command.
485 exit
486}
487
488
489if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490 as_dirname=dirname
491else
492 as_dirname=false
493fi
494
495ECHO_C= ECHO_N= ECHO_T=
496case `echo -n x` in
497-n*)
498 case `echo 'x\c'` in
499 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
500 *) ECHO_C='\c';;
501 esac;;
502*)
503 ECHO_N='-n';;
504esac
505if expr a : '\(a\)' >/dev/null 2>&1 &&
506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
507 as_expr=expr
508else
509 as_expr=false
510fi
511
512rm -f conf$$ conf$$.exe conf$$.file
513if test -d conf$$.dir; then
514 rm -f conf$$.dir/conf$$.file
515else
516 rm -f conf$$.dir
517 mkdir conf$$.dir 2>/dev/null
518fi
519if (echo >conf$$.file) 2>/dev/null; then
520 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 as_ln_s='ln -s'
522 # ... but there are two gotchas:
523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525 # In both cases, we have to default to `cp -p'.
526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 as_ln_s='cp -p'
528 elif ln conf$$.file conf$$ 2>/dev/null; then
529 as_ln_s=ln
530 else
531 as_ln_s='cp -p'
532 fi
533else
534 as_ln_s='cp -p'
535fi
536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537rmdir conf$$.dir 2>/dev/null
538
539if mkdir -p . 2>/dev/null; then
540 as_mkdir_p=:
541else
542 test -d ./-p && rmdir ./-p
543 as_mkdir_p=false
544fi
545
546if test -x / >/dev/null 2>&1; then
547 as_test_x='test -x'
548else
549 if ls -dL / >/dev/null 2>&1; then
550 as_ls_L_option=L
551 else
552 as_ls_L_option=
553 fi
554 as_test_x='
555 eval sh -c '\''
556 if test -d "$1"; then
557 test -d "$1/.";
558 else
559 case $1 in
560 -*)set "./$1";;
561 esac;
562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563 ???[sx]*):;;*)false;;esac;fi
564 '\'' sh
565 '
566fi
567as_executable_p=$as_test_x
568
569# Sed expression to map a string onto a valid CPP name.
570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572# Sed expression to map a string onto a valid variable name.
573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577
578# Check that we are running under the correct shell.
579SHELL=${CONFIG_SHELL-/bin/sh}
580
581case X$ECHO in
582X*--fallback-echo)
583 # Remove one level of quotation (which was required for Make).
584 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
585 ;;
586esac
587
588echo=${ECHO-echo}
589if test "X$1" = X--no-reexec; then
590 # Discard the --no-reexec flag, and continue.
591 shift
592elif test "X$1" = X--fallback-echo; then
593 # Avoid inline document here, it may be left over
594 :
595elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
596 # Yippee, $echo works!
597 :
598else
599 # Restart under the correct shell.
600 exec $SHELL "$0" --no-reexec ${1+"$@"}
601fi
602
603if test "X$1" = X--fallback-echo; then
604 # used as fallback echo
605 shift
606 cat <<EOF
607$*
608EOF
609 exit 0
610fi
611
612# The HP-UX ksh and POSIX shell print the target directory to stdout
613# if CDPATH is set.
614(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
616if test -z "$ECHO"; then
617if test "X${echo_test_string+set}" != Xset; then
618# find a string as large as possible, as long as the shell can cope with it
619 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
622 echo_test_string=`eval $cmd` &&
623 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
624 then
625 break
626 fi
627 done
628fi
629
630if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 :
634else
635 # The Solaris, AIX, and Digital Unix default echo programs unquote
636 # backslashes. This makes it impossible to quote backslashes using
637 # echo "$something" | sed 's/\\/\\\\/g'
638 #
639 # So, first we look for a working echo in the user's PATH.
640
641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
642 for dir in $PATH /usr/ucb; do
643 IFS="$lt_save_ifs"
644 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
645 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
646 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
647 test "X$echo_testing_string" = "X$echo_test_string"; then
648 echo="$dir/echo"
649 break
650 fi
651 done
652 IFS="$lt_save_ifs"
653
654 if test "X$echo" = Xecho; then
655 # We didn't find a better echo, so look for alternatives.
656 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
657 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
658 test "X$echo_testing_string" = "X$echo_test_string"; then
659 # This shell has a builtin print -r that does the trick.
660 echo='print -r'
661 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
662 test "X$CONFIG_SHELL" != X/bin/ksh; then
663 # If we have ksh, try running configure again with it.
664 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
665 export ORIGINAL_CONFIG_SHELL
666 CONFIG_SHELL=/bin/ksh
667 export CONFIG_SHELL
668 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669 else
670 # Try using printf.
671 echo='printf %s\n'
672 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
673 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
674 test "X$echo_testing_string" = "X$echo_test_string"; then
675 # Cool, printf works
676 :
677 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
678 test "X$echo_testing_string" = 'X\t' &&
679 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
680 test "X$echo_testing_string" = "X$echo_test_string"; then
681 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
682 export CONFIG_SHELL
683 SHELL="$CONFIG_SHELL"
684 export SHELL
685 echo="$CONFIG_SHELL $0 --fallback-echo"
686 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687 test "X$echo_testing_string" = 'X\t' &&
688 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689 test "X$echo_testing_string" = "X$echo_test_string"; then
690 echo="$CONFIG_SHELL $0 --fallback-echo"
691 else
692 # maybe with a smaller string...
693 prev=:
694
695 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
696 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
697 then
698 break
699 fi
700 prev="$cmd"
701 done
702
703 if test "$prev" != 'sed 50q "$0"'; then
704 echo_test_string=`eval $prev`
705 export echo_test_string
706 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
707 else
708 # Oops. We lost completely, so just stick with echo.
709 echo=echo
710 fi
711 fi
712 fi
713 fi
714fi
715fi
716
717# Copy echo and quote the copy suitably for passing to libtool from
718# the Makefile, instead of quoting the original, which is used later.
719ECHO=$echo
720if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
721 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
722fi
723
724
725
726
727tagnames=${tagnames+${tagnames},}CXX
728
729tagnames=${tagnames+${tagnames},}F77
730
731exec 7<&0 </dev/null 6>&1
732
733# Name of the host.
734# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
735# so uname gets run too.
736ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
737
738#
739# Initializations.
740#
741ac_default_prefix=/usr/local
742ac_clean_files=
743ac_config_libobj_dir=.
744LIBOBJS=
745cross_compiling=no
746subdirs=
747MFLAGS=
748MAKEFLAGS=
749SHELL=${CONFIG_SHELL-/bin/sh}
750
751# Identity of this package.
752PACKAGE_NAME='OpenBSM'
753PACKAGE_TARNAME='openbsm'
754PACKAGE_VERSION='1.1p1'
755PACKAGE_STRING='OpenBSM 1.1p1'
754PACKAGE_VERSION='1.1p2'
755PACKAGE_STRING='OpenBSM 1.1p2'
756PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
757
758ac_unique_file="bin/auditreduce/auditreduce.c"
759# Factoring default headers for most tests.
760ac_includes_default="\
761#include <stdio.h>
762#ifdef HAVE_SYS_TYPES_H
763# include <sys/types.h>
764#endif
765#ifdef HAVE_SYS_STAT_H
766# include <sys/stat.h>
767#endif
768#ifdef STDC_HEADERS
769# include <stdlib.h>
770# include <stddef.h>
771#else
772# ifdef HAVE_STDLIB_H
773# include <stdlib.h>
774# endif
775#endif
776#ifdef HAVE_STRING_H
777# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
778# include <memory.h>
779# endif
780# include <string.h>
781#endif
782#ifdef HAVE_STRINGS_H
783# include <strings.h>
784#endif
785#ifdef HAVE_INTTYPES_H
786# include <inttypes.h>
787#endif
788#ifdef HAVE_STDINT_H
789# include <stdint.h>
790#endif
791#ifdef HAVE_UNISTD_H
792# include <unistd.h>
793#endif"
794
795ac_header_list=
796ac_func_list=
797ac_subst_vars='SHELL
798PATH_SEPARATOR
799PACKAGE_NAME
800PACKAGE_TARNAME
801PACKAGE_VERSION
802PACKAGE_STRING
803PACKAGE_BUGREPORT
804exec_prefix
805prefix
806program_transform_name
807bindir
808sbindir
809libexecdir
810datarootdir
811datadir
812sysconfdir
813sharedstatedir
814localstatedir
815includedir
816oldincludedir
817docdir
818infodir
819htmldir
820dvidir
821pdfdir
822psdir
823libdir
824localedir
825mandir
826DEFS
827ECHO_C
828ECHO_N
829ECHO_T
830LIBS
831build_alias
832host_alias
833target_alias
834MAINTAINER_MODE_TRUE
835MAINTAINER_MODE_FALSE
836MAINT
837USE_NATIVE_INCLUDES_TRUE
838USE_NATIVE_INCLUDES_FALSE
839MIG
840CC
841CFLAGS
842LDFLAGS
843CPPFLAGS
844ac_ct_CC
845EXEEXT
846OBJEXT
847INSTALL_PROGRAM
848INSTALL_SCRIPT
849INSTALL_DATA
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859GREP
860EGREP
861LN_S
862ECHO
863AR
864RANLIB
865STRIP
866DSYMUTIL
867NMEDIT
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877am__isrc
878CYGPATH_W
879PACKAGE
880VERSION
881ACLOCAL
882AUTOCONF
883AUTOMAKE
884AUTOHEADER
885MAKEINFO
886install_sh
887INSTALL_STRIP_PROGRAM
888MKDIR_P
889mkdir_p
890AWK
891SET_MAKE
892am__leading_dot
893AMTAR
894am__tar
895am__untar
896DEPDIR
897am__include
898am__quote
899AMDEP_TRUE
900AMDEP_FALSE
901AMDEPBACKSLASH
902CCDEPMODE
903am__fastdepCC_TRUE
904am__fastdepCC_FALSE
905CXXDEPMODE
906am__fastdepCXX_TRUE
907am__fastdepCXX_FALSE
908LIBOBJS
909HAVE_AUDIT_SYSCALLS_TRUE
910HAVE_AUDIT_SYSCALLS_FALSE
911USE_MACH_IPC_TRUE
912USE_MACH_IPC_FALSE
913LTLIBOBJS'
914ac_subst_files=''
915ac_user_opts='
916enable_option_checking
917enable_maintainer_mode
918with_native_includes
919enable_shared
920enable_static
921enable_fast_install
922with_gnu_ld
923enable_libtool_lock
924with_pic
925with_tags
926enable_dependency_tracking
927'
928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936CPP
937CXX
938CXXFLAGS
939CCC
940CXXCPP
941F77
942FFLAGS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1002 fi
1003
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
1014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1039
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1063
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1068
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1073
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084"enable_$ac_useropt"
1085"*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1295
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1332Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1366 { (exit 1); exit 1; }; } ;;
1367 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1369fi
1370
1371# Check all directory arguments for consistency.
1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1376do
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1390 { (exit 1); exit 1; }; }
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1408 fi
1409fi
1410
1411ac_tool_prefix=
1412test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414test "$silent" = yes && exec 6>/dev/null
1415
1416
1417ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418ac_ls_di=`ls -di .` &&
1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1421 { (exit 1); exit 1; }; }
1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1424 { (exit 1); exit 1; }; }
1425
1426
1427# Find the source files, if location was not specified.
1428if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436$as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458else
1459 ac_srcdir_defaulted=no
1460fi
1461if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464 { (exit 1); exit 1; }; }
1465fi
1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1469 { (exit 1); exit 1; }; }
1470 pwd)`
1471# When building in place, set srcdir=.
1472if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 srcdir=.
1474fi
1475# Remove unnecessary trailing slashes from srcdir.
1476# Double slashes in file names in object file debugging info
1477# mess up M-x gdb in Emacs.
1478case $srcdir in
1479*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480esac
1481for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486done
1487
1488#
1489# Report the --help message.
1490#
1491if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1494 cat <<_ACEOF
756PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
757
758ac_unique_file="bin/auditreduce/auditreduce.c"
759# Factoring default headers for most tests.
760ac_includes_default="\
761#include <stdio.h>
762#ifdef HAVE_SYS_TYPES_H
763# include <sys/types.h>
764#endif
765#ifdef HAVE_SYS_STAT_H
766# include <sys/stat.h>
767#endif
768#ifdef STDC_HEADERS
769# include <stdlib.h>
770# include <stddef.h>
771#else
772# ifdef HAVE_STDLIB_H
773# include <stdlib.h>
774# endif
775#endif
776#ifdef HAVE_STRING_H
777# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
778# include <memory.h>
779# endif
780# include <string.h>
781#endif
782#ifdef HAVE_STRINGS_H
783# include <strings.h>
784#endif
785#ifdef HAVE_INTTYPES_H
786# include <inttypes.h>
787#endif
788#ifdef HAVE_STDINT_H
789# include <stdint.h>
790#endif
791#ifdef HAVE_UNISTD_H
792# include <unistd.h>
793#endif"
794
795ac_header_list=
796ac_func_list=
797ac_subst_vars='SHELL
798PATH_SEPARATOR
799PACKAGE_NAME
800PACKAGE_TARNAME
801PACKAGE_VERSION
802PACKAGE_STRING
803PACKAGE_BUGREPORT
804exec_prefix
805prefix
806program_transform_name
807bindir
808sbindir
809libexecdir
810datarootdir
811datadir
812sysconfdir
813sharedstatedir
814localstatedir
815includedir
816oldincludedir
817docdir
818infodir
819htmldir
820dvidir
821pdfdir
822psdir
823libdir
824localedir
825mandir
826DEFS
827ECHO_C
828ECHO_N
829ECHO_T
830LIBS
831build_alias
832host_alias
833target_alias
834MAINTAINER_MODE_TRUE
835MAINTAINER_MODE_FALSE
836MAINT
837USE_NATIVE_INCLUDES_TRUE
838USE_NATIVE_INCLUDES_FALSE
839MIG
840CC
841CFLAGS
842LDFLAGS
843CPPFLAGS
844ac_ct_CC
845EXEEXT
846OBJEXT
847INSTALL_PROGRAM
848INSTALL_SCRIPT
849INSTALL_DATA
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859GREP
860EGREP
861LN_S
862ECHO
863AR
864RANLIB
865STRIP
866DSYMUTIL
867NMEDIT
868CPP
869CXX
870CXXFLAGS
871ac_ct_CXX
872CXXCPP
873F77
874FFLAGS
875ac_ct_F77
876LIBTOOL
877am__isrc
878CYGPATH_W
879PACKAGE
880VERSION
881ACLOCAL
882AUTOCONF
883AUTOMAKE
884AUTOHEADER
885MAKEINFO
886install_sh
887INSTALL_STRIP_PROGRAM
888MKDIR_P
889mkdir_p
890AWK
891SET_MAKE
892am__leading_dot
893AMTAR
894am__tar
895am__untar
896DEPDIR
897am__include
898am__quote
899AMDEP_TRUE
900AMDEP_FALSE
901AMDEPBACKSLASH
902CCDEPMODE
903am__fastdepCC_TRUE
904am__fastdepCC_FALSE
905CXXDEPMODE
906am__fastdepCXX_TRUE
907am__fastdepCXX_FALSE
908LIBOBJS
909HAVE_AUDIT_SYSCALLS_TRUE
910HAVE_AUDIT_SYSCALLS_FALSE
911USE_MACH_IPC_TRUE
912USE_MACH_IPC_FALSE
913LTLIBOBJS'
914ac_subst_files=''
915ac_user_opts='
916enable_option_checking
917enable_maintainer_mode
918with_native_includes
919enable_shared
920enable_static
921enable_fast_install
922with_gnu_ld
923enable_libtool_lock
924with_pic
925with_tags
926enable_dependency_tracking
927'
928 ac_precious_vars='build_alias
929host_alias
930target_alias
931CC
932CFLAGS
933LDFLAGS
934LIBS
935CPPFLAGS
936CPP
937CXX
938CXXFLAGS
939CCC
940CXXCPP
941F77
942FFLAGS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948ac_unrecognized_opts=
949ac_unrecognized_sep=
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
972# (The list follows the same order as the GNU Coding Standards.)
973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
981includedir='${prefix}/include'
982oldincludedir='/usr/include'
983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
992
993ac_prev=
994ac_dashdash=
995for ac_option
996do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
999 eval $ac_prev=\$ac_option
1000 ac_prev=
1001 continue
1002 fi
1003
1004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
1008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
1011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
1014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
1035 -datadir | --datadir | --datadi | --datad)
1036 ac_prev=datadir ;;
1037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1038 datadir=$ac_optarg ;;
1039
1040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
1047 -disable-* | --disable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_useropt_orig=$ac_useropt
1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1056 *"
1057"enable_$ac_useropt"
1058"*) ;;
1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060 ac_unrecognized_sep=', ';;
1061 esac
1062 eval enable_$ac_useropt=no ;;
1063
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1068
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1073
1074 -enable-* | --enable-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084"enable_$ac_useropt"
1085"*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1284 { (exit 1); exit 1; }; }
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1295
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1305 *"
1306"with_$ac_useropt"
1307"*) ;;
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1310 esac
1311 eval with_$ac_useropt=no ;;
1312
1313 --x)
1314 # Obsolete; use --with-x.
1315 with_x=yes ;;
1316
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1323
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1330
1331 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1332Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1334 ;;
1335
1336 *=*)
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1344
1345 *)
1346 # FIXME: should be removed in autoconf 3.0.
1347 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 ;;
1352
1353 esac
1354done
1355
1356if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1360fi
1361
1362if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1364 no) ;;
1365 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1366 { (exit 1); exit 1; }; } ;;
1367 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1368 esac
1369fi
1370
1371# Check all directory arguments for consistency.
1372for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1376do
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1379 case $ac_val in
1380 */ )
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1383 esac
1384 # Be sure to have absolute directory names.
1385 case $ac_val in
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 esac
1389 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1390 { (exit 1); exit 1; }; }
1391done
1392
1393# There might be people who depend on the old broken behavior: `$host'
1394# used to hold the argument of --host etc.
1395# FIXME: To remove some day.
1396build=$build_alias
1397host=$host_alias
1398target=$target_alias
1399
1400# FIXME: To remove some day.
1401if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1407 cross_compiling=yes
1408 fi
1409fi
1410
1411ac_tool_prefix=
1412test -n "$host_alias" && ac_tool_prefix=$host_alias-
1413
1414test "$silent" = yes && exec 6>/dev/null
1415
1416
1417ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418ac_ls_di=`ls -di .` &&
1419ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1421 { (exit 1); exit 1; }; }
1422test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1424 { (exit 1); exit 1; }; }
1425
1426
1427# Find the source files, if location was not specified.
1428if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436$as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458else
1459 ac_srcdir_defaulted=no
1460fi
1461if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464 { (exit 1); exit 1; }; }
1465fi
1466ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1469 { (exit 1); exit 1; }; }
1470 pwd)`
1471# When building in place, set srcdir=.
1472if test "$ac_abs_confdir" = "$ac_pwd"; then
1473 srcdir=.
1474fi
1475# Remove unnecessary trailing slashes from srcdir.
1476# Double slashes in file names in object file debugging info
1477# mess up M-x gdb in Emacs.
1478case $srcdir in
1479*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480esac
1481for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486done
1487
1488#
1489# Report the --help message.
1490#
1491if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1494 cat <<_ACEOF
1495\`configure' configures OpenBSM 1.1p1 to adapt to many kinds of systems.
1495\`configure' configures OpenBSM 1.1p2 to adapt to many kinds of systems.
1496
1497Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500VAR=VALUE. See below for descriptions of some of the useful variables.
1501
1502Defaults for the options are specified in brackets.
1503
1504Configuration:
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514
1515Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 [PREFIX]
1520
1521By default, \`make install' will install all the files in
1522\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524for instance \`--prefix=\$HOME'.
1525
1526For better control, use the options below.
1527
1528Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548_ACEOF
1549
1550 cat <<\_ACEOF
1551
1552Program names:
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556
1557System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560_ACEOF
1561fi
1562
1563if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1496
1497Usage: $0 [OPTION]... [VAR=VALUE]...
1498
1499To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500VAR=VALUE. See below for descriptions of some of the useful variables.
1501
1502Defaults for the options are specified in brackets.
1503
1504Configuration:
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514
1515Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1519 [PREFIX]
1520
1521By default, \`make install' will install all the files in
1522\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524for instance \`--prefix=\$HOME'.
1525
1526For better control, use the options below.
1527
1528Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/openbsm]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1548_ACEOF
1549
1550 cat <<\_ACEOF
1551
1552Program names:
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556
1557System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560_ACEOF
1561fi
1562
1563if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of OpenBSM 1.1p1:";;
1565 short | recursive ) echo "Configuration of OpenBSM 1.1p2:";;
1566 esac
1567 cat <<\_ACEOF
1568
1569Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-maintainer-mode enable make rules and dependencies not useful
1574 (and sometimes confusing) to the casual installer
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-static[=PKGS] build static libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-dependency-tracking speeds up one-time build
1581 --enable-dependency-tracking do not reject slow dependency extractors
1582
1583Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-native-includes Use the system native include files instead of those
1587 included with openbsm.
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-tags[=TAGS] include additional configurations [automatic]
1592
1593Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
1598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
1601 CPP C preprocessor
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1604 CXXCPP C++ preprocessor
1605 F77 Fortran 77 compiler command
1606 FFLAGS Fortran 77 compiler flags
1607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
1611Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1612_ACEOF
1613ac_status=$?
1614fi
1615
1616if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624case "$ac_dir" in
1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626*)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634esac
1635ac_abs_top_builddir=$ac_pwd
1636ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637# for backward compatibility:
1638ac_top_builddir=$ac_top_build_prefix
1639
1640case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653esac
1654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669fi
1670
1671test -n "$ac_init_help" && exit $ac_status
1672if $ac_init_version; then
1673 cat <<\_ACEOF
1566 esac
1567 cat <<\_ACEOF
1568
1569Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-maintainer-mode enable make rules and dependencies not useful
1574 (and sometimes confusing) to the casual installer
1575 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 --enable-static[=PKGS] build static libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-dependency-tracking speeds up one-time build
1581 --enable-dependency-tracking do not reject slow dependency extractors
1582
1583Optional Packages:
1584 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1585 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1586 --with-native-includes Use the system native include files instead of those
1587 included with openbsm.
1588 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1589 --with-pic try to use only PIC/non-PIC objects [default=use
1590 both]
1591 --with-tags[=TAGS] include additional configurations [automatic]
1592
1593Some influential environment variables:
1594 CC C compiler command
1595 CFLAGS C compiler flags
1596 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1597 nonstandard directory <lib dir>
1598 LIBS libraries to pass to the linker, e.g. -l<library>
1599 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1600 you have headers in a nonstandard directory <include dir>
1601 CPP C preprocessor
1602 CXX C++ compiler command
1603 CXXFLAGS C++ compiler flags
1604 CXXCPP C++ preprocessor
1605 F77 Fortran 77 compiler command
1606 FFLAGS Fortran 77 compiler flags
1607
1608Use these variables to override the choices made by `configure' or to help
1609it to find libraries and programs with nonstandard names/locations.
1610
1611Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1612_ACEOF
1613ac_status=$?
1614fi
1615
1616if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1621 continue
1622 ac_builddir=.
1623
1624case "$ac_dir" in
1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626*)
1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 esac ;;
1634esac
1635ac_abs_top_builddir=$ac_pwd
1636ac_abs_builddir=$ac_pwd$ac_dir_suffix
1637# for backward compatibility:
1638ac_top_builddir=$ac_top_build_prefix
1639
1640case $srcdir in
1641 .) # We are building in place.
1642 ac_srcdir=.
1643 ac_top_srcdir=$ac_top_builddir_sub
1644 ac_abs_top_srcdir=$ac_pwd ;;
1645 [\\/]* | ?:[\\/]* ) # Absolute name.
1646 ac_srcdir=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir=$srcdir
1648 ac_abs_top_srcdir=$srcdir ;;
1649 *) # Relative name.
1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1653esac
1654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655
1656 cd "$ac_dir" || { ac_status=$?; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1662 echo &&
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1664 else
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1666 fi || ac_status=$?
1667 cd "$ac_pwd" || { ac_status=$?; break; }
1668 done
1669fi
1670
1671test -n "$ac_init_help" && exit $ac_status
1672if $ac_init_version; then
1673 cat <<\_ACEOF
1674OpenBSM configure 1.1p1
1674OpenBSM configure 1.1p2
1675generated by GNU Autoconf 2.62
1676
1677Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16782002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682 exit
1683fi
1684cat >config.log <<_ACEOF
1685This file contains any messages produced by compilers while
1686running configure, to aid debugging if configure makes a mistake.
1687
1675generated by GNU Autoconf 2.62
1676
1677Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16782002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1679This configure script is free software; the Free Software Foundation
1680gives unlimited permission to copy, distribute and modify it.
1681_ACEOF
1682 exit
1683fi
1684cat >config.log <<_ACEOF
1685This file contains any messages produced by compilers while
1686running configure, to aid debugging if configure makes a mistake.
1687
1688It was created by OpenBSM $as_me 1.1p1, which was
1688It was created by OpenBSM $as_me 1.1p2, which was
1689generated by GNU Autoconf 2.62. Invocation command line was
1690
1691 $ $0 $@
1692
1693_ACEOF
1694exec 5>>config.log
1695{
1696cat <<_ASUNAME
1697## --------- ##
1698## Platform. ##
1699## --------- ##
1700
1701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1702uname -m = `(uname -m) 2>/dev/null || echo unknown`
1703uname -r = `(uname -r) 2>/dev/null || echo unknown`
1704uname -s = `(uname -s) 2>/dev/null || echo unknown`
1705uname -v = `(uname -v) 2>/dev/null || echo unknown`
1706
1707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1708/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1709
1710/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1711/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1713/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1714/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1715/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1716/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1717
1718_ASUNAME
1719
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 $as_echo "PATH: $as_dir"
1726done
1727IFS=$as_save_IFS
1728
1729} >&5
1730
1731cat >&5 <<_ACEOF
1732
1733
1734## ----------- ##
1735## Core tests. ##
1736## ----------- ##
1737
1738_ACEOF
1739
1740
1741# Keep a trace of the command line.
1742# Strip out --no-create and --no-recursion so they do not pile up.
1743# Strip out --silent because we don't want to record it for future runs.
1744# Also quote any args containing shell meta-characters.
1745# Make two passes to allow for proper duplicate-argument suppression.
1746ac_configure_args=
1747ac_configure_args0=
1748ac_configure_args1=
1749ac_must_keep_next=false
1750for ac_pass in 1 2
1751do
1752 for ac_arg
1753 do
1754 case $ac_arg in
1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1757 | -silent | --silent | --silen | --sile | --sil)
1758 continue ;;
1759 *\'*)
1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 esac
1762 case $ac_pass in
1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1764 2)
1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1766 if test $ac_must_keep_next = true; then
1767 ac_must_keep_next=false # Got value, back to normal.
1768 else
1769 case $ac_arg in
1770 *=* | --config-cache | -C | -disable-* | --disable-* \
1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1773 | -with-* | --with-* | -without-* | --without-* | --x)
1774 case "$ac_configure_args0 " in
1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 esac
1777 ;;
1778 -* ) ac_must_keep_next=true ;;
1779 esac
1780 fi
1781 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 ;;
1783 esac
1784 done
1785done
1786$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1787$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1788
1789# When interrupted or exit'd, cleanup temporary files, and complete
1790# config.log. We remove comments because anyway the quotes in there
1791# would cause problems or look ugly.
1792# WARNING: Use '\'' to represent an apostrophe within the trap.
1793# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1794trap 'exit_status=$?
1795 # Save into config.log some information that might help in debugging.
1796 {
1797 echo
1798
1799 cat <<\_ASBOX
1800## ---------------- ##
1801## Cache variables. ##
1802## ---------------- ##
1803_ASBOX
1804 echo
1805 # The following way of writing the cache mishandles newlines in values,
1806(
1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in #(
1810 *${as_nl}*)
1811 case $ac_var in #(
1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1813$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1814 esac
1815 case $ac_var in #(
1816 _ | IFS | as_nl) ;; #(
1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1818 *) $as_unset $ac_var ;;
1819 esac ;;
1820 esac
1821 done
1822 (set) 2>&1 |
1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824 *${as_nl}ac_space=\ *)
1825 sed -n \
1826 "s/'\''/'\''\\\\'\'''\''/g;
1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 ;; #(
1829 *)
1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831 ;;
1832 esac |
1833 sort
1834)
1835 echo
1836
1837 cat <<\_ASBOX
1838## ----------------- ##
1839## Output variables. ##
1840## ----------------- ##
1841_ASBOX
1842 echo
1843 for ac_var in $ac_subst_vars
1844 do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 $as_echo "$ac_var='\''$ac_val'\''"
1850 done | sort
1851 echo
1852
1853 if test -n "$ac_subst_files"; then
1854 cat <<\_ASBOX
1855## ------------------- ##
1856## File substitutions. ##
1857## ------------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_files
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869 fi
1870
1871 if test -s confdefs.h; then
1872 cat <<\_ASBOX
1873## ----------- ##
1874## confdefs.h. ##
1875## ----------- ##
1876_ASBOX
1877 echo
1878 cat confdefs.h
1879 echo
1880 fi
1881 test "$ac_signal" != 0 &&
1882 $as_echo "$as_me: caught signal $ac_signal"
1883 $as_echo "$as_me: exit $exit_status"
1884 } >&5
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 exit $exit_status
1888' 0
1889for ac_signal in 1 2 13 15; do
1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891done
1892ac_signal=0
1893
1894# confdefs.h avoids OS command line length limits that DEFS can exceed.
1895rm -f -r conftest* confdefs.h
1896
1897# Predefined preprocessor variables.
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_NAME "$PACKAGE_NAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_VERSION "$PACKAGE_VERSION"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_STRING "$PACKAGE_STRING"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921_ACEOF
1922
1923
1924# Let the site file select an alternate cache file if it wants to.
1925# Prefer an explicitly selected file to automatically selected ones.
1926ac_site_file1=NONE
1927ac_site_file2=NONE
1928if test -n "$CONFIG_SITE"; then
1929 ac_site_file1=$CONFIG_SITE
1930elif test "x$prefix" != xNONE; then
1931 ac_site_file1=$prefix/share/config.site
1932 ac_site_file2=$prefix/etc/config.site
1933else
1934 ac_site_file1=$ac_default_prefix/share/config.site
1935 ac_site_file2=$ac_default_prefix/etc/config.site
1936fi
1937for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1938do
1939 test "x$ac_site_file" = xNONE && continue
1940 if test -r "$ac_site_file"; then
1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1944 . "$ac_site_file"
1945 fi
1946done
1947
1948if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953$as_echo "$as_me: loading cache $cache_file" >&6;}
1954 case $cache_file in
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1957 esac
1958 fi
1959else
1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961$as_echo "$as_me: creating cache $cache_file" >&6;}
1962 >$cache_file
1963fi
1964
1965ac_header_list="$ac_header_list sys/time.h"
1966ac_header_list="$ac_header_list unistd.h"
1967ac_func_list="$ac_func_list alarm"
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
1971for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1977 set,)
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,set)
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,);;
1986 *)
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1995 else
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
1999 fi
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2004 fi;;
2005 esac
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2008 case $ac_new_val in
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2011 esac
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 esac
2016 fi
2017done
2018if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2024fi
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059ac_aux_dir=
2060for ac_dir in config "$srcdir"/config; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
2076 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2077$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
2089
2090ac_config_headers="$ac_config_headers config/config.h"
2091
2092{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2093$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2094 # Check whether --enable-maintainer-mode was given.
2095if test "${enable_maintainer_mode+set}" = set; then
2096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2097else
2098 USE_MAINTAINER_MODE=no
2099fi
2100
2101 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2102$as_echo "$USE_MAINTAINER_MODE" >&6; }
2103 if test $USE_MAINTAINER_MODE = yes; then
2104 MAINTAINER_MODE_TRUE=
2105 MAINTAINER_MODE_FALSE='#'
2106else
2107 MAINTAINER_MODE_TRUE='#'
2108 MAINTAINER_MODE_FALSE=
2109fi
2110
2111 MAINT=$MAINTAINER_MODE_TRUE
2112
2113
2114
2115# --with-native-includes forces the use of the system bsm headers.
2116
2117# Check whether --with-native-includes was given.
2118if test "${with_native_includes+set}" = set; then
2119 withval=$with_native_includes;
2120
2121cat >>confdefs.h <<\_ACEOF
2122#define USE_NATIVE_INCLUDES /**/
2123_ACEOF
2124
2125use_native_includes=true
2126
2127else
2128 use_native_includes=false
2129fi
2130
2131 if $use_native_includes; then
2132 USE_NATIVE_INCLUDES_TRUE=
2133 USE_NATIVE_INCLUDES_FALSE='#'
2134else
2135 USE_NATIVE_INCLUDES_TRUE='#'
2136 USE_NATIVE_INCLUDES_FALSE=
2137fi
2138
2139
2140for ac_prog in mig
2141do
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143set dummy $ac_prog; ac_word=$2
2144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2145$as_echo_n "checking for $ac_word... " >&6; }
2146if test "${ac_cv_path_MIG+set}" = set; then
2147 $as_echo_n "(cached) " >&6
2148else
2149 case $MIG in
2150 [\\/]* | ?:[\\/]*)
2151 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2152 ;;
2153 *)
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2164 fi
2165done
2166done
2167IFS=$as_save_IFS
2168
2169 ;;
2170esac
2171fi
2172MIG=$ac_cv_path_MIG
2173if test -n "$MIG"; then
2174 { $as_echo "$as_me:$LINENO: result: $MIG" >&5
2175$as_echo "$MIG" >&6; }
2176else
2177 { $as_echo "$as_me:$LINENO: result: no" >&5
2178$as_echo "no" >&6; }
2179fi
2180
2181
2182 test -n "$MIG" && break
2183done
2184
2185
2186# Checks for programs.
2187ac_ext=c
2188ac_cpp='$CPP $CPPFLAGS'
2189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196$as_echo_n "checking for $ac_word... " >&6; }
2197if test "${ac_cv_prog_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2199else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214done
2215done
2216IFS=$as_save_IFS
2217
2218fi
2219fi
2220CC=$ac_cv_prog_CC
2221if test -n "$CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2223$as_echo "$CC" >&6; }
2224else
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226$as_echo "no" >&6; }
2227fi
2228
2229
2230fi
2231if test -z "$ac_cv_prog_CC"; then
2232 ac_ct_CC=$CC
2233 # Extract the first word of "gcc", so it can be a program name with args.
2234set dummy gcc; ac_word=$2
2235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2236$as_echo_n "checking for $ac_word... " >&6; }
2237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 $as_echo_n "(cached) " >&6
2239else
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242else
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_ac_ct_CC="gcc"
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254done
2255done
2256IFS=$as_save_IFS
2257
2258fi
2259fi
2260ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261if test -n "$ac_ct_CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263$as_echo "$ac_ct_CC" >&6; }
2264else
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266$as_echo "no" >&6; }
2267fi
2268
2269 if test "x$ac_ct_CC" = x; then
2270 CC=""
2271 else
2272 case $cross_compiling:$ac_tool_warned in
2273yes:)
2274{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2275whose name does not start with the host triplet. If you think this
2276configuration is useful to you, please write to autoconf@gnu.org." >&5
2277$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2278whose name does not start with the host triplet. If you think this
2279configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2280ac_tool_warned=yes ;;
2281esac
2282 CC=$ac_ct_CC
2283 fi
2284else
2285 CC="$ac_cv_prog_CC"
2286fi
2287
2288if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}cc; ac_word=$2
2292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293$as_echo_n "checking for $ac_word... " >&6; }
2294if test "${ac_cv_prog_CC+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}cc"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320$as_echo "$CC" >&6; }
2321else
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323$as_echo "no" >&6; }
2324fi
2325
2326
2327 fi
2328fi
2329if test -z "$CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331set dummy cc; ac_word=$2
2332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
2334if test "${ac_cv_prog_CC+set}" = set; then
2335 $as_echo_n "(cached) " >&6
2336else
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340 ac_prog_rejected=no
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349 ac_prog_rejected=yes
2350 continue
2351 fi
2352 ac_cv_prog_CC="cc"
2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357done
2358IFS=$as_save_IFS
2359
2360if test $ac_prog_rejected = yes; then
2361 # We found a bogon in the path, so make sure we never use it.
2362 set dummy $ac_cv_prog_CC
2363 shift
2364 if test $# != 0; then
2365 # We chose a different compiler from the bogus one.
2366 # However, it has the same basename, so the bogon will be chosen
2367 # first if we set CC to just the basename; use the full file name.
2368 shift
2369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 fi
2371fi
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2377$as_echo "$CC" >&6; }
2378else
2379 { $as_echo "$as_me:$LINENO: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in cl.exe
2388 do
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if test "${ac_cv_prog_CC+set}" = set; then
2394 $as_echo_n "(cached) " >&6
2395else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2419$as_echo "$CC" >&6; }
2420else
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422$as_echo "no" >&6; }
2423fi
2424
2425
2426 test -n "$CC" && break
2427 done
2428fi
2429if test -z "$CC"; then
2430 ac_ct_CC=$CC
2431 for ac_prog in cl.exe
2432do
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434set dummy $ac_prog; ac_word=$2
2435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436$as_echo_n "checking for $ac_word... " >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 $as_echo_n "(cached) " >&6
2439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="$ac_prog"
2451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463$as_echo "$ac_ct_CC" >&6; }
2464else
2465 { $as_echo "$as_me:$LINENO: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470 test -n "$ac_ct_CC" && break
2471done
2472
2473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
2488fi
2489
2490fi
2491
2492
2493test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2494See \`config.log' for more details." >&5
2495$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2496See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2498
2499# Provide some information about the compiler.
2500$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2501set X $ac_compile
2502ac_compiler=$2
2503{ (ac_try="$ac_compiler --version >&5"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509$as_echo "$ac_try_echo") >&5
2510 (eval "$ac_compiler --version >&5") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514{ (ac_try="$ac_compiler -v >&5"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2520$as_echo "$ac_try_echo") >&5
2521 (eval "$ac_compiler -v >&5") 2>&5
2522 ac_status=$?
2523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525{ (ac_try="$ac_compiler -V >&5"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2531$as_echo "$ac_try_echo") >&5
2532 (eval "$ac_compiler -V >&5") 2>&5
2533 ac_status=$?
2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536
2537cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552ac_clean_files_save=$ac_clean_files
2553ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2554# Try to create an executable without -o first, disregard a.out.
2555# It will help us diagnose broken compilers, and finding out an intuition
2556# of exeext.
2557{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2558$as_echo_n "checking for C compiler default output file name... " >&6; }
2559ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2560
2561# The possible output files:
2562ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2563
2564ac_rmfiles=
2565for ac_file in $ac_files
2566do
2567 case $ac_file in
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2570 esac
2571done
2572rm -f $ac_rmfiles
2573
2574if { (ac_try="$ac_link_default"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2580$as_echo "$ac_try_echo") >&5
2581 (eval "$ac_link_default") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2587# in a Makefile. We should not override ac_cv_exeext if it was cached,
2588# so that the user can short-circuit this test for compilers unknown to
2589# Autoconf.
2590for ac_file in $ac_files ''
2591do
2592 test -f "$ac_file" || continue
2593 case $ac_file in
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2595 ;;
2596 [ab].out )
2597 # We found the default executable, but exeext='' is most
2598 # certainly right.
2599 break;;
2600 *.* )
2601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2602 then :; else
2603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 fi
2605 # We set ac_cv_exeext here because the later test for it is not
2606 # safe: cross compilers may not add the suffix if given an `-o'
2607 # argument, so we may need to know it at that point already.
2608 # Even if this section looks crufty: it has the advantage of
2609 # actually working.
2610 break;;
2611 * )
2612 break;;
2613 esac
2614done
2615test "$ac_cv_exeext" = no && ac_cv_exeext=
2616
2617else
2618 ac_file=''
2619fi
2620
2621{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2622$as_echo "$ac_file" >&6; }
2623if test -z "$ac_file"; then
2624 $as_echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2628See \`config.log' for more details." >&5
2629$as_echo "$as_me: error: C compiler cannot create executables
2630See \`config.log' for more details." >&2;}
2631 { (exit 77); exit 77; }; }
2632fi
2633
2634ac_exeext=$ac_cv_exeext
2635
2636# Check that the compiler produces executables we can run. If not, either
2637# the compiler is broken, or we cross compile.
2638{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2639$as_echo_n "checking whether the C compiler works... " >&6; }
2640# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2641# If not cross compiling, check that we can run a simple program.
2642if test "$cross_compiling" != yes; then
2643 if { ac_try='./$ac_file'
2644 { (case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647esac
2648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2649$as_echo "$ac_try_echo") >&5
2650 (eval "$ac_try") 2>&5
2651 ac_status=$?
2652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 cross_compiling=no
2655 else
2656 if test "$cross_compiling" = maybe; then
2657 cross_compiling=yes
2658 else
2659 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2660If you meant to cross compile, use \`--host'.
2661See \`config.log' for more details." >&5
2662$as_echo "$as_me: error: cannot run C compiled programs.
2663If you meant to cross compile, use \`--host'.
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2666 fi
2667 fi
2668fi
2669{ $as_echo "$as_me:$LINENO: result: yes" >&5
2670$as_echo "yes" >&6; }
2671
2672rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2673ac_clean_files=$ac_clean_files_save
2674# Check that the compiler produces executables we can run. If not, either
2675# the compiler is broken, or we cross compile.
2676{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2677$as_echo_n "checking whether we are cross compiling... " >&6; }
2678{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2679$as_echo "$cross_compiling" >&6; }
2680
2681{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2682$as_echo_n "checking for suffix of executables... " >&6; }
2683if { (ac_try="$ac_link"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689$as_echo "$ac_try_echo") >&5
2690 (eval "$ac_link") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2695# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2696# work properly (i.e., refer to `conftest.exe'), while it won't with
2697# `rm'.
2698for ac_file in conftest.exe conftest conftest.*; do
2699 test -f "$ac_file" || continue
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 break;;
2704 * ) break;;
2705 esac
2706done
2707else
2708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709See \`config.log' for more details." >&5
2710$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713fi
2714
2715rm -f conftest$ac_cv_exeext
2716{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717$as_echo "$ac_cv_exeext" >&6; }
2718
2719rm -f conftest.$ac_ext
2720EXEEXT=$ac_cv_exeext
2721ac_exeext=$EXEEXT
2722{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723$as_echo_n "checking for suffix of object files... " >&6; }
2724if test "${ac_cv_objext+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726else
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733
2734int
2735main ()
2736{
2737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742rm -f conftest.o conftest.obj
2743if { (ac_try="$ac_compile"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749$as_echo "$ac_try_echo") >&5
2750 (eval "$ac_compile") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2759 break;;
2760 esac
2761done
2762else
2763 $as_echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2767See \`config.log' for more details." >&5
2768$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2769See \`config.log' for more details." >&2;}
2770 { (exit 1); exit 1; }; }
2771fi
2772
2773rm -f conftest.$ac_cv_objext conftest.$ac_ext
2774fi
2775{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2776$as_echo "$ac_cv_objext" >&6; }
2777OBJEXT=$ac_cv_objext
2778ac_objext=$OBJEXT
2779{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2780$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2781if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 $as_echo_n "(cached) " >&6
2783else
2784 cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h. */
2790
2791int
2792main ()
2793{
2794#ifndef __GNUC__
2795 choke me
2796#endif
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (ac_try="$ac_compile"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809$as_echo "$ac_try_echo") >&5
2810 (eval "$ac_compile") 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
2820 ac_compiler_gnu=yes
2821else
2822 $as_echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 ac_compiler_gnu=no
2826fi
2827
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829ac_cv_c_compiler_gnu=$ac_compiler_gnu
2830
2831fi
2832{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2833$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834if test $ac_compiler_gnu = yes; then
2835 GCC=yes
2836else
2837 GCC=
2838fi
2839ac_test_CFLAGS=${CFLAGS+set}
2840ac_save_CFLAGS=$CFLAGS
2841{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842$as_echo_n "checking whether $CC accepts -g... " >&6; }
2843if test "${ac_cv_prog_cc_g+set}" = set; then
2844 $as_echo_n "(cached) " >&6
2845else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h. */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h. */
2856
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext
2866if { (ac_try="$ac_compile"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
2871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872$as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2883 ac_cv_prog_cc_g=yes
2884else
2885 $as_echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 CFLAGS=""
2889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911$as_echo "$ac_try_echo") >&5
2912 (eval "$ac_compile") 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } && {
2919 test -z "$ac_c_werror_flag" ||
2920 test ! -s conftest.err
2921 } && test -s conftest.$ac_objext; then
2922 :
2923else
2924 $as_echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 ac_c_werror_flag=$ac_save_c_werror_flag
2928 CFLAGS="-g"
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951$as_echo "$ac_try_echo") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2962 ac_cv_prog_cc_g=yes
2963else
2964 $as_echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967
2968fi
2969
2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971fi
2972
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2978fi
2979{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980$as_echo "$ac_cv_prog_cc_g" >&6; }
2981if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995fi
2996{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998if test "${ac_cv_prog_cc_c89+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000else
3001 ac_cv_prog_cc_c89=no
3002ac_save_CC=$CC
3003cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009#include <stdarg.h>
3010#include <stdio.h>
3011#include <sys/types.h>
3012#include <sys/stat.h>
3013/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3014struct buf { int x; };
3015FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016static char *e (p, i)
3017 char **p;
3018 int i;
3019{
3020 return p[i];
3021}
3022static char *f (char * (*g) (char **, int), char **p, ...)
3023{
3024 char *s;
3025 va_list v;
3026 va_start (v,p);
3027 s = g (p, va_arg (v,int));
3028 va_end (v);
3029 return s;
3030}
3031
3032/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3033 function prototypes and stuff, but not '\xHH' hex character constants.
3034 These don't provoke an error unfortunately, instead are silently treated
3035 as 'x'. The following induces an error, until -std is added to get
3036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3037 array size at least. It's necessary to write '\x00'==0 to get something
3038 that's true only with -std. */
3039int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040
3041/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042 inside strings and character constants. */
3043#define FOO(x) 'x'
3044int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045
3046int test (int i, double x);
3047struct s1 {int (*f) (int a);};
3048struct s2 {int (*f) (double a);};
3049int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050int argc;
3051char **argv;
3052int
3053main ()
3054{
3055return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062do
3063 CC="$ac_save_CC $ac_arg"
3064 rm -f conftest.$ac_objext
3065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3083else
3084 $as_echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088fi
3089
3090rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092done
3093rm -f conftest.$ac_ext
3094CC=$ac_save_CC
3095
3096fi
3097# AC_CACHE_VAL
3098case "x$ac_cv_prog_cc_c89" in
3099 x)
3100 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3101$as_echo "none needed" >&6; } ;;
3102 xno)
3103 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3104$as_echo "unsupported" >&6; } ;;
3105 *)
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3109esac
3110
3111
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118# Find a good install program. We prefer a C program (faster),
3119# so one script is as good as another. But avoid the broken or
3120# incompatible versions:
3121# SysV /etc/install, /usr/sbin/install
3122# SunOS /usr/etc/install
3123# IRIX /sbin/install
3124# AIX /bin/install
3125# AmigaOS /C/install, which installs bootblocks on floppy discs
3126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3129# OS/2's system install, which has a completely different semantic
3130# ./install, which can be erroneously created by make from ./install.sh.
3131# Reject install programs that cannot install multiple files.
3132{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3133$as_echo_n "checking for a BSD-compatible install... " >&6; }
3134if test -z "$INSTALL"; then
3135if test "${ac_cv_path_install+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3137else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 # Account for people who put trailing slashes in PATH elements.
3144case $as_dir/ in
3145 ./ | .// | /cC/* | \
3146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3148 /usr/ucb/* ) ;;
3149 *)
3150 # OSF1 and SCO ODT 3.0 have their own names for install.
3151 # Don't use installbsd from OSF since it installs stuff as root
3152 # by default.
3153 for ac_prog in ginstall scoinst install; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3156 if test $ac_prog = install &&
3157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3158 # AIX install. It has an incompatible calling convention.
3159 :
3160 elif test $ac_prog = install &&
3161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3162 # program-specific install script used by HP pwplus--don't use.
3163 :
3164 else
3165 rm -rf conftest.one conftest.two conftest.dir
3166 echo one > conftest.one
3167 echo two > conftest.two
3168 mkdir conftest.dir
3169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3170 test -s conftest.one && test -s conftest.two &&
3171 test -s conftest.dir/conftest.one &&
3172 test -s conftest.dir/conftest.two
3173 then
3174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3175 break 3
3176 fi
3177 fi
3178 fi
3179 done
3180 done
3181 ;;
3182esac
3183
3184done
3185IFS=$as_save_IFS
3186
3187rm -rf conftest.one conftest.two conftest.dir
3188
3189fi
3190 if test "${ac_cv_path_install+set}" = set; then
3191 INSTALL=$ac_cv_path_install
3192 else
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for INSTALL within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 INSTALL=$ac_install_sh
3198 fi
3199fi
3200{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3201$as_echo "$INSTALL" >&6; }
3202
3203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3204# It thinks the first close brace ends the variable substitution.
3205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3206
3207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3208
3209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3210
3211# Check whether --enable-shared was given.
3212if test "${enable_shared+set}" = set; then
3213 enableval=$enable_shared; p=${PACKAGE-default}
3214 case $enableval in
3215 yes) enable_shared=yes ;;
3216 no) enable_shared=no ;;
3217 *)
3218 enable_shared=no
3219 # Look at the argument we got. We use all the common list separators.
3220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3221 for pkg in $enableval; do
3222 IFS="$lt_save_ifs"
3223 if test "X$pkg" = "X$p"; then
3224 enable_shared=yes
3225 fi
3226 done
3227 IFS="$lt_save_ifs"
3228 ;;
3229 esac
3230else
3231 enable_shared=yes
3232fi
3233
3234
3235# Check whether --enable-static was given.
3236if test "${enable_static+set}" = set; then
3237 enableval=$enable_static; p=${PACKAGE-default}
3238 case $enableval in
3239 yes) enable_static=yes ;;
3240 no) enable_static=no ;;
3241 *)
3242 enable_static=no
3243 # Look at the argument we got. We use all the common list separators.
3244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3245 for pkg in $enableval; do
3246 IFS="$lt_save_ifs"
3247 if test "X$pkg" = "X$p"; then
3248 enable_static=yes
3249 fi
3250 done
3251 IFS="$lt_save_ifs"
3252 ;;
3253 esac
3254else
3255 enable_static=yes
3256fi
3257
3258
3259# Check whether --enable-fast-install was given.
3260if test "${enable_fast_install+set}" = set; then
3261 enableval=$enable_fast_install; p=${PACKAGE-default}
3262 case $enableval in
3263 yes) enable_fast_install=yes ;;
3264 no) enable_fast_install=no ;;
3265 *)
3266 enable_fast_install=no
3267 # Look at the argument we got. We use all the common list separators.
3268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269 for pkg in $enableval; do
3270 IFS="$lt_save_ifs"
3271 if test "X$pkg" = "X$p"; then
3272 enable_fast_install=yes
3273 fi
3274 done
3275 IFS="$lt_save_ifs"
3276 ;;
3277 esac
3278else
3279 enable_fast_install=yes
3280fi
3281
3282
3283# Make sure we can run config.sub.
3284$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3285 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3286$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3287 { (exit 1); exit 1; }; }
3288
3289{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3290$as_echo_n "checking build system type... " >&6; }
3291if test "${ac_cv_build+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3293else
3294 ac_build_alias=$build_alias
3295test "x$ac_build_alias" = x &&
3296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3297test "x$ac_build_alias" = x &&
3298 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3299$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3300 { (exit 1); exit 1; }; }
3301ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3302 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3303$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3304 { (exit 1); exit 1; }; }
3305
3306fi
3307{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3308$as_echo "$ac_cv_build" >&6; }
3309case $ac_cv_build in
3310*-*-*) ;;
3311*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3312$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3313 { (exit 1); exit 1; }; };;
3314esac
3315build=$ac_cv_build
3316ac_save_IFS=$IFS; IFS='-'
3317set x $ac_cv_build
3318shift
3319build_cpu=$1
3320build_vendor=$2
3321shift; shift
3322# Remember, the first character of IFS is used to create $*,
3323# except with old shells:
3324build_os=$*
3325IFS=$ac_save_IFS
3326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3327
3328
3329{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3330$as_echo_n "checking host system type... " >&6; }
3331if test "${ac_cv_host+set}" = set; then
3332 $as_echo_n "(cached) " >&6
3333else
3334 if test "x$host_alias" = x; then
3335 ac_cv_host=$ac_cv_build
3336else
3337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3338 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3339$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3340 { (exit 1); exit 1; }; }
3341fi
3342
3343fi
3344{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3345$as_echo "$ac_cv_host" >&6; }
3346case $ac_cv_host in
3347*-*-*) ;;
3348*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3349$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3350 { (exit 1); exit 1; }; };;
3351esac
3352host=$ac_cv_host
3353ac_save_IFS=$IFS; IFS='-'
3354set x $ac_cv_host
3355shift
3356host_cpu=$1
3357host_vendor=$2
3358shift; shift
3359# Remember, the first character of IFS is used to create $*,
3360# except with old shells:
3361host_os=$*
3362IFS=$ac_save_IFS
3363case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3364
3365
3366{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3367$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3368if test "${lt_cv_path_SED+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3370else
3371 # Loop through the user's path and test for sed and gsed.
3372# Then use that list of sed's as ones to test for truncation.
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for lt_ac_prog in sed gsed; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3381 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3382 fi
3383 done
3384 done
3385done
3386IFS=$as_save_IFS
3387lt_ac_max=0
3388lt_ac_count=0
3389# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3390# along with /bin/sed that truncates output.
3391for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3392 test ! -f $lt_ac_sed && continue
3393 cat /dev/null > conftest.in
3394 lt_ac_count=0
3395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3396 # Check for GNU sed and select it if it is found.
3397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3398 lt_cv_path_SED=$lt_ac_sed
3399 break
3400 fi
3401 while true; do
3402 cat conftest.in conftest.in >conftest.tmp
3403 mv conftest.tmp conftest.in
3404 cp conftest.in conftest.nl
3405 echo >>conftest.nl
3406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3407 cmp -s conftest.out conftest.nl || break
3408 # 10000 chars as input seems more than enough
3409 test $lt_ac_count -gt 10 && break
3410 lt_ac_count=`expr $lt_ac_count + 1`
3411 if test $lt_ac_count -gt $lt_ac_max; then
3412 lt_ac_max=$lt_ac_count
3413 lt_cv_path_SED=$lt_ac_sed
3414 fi
3415 done
3416done
3417
3418fi
3419
3420SED=$lt_cv_path_SED
3421
3422{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3423$as_echo "$SED" >&6; }
3424
3425{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3426$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3427if test "${ac_cv_path_GREP+set}" = set; then
3428 $as_echo_n "(cached) " >&6
3429else
3430 if test -z "$GREP"; then
3431 ac_path_GREP_found=false
3432 # Loop through the user's path and test for each of PROGNAME-LIST
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3435do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_prog in grep ggrep; do
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3442# Check for GNU ac_path_GREP and select it if it is found.
3443 # Check for GNU $ac_path_GREP
3444case `"$ac_path_GREP" --version 2>&1` in
3445*GNU*)
3446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3447*)
3448 ac_count=0
3449 $as_echo_n 0123456789 >"conftest.in"
3450 while :
3451 do
3452 cat "conftest.in" "conftest.in" >"conftest.tmp"
3453 mv "conftest.tmp" "conftest.in"
3454 cp "conftest.in" "conftest.nl"
3455 $as_echo 'GREP' >> "conftest.nl"
3456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3458 ac_count=`expr $ac_count + 1`
3459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3460 # Best one so far, save it but keep looking for a better one
3461 ac_cv_path_GREP="$ac_path_GREP"
3462 ac_path_GREP_max=$ac_count
3463 fi
3464 # 10*(2^10) chars as input seems more than enough
3465 test $ac_count -gt 10 && break
3466 done
3467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3468esac
3469
3470 $ac_path_GREP_found && break 3
3471 done
3472 done
3473done
3474IFS=$as_save_IFS
3475 if test -z "$ac_cv_path_GREP"; then
3476 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3477$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3478 { (exit 1); exit 1; }; }
3479 fi
3480else
3481 ac_cv_path_GREP=$GREP
3482fi
3483
3484fi
3485{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3486$as_echo "$ac_cv_path_GREP" >&6; }
3487 GREP="$ac_cv_path_GREP"
3488
3489
3490{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3491$as_echo_n "checking for egrep... " >&6; }
3492if test "${ac_cv_path_EGREP+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3494else
3495 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3496 then ac_cv_path_EGREP="$GREP -E"
3497 else
3498 if test -z "$EGREP"; then
3499 ac_path_EGREP_found=false
3500 # Loop through the user's path and test for each of PROGNAME-LIST
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_prog in egrep; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3509 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3510# Check for GNU ac_path_EGREP and select it if it is found.
3511 # Check for GNU $ac_path_EGREP
3512case `"$ac_path_EGREP" --version 2>&1` in
3513*GNU*)
3514 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3515*)
3516 ac_count=0
3517 $as_echo_n 0123456789 >"conftest.in"
3518 while :
3519 do
3520 cat "conftest.in" "conftest.in" >"conftest.tmp"
3521 mv "conftest.tmp" "conftest.in"
3522 cp "conftest.in" "conftest.nl"
3523 $as_echo 'EGREP' >> "conftest.nl"
3524 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3526 ac_count=`expr $ac_count + 1`
3527 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3528 # Best one so far, save it but keep looking for a better one
3529 ac_cv_path_EGREP="$ac_path_EGREP"
3530 ac_path_EGREP_max=$ac_count
3531 fi
3532 # 10*(2^10) chars as input seems more than enough
3533 test $ac_count -gt 10 && break
3534 done
3535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3536esac
3537
3538 $ac_path_EGREP_found && break 3
3539 done
3540 done
3541done
3542IFS=$as_save_IFS
3543 if test -z "$ac_cv_path_EGREP"; then
3544 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3545$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3546 { (exit 1); exit 1; }; }
3547 fi
3548else
3549 ac_cv_path_EGREP=$EGREP
3550fi
3551
3552 fi
3553fi
3554{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3555$as_echo "$ac_cv_path_EGREP" >&6; }
3556 EGREP="$ac_cv_path_EGREP"
3557
3558
3559
3560# Check whether --with-gnu-ld was given.
3561if test "${with_gnu_ld+set}" = set; then
3562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3563else
3564 with_gnu_ld=no
3565fi
3566
3567ac_prog=ld
3568if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3571$as_echo_n "checking for ld used by $CC... " >&6; }
3572 case $host in
3573 *-*-mingw*)
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3576 *)
3577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3578 esac
3579 case $ac_prog in
3580 # Accept absolute paths.
3581 [\\/]* | ?:[\\/]*)
3582 re_direlt='/[^/][^/]*/\.\./'
3583 # Canonicalize the pathname of ld
3584 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3586 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3587 done
3588 test -z "$LD" && LD="$ac_prog"
3589 ;;
3590 "")
3591 # If it fails, then pretend we aren't using GCC.
3592 ac_prog=ld
3593 ;;
3594 *)
3595 # If it is relative, then search for the first ld in PATH.
3596 with_gnu_ld=unknown
3597 ;;
3598 esac
3599elif test "$with_gnu_ld" = yes; then
3600 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3601$as_echo_n "checking for GNU ld... " >&6; }
3602else
3603 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604$as_echo_n "checking for non-GNU ld... " >&6; }
3605fi
3606if test "${lt_cv_path_LD+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3608else
3609 if test -z "$LD"; then
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH; do
3612 IFS="$lt_save_ifs"
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3615 lt_cv_path_LD="$ac_dir/$ac_prog"
3616 # Check to see if the program is GNU ld. I'd rather use --version,
3617 # but apparently some variants of GNU ld only accept -v.
3618 # Break only if it was the GNU/non-GNU ld that we prefer.
3619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3620 *GNU* | *'with BFD'*)
3621 test "$with_gnu_ld" != no && break
3622 ;;
3623 *)
3624 test "$with_gnu_ld" != yes && break
3625 ;;
3626 esac
3627 fi
3628 done
3629 IFS="$lt_save_ifs"
3630else
3631 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3632fi
3633fi
3634
3635LD="$lt_cv_path_LD"
3636if test -n "$LD"; then
3637 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3638$as_echo "$LD" >&6; }
3639else
3640 { $as_echo "$as_me:$LINENO: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3644$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3645 { (exit 1); exit 1; }; }
3646{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3647$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3648if test "${lt_cv_prog_gnu_ld+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3650else
3651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3652case `$LD -v 2>&1 </dev/null` in
3653*GNU* | *'with BFD'*)
3654 lt_cv_prog_gnu_ld=yes
3655 ;;
3656*)
3657 lt_cv_prog_gnu_ld=no
3658 ;;
3659esac
3660fi
3661{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3662$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3663with_gnu_ld=$lt_cv_prog_gnu_ld
3664
3665
3666{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3667$as_echo_n "checking for $LD option to reload object files... " >&6; }
3668if test "${lt_cv_ld_reload_flag+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670else
3671 lt_cv_ld_reload_flag='-r'
3672fi
3673{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3674$as_echo "$lt_cv_ld_reload_flag" >&6; }
3675reload_flag=$lt_cv_ld_reload_flag
3676case $reload_flag in
3677"" | " "*) ;;
3678*) reload_flag=" $reload_flag" ;;
3679esac
3680reload_cmds='$LD$reload_flag -o $output$reload_objs'
3681case $host_os in
3682 darwin*)
3683 if test "$GCC" = yes; then
3684 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3685 else
3686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3687 fi
3688 ;;
3689esac
3690
3691{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3692$as_echo_n "checking for BSD-compatible nm... " >&6; }
3693if test "${lt_cv_path_NM+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695else
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3698 lt_cv_path_NM="$NM"
3699else
3700 lt_nm_to_check="${ac_tool_prefix}nm"
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3702 lt_nm_to_check="$lt_nm_to_check nm"
3703 fi
3704 for lt_tmp_nm in $lt_nm_to_check; do
3705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3707 IFS="$lt_save_ifs"
3708 test -z "$ac_dir" && ac_dir=.
3709 tmp_nm="$ac_dir/$lt_tmp_nm"
3710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3711 # Check to see if the nm accepts a BSD-compat flag.
3712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713 # nm: unknown option "B" ignored
3714 # Tru64's nm complains that /dev/null is an invalid object file
3715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716 */dev/null* | *'Invalid file or object type'*)
3717 lt_cv_path_NM="$tmp_nm -B"
3718 break
3719 ;;
3720 *)
3721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722 */dev/null*)
3723 lt_cv_path_NM="$tmp_nm -p"
3724 break
3725 ;;
3726 *)
3727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728 continue # so that we can try to find one that supports BSD flags
3729 ;;
3730 esac
3731 ;;
3732 esac
3733 fi
3734 done
3735 IFS="$lt_save_ifs"
3736 done
3737 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3738fi
3739fi
3740{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3741$as_echo "$lt_cv_path_NM" >&6; }
3742NM="$lt_cv_path_NM"
3743
3744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745$as_echo_n "checking whether ln -s works... " >&6; }
3746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
3748 { $as_echo "$as_me:$LINENO: result: yes" >&5
3749$as_echo "yes" >&6; }
3750else
3751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752$as_echo "no, using $LN_S" >&6; }
3753fi
3754
3755{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3756$as_echo_n "checking how to recognize dependent libraries... " >&6; }
3757if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 $as_echo_n "(cached) " >&6
3759else
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761lt_cv_file_magic_test_file=
3762lt_cv_deplibs_check_method='unknown'
3763# Need to set the preceding variable on all platforms that support
3764# interlibrary dependencies.
3765# 'none' -- dependencies not supported.
3766# `unknown' -- same as none, but documents that we really don't know.
3767# 'pass_all' -- all dependencies passed with no checks.
3768# 'test_compile' -- check by making test program.
3769# 'file_magic [[regex]]' -- check by looking for files in library path
3770# which responds to the $file_magic_cmd with a given extended regex.
3771# If you have `file' or equivalent on your system and you're not sure
3772# whether `pass_all' will *always* work, you probably want this one.
3773
3774case $host_os in
3775aix[4-9]*)
3776 lt_cv_deplibs_check_method=pass_all
3777 ;;
3778
3779beos*)
3780 lt_cv_deplibs_check_method=pass_all
3781 ;;
3782
3783bsdi[45]*)
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3787 ;;
3788
3789cygwin*)
3790 # func_win32_libid is a shell function defined in ltmain.sh
3791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3792 lt_cv_file_magic_cmd='func_win32_libid'
3793 ;;
3794
3795mingw* | pw32*)
3796 # Base MSYS/MinGW do not provide the 'file' command needed by
3797 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3798 # unless we find 'file', for example because we are cross-compiling.
3799 if ( file / ) >/dev/null 2>&1; then
3800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3801 lt_cv_file_magic_cmd='func_win32_libid'
3802 else
3803 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3804 lt_cv_file_magic_cmd='$OBJDUMP -f'
3805 fi
3806 ;;
3807
3808darwin* | rhapsody*)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811
3812freebsd* | dragonfly*)
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814 case $host_cpu in
3815 i*86 )
3816 # Not sure whether the presence of OpenBSD here was a mistake.
3817 # Let's accept both of them until this is cleared up.
3818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3819 lt_cv_file_magic_cmd=/usr/bin/file
3820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3821 ;;
3822 esac
3823 else
3824 lt_cv_deplibs_check_method=pass_all
3825 fi
3826 ;;
3827
3828gnu*)
3829 lt_cv_deplibs_check_method=pass_all
3830 ;;
3831
3832hpux10.20* | hpux11*)
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 case $host_cpu in
3835 ia64*)
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3838 ;;
3839 hppa*64*)
3840 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]'
3841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3842 ;;
3843 *)
3844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3846 ;;
3847 esac
3848 ;;
3849
3850interix[3-9]*)
3851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3853 ;;
3854
3855irix5* | irix6* | nonstopux*)
3856 case $LD in
3857 *-32|*"-32 ") libmagic=32-bit;;
3858 *-n32|*"-n32 ") libmagic=N32;;
3859 *-64|*"-64 ") libmagic=64-bit;;
3860 *) libmagic=never-match;;
3861 esac
3862 lt_cv_deplibs_check_method=pass_all
3863 ;;
3864
3865# This must be Linux ELF.
3866linux* | k*bsd*-gnu)
3867 lt_cv_deplibs_check_method=pass_all
3868 ;;
3869
3870netbsd*)
3871 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3873 else
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3875 fi
3876 ;;
3877
3878newos6*)
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3880 lt_cv_file_magic_cmd=/usr/bin/file
3881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3882 ;;
3883
3884nto-qnx*)
3885 lt_cv_deplibs_check_method=unknown
3886 ;;
3887
3888openbsd*)
3889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3891 else
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3893 fi
3894 ;;
3895
3896osf3* | osf4* | osf5*)
3897 lt_cv_deplibs_check_method=pass_all
3898 ;;
3899
3900rdos*)
3901 lt_cv_deplibs_check_method=pass_all
3902 ;;
3903
3904solaris*)
3905 lt_cv_deplibs_check_method=pass_all
3906 ;;
3907
3908sysv4 | sysv4.3*)
3909 case $host_vendor in
3910 motorola)
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 ;;
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917 sequent)
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 ;;
3921 sni)
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3925 ;;
3926 siemens)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929 pc)
3930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932 esac
3933 ;;
3934
3935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938esac
3939
3940fi
3941{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942$as_echo "$lt_cv_deplibs_check_method" >&6; }
3943file_magic_cmd=$lt_cv_file_magic_cmd
3944deplibs_check_method=$lt_cv_deplibs_check_method
3945test -z "$deplibs_check_method" && deplibs_check_method=unknown
3946
3947
3948
3949
3950# If no C compiler was specified, use CC.
3951LTCC=${LTCC-"$CC"}
3952
3953# If no C compiler flags were specified, use CFLAGS.
3954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3955
3956# Allow CC to be a program name with arguments.
3957compiler=$CC
3958
3959
3960# Check whether --enable-libtool-lock was given.
3961if test "${enable_libtool_lock+set}" = set; then
3962 enableval=$enable_libtool_lock;
3963fi
3964
3965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3966
3967# Some flags need to be propagated to the compiler or linker for good
3968# libtool support.
3969case $host in
3970ia64-*-hpux*)
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *ELF-32*)
3980 HPUX_IA64_MODE="32"
3981 ;;
3982 *ELF-64*)
3983 HPUX_IA64_MODE="64"
3984 ;;
3985 esac
3986 fi
3987 rm -rf conftest*
3988 ;;
3989*-*-irix6*)
3990 # Find out which ABI we are using.
3991 echo '#line 3991 "configure"' > conftest.$ac_ext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
3999 *32-bit*)
4000 LD="${LD-ld} -melf32bsmip"
4001 ;;
4002 *N32*)
4003 LD="${LD-ld} -melf32bmipn32"
4004 ;;
4005 *64-bit*)
4006 LD="${LD-ld} -melf64bmip"
4007 ;;
4008 esac
4009 else
4010 case `/usr/bin/file conftest.$ac_objext` in
4011 *32-bit*)
4012 LD="${LD-ld} -32"
4013 ;;
4014 *N32*)
4015 LD="${LD-ld} -n32"
4016 ;;
4017 *64-bit*)
4018 LD="${LD-ld} -64"
4019 ;;
4020 esac
4021 fi
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
4026x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4027s390*-*linux*|sparc*-*linux*)
4028 # Find out which ABI we are using.
4029 echo 'int i;' > conftest.$ac_ext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; then
4035 case `/usr/bin/file conftest.o` in
4036 *32-bit*)
4037 case $host in
4038 x86_64-*kfreebsd*-gnu)
4039 LD="${LD-ld} -m elf_i386_fbsd"
4040 ;;
4041 x86_64-*linux*)
4042 LD="${LD-ld} -m elf_i386"
4043 ;;
4044 ppc64-*linux*|powerpc64-*linux*)
4045 LD="${LD-ld} -m elf32ppclinux"
4046 ;;
4047 s390x-*linux*)
4048 LD="${LD-ld} -m elf_s390"
4049 ;;
4050 sparc64-*linux*)
4051 LD="${LD-ld} -m elf32_sparc"
4052 ;;
4053 esac
4054 ;;
4055 *64-bit*)
4056 case $host in
4057 x86_64-*kfreebsd*-gnu)
4058 LD="${LD-ld} -m elf_x86_64_fbsd"
4059 ;;
4060 x86_64-*linux*)
4061 LD="${LD-ld} -m elf_x86_64"
4062 ;;
4063 ppc*-*linux*|powerpc*-*linux*)
4064 LD="${LD-ld} -m elf64ppc"
4065 ;;
4066 s390*-*linux*)
4067 LD="${LD-ld} -m elf64_s390"
4068 ;;
4069 sparc*-*linux*)
4070 LD="${LD-ld} -m elf64_sparc"
4071 ;;
4072 esac
4073 ;;
4074 esac
4075 fi
4076 rm -rf conftest*
4077 ;;
4078
4079*-*-sco3.2v5*)
4080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4081 SAVE_CFLAGS="$CFLAGS"
4082 CFLAGS="$CFLAGS -belf"
4083 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4084$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4085if test "${lt_cv_cc_needs_belf+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4087else
4088 ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100
4101int
4102main ()
4103{
4104
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext conftest$ac_exeext
4110if { (ac_try="$ac_link"
4111case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4116$as_echo "$ac_try_echo") >&5
4117 (eval "$ac_link") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest$ac_exeext && {
4127 test "$cross_compiling" = yes ||
4128 $as_test_x conftest$ac_exeext
4129 }; then
4130 lt_cv_cc_needs_belf=yes
4131else
4132 $as_echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 lt_cv_cc_needs_belf=no
4136fi
4137
4138rm -rf conftest.dSYM
4139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4140 conftest$ac_exeext conftest.$ac_ext
4141 ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147fi
4148{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4149$as_echo "$lt_cv_cc_needs_belf" >&6; }
4150 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4152 CFLAGS="$SAVE_CFLAGS"
4153 fi
4154 ;;
4155sparc*-*solaris*)
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4160 ac_status=$?
4161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case `/usr/bin/file conftest.o` in
4164 *64-bit*)
4165 case $lt_cv_prog_gnu_ld in
4166 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4167 *)
4168 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4169 LD="${LD-ld} -64"
4170 fi
4171 ;;
4172 esac
4173 ;;
4174 esac
4175 fi
4176 rm -rf conftest*
4177 ;;
4178
4179
4180esac
4181
4182need_locks="$enable_libtool_lock"
4183
4184
4185ac_ext=c
4186ac_cpp='$CPP $CPPFLAGS'
4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4191$as_echo_n "checking how to run the C preprocessor... " >&6; }
4192# On Suns, sometimes $CPP names a directory.
4193if test -n "$CPP" && test -d "$CPP"; then
4194 CPP=
4195fi
4196if test -z "$CPP"; then
4197 if test "${ac_cv_prog_CPP+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199else
4200 # Double quotes because CPP needs to be expanded
4201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4202 do
4203 ac_preproc_ok=false
4204for ac_c_preproc_warn_flag in '' yes
4205do
4206 # Use a header file that comes with gcc, so configuring glibc
4207 # with a fresh cross-compiler works.
4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4209 # <limits.h> exists even on freestanding compilers.
4210 # On the NeXT, cc -E runs the code through the compiler's parser,
4211 # not just through cpp. "Syntax error" is here to catch this case.
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218#ifdef __STDC__
4219# include <limits.h>
4220#else
4221# include <assert.h>
4222#endif
4223 Syntax error
4224_ACEOF
4225if { (ac_try="$ac_cpp conftest.$ac_ext"
4226case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231$as_echo "$ac_try_echo") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4241 }; then
4242 :
4243else
4244 $as_echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 # Broken: fails on valid input.
4248continue
4249fi
4250
4251rm -f conftest.err conftest.$ac_ext
4252
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat >conftest.$ac_ext <<_ACEOF
4256/* confdefs.h. */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h. */
4261#include <ac_nonexistent.h>
4262_ACEOF
4263if { (ac_try="$ac_cpp conftest.$ac_ext"
4264case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269$as_echo "$ac_try_echo") >&5
4270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null && {
4277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 }; then
4280 # Broken: success on invalid input.
4281continue
4282else
4283 $as_echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 # Passes both tests.
4287ac_preproc_ok=:
4288break
4289fi
4290
4291rm -f conftest.err conftest.$ac_ext
4292
4293done
4294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4295rm -f conftest.err conftest.$ac_ext
4296if $ac_preproc_ok; then
4297 break
4298fi
4299
4300 done
4301 ac_cv_prog_CPP=$CPP
4302
4303fi
4304 CPP=$ac_cv_prog_CPP
4305else
4306 ac_cv_prog_CPP=$CPP
4307fi
4308{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4309$as_echo "$CPP" >&6; }
4310ac_preproc_ok=false
4311for ac_c_preproc_warn_flag in '' yes
4312do
4313 # Use a header file that comes with gcc, so configuring glibc
4314 # with a fresh cross-compiler works.
4315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4316 # <limits.h> exists even on freestanding compilers.
4317 # On the NeXT, cc -E runs the code through the compiler's parser,
4318 # not just through cpp. "Syntax error" is here to catch this case.
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#ifdef __STDC__
4326# include <limits.h>
4327#else
4328# include <assert.h>
4329#endif
4330 Syntax error
4331_ACEOF
4332if { (ac_try="$ac_cpp conftest.$ac_ext"
4333case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4338$as_echo "$ac_try_echo") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4349 :
4350else
4351 $as_echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 # Broken: fails on valid input.
4355continue
4356fi
4357
4358rm -f conftest.err conftest.$ac_ext
4359
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368#include <ac_nonexistent.h>
4369_ACEOF
4370if { (ac_try="$ac_cpp conftest.$ac_ext"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 }; then
4387 # Broken: success on invalid input.
4388continue
4389else
4390 $as_echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 # Passes both tests.
4394ac_preproc_ok=:
4395break
4396fi
4397
4398rm -f conftest.err conftest.$ac_ext
4399
4400done
4401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402rm -f conftest.err conftest.$ac_ext
4403if $ac_preproc_ok; then
4404 :
4405else
4406 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4407See \`config.log' for more details." >&5
4408$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4409See \`config.log' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4411fi
4412
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419
4420{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4421$as_echo_n "checking for ANSI C header files... " >&6; }
4422if test "${ac_cv_header_stdc+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4424else
4425 cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
4431#include <stdlib.h>
4432#include <stdarg.h>
4433#include <string.h>
4434#include <float.h>
4435
4436int
4437main ()
4438{
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.$ac_objext
4445if { (ac_try="$ac_compile"
4446case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449esac
4450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4451$as_echo "$ac_try_echo") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_cv_header_stdc=yes
4463else
4464 $as_echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_cv_header_stdc=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471
4472if test $ac_cv_header_stdc = yes; then
4473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480#include <string.h>
4481
4482_ACEOF
4483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then
4485 :
4486else
4487 ac_cv_header_stdc=no
4488fi
4489rm -f conftest*
4490
4491fi
4492
4493if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501#include <stdlib.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "free" >/dev/null 2>&1; then
4506 :
4507else
4508 ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4516 if test "$cross_compiling" = yes; then
4517 :
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525#include <ctype.h>
4526#include <stdlib.h>
4527#if ((' ' & 0x0FF) == 0x020)
4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530#else
4531# define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 return 2;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest$ac_exeext
4551if { (ac_try="$ac_link"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557$as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567$as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 :
4573else
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575$as_echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578( exit $ac_status )
4579ac_cv_header_stdc=no
4580fi
4581rm -rf conftest.dSYM
4582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583fi
4584
4585
4586fi
4587fi
4588{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4589$as_echo "$ac_cv_header_stdc" >&6; }
4590if test $ac_cv_header_stdc = yes; then
4591
4592cat >>confdefs.h <<\_ACEOF
4593#define STDC_HEADERS 1
4594_ACEOF
4595
4596fi
4597
4598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609 inttypes.h stdint.h unistd.h
4610do
4611as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4613$as_echo_n "checking for $ac_header... " >&6; }
4614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 $as_echo_n "(cached) " >&6
4616else
4617 cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h. */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h. */
4623$ac_includes_default
4624
4625#include <$ac_header>
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (ac_try="$ac_compile"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634$as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 eval "$as_ac_Header=yes"
4646else
4647 $as_echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 eval "$as_ac_Header=no"
4651fi
4652
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655ac_res=`eval 'as_val=${'$as_ac_Header'}
4656 $as_echo "$as_val"'`
4657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4658$as_echo "$ac_res" >&6; }
4659if test `eval 'as_val=${'$as_ac_Header'}
4660 $as_echo "$as_val"'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663_ACEOF
4664
4665fi
4666
4667done
4668
4669
4670
4671for ac_header in dlfcn.h
4672do
4673as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4676$as_echo_n "checking for $ac_header... " >&6; }
4677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678 $as_echo_n "(cached) " >&6
4679fi
4680ac_res=`eval 'as_val=${'$as_ac_Header'}
4681 $as_echo "$as_val"'`
4682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4683$as_echo "$ac_res" >&6; }
4684else
4685 # Is the header compilable?
4686{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4687$as_echo_n "checking $ac_header usability... " >&6; }
4688cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694$ac_includes_default
4695#include <$ac_header>
4696_ACEOF
4697rm -f conftest.$ac_objext
4698if { (ac_try="$ac_compile"
4699case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702esac
4703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4704$as_echo "$ac_try_echo") >&5
4705 (eval "$ac_compile") 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && {
4712 test -z "$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 } && test -s conftest.$ac_objext; then
4715 ac_header_compiler=yes
4716else
4717 $as_echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_header_compiler=no
4721fi
4722
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725$as_echo "$ac_header_compiler" >&6; }
4726
4727# Is the header present?
4728{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4729$as_echo_n "checking $ac_header presence... " >&6; }
4730cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736#include <$ac_header>
4737_ACEOF
4738if { (ac_try="$ac_cpp conftest.$ac_ext"
4739case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
4743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4744$as_echo "$ac_try_echo") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null && {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 }; then
4755 ac_header_preproc=yes
4756else
4757 $as_echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ac_header_preproc=no
4761fi
4762
4763rm -f conftest.err conftest.$ac_ext
4764{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765$as_echo "$ac_header_preproc" >&6; }
4766
4767# So? What about this header?
4768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4769 yes:no: )
4770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4771$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4773$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4775 ;;
4776 no:yes:* )
4777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4778$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4780$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4782$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4784$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4786$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4788$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4789 ( cat <<\_ASBOX
4790## ----------------------------------------------- ##
4791## Report this to trustedbsd-audit@TrustesdBSD.org ##
4792## ----------------------------------------------- ##
4793_ASBOX
4794 ) | sed "s/^/$as_me: WARNING: /" >&2
4795 ;;
4796esac
4797{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4798$as_echo_n "checking for $ac_header... " >&6; }
4799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4800 $as_echo_n "(cached) " >&6
4801else
4802 eval "$as_ac_Header=\$ac_header_preproc"
4803fi
4804ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807$as_echo "$ac_res" >&6; }
4808
4809fi
4810if test `eval 'as_val=${'$as_ac_Header'}
4811 $as_echo "$as_val"'` = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814_ACEOF
4815
4816fi
4817
4818done
4819
4820ac_ext=cpp
4821ac_cpp='$CXXCPP $CPPFLAGS'
4822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4825if test -z "$CXX"; then
4826 if test -n "$CCC"; then
4827 CXX=$CCC
4828 else
4829 if test -n "$ac_tool_prefix"; then
4830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4831 do
4832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_CXX+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4838else
4839 if test -n "$CXX"; then
4840 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859CXX=$ac_cv_prog_CXX
4860if test -n "$CXX"; then
4861 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4862$as_echo "$CXX" >&6; }
4863else
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867
4868
4869 test -n "$CXX" && break
4870 done
4871fi
4872if test -z "$CXX"; then
4873 ac_ct_CXX=$CXX
4874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4875do
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877set dummy $ac_prog; ac_word=$2
4878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4881 $as_echo_n "(cached) " >&6
4882else
4883 if test -n "$ac_ct_CXX"; then
4884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_CXX="$ac_prog"
4894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897done
4898done
4899IFS=$as_save_IFS
4900
4901fi
4902fi
4903ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4904if test -n "$ac_ct_CXX"; then
4905 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4906$as_echo "$ac_ct_CXX" >&6; }
4907else
4908 { $as_echo "$as_me:$LINENO: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913 test -n "$ac_ct_CXX" && break
4914done
4915
4916 if test "x$ac_ct_CXX" = x; then
4917 CXX="g++"
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4922whose name does not start with the host triplet. If you think this
4923configuration is useful to you, please write to autoconf@gnu.org." >&5
4924$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4925whose name does not start with the host triplet. If you think this
4926configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4927ac_tool_warned=yes ;;
4928esac
4929 CXX=$ac_ct_CXX
4930 fi
4931fi
4932
4933 fi
4934fi
4935# Provide some information about the compiler.
4936$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4937set X $ac_compile
4938ac_compiler=$2
4939{ (ac_try="$ac_compiler --version >&5"
4940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
4944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945$as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compiler --version >&5") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4950{ (ac_try="$ac_compiler -v >&5"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956$as_echo "$ac_try_echo") >&5
4957 (eval "$ac_compiler -v >&5") 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4961{ (ac_try="$ac_compiler -V >&5"
4962case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965esac
4966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967$as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compiler -V >&5") 2>&5
4969 ac_status=$?
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972
4973{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4974$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4975if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4977else
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988#ifndef __GNUC__
4989 choke me
4990#endif
4991
4992 ;
4993 return 0;
4994}
4995_ACEOF
4996rm -f conftest.$ac_objext
4997if { (ac_try="$ac_compile"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
5002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003$as_echo "$ac_try_echo") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_cxx_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_compiler_gnu=yes
5015else
5016 $as_echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ac_compiler_gnu=no
5020fi
5021
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5024
5025fi
5026{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5027$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5028if test $ac_compiler_gnu = yes; then
5029 GXX=yes
5030else
5031 GXX=
5032fi
5033ac_test_CXXFLAGS=${CXXFLAGS+set}
5034ac_save_CXXFLAGS=$CXXFLAGS
5035{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5036$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5037if test "${ac_cv_prog_cxx_g+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039else
5040 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5041 ac_cxx_werror_flag=yes
5042 ac_cv_prog_cxx_g=no
5043 CXXFLAGS="-g"
5044 cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (ac_try="$ac_compile"
5061case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064esac
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_cxx_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cxx_g=yes
5078else
5079 $as_echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 CXXFLAGS=""
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105$as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 :
5117else
5118 $as_echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 CXXFLAGS="-g"
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129
5130int
5131main ()
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_cxx_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cxx_g=yes
5157else
5158 $as_echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5172fi
5173{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5174$as_echo "$ac_cv_prog_cxx_g" >&6; }
5175if test "$ac_test_CXXFLAGS" = set; then
5176 CXXFLAGS=$ac_save_CXXFLAGS
5177elif test $ac_cv_prog_cxx_g = yes; then
5178 if test "$GXX" = yes; then
5179 CXXFLAGS="-g -O2"
5180 else
5181 CXXFLAGS="-g"
5182 fi
5183else
5184 if test "$GXX" = yes; then
5185 CXXFLAGS="-O2"
5186 else
5187 CXXFLAGS=
5188 fi
5189fi
5190ac_ext=cpp
5191ac_cpp='$CXXCPP $CPPFLAGS'
5192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5195
5196
5197
5198if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5199 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5200 (test "X$CXX" != "Xg++"))) ; then
5201 ac_ext=cpp
5202ac_cpp='$CXXCPP $CPPFLAGS'
5203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5207$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5208if test -z "$CXXCPP"; then
5209 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5211else
5212 # Double quotes because CXXCPP needs to be expanded
5213 for CXXCPP in "$CXX -E" "/lib/cpp"
5214 do
5215 ac_preproc_ok=false
5216for ac_cxx_preproc_warn_flag in '' yes
5217do
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#ifdef __STDC__
5231# include <limits.h>
5232#else
5233# include <assert.h>
5234#endif
5235 Syntax error
5236_ACEOF
5237if { (ac_try="$ac_cpp conftest.$ac_ext"
5238case "(($ac_try" in
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243$as_echo "$ac_try_echo") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5252 test ! -s conftest.err
5253 }; then
5254 :
5255else
5256 $as_echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 # Broken: fails on valid input.
5260continue
5261fi
5262
5263rm -f conftest.err conftest.$ac_ext
5264
5265 # OK, works on sane cases. Now check whether nonexistent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#include <ac_nonexistent.h>
5274_ACEOF
5275if { (ac_try="$ac_cpp conftest.$ac_ext"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5281$as_echo "$ac_try_echo") >&5
5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null && {
5289 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5290 test ! -s conftest.err
5291 }; then
5292 # Broken: success on invalid input.
5293continue
5294else
5295 $as_echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 # Passes both tests.
5299ac_preproc_ok=:
5300break
5301fi
5302
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then
5309 break
5310fi
5311
5312 done
5313 ac_cv_prog_CXXCPP=$CXXCPP
5314
5315fi
5316 CXXCPP=$ac_cv_prog_CXXCPP
5317else
5318 ac_cv_prog_CXXCPP=$CXXCPP
5319fi
5320{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5321$as_echo "$CXXCPP" >&6; }
5322ac_preproc_ok=false
5323for ac_cxx_preproc_warn_flag in '' yes
5324do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#ifdef __STDC__
5338# include <limits.h>
5339#else
5340# include <assert.h>
5341#endif
5342 Syntax error
5343_ACEOF
5344if { (ac_try="$ac_cpp conftest.$ac_ext"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350$as_echo "$ac_try_echo") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null && {
5358 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5359 test ! -s conftest.err
5360 }; then
5361 :
5362else
5363 $as_echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 # Broken: fails on valid input.
5367continue
5368fi
5369
5370rm -f conftest.err conftest.$ac_ext
5371
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#include <ac_nonexistent.h>
5381_ACEOF
5382if { (ac_try="$ac_cpp conftest.$ac_ext"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388$as_echo "$ac_try_echo") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null && {
5396 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 }; then
5399 # Broken: success on invalid input.
5400continue
5401else
5402 $as_echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 :
5417else
5418 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5419See \`config.log' for more details." >&5
5420$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5423fi
5424
5425ac_ext=cpp
5426ac_cpp='$CXXCPP $CPPFLAGS'
5427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5430
5431fi
5432
5433
5434ac_ext=f
5435ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438if test -n "$ac_tool_prefix"; then
5439 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 pgf95 lf95 ftn
5440 do
5441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_F77+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447else
5448 if test -n "$F77"; then
5449 ac_cv_prog_F77="$F77" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468F77=$ac_cv_prog_F77
5469if test -n "$F77"; then
5470 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5471$as_echo "$F77" >&6; }
5472else
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478 test -n "$F77" && break
5479 done
5480fi
5481if test -z "$F77"; then
5482 ac_ct_F77=$F77
5483 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 pgf95 lf95 ftn
5484do
5485 # Extract the first word of "$ac_prog", so it can be a program name with args.
5486set dummy $ac_prog; ac_word=$2
5487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$ac_ct_F77"; then
5493 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_F77="$ac_prog"
5503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_F77=$ac_cv_prog_ac_ct_F77
5513if test -n "$ac_ct_F77"; then
5514 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5515$as_echo "$ac_ct_F77" >&6; }
5516else
5517 { $as_echo "$as_me:$LINENO: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521
5522 test -n "$ac_ct_F77" && break
5523done
5524
5525 if test "x$ac_ct_F77" = x; then
5526 F77=""
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529yes:)
5530{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5531whose name does not start with the host triplet. If you think this
5532configuration is useful to you, please write to autoconf@gnu.org." >&5
5533$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5534whose name does not start with the host triplet. If you think this
5535configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538 F77=$ac_ct_F77
5539 fi
5540fi
5541
5542
5543# Provide some information about the compiler.
5544$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5545set X $ac_compile
5546ac_compiler=$2
5547{ (ac_try="$ac_compiler --version >&5"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5553$as_echo "$ac_try_echo") >&5
5554 (eval "$ac_compiler --version >&5") 2>&5
5555 ac_status=$?
5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }
5558{ (ac_try="$ac_compiler -v >&5"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564$as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compiler -v >&5") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569{ (ac_try="$ac_compiler -V >&5"
5570case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5575$as_echo "$ac_try_echo") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580rm -f a.out
5581
5582# If we don't use `.F' as extension, the preprocessor is not run on the
5583# input file. (Note that this only needs to work for GNU compilers.)
5584ac_save_ext=$ac_ext
5585ac_ext=F
5586{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5587$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5588if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5590else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 program main
5593#ifndef __GNUC__
5594 choke me
5595#endif
5596
5597 end
5598_ACEOF
5599rm -f conftest.$ac_objext
5600if { (ac_try="$ac_compile"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5606$as_echo "$ac_try_echo") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_f77_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_compiler_gnu=yes
5618else
5619 $as_echo "$as_me: failed program was:" >&5
5620sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_compiler_gnu=no
5623fi
5624
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5627
5628fi
5629{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5630$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5631ac_ext=$ac_save_ext
5632ac_test_FFLAGS=${FFLAGS+set}
5633ac_save_FFLAGS=$FFLAGS
5634FFLAGS=
5635{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5636$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5637if test "${ac_cv_prog_f77_g+set}" = set; then
5638 $as_echo_n "(cached) " >&6
5639else
5640 FFLAGS=-g
5641cat >conftest.$ac_ext <<_ACEOF
5642 program main
5643
5644 end
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (ac_try="$ac_compile"
5648case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651esac
5652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5653$as_echo "$ac_try_echo") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_f77_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_cv_prog_f77_g=yes
5665else
5666 $as_echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ac_cv_prog_f77_g=no
5670fi
5671
5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
5674fi
5675{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5676$as_echo "$ac_cv_prog_f77_g" >&6; }
5677if test "$ac_test_FFLAGS" = set; then
5678 FFLAGS=$ac_save_FFLAGS
5679elif test $ac_cv_prog_f77_g = yes; then
5680 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5681 FFLAGS="-g -O2"
5682 else
5683 FFLAGS="-g"
5684 fi
5685else
5686 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5687 FFLAGS="-O2"
5688 else
5689 FFLAGS=
5690 fi
5691fi
5692
5693if test $ac_compiler_gnu = yes; then
5694 G77=yes
5695else
5696 G77=
5697fi
5698ac_ext=c
5699ac_cpp='$CPP $CPPFLAGS'
5700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705
5706# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5707# find the maximum length of command line arguments
5708{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5709$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5710if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5712else
5713 i=0
5714 teststring="ABCD"
5715
5716 case $build_os in
5717 msdosdjgpp*)
5718 # On DJGPP, this test can blow up pretty badly due to problems in libc
5719 # (any single argument exceeding 2000 bytes causes a buffer overrun
5720 # during glob expansion). Even if it were fixed, the result of this
5721 # check would be larger than it should be.
5722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5723 ;;
5724
5725 gnu*)
5726 # Under GNU Hurd, this test is not required because there is
5727 # no limit to the length of command line arguments.
5728 # Libtool will interpret -1 as no limit whatsoever
5729 lt_cv_sys_max_cmd_len=-1;
5730 ;;
5731
5732 cygwin* | mingw*)
5733 # On Win9x/ME, this test blows up -- it succeeds, but takes
5734 # about 5 minutes as the teststring grows exponentially.
5735 # Worse, since 9x/ME are not pre-emptively multitasking,
5736 # you end up with a "frozen" computer, even though with patience
5737 # the test eventually succeeds (with a max line length of 256k).
5738 # Instead, let's just punt: use the minimum linelength reported by
5739 # all of the supported platforms: 8192 (on NT/2K/XP).
5740 lt_cv_sys_max_cmd_len=8192;
5741 ;;
5742
5743 amigaos*)
5744 # On AmigaOS with pdksh, this test takes hours, literally.
5745 # So we just punt and use a minimum line length of 8192.
5746 lt_cv_sys_max_cmd_len=8192;
5747 ;;
5748
5749 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5750 # This has been around since 386BSD, at least. Likely further.
5751 if test -x /sbin/sysctl; then
5752 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5753 elif test -x /usr/sbin/sysctl; then
5754 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5755 else
5756 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5757 fi
5758 # And add a safety zone
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761 ;;
5762
5763 interix*)
5764 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5765 lt_cv_sys_max_cmd_len=196608
5766 ;;
5767
5768 osf*)
5769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5771 # nice to cause kernel panics so lets avoid the loop below.
5772 # First set a reasonable default.
5773 lt_cv_sys_max_cmd_len=16384
5774 #
5775 if test -x /sbin/sysconfig; then
5776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5778 esac
5779 fi
5780 ;;
5781 sco3.2v5*)
5782 lt_cv_sys_max_cmd_len=102400
5783 ;;
5784 sysv5* | sco5v6* | sysv4.2uw2*)
5785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5786 if test -n "$kargmax"; then
5787 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5788 else
5789 lt_cv_sys_max_cmd_len=32768
5790 fi
5791 ;;
5792 *)
5793 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5794 if test -n "$lt_cv_sys_max_cmd_len"; then
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5797 else
5798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5799 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5800 = "XX$teststring") >/dev/null 2>&1 &&
5801 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5802 lt_cv_sys_max_cmd_len=$new_result &&
5803 test $i != 17 # 1/2 MB should be enough
5804 do
5805 i=`expr $i + 1`
5806 teststring=$teststring$teststring
5807 done
5808 teststring=
5809 # Add a significant safety factor because C++ compilers can tack on massive
5810 # amounts of additional arguments before passing them to the linker.
5811 # It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5813 fi
5814 ;;
5815 esac
5816
5817fi
5818
5819if test -n $lt_cv_sys_max_cmd_len ; then
5820 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5821$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5822else
5823 { $as_echo "$as_me:$LINENO: result: none" >&5
5824$as_echo "none" >&6; }
5825fi
5826
5827
5828
5829
5830
5831# Check for command to grab the raw symbol name followed by C symbol from nm.
5832{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5833$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5835 $as_echo_n "(cached) " >&6
5836else
5837
5838# These are sane defaults that work on at least a few old systems.
5839# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5840
5841# Character class describing NM global symbol codes.
5842symcode='[BCDEGRST]'
5843
5844# Regexp to match symbols that can be accessed directly from C.
5845sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5846
5847# Transform an extracted symbol line into a proper C declaration
5848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5849
5850# Transform an extracted symbol line into symbol name and symbol address
5851lt_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'"
5852
5853# Define system-specific variables.
5854case $host_os in
5855aix*)
5856 symcode='[BCDT]'
5857 ;;
5858cygwin* | mingw* | pw32*)
5859 symcode='[ABCDGISTW]'
5860 ;;
5861hpux*) # Its linker distinguishes data from code symbols
5862 if test "$host_cpu" = ia64; then
5863 symcode='[ABCDEGRST]'
5864 fi
5865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5866 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'"
5867 ;;
5868linux* | k*bsd*-gnu)
5869 if test "$host_cpu" = ia64; then
5870 symcode='[ABCDGIRSTW]'
5871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872 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'"
5873 fi
5874 ;;
5875irix* | nonstopux*)
5876 symcode='[BCDEGRST]'
5877 ;;
5878osf*)
5879 symcode='[BCDEGQRST]'
5880 ;;
5881solaris*)
5882 symcode='[BDRT]'
5883 ;;
5884sco3.2v5*)
5885 symcode='[DT]'
5886 ;;
5887sysv4.2uw2*)
5888 symcode='[DT]'
5889 ;;
5890sysv5* | sco5v6* | unixware* | OpenUNIX*)
5891 symcode='[ABDT]'
5892 ;;
5893sysv4)
5894 symcode='[DFNSTU]'
5895 ;;
5896esac
5897
5898# Handle CRLF in mingw tool chain
5899opt_cr=
5900case $build_os in
5901mingw*)
5902 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5903 ;;
5904esac
5905
5906# If we're using GNU nm, then use its standard symbol codes.
5907case `$NM -V 2>&1` in
5908*GNU* | *'with BFD'*)
5909 symcode='[ABCDGIRSTW]' ;;
5910esac
5911
5912# Try without a prefix undercore, then with it.
5913for ac_symprfx in "" "_"; do
5914
5915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5916 symxfrm="\\1 $ac_symprfx\\2 \\2"
5917
5918 # Write the raw and C identifiers.
5919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5920
5921 # Check to see that the pipe works correctly.
5922 pipe_works=no
5923
5924 rm -f conftest*
5925 cat > conftest.$ac_ext <<EOF
5926#ifdef __cplusplus
5927extern "C" {
5928#endif
5929char nm_test_var;
5930void nm_test_func(){}
5931#ifdef __cplusplus
5932}
5933#endif
5934int main(){nm_test_var='a';nm_test_func();return(0);}
5935EOF
5936
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5939 ac_status=$?
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 # Now try to grab the symbols.
5943 nlist=conftest.nm
5944 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && test -s "$nlist"; then
5949 # Try sorting and uniquifying the output.
5950 if sort "$nlist" | uniq > "$nlist"T; then
5951 mv -f "$nlist"T "$nlist"
5952 else
5953 rm -f "$nlist"T
5954 fi
5955
5956 # Make sure that we snagged all the symbols we need.
5957 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5958 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5959 cat <<EOF > conftest.$ac_ext
5960#ifdef __cplusplus
5961extern "C" {
5962#endif
5963
5964EOF
5965 # Now generate the symbol file.
5966 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5967
5968 cat <<EOF >> conftest.$ac_ext
5969#if defined (__STDC__) && __STDC__
5970# define lt_ptr_t void *
5971#else
5972# define lt_ptr_t char *
5973# define const
5974#endif
5975
5976/* The mapping between symbol names and symbols. */
5977const struct {
5978 const char *name;
5979 lt_ptr_t address;
5980}
5981lt_preloaded_symbols[] =
5982{
5983EOF
5984 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5985 cat <<\EOF >> conftest.$ac_ext
5986 {0, (lt_ptr_t) 0}
5987};
5988
5989#ifdef __cplusplus
5990}
5991#endif
5992EOF
5993 # Now try linking the two files.
5994 mv conftest.$ac_objext conftstm.$ac_objext
5995 lt_save_LIBS="$LIBS"
5996 lt_save_CFLAGS="$CFLAGS"
5997 LIBS="conftstm.$ac_objext"
5998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6004 pipe_works=yes
6005 fi
6006 LIBS="$lt_save_LIBS"
6007 CFLAGS="$lt_save_CFLAGS"
6008 else
6009 echo "cannot find nm_test_func in $nlist" >&5
6010 fi
6011 else
6012 echo "cannot find nm_test_var in $nlist" >&5
6013 fi
6014 else
6015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6016 fi
6017 else
6018 echo "$progname: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 fi
6021 rm -rf conftest* conftst*
6022
6023 # Do not use the global_symbol_pipe unless it works.
6024 if test "$pipe_works" = yes; then
6025 break
6026 else
6027 lt_cv_sys_global_symbol_pipe=
6028 fi
6029done
6030
6031fi
6032
6033if test -z "$lt_cv_sys_global_symbol_pipe"; then
6034 lt_cv_sys_global_symbol_to_cdecl=
6035fi
6036if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6037 { $as_echo "$as_me:$LINENO: result: failed" >&5
6038$as_echo "failed" >&6; }
6039else
6040 { $as_echo "$as_me:$LINENO: result: ok" >&5
6041$as_echo "ok" >&6; }
6042fi
6043
6044{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6045$as_echo_n "checking for objdir... " >&6; }
6046if test "${lt_cv_objdir+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048else
6049 rm -f .libs 2>/dev/null
6050mkdir .libs 2>/dev/null
6051if test -d .libs; then
6052 lt_cv_objdir=.libs
6053else
6054 # MS-DOS does not allow filenames that begin with a dot.
6055 lt_cv_objdir=_libs
6056fi
6057rmdir .libs 2>/dev/null
6058fi
6059{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6060$as_echo "$lt_cv_objdir" >&6; }
6061objdir=$lt_cv_objdir
6062
6063
6064
6065
6066
6067case $host_os in
6068aix3*)
6069 # AIX sometimes has problems with the GCC collect2 program. For some
6070 # reason, if we set the COLLECT_NAMES environment variable, the problems
6071 # vanish in a puff of smoke.
6072 if test "X${COLLECT_NAMES+set}" != Xset; then
6073 COLLECT_NAMES=
6074 export COLLECT_NAMES
6075 fi
6076 ;;
6077esac
6078
6079# Sed substitution that helps us do robust quoting. It backslashifies
6080# metacharacters that are still active within double-quoted strings.
6081Xsed='sed -e 1s/^X//'
6082sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6083
6084# Same as above, but do not quote variable references.
6085double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6086
6087# Sed substitution to delay expansion of an escaped shell variable in a
6088# double_quote_subst'ed string.
6089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6090
6091# Sed substitution to avoid accidental globbing in evaled expressions
6092no_glob_subst='s/\*/\\\*/g'
6093
6094# Constants:
6095rm="rm -f"
6096
6097# Global variables:
6098default_ofile=libtool
6099can_build_shared=yes
6100
6101# All known linkers require a `.a' archive for static linking (except MSVC,
6102# which needs '.lib').
6103libext=a
6104ltmain="$ac_aux_dir/ltmain.sh"
6105ofile="$default_ofile"
6106with_gnu_ld="$lt_cv_prog_gnu_ld"
6107
6108if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6110set dummy ${ac_tool_prefix}ar; ac_word=$2
6111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if test "${ac_cv_prog_AR+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_AR="${ac_tool_prefix}ar"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136AR=$ac_cv_prog_AR
6137if test -n "$AR"; then
6138 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6139$as_echo "$AR" >&6; }
6140else
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146fi
6147if test -z "$ac_cv_prog_AR"; then
6148 ac_ct_AR=$AR
6149 # Extract the first word of "ar", so it can be a program name with args.
6150set dummy ar; ac_word=$2
6151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6155else
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_AR="ar"
6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177if test -n "$ac_ct_AR"; then
6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6179$as_echo "$ac_ct_AR" >&6; }
6180else
6181 { $as_echo "$as_me:$LINENO: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185 if test "x$ac_ct_AR" = x; then
6186 AR="false"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6191whose name does not start with the host triplet. If you think this
6192configuration is useful to you, please write to autoconf@gnu.org." >&5
6193$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6194whose name does not start with the host triplet. If you think this
6195configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198 AR=$ac_ct_AR
6199 fi
6200else
6201 AR="$ac_cv_prog_AR"
6202fi
6203
6204if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if test "${ac_cv_prog_RANLIB+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211else
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232RANLIB=$ac_cv_prog_RANLIB
6233if test -n "$RANLIB"; then
6234 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6235$as_echo "$RANLIB" >&6; }
6236else
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_prog_RANLIB"; then
6244 ac_ct_RANLIB=$RANLIB
6245 # Extract the first word of "ranlib", so it can be a program name with args.
6246set dummy ranlib; ac_word=$2
6247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251else
6252 if test -n "$ac_ct_RANLIB"; then
6253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_RANLIB="ranlib"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273if test -n "$ac_ct_RANLIB"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6275$as_echo "$ac_ct_RANLIB" >&6; }
6276else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281 if test "x$ac_ct_RANLIB" = x; then
6282 RANLIB=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287whose name does not start with the host triplet. If you think this
6288configuration is useful to you, please write to autoconf@gnu.org." >&5
6289$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290whose name does not start with the host triplet. If you think this
6291configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 RANLIB=$ac_ct_RANLIB
6295 fi
6296else
6297 RANLIB="$ac_cv_prog_RANLIB"
6298fi
6299
6300if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302set dummy ${ac_tool_prefix}strip; ac_word=$2
6303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if test "${ac_cv_prog_STRIP+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6307else
6308 if test -n "$STRIP"; then
6309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
6323done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328STRIP=$ac_cv_prog_STRIP
6329if test -n "$STRIP"; then
6330 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6331$as_echo "$STRIP" >&6; }
6332else
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_prog_STRIP"; then
6340 ac_ct_STRIP=$STRIP
6341 # Extract the first word of "strip", so it can be a program name with args.
6342set dummy strip; ac_word=$2
6343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347else
6348 if test -n "$ac_ct_STRIP"; then
6349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_STRIP="strip"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369if test -n "$ac_ct_STRIP"; then
6370 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6371$as_echo "$ac_ct_STRIP" >&6; }
6372else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377 if test "x$ac_ct_STRIP" = x; then
6378 STRIP=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383whose name does not start with the host triplet. If you think this
6384configuration is useful to you, please write to autoconf@gnu.org." >&5
6385$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386whose name does not start with the host triplet. If you think this
6387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392else
6393 STRIP="$ac_cv_prog_STRIP"
6394fi
6395
6396
6397old_CC="$CC"
6398old_CFLAGS="$CFLAGS"
6399
6400# Set sane defaults for various variables
6401test -z "$AR" && AR=ar
6402test -z "$AR_FLAGS" && AR_FLAGS=cru
6403test -z "$AS" && AS=as
6404test -z "$CC" && CC=cc
6405test -z "$LTCC" && LTCC=$CC
6406test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6407test -z "$DLLTOOL" && DLLTOOL=dlltool
6408test -z "$LD" && LD=ld
6409test -z "$LN_S" && LN_S="ln -s"
6410test -z "$MAGIC_CMD" && MAGIC_CMD=file
6411test -z "$NM" && NM=nm
6412test -z "$SED" && SED=sed
6413test -z "$OBJDUMP" && OBJDUMP=objdump
6414test -z "$RANLIB" && RANLIB=:
6415test -z "$STRIP" && STRIP=:
6416test -z "$ac_objext" && ac_objext=o
6417
6418# Determine commands to create old-style static archives.
6419old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6420old_postinstall_cmds='chmod 644 $oldlib'
6421old_postuninstall_cmds=
6422
6423if test -n "$RANLIB"; then
6424 case $host_os in
6425 openbsd*)
6426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6427 ;;
6428 *)
6429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6430 ;;
6431 esac
6432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6433fi
6434
6435for cc_temp in $compiler""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442done
6443cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6444
6445
6446# Only perform the check for file, if the check method requires it
6447case $deplibs_check_method in
6448file_magic*)
6449 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6450 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6451$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6452if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6453 $as_echo_n "(cached) " >&6
6454else
6455 case $MAGIC_CMD in
6456[\\/*] | ?:[\\/]*)
6457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6458 ;;
6459*)
6460 lt_save_MAGIC_CMD="$MAGIC_CMD"
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6463 for ac_dir in $ac_dummy; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 if test -f $ac_dir/${ac_tool_prefix}file; then
6467 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6468 if test -n "$file_magic_test_file"; then
6469 case $deplibs_check_method in
6470 "file_magic "*)
6471 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6473 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6474 $EGREP "$file_magic_regex" > /dev/null; then
6475 :
6476 else
6477 cat <<EOF 1>&2
6478
6479*** Warning: the command libtool uses to detect shared libraries,
6480*** $file_magic_cmd, produces output that libtool cannot recognize.
6481*** The result is that libtool may fail to recognize shared libraries
6482*** as such. This will affect the creation of libtool libraries that
6483*** depend on shared libraries, but programs linked with such libtool
6484*** libraries will work regardless of this problem. Nevertheless, you
6485*** may want to report the problem to your system manager and/or to
6486*** bug-libtool@gnu.org
6487
6488EOF
6489 fi ;;
6490 esac
6491 fi
6492 break
6493 fi
6494 done
6495 IFS="$lt_save_ifs"
6496 MAGIC_CMD="$lt_save_MAGIC_CMD"
6497 ;;
6498esac
6499fi
6500
6501MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6502if test -n "$MAGIC_CMD"; then
6503 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6504$as_echo "$MAGIC_CMD" >&6; }
6505else
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507$as_echo "no" >&6; }
6508fi
6509
6510if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
6512 { $as_echo "$as_me:$LINENO: checking for file" >&5
6513$as_echo_n "checking for file... " >&6; }
6514if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6516else
6517 case $MAGIC_CMD in
6518[\\/*] | ?:[\\/]*)
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6520 ;;
6521*)
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 case $deplibs_check_method in
6532 "file_magic "*)
6533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 $EGREP "$file_magic_regex" > /dev/null; then
6537 :
6538 else
6539 cat <<EOF 1>&2
6540
6541*** Warning: the command libtool uses to detect shared libraries,
6542*** $file_magic_cmd, produces output that libtool cannot recognize.
6543*** The result is that libtool may fail to recognize shared libraries
6544*** as such. This will affect the creation of libtool libraries that
6545*** depend on shared libraries, but programs linked with such libtool
6546*** libraries will work regardless of this problem. Nevertheless, you
6547*** may want to report the problem to your system manager and/or to
6548*** bug-libtool@gnu.org
6549
6550EOF
6551 fi ;;
6552 esac
6553 fi
6554 break
6555 fi
6556 done
6557 IFS="$lt_save_ifs"
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6559 ;;
6560esac
6561fi
6562
6563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564if test -n "$MAGIC_CMD"; then
6565 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6566$as_echo "$MAGIC_CMD" >&6; }
6567else
6568 { $as_echo "$as_me:$LINENO: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572 else
6573 MAGIC_CMD=:
6574 fi
6575fi
6576
6577 fi
6578 ;;
6579esac
6580
6581
6582 case $host_os in
6583 rhapsody* | darwin*)
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6591else
6592 if test -n "$DSYMUTIL"; then
6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613if test -n "$DSYMUTIL"; then
6614 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6615$as_echo "$DSYMUTIL" >&6; }
6616else
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_DSYMUTIL"; then
6624 ac_ct_DSYMUTIL=$DSYMUTIL
6625 # Extract the first word of "dsymutil", so it can be a program name with args.
6626set dummy dsymutil; ac_word=$2
6627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$ac_ct_DSYMUTIL"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653if test -n "$ac_ct_DSYMUTIL"; then
6654 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6655$as_echo "$ac_ct_DSYMUTIL" >&6; }
6656else
6657 { $as_echo "$as_me:$LINENO: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661 if test "x$ac_ct_DSYMUTIL" = x; then
6662 DSYMUTIL=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667whose name does not start with the host triplet. If you think this
6668configuration is useful to you, please write to autoconf@gnu.org." >&5
6669$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670whose name does not start with the host triplet. If you think this
6671configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672ac_tool_warned=yes ;;
6673esac
6674 DSYMUTIL=$ac_ct_DSYMUTIL
6675 fi
6676else
6677 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6678fi
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6682set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if test "${ac_cv_prog_NMEDIT+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6687else
6688 if test -n "$NMEDIT"; then
6689 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702done
6703done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708NMEDIT=$ac_cv_prog_NMEDIT
6709if test -n "$NMEDIT"; then
6710 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6711$as_echo "$NMEDIT" >&6; }
6712else
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718fi
6719if test -z "$ac_cv_prog_NMEDIT"; then
6720 ac_ct_NMEDIT=$NMEDIT
6721 # Extract the first word of "nmedit", so it can be a program name with args.
6722set dummy nmedit; ac_word=$2
6723{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$ac_ct_NMEDIT"; then
6729 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6749if test -n "$ac_ct_NMEDIT"; then
6750 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6751$as_echo "$ac_ct_NMEDIT" >&6; }
6752else
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757 if test "x$ac_ct_NMEDIT" = x; then
6758 NMEDIT=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761yes:)
6762{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763whose name does not start with the host triplet. If you think this
6764configuration is useful to you, please write to autoconf@gnu.org." >&5
6765$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766whose name does not start with the host triplet. If you think this
6767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768ac_tool_warned=yes ;;
6769esac
6770 NMEDIT=$ac_ct_NMEDIT
6771 fi
6772else
6773 NMEDIT="$ac_cv_prog_NMEDIT"
6774fi
6775
6776
6777 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6778$as_echo_n "checking for -single_module linker flag... " >&6; }
6779if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6781else
6782 lt_cv_apple_cc_single_mod=no
6783 if test -z "${LT_MULTI_MODULE}"; then
6784 # By default we will add the -single_module flag. You can override
6785 # by either setting the environment variable LT_MULTI_MODULE
6786 # non-empty at configure time, or by adding -multi_module to the
6787 # link flags.
6788 echo "int foo(void){return 1;}" > conftest.c
6789 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6790 -dynamiclib ${wl}-single_module conftest.c
6791 if test -f libconftest.dylib; then
6792 lt_cv_apple_cc_single_mod=yes
6793 rm -rf libconftest.dylib*
6794 fi
6795 rm conftest.c
6796 fi
6797fi
6798{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6799$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6800 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6801$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6802if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6803 $as_echo_n "(cached) " >&6
6804else
6805 lt_cv_ld_exported_symbols_list=no
6806 save_LDFLAGS=$LDFLAGS
6807 echo "_main" > conftest.sym
6808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6809 cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
6815
6816int
6817main ()
6818{
6819
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext conftest$ac_exeext
6825if { (ac_try="$ac_link"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831$as_echo "$ac_try_echo") >&5
6832 (eval "$ac_link") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext && {
6842 test "$cross_compiling" = yes ||
6843 $as_test_x conftest$ac_exeext
6844 }; then
6845 lt_cv_ld_exported_symbols_list=yes
6846else
6847 $as_echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 lt_cv_ld_exported_symbols_list=no
6851fi
6852
6853rm -rf conftest.dSYM
6854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LDFLAGS="$save_LDFLAGS"
6857
6858fi
6859{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6860$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6861 case $host_os in
6862 rhapsody* | darwin1.[0123])
6863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6864 darwin1.*)
6865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6866 darwin*)
6867 # if running on 10.5 or later, the deployment target defaults
6868 # to the OS version, if on x86, and 10.4, the deployment
6869 # target defaults to 10.4. Don't you love it?
6870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6871 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6873 10.[012]*)
6874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6875 10.*)
6876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6877 esac
6878 ;;
6879 esac
6880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6881 _lt_dar_single_mod='$single_module'
6882 fi
6883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6885 else
6886 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6887 fi
6888 if test "$DSYMUTIL" != ":"; then
6889 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6890 else
6891 _lt_dsymutil=
6892 fi
6893 ;;
6894 esac
6895
6896
6897enable_dlopen=no
6898enable_win32_dll=no
6899
6900# Check whether --enable-libtool-lock was given.
6901if test "${enable_libtool_lock+set}" = set; then
6902 enableval=$enable_libtool_lock;
6903fi
6904
6905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6906
6907
6908# Check whether --with-pic was given.
6909if test "${with_pic+set}" = set; then
6910 withval=$with_pic; pic_mode="$withval"
6911else
6912 pic_mode=default
6913fi
6914
6915test -z "$pic_mode" && pic_mode=default
6916
6917# Use C for the default configuration in the libtool script
6918tagname=
6919lt_save_CC="$CC"
6920ac_ext=c
6921ac_cpp='$CPP $CPPFLAGS'
6922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
6926
6927# Source file extension for C test sources.
6928ac_ext=c
6929
6930# Object file extension for compiled C test sources.
6931objext=o
6932objext=$objext
6933
6934# Code to be used in simple compile tests
6935lt_simple_compile_test_code="int some_variable = 0;"
6936
6937# Code to be used in simple link tests
6938lt_simple_link_test_code='int main(){return(0);}'
6939
6940
6941# If no C compiler was specified, use CC.
6942LTCC=${LTCC-"$CC"}
6943
6944# If no C compiler flags were specified, use CFLAGS.
6945LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6946
6947# Allow CC to be a program name with arguments.
6948compiler=$CC
6949
6950
6951# save warnings/boilerplate of simple test code
6952ac_outfile=conftest.$ac_objext
6953echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6954eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955_lt_compiler_boilerplate=`cat conftest.err`
6956$rm conftest*
6957
6958ac_outfile=conftest.$ac_objext
6959echo "$lt_simple_link_test_code" >conftest.$ac_ext
6960eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6961_lt_linker_boilerplate=`cat conftest.err`
6962$rm -r conftest*
6963
6964
6965
6966lt_prog_compiler_no_builtin_flag=
6967
6968if test "$GCC" = yes; then
6969 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6970
6971
6972{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6973$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6974if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6975 $as_echo_n "(cached) " >&6
6976else
6977 lt_cv_prog_compiler_rtti_exceptions=no
6978 ac_outfile=conftest.$ac_objext
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980 lt_compiler_flag="-fno-rtti -fno-exceptions"
6981 # Insert the option either (1) after the last *FLAGS variable, or
6982 # (2) before a word containing "conftest.", or (3) at the end.
6983 # Note that $ac_compile itself does not contain backslashes and begins
6984 # with a dollar sign (not a hyphen), so the echo should work correctly.
6985 # The option is referenced via a variable to avoid confusing sed.
6986 lt_compile=`echo "$ac_compile" | $SED \
6987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
6990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
6991 (eval "$lt_compile" 2>conftest.err)
6992 ac_status=$?
6993 cat conftest.err >&5
6994 echo "$as_me:6994: \$? = $ac_status" >&5
6995 if (exit $ac_status) && test -s "$ac_outfile"; then
6996 # The compiler can only warn and ignore the option if not recognized
6997 # So say no if there are warnings other than the usual output.
6998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7001 lt_cv_prog_compiler_rtti_exceptions=yes
7002 fi
7003 fi
7004 $rm conftest*
7005
7006fi
7007{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7008$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7009
7010if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7012else
7013 :
7014fi
7015
7016fi
7017
7018lt_prog_compiler_wl=
7019lt_prog_compiler_pic=
7020lt_prog_compiler_static=
7021
7022{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7023$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7024
7025 if test "$GCC" = yes; then
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_static='-static'
7028
7029 case $host_os in
7030 aix*)
7031 # All AIX code is PIC.
7032 if test "$host_cpu" = ia64; then
7033 # AIX 5 now supports IA64 processor
7034 lt_prog_compiler_static='-Bstatic'
7035 fi
7036 ;;
7037
7038 amigaos*)
7039 # FIXME: we need at least 68020 code to build shared libraries, but
7040 # adding the `-m68020' flag to GCC prevents building anything better,
7041 # like `-m68040'.
7042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7043 ;;
7044
7045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7046 # PIC is the default for these OSes.
7047 ;;
7048
7049 mingw* | cygwin* | pw32* | os2*)
7050 # This hack is so that the source file can tell whether it is being
7051 # built for inclusion in a dll (and should export symbols for example).
7052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7053 # (--disable-auto-import) libraries
7054 lt_prog_compiler_pic='-DDLL_EXPORT'
7055 ;;
7056
7057 darwin* | rhapsody*)
7058 # PIC is the default on this platform
7059 # Common symbols not allowed in MH_DYLIB files
7060 lt_prog_compiler_pic='-fno-common'
7061 ;;
7062
7063 interix[3-9]*)
7064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7065 # Instead, we relocate shared libraries at runtime.
7066 ;;
7067
7068 msdosdjgpp*)
7069 # Just because we use GCC doesn't mean we suddenly get shared libraries
7070 # on systems that don't support them.
7071 lt_prog_compiler_can_build_shared=no
7072 enable_shared=no
7073 ;;
7074
7075 sysv4*MP*)
7076 if test -d /usr/nec; then
7077 lt_prog_compiler_pic=-Kconform_pic
7078 fi
7079 ;;
7080
7081 hpux*)
7082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7083 # not for PA HP-UX.
7084 case $host_cpu in
7085 hppa*64*|ia64*)
7086 # +Z the default
7087 ;;
7088 *)
7089 lt_prog_compiler_pic='-fPIC'
7090 ;;
7091 esac
7092 ;;
7093
7094 *)
7095 lt_prog_compiler_pic='-fPIC'
7096 ;;
7097 esac
7098 else
7099 # PORTME Check for flag to pass linker flags through the system compiler.
7100 case $host_os in
7101 aix*)
7102 lt_prog_compiler_wl='-Wl,'
7103 if test "$host_cpu" = ia64; then
7104 # AIX 5 now supports IA64 processor
7105 lt_prog_compiler_static='-Bstatic'
7106 else
7107 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7108 fi
7109 ;;
7110 darwin*)
7111 # PIC is the default on this platform
7112 # Common symbols not allowed in MH_DYLIB files
7113 case $cc_basename in
7114 xlc*)
7115 lt_prog_compiler_pic='-qnocommon'
7116 lt_prog_compiler_wl='-Wl,'
7117 ;;
7118 esac
7119 ;;
7120
7121 mingw* | cygwin* | pw32* | os2*)
7122 # This hack is so that the source file can tell whether it is being
7123 # built for inclusion in a dll (and should export symbols for example).
7124 lt_prog_compiler_pic='-DDLL_EXPORT'
7125 ;;
7126
7127 hpux9* | hpux10* | hpux11*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7130 # not for PA HP-UX.
7131 case $host_cpu in
7132 hppa*64*|ia64*)
7133 # +Z the default
7134 ;;
7135 *)
7136 lt_prog_compiler_pic='+Z'
7137 ;;
7138 esac
7139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7140 lt_prog_compiler_static='${wl}-a ${wl}archive'
7141 ;;
7142
7143 irix5* | irix6* | nonstopux*)
7144 lt_prog_compiler_wl='-Wl,'
7145 # PIC (with -KPIC) is the default.
7146 lt_prog_compiler_static='-non_shared'
7147 ;;
7148
7149 newsos6)
7150 lt_prog_compiler_pic='-KPIC'
7151 lt_prog_compiler_static='-Bstatic'
7152 ;;
7153
7154 linux* | k*bsd*-gnu)
7155 case $cc_basename in
7156 icc* | ecc*)
7157 lt_prog_compiler_wl='-Wl,'
7158 lt_prog_compiler_pic='-KPIC'
7159 lt_prog_compiler_static='-static'
7160 ;;
7161 pgcc* | pgf77* | pgf90* | pgf95*)
7162 # Portland Group compilers (*not* the Pentium gcc compiler,
7163 # which looks to be a dead project)
7164 lt_prog_compiler_wl='-Wl,'
7165 lt_prog_compiler_pic='-fpic'
7166 lt_prog_compiler_static='-Bstatic'
7167 ;;
7168 ccc*)
7169 lt_prog_compiler_wl='-Wl,'
7170 # All Alpha code is PIC.
7171 lt_prog_compiler_static='-non_shared'
7172 ;;
7173 *)
7174 case `$CC -V 2>&1 | sed 5q` in
7175 *Sun\ C*)
7176 # Sun C 5.9
7177 lt_prog_compiler_pic='-KPIC'
7178 lt_prog_compiler_static='-Bstatic'
7179 lt_prog_compiler_wl='-Wl,'
7180 ;;
7181 *Sun\ F*)
7182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7185 lt_prog_compiler_wl=''
7186 ;;
7187 esac
7188 ;;
7189 esac
7190 ;;
7191
7192 osf3* | osf4* | osf5*)
7193 lt_prog_compiler_wl='-Wl,'
7194 # All OSF/1 code is PIC.
7195 lt_prog_compiler_static='-non_shared'
7196 ;;
7197
7198 rdos*)
7199 lt_prog_compiler_static='-non_shared'
7200 ;;
7201
7202 solaris*)
7203 lt_prog_compiler_pic='-KPIC'
7204 lt_prog_compiler_static='-Bstatic'
7205 case $cc_basename in
7206 f77* | f90* | f95*)
7207 lt_prog_compiler_wl='-Qoption ld ';;
7208 *)
7209 lt_prog_compiler_wl='-Wl,';;
7210 esac
7211 ;;
7212
7213 sunos4*)
7214 lt_prog_compiler_wl='-Qoption ld '
7215 lt_prog_compiler_pic='-PIC'
7216 lt_prog_compiler_static='-Bstatic'
7217 ;;
7218
7219 sysv4 | sysv4.2uw2* | sysv4.3*)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7223 ;;
7224
7225 sysv4*MP*)
7226 if test -d /usr/nec ;then
7227 lt_prog_compiler_pic='-Kconform_pic'
7228 lt_prog_compiler_static='-Bstatic'
7229 fi
7230 ;;
7231
7232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7233 lt_prog_compiler_wl='-Wl,'
7234 lt_prog_compiler_pic='-KPIC'
7235 lt_prog_compiler_static='-Bstatic'
7236 ;;
7237
7238 unicos*)
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_can_build_shared=no
7241 ;;
7242
7243 uts4*)
7244 lt_prog_compiler_pic='-pic'
7245 lt_prog_compiler_static='-Bstatic'
7246 ;;
7247
7248 *)
7249 lt_prog_compiler_can_build_shared=no
7250 ;;
7251 esac
7252 fi
7253
7254{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7255$as_echo "$lt_prog_compiler_pic" >&6; }
7256
7257#
7258# Check to make sure the PIC flag actually works.
7259#
7260if test -n "$lt_prog_compiler_pic"; then
7261
7262{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7263$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7264if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7265 $as_echo_n "(cached) " >&6
7266else
7267 lt_cv_prog_compiler_pic_works=no
7268 ac_outfile=conftest.$ac_objext
7269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7271 # Insert the option either (1) after the last *FLAGS variable, or
7272 # (2) before a word containing "conftest.", or (3) at the end.
7273 # Note that $ac_compile itself does not contain backslashes and begins
7274 # with a dollar sign (not a hyphen), so the echo should work correctly.
7275 # The option is referenced via a variable to avoid confusing sed.
7276 lt_compile=`echo "$ac_compile" | $SED \
7277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279 -e 's:$: $lt_compiler_flag:'`
7280 (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
7281 (eval "$lt_compile" 2>conftest.err)
7282 ac_status=$?
7283 cat conftest.err >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 if (exit $ac_status) && test -s "$ac_outfile"; then
7286 # The compiler can only warn and ignore the option if not recognized
7287 # So say no if there are warnings other than the usual output.
7288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7291 lt_cv_prog_compiler_pic_works=yes
7292 fi
7293 fi
7294 $rm conftest*
7295
7296fi
7297{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7298$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7299
7300if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7301 case $lt_prog_compiler_pic in
7302 "" | " "*) ;;
7303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7304 esac
7305else
7306 lt_prog_compiler_pic=
7307 lt_prog_compiler_can_build_shared=no
7308fi
7309
7310fi
7311case $host_os in
7312 # For platforms which do not support PIC, -DPIC is meaningless:
7313 *djgpp*)
7314 lt_prog_compiler_pic=
7315 ;;
7316 *)
7317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7318 ;;
7319esac
7320
7321#
7322# Check to make sure the static flag actually works.
7323#
7324wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7325{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7326$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7327if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7329else
7330 lt_cv_prog_compiler_static_works=no
7331 save_LDFLAGS="$LDFLAGS"
7332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7335 # The linker can only warn and ignore the option if not recognized
7336 # So say no if there are warnings
7337 if test -s conftest.err; then
7338 # Append any errors to the config.log.
7339 cat conftest.err 1>&5
7340 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342 if diff conftest.exp conftest.er2 >/dev/null; then
7343 lt_cv_prog_compiler_static_works=yes
7344 fi
7345 else
7346 lt_cv_prog_compiler_static_works=yes
7347 fi
7348 fi
7349 $rm -r conftest*
7350 LDFLAGS="$save_LDFLAGS"
7351
7352fi
7353{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7354$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7355
7356if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7357 :
7358else
7359 lt_prog_compiler_static=
7360fi
7361
7362
7363{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7364$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7365if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7367else
7368 lt_cv_prog_compiler_c_o=no
7369 $rm -r conftest 2>/dev/null
7370 mkdir conftest
7371 cd conftest
7372 mkdir out
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374
7375 lt_compiler_flag="-o out/conftest2.$ac_objext"
7376 # Insert the option either (1) after the last *FLAGS variable, or
7377 # (2) before a word containing "conftest.", or (3) at the end.
7378 # Note that $ac_compile itself does not contain backslashes and begins
7379 # with a dollar sign (not a hyphen), so the echo should work correctly.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>out/conftest.err)
7386 ac_status=$?
7387 cat out/conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7390 then
7391 # The compiler can only warn and ignore the option if not recognized
7392 # So say no if there are warnings
7393 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7396 lt_cv_prog_compiler_c_o=yes
7397 fi
7398 fi
7399 chmod u+w . 2>&5
7400 $rm conftest*
7401 # SGI C++ compiler will create directory out/ii_files/ for
7402 # template instantiation
7403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7404 $rm out/* && rmdir out
7405 cd ..
7406 rmdir conftest
7407 $rm conftest*
7408
7409fi
7410{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7411$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7412
7413
7414hard_links="nottested"
7415if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7416 # do not overwrite the value of need_locks provided by the user
7417 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7418$as_echo_n "checking if we can lock with hard links... " >&6; }
7419 hard_links=yes
7420 $rm conftest*
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422 touch conftest.a
7423 ln conftest.a conftest.b 2>&5 || hard_links=no
7424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7425 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7426$as_echo "$hard_links" >&6; }
7427 if test "$hard_links" = no; then
7428 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7429$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7430 need_locks=warn
7431 fi
7432else
7433 need_locks=no
7434fi
7435
7436{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7437$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7438
7439 runpath_var=
7440 allow_undefined_flag=
7441 enable_shared_with_static_runtimes=no
7442 archive_cmds=
7443 archive_expsym_cmds=
7444 old_archive_From_new_cmds=
7445 old_archive_from_expsyms_cmds=
7446 export_dynamic_flag_spec=
7447 whole_archive_flag_spec=
7448 thread_safe_flag_spec=
7449 hardcode_libdir_flag_spec=
7450 hardcode_libdir_flag_spec_ld=
7451 hardcode_libdir_separator=
7452 hardcode_direct=no
7453 hardcode_minus_L=no
7454 hardcode_shlibpath_var=unsupported
7455 link_all_deplibs=unknown
7456 hardcode_automatic=no
7457 module_cmds=
7458 module_expsym_cmds=
7459 always_export_symbols=no
7460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461 # include_expsyms should be a list of space-separated symbols to be *always*
7462 # included in the symbol list
7463 include_expsyms=
7464 # exclude_expsyms can be an extended regexp of symbols to exclude
7465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7467 # as well as any symbol that contains `d'.
7468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7470 # platforms (ab)use it in PIC code, but their linkers get confused if
7471 # the symbol is explicitly referenced. Since portable code cannot
7472 # rely on this symbol name, it's probably fine to never include it in
7473 # preloaded symbol tables.
7474 # Exclude shared library initialization/finalization symbols.
7475 extract_expsyms_cmds=
7476 # Just being paranoid about ensuring that cc_basename is set.
7477 for cc_temp in $compiler""; do
7478 case $cc_temp in
7479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7481 \-*) ;;
7482 *) break;;
7483 esac
7484done
7485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7486
7487 case $host_os in
7488 cygwin* | mingw* | pw32*)
7489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7490 # When not using gcc, we currently assume that we are using
7491 # Microsoft Visual C++.
7492 if test "$GCC" != yes; then
7493 with_gnu_ld=no
7494 fi
7495 ;;
7496 interix*)
7497 # we just hope/assume this is gcc and not c89 (= MSVC++)
7498 with_gnu_ld=yes
7499 ;;
7500 openbsd*)
7501 with_gnu_ld=no
7502 ;;
7503 esac
7504
7505 ld_shlibs=yes
7506 if test "$with_gnu_ld" = yes; then
7507 # If archive_cmds runs LD, not CC, wlarc should be empty
7508 wlarc='${wl}'
7509
7510 # Set some defaults for GNU ld with shared library support. These
7511 # are reset later if shared libraries are not supported. Putting them
7512 # here allows them to be overridden if necessary.
7513 runpath_var=LD_RUN_PATH
7514 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7515 export_dynamic_flag_spec='${wl}--export-dynamic'
7516 # ancient GNU ld didn't support --whole-archive et. al.
7517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7518 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7519 else
7520 whole_archive_flag_spec=
7521 fi
7522 supports_anon_versioning=no
7523 case `$LD -v 2>/dev/null` in
7524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7527 *\ 2.11.*) ;; # other 2.11 versions
7528 *) supports_anon_versioning=yes ;;
7529 esac
7530
7531 # See if GNU ld supports shared libraries.
7532 case $host_os in
7533 aix[3-9]*)
7534 # On AIX/PPC, the GNU linker is very broken
7535 if test "$host_cpu" != ia64; then
7536 ld_shlibs=no
7537 cat <<EOF 1>&2
7538
7539*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7540*** to be unable to reliably create shared libraries on AIX.
7541*** Therefore, libtool is disabling shared libraries support. If you
7542*** really care for shared libraries, you may want to modify your PATH
7543*** so that a non-GNU linker is found, and then restart.
7544
7545EOF
7546 fi
7547 ;;
7548
7549 amigaos*)
7550 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)'
7551 hardcode_libdir_flag_spec='-L$libdir'
7552 hardcode_minus_L=yes
7553
7554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7555 # that the semantics of dynamic libraries on AmigaOS, at least up
7556 # to version 4, is to share data among multiple programs linked
7557 # with the same dynamic library. Since this doesn't match the
7558 # behavior of shared libraries on other platforms, we can't use
7559 # them.
7560 ld_shlibs=no
7561 ;;
7562
7563 beos*)
7564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7565 allow_undefined_flag=unsupported
7566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7567 # support --undefined. This deserves some investigation. FIXME
7568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7569 else
7570 ld_shlibs=no
7571 fi
7572 ;;
7573
7574 cygwin* | mingw* | pw32*)
7575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7576 # as there is no search path for DLLs.
7577 hardcode_libdir_flag_spec='-L$libdir'
7578 allow_undefined_flag=unsupported
7579 always_export_symbols=no
7580 enable_shared_with_static_runtimes=yes
7581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7582
7583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7585 # If the export-symbols file already is a .def file (1st line
7586 # is EXPORTS), use it as is; otherwise, prepend...
7587 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7588 cp $export_symbols $output_objdir/$soname.def;
7589 else
7590 echo EXPORTS > $output_objdir/$soname.def;
7591 cat $export_symbols >> $output_objdir/$soname.def;
7592 fi~
7593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7594 else
7595 ld_shlibs=no
7596 fi
7597 ;;
7598
7599 interix[3-9]*)
7600 hardcode_direct=no
7601 hardcode_shlibpath_var=no
7602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 export_dynamic_flag_spec='${wl}-E'
7604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7605 # Instead, shared libraries are loaded at an image base (0x10000000 by
7606 # default) and relocated if they conflict, which is a slow very memory
7607 # consuming and fragmenting process. To avoid this, we pick a random,
7608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7611 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'
7612 ;;
7613
7614 gnu* | linux* | k*bsd*-gnu)
7615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616 tmp_addflag=
7617 case $cc_basename,$host_cpu in
7618 pgcc*) # Portland Group C compiler
7619 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'
7620 tmp_addflag=' $pic_flag'
7621 ;;
7622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7623 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'
7624 tmp_addflag=' $pic_flag -Mnomain' ;;
7625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7626 tmp_addflag=' -i_dynamic' ;;
7627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7628 tmp_addflag=' -i_dynamic -nofor_main' ;;
7629 ifc* | ifort*) # Intel Fortran compiler
7630 tmp_addflag=' -nofor_main' ;;
7631 esac
7632 case `$CC -V 2>&1 | sed 5q` in
7633 *Sun\ C*) # Sun C 5.9
7634 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'
7635 tmp_sharedflag='-G' ;;
7636 *Sun\ F*) # Sun Fortran 8.3
7637 tmp_sharedflag='-G' ;;
7638 *)
7639 tmp_sharedflag='-shared' ;;
7640 esac
7641 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642
7643 if test $supports_anon_versioning = yes; then
7644 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7646 $echo "local: *; };" >> $output_objdir/$libname.ver~
7647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7648 fi
7649 else
7650 ld_shlibs=no
7651 fi
7652 ;;
7653
7654 netbsd*)
7655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7657 wlarc=
7658 else
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 fi
7662 ;;
7663
7664 solaris*)
7665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7666 ld_shlibs=no
7667 cat <<EOF 1>&2
7668
7669*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7670*** create shared libraries on Solaris systems. Therefore, libtool
7671*** is disabling shared libraries support. We urge you to upgrade GNU
7672*** binutils to release 2.9.1 or newer. Another option is to modify
7673*** your PATH or compiler configuration so that the native linker is
7674*** used, and then restart.
7675
7676EOF
7677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7680 else
7681 ld_shlibs=no
7682 fi
7683 ;;
7684
7685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7686 case `$LD -v 2>&1` in
7687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7688 ld_shlibs=no
7689 cat <<_LT_EOF 1>&2
7690
7691*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7692*** reliably create shared libraries on SCO systems. Therefore, libtool
7693*** is disabling shared libraries support. We urge you to upgrade GNU
7694*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7695*** your PATH or compiler configuration so that the native linker is
7696*** used, and then restart.
7697
7698_LT_EOF
7699 ;;
7700 *)
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7705 else
7706 ld_shlibs=no
7707 fi
7708 ;;
7709 esac
7710 ;;
7711
7712 sunos4*)
7713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7714 wlarc=
7715 hardcode_direct=yes
7716 hardcode_shlibpath_var=no
7717 ;;
7718
7719 *)
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7723 else
7724 ld_shlibs=no
7725 fi
7726 ;;
7727 esac
7728
7729 if test "$ld_shlibs" = no; then
7730 runpath_var=
7731 hardcode_libdir_flag_spec=
7732 export_dynamic_flag_spec=
7733 whole_archive_flag_spec=
7734 fi
7735 else
7736 # PORTME fill in a description of your system's linker (not GNU ld)
7737 case $host_os in
7738 aix3*)
7739 allow_undefined_flag=unsupported
7740 always_export_symbols=yes
7741 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'
7742 # Note: this linker hardcodes the directories in LIBPATH if there
7743 # are no directories specified by -L.
7744 hardcode_minus_L=yes
7745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7746 # Neither direct hardcoding nor static linking is supported with a
7747 # broken collect2.
7748 hardcode_direct=unsupported
7749 fi
7750 ;;
7751
7752 aix[4-9]*)
7753 if test "$host_cpu" = ia64; then
7754 # On IA64, the linker does run time linking by default, so we don't
7755 # have to do anything special.
7756 aix_use_runtimelinking=no
7757 exp_sym_flag='-Bexport'
7758 no_entry_flag=""
7759 else
7760 # If we're using GNU nm, then we don't want the "-C" option.
7761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7763 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'
7764 else
7765 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'
7766 fi
7767 aix_use_runtimelinking=no
7768
7769 # Test if we are trying to use run time linking or normal
7770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7771 # need to do runtime linking.
7772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7773 for ld_flag in $LDFLAGS; do
7774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7775 aix_use_runtimelinking=yes
7776 break
7777 fi
7778 done
7779 ;;
7780 esac
7781
7782 exp_sym_flag='-bexport'
7783 no_entry_flag='-bnoentry'
7784 fi
7785
7786 # When large executables or shared objects are built, AIX ld can
7787 # have problems creating the table of contents. If linking a library
7788 # or program results in "error TOC overflow" add -mminimal-toc to
7789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7791
7792 archive_cmds=''
7793 hardcode_direct=yes
7794 hardcode_libdir_separator=':'
7795 link_all_deplibs=yes
7796
7797 if test "$GCC" = yes; then
7798 case $host_os in aix4.[012]|aix4.[012].*)
7799 # We only want to do this on AIX 4.2 and lower, the check
7800 # below for broken collect2 doesn't work under 4.3+
7801 collect2name=`${CC} -print-prog-name=collect2`
7802 if test -f "$collect2name" && \
7803 strings "$collect2name" | grep resolve_lib_name >/dev/null
7804 then
7805 # We have reworked collect2
7806 :
7807 else
7808 # We have old collect2
7809 hardcode_direct=unsupported
7810 # It fails to find uninstalled libraries when the uninstalled
7811 # path is not listed in the libpath. Setting hardcode_minus_L
7812 # to unsupported forces relinking
7813 hardcode_minus_L=yes
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_libdir_separator=
7816 fi
7817 ;;
7818 esac
7819 shared_flag='-shared'
7820 if test "$aix_use_runtimelinking" = yes; then
7821 shared_flag="$shared_flag "'${wl}-G'
7822 fi
7823 else
7824 # not using gcc
7825 if test "$host_cpu" = ia64; then
7826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7827 # chokes on -Wl,-G. The following line is correct:
7828 shared_flag='-G'
7829 else
7830 if test "$aix_use_runtimelinking" = yes; then
7831 shared_flag='${wl}-G'
7832 else
7833 shared_flag='${wl}-bM:SRE'
7834 fi
7835 fi
7836 fi
7837
7838 # It seems that -bexpall does not export symbols beginning with
7839 # underscore (_), so it is better to generate a list of symbols to export.
7840 always_export_symbols=yes
7841 if test "$aix_use_runtimelinking" = yes; then
7842 # Warning - without using the other runtime loading flags (-brtl),
7843 # -berok will link without error, but may produce a broken library.
7844 allow_undefined_flag='-berok'
7845 # Determine the default libpath from the value encoded in an empty executable.
7846 cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext conftest$ac_exeext
7862if { (ac_try="$ac_link"
7863case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7868$as_echo "$ac_try_echo") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext && {
7879 test "$cross_compiling" = yes ||
7880 $as_test_x conftest$ac_exeext
7881 }; then
7882
7883lt_aix_libpath_sed='
7884 /Import File Strings/,/^$/ {
7885 /^0/ {
7886 s/^0 *\(.*\)$/\1/
7887 p
7888 }
7889 }'
7890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7891# Check for a 64-bit object if we didn't find anything.
7892if test -z "$aix_libpath"; then
7893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7894fi
7895else
7896 $as_echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899
7900fi
7901
7902rm -rf conftest.dSYM
7903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7906
7907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7908 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"
7909 else
7910 if test "$host_cpu" = ia64; then
7911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7912 allow_undefined_flag="-z nodefs"
7913 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"
7914 else
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922
7923int
7924main ()
7925{
7926
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext conftest$ac_exeext
7932if { (ac_try="$ac_link"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938$as_echo "$ac_try_echo") >&5
7939 (eval "$ac_link") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext && {
7949 test "$cross_compiling" = yes ||
7950 $as_test_x conftest$ac_exeext
7951 }; then
7952
7953lt_aix_libpath_sed='
7954 /Import File Strings/,/^$/ {
7955 /^0/ {
7956 s/^0 *\(.*\)$/\1/
7957 p
7958 }
7959 }'
7960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7961# Check for a 64-bit object if we didn't find anything.
7962if test -z "$aix_libpath"; then
7963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7964fi
7965else
7966 $as_echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969
7970fi
7971
7972rm -rf conftest.dSYM
7973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7974 conftest$ac_exeext conftest.$ac_ext
7975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7976
7977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7978 # Warning - without using the other run time loading flags,
7979 # -berok will link without error, but may produce a broken library.
7980 no_undefined_flag=' ${wl}-bernotok'
7981 allow_undefined_flag=' ${wl}-berok'
7982 # Exported symbols can be pulled into shared objects from archives
7983 whole_archive_flag_spec='$convenience'
7984 archive_cmds_need_lc=yes
7985 # This is similar to how AIX traditionally builds its shared libraries.
7986 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'
7987 fi
7988 fi
7989 ;;
7990
7991 amigaos*)
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 # see comment about different semantics on the GNU ld section
7996 ld_shlibs=no
7997 ;;
7998
7999 bsdi[45]*)
8000 export_dynamic_flag_spec=-rdynamic
8001 ;;
8002
8003 cygwin* | mingw* | pw32*)
8004 # When not using gcc, we currently assume that we are using
8005 # Microsoft Visual C++.
8006 # hardcode_libdir_flag_spec is actually meaningless, as there is
8007 # no search path for DLLs.
8008 hardcode_libdir_flag_spec=' '
8009 allow_undefined_flag=unsupported
8010 # Tell ltmain to make .lib files, not .a files.
8011 libext=lib
8012 # Tell ltmain to make .dll files, not .so files.
8013 shrext_cmds=".dll"
8014 # FIXME: Setting linknames here is a bad hack.
8015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8016 # The linker will automatically build a .lib file if we build a DLL.
8017 old_archive_From_new_cmds='true'
8018 # FIXME: Should let the user specify the lib program.
8019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8020 fix_srcfile_path='`cygpath -w "$srcfile"`'
8021 enable_shared_with_static_runtimes=yes
8022 ;;
8023
8024 darwin* | rhapsody*)
8025 case $host_os in
8026 rhapsody* | darwin1.[012])
8027 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8028 ;;
8029 *) # Darwin 1.3 on
8030 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8031 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8032 else
8033 case ${MACOSX_DEPLOYMENT_TARGET} in
8034 10.[012])
8035 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8036 ;;
8037 10.*)
8038 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8039 ;;
8040 esac
8041 fi
8042 ;;
8043 esac
8044 archive_cmds_need_lc=no
8045 hardcode_direct=no
8046 hardcode_automatic=yes
8047 hardcode_shlibpath_var=unsupported
8048 whole_archive_flag_spec=''
8049 link_all_deplibs=yes
8050 if test "$GCC" = yes ; then
8051 output_verbose_link_cmd='echo'
8052 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8053 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8054 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}"
8055 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}"
8056 else
8057 case $cc_basename in
8058 xlc*)
8059 output_verbose_link_cmd='echo'
8060 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8063 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}'
8064 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}'
8065 ;;
8066 *)
8067 ld_shlibs=no
8068 ;;
8069 esac
8070 fi
8071 ;;
8072
8073 dgux*)
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_libdir_flag_spec='-L$libdir'
8076 hardcode_shlibpath_var=no
8077 ;;
8078
8079 freebsd1*)
8080 ld_shlibs=no
8081 ;;
8082
8083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8084 # support. Future versions do this automatically, but an explicit c++rt0.o
8085 # does not break anything, and helps significantly (at the cost of a little
8086 # extra space).
8087 freebsd2.2*)
8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8092 ;;
8093
8094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8095 freebsd2*)
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8097 hardcode_direct=yes
8098 hardcode_minus_L=yes
8099 hardcode_shlibpath_var=no
8100 ;;
8101
8102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8103 freebsd* | dragonfly*)
8104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8105 hardcode_libdir_flag_spec='-R$libdir'
8106 hardcode_direct=yes
8107 hardcode_shlibpath_var=no
8108 ;;
8109
8110 hpux9*)
8111 if test "$GCC" = yes; then
8112 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'
8113 else
8114 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'
8115 fi
8116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8117 hardcode_libdir_separator=:
8118 hardcode_direct=yes
8119
8120 # hardcode_minus_L: Not really in the search PATH,
8121 # but as the default location of the library.
8122 hardcode_minus_L=yes
8123 export_dynamic_flag_spec='${wl}-E'
8124 ;;
8125
8126 hpux10*)
8127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 else
8130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8131 fi
8132 if test "$with_gnu_ld" = no; then
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8135
8136 hardcode_direct=yes
8137 export_dynamic_flag_spec='${wl}-E'
8138
8139 # hardcode_minus_L: Not really in the search PATH,
8140 # but as the default location of the library.
8141 hardcode_minus_L=yes
8142 fi
8143 ;;
8144
8145 hpux11*)
8146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8147 case $host_cpu in
8148 hppa*64*)
8149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 ;;
8151 ia64*)
8152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8153 ;;
8154 *)
8155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8156 ;;
8157 esac
8158 else
8159 case $host_cpu in
8160 hppa*64*)
8161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 ;;
8163 ia64*)
8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8165 ;;
8166 *)
8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8168 ;;
8169 esac
8170 fi
8171 if test "$with_gnu_ld" = no; then
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8174
8175 case $host_cpu in
8176 hppa*64*|ia64*)
8177 hardcode_libdir_flag_spec_ld='+b $libdir'
8178 hardcode_direct=no
8179 hardcode_shlibpath_var=no
8180 ;;
8181 *)
8182 hardcode_direct=yes
8183 export_dynamic_flag_spec='${wl}-E'
8184
8185 # hardcode_minus_L: Not really in the search PATH,
8186 # but as the default location of the library.
8187 hardcode_minus_L=yes
8188 ;;
8189 esac
8190 fi
8191 ;;
8192
8193 irix5* | irix6* | nonstopux*)
8194 if test "$GCC" = yes; then
8195 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'
8196 else
8197 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'
8198 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8199 fi
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 hardcode_libdir_separator=:
8202 link_all_deplibs=yes
8203 ;;
8204
8205 netbsd*)
8206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8208 else
8209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8210 fi
8211 hardcode_libdir_flag_spec='-R$libdir'
8212 hardcode_direct=yes
8213 hardcode_shlibpath_var=no
8214 ;;
8215
8216 newsos6)
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_direct=yes
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 hardcode_libdir_separator=:
8221 hardcode_shlibpath_var=no
8222 ;;
8223
8224 openbsd*)
8225 if test -f /usr/libexec/ld.so; then
8226 hardcode_direct=yes
8227 hardcode_shlibpath_var=no
8228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8233 else
8234 case $host_os in
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 ;;
8239 *)
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 ;;
8243 esac
8244 fi
8245 else
8246 ld_shlibs=no
8247 fi
8248 ;;
8249
8250 os2*)
8251 hardcode_libdir_flag_spec='-L$libdir'
8252 hardcode_minus_L=yes
8253 allow_undefined_flag=unsupported
8254 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'
8255 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8256 ;;
8257
8258 osf3*)
8259 if test "$GCC" = yes; then
8260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8261 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'
8262 else
8263 allow_undefined_flag=' -expect_unresolved \*'
8264 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'
8265 fi
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 ;;
8269
8270 osf4* | osf5*) # as osf3* with the addition of -msym flag
8271 if test "$GCC" = yes; then
8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8273 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'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 else
8276 allow_undefined_flag=' -expect_unresolved \*'
8277 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'
8278 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8279 $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'
8280
8281 # Both c and cxx compiler support -rpath directly
8282 hardcode_libdir_flag_spec='-rpath $libdir'
8283 fi
8284 hardcode_libdir_separator=:
8285 ;;
8286
8287 solaris*)
8288 no_undefined_flag=' -z text'
8289 if test "$GCC" = yes; then
8290 wlarc='${wl}'
8291 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8293 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8294 else
8295 wlarc=''
8296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8299 fi
8300 hardcode_libdir_flag_spec='-R$libdir'
8301 hardcode_shlibpath_var=no
8302 case $host_os in
8303 solaris2.[0-5] | solaris2.[0-5].*) ;;
8304 *)
8305 # The compiler driver will combine and reorder linker options,
8306 # but understands `-z linker_flag'. GCC discards it without `$wl',
8307 # but is careful enough not to reorder.
8308 # Supported since Solaris 2.6 (maybe 2.5.1?)
8309 if test "$GCC" = yes; then
8310 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8311 else
8312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8313 fi
8314 ;;
8315 esac
8316 link_all_deplibs=yes
8317 ;;
8318
8319 sunos4*)
8320 if test "x$host_vendor" = xsequent; then
8321 # Use $CC to link under sequent, because it throws in some extra .o
8322 # files that make .init and .fini sections work.
8323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8324 else
8325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8326 fi
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_direct=yes
8329 hardcode_minus_L=yes
8330 hardcode_shlibpath_var=no
8331 ;;
8332
8333 sysv4)
8334 case $host_vendor in
8335 sni)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes # is this really true???
8338 ;;
8339 siemens)
8340 ## LD is ld it makes a PLAMLIB
8341 ## CC just makes a GrossModule.
8342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8343 reload_cmds='$CC -r -o $output$reload_objs'
8344 hardcode_direct=no
8345 ;;
8346 motorola)
8347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8349 ;;
8350 esac
8351 runpath_var='LD_RUN_PATH'
8352 hardcode_shlibpath_var=no
8353 ;;
8354
8355 sysv4.3*)
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8358 export_dynamic_flag_spec='-Bexport'
8359 ;;
8360
8361 sysv4*MP*)
8362 if test -d /usr/nec; then
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_shlibpath_var=no
8365 runpath_var=LD_RUN_PATH
8366 hardcode_runpath_var=yes
8367 ld_shlibs=yes
8368 fi
8369 ;;
8370
8371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8372 no_undefined_flag='${wl}-z,text'
8373 archive_cmds_need_lc=no
8374 hardcode_shlibpath_var=no
8375 runpath_var='LD_RUN_PATH'
8376
8377 if test "$GCC" = yes; then
8378 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8380 else
8381 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8383 fi
8384 ;;
8385
8386 sysv5* | sco3.2v5* | sco5v6*)
8387 # Note: We can NOT use -z defs as we might desire, because we do not
8388 # link with -lc, and that would cause any symbols used from libc to
8389 # always be unresolved, which means just about no library would
8390 # ever link correctly. If we're not using GNU ld we use -z text
8391 # though, which does catch some bad symbols but isn't as heavy-handed
8392 # as -z defs.
8393 no_undefined_flag='${wl}-z,text'
8394 allow_undefined_flag='${wl}-z,nodefs'
8395 archive_cmds_need_lc=no
8396 hardcode_shlibpath_var=no
8397 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8398 hardcode_libdir_separator=':'
8399 link_all_deplibs=yes
8400 export_dynamic_flag_spec='${wl}-Bexport'
8401 runpath_var='LD_RUN_PATH'
8402
8403 if test "$GCC" = yes; then
8404 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 else
8407 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8409 fi
8410 ;;
8411
8412 uts4*)
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_shlibpath_var=no
8416 ;;
8417
8418 *)
8419 ld_shlibs=no
8420 ;;
8421 esac
8422 fi
8423
8424{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8425$as_echo "$ld_shlibs" >&6; }
8426test "$ld_shlibs" = no && can_build_shared=no
8427
8428#
8429# Do we need to explicitly link libc?
8430#
8431case "x$archive_cmds_need_lc" in
8432x|xyes)
8433 # Assume -lc should be added
8434 archive_cmds_need_lc=yes
8435
8436 if test "$enable_shared" = yes && test "$GCC" = yes; then
8437 case $archive_cmds in
8438 *'~'*)
8439 # FIXME: we may have to deal with multi-command sequences.
8440 ;;
8441 '$CC '*)
8442 # Test whether the compiler implicitly links with -lc since on some
8443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8444 # to ld, don't add -lc before -lgcc.
8445 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8446$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8447 $rm conftest*
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>&5
8452 ac_status=$?
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } 2>conftest.err; then
8455 soname=conftest
8456 lib=conftest
8457 libobjs=conftest.$ac_objext
8458 deplibs=
8459 wl=$lt_prog_compiler_wl
8460 pic_flag=$lt_prog_compiler_pic
8461 compiler_flags=-v
8462 linker_flags=-v
8463 verstring=
8464 output_objdir=.
8465 libname=conftest
8466 lt_save_allow_undefined_flag=$allow_undefined_flag
8467 allow_undefined_flag=
8468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8469 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8470 ac_status=$?
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }
8473 then
8474 archive_cmds_need_lc=no
8475 else
8476 archive_cmds_need_lc=yes
8477 fi
8478 allow_undefined_flag=$lt_save_allow_undefined_flag
8479 else
8480 cat conftest.err 1>&5
8481 fi
8482 $rm conftest*
8483 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8484$as_echo "$archive_cmds_need_lc" >&6; }
8485 ;;
8486 esac
8487 fi
8488 ;;
8489esac
8490
8491{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8492$as_echo_n "checking dynamic linker characteristics... " >&6; }
8493library_names_spec=
8494libname_spec='lib$name'
8495soname_spec=
8496shrext_cmds=".so"
8497postinstall_cmds=
8498postuninstall_cmds=
8499finish_cmds=
8500finish_eval=
8501shlibpath_var=
8502shlibpath_overrides_runpath=unknown
8503version_type=none
8504dynamic_linker="$host_os ld.so"
8505sys_lib_dlsearch_path_spec="/lib /usr/lib"
8506
8507if test "$GCC" = yes; then
8508 case $host_os in
8509 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8510 *) lt_awk_arg="/^libraries:/" ;;
8511 esac
8512 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8513 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8514 # if the path contains ";" then we assume it to be the separator
8515 # otherwise default to the standard path separator (i.e. ":") - it is
8516 # assumed that no part of a normal pathname contains ";" but that should
8517 # okay in the real world where ";" in dirpaths is itself problematic.
8518 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8519 else
8520 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8521 fi
8522 # Ok, now we have the path, separated by spaces, we can step through it
8523 # and add multilib dir if necessary.
8524 lt_tmp_lt_search_path_spec=
8525 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8526 for lt_sys_path in $lt_search_path_spec; do
8527 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8529 else
8530 test -d "$lt_sys_path" && \
8531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8532 fi
8533 done
8534 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8535BEGIN {RS=" "; FS="/|\n";} {
8536 lt_foo="";
8537 lt_count=0;
8538 for (lt_i = NF; lt_i > 0; lt_i--) {
8539 if ($lt_i != "" && $lt_i != ".") {
8540 if ($lt_i == "..") {
8541 lt_count++;
8542 } else {
8543 if (lt_count == 0) {
8544 lt_foo="/" $lt_i lt_foo;
8545 } else {
8546 lt_count--;
8547 }
8548 }
8549 }
8550 }
8551 if (lt_foo != "") { lt_freq[lt_foo]++; }
8552 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8553}'`
8554 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8555else
8556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8557fi
8558need_lib_prefix=unknown
8559hardcode_into_libs=no
8560
8561# when you set need_version to no, make sure it does not cause -set_version
8562# flags to be left without arguments
8563need_version=unknown
8564
8565case $host_os in
8566aix3*)
8567 version_type=linux
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8569 shlibpath_var=LIBPATH
8570
8571 # AIX 3 has no versioning support, so we append a major version to the name.
8572 soname_spec='${libname}${release}${shared_ext}$major'
8573 ;;
8574
8575aix[4-9]*)
8576 version_type=linux
8577 need_lib_prefix=no
8578 need_version=no
8579 hardcode_into_libs=yes
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 supports IA64
8582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8583 shlibpath_var=LD_LIBRARY_PATH
8584 else
8585 # With GCC up to 2.95.x, collect2 would create an import file
8586 # for dependence libraries. The import file would start with
8587 # the line `#! .'. This would cause the generated library to
8588 # depend on `.', always an invalid library. This was fixed in
8589 # development snapshots of GCC prior to 3.0.
8590 case $host_os in
8591 aix4 | aix4.[01] | aix4.[01].*)
8592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8593 echo ' yes '
8594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8595 :
8596 else
8597 can_build_shared=no
8598 fi
8599 ;;
8600 esac
8601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8602 # soname into executable. Probably we can add versioning support to
8603 # collect2, so additional links can be useful in future.
8604 if test "$aix_use_runtimelinking" = yes; then
8605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8606 # instead of lib<name>.a to let people know that these are not
8607 # typical AIX shared libraries.
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 else
8610 # We preserve .a as extension for shared libraries through AIX4.2
8611 # and later when we are not doing run time linking.
8612 library_names_spec='${libname}${release}.a $libname.a'
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 fi
8615 shlibpath_var=LIBPATH
8616 fi
8617 ;;
8618
8619amigaos*)
8620 library_names_spec='$libname.ixlibrary $libname.a'
8621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8622 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'
8623 ;;
8624
8625beos*)
8626 library_names_spec='${libname}${shared_ext}'
8627 dynamic_linker="$host_os ld.so"
8628 shlibpath_var=LIBRARY_PATH
8629 ;;
8630
8631bsdi[45]*)
8632 version_type=linux
8633 need_version=no
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8640 # the default ld.so.conf also contains /usr/contrib/lib and
8641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8642 # libtool to hard-code these into programs
8643 ;;
8644
8645cygwin* | mingw* | pw32*)
8646 version_type=windows
8647 shrext_cmds=".dll"
8648 need_version=no
8649 need_lib_prefix=no
8650
8651 case $GCC,$host_os in
8652 yes,cygwin* | yes,mingw* | yes,pw32*)
8653 library_names_spec='$libname.dll.a'
8654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8655 postinstall_cmds='base_file=`basename \${file}`~
8656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8657 dldir=$destdir/`dirname \$dlpath`~
8658 test -d \$dldir || mkdir -p \$dldir~
8659 $install_prog $dir/$dlname \$dldir/$dlname~
8660 chmod a+x \$dldir/$dlname'
8661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8662 dlpath=$dir/\$dldll~
8663 $rm \$dlpath'
8664 shlibpath_overrides_runpath=yes
8665
8666 case $host_os in
8667 cygwin*)
8668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8671 ;;
8672 mingw*)
8673 # MinGW DLLs use traditional 'lib' prefix
8674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8677 # It is most probably a Windows format PATH printed by
8678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8679 # path with ; separators, and with drive letters. We can handle the
8680 # drive letters (cygwin fileutils understands them), so leave them,
8681 # especially as we might pass files found there to a mingw objdump,
8682 # which wouldn't understand a cygwinified path. Ahh.
8683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8684 else
8685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8686 fi
8687 ;;
8688 pw32*)
8689 # pw32 DLLs use 'pw' prefix rather than 'lib'
8690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 ;;
8692 esac
8693 ;;
8694
8695 *)
8696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8697 ;;
8698 esac
8699 dynamic_linker='Win32 ld.exe'
8700 # FIXME: first we should search . and the directory the executable is in
8701 shlibpath_var=PATH
8702 ;;
8703
8704darwin* | rhapsody*)
8705 dynamic_linker="$host_os dyld"
8706 version_type=darwin
8707 need_lib_prefix=no
8708 need_version=no
8709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8710 soname_spec='${libname}${release}${major}$shared_ext'
8711 shlibpath_overrides_runpath=yes
8712 shlibpath_var=DYLD_LIBRARY_PATH
8713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8714
8715 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8717 ;;
8718
8719dgux*)
8720 version_type=linux
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 ;;
8727
8728freebsd1*)
8729 dynamic_linker=no
8730 ;;
8731
8732freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8737 else
8738 case $host_os in
8739 freebsd[123]*) objformat=aout ;;
8740 *) objformat=elf ;;
8741 esac
8742 fi
8743 version_type=freebsd-$objformat
8744 case $version_type in
8745 freebsd-elf*)
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8747 need_version=no
8748 need_lib_prefix=no
8749 ;;
8750 freebsd-*)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8752 need_version=yes
8753 ;;
8754 esac
8755 shlibpath_var=LD_LIBRARY_PATH
8756 case $host_os in
8757 freebsd2*)
8758 shlibpath_overrides_runpath=yes
8759 ;;
8760 freebsd3.[01]* | freebsdelf3.[01]*)
8761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8763 ;;
8764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8768 ;;
8769 *) # from 4.6 on, and DragonFly
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 ;;
8773 esac
8774 ;;
8775
8776gnu*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8784 ;;
8785
8786hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8789 version_type=sunos
8790 need_lib_prefix=no
8791 need_version=no
8792 case $host_cpu in
8793 ia64*)
8794 shrext_cmds='.so'
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8803 else
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 fi
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 ;;
8808 hppa*64*)
8809 shrext_cmds='.sl'
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818 ;;
8819 *)
8820 shrext_cmds='.sl'
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 ;;
8827 esac
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8830 ;;
8831
8832interix[3-9]*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8842 ;;
8843
8844irix5* | irix6* | nonstopux*)
8845 case $host_os in
8846 nonstopux*) version_type=nonstopux ;;
8847 *)
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8849 version_type=linux
8850 else
8851 version_type=irix
8852 fi ;;
8853 esac
8854 need_lib_prefix=no
8855 need_version=no
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8858 case $host_os in
8859 irix5* | nonstopux*)
8860 libsuff= shlibsuff=
8861 ;;
8862 *)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8871 esac
8872 ;;
8873 esac
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8879 ;;
8880
8881# No shared lib support for Linux oldld, aout, or coff.
8882linux*oldld* | linux*aout* | linux*coff*)
8883 dynamic_linker=no
8884 ;;
8885
8886# This must be Linux ELF.
8887linux* | k*bsd*-gnu)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8900
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
8903 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' ' '`
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8905 fi
8906
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8914 ;;
8915
8916netbsd*)
8917 version_type=sunos
8918 need_lib_prefix=no
8919 need_version=no
8920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923 dynamic_linker='NetBSD (a.out) ld.so'
8924 else
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 dynamic_linker='NetBSD ld.elf_so'
8928 fi
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes
8931 hardcode_into_libs=yes
8932 ;;
8933
8934newsos6)
8935 version_type=linux
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=yes
8939 ;;
8940
8941nto-qnx*)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8949 ;;
8950
8951openbsd*)
8952 version_type=sunos
8953 sys_lib_dlsearch_path_spec="/usr/lib"
8954 need_lib_prefix=no
8955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8956 case $host_os in
8957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958 *) need_version=no ;;
8959 esac
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964 case $host_os in
8965 openbsd2.[89] | openbsd2.[89].*)
8966 shlibpath_overrides_runpath=no
8967 ;;
8968 *)
8969 shlibpath_overrides_runpath=yes
8970 ;;
8971 esac
8972 else
8973 shlibpath_overrides_runpath=yes
8974 fi
8975 ;;
8976
8977os2*)
8978 libname_spec='$name'
8979 shrext_cmds=".dll"
8980 need_lib_prefix=no
8981 library_names_spec='$libname${shared_ext} $libname.a'
8982 dynamic_linker='OS/2 ld.exe'
8983 shlibpath_var=LIBPATH
8984 ;;
8985
8986osf3* | osf4* | osf5*)
8987 version_type=osf
8988 need_lib_prefix=no
8989 need_version=no
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8995 ;;
8996
8997rdos*)
8998 dynamic_linker=no
8999 ;;
9000
9001solaris*)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds='chmod +x $lib'
9012 ;;
9013
9014sunos4*)
9015 version_type=sunos
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 if test "$with_gnu_ld" = yes; then
9021 need_lib_prefix=no
9022 fi
9023 need_version=yes
9024 ;;
9025
9026sysv4 | sysv4.3*)
9027 version_type=linux
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_vendor in
9032 sni)
9033 shlibpath_overrides_runpath=no
9034 need_lib_prefix=no
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9036 runpath_var=LD_RUN_PATH
9037 ;;
9038 siemens)
9039 need_lib_prefix=no
9040 ;;
9041 motorola)
9042 need_lib_prefix=no
9043 need_version=no
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9046 ;;
9047 esac
9048 ;;
9049
9050sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 version_type=linux
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 fi
9057 ;;
9058
9059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 hardcode_into_libs=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath=no
9070 else
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath=yes
9073 case $host_os in
9074 sco3.2v5*)
9075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9076 ;;
9077 esac
9078 fi
9079 sys_lib_dlsearch_path_spec='/usr/lib'
9080 ;;
9081
9082uts4*)
9083 version_type=linux
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 ;;
9088
9089*)
9090 dynamic_linker=no
9091 ;;
9092esac
9093{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9094$as_echo "$dynamic_linker" >&6; }
9095test "$dynamic_linker" = no && can_build_shared=no
9096
9097if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9099else
9100 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9101fi
9102
9103sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9104if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9105 $as_echo_n "(cached) " >&6
9106else
9107 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9108fi
9109
9110sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9111
9112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9113if test "$GCC" = yes; then
9114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9115fi
9116
9117{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9118$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9119hardcode_action=
9120if test -n "$hardcode_libdir_flag_spec" || \
9121 test -n "$runpath_var" || \
9122 test "X$hardcode_automatic" = "Xyes" ; then
9123
9124 # We can hardcode non-existant directories.
9125 if test "$hardcode_direct" != no &&
9126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9127 # have to relink, otherwise we might link with an installed library
9128 # when we should be linking with a yet-to-be-installed one
9129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9130 test "$hardcode_minus_L" != no; then
9131 # Linking always hardcodes the temporary library directory.
9132 hardcode_action=relink
9133 else
9134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9135 hardcode_action=immediate
9136 fi
9137else
9138 # We cannot hardcode anything, or else we can only hardcode existing
9139 # directories.
9140 hardcode_action=unsupported
9141fi
9142{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9143$as_echo "$hardcode_action" >&6; }
9144
9145if test "$hardcode_action" = relink; then
9146 # Fast installation is not supported
9147 enable_fast_install=no
9148elif test "$shlibpath_overrides_runpath" = yes ||
9149 test "$enable_shared" = no; then
9150 # Fast installation is not necessary
9151 enable_fast_install=needless
9152fi
9153
9154striplib=
9155old_striplib=
9156{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9157$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9158if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162$as_echo "yes" >&6; }
9163else
9164# FIXME - insert some real tests, host_os isn't really good enough
9165 case $host_os in
9166 darwin*)
9167 if test -n "$STRIP" ; then
9168 striplib="$STRIP -x"
9169 old_striplib="$STRIP -S"
9170 { $as_echo "$as_me:$LINENO: result: yes" >&5
9171$as_echo "yes" >&6; }
9172 else
9173 { $as_echo "$as_me:$LINENO: result: no" >&5
9174$as_echo "no" >&6; }
9175fi
9176 ;;
9177 *)
9178 { $as_echo "$as_me:$LINENO: result: no" >&5
9179$as_echo "no" >&6; }
9180 ;;
9181 esac
9182fi
9183
9184if test "x$enable_dlopen" != xyes; then
9185 enable_dlopen=unknown
9186 enable_dlopen_self=unknown
9187 enable_dlopen_self_static=unknown
9188else
9189 lt_cv_dlopen=no
9190 lt_cv_dlopen_libs=
9191
9192 case $host_os in
9193 beos*)
9194 lt_cv_dlopen="load_add_on"
9195 lt_cv_dlopen_libs=
9196 lt_cv_dlopen_self=yes
9197 ;;
9198
9199 mingw* | pw32*)
9200 lt_cv_dlopen="LoadLibrary"
9201 lt_cv_dlopen_libs=
9202 ;;
9203
9204 cygwin*)
9205 lt_cv_dlopen="dlopen"
9206 lt_cv_dlopen_libs=
9207 ;;
9208
9209 darwin*)
9210 # if libdl is installed we need to link against it
9211 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9212$as_echo_n "checking for dlopen in -ldl... " >&6; }
9213if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9214 $as_echo_n "(cached) " >&6
9215else
9216 ac_check_lib_save_LIBS=$LIBS
9217LIBS="-ldl $LIBS"
9218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
9225/* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231char dlopen ();
9232int
9233main ()
9234{
9235return dlopen ();
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (ac_try="$ac_link"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247$as_echo "$ac_try_echo") >&5
9248 (eval "$ac_link") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest$ac_exeext && {
9258 test "$cross_compiling" = yes ||
9259 $as_test_x conftest$ac_exeext
9260 }; then
9261 ac_cv_lib_dl_dlopen=yes
9262else
9263 $as_echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_dl_dlopen=no
9267fi
9268
9269rm -rf conftest.dSYM
9270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9276if test $ac_cv_lib_dl_dlopen = yes; then
9277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9278else
9279
9280 lt_cv_dlopen="dyld"
9281 lt_cv_dlopen_libs=
9282 lt_cv_dlopen_self=yes
9283
9284fi
9285
9286 ;;
9287
9288 *)
9289 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9290$as_echo_n "checking for shl_load... " >&6; }
9291if test "${ac_cv_func_shl_load+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293else
9294 cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9302#define shl_load innocuous_shl_load
9303
9304/* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char shl_load (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9308
9309#ifdef __STDC__
9310# include <limits.h>
9311#else
9312# include <assert.h>
9313#endif
9314
9315#undef shl_load
9316
9317/* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320#ifdef __cplusplus
9321extern "C"
9322#endif
9323char shl_load ();
9324/* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327#if defined __stub_shl_load || defined __stub___shl_load
9328choke me
9329#endif
9330
9331int
9332main ()
9333{
9334return shl_load ();
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339rm -f conftest.$ac_objext conftest$ac_exeext
9340if { (ac_try="$ac_link"
9341case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
9345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346$as_echo "$ac_try_echo") >&5
9347 (eval "$ac_link") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext && {
9357 test "$cross_compiling" = yes ||
9358 $as_test_x conftest$ac_exeext
9359 }; then
9360 ac_cv_func_shl_load=yes
9361else
9362 $as_echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 ac_cv_func_shl_load=no
9366fi
9367
9368rm -rf conftest.dSYM
9369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371fi
9372{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9373$as_echo "$ac_cv_func_shl_load" >&6; }
9374if test $ac_cv_func_shl_load = yes; then
9375 lt_cv_dlopen="shl_load"
9376else
9377 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9378$as_echo_n "checking for shl_load in -ldld... " >&6; }
9379if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9380 $as_echo_n "(cached) " >&6
9381else
9382 ac_check_lib_save_LIBS=$LIBS
9383LIBS="-ldld $LIBS"
9384cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390
9391/* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9394#ifdef __cplusplus
9395extern "C"
9396#endif
9397char shl_load ();
9398int
9399main ()
9400{
9401return shl_load ();
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406rm -f conftest.$ac_objext conftest$ac_exeext
9407if { (ac_try="$ac_link"
9408case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411esac
9412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9413$as_echo "$ac_try_echo") >&5
9414 (eval "$ac_link") 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest$ac_exeext && {
9424 test "$cross_compiling" = yes ||
9425 $as_test_x conftest$ac_exeext
9426 }; then
9427 ac_cv_lib_dld_shl_load=yes
9428else
9429 $as_echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_lib_dld_shl_load=no
9433fi
9434
9435rm -rf conftest.dSYM
9436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9438LIBS=$ac_check_lib_save_LIBS
9439fi
9440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9441$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9442if test $ac_cv_lib_dld_shl_load = yes; then
9443 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9444else
9445 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9446$as_echo_n "checking for dlopen... " >&6; }
9447if test "${ac_cv_func_dlopen+set}" = set; then
9448 $as_echo_n "(cached) " >&6
9449else
9450 cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
9456/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458#define dlopen innocuous_dlopen
9459
9460/* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char dlopen (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9464
9465#ifdef __STDC__
9466# include <limits.h>
9467#else
9468# include <assert.h>
9469#endif
9470
9471#undef dlopen
9472
9473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476#ifdef __cplusplus
9477extern "C"
9478#endif
9479char dlopen ();
9480/* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483#if defined __stub_dlopen || defined __stub___dlopen
9484choke me
9485#endif
9486
9487int
9488main ()
9489{
9490return dlopen ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (ac_try="$ac_link"
9497case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500esac
9501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502$as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9515 }; then
9516 ac_cv_func_dlopen=yes
9517else
9518 $as_echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_func_dlopen=no
9522fi
9523
9524rm -rf conftest.dSYM
9525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527fi
9528{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9529$as_echo "$ac_cv_func_dlopen" >&6; }
9530if test $ac_cv_func_dlopen = yes; then
9531 lt_cv_dlopen="dlopen"
9532else
9533 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9534$as_echo_n "checking for dlopen in -ldl... " >&6; }
9535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9536 $as_echo_n "(cached) " >&6
9537else
9538 ac_check_lib_save_LIBS=$LIBS
9539LIBS="-ldl $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
9547/* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553char dlopen ();
9554int
9555main ()
9556{
9557return dlopen ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9569$as_echo "$ac_try_echo") >&5
9570 (eval "$ac_link") 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext && {
9580 test "$cross_compiling" = yes ||
9581 $as_test_x conftest$ac_exeext
9582 }; then
9583 ac_cv_lib_dl_dlopen=yes
9584else
9585 $as_echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_lib_dl_dlopen=no
9589fi
9590
9591rm -rf conftest.dSYM
9592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593 conftest$ac_exeext conftest.$ac_ext
9594LIBS=$ac_check_lib_save_LIBS
9595fi
9596{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9597$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9598if test $ac_cv_lib_dl_dlopen = yes; then
9599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9600else
9601 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9602$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9603if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9604 $as_echo_n "(cached) " >&6
9605else
9606 ac_check_lib_save_LIBS=$LIBS
9607LIBS="-lsvld $LIBS"
9608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614
9615/* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621char dlopen ();
9622int
9623main ()
9624{
9625return dlopen ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9637$as_echo "$ac_try_echo") >&5
9638 (eval "$ac_link") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext && {
9648 test "$cross_compiling" = yes ||
9649 $as_test_x conftest$ac_exeext
9650 }; then
9651 ac_cv_lib_svld_dlopen=yes
9652else
9653 $as_echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_cv_lib_svld_dlopen=no
9657fi
9658
9659rm -rf conftest.dSYM
9660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9662LIBS=$ac_check_lib_save_LIBS
9663fi
9664{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9665$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9666if test $ac_cv_lib_svld_dlopen = yes; then
9667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9668else
9669 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9670$as_echo_n "checking for dld_link in -ldld... " >&6; }
9671if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9672 $as_echo_n "(cached) " >&6
9673else
9674 ac_check_lib_save_LIBS=$LIBS
9675LIBS="-ldld $LIBS"
9676cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682
9683/* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686#ifdef __cplusplus
9687extern "C"
9688#endif
9689char dld_link ();
9690int
9691main ()
9692{
9693return dld_link ();
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (ac_try="$ac_link"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705$as_echo "$ac_try_echo") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext && {
9716 test "$cross_compiling" = yes ||
9717 $as_test_x conftest$ac_exeext
9718 }; then
9719 ac_cv_lib_dld_dld_link=yes
9720else
9721 $as_echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_lib_dld_dld_link=no
9725fi
9726
9727rm -rf conftest.dSYM
9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9730LIBS=$ac_check_lib_save_LIBS
9731fi
9732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9733$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9734if test $ac_cv_lib_dld_dld_link = yes; then
9735 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9736fi
9737
9738
9739fi
9740
9741
9742fi
9743
9744
9745fi
9746
9747
9748fi
9749
9750
9751fi
9752
9753 ;;
9754 esac
9755
9756 if test "x$lt_cv_dlopen" != xno; then
9757 enable_dlopen=yes
9758 else
9759 enable_dlopen=no
9760 fi
9761
9762 case $lt_cv_dlopen in
9763 dlopen)
9764 save_CPPFLAGS="$CPPFLAGS"
9765 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9766
9767 save_LDFLAGS="$LDFLAGS"
9768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9769
9770 save_LIBS="$LIBS"
9771 LIBS="$lt_cv_dlopen_libs $LIBS"
9772
9773 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9774$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9775if test "${lt_cv_dlopen_self+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9777else
9778 if test "$cross_compiling" = yes; then :
9779 lt_cv_dlopen_self=cross
9780else
9781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782 lt_status=$lt_dlunknown
9783 cat > conftest.$ac_ext <<EOF
9784#line 9784 "configure"
9785#include "confdefs.h"
9786
9787#if HAVE_DLFCN_H
9788#include <dlfcn.h>
9789#endif
9790
9791#include <stdio.h>
9792
9793#ifdef RTLD_GLOBAL
9794# define LT_DLGLOBAL RTLD_GLOBAL
9795#else
9796# ifdef DL_GLOBAL
9797# define LT_DLGLOBAL DL_GLOBAL
9798# else
9799# define LT_DLGLOBAL 0
9800# endif
9801#endif
9802
9803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804 find out it does not work in some platform. */
9805#ifndef LT_DLLAZY_OR_NOW
9806# ifdef RTLD_LAZY
9807# define LT_DLLAZY_OR_NOW RTLD_LAZY
9808# else
9809# ifdef DL_LAZY
9810# define LT_DLLAZY_OR_NOW DL_LAZY
9811# else
9812# ifdef RTLD_NOW
9813# define LT_DLLAZY_OR_NOW RTLD_NOW
9814# else
9815# ifdef DL_NOW
9816# define LT_DLLAZY_OR_NOW DL_NOW
9817# else
9818# define LT_DLLAZY_OR_NOW 0
9819# endif
9820# endif
9821# endif
9822# endif
9823#endif
9824
9825#ifdef __cplusplus
9826extern "C" void exit (int);
9827#endif
9828
9829void fnord() { int i=42;}
9830int main ()
9831{
9832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9833 int status = $lt_dlunknown;
9834
9835 if (self)
9836 {
9837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9839 /* dlclose (self); */
9840 }
9841 else
9842 puts (dlerror ());
9843
9844 exit (status);
9845}
9846EOF
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9852 (./conftest; exit; ) >&5 2>/dev/null
9853 lt_status=$?
9854 case x$lt_status in
9855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9858 esac
9859 else :
9860 # compilation failed
9861 lt_cv_dlopen_self=no
9862 fi
9863fi
9864rm -fr conftest*
9865
9866
9867fi
9868{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9869$as_echo "$lt_cv_dlopen_self" >&6; }
9870
9871 if test "x$lt_cv_dlopen_self" = xyes; then
9872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9873 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9874$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9875if test "${lt_cv_dlopen_self_static+set}" = set; then
9876 $as_echo_n "(cached) " >&6
9877else
9878 if test "$cross_compiling" = yes; then :
9879 lt_cv_dlopen_self_static=cross
9880else
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884#line 9884 "configure"
9885#include "confdefs.h"
9886
9887#if HAVE_DLFCN_H
9888#include <dlfcn.h>
9889#endif
9890
9891#include <stdio.h>
9892
9893#ifdef RTLD_GLOBAL
9894# define LT_DLGLOBAL RTLD_GLOBAL
9895#else
9896# ifdef DL_GLOBAL
9897# define LT_DLGLOBAL DL_GLOBAL
9898# else
9899# define LT_DLGLOBAL 0
9900# endif
9901#endif
9902
9903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905#ifndef LT_DLLAZY_OR_NOW
9906# ifdef RTLD_LAZY
9907# define LT_DLLAZY_OR_NOW RTLD_LAZY
9908# else
9909# ifdef DL_LAZY
9910# define LT_DLLAZY_OR_NOW DL_LAZY
9911# else
9912# ifdef RTLD_NOW
9913# define LT_DLLAZY_OR_NOW RTLD_NOW
9914# else
9915# ifdef DL_NOW
9916# define LT_DLLAZY_OR_NOW DL_NOW
9917# else
9918# define LT_DLLAZY_OR_NOW 0
9919# endif
9920# endif
9921# endif
9922# endif
9923#endif
9924
9925#ifdef __cplusplus
9926extern "C" void exit (int);
9927#endif
9928
9929void fnord() { int i=42;}
9930int main ()
9931{
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9934
9935 if (self)
9936 {
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9940 }
9941 else
9942 puts (dlerror ());
9943
9944 exit (status);
9945}
9946EOF
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9949 ac_status=$?
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9953 lt_status=$?
9954 case x$lt_status in
9955 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9956 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9957 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9958 esac
9959 else :
9960 # compilation failed
9961 lt_cv_dlopen_self_static=no
9962 fi
9963fi
9964rm -fr conftest*
9965
9966
9967fi
9968{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9969$as_echo "$lt_cv_dlopen_self_static" >&6; }
9970 fi
9971
9972 CPPFLAGS="$save_CPPFLAGS"
9973 LDFLAGS="$save_LDFLAGS"
9974 LIBS="$save_LIBS"
9975 ;;
9976 esac
9977
9978 case $lt_cv_dlopen_self in
9979 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9980 *) enable_dlopen_self=unknown ;;
9981 esac
9982
9983 case $lt_cv_dlopen_self_static in
9984 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9985 *) enable_dlopen_self_static=unknown ;;
9986 esac
9987fi
9988
9989
9990# Report which library types will actually be built
9991{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9992$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9993{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9994$as_echo "$can_build_shared" >&6; }
9995
9996{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9997$as_echo_n "checking whether to build shared libraries... " >&6; }
9998test "$can_build_shared" = "no" && enable_shared=no
9999
10000# On AIX, shared libraries and static libraries use the same namespace, and
10001# are all built from PIC.
10002case $host_os in
10003aix3*)
10004 test "$enable_shared" = yes && enable_static=no
10005 if test -n "$RANLIB"; then
10006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10007 postinstall_cmds='$RANLIB $lib'
10008 fi
10009 ;;
10010
10011aix[4-9]*)
10012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10013 test "$enable_shared" = yes && enable_static=no
10014 fi
10015 ;;
10016esac
10017{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10018$as_echo "$enable_shared" >&6; }
10019
10020{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10021$as_echo_n "checking whether to build static libraries... " >&6; }
10022# Make sure either enable_shared or enable_static is yes.
10023test "$enable_shared" = yes || enable_static=yes
10024{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10025$as_echo "$enable_static" >&6; }
10026
10027# The else clause should only fire when bootstrapping the
10028# libtool distribution, otherwise you forgot to ship ltmain.sh
10029# with your package, and you will get complaints that there are
10030# no rules to generate ltmain.sh.
10031if test -f "$ltmain"; then
10032 # See if we are running on zsh, and set the options which allow our commands through
10033 # without removal of \ escapes.
10034 if test -n "${ZSH_VERSION+set}" ; then
10035 setopt NO_GLOB_SUBST
10036 fi
10037 # Now quote all the things that may contain metacharacters while being
10038 # careful not to overquote the AC_SUBSTed values. We take copies of the
10039 # variables and quote the copies for generation of the libtool script.
10040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10041 SED SHELL STRIP \
10042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10044 deplibs_check_method reload_flag reload_cmds need_locks \
10045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10046 lt_cv_sys_global_symbol_to_c_name_address \
10047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10048 old_postinstall_cmds old_postuninstall_cmds \
10049 compiler \
10050 CC \
10051 LD \
10052 lt_prog_compiler_wl \
10053 lt_prog_compiler_pic \
10054 lt_prog_compiler_static \
10055 lt_prog_compiler_no_builtin_flag \
10056 export_dynamic_flag_spec \
10057 thread_safe_flag_spec \
10058 whole_archive_flag_spec \
10059 enable_shared_with_static_runtimes \
10060 old_archive_cmds \
10061 old_archive_from_new_cmds \
10062 predep_objects \
10063 postdep_objects \
10064 predeps \
10065 postdeps \
10066 compiler_lib_search_path \
10067 compiler_lib_search_dirs \
10068 archive_cmds \
10069 archive_expsym_cmds \
10070 postinstall_cmds \
10071 postuninstall_cmds \
10072 old_archive_from_expsyms_cmds \
10073 allow_undefined_flag \
10074 no_undefined_flag \
10075 export_symbols_cmds \
10076 hardcode_libdir_flag_spec \
10077 hardcode_libdir_flag_spec_ld \
10078 hardcode_libdir_separator \
10079 hardcode_automatic \
10080 module_cmds \
10081 module_expsym_cmds \
10082 lt_cv_prog_compiler_c_o \
10083 fix_srcfile_path \
10084 exclude_expsyms \
10085 include_expsyms; do
10086
10087 case $var in
10088 old_archive_cmds | \
10089 old_archive_from_new_cmds | \
10090 archive_cmds | \
10091 archive_expsym_cmds | \
10092 module_cmds | \
10093 module_expsym_cmds | \
10094 old_archive_from_expsyms_cmds | \
10095 export_symbols_cmds | \
10096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10097 postinstall_cmds | postuninstall_cmds | \
10098 old_postinstall_cmds | old_postuninstall_cmds | \
10099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10100 # Double-quote double-evaled strings.
10101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10102 ;;
10103 *)
10104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10105 ;;
10106 esac
10107 done
10108
10109 case $lt_echo in
10110 *'\$0 --fallback-echo"')
10111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10112 ;;
10113 esac
10114
10115cfgfile="${ofile}T"
10116 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10117 $rm -f "$cfgfile"
10118 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10119$as_echo "$as_me: creating $ofile" >&6;}
10120
10121 cat <<__EOF__ >> "$cfgfile"
10122#! $SHELL
10123
10124# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10125# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10126# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10127#
10128# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10129# Free Software Foundation, Inc.
10130#
10131# This file is part of GNU Libtool:
10132# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10133#
10134# This program is free software; you can redistribute it and/or modify
10135# it under the terms of the GNU General Public License as published by
10136# the Free Software Foundation; either version 2 of the License, or
10137# (at your option) any later version.
10138#
10139# This program is distributed in the hope that it will be useful, but
10140# WITHOUT ANY WARRANTY; without even the implied warranty of
10141# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10142# General Public License for more details.
10143#
10144# You should have received a copy of the GNU General Public License
10145# along with this program; if not, write to the Free Software
10146# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10147#
10148# As a special exception to the GNU General Public License, if you
10149# distribute this file as part of a program that contains a
10150# configuration script generated by Autoconf, you may include it under
10151# the same distribution terms that you use for the rest of that program.
10152
10153# A sed program that does not truncate output.
10154SED=$lt_SED
10155
10156# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10157Xsed="$SED -e 1s/^X//"
10158
10159# The HP-UX ksh and POSIX shell print the target directory to stdout
10160# if CDPATH is set.
10161(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10162
10163# The names of the tagged configurations supported by this script.
10164available_tags=
10165
10166# ### BEGIN LIBTOOL CONFIG
10167
10168# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10169
10170# Shell to use when invoking shell scripts.
10171SHELL=$lt_SHELL
10172
10173# Whether or not to build shared libraries.
10174build_libtool_libs=$enable_shared
10175
10176# Whether or not to build static libraries.
10177build_old_libs=$enable_static
10178
10179# Whether or not to add -lc for building shared libraries.
10180build_libtool_need_lc=$archive_cmds_need_lc
10181
10182# Whether or not to disallow shared libs when runtime libs are static
10183allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10184
10185# Whether or not to optimize for fast installation.
10186fast_install=$enable_fast_install
10187
10188# The host system.
10189host_alias=$host_alias
10190host=$host
10191host_os=$host_os
10192
10193# The build system.
10194build_alias=$build_alias
10195build=$build
10196build_os=$build_os
10197
10198# An echo program that does not interpret backslashes.
10199echo=$lt_echo
10200
10201# The archiver.
10202AR=$lt_AR
10203AR_FLAGS=$lt_AR_FLAGS
10204
10205# A C compiler.
10206LTCC=$lt_LTCC
10207
10208# LTCC compiler flags.
10209LTCFLAGS=$lt_LTCFLAGS
10210
10211# A language-specific compiler.
10212CC=$lt_compiler
10213
10214# Is the compiler the GNU C compiler?
10215with_gcc=$GCC
10216
10217# An ERE matcher.
10218EGREP=$lt_EGREP
10219
10220# The linker used to build libraries.
10221LD=$lt_LD
10222
10223# Whether we need hard or soft links.
10224LN_S=$lt_LN_S
10225
10226# A BSD-compatible nm program.
10227NM=$lt_NM
10228
10229# A symbol stripping program
10230STRIP=$lt_STRIP
10231
10232# Used to examine libraries when file_magic_cmd begins "file"
10233MAGIC_CMD=$MAGIC_CMD
10234
10235# Used on cygwin: DLL creation program.
10236DLLTOOL="$DLLTOOL"
10237
10238# Used on cygwin: object dumper.
10239OBJDUMP="$OBJDUMP"
10240
10241# Used on cygwin: assembler.
10242AS="$AS"
10243
10244# The name of the directory that contains temporary libtool files.
10245objdir=$objdir
10246
10247# How to create reloadable object files.
10248reload_flag=$lt_reload_flag
10249reload_cmds=$lt_reload_cmds
10250
10251# How to pass a linker flag through the compiler.
10252wl=$lt_lt_prog_compiler_wl
10253
10254# Object file suffix (normally "o").
10255objext="$ac_objext"
10256
10257# Old archive suffix (normally "a").
10258libext="$libext"
10259
10260# Shared library suffix (normally ".so").
10261shrext_cmds='$shrext_cmds'
10262
10263# Executable file suffix (normally "").
10264exeext="$exeext"
10265
10266# Additional compiler flags for building library objects.
10267pic_flag=$lt_lt_prog_compiler_pic
10268pic_mode=$pic_mode
10269
10270# What is the maximum length of a command?
10271max_cmd_len=$lt_cv_sys_max_cmd_len
10272
10273# Does compiler simultaneously support -c and -o options?
10274compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10275
10276# Must we lock files when doing compilation?
10277need_locks=$lt_need_locks
10278
10279# Do we need the lib prefix for modules?
10280need_lib_prefix=$need_lib_prefix
10281
10282# Do we need a version for libraries?
10283need_version=$need_version
10284
10285# Whether dlopen is supported.
10286dlopen_support=$enable_dlopen
10287
10288# Whether dlopen of programs is supported.
10289dlopen_self=$enable_dlopen_self
10290
10291# Whether dlopen of statically linked programs is supported.
10292dlopen_self_static=$enable_dlopen_self_static
10293
10294# Compiler flag to prevent dynamic linking.
10295link_static_flag=$lt_lt_prog_compiler_static
10296
10297# Compiler flag to turn off builtin functions.
10298no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10299
10300# Compiler flag to allow reflexive dlopens.
10301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10302
10303# Compiler flag to generate shared objects directly from archives.
10304whole_archive_flag_spec=$lt_whole_archive_flag_spec
10305
10306# Compiler flag to generate thread-safe objects.
10307thread_safe_flag_spec=$lt_thread_safe_flag_spec
10308
10309# Library versioning type.
10310version_type=$version_type
10311
10312# Format of library name prefix.
10313libname_spec=$lt_libname_spec
10314
10315# List of archive names. First name is the real one, the rest are links.
10316# The last name is the one that the linker finds with -lNAME.
10317library_names_spec=$lt_library_names_spec
10318
10319# The coded name of the library, if different from the real name.
10320soname_spec=$lt_soname_spec
10321
10322# Commands used to build and install an old-style archive.
10323RANLIB=$lt_RANLIB
10324old_archive_cmds=$lt_old_archive_cmds
10325old_postinstall_cmds=$lt_old_postinstall_cmds
10326old_postuninstall_cmds=$lt_old_postuninstall_cmds
10327
10328# Create an old-style archive from a shared archive.
10329old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10330
10331# Create a temporary old-style archive to link instead of a shared archive.
10332old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10333
10334# Commands used to build and install a shared archive.
10335archive_cmds=$lt_archive_cmds
10336archive_expsym_cmds=$lt_archive_expsym_cmds
10337postinstall_cmds=$lt_postinstall_cmds
10338postuninstall_cmds=$lt_postuninstall_cmds
10339
10340# Commands used to build a loadable module (assumed same as above if empty)
10341module_cmds=$lt_module_cmds
10342module_expsym_cmds=$lt_module_expsym_cmds
10343
10344# Commands to strip libraries.
10345old_striplib=$lt_old_striplib
10346striplib=$lt_striplib
10347
10348# Dependencies to place before the objects being linked to create a
10349# shared library.
10350predep_objects=$lt_predep_objects
10351
10352# Dependencies to place after the objects being linked to create a
10353# shared library.
10354postdep_objects=$lt_postdep_objects
10355
10356# Dependencies to place before the objects being linked to create a
10357# shared library.
10358predeps=$lt_predeps
10359
10360# Dependencies to place after the objects being linked to create a
10361# shared library.
10362postdeps=$lt_postdeps
10363
10364# The directories searched by this compiler when creating a shared
10365# library
10366compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10367
10368# The library search path used internally by the compiler when linking
10369# a shared library.
10370compiler_lib_search_path=$lt_compiler_lib_search_path
10371
10372# Method to check whether dependent libraries are shared objects.
10373deplibs_check_method=$lt_deplibs_check_method
10374
10375# Command to use when deplibs_check_method == file_magic.
10376file_magic_cmd=$lt_file_magic_cmd
10377
10378# Flag that allows shared libraries with undefined symbols to be built.
10379allow_undefined_flag=$lt_allow_undefined_flag
10380
10381# Flag that forces no undefined symbols.
10382no_undefined_flag=$lt_no_undefined_flag
10383
10384# Commands used to finish a libtool library installation in a directory.
10385finish_cmds=$lt_finish_cmds
10386
10387# Same as above, but a single script fragment to be evaled but not shown.
10388finish_eval=$lt_finish_eval
10389
10390# Take the output of nm and produce a listing of raw symbols and C names.
10391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10392
10393# Transform the output of nm in a proper C declaration
10394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10395
10396# Transform the output of nm in a C name address pair
10397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10398
10399# This is the shared library runtime path variable.
10400runpath_var=$runpath_var
10401
10402# This is the shared library path variable.
10403shlibpath_var=$shlibpath_var
10404
10405# Is shlibpath searched before the hard-coded library search path?
10406shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10407
10408# How to hardcode a shared library path into an executable.
10409hardcode_action=$hardcode_action
10410
10411# Whether we should hardcode library paths into libraries.
10412hardcode_into_libs=$hardcode_into_libs
10413
10414# Flag to hardcode \$libdir into a binary during linking.
10415# This must work even if \$libdir does not exist.
10416hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10417
10418# If ld is used when linking, flag to hardcode \$libdir into
10419# a binary during linking. This must work even if \$libdir does
10420# not exist.
10421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10422
10423# Whether we need a single -rpath flag with a separated argument.
10424hardcode_libdir_separator=$lt_hardcode_libdir_separator
10425
10426# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10427# resulting binary.
10428hardcode_direct=$hardcode_direct
10429
10430# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10431# resulting binary.
10432hardcode_minus_L=$hardcode_minus_L
10433
10434# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10435# the resulting binary.
10436hardcode_shlibpath_var=$hardcode_shlibpath_var
10437
10438# Set to yes if building a shared library automatically hardcodes DIR into the library
10439# and all subsequent libraries and executables linked against it.
10440hardcode_automatic=$hardcode_automatic
10441
10442# Variables whose values should be saved in libtool wrapper scripts and
10443# restored at relink time.
10444variables_saved_for_relink="$variables_saved_for_relink"
10445
10446# Whether libtool must link a program against all its dependency libraries.
10447link_all_deplibs=$link_all_deplibs
10448
10449# Compile-time system search path for libraries
10450sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10451
10452# Run-time system search path for libraries
10453sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10454
10455# Fix the shell variable \$srcfile for the compiler.
10456fix_srcfile_path=$lt_fix_srcfile_path
10457
10458# Set to yes if exported symbols are required.
10459always_export_symbols=$always_export_symbols
10460
10461# The commands to list exported symbols.
10462export_symbols_cmds=$lt_export_symbols_cmds
10463
10464# The commands to extract the exported symbol list from a shared archive.
10465extract_expsyms_cmds=$lt_extract_expsyms_cmds
10466
10467# Symbols that should not be listed in the preloaded symbols.
10468exclude_expsyms=$lt_exclude_expsyms
10469
10470# Symbols that must always be exported.
10471include_expsyms=$lt_include_expsyms
10472
10473# ### END LIBTOOL CONFIG
10474
10475__EOF__
10476
10477
10478 case $host_os in
10479 aix3*)
10480 cat <<\EOF >> "$cfgfile"
10481
10482# AIX sometimes has problems with the GCC collect2 program. For some
10483# reason, if we set the COLLECT_NAMES environment variable, the problems
10484# vanish in a puff of smoke.
10485if test "X${COLLECT_NAMES+set}" != Xset; then
10486 COLLECT_NAMES=
10487 export COLLECT_NAMES
10488fi
10489EOF
10490 ;;
10491 esac
10492
10493 # We use sed instead of cat because bash on DJGPP gets confused if
10494 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10495 # text mode, it properly converts lines to CR/LF. This bash problem
10496 # is reportedly fixed, but why not run on old versions too?
10497 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10498
10499 mv -f "$cfgfile" "$ofile" || \
10500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10501 chmod +x "$ofile"
10502
10503else
10504 # If there is no Makefile yet, we rely on a make rule to execute
10505 # `config.status --recheck' to rerun these tests and create the
10506 # libtool script then.
10507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10508 if test -f "$ltmain_in"; then
10509 test -f Makefile && make "$ltmain"
10510 fi
10511fi
10512
10513
10514ac_ext=c
10515ac_cpp='$CPP $CPPFLAGS'
10516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518ac_compiler_gnu=$ac_cv_c_compiler_gnu
10519
10520CC="$lt_save_CC"
10521
10522
10523# Check whether --with-tags was given.
10524if test "${with_tags+set}" = set; then
10525 withval=$with_tags; tagnames="$withval"
10526fi
10527
10528
10529if test -f "$ltmain" && test -n "$tagnames"; then
10530 if test ! -f "${ofile}"; then
10531 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10532$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10533 fi
10534
10535 if test -z "$LTCC"; then
10536 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10537 if test -z "$LTCC"; then
10538 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10539$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10540 else
10541 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10542$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10543 fi
10544 fi
10545 if test -z "$LTCFLAGS"; then
10546 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10547 fi
10548
10549 # Extract list of available tagged configurations in $ofile.
10550 # Note that this assumes the entire list is on one line.
10551 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10552
10553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10554 for tagname in $tagnames; do
10555 IFS="$lt_save_ifs"
10556 # Check whether tagname contains only valid characters
10557 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10558 "") ;;
10559 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10560$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10561 { (exit 1); exit 1; }; }
10562 ;;
10563 esac
10564
10565 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10566 then
10567 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10568$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10569 { (exit 1); exit 1; }; }
10570 fi
10571
10572 # Update the list of available tags.
10573 if test -n "$tagname"; then
10574 echo appending configuration tag \"$tagname\" to $ofile
10575
10576 case $tagname in
10577 CXX)
10578 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10579 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10580 (test "X$CXX" != "Xg++"))) ; then
10581 ac_ext=cpp
10582ac_cpp='$CXXCPP $CPPFLAGS'
10583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10586
10587
10588
10589
10590archive_cmds_need_lc_CXX=no
10591allow_undefined_flag_CXX=
10592always_export_symbols_CXX=no
10593archive_expsym_cmds_CXX=
10594export_dynamic_flag_spec_CXX=
10595hardcode_direct_CXX=no
10596hardcode_libdir_flag_spec_CXX=
10597hardcode_libdir_flag_spec_ld_CXX=
10598hardcode_libdir_separator_CXX=
10599hardcode_minus_L_CXX=no
10600hardcode_shlibpath_var_CXX=unsupported
10601hardcode_automatic_CXX=no
10602module_cmds_CXX=
10603module_expsym_cmds_CXX=
10604link_all_deplibs_CXX=unknown
10605old_archive_cmds_CXX=$old_archive_cmds
10606no_undefined_flag_CXX=
10607whole_archive_flag_spec_CXX=
10608enable_shared_with_static_runtimes_CXX=no
10609
10610# Dependencies to place before and after the object being linked:
10611predep_objects_CXX=
10612postdep_objects_CXX=
10613predeps_CXX=
10614postdeps_CXX=
10615compiler_lib_search_path_CXX=
10616compiler_lib_search_dirs_CXX=
10617
10618# Source file extension for C++ test sources.
10619ac_ext=cpp
10620
10621# Object file extension for compiled C++ test sources.
10622objext=o
10623objext_CXX=$objext
10624
10625# Code to be used in simple compile tests
10626lt_simple_compile_test_code="int some_variable = 0;"
10627
10628# Code to be used in simple link tests
10629lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10630
10631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10632
10633# If no C compiler was specified, use CC.
10634LTCC=${LTCC-"$CC"}
10635
10636# If no C compiler flags were specified, use CFLAGS.
10637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10638
10639# Allow CC to be a program name with arguments.
10640compiler=$CC
10641
10642
10643# save warnings/boilerplate of simple test code
10644ac_outfile=conftest.$ac_objext
10645echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10647_lt_compiler_boilerplate=`cat conftest.err`
10648$rm conftest*
10649
10650ac_outfile=conftest.$ac_objext
10651echo "$lt_simple_link_test_code" >conftest.$ac_ext
10652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10653_lt_linker_boilerplate=`cat conftest.err`
10654$rm -r conftest*
10655
10656
10657# Allow CC to be a program name with arguments.
10658lt_save_CC=$CC
10659lt_save_LD=$LD
10660lt_save_GCC=$GCC
10661GCC=$GXX
10662lt_save_with_gnu_ld=$with_gnu_ld
10663lt_save_path_LD=$lt_cv_path_LD
10664if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10665 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10666else
10667 $as_unset lt_cv_prog_gnu_ld
10668fi
10669if test -n "${lt_cv_path_LDCXX+set}"; then
10670 lt_cv_path_LD=$lt_cv_path_LDCXX
10671else
10672 $as_unset lt_cv_path_LD
10673fi
10674test -z "${LDCXX+set}" || LD=$LDCXX
10675CC=${CXX-"c++"}
10676compiler=$CC
10677compiler_CXX=$CC
10678for cc_temp in $compiler""; do
10679 case $cc_temp in
10680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10682 \-*) ;;
10683 *) break;;
10684 esac
10685done
10686cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10687
10688
10689# We don't want -fno-exception wen compiling C++ code, so set the
10690# no_builtin_flag separately
10691if test "$GXX" = yes; then
10692 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10693else
10694 lt_prog_compiler_no_builtin_flag_CXX=
10695fi
10696
10697if test "$GXX" = yes; then
10698 # Set up default GNU C++ configuration
10699
10700
10701# Check whether --with-gnu-ld was given.
10702if test "${with_gnu_ld+set}" = set; then
10703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10704else
10705 with_gnu_ld=no
10706fi
10707
10708ac_prog=ld
10709if test "$GCC" = yes; then
10710 # Check if gcc -print-prog-name=ld gives a path.
10711 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10712$as_echo_n "checking for ld used by $CC... " >&6; }
10713 case $host in
10714 *-*-mingw*)
10715 # gcc leaves a trailing carriage return which upsets mingw
10716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10717 *)
10718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10719 esac
10720 case $ac_prog in
10721 # Accept absolute paths.
10722 [\\/]* | ?:[\\/]*)
10723 re_direlt='/[^/][^/]*/\.\./'
10724 # Canonicalize the pathname of ld
10725 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10726 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10727 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10728 done
10729 test -z "$LD" && LD="$ac_prog"
10730 ;;
10731 "")
10732 # If it fails, then pretend we aren't using GCC.
10733 ac_prog=ld
10734 ;;
10735 *)
10736 # If it is relative, then search for the first ld in PATH.
10737 with_gnu_ld=unknown
10738 ;;
10739 esac
10740elif test "$with_gnu_ld" = yes; then
10741 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10742$as_echo_n "checking for GNU ld... " >&6; }
10743else
10744 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10745$as_echo_n "checking for non-GNU ld... " >&6; }
10746fi
10747if test "${lt_cv_path_LD+set}" = set; then
10748 $as_echo_n "(cached) " >&6
10749else
10750 if test -z "$LD"; then
10751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10752 for ac_dir in $PATH; do
10753 IFS="$lt_save_ifs"
10754 test -z "$ac_dir" && ac_dir=.
10755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10756 lt_cv_path_LD="$ac_dir/$ac_prog"
10757 # Check to see if the program is GNU ld. I'd rather use --version,
10758 # but apparently some variants of GNU ld only accept -v.
10759 # Break only if it was the GNU/non-GNU ld that we prefer.
10760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10761 *GNU* | *'with BFD'*)
10762 test "$with_gnu_ld" != no && break
10763 ;;
10764 *)
10765 test "$with_gnu_ld" != yes && break
10766 ;;
10767 esac
10768 fi
10769 done
10770 IFS="$lt_save_ifs"
10771else
10772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10773fi
10774fi
10775
10776LD="$lt_cv_path_LD"
10777if test -n "$LD"; then
10778 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10779$as_echo "$LD" >&6; }
10780else
10781 { $as_echo "$as_me:$LINENO: result: no" >&5
10782$as_echo "no" >&6; }
10783fi
10784test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10785$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10786 { (exit 1); exit 1; }; }
10787{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10788$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10789if test "${lt_cv_prog_gnu_ld+set}" = set; then
10790 $as_echo_n "(cached) " >&6
10791else
10792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10793case `$LD -v 2>&1 </dev/null` in
10794*GNU* | *'with BFD'*)
10795 lt_cv_prog_gnu_ld=yes
10796 ;;
10797*)
10798 lt_cv_prog_gnu_ld=no
10799 ;;
10800esac
10801fi
10802{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10803$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10804with_gnu_ld=$lt_cv_prog_gnu_ld
10805
10806
10807
10808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10809 # archiving commands below assume that GNU ld is being used.
10810 if test "$with_gnu_ld" = yes; then
10811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10812 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'
10813
10814 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10816
10817 # If archive_cmds runs LD, not CC, wlarc should be empty
10818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10819 # investigate it a little bit more. (MM)
10820 wlarc='${wl}'
10821
10822 # ancient GNU ld didn't support --whole-archive et. al.
10823 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10824 grep 'no-whole-archive' > /dev/null; then
10825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10826 else
10827 whole_archive_flag_spec_CXX=
10828 fi
10829 else
10830 with_gnu_ld=no
10831 wlarc=
10832
10833 # A generic and very simple default shared library creation
10834 # command for GNU C++ for the case where it uses the native
10835 # linker, instead of GNU ld. If possible, this setting should
10836 # overridden to take advantage of the native linker features on
10837 # the platform it is being used on.
10838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10839 fi
10840
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10845
10846else
10847 GXX=no
10848 with_gnu_ld=no
10849 wlarc=
10850fi
10851
10852# PORTME: fill in a description of your system's C++ link characteristics
10853{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10855ld_shlibs_CXX=yes
10856case $host_os in
10857 aix3*)
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 aix[4-9]*)
10862 if test "$host_cpu" = ia64; then
10863 # On IA64, the linker does run time linking by default, so we don't
10864 # have to do anything special.
10865 aix_use_runtimelinking=no
10866 exp_sym_flag='-Bexport'
10867 no_entry_flag=""
10868 else
10869 aix_use_runtimelinking=no
10870
10871 # Test if we are trying to use run time linking or normal
10872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10873 # need to do runtime linking.
10874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10875 for ld_flag in $LDFLAGS; do
10876 case $ld_flag in
10877 *-brtl*)
10878 aix_use_runtimelinking=yes
10879 break
10880 ;;
10881 esac
10882 done
10883 ;;
10884 esac
10885
10886 exp_sym_flag='-bexport'
10887 no_entry_flag='-bnoentry'
10888 fi
10889
10890 # When large executables or shared objects are built, AIX ld can
10891 # have problems creating the table of contents. If linking a library
10892 # or program results in "error TOC overflow" add -mminimal-toc to
10893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10895
10896 archive_cmds_CXX=''
10897 hardcode_direct_CXX=yes
10898 hardcode_libdir_separator_CXX=':'
10899 link_all_deplibs_CXX=yes
10900
10901 if test "$GXX" = yes; then
10902 case $host_os in aix4.[012]|aix4.[012].*)
10903 # We only want to do this on AIX 4.2 and lower, the check
10904 # below for broken collect2 doesn't work under 4.3+
10905 collect2name=`${CC} -print-prog-name=collect2`
10906 if test -f "$collect2name" && \
10907 strings "$collect2name" | grep resolve_lib_name >/dev/null
10908 then
10909 # We have reworked collect2
10910 :
10911 else
10912 # We have old collect2
10913 hardcode_direct_CXX=unsupported
10914 # It fails to find uninstalled libraries when the uninstalled
10915 # path is not listed in the libpath. Setting hardcode_minus_L
10916 # to unsupported forces relinking
10917 hardcode_minus_L_CXX=yes
10918 hardcode_libdir_flag_spec_CXX='-L$libdir'
10919 hardcode_libdir_separator_CXX=
10920 fi
10921 ;;
10922 esac
10923 shared_flag='-shared'
10924 if test "$aix_use_runtimelinking" = yes; then
10925 shared_flag="$shared_flag "'${wl}-G'
10926 fi
10927 else
10928 # not using gcc
10929 if test "$host_cpu" = ia64; then
10930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10931 # chokes on -Wl,-G. The following line is correct:
10932 shared_flag='-G'
10933 else
10934 if test "$aix_use_runtimelinking" = yes; then
10935 shared_flag='${wl}-G'
10936 else
10937 shared_flag='${wl}-bM:SRE'
10938 fi
10939 fi
10940 fi
10941
10942 # It seems that -bexpall does not export symbols beginning with
10943 # underscore (_), so it is better to generate a list of symbols to export.
10944 always_export_symbols_CXX=yes
10945 if test "$aix_use_runtimelinking" = yes; then
10946 # Warning - without using the other runtime loading flags (-brtl),
10947 # -berok will link without error, but may produce a broken library.
10948 allow_undefined_flag_CXX='-berok'
10949 # Determine the default libpath from the value encoded in an empty executable.
10950 cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956
10957int
10958main ()
10959{
10960
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext conftest$ac_exeext
10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972$as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_cxx_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986
10987lt_aix_libpath_sed='
10988 /Import File Strings/,/^$/ {
10989 /^0/ {
10990 s/^0 *\(.*\)$/\1/
10991 p
10992 }
10993 }'
10994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10995# Check for a 64-bit object if we didn't find anything.
10996if test -z "$aix_libpath"; then
10997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998fi
10999else
11000 $as_echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004fi
11005
11006rm -rf conftest.dSYM
11007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11012
11013 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"
11014 else
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11017 allow_undefined_flag_CXX="-z nodefs"
11018 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"
11019 else
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h. */
11027
11028int
11029main ()
11030{
11031
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043$as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057
11058lt_aix_libpath_sed='
11059 /Import File Strings/,/^$/ {
11060 /^0/ {
11061 s/^0 *\(.*\)$/\1/
11062 p
11063 }
11064 }'
11065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11066# Check for a 64-bit object if we didn't find anything.
11067if test -z "$aix_libpath"; then
11068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11069fi
11070else
11071 $as_echo "$as_me: failed program was:" >&5
11072sed 's/^/| /' conftest.$ac_ext >&5
11073
11074
11075fi
11076
11077rm -rf conftest.dSYM
11078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 conftest$ac_exeext conftest.$ac_ext
11080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11081
11082 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11083 # Warning - without using the other run time loading flags,
11084 # -berok will link without error, but may produce a broken library.
11085 no_undefined_flag_CXX=' ${wl}-bernotok'
11086 allow_undefined_flag_CXX=' ${wl}-berok'
11087 # Exported symbols can be pulled into shared objects from archives
11088 whole_archive_flag_spec_CXX='$convenience'
11089 archive_cmds_need_lc_CXX=yes
11090 # This is similar to how AIX traditionally builds its shared libraries.
11091 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'
11092 fi
11093 fi
11094 ;;
11095
11096 beos*)
11097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11098 allow_undefined_flag_CXX=unsupported
11099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11100 # support --undefined. This deserves some investigation. FIXME
11101 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102 else
11103 ld_shlibs_CXX=no
11104 fi
11105 ;;
11106
11107 chorus*)
11108 case $cc_basename in
11109 *)
11110 # FIXME: insert proper C++ library support
11111 ld_shlibs_CXX=no
11112 ;;
11113 esac
11114 ;;
11115
11116 cygwin* | mingw* | pw32*)
11117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11118 # as there is no search path for DLLs.
11119 hardcode_libdir_flag_spec_CXX='-L$libdir'
11120 allow_undefined_flag_CXX=unsupported
11121 always_export_symbols_CXX=no
11122 enable_shared_with_static_runtimes_CXX=yes
11123
11124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11125 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'
11126 # If the export-symbols file already is a .def file (1st line
11127 # is EXPORTS), use it as is; otherwise, prepend...
11128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11129 cp $export_symbols $output_objdir/$soname.def;
11130 else
11131 echo EXPORTS > $output_objdir/$soname.def;
11132 cat $export_symbols >> $output_objdir/$soname.def;
11133 fi~
11134 $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'
11135 else
11136 ld_shlibs_CXX=no
11137 fi
11138 ;;
11139 darwin* | rhapsody*)
11140 archive_cmds_need_lc_CXX=no
11141 hardcode_direct_CXX=no
11142 hardcode_automatic_CXX=yes
11143 hardcode_shlibpath_var_CXX=unsupported
11144 whole_archive_flag_spec_CXX=''
11145 link_all_deplibs_CXX=yes
11146 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11147 if test "$GXX" = yes ; then
11148 output_verbose_link_cmd='echo'
11149 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}"
11150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11151 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}"
11152 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}"
11153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11154 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}"
11155 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}"
11156 fi
11157 else
11158 case $cc_basename in
11159 xlc*)
11160 output_verbose_link_cmd='echo'
11161 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'
11162 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11164 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}'
11165 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}'
11166 ;;
11167 *)
11168 ld_shlibs_CXX=no
11169 ;;
11170 esac
11171 fi
11172 ;;
11173
11174 dgux*)
11175 case $cc_basename in
11176 ec++*)
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 ghcx*)
11181 # Green Hills C++ Compiler
11182 # FIXME: insert proper C++ library support
11183 ld_shlibs_CXX=no
11184 ;;
11185 *)
11186 # FIXME: insert proper C++ library support
11187 ld_shlibs_CXX=no
11188 ;;
11189 esac
11190 ;;
11191 freebsd[12]*)
11192 # C++ shared libraries reported to be fairly broken before switch to ELF
11193 ld_shlibs_CXX=no
11194 ;;
11195 freebsd-elf*)
11196 archive_cmds_need_lc_CXX=no
11197 ;;
11198 freebsd* | dragonfly*)
11199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11200 # conventions
11201 ld_shlibs_CXX=yes
11202 ;;
11203 gnu*)
11204 ;;
11205 hpux9*)
11206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11207 hardcode_libdir_separator_CXX=:
11208 export_dynamic_flag_spec_CXX='${wl}-E'
11209 hardcode_direct_CXX=yes
11210 hardcode_minus_L_CXX=yes # Not in the search PATH,
11211 # but as the default
11212 # location of the library.
11213
11214 case $cc_basename in
11215 CC*)
11216 # FIXME: insert proper C++ library support
11217 ld_shlibs_CXX=no
11218 ;;
11219 aCC*)
11220 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'
11221 # Commands to make compiler produce verbose output that lists
11222 # what "hidden" libraries, object files and flags are used when
11223 # linking a shared library.
11224 #
11225 # There doesn't appear to be a way to prevent this compiler from
11226 # explicitly linking system object files so we need to strip them
11227 # from the output so that they don't get included in the library
11228 # dependencies.
11229 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'
11230 ;;
11231 *)
11232 if test "$GXX" = yes; then
11233 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'
11234 else
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11237 fi
11238 ;;
11239 esac
11240 ;;
11241 hpux10*|hpux11*)
11242 if test $with_gnu_ld = no; then
11243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11244 hardcode_libdir_separator_CXX=:
11245
11246 case $host_cpu in
11247 hppa*64*|ia64*) ;;
11248 *)
11249 export_dynamic_flag_spec_CXX='${wl}-E'
11250 ;;
11251 esac
11252 fi
11253 case $host_cpu in
11254 hppa*64*|ia64*)
11255 hardcode_direct_CXX=no
11256 hardcode_shlibpath_var_CXX=no
11257 ;;
11258 *)
11259 hardcode_direct_CXX=yes
11260 hardcode_minus_L_CXX=yes # Not in the search PATH,
11261 # but as the default
11262 # location of the library.
11263 ;;
11264 esac
11265
11266 case $cc_basename in
11267 CC*)
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11270 ;;
11271 aCC*)
11272 case $host_cpu in
11273 hppa*64*)
11274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11275 ;;
11276 ia64*)
11277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11278 ;;
11279 *)
11280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11281 ;;
11282 esac
11283 # Commands to make compiler produce verbose output that lists
11284 # what "hidden" libraries, object files and flags are used when
11285 # linking a shared library.
11286 #
11287 # There doesn't appear to be a way to prevent this compiler from
11288 # explicitly linking system object files so we need to strip them
11289 # from the output so that they don't get included in the library
11290 # dependencies.
11291 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'
11292 ;;
11293 *)
11294 if test "$GXX" = yes; then
11295 if test $with_gnu_ld = no; then
11296 case $host_cpu in
11297 hppa*64*)
11298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11299 ;;
11300 ia64*)
11301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11302 ;;
11303 *)
11304 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'
11305 ;;
11306 esac
11307 fi
11308 else
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 fi
11312 ;;
11313 esac
11314 ;;
11315 interix[3-9]*)
11316 hardcode_direct_CXX=no
11317 hardcode_shlibpath_var_CXX=no
11318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11319 export_dynamic_flag_spec_CXX='${wl}-E'
11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11321 # Instead, shared libraries are loaded at an image base (0x10000000 by
11322 # default) and relocated if they conflict, which is a slow very memory
11323 # consuming and fragmenting process. To avoid this, we pick a random,
11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11326 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'
11327 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'
11328 ;;
11329 irix5* | irix6*)
11330 case $cc_basename in
11331 CC*)
11332 # SGI C++
11333 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'
11334
11335 # Archives containing C++ object files must be created using
11336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11337 # necessary to make sure instantiated templates are included
11338 # in the archive.
11339 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11340 ;;
11341 *)
11342 if test "$GXX" = yes; then
11343 if test "$with_gnu_ld" = no; then
11344 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'
11345 else
11346 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'
11347 fi
11348 fi
11349 link_all_deplibs_CXX=yes
11350 ;;
11351 esac
11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11353 hardcode_libdir_separator_CXX=:
11354 ;;
11355 linux* | k*bsd*-gnu)
11356 case $cc_basename in
11357 KCC*)
11358 # Kuck and Associates, Inc. (KAI) C++ Compiler
11359
11360 # KCC will only create a shared library if the output file
11361 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11362 # to its proper name (with version) after linking.
11363 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'
11364 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'
11365 # Commands to make compiler produce verbose output that lists
11366 # what "hidden" libraries, object files and flags are used when
11367 # linking a shared library.
11368 #
11369 # There doesn't appear to be a way to prevent this compiler from
11370 # explicitly linking system object files so we need to strip them
11371 # from the output so that they don't get included in the library
11372 # dependencies.
11373 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'
11374
11375 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11377
11378 # Archives containing C++ object files must be created using
11379 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11380 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11381 ;;
11382 icpc*)
11383 # Intel C++
11384 with_gnu_ld=yes
11385 # version 8.0 and above of icpc choke on multiply defined symbols
11386 # if we add $predep_objects and $postdep_objects, however 7.1 and
11387 # earlier do not add the objects themselves.
11388 case `$CC -V 2>&1` in
11389 *"Version 7."*)
11390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11391 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'
11392 ;;
11393 *) # Version 8.0 or newer
11394 tmp_idyn=
11395 case $host_cpu in
11396 ia64*) tmp_idyn=' -i_dynamic';;
11397 esac
11398 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11399 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'
11400 ;;
11401 esac
11402 archive_cmds_need_lc_CXX=no
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11405 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11406 ;;
11407 pgCC* | pgcpp*)
11408 # Portland Group C++ compiler
11409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11410 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'
11411
11412 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414 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'
11415 ;;
11416 cxx*)
11417 # Compaq C++
11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11420
11421 runpath_var=LD_RUN_PATH
11422 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11423 hardcode_libdir_separator_CXX=:
11424
11425 # Commands to make compiler produce verbose output that lists
11426 # what "hidden" libraries, object files and flags are used when
11427 # linking a shared library.
11428 #
11429 # There doesn't appear to be a way to prevent this compiler from
11430 # explicitly linking system object files so we need to strip them
11431 # from the output so that they don't get included in the library
11432 # dependencies.
11433 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'
11434 ;;
11435 *)
11436 case `$CC -V 2>&1 | sed 5q` in
11437 *Sun\ C*)
11438 # Sun C++ 5.9
11439 no_undefined_flag_CXX=' -zdefs'
11440 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 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'
11442 hardcode_libdir_flag_spec_CXX='-R$libdir'
11443 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'
11444
11445 # Not sure whether something based on
11446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11447 # would be better.
11448 output_verbose_link_cmd='echo'
11449
11450 # Archives containing C++ object files must be created using
11451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11452 # necessary to make sure instantiated templates are included
11453 # in the archive.
11454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11455 ;;
11456 esac
11457 ;;
11458 esac
11459 ;;
11460 lynxos*)
11461 # FIXME: insert proper C++ library support
11462 ld_shlibs_CXX=no
11463 ;;
11464 m88k*)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 ;;
11468 mvs*)
11469 case $cc_basename in
11470 cxx*)
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 *)
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 esac
11479 ;;
11480 netbsd*)
11481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11483 wlarc=
11484 hardcode_libdir_flag_spec_CXX='-R$libdir'
11485 hardcode_direct_CXX=yes
11486 hardcode_shlibpath_var_CXX=no
11487 fi
11488 # Workaround some broken pre-1.5 toolchains
11489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11490 ;;
11491 openbsd2*)
11492 # C++ shared libraries are fairly broken
11493 ld_shlibs_CXX=no
11494 ;;
11495 openbsd*)
11496 if test -f /usr/libexec/ld.so; then
11497 hardcode_direct_CXX=yes
11498 hardcode_shlibpath_var_CXX=no
11499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11503 export_dynamic_flag_spec_CXX='${wl}-E'
11504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11505 fi
11506 output_verbose_link_cmd='echo'
11507 else
11508 ld_shlibs_CXX=no
11509 fi
11510 ;;
11511 osf3*)
11512 case $cc_basename in
11513 KCC*)
11514 # Kuck and Associates, Inc. (KAI) C++ Compiler
11515
11516 # KCC will only create a shared library if the output file
11517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11518 # to its proper name (with version) after linking.
11519 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'
11520
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 hardcode_libdir_separator_CXX=:
11523
11524 # Archives containing C++ object files must be created using
11525 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11526 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11527
11528 ;;
11529 RCC*)
11530 # Rational C++ 2.4.1
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11533 ;;
11534 cxx*)
11535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11536 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'
11537
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11539 hardcode_libdir_separator_CXX=:
11540
11541 # Commands to make compiler produce verbose output that lists
11542 # what "hidden" libraries, object files and flags are used when
11543 # linking a shared library.
11544 #
11545 # There doesn't appear to be a way to prevent this compiler from
11546 # explicitly linking system object files so we need to strip them
11547 # from the output so that they don't get included in the library
11548 # dependencies.
11549 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'
11550 ;;
11551 *)
11552 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11553 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11554 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'
11555
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11557 hardcode_libdir_separator_CXX=:
11558
11559 # Commands to make compiler produce verbose output that lists
11560 # what "hidden" libraries, object files and flags are used when
11561 # linking a shared library.
11562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11563
11564 else
11565 # FIXME: insert proper C++ library support
11566 ld_shlibs_CXX=no
11567 fi
11568 ;;
11569 esac
11570 ;;
11571 osf4* | osf5*)
11572 case $cc_basename in
11573 KCC*)
11574 # Kuck and Associates, Inc. (KAI) C++ Compiler
11575
11576 # KCC will only create a shared library if the output file
11577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11578 # to its proper name (with version) after linking.
11579 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'
11580
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11582 hardcode_libdir_separator_CXX=:
11583
11584 # Archives containing C++ object files must be created using
11585 # the KAI C++ compiler.
11586 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11587 ;;
11588 RCC*)
11589 # Rational C++ 2.4.1
11590 # FIXME: insert proper C++ library support
11591 ld_shlibs_CXX=no
11592 ;;
11593 cxx*)
11594 allow_undefined_flag_CXX=' -expect_unresolved \*'
11595 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'
11596 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11597 echo "-hidden">> $lib.exp~
11598 $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~
11599 $rm $lib.exp'
11600
11601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11602 hardcode_libdir_separator_CXX=:
11603
11604 # Commands to make compiler produce verbose output that lists
11605 # what "hidden" libraries, object files and flags are used when
11606 # linking a shared library.
11607 #
11608 # There doesn't appear to be a way to prevent this compiler from
11609 # explicitly linking system object files so we need to strip them
11610 # from the output so that they don't get included in the library
11611 # dependencies.
11612 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'
11613 ;;
11614 *)
11615 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11617 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'
11618
11619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11620 hardcode_libdir_separator_CXX=:
11621
11622 # Commands to make compiler produce verbose output that lists
11623 # what "hidden" libraries, object files and flags are used when
11624 # linking a shared library.
11625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11626
11627 else
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 fi
11631 ;;
11632 esac
11633 ;;
11634 psos*)
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
11638 sunos4*)
11639 case $cc_basename in
11640 CC*)
11641 # Sun C++ 4.x
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 lcc*)
11646 # Lucid
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 ;;
11650 *)
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
11654 esac
11655 ;;
11656 solaris*)
11657 case $cc_basename in
11658 CC*)
11659 # Sun C++ 4.2, 5.x and Centerline C++
11660 archive_cmds_need_lc_CXX=yes
11661 no_undefined_flag_CXX=' -zdefs'
11662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11663 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11664 $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'
11665
11666 hardcode_libdir_flag_spec_CXX='-R$libdir'
11667 hardcode_shlibpath_var_CXX=no
11668 case $host_os in
11669 solaris2.[0-5] | solaris2.[0-5].*) ;;
11670 *)
11671 # The compiler driver will combine and reorder linker options,
11672 # but understands `-z linker_flag'.
11673 # Supported since Solaris 2.6 (maybe 2.5.1?)
11674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11675 ;;
11676 esac
11677 link_all_deplibs_CXX=yes
11678
11679 output_verbose_link_cmd='echo'
11680
11681 # Archives containing C++ object files must be created using
11682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11683 # necessary to make sure instantiated templates are included
11684 # in the archive.
11685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11686 ;;
11687 gcx*)
11688 # Green Hills C++ Compiler
11689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11690
11691 # The C++ compiler must be used to create the archive.
11692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11693 ;;
11694 *)
11695 # GNU C++ compiler with Solaris linker
11696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11698 if $CC --version | grep -v '^2\.7' > /dev/null; then
11699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11700 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11702
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11706 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11707 else
11708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11709 # platform.
11710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718 fi
11719
11720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11721 case $host_os in
11722 solaris2.[0-5] | solaris2.[0-5].*) ;;
11723 *)
11724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11725 ;;
11726 esac
11727 fi
11728 ;;
11729 esac
11730 ;;
11731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11732 no_undefined_flag_CXX='${wl}-z,text'
11733 archive_cmds_need_lc_CXX=no
11734 hardcode_shlibpath_var_CXX=no
11735 runpath_var='LD_RUN_PATH'
11736
11737 case $cc_basename in
11738 CC*)
11739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741 ;;
11742 *)
11743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 ;;
11746 esac
11747 ;;
11748 sysv5* | sco3.2v5* | sco5v6*)
11749 # Note: We can NOT use -z defs as we might desire, because we do not
11750 # link with -lc, and that would cause any symbols used from libc to
11751 # always be unresolved, which means just about no library would
11752 # ever link correctly. If we're not using GNU ld we use -z text
11753 # though, which does catch some bad symbols but isn't as heavy-handed
11754 # as -z defs.
11755 # For security reasons, it is highly recommended that you always
11756 # use absolute paths for naming shared libraries, and exclude the
11757 # DT_RUNPATH tag from executables and libraries. But doing so
11758 # requires that you compile everything twice, which is a pain.
11759 # So that behaviour is only enabled if SCOABSPATH is set to a
11760 # non-empty value in the environment. Most likely only useful for
11761 # creating official distributions of packages.
11762 # This is a hack until libtool officially supports absolute path
11763 # names for shared libraries.
11764 no_undefined_flag_CXX='${wl}-z,text'
11765 allow_undefined_flag_CXX='${wl}-z,nodefs'
11766 archive_cmds_need_lc_CXX=no
11767 hardcode_shlibpath_var_CXX=no
11768 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11769 hardcode_libdir_separator_CXX=':'
11770 link_all_deplibs_CXX=yes
11771 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11772 runpath_var='LD_RUN_PATH'
11773
11774 case $cc_basename in
11775 CC*)
11776 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 ;;
11779 *)
11780 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 ;;
11783 esac
11784 ;;
11785 tandem*)
11786 case $cc_basename in
11787 NCC*)
11788 # NonStop-UX NCC 3.20
11789 # FIXME: insert proper C++ library support
11790 ld_shlibs_CXX=no
11791 ;;
11792 *)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 esac
11797 ;;
11798 vxworks*)
11799 # FIXME: insert proper C++ library support
11800 ld_shlibs_CXX=no
11801 ;;
11802 *)
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806esac
11807{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11808$as_echo "$ld_shlibs_CXX" >&6; }
11809test "$ld_shlibs_CXX" = no && can_build_shared=no
11810
11811GCC_CXX="$GXX"
11812LD_CXX="$LD"
11813
11814cat > conftest.$ac_ext <<EOF
11815class Foo
11816{
11817public:
11818 Foo (void) { a = 0; }
11819private:
11820 int a;
11821};
11822EOF
11823
11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>&5
11826 ac_status=$?
11827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; then
11829 # Parse the compiler output and extract the necessary
11830 # objects, libraries and library flags.
11831
11832 # Sentinel used to keep track of whether or not we are before
11833 # the conftest object file.
11834 pre_test_object_deps_done=no
11835
11836 # The `*' in the case matches for architectures that use `case' in
11837 # $output_verbose_cmd can trigger glob expansion during the loop
11838 # eval without this substitution.
11839 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11840
11841 for p in `eval $output_verbose_link_cmd`; do
11842 case $p in
11843
11844 -L* | -R* | -l*)
11845 # Some compilers place space between "-{L,R}" and the path.
11846 # Remove the space.
11847 if test $p = "-L" \
11848 || test $p = "-R"; then
11849 prev=$p
11850 continue
11851 else
11852 prev=
11853 fi
11854
11855 if test "$pre_test_object_deps_done" = no; then
11856 case $p in
11857 -L* | -R*)
11858 # Internal compiler library paths should come after those
11859 # provided the user. The postdeps already come after the
11860 # user supplied libs so there is no need to process them.
11861 if test -z "$compiler_lib_search_path_CXX"; then
11862 compiler_lib_search_path_CXX="${prev}${p}"
11863 else
11864 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11865 fi
11866 ;;
11867 # The "-l" case would never come before the object being
11868 # linked, so don't bother handling this case.
11869 esac
11870 else
11871 if test -z "$postdeps_CXX"; then
11872 postdeps_CXX="${prev}${p}"
11873 else
11874 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11875 fi
11876 fi
11877 ;;
11878
11879 *.$objext)
11880 # This assumes that the test object file only shows up
11881 # once in the compiler output.
11882 if test "$p" = "conftest.$objext"; then
11883 pre_test_object_deps_done=yes
11884 continue
11885 fi
11886
11887 if test "$pre_test_object_deps_done" = no; then
11888 if test -z "$predep_objects_CXX"; then
11889 predep_objects_CXX="$p"
11890 else
11891 predep_objects_CXX="$predep_objects_CXX $p"
11892 fi
11893 else
11894 if test -z "$postdep_objects_CXX"; then
11895 postdep_objects_CXX="$p"
11896 else
11897 postdep_objects_CXX="$postdep_objects_CXX $p"
11898 fi
11899 fi
11900 ;;
11901
11902 *) ;; # Ignore the rest.
11903
11904 esac
11905 done
11906
11907 # Clean up.
11908 rm -f a.out a.exe
11909else
11910 echo "libtool.m4: error: problem compiling CXX test program"
11911fi
11912
11913$rm -f confest.$objext
11914
11915compiler_lib_search_dirs_CXX=
11916if test -n "$compiler_lib_search_path_CXX"; then
11917 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11918fi
11919
11920# PORTME: override above test on systems where it is broken
11921case $host_os in
11922interix[3-9]*)
11923 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11924 # hack all around it, let's just trust "g++" to DTRT.
11925 predep_objects_CXX=
11926 postdep_objects_CXX=
11927 postdeps_CXX=
11928 ;;
11929
11930linux*)
11931 case `$CC -V 2>&1 | sed 5q` in
11932 *Sun\ C*)
11933 # Sun C++ 5.9
11934 #
11935 # The more standards-conforming stlport4 library is
11936 # incompatible with the Cstd library. Avoid specifying
11937 # it if it's in CXXFLAGS. Ignore libCrun as
11938 # -library=stlport4 depends on it.
11939 case " $CXX $CXXFLAGS " in
11940 *" -library=stlport4 "*)
11941 solaris_use_stlport4=yes
11942 ;;
11943 esac
11944 if test "$solaris_use_stlport4" != yes; then
11945 postdeps_CXX='-library=Cstd -library=Crun'
11946 fi
11947 ;;
11948 esac
11949 ;;
11950
11951solaris*)
11952 case $cc_basename in
11953 CC*)
11954 # The more standards-conforming stlport4 library is
11955 # incompatible with the Cstd library. Avoid specifying
11956 # it if it's in CXXFLAGS. Ignore libCrun as
11957 # -library=stlport4 depends on it.
11958 case " $CXX $CXXFLAGS " in
11959 *" -library=stlport4 "*)
11960 solaris_use_stlport4=yes
11961 ;;
11962 esac
11963
11964 # Adding this requires a known-good setup of shared libraries for
11965 # Sun compiler versions before 5.6, else PIC objects from an old
11966 # archive will be linked into the output, leading to subtle bugs.
11967 if test "$solaris_use_stlport4" != yes; then
11968 postdeps_CXX='-library=Cstd -library=Crun'
11969 fi
11970 ;;
11971 esac
11972 ;;
11973esac
11974
11975case " $postdeps_CXX " in
11976*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11977esac
11978
11979lt_prog_compiler_wl_CXX=
11980lt_prog_compiler_pic_CXX=
11981lt_prog_compiler_static_CXX=
11982
11983{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11984$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11985
11986 # C++ specific cases for pic, static, wl, etc.
11987 if test "$GXX" = yes; then
11988 lt_prog_compiler_wl_CXX='-Wl,'
11989 lt_prog_compiler_static_CXX='-static'
11990
11991 case $host_os in
11992 aix*)
11993 # All AIX code is PIC.
11994 if test "$host_cpu" = ia64; then
11995 # AIX 5 now supports IA64 processor
11996 lt_prog_compiler_static_CXX='-Bstatic'
11997 fi
11998 ;;
11999 amigaos*)
12000 # FIXME: we need at least 68020 code to build shared libraries, but
12001 # adding the `-m68020' flag to GCC prevents building anything better,
12002 # like `-m68040'.
12003 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12004 ;;
12005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12006 # PIC is the default for these OSes.
12007 ;;
12008 mingw* | cygwin* | os2* | pw32*)
12009 # This hack is so that the source file can tell whether it is being
12010 # built for inclusion in a dll (and should export symbols for example).
12011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12012 # (--disable-auto-import) libraries
12013 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12014 ;;
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_CXX='-fno-common'
12019 ;;
12020 *djgpp*)
12021 # DJGPP does not support shared libraries at all
12022 lt_prog_compiler_pic_CXX=
12023 ;;
12024 interix[3-9]*)
12025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026 # Instead, we relocate shared libraries at runtime.
12027 ;;
12028 sysv4*MP*)
12029 if test -d /usr/nec; then
12030 lt_prog_compiler_pic_CXX=-Kconform_pic
12031 fi
12032 ;;
12033 hpux*)
12034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035 # not for PA HP-UX.
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12038 ;;
12039 *)
12040 lt_prog_compiler_pic_CXX='-fPIC'
12041 ;;
12042 esac
12043 ;;
12044 *)
12045 lt_prog_compiler_pic_CXX='-fPIC'
12046 ;;
12047 esac
12048 else
12049 case $host_os in
12050 aix[4-9]*)
12051 # All AIX code is PIC.
12052 if test "$host_cpu" = ia64; then
12053 # AIX 5 now supports IA64 processor
12054 lt_prog_compiler_static_CXX='-Bstatic'
12055 else
12056 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12057 fi
12058 ;;
12059 chorus*)
12060 case $cc_basename in
12061 cxch68*)
12062 # Green Hills C++ Compiler
12063 # _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"
12064 ;;
12065 esac
12066 ;;
12067 darwin*)
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 case $cc_basename in
12071 xlc*)
12072 lt_prog_compiler_pic_CXX='-qnocommon'
12073 lt_prog_compiler_wl_CXX='-Wl,'
12074 ;;
12075 esac
12076 ;;
12077 dgux*)
12078 case $cc_basename in
12079 ec++*)
12080 lt_prog_compiler_pic_CXX='-KPIC'
12081 ;;
12082 ghcx*)
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX='-pic'
12085 ;;
12086 *)
12087 ;;
12088 esac
12089 ;;
12090 freebsd* | dragonfly*)
12091 # FreeBSD uses GNU C++
12092 ;;
12093 hpux9* | hpux10* | hpux11*)
12094 case $cc_basename in
12095 CC*)
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12098 if test "$host_cpu" != ia64; then
12099 lt_prog_compiler_pic_CXX='+Z'
12100 fi
12101 ;;
12102 aCC*)
12103 lt_prog_compiler_wl_CXX='-Wl,'
12104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105 case $host_cpu in
12106 hppa*64*|ia64*)
12107 # +Z the default
12108 ;;
12109 *)
12110 lt_prog_compiler_pic_CXX='+Z'
12111 ;;
12112 esac
12113 ;;
12114 *)
12115 ;;
12116 esac
12117 ;;
12118 interix*)
12119 # This is c89, which is MS Visual C++ (no shared libs)
12120 # Anyone wants to do a port?
12121 ;;
12122 irix5* | irix6* | nonstopux*)
12123 case $cc_basename in
12124 CC*)
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_static_CXX='-non_shared'
12127 # CC pic flag -KPIC is the default.
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 linux* | k*bsd*-gnu)
12134 case $cc_basename in
12135 KCC*)
12136 # KAI C++ Compiler
12137 lt_prog_compiler_wl_CXX='--backend -Wl,'
12138 lt_prog_compiler_pic_CXX='-fPIC'
12139 ;;
12140 icpc* | ecpc*)
12141 # Intel C++
12142 lt_prog_compiler_wl_CXX='-Wl,'
12143 lt_prog_compiler_pic_CXX='-KPIC'
12144 lt_prog_compiler_static_CXX='-static'
12145 ;;
12146 pgCC* | pgcpp*)
12147 # Portland Group C++ compiler.
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 lt_prog_compiler_pic_CXX='-fpic'
12150 lt_prog_compiler_static_CXX='-Bstatic'
12151 ;;
12152 cxx*)
12153 # Compaq C++
12154 # Make sure the PIC flag is empty. It appears that all Alpha
12155 # Linux and Compaq Tru64 Unix objects are PIC.
12156 lt_prog_compiler_pic_CXX=
12157 lt_prog_compiler_static_CXX='-non_shared'
12158 ;;
12159 *)
12160 case `$CC -V 2>&1 | sed 5q` in
12161 *Sun\ C*)
12162 # Sun C++ 5.9
12163 lt_prog_compiler_pic_CXX='-KPIC'
12164 lt_prog_compiler_static_CXX='-Bstatic'
12165 lt_prog_compiler_wl_CXX='-Qoption ld '
12166 ;;
12167 esac
12168 ;;
12169 esac
12170 ;;
12171 lynxos*)
12172 ;;
12173 m88k*)
12174 ;;
12175 mvs*)
12176 case $cc_basename in
12177 cxx*)
12178 lt_prog_compiler_pic_CXX='-W c,exportall'
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 netbsd*)
12185 ;;
12186 osf3* | osf4* | osf5*)
12187 case $cc_basename in
12188 KCC*)
12189 lt_prog_compiler_wl_CXX='--backend -Wl,'
12190 ;;
12191 RCC*)
12192 # Rational C++ 2.4.1
12193 lt_prog_compiler_pic_CXX='-pic'
12194 ;;
12195 cxx*)
12196 # Digital/Compaq C++
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 # Make sure the PIC flag is empty. It appears that all Alpha
12199 # Linux and Compaq Tru64 Unix objects are PIC.
12200 lt_prog_compiler_pic_CXX=
12201 lt_prog_compiler_static_CXX='-non_shared'
12202 ;;
12203 *)
12204 ;;
12205 esac
12206 ;;
12207 psos*)
12208 ;;
12209 solaris*)
12210 case $cc_basename in
12211 CC*)
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_wl_CXX='-Qoption ld '
12216 ;;
12217 gcx*)
12218 # Green Hills C++ Compiler
12219 lt_prog_compiler_pic_CXX='-PIC'
12220 ;;
12221 *)
12222 ;;
12223 esac
12224 ;;
12225 sunos4*)
12226 case $cc_basename in
12227 CC*)
12228 # Sun C++ 4.x
12229 lt_prog_compiler_pic_CXX='-pic'
12230 lt_prog_compiler_static_CXX='-Bstatic'
12231 ;;
12232 lcc*)
12233 # Lucid
12234 lt_prog_compiler_pic_CXX='-pic'
12235 ;;
12236 *)
12237 ;;
12238 esac
12239 ;;
12240 tandem*)
12241 case $cc_basename in
12242 NCC*)
12243 # NonStop-UX NCC 3.20
12244 lt_prog_compiler_pic_CXX='-KPIC'
12245 ;;
12246 *)
12247 ;;
12248 esac
12249 ;;
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 case $cc_basename in
12252 CC*)
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12256 ;;
12257 esac
12258 ;;
12259 vxworks*)
12260 ;;
12261 *)
12262 lt_prog_compiler_can_build_shared_CXX=no
12263 ;;
12264 esac
12265 fi
12266
12267{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12268$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12269
12270#
12271# Check to make sure the PIC flag actually works.
12272#
12273if test -n "$lt_prog_compiler_pic_CXX"; then
12274
12275{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12276$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12277if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12278 $as_echo_n "(cached) " >&6
12279else
12280 lt_cv_prog_compiler_pic_works_CXX=no
12281 ac_outfile=conftest.$ac_objext
12282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12284 # Insert the option either (1) after the last *FLAGS variable, or
12285 # (2) before a word containing "conftest.", or (3) at the end.
12286 # Note that $ac_compile itself does not contain backslashes and begins
12287 # with a dollar sign (not a hyphen), so the echo should work correctly.
12288 # The option is referenced via a variable to avoid confusing sed.
12289 lt_compile=`echo "$ac_compile" | $SED \
12290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12292 -e 's:$: $lt_compiler_flag:'`
12293 (eval echo "\"\$as_me:12293: $lt_compile\"" >&5)
12294 (eval "$lt_compile" 2>conftest.err)
12295 ac_status=$?
12296 cat conftest.err >&5
12297 echo "$as_me:12297: \$? = $ac_status" >&5
12298 if (exit $ac_status) && test -s "$ac_outfile"; then
12299 # The compiler can only warn and ignore the option if not recognized
12300 # So say no if there are warnings other than the usual output.
12301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_cv_prog_compiler_pic_works_CXX=yes
12305 fi
12306 fi
12307 $rm conftest*
12308
12309fi
12310{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12311$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12312
12313if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12314 case $lt_prog_compiler_pic_CXX in
12315 "" | " "*) ;;
12316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12317 esac
12318else
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_can_build_shared_CXX=no
12321fi
12322
12323fi
12324case $host_os in
12325 # For platforms which do not support PIC, -DPIC is meaningless:
12326 *djgpp*)
12327 lt_prog_compiler_pic_CXX=
12328 ;;
12329 *)
12330 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12331 ;;
12332esac
12333
12334#
12335# Check to make sure the static flag actually works.
12336#
12337wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12338{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12339$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12340if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12342else
12343 lt_cv_prog_compiler_static_works_CXX=no
12344 save_LDFLAGS="$LDFLAGS"
12345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12348 # The linker can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 if test -s conftest.err; then
12351 # Append any errors to the config.log.
12352 cat conftest.err 1>&5
12353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355 if diff conftest.exp conftest.er2 >/dev/null; then
12356 lt_cv_prog_compiler_static_works_CXX=yes
12357 fi
12358 else
12359 lt_cv_prog_compiler_static_works_CXX=yes
12360 fi
12361 fi
12362 $rm -r conftest*
12363 LDFLAGS="$save_LDFLAGS"
12364
12365fi
12366{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12367$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12368
12369if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12370 :
12371else
12372 lt_prog_compiler_static_CXX=
12373fi
12374
12375
12376{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12378if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12379 $as_echo_n "(cached) " >&6
12380else
12381 lt_cv_prog_compiler_c_o_CXX=no
12382 $rm -r conftest 2>/dev/null
12383 mkdir conftest
12384 cd conftest
12385 mkdir out
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12387
12388 lt_compiler_flag="-o out/conftest2.$ac_objext"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 lt_compile=`echo "$ac_compile" | $SED \
12394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396 -e 's:$: $lt_compiler_flag:'`
12397 (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398 (eval "$lt_compile" 2>out/conftest.err)
12399 ac_status=$?
12400 cat out/conftest.err >&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12403 then
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_c_o_CXX=yes
12410 fi
12411 fi
12412 chmod u+w . 2>&5
12413 $rm conftest*
12414 # SGI C++ compiler will create directory out/ii_files/ for
12415 # template instantiation
12416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12417 $rm out/* && rmdir out
12418 cd ..
12419 rmdir conftest
12420 $rm conftest*
12421
12422fi
12423{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12424$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12425
12426
12427hard_links="nottested"
12428if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12429 # do not overwrite the value of need_locks provided by the user
12430 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12431$as_echo_n "checking if we can lock with hard links... " >&6; }
12432 hard_links=yes
12433 $rm conftest*
12434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12435 touch conftest.a
12436 ln conftest.a conftest.b 2>&5 || hard_links=no
12437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12438 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12439$as_echo "$hard_links" >&6; }
12440 if test "$hard_links" = no; then
12441 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12442$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12443 need_locks=warn
12444 fi
12445else
12446 need_locks=no
12447fi
12448
12449{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12451
12452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12453 case $host_os in
12454 aix[4-9]*)
12455 # If we're using GNU nm, then we don't want the "-C" option.
12456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12458 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'
12459 else
12460 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'
12461 fi
12462 ;;
12463 pw32*)
12464 export_symbols_cmds_CXX="$ltdll_cmds"
12465 ;;
12466 cygwin* | mingw*)
12467 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'
12468 ;;
12469 *)
12470 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12471 ;;
12472 esac
12473 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12474
12475{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12476$as_echo "$ld_shlibs_CXX" >&6; }
12477test "$ld_shlibs_CXX" = no && can_build_shared=no
12478
12479#
12480# Do we need to explicitly link libc?
12481#
12482case "x$archive_cmds_need_lc_CXX" in
12483x|xyes)
12484 # Assume -lc should be added
12485 archive_cmds_need_lc_CXX=yes
12486
12487 if test "$enable_shared" = yes && test "$GCC" = yes; then
12488 case $archive_cmds_CXX in
12489 *'~'*)
12490 # FIXME: we may have to deal with multi-command sequences.
12491 ;;
12492 '$CC '*)
12493 # Test whether the compiler implicitly links with -lc since on some
12494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12495 # to ld, don't add -lc before -lgcc.
12496 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12497$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12498 $rm conftest*
12499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12500
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>&5
12503 ac_status=$?
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } 2>conftest.err; then
12506 soname=conftest
12507 lib=conftest
12508 libobjs=conftest.$ac_objext
12509 deplibs=
12510 wl=$lt_prog_compiler_wl_CXX
12511 pic_flag=$lt_prog_compiler_pic_CXX
12512 compiler_flags=-v
12513 linker_flags=-v
12514 verstring=
12515 output_objdir=.
12516 libname=conftest
12517 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12518 allow_undefined_flag_CXX=
12519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12520 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12521 ac_status=$?
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }
12524 then
12525 archive_cmds_need_lc_CXX=no
12526 else
12527 archive_cmds_need_lc_CXX=yes
12528 fi
12529 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12530 else
12531 cat conftest.err 1>&5
12532 fi
12533 $rm conftest*
12534 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12535$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12536 ;;
12537 esac
12538 fi
12539 ;;
12540esac
12541
12542{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12543$as_echo_n "checking dynamic linker characteristics... " >&6; }
12544library_names_spec=
12545libname_spec='lib$name'
12546soname_spec=
12547shrext_cmds=".so"
12548postinstall_cmds=
12549postuninstall_cmds=
12550finish_cmds=
12551finish_eval=
12552shlibpath_var=
12553shlibpath_overrides_runpath=unknown
12554version_type=none
12555dynamic_linker="$host_os ld.so"
12556sys_lib_dlsearch_path_spec="/lib /usr/lib"
12557
12558need_lib_prefix=unknown
12559hardcode_into_libs=no
12560
12561# when you set need_version to no, make sure it does not cause -set_version
12562# flags to be left without arguments
12563need_version=unknown
12564
12565case $host_os in
12566aix3*)
12567 version_type=linux
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12569 shlibpath_var=LIBPATH
12570
12571 # AIX 3 has no versioning support, so we append a major version to the name.
12572 soname_spec='${libname}${release}${shared_ext}$major'
12573 ;;
12574
12575aix[4-9]*)
12576 version_type=linux
12577 need_lib_prefix=no
12578 need_version=no
12579 hardcode_into_libs=yes
12580 if test "$host_cpu" = ia64; then
12581 # AIX 5 supports IA64
12582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 else
12585 # With GCC up to 2.95.x, collect2 would create an import file
12586 # for dependence libraries. The import file would start with
12587 # the line `#! .'. This would cause the generated library to
12588 # depend on `.', always an invalid library. This was fixed in
12589 # development snapshots of GCC prior to 3.0.
12590 case $host_os in
12591 aix4 | aix4.[01] | aix4.[01].*)
12592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12593 echo ' yes '
12594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12595 :
12596 else
12597 can_build_shared=no
12598 fi
12599 ;;
12600 esac
12601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12602 # soname into executable. Probably we can add versioning support to
12603 # collect2, so additional links can be useful in future.
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12606 # instead of lib<name>.a to let people know that these are not
12607 # typical AIX shared libraries.
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609 else
12610 # We preserve .a as extension for shared libraries through AIX4.2
12611 # and later when we are not doing run time linking.
12612 library_names_spec='${libname}${release}.a $libname.a'
12613 soname_spec='${libname}${release}${shared_ext}$major'
12614 fi
12615 shlibpath_var=LIBPATH
12616 fi
12617 ;;
12618
12619amigaos*)
12620 library_names_spec='$libname.ixlibrary $libname.a'
12621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12622 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'
12623 ;;
12624
12625beos*)
12626 library_names_spec='${libname}${shared_ext}'
12627 dynamic_linker="$host_os ld.so"
12628 shlibpath_var=LIBRARY_PATH
12629 ;;
12630
12631bsdi[45]*)
12632 version_type=linux
12633 need_version=no
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12640 # the default ld.so.conf also contains /usr/contrib/lib and
12641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12642 # libtool to hard-code these into programs
12643 ;;
12644
12645cygwin* | mingw* | pw32*)
12646 version_type=windows
12647 shrext_cmds=".dll"
12648 need_version=no
12649 need_lib_prefix=no
12650
12651 case $GCC,$host_os in
12652 yes,cygwin* | yes,mingw* | yes,pw32*)
12653 library_names_spec='$libname.dll.a'
12654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12655 postinstall_cmds='base_file=`basename \${file}`~
12656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12657 dldir=$destdir/`dirname \$dlpath`~
12658 test -d \$dldir || mkdir -p \$dldir~
12659 $install_prog $dir/$dlname \$dldir/$dlname~
12660 chmod a+x \$dldir/$dlname'
12661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12662 dlpath=$dir/\$dldll~
12663 $rm \$dlpath'
12664 shlibpath_overrides_runpath=yes
12665
12666 case $host_os in
12667 cygwin*)
12668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12671 ;;
12672 mingw*)
12673 # MinGW DLLs use traditional 'lib' prefix
12674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12677 # It is most probably a Windows format PATH printed by
12678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12679 # path with ; separators, and with drive letters. We can handle the
12680 # drive letters (cygwin fileutils understands them), so leave them,
12681 # especially as we might pass files found there to a mingw objdump,
12682 # which wouldn't understand a cygwinified path. Ahh.
12683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12684 else
12685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12686 fi
12687 ;;
12688 pw32*)
12689 # pw32 DLLs use 'pw' prefix rather than 'lib'
12690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12691 ;;
12692 esac
12693 ;;
12694
12695 *)
12696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12697 ;;
12698 esac
12699 dynamic_linker='Win32 ld.exe'
12700 # FIXME: first we should search . and the directory the executable is in
12701 shlibpath_var=PATH
12702 ;;
12703
12704darwin* | rhapsody*)
12705 dynamic_linker="$host_os dyld"
12706 version_type=darwin
12707 need_lib_prefix=no
12708 need_version=no
12709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12710 soname_spec='${libname}${release}${major}$shared_ext'
12711 shlibpath_overrides_runpath=yes
12712 shlibpath_var=DYLD_LIBRARY_PATH
12713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12714
12715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716 ;;
12717
12718dgux*)
12719 version_type=linux
12720 need_lib_prefix=no
12721 need_version=no
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12725 ;;
12726
12727freebsd1*)
12728 dynamic_linker=no
12729 ;;
12730
12731freebsd* | dragonfly*)
12732 # DragonFly does not have aout. When/if they implement a new
12733 # versioning mechanism, adjust this.
12734 if test -x /usr/bin/objformat; then
12735 objformat=`/usr/bin/objformat`
12736 else
12737 case $host_os in
12738 freebsd[123]*) objformat=aout ;;
12739 *) objformat=elf ;;
12740 esac
12741 fi
12742 version_type=freebsd-$objformat
12743 case $version_type in
12744 freebsd-elf*)
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12746 need_version=no
12747 need_lib_prefix=no
12748 ;;
12749 freebsd-*)
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12751 need_version=yes
12752 ;;
12753 esac
12754 shlibpath_var=LD_LIBRARY_PATH
12755 case $host_os in
12756 freebsd2*)
12757 shlibpath_overrides_runpath=yes
12758 ;;
12759 freebsd3.[01]* | freebsdelf3.[01]*)
12760 shlibpath_overrides_runpath=yes
12761 hardcode_into_libs=yes
12762 ;;
12763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12765 shlibpath_overrides_runpath=no
12766 hardcode_into_libs=yes
12767 ;;
12768 *) # from 4.6 on, and DragonFly
12769 shlibpath_overrides_runpath=yes
12770 hardcode_into_libs=yes
12771 ;;
12772 esac
12773 ;;
12774
12775gnu*)
12776 version_type=linux
12777 need_lib_prefix=no
12778 need_version=no
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 hardcode_into_libs=yes
12783 ;;
12784
12785hpux9* | hpux10* | hpux11*)
12786 # Give a soname corresponding to the major version so that dld.sl refuses to
12787 # link against other versions.
12788 version_type=sunos
12789 need_lib_prefix=no
12790 need_version=no
12791 case $host_cpu in
12792 ia64*)
12793 shrext_cmds='.so'
12794 hardcode_into_libs=yes
12795 dynamic_linker="$host_os dld.so"
12796 shlibpath_var=LD_LIBRARY_PATH
12797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 if test "X$HPUX_IA64_MODE" = X32; then
12801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12802 else
12803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12804 fi
12805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12806 ;;
12807 hppa*64*)
12808 shrext_cmds='.sl'
12809 hardcode_into_libs=yes
12810 dynamic_linker="$host_os dld.sl"
12811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12817 ;;
12818 *)
12819 shrext_cmds='.sl'
12820 dynamic_linker="$host_os dld.sl"
12821 shlibpath_var=SHLIB_PATH
12822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 ;;
12826 esac
12827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12828 postinstall_cmds='chmod 555 $lib'
12829 ;;
12830
12831interix[3-9]*)
12832 version_type=linux
12833 need_lib_prefix=no
12834 need_version=no
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=no
12840 hardcode_into_libs=yes
12841 ;;
12842
12843irix5* | irix6* | nonstopux*)
12844 case $host_os in
12845 nonstopux*) version_type=nonstopux ;;
12846 *)
12847 if test "$lt_cv_prog_gnu_ld" = yes; then
12848 version_type=linux
12849 else
12850 version_type=irix
12851 fi ;;
12852 esac
12853 need_lib_prefix=no
12854 need_version=no
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12857 case $host_os in
12858 irix5* | nonstopux*)
12859 libsuff= shlibsuff=
12860 ;;
12861 *)
12862 case $LD in # libtool.m4 will add one of these switches to LD
12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12864 libsuff= shlibsuff= libmagic=32-bit;;
12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12866 libsuff=32 shlibsuff=N32 libmagic=N32;;
12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12869 *) libsuff= shlibsuff= libmagic=never-match;;
12870 esac
12871 ;;
12872 esac
12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12874 shlibpath_overrides_runpath=no
12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12877 hardcode_into_libs=yes
12878 ;;
12879
12880# No shared lib support for Linux oldld, aout, or coff.
12881linux*oldld* | linux*aout* | linux*coff*)
12882 dynamic_linker=no
12883 ;;
12884
12885# This must be Linux ELF.
12886linux* | k*bsd*-gnu)
12887 version_type=linux
12888 need_lib_prefix=no
12889 need_version=no
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=no
12895 # This implies no fast_install, which is unacceptable.
12896 # Some rework will be needed to allow for fast_install
12897 # before this can be enabled.
12898 hardcode_into_libs=yes
12899
12900 # Append ld.so.conf contents to the search path
12901 if test -f /etc/ld.so.conf; then
12902 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' ' '`
12903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12904 fi
12905
12906 # We used to test for /lib/ld.so.1 and disable shared libraries on
12907 # powerpc, because MkLinux only supported shared libraries with the
12908 # GNU dynamic linker. Since this was broken with cross compilers,
12909 # most powerpc-linux boxes support dynamic linking these days and
12910 # people can always --disable-shared, the test was removed, and we
12911 # assume the GNU/Linux dynamic linker is in use.
12912 dynamic_linker='GNU/Linux ld.so'
12913 ;;
12914
12915netbsd*)
12916 version_type=sunos
12917 need_lib_prefix=no
12918 need_version=no
12919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12923 else
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12927 fi
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12931 ;;
12932
12933newsos6)
12934 version_type=linux
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12938 ;;
12939
12940nto-qnx*)
12941 version_type=linux
12942 need_lib_prefix=no
12943 need_version=no
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 ;;
12949
12950openbsd*)
12951 version_type=sunos
12952 sys_lib_dlsearch_path_spec="/usr/lib"
12953 need_lib_prefix=no
12954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12955 case $host_os in
12956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12957 *) need_version=no ;;
12958 esac
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12963 case $host_os in
12964 openbsd2.[89] | openbsd2.[89].*)
12965 shlibpath_overrides_runpath=no
12966 ;;
12967 *)
12968 shlibpath_overrides_runpath=yes
12969 ;;
12970 esac
12971 else
12972 shlibpath_overrides_runpath=yes
12973 fi
12974 ;;
12975
12976os2*)
12977 libname_spec='$name'
12978 shrext_cmds=".dll"
12979 need_lib_prefix=no
12980 library_names_spec='$libname${shared_ext} $libname.a'
12981 dynamic_linker='OS/2 ld.exe'
12982 shlibpath_var=LIBPATH
12983 ;;
12984
12985osf3* | osf4* | osf5*)
12986 version_type=osf
12987 need_lib_prefix=no
12988 need_version=no
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12994 ;;
12995
12996rdos*)
12997 dynamic_linker=no
12998 ;;
12999
13000solaris*)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13009 # ldd complains unless libraries are executable
13010 postinstall_cmds='chmod +x $lib'
13011 ;;
13012
13013sunos4*)
13014 version_type=sunos
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 if test "$with_gnu_ld" = yes; then
13020 need_lib_prefix=no
13021 fi
13022 need_version=yes
13023 ;;
13024
13025sysv4 | sysv4.3*)
13026 version_type=linux
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 case $host_vendor in
13031 sni)
13032 shlibpath_overrides_runpath=no
13033 need_lib_prefix=no
13034 export_dynamic_flag_spec='${wl}-Blargedynsym'
13035 runpath_var=LD_RUN_PATH
13036 ;;
13037 siemens)
13038 need_lib_prefix=no
13039 ;;
13040 motorola)
13041 need_lib_prefix=no
13042 need_version=no
13043 shlibpath_overrides_runpath=no
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13045 ;;
13046 esac
13047 ;;
13048
13049sysv4*MP*)
13050 if test -d /usr/nec ;then
13051 version_type=linux
13052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053 soname_spec='$libname${shared_ext}.$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 fi
13056 ;;
13057
13058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059 version_type=freebsd-elf
13060 need_lib_prefix=no
13061 need_version=no
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 hardcode_into_libs=yes
13066 if test "$with_gnu_ld" = yes; then
13067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068 shlibpath_overrides_runpath=no
13069 else
13070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071 shlibpath_overrides_runpath=yes
13072 case $host_os in
13073 sco3.2v5*)
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13075 ;;
13076 esac
13077 fi
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13079 ;;
13080
13081uts4*)
13082 version_type=linux
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 ;;
13087
13088*)
13089 dynamic_linker=no
13090 ;;
13091esac
13092{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093$as_echo "$dynamic_linker" >&6; }
13094test "$dynamic_linker" = no && can_build_shared=no
13095
13096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13097 $as_echo_n "(cached) " >&6
13098else
13099 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13100fi
13101
13102sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13103if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13105else
13106 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13107fi
13108
13109sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13110
13111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13112if test "$GCC" = yes; then
13113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13114fi
13115
13116{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13117$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13118hardcode_action_CXX=
13119if test -n "$hardcode_libdir_flag_spec_CXX" || \
13120 test -n "$runpath_var_CXX" || \
13121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13122
13123 # We can hardcode non-existant directories.
13124 if test "$hardcode_direct_CXX" != no &&
13125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13126 # have to relink, otherwise we might link with an installed library
13127 # when we should be linking with a yet-to-be-installed one
13128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13129 test "$hardcode_minus_L_CXX" != no; then
13130 # Linking always hardcodes the temporary library directory.
13131 hardcode_action_CXX=relink
13132 else
13133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13134 hardcode_action_CXX=immediate
13135 fi
13136else
13137 # We cannot hardcode anything, or else we can only hardcode existing
13138 # directories.
13139 hardcode_action_CXX=unsupported
13140fi
13141{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13142$as_echo "$hardcode_action_CXX" >&6; }
13143
13144if test "$hardcode_action_CXX" = relink; then
13145 # Fast installation is not supported
13146 enable_fast_install=no
13147elif test "$shlibpath_overrides_runpath" = yes ||
13148 test "$enable_shared" = no; then
13149 # Fast installation is not necessary
13150 enable_fast_install=needless
13151fi
13152
13153
13154# The else clause should only fire when bootstrapping the
13155# libtool distribution, otherwise you forgot to ship ltmain.sh
13156# with your package, and you will get complaints that there are
13157# no rules to generate ltmain.sh.
13158if test -f "$ltmain"; then
13159 # See if we are running on zsh, and set the options which allow our commands through
13160 # without removal of \ escapes.
13161 if test -n "${ZSH_VERSION+set}" ; then
13162 setopt NO_GLOB_SUBST
13163 fi
13164 # Now quote all the things that may contain metacharacters while being
13165 # careful not to overquote the AC_SUBSTed values. We take copies of the
13166 # variables and quote the copies for generation of the libtool script.
13167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13168 SED SHELL STRIP \
13169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13171 deplibs_check_method reload_flag reload_cmds need_locks \
13172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13173 lt_cv_sys_global_symbol_to_c_name_address \
13174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13175 old_postinstall_cmds old_postuninstall_cmds \
13176 compiler_CXX \
13177 CC_CXX \
13178 LD_CXX \
13179 lt_prog_compiler_wl_CXX \
13180 lt_prog_compiler_pic_CXX \
13181 lt_prog_compiler_static_CXX \
13182 lt_prog_compiler_no_builtin_flag_CXX \
13183 export_dynamic_flag_spec_CXX \
13184 thread_safe_flag_spec_CXX \
13185 whole_archive_flag_spec_CXX \
13186 enable_shared_with_static_runtimes_CXX \
13187 old_archive_cmds_CXX \
13188 old_archive_from_new_cmds_CXX \
13189 predep_objects_CXX \
13190 postdep_objects_CXX \
13191 predeps_CXX \
13192 postdeps_CXX \
13193 compiler_lib_search_path_CXX \
13194 compiler_lib_search_dirs_CXX \
13195 archive_cmds_CXX \
13196 archive_expsym_cmds_CXX \
13197 postinstall_cmds_CXX \
13198 postuninstall_cmds_CXX \
13199 old_archive_from_expsyms_cmds_CXX \
13200 allow_undefined_flag_CXX \
13201 no_undefined_flag_CXX \
13202 export_symbols_cmds_CXX \
13203 hardcode_libdir_flag_spec_CXX \
13204 hardcode_libdir_flag_spec_ld_CXX \
13205 hardcode_libdir_separator_CXX \
13206 hardcode_automatic_CXX \
13207 module_cmds_CXX \
13208 module_expsym_cmds_CXX \
13209 lt_cv_prog_compiler_c_o_CXX \
13210 fix_srcfile_path_CXX \
13211 exclude_expsyms_CXX \
13212 include_expsyms_CXX; do
13213
13214 case $var in
13215 old_archive_cmds_CXX | \
13216 old_archive_from_new_cmds_CXX | \
13217 archive_cmds_CXX | \
13218 archive_expsym_cmds_CXX | \
13219 module_cmds_CXX | \
13220 module_expsym_cmds_CXX | \
13221 old_archive_from_expsyms_cmds_CXX | \
13222 export_symbols_cmds_CXX | \
13223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13224 postinstall_cmds | postuninstall_cmds | \
13225 old_postinstall_cmds | old_postuninstall_cmds | \
13226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13227 # Double-quote double-evaled strings.
13228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13229 ;;
13230 *)
13231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13232 ;;
13233 esac
13234 done
13235
13236 case $lt_echo in
13237 *'\$0 --fallback-echo"')
13238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13239 ;;
13240 esac
13241
13242cfgfile="$ofile"
13243
13244 cat <<__EOF__ >> "$cfgfile"
13245# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13246
13247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13248
13249# Shell to use when invoking shell scripts.
13250SHELL=$lt_SHELL
13251
13252# Whether or not to build shared libraries.
13253build_libtool_libs=$enable_shared
13254
13255# Whether or not to build static libraries.
13256build_old_libs=$enable_static
13257
13258# Whether or not to add -lc for building shared libraries.
13259build_libtool_need_lc=$archive_cmds_need_lc_CXX
13260
13261# Whether or not to disallow shared libs when runtime libs are static
13262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13263
13264# Whether or not to optimize for fast installation.
13265fast_install=$enable_fast_install
13266
13267# The host system.
13268host_alias=$host_alias
13269host=$host
13270host_os=$host_os
13271
13272# The build system.
13273build_alias=$build_alias
13274build=$build
13275build_os=$build_os
13276
13277# An echo program that does not interpret backslashes.
13278echo=$lt_echo
13279
13280# The archiver.
13281AR=$lt_AR
13282AR_FLAGS=$lt_AR_FLAGS
13283
13284# A C compiler.
13285LTCC=$lt_LTCC
13286
13287# LTCC compiler flags.
13288LTCFLAGS=$lt_LTCFLAGS
13289
13290# A language-specific compiler.
13291CC=$lt_compiler_CXX
13292
13293# Is the compiler the GNU C compiler?
13294with_gcc=$GCC_CXX
13295
13296# An ERE matcher.
13297EGREP=$lt_EGREP
13298
13299# The linker used to build libraries.
13300LD=$lt_LD_CXX
13301
13302# Whether we need hard or soft links.
13303LN_S=$lt_LN_S
13304
13305# A BSD-compatible nm program.
13306NM=$lt_NM
13307
13308# A symbol stripping program
13309STRIP=$lt_STRIP
13310
13311# Used to examine libraries when file_magic_cmd begins "file"
13312MAGIC_CMD=$MAGIC_CMD
13313
13314# Used on cygwin: DLL creation program.
13315DLLTOOL="$DLLTOOL"
13316
13317# Used on cygwin: object dumper.
13318OBJDUMP="$OBJDUMP"
13319
13320# Used on cygwin: assembler.
13321AS="$AS"
13322
13323# The name of the directory that contains temporary libtool files.
13324objdir=$objdir
13325
13326# How to create reloadable object files.
13327reload_flag=$lt_reload_flag
13328reload_cmds=$lt_reload_cmds
13329
13330# How to pass a linker flag through the compiler.
13331wl=$lt_lt_prog_compiler_wl_CXX
13332
13333# Object file suffix (normally "o").
13334objext="$ac_objext"
13335
13336# Old archive suffix (normally "a").
13337libext="$libext"
13338
13339# Shared library suffix (normally ".so").
13340shrext_cmds='$shrext_cmds'
13341
13342# Executable file suffix (normally "").
13343exeext="$exeext"
13344
13345# Additional compiler flags for building library objects.
13346pic_flag=$lt_lt_prog_compiler_pic_CXX
13347pic_mode=$pic_mode
13348
13349# What is the maximum length of a command?
13350max_cmd_len=$lt_cv_sys_max_cmd_len
13351
13352# Does compiler simultaneously support -c and -o options?
13353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13354
13355# Must we lock files when doing compilation?
13356need_locks=$lt_need_locks
13357
13358# Do we need the lib prefix for modules?
13359need_lib_prefix=$need_lib_prefix
13360
13361# Do we need a version for libraries?
13362need_version=$need_version
13363
13364# Whether dlopen is supported.
13365dlopen_support=$enable_dlopen
13366
13367# Whether dlopen of programs is supported.
13368dlopen_self=$enable_dlopen_self
13369
13370# Whether dlopen of statically linked programs is supported.
13371dlopen_self_static=$enable_dlopen_self_static
13372
13373# Compiler flag to prevent dynamic linking.
13374link_static_flag=$lt_lt_prog_compiler_static_CXX
13375
13376# Compiler flag to turn off builtin functions.
13377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13378
13379# Compiler flag to allow reflexive dlopens.
13380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13381
13382# Compiler flag to generate shared objects directly from archives.
13383whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13384
13385# Compiler flag to generate thread-safe objects.
13386thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13387
13388# Library versioning type.
13389version_type=$version_type
13390
13391# Format of library name prefix.
13392libname_spec=$lt_libname_spec
13393
13394# List of archive names. First name is the real one, the rest are links.
13395# The last name is the one that the linker finds with -lNAME.
13396library_names_spec=$lt_library_names_spec
13397
13398# The coded name of the library, if different from the real name.
13399soname_spec=$lt_soname_spec
13400
13401# Commands used to build and install an old-style archive.
13402RANLIB=$lt_RANLIB
13403old_archive_cmds=$lt_old_archive_cmds_CXX
13404old_postinstall_cmds=$lt_old_postinstall_cmds
13405old_postuninstall_cmds=$lt_old_postuninstall_cmds
13406
13407# Create an old-style archive from a shared archive.
13408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13409
13410# Create a temporary old-style archive to link instead of a shared archive.
13411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13412
13413# Commands used to build and install a shared archive.
13414archive_cmds=$lt_archive_cmds_CXX
13415archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13416postinstall_cmds=$lt_postinstall_cmds
13417postuninstall_cmds=$lt_postuninstall_cmds
13418
13419# Commands used to build a loadable module (assumed same as above if empty)
13420module_cmds=$lt_module_cmds_CXX
13421module_expsym_cmds=$lt_module_expsym_cmds_CXX
13422
13423# Commands to strip libraries.
13424old_striplib=$lt_old_striplib
13425striplib=$lt_striplib
13426
13427# Dependencies to place before the objects being linked to create a
13428# shared library.
13429predep_objects=$lt_predep_objects_CXX
13430
13431# Dependencies to place after the objects being linked to create a
13432# shared library.
13433postdep_objects=$lt_postdep_objects_CXX
13434
13435# Dependencies to place before the objects being linked to create a
13436# shared library.
13437predeps=$lt_predeps_CXX
13438
13439# Dependencies to place after the objects being linked to create a
13440# shared library.
13441postdeps=$lt_postdeps_CXX
13442
13443# The directories searched by this compiler when creating a shared
13444# library
13445compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13446
13447# The library search path used internally by the compiler when linking
13448# a shared library.
13449compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13450
13451# Method to check whether dependent libraries are shared objects.
13452deplibs_check_method=$lt_deplibs_check_method
13453
13454# Command to use when deplibs_check_method == file_magic.
13455file_magic_cmd=$lt_file_magic_cmd
13456
13457# Flag that allows shared libraries with undefined symbols to be built.
13458allow_undefined_flag=$lt_allow_undefined_flag_CXX
13459
13460# Flag that forces no undefined symbols.
13461no_undefined_flag=$lt_no_undefined_flag_CXX
13462
13463# Commands used to finish a libtool library installation in a directory.
13464finish_cmds=$lt_finish_cmds
13465
13466# Same as above, but a single script fragment to be evaled but not shown.
13467finish_eval=$lt_finish_eval
13468
13469# Take the output of nm and produce a listing of raw symbols and C names.
13470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13471
13472# Transform the output of nm in a proper C declaration
13473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13474
13475# Transform the output of nm in a C name address pair
13476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13477
13478# This is the shared library runtime path variable.
13479runpath_var=$runpath_var
13480
13481# This is the shared library path variable.
13482shlibpath_var=$shlibpath_var
13483
13484# Is shlibpath searched before the hard-coded library search path?
13485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13486
13487# How to hardcode a shared library path into an executable.
13488hardcode_action=$hardcode_action_CXX
13489
13490# Whether we should hardcode library paths into libraries.
13491hardcode_into_libs=$hardcode_into_libs
13492
13493# Flag to hardcode \$libdir into a binary during linking.
13494# This must work even if \$libdir does not exist.
13495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13496
13497# If ld is used when linking, flag to hardcode \$libdir into
13498# a binary during linking. This must work even if \$libdir does
13499# not exist.
13500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13501
13502# Whether we need a single -rpath flag with a separated argument.
13503hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13504
13505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13506# resulting binary.
13507hardcode_direct=$hardcode_direct_CXX
13508
13509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13510# resulting binary.
13511hardcode_minus_L=$hardcode_minus_L_CXX
13512
13513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13514# the resulting binary.
13515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13516
13517# Set to yes if building a shared library automatically hardcodes DIR into the library
13518# and all subsequent libraries and executables linked against it.
13519hardcode_automatic=$hardcode_automatic_CXX
13520
13521# Variables whose values should be saved in libtool wrapper scripts and
13522# restored at relink time.
13523variables_saved_for_relink="$variables_saved_for_relink"
13524
13525# Whether libtool must link a program against all its dependency libraries.
13526link_all_deplibs=$link_all_deplibs_CXX
13527
13528# Compile-time system search path for libraries
13529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13530
13531# Run-time system search path for libraries
13532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13533
13534# Fix the shell variable \$srcfile for the compiler.
13535fix_srcfile_path=$lt_fix_srcfile_path
13536
13537# Set to yes if exported symbols are required.
13538always_export_symbols=$always_export_symbols_CXX
13539
13540# The commands to list exported symbols.
13541export_symbols_cmds=$lt_export_symbols_cmds_CXX
13542
13543# The commands to extract the exported symbol list from a shared archive.
13544extract_expsyms_cmds=$lt_extract_expsyms_cmds
13545
13546# Symbols that should not be listed in the preloaded symbols.
13547exclude_expsyms=$lt_exclude_expsyms_CXX
13548
13549# Symbols that must always be exported.
13550include_expsyms=$lt_include_expsyms_CXX
13551
13552# ### END LIBTOOL TAG CONFIG: $tagname
13553
13554__EOF__
13555
13556
13557else
13558 # If there is no Makefile yet, we rely on a make rule to execute
13559 # `config.status --recheck' to rerun these tests and create the
13560 # libtool script then.
13561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13562 if test -f "$ltmain_in"; then
13563 test -f Makefile && make "$ltmain"
13564 fi
13565fi
13566
13567
13568ac_ext=c
13569ac_cpp='$CPP $CPPFLAGS'
13570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572ac_compiler_gnu=$ac_cv_c_compiler_gnu
13573
13574CC=$lt_save_CC
13575LDCXX=$LD
13576LD=$lt_save_LD
13577GCC=$lt_save_GCC
13578with_gnu_ldcxx=$with_gnu_ld
13579with_gnu_ld=$lt_save_with_gnu_ld
13580lt_cv_path_LDCXX=$lt_cv_path_LD
13581lt_cv_path_LD=$lt_save_path_LD
13582lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13583lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13584
13585 else
13586 tagname=""
13587 fi
13588 ;;
13589
13590 F77)
13591 if test -n "$F77" && test "X$F77" != "Xno"; then
13592
13593ac_ext=f
13594ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13595ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13597
13598
13599archive_cmds_need_lc_F77=no
13600allow_undefined_flag_F77=
13601always_export_symbols_F77=no
13602archive_expsym_cmds_F77=
13603export_dynamic_flag_spec_F77=
13604hardcode_direct_F77=no
13605hardcode_libdir_flag_spec_F77=
13606hardcode_libdir_flag_spec_ld_F77=
13607hardcode_libdir_separator_F77=
13608hardcode_minus_L_F77=no
13609hardcode_automatic_F77=no
13610module_cmds_F77=
13611module_expsym_cmds_F77=
13612link_all_deplibs_F77=unknown
13613old_archive_cmds_F77=$old_archive_cmds
13614no_undefined_flag_F77=
13615whole_archive_flag_spec_F77=
13616enable_shared_with_static_runtimes_F77=no
13617
13618# Source file extension for f77 test sources.
13619ac_ext=f
13620
13621# Object file extension for compiled f77 test sources.
13622objext=o
13623objext_F77=$objext
13624
13625# Code to be used in simple compile tests
13626lt_simple_compile_test_code="\
13627 subroutine t
13628 return
13629 end
13630"
13631
13632# Code to be used in simple link tests
13633lt_simple_link_test_code="\
13634 program t
13635 end
13636"
13637
13638# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13639
13640# If no C compiler was specified, use CC.
13641LTCC=${LTCC-"$CC"}
13642
13643# If no C compiler flags were specified, use CFLAGS.
13644LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13645
13646# Allow CC to be a program name with arguments.
13647compiler=$CC
13648
13649
13650# save warnings/boilerplate of simple test code
13651ac_outfile=conftest.$ac_objext
13652echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13653eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654_lt_compiler_boilerplate=`cat conftest.err`
13655$rm conftest*
13656
13657ac_outfile=conftest.$ac_objext
13658echo "$lt_simple_link_test_code" >conftest.$ac_ext
13659eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660_lt_linker_boilerplate=`cat conftest.err`
13661$rm -r conftest*
13662
13663
13664# Allow CC to be a program name with arguments.
13665lt_save_CC="$CC"
13666CC=${F77-"f77"}
13667compiler=$CC
13668compiler_F77=$CC
13669for cc_temp in $compiler""; do
13670 case $cc_temp in
13671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13673 \-*) ;;
13674 *) break;;
13675 esac
13676done
13677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13678
13679
13680{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13682{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683$as_echo "$can_build_shared" >&6; }
13684
13685{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686$as_echo_n "checking whether to build shared libraries... " >&6; }
13687test "$can_build_shared" = "no" && enable_shared=no
13688
13689# On AIX, shared libraries and static libraries use the same namespace, and
13690# are all built from PIC.
13691case $host_os in
13692aix3*)
13693 test "$enable_shared" = yes && enable_static=no
13694 if test -n "$RANLIB"; then
13695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696 postinstall_cmds='$RANLIB $lib'
13697 fi
13698 ;;
13699aix[4-9]*)
13700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701 test "$enable_shared" = yes && enable_static=no
13702 fi
13703 ;;
13704esac
13705{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13706$as_echo "$enable_shared" >&6; }
13707
13708{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709$as_echo_n "checking whether to build static libraries... " >&6; }
13710# Make sure either enable_shared or enable_static is yes.
13711test "$enable_shared" = yes || enable_static=yes
13712{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13713$as_echo "$enable_static" >&6; }
13714
13715GCC_F77="$G77"
13716LD_F77="$LD"
13717
13718lt_prog_compiler_wl_F77=
13719lt_prog_compiler_pic_F77=
13720lt_prog_compiler_static_F77=
13721
13722{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13724
13725 if test "$GCC" = yes; then
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_static_F77='-static'
13728
13729 case $host_os in
13730 aix*)
13731 # All AIX code is PIC.
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 fi
13736 ;;
13737
13738 amigaos*)
13739 # FIXME: we need at least 68020 code to build shared libraries, but
13740 # adding the `-m68020' flag to GCC prevents building anything better,
13741 # like `-m68040'.
13742 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13743 ;;
13744
13745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746 # PIC is the default for these OSes.
13747 ;;
13748
13749 mingw* | cygwin* | pw32* | os2*)
13750 # This hack is so that the source file can tell whether it is being
13751 # built for inclusion in a dll (and should export symbols for example).
13752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13753 # (--disable-auto-import) libraries
13754 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13755 ;;
13756
13757 darwin* | rhapsody*)
13758 # PIC is the default on this platform
13759 # Common symbols not allowed in MH_DYLIB files
13760 lt_prog_compiler_pic_F77='-fno-common'
13761 ;;
13762
13763 interix[3-9]*)
13764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13765 # Instead, we relocate shared libraries at runtime.
13766 ;;
13767
13768 msdosdjgpp*)
13769 # Just because we use GCC doesn't mean we suddenly get shared libraries
13770 # on systems that don't support them.
13771 lt_prog_compiler_can_build_shared_F77=no
13772 enable_shared=no
13773 ;;
13774
13775 sysv4*MP*)
13776 if test -d /usr/nec; then
13777 lt_prog_compiler_pic_F77=-Kconform_pic
13778 fi
13779 ;;
13780
13781 hpux*)
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
13784 case $host_cpu in
13785 hppa*64*|ia64*)
13786 # +Z the default
13787 ;;
13788 *)
13789 lt_prog_compiler_pic_F77='-fPIC'
13790 ;;
13791 esac
13792 ;;
13793
13794 *)
13795 lt_prog_compiler_pic_F77='-fPIC'
13796 ;;
13797 esac
13798 else
13799 # PORTME Check for flag to pass linker flags through the system compiler.
13800 case $host_os in
13801 aix*)
13802 lt_prog_compiler_wl_F77='-Wl,'
13803 if test "$host_cpu" = ia64; then
13804 # AIX 5 now supports IA64 processor
13805 lt_prog_compiler_static_F77='-Bstatic'
13806 else
13807 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13808 fi
13809 ;;
13810 darwin*)
13811 # PIC is the default on this platform
13812 # Common symbols not allowed in MH_DYLIB files
13813 case $cc_basename in
13814 xlc*)
13815 lt_prog_compiler_pic_F77='-qnocommon'
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 ;;
13818 esac
13819 ;;
13820
13821 mingw* | cygwin* | pw32* | os2*)
13822 # This hack is so that the source file can tell whether it is being
13823 # built for inclusion in a dll (and should export symbols for example).
13824 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13825 ;;
13826
13827 hpux9* | hpux10* | hpux11*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830 # not for PA HP-UX.
13831 case $host_cpu in
13832 hppa*64*|ia64*)
13833 # +Z the default
13834 ;;
13835 *)
13836 lt_prog_compiler_pic_F77='+Z'
13837 ;;
13838 esac
13839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13840 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13841 ;;
13842
13843 irix5* | irix6* | nonstopux*)
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 # PIC (with -KPIC) is the default.
13846 lt_prog_compiler_static_F77='-non_shared'
13847 ;;
13848
13849 newsos6)
13850 lt_prog_compiler_pic_F77='-KPIC'
13851 lt_prog_compiler_static_F77='-Bstatic'
13852 ;;
13853
13854 linux* | k*bsd*-gnu)
13855 case $cc_basename in
13856 icc* | ecc*)
13857 lt_prog_compiler_wl_F77='-Wl,'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-static'
13860 ;;
13861 pgcc* | pgf77* | pgf90* | pgf95*)
13862 # Portland Group compilers (*not* the Pentium gcc compiler,
13863 # which looks to be a dead project)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-fpic'
13866 lt_prog_compiler_static_F77='-Bstatic'
13867 ;;
13868 ccc*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # All Alpha code is PIC.
13871 lt_prog_compiler_static_F77='-non_shared'
13872 ;;
13873 *)
13874 case `$CC -V 2>&1 | sed 5q` in
13875 *Sun\ C*)
13876 # Sun C 5.9
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 ;;
13881 *Sun\ F*)
13882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13883 lt_prog_compiler_pic_F77='-KPIC'
13884 lt_prog_compiler_static_F77='-Bstatic'
13885 lt_prog_compiler_wl_F77=''
13886 ;;
13887 esac
13888 ;;
13889 esac
13890 ;;
13891
13892 osf3* | osf4* | osf5*)
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 # All OSF/1 code is PIC.
13895 lt_prog_compiler_static_F77='-non_shared'
13896 ;;
13897
13898 rdos*)
13899 lt_prog_compiler_static_F77='-non_shared'
13900 ;;
13901
13902 solaris*)
13903 lt_prog_compiler_pic_F77='-KPIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13905 case $cc_basename in
13906 f77* | f90* | f95*)
13907 lt_prog_compiler_wl_F77='-Qoption ld ';;
13908 *)
13909 lt_prog_compiler_wl_F77='-Wl,';;
13910 esac
13911 ;;
13912
13913 sunos4*)
13914 lt_prog_compiler_wl_F77='-Qoption ld '
13915 lt_prog_compiler_pic_F77='-PIC'
13916 lt_prog_compiler_static_F77='-Bstatic'
13917 ;;
13918
13919 sysv4 | sysv4.2uw2* | sysv4.3*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-KPIC'
13922 lt_prog_compiler_static_F77='-Bstatic'
13923 ;;
13924
13925 sysv4*MP*)
13926 if test -d /usr/nec ;then
13927 lt_prog_compiler_pic_F77='-Kconform_pic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13929 fi
13930 ;;
13931
13932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 lt_prog_compiler_pic_F77='-KPIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13936 ;;
13937
13938 unicos*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_can_build_shared_F77=no
13941 ;;
13942
13943 uts4*)
13944 lt_prog_compiler_pic_F77='-pic'
13945 lt_prog_compiler_static_F77='-Bstatic'
13946 ;;
13947
13948 *)
13949 lt_prog_compiler_can_build_shared_F77=no
13950 ;;
13951 esac
13952 fi
13953
13954{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13955$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13956
13957#
13958# Check to make sure the PIC flag actually works.
13959#
13960if test -n "$lt_prog_compiler_pic_F77"; then
13961
13962{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13963$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13964if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13966else
13967 lt_cv_prog_compiler_pic_works_F77=no
13968 ac_outfile=conftest.$ac_objext
13969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 # The option is referenced via a variable to avoid confusing sed.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>conftest.err)
13982 ac_status=$?
13983 cat conftest.err >&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s "$ac_outfile"; then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings other than the usual output.
13988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13991 lt_cv_prog_compiler_pic_works_F77=yes
13992 fi
13993 fi
13994 $rm conftest*
13995
13996fi
13997{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13998$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13999
14000if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14001 case $lt_prog_compiler_pic_F77 in
14002 "" | " "*) ;;
14003 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14004 esac
14005else
14006 lt_prog_compiler_pic_F77=
14007 lt_prog_compiler_can_build_shared_F77=no
14008fi
14009
14010fi
14011case $host_os in
14012 # For platforms which do not support PIC, -DPIC is meaningless:
14013 *djgpp*)
14014 lt_prog_compiler_pic_F77=
14015 ;;
14016 *)
14017 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14018 ;;
14019esac
14020
14021#
14022# Check to make sure the static flag actually works.
14023#
14024wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14025{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14026$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14027if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14028 $as_echo_n "(cached) " >&6
14029else
14030 lt_cv_prog_compiler_static_works_F77=no
14031 save_LDFLAGS="$LDFLAGS"
14032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14035 # The linker can only warn and ignore the option if not recognized
14036 # So say no if there are warnings
14037 if test -s conftest.err; then
14038 # Append any errors to the config.log.
14039 cat conftest.err 1>&5
14040 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_cv_prog_compiler_static_works_F77=yes
14044 fi
14045 else
14046 lt_cv_prog_compiler_static_works_F77=yes
14047 fi
14048 fi
14049 $rm -r conftest*
14050 LDFLAGS="$save_LDFLAGS"
14051
14052fi
14053{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14054$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14055
14056if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14057 :
14058else
14059 lt_prog_compiler_static_F77=
14060fi
14061
14062
14063{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14065if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14066 $as_echo_n "(cached) " >&6
14067else
14068 lt_cv_prog_compiler_c_o_F77=no
14069 $rm -r conftest 2>/dev/null
14070 mkdir conftest
14071 cd conftest
14072 mkdir out
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074
14075 lt_compiler_flag="-o out/conftest2.$ac_objext"
14076 # Insert the option either (1) after the last *FLAGS variable, or
14077 # (2) before a word containing "conftest.", or (3) at the end.
14078 # Note that $ac_compile itself does not contain backslashes and begins
14079 # with a dollar sign (not a hyphen), so the echo should work correctly.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>out/conftest.err)
14086 ac_status=$?
14087 cat out/conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14090 then
14091 # The compiler can only warn and ignore the option if not recognized
14092 # So say no if there are warnings
14093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14096 lt_cv_prog_compiler_c_o_F77=yes
14097 fi
14098 fi
14099 chmod u+w . 2>&5
14100 $rm conftest*
14101 # SGI C++ compiler will create directory out/ii_files/ for
14102 # template instantiation
14103 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14104 $rm out/* && rmdir out
14105 cd ..
14106 rmdir conftest
14107 $rm conftest*
14108
14109fi
14110{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14111$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14112
14113
14114hard_links="nottested"
14115if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14116 # do not overwrite the value of need_locks provided by the user
14117 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14118$as_echo_n "checking if we can lock with hard links... " >&6; }
14119 hard_links=yes
14120 $rm conftest*
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 touch conftest.a
14123 ln conftest.a conftest.b 2>&5 || hard_links=no
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14126$as_echo "$hard_links" >&6; }
14127 if test "$hard_links" = no; then
14128 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14129$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14130 need_locks=warn
14131 fi
14132else
14133 need_locks=no
14134fi
14135
14136{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14137$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14138
14139 runpath_var=
14140 allow_undefined_flag_F77=
14141 enable_shared_with_static_runtimes_F77=no
14142 archive_cmds_F77=
14143 archive_expsym_cmds_F77=
14144 old_archive_From_new_cmds_F77=
14145 old_archive_from_expsyms_cmds_F77=
14146 export_dynamic_flag_spec_F77=
14147 whole_archive_flag_spec_F77=
14148 thread_safe_flag_spec_F77=
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_direct_F77=no
14153 hardcode_minus_L_F77=no
14154 hardcode_shlibpath_var_F77=unsupported
14155 link_all_deplibs_F77=unknown
14156 hardcode_automatic_F77=no
14157 module_cmds_F77=
14158 module_expsym_cmds_F77=
14159 always_export_symbols_F77=no
14160 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 # include_expsyms should be a list of space-separated symbols to be *always*
14162 # included in the symbol list
14163 include_expsyms_F77=
14164 # exclude_expsyms can be an extended regexp of symbols to exclude
14165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14167 # as well as any symbol that contains `d'.
14168 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14170 # platforms (ab)use it in PIC code, but their linkers get confused if
14171 # the symbol is explicitly referenced. Since portable code cannot
14172 # rely on this symbol name, it's probably fine to never include it in
14173 # preloaded symbol tables.
14174 # Exclude shared library initialization/finalization symbols.
14175 extract_expsyms_cmds=
14176 # Just being paranoid about ensuring that cc_basename is set.
14177 for cc_temp in $compiler""; do
14178 case $cc_temp in
14179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14181 \-*) ;;
14182 *) break;;
14183 esac
14184done
14185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14186
14187 case $host_os in
14188 cygwin* | mingw* | pw32*)
14189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14190 # When not using gcc, we currently assume that we are using
14191 # Microsoft Visual C++.
14192 if test "$GCC" != yes; then
14193 with_gnu_ld=no
14194 fi
14195 ;;
14196 interix*)
14197 # we just hope/assume this is gcc and not c89 (= MSVC++)
14198 with_gnu_ld=yes
14199 ;;
14200 openbsd*)
14201 with_gnu_ld=no
14202 ;;
14203 esac
14204
14205 ld_shlibs_F77=yes
14206 if test "$with_gnu_ld" = yes; then
14207 # If archive_cmds runs LD, not CC, wlarc should be empty
14208 wlarc='${wl}'
14209
14210 # Set some defaults for GNU ld with shared library support. These
14211 # are reset later if shared libraries are not supported. Putting them
14212 # here allows them to be overridden if necessary.
14213 runpath_var=LD_RUN_PATH
14214 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14215 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14216 # ancient GNU ld didn't support --whole-archive et. al.
14217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14218 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14219 else
14220 whole_archive_flag_spec_F77=
14221 fi
14222 supports_anon_versioning=no
14223 case `$LD -v 2>/dev/null` in
14224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14227 *\ 2.11.*) ;; # other 2.11 versions
14228 *) supports_anon_versioning=yes ;;
14229 esac
14230
14231 # See if GNU ld supports shared libraries.
14232 case $host_os in
14233 aix[3-9]*)
14234 # On AIX/PPC, the GNU linker is very broken
14235 if test "$host_cpu" != ia64; then
14236 ld_shlibs_F77=no
14237 cat <<EOF 1>&2
14238
14239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14240*** to be unable to reliably create shared libraries on AIX.
14241*** Therefore, libtool is disabling shared libraries support. If you
14242*** really care for shared libraries, you may want to modify your PATH
14243*** so that a non-GNU linker is found, and then restart.
14244
14245EOF
14246 fi
14247 ;;
14248
14249 amigaos*)
14250 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)'
14251 hardcode_libdir_flag_spec_F77='-L$libdir'
14252 hardcode_minus_L_F77=yes
14253
14254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14255 # that the semantics of dynamic libraries on AmigaOS, at least up
14256 # to version 4, is to share data among multiple programs linked
14257 # with the same dynamic library. Since this doesn't match the
14258 # behavior of shared libraries on other platforms, we can't use
14259 # them.
14260 ld_shlibs_F77=no
14261 ;;
14262
14263 beos*)
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 allow_undefined_flag_F77=unsupported
14266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14267 # support --undefined. This deserves some investigation. FIXME
14268 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269 else
14270 ld_shlibs_F77=no
14271 fi
14272 ;;
14273
14274 cygwin* | mingw* | pw32*)
14275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14276 # as there is no search path for DLLs.
14277 hardcode_libdir_flag_spec_F77='-L$libdir'
14278 allow_undefined_flag_F77=unsupported
14279 always_export_symbols_F77=no
14280 enable_shared_with_static_runtimes_F77=yes
14281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14282
14283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 # If the export-symbols file already is a .def file (1st line
14286 # is EXPORTS), use it as is; otherwise, prepend...
14287 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14288 cp $export_symbols $output_objdir/$soname.def;
14289 else
14290 echo EXPORTS > $output_objdir/$soname.def;
14291 cat $export_symbols >> $output_objdir/$soname.def;
14292 fi~
14293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14294 else
14295 ld_shlibs_F77=no
14296 fi
14297 ;;
14298
14299 interix[3-9]*)
14300 hardcode_direct_F77=no
14301 hardcode_shlibpath_var_F77=no
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 export_dynamic_flag_spec_F77='${wl}-E'
14304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14305 # Instead, shared libraries are loaded at an image base (0x10000000 by
14306 # default) and relocated if they conflict, which is a slow very memory
14307 # consuming and fragmenting process. To avoid this, we pick a random,
14308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14310 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'
14311 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'
14312 ;;
14313
14314 gnu* | linux* | k*bsd*-gnu)
14315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14316 tmp_addflag=
14317 case $cc_basename,$host_cpu in
14318 pgcc*) # Portland Group C compiler
14319 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'
14320 tmp_addflag=' $pic_flag'
14321 ;;
14322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14323 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'
14324 tmp_addflag=' $pic_flag -Mnomain' ;;
14325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14326 tmp_addflag=' -i_dynamic' ;;
14327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14328 tmp_addflag=' -i_dynamic -nofor_main' ;;
14329 ifc* | ifort*) # Intel Fortran compiler
14330 tmp_addflag=' -nofor_main' ;;
14331 esac
14332 case `$CC -V 2>&1 | sed 5q` in
14333 *Sun\ C*) # Sun C 5.9
14334 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'
14335 tmp_sharedflag='-G' ;;
14336 *Sun\ F*) # Sun Fortran 8.3
14337 tmp_sharedflag='-G' ;;
14338 *)
14339 tmp_sharedflag='-shared' ;;
14340 esac
14341 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 fi
14349 else
14350 ld_shlibs_F77=no
14351 fi
14352 ;;
14353
14354 netbsd*)
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14357 wlarc=
14358 else
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14361 fi
14362 ;;
14363
14364 solaris*)
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14366 ld_shlibs_F77=no
14367 cat <<EOF 1>&2
14368
14369*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370*** create shared libraries on Solaris systems. Therefore, libtool
14371*** is disabling shared libraries support. We urge you to upgrade GNU
14372*** binutils to release 2.9.1 or newer. Another option is to modify
14373*** your PATH or compiler configuration so that the native linker is
14374*** used, and then restart.
14375
14376EOF
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14388 ld_shlibs_F77=no
14389 cat <<_LT_EOF 1>&2
14390
14391*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392*** reliably create shared libraries on SCO systems. Therefore, libtool
14393*** is disabling shared libraries support. We urge you to upgrade GNU
14394*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395*** your PATH or compiler configuration so that the native linker is
14396*** used, and then restart.
14397
14398_LT_EOF
14399 ;;
14400 *)
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14405 else
14406 ld_shlibs_F77=no
14407 fi
14408 ;;
14409 esac
14410 ;;
14411
14412 sunos4*)
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14414 wlarc=
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 *)
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 else
14424 ld_shlibs_F77=no
14425 fi
14426 ;;
14427 esac
14428
14429 if test "$ld_shlibs_F77" = no; then
14430 runpath_var=
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14434 fi
14435 else
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14437 case $host_os in
14438 aix3*)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 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'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14447 # broken collect2.
14448 hardcode_direct_F77=unsupported
14449 fi
14450 ;;
14451
14452 aix[4-9]*)
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14458 no_entry_flag=""
14459 else
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 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'
14464 else
14465 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'
14466 fi
14467 aix_use_runtimelinking=no
14468
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14476 break
14477 fi
14478 done
14479 ;;
14480 esac
14481
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14484 fi
14485
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14496
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14504 then
14505 # We have reworked collect2
14506 :
14507 else
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14516 fi
14517 ;;
14518 esac
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14522 fi
14523 else
14524 # not using gcc
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14528 shared_flag='-G'
14529 else
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14532 else
14533 shared_flag='${wl}-bM:SRE'
14534 fi
14535 fi
14536 fi
14537
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 program main
14548
14549 end
14550_ACEOF
14551rm -f conftest.$ac_objext conftest$ac_exeext
14552if { (ac_try="$ac_link"
14553case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558$as_echo "$ac_try_echo") >&5
14559 (eval "$ac_link") 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_f77_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest$ac_exeext && {
14569 test "$cross_compiling" = yes ||
14570 $as_test_x conftest$ac_exeext
14571 }; then
14572
14573lt_aix_libpath_sed='
14574 /Import File Strings/,/^$/ {
14575 /^0/ {
14576 s/^0 *\(.*\)$/\1/
14577 p
14578 }
14579 }'
14580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14581# Check for a 64-bit object if we didn't find anything.
14582if test -z "$aix_libpath"; then
14583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14584fi
14585else
14586 $as_echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589
14590fi
14591
14592rm -rf conftest.dSYM
14593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14596
14597 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14598 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"
14599 else
14600 if test "$host_cpu" = ia64; then
14601 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14602 allow_undefined_flag_F77="-z nodefs"
14603 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"
14604 else
14605 # Determine the default libpath from the value encoded in an empty executable.
14606 cat >conftest.$ac_ext <<_ACEOF
14607 program main
14608
14609 end
14610_ACEOF
14611rm -f conftest.$ac_objext conftest$ac_exeext
14612if { (ac_try="$ac_link"
14613case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618$as_echo "$ac_try_echo") >&5
14619 (eval "$ac_link") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_f77_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext && {
14629 test "$cross_compiling" = yes ||
14630 $as_test_x conftest$ac_exeext
14631 }; then
14632
14633lt_aix_libpath_sed='
14634 /Import File Strings/,/^$/ {
14635 /^0/ {
14636 s/^0 *\(.*\)$/\1/
14637 p
14638 }
14639 }'
14640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641# Check for a 64-bit object if we didn't find anything.
14642if test -z "$aix_libpath"; then
14643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14644fi
14645else
14646 $as_echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
14650fi
14651
14652rm -rf conftest.dSYM
14653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14654 conftest$ac_exeext conftest.$ac_ext
14655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14656
14657 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14658 # Warning - without using the other run time loading flags,
14659 # -berok will link without error, but may produce a broken library.
14660 no_undefined_flag_F77=' ${wl}-bernotok'
14661 allow_undefined_flag_F77=' ${wl}-berok'
14662 # Exported symbols can be pulled into shared objects from archives
14663 whole_archive_flag_spec_F77='$convenience'
14664 archive_cmds_need_lc_F77=yes
14665 # This is similar to how AIX traditionally builds its shared libraries.
14666 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'
14667 fi
14668 fi
14669 ;;
14670
14671 amigaos*)
14672 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)'
14673 hardcode_libdir_flag_spec_F77='-L$libdir'
14674 hardcode_minus_L_F77=yes
14675 # see comment about different semantics on the GNU ld section
14676 ld_shlibs_F77=no
14677 ;;
14678
14679 bsdi[45]*)
14680 export_dynamic_flag_spec_F77=-rdynamic
14681 ;;
14682
14683 cygwin* | mingw* | pw32*)
14684 # When not using gcc, we currently assume that we are using
14685 # Microsoft Visual C++.
14686 # hardcode_libdir_flag_spec is actually meaningless, as there is
14687 # no search path for DLLs.
14688 hardcode_libdir_flag_spec_F77=' '
14689 allow_undefined_flag_F77=unsupported
14690 # Tell ltmain to make .lib files, not .a files.
14691 libext=lib
14692 # Tell ltmain to make .dll files, not .so files.
14693 shrext_cmds=".dll"
14694 # FIXME: Setting linknames here is a bad hack.
14695 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14696 # The linker will automatically build a .lib file if we build a DLL.
14697 old_archive_From_new_cmds_F77='true'
14698 # FIXME: Should let the user specify the lib program.
14699 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14700 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14701 enable_shared_with_static_runtimes_F77=yes
14702 ;;
14703
14704 darwin* | rhapsody*)
14705 case $host_os in
14706 rhapsody* | darwin1.[012])
14707 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14708 ;;
14709 *) # Darwin 1.3 on
14710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14711 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14712 else
14713 case ${MACOSX_DEPLOYMENT_TARGET} in
14714 10.[012])
14715 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14716 ;;
14717 10.*)
14718 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14719 ;;
14720 esac
14721 fi
14722 ;;
14723 esac
14724 archive_cmds_need_lc_F77=no
14725 hardcode_direct_F77=no
14726 hardcode_automatic_F77=yes
14727 hardcode_shlibpath_var_F77=unsupported
14728 whole_archive_flag_spec_F77=''
14729 link_all_deplibs_F77=yes
14730 if test "$GCC" = yes ; then
14731 output_verbose_link_cmd='echo'
14732 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}"
14733 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14734 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}"
14735 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}"
14736 else
14737 case $cc_basename in
14738 xlc*)
14739 output_verbose_link_cmd='echo'
14740 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14741 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14743 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}'
14744 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}'
14745 ;;
14746 *)
14747 ld_shlibs_F77=no
14748 ;;
14749 esac
14750 fi
14751 ;;
14752
14753 dgux*)
14754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_libdir_flag_spec_F77='-L$libdir'
14756 hardcode_shlibpath_var_F77=no
14757 ;;
14758
14759 freebsd1*)
14760 ld_shlibs_F77=no
14761 ;;
14762
14763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14764 # support. Future versions do this automatically, but an explicit c++rt0.o
14765 # does not break anything, and helps significantly (at the cost of a little
14766 # extra space).
14767 freebsd2.2*)
14768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14769 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 hardcode_direct_F77=yes
14771 hardcode_shlibpath_var_F77=no
14772 ;;
14773
14774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14775 freebsd2*)
14776 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_direct_F77=yes
14778 hardcode_minus_L_F77=yes
14779 hardcode_shlibpath_var_F77=no
14780 ;;
14781
14782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14783 freebsd* | dragonfly*)
14784 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14785 hardcode_libdir_flag_spec_F77='-R$libdir'
14786 hardcode_direct_F77=yes
14787 hardcode_shlibpath_var_F77=no
14788 ;;
14789
14790 hpux9*)
14791 if test "$GCC" = yes; then
14792 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'
14793 else
14794 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'
14795 fi
14796 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14797 hardcode_libdir_separator_F77=:
14798 hardcode_direct_F77=yes
14799
14800 # hardcode_minus_L: Not really in the search PATH,
14801 # but as the default location of the library.
14802 hardcode_minus_L_F77=yes
14803 export_dynamic_flag_spec_F77='${wl}-E'
14804 ;;
14805
14806 hpux10*)
14807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14808 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14809 else
14810 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14811 fi
14812 if test "$with_gnu_ld" = no; then
14813 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14814 hardcode_libdir_separator_F77=:
14815
14816 hardcode_direct_F77=yes
14817 export_dynamic_flag_spec_F77='${wl}-E'
14818
14819 # hardcode_minus_L: Not really in the search PATH,
14820 # but as the default location of the library.
14821 hardcode_minus_L_F77=yes
14822 fi
14823 ;;
14824
14825 hpux11*)
14826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14827 case $host_cpu in
14828 hppa*64*)
14829 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 ;;
14831 ia64*)
14832 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14833 ;;
14834 *)
14835 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 esac
14838 else
14839 case $host_cpu in
14840 hppa*64*)
14841 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 ia64*)
14844 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14845 ;;
14846 *)
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 esac
14850 fi
14851 if test "$with_gnu_ld" = no; then
14852 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14853 hardcode_libdir_separator_F77=:
14854
14855 case $host_cpu in
14856 hppa*64*|ia64*)
14857 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14858 hardcode_direct_F77=no
14859 hardcode_shlibpath_var_F77=no
14860 ;;
14861 *)
14862 hardcode_direct_F77=yes
14863 export_dynamic_flag_spec_F77='${wl}-E'
14864
14865 # hardcode_minus_L: Not really in the search PATH,
14866 # but as the default location of the library.
14867 hardcode_minus_L_F77=yes
14868 ;;
14869 esac
14870 fi
14871 ;;
14872
14873 irix5* | irix6* | nonstopux*)
14874 if test "$GCC" = yes; then
14875 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'
14876 else
14877 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'
14878 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14879 fi
14880 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14882 link_all_deplibs_F77=yes
14883 ;;
14884
14885 netbsd*)
14886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14888 else
14889 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14890 fi
14891 hardcode_libdir_flag_spec_F77='-R$libdir'
14892 hardcode_direct_F77=yes
14893 hardcode_shlibpath_var_F77=no
14894 ;;
14895
14896 newsos6)
14897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14900 hardcode_libdir_separator_F77=:
14901 hardcode_shlibpath_var_F77=no
14902 ;;
14903
14904 openbsd*)
14905 if test -f /usr/libexec/ld.so; then
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14911 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14912 export_dynamic_flag_spec_F77='${wl}-E'
14913 else
14914 case $host_os in
14915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14917 hardcode_libdir_flag_spec_F77='-R$libdir'
14918 ;;
14919 *)
14920 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14922 ;;
14923 esac
14924 fi
14925 else
14926 ld_shlibs_F77=no
14927 fi
14928 ;;
14929
14930 os2*)
14931 hardcode_libdir_flag_spec_F77='-L$libdir'
14932 hardcode_minus_L_F77=yes
14933 allow_undefined_flag_F77=unsupported
14934 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'
14935 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14936 ;;
14937
14938 osf3*)
14939 if test "$GCC" = yes; then
14940 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14941 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'
14942 else
14943 allow_undefined_flag_F77=' -expect_unresolved \*'
14944 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'
14945 fi
14946 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14947 hardcode_libdir_separator_F77=:
14948 ;;
14949
14950 osf4* | osf5*) # as osf3* with the addition of -msym flag
14951 if test "$GCC" = yes; then
14952 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14953 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'
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14955 else
14956 allow_undefined_flag_F77=' -expect_unresolved \*'
14957 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'
14958 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~
14959 $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'
14960
14961 # Both c and cxx compiler support -rpath directly
14962 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14963 fi
14964 hardcode_libdir_separator_F77=:
14965 ;;
14966
14967 solaris*)
14968 no_undefined_flag_F77=' -z text'
14969 if test "$GCC" = yes; then
14970 wlarc='${wl}'
14971 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14974 else
14975 wlarc=''
14976 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14979 fi
14980 hardcode_libdir_flag_spec_F77='-R$libdir'
14981 hardcode_shlibpath_var_F77=no
14982 case $host_os in
14983 solaris2.[0-5] | solaris2.[0-5].*) ;;
14984 *)
14985 # The compiler driver will combine and reorder linker options,
14986 # but understands `-z linker_flag'. GCC discards it without `$wl',
14987 # but is careful enough not to reorder.
14988 # Supported since Solaris 2.6 (maybe 2.5.1?)
14989 if test "$GCC" = yes; then
14990 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14991 else
14992 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14993 fi
14994 ;;
14995 esac
14996 link_all_deplibs_F77=yes
14997 ;;
14998
14999 sunos4*)
15000 if test "x$host_vendor" = xsequent; then
15001 # Use $CC to link under sequent, because it throws in some extra .o
15002 # files that make .init and .fini sections work.
15003 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15004 else
15005 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15006 fi
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_direct_F77=yes
15009 hardcode_minus_L_F77=yes
15010 hardcode_shlibpath_var_F77=no
15011 ;;
15012
15013 sysv4)
15014 case $host_vendor in
15015 sni)
15016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15017 hardcode_direct_F77=yes # is this really true???
15018 ;;
15019 siemens)
15020 ## LD is ld it makes a PLAMLIB
15021 ## CC just makes a GrossModule.
15022 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15023 reload_cmds_F77='$CC -r -o $output$reload_objs'
15024 hardcode_direct_F77=no
15025 ;;
15026 motorola)
15027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15029 ;;
15030 esac
15031 runpath_var='LD_RUN_PATH'
15032 hardcode_shlibpath_var_F77=no
15033 ;;
15034
15035 sysv4.3*)
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_shlibpath_var_F77=no
15038 export_dynamic_flag_spec_F77='-Bexport'
15039 ;;
15040
15041 sysv4*MP*)
15042 if test -d /usr/nec; then
15043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044 hardcode_shlibpath_var_F77=no
15045 runpath_var=LD_RUN_PATH
15046 hardcode_runpath_var=yes
15047 ld_shlibs_F77=yes
15048 fi
15049 ;;
15050
15051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15052 no_undefined_flag_F77='${wl}-z,text'
15053 archive_cmds_need_lc_F77=no
15054 hardcode_shlibpath_var_F77=no
15055 runpath_var='LD_RUN_PATH'
15056
15057 if test "$GCC" = yes; then
15058 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 else
15061 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 fi
15064 ;;
15065
15066 sysv5* | sco3.2v5* | sco5v6*)
15067 # Note: We can NOT use -z defs as we might desire, because we do not
15068 # link with -lc, and that would cause any symbols used from libc to
15069 # always be unresolved, which means just about no library would
15070 # ever link correctly. If we're not using GNU ld we use -z text
15071 # though, which does catch some bad symbols but isn't as heavy-handed
15072 # as -z defs.
15073 no_undefined_flag_F77='${wl}-z,text'
15074 allow_undefined_flag_F77='${wl}-z,nodefs'
15075 archive_cmds_need_lc_F77=no
15076 hardcode_shlibpath_var_F77=no
15077 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15078 hardcode_libdir_separator_F77=':'
15079 link_all_deplibs_F77=yes
15080 export_dynamic_flag_spec_F77='${wl}-Bexport'
15081 runpath_var='LD_RUN_PATH'
15082
15083 if test "$GCC" = yes; then
15084 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 else
15087 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 fi
15090 ;;
15091
15092 uts4*)
15093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_libdir_flag_spec_F77='-L$libdir'
15095 hardcode_shlibpath_var_F77=no
15096 ;;
15097
15098 *)
15099 ld_shlibs_F77=no
15100 ;;
15101 esac
15102 fi
15103
15104{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15105$as_echo "$ld_shlibs_F77" >&6; }
15106test "$ld_shlibs_F77" = no && can_build_shared=no
15107
15108#
15109# Do we need to explicitly link libc?
15110#
15111case "x$archive_cmds_need_lc_F77" in
15112x|xyes)
15113 # Assume -lc should be added
15114 archive_cmds_need_lc_F77=yes
15115
15116 if test "$enable_shared" = yes && test "$GCC" = yes; then
15117 case $archive_cmds_F77 in
15118 *'~'*)
15119 # FIXME: we may have to deal with multi-command sequences.
15120 ;;
15121 '$CC '*)
15122 # Test whether the compiler implicitly links with -lc since on some
15123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15124 # to ld, don't add -lc before -lgcc.
15125 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15126$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15127 $rm conftest*
15128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>&5
15132 ac_status=$?
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } 2>conftest.err; then
15135 soname=conftest
15136 lib=conftest
15137 libobjs=conftest.$ac_objext
15138 deplibs=
15139 wl=$lt_prog_compiler_wl_F77
15140 pic_flag=$lt_prog_compiler_pic_F77
15141 compiler_flags=-v
15142 linker_flags=-v
15143 verstring=
15144 output_objdir=.
15145 libname=conftest
15146 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15147 allow_undefined_flag_F77=
15148 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15149 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15150 ac_status=$?
15151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }
15153 then
15154 archive_cmds_need_lc_F77=no
15155 else
15156 archive_cmds_need_lc_F77=yes
15157 fi
15158 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15159 else
15160 cat conftest.err 1>&5
15161 fi
15162 $rm conftest*
15163 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15164$as_echo "$archive_cmds_need_lc_F77" >&6; }
15165 ;;
15166 esac
15167 fi
15168 ;;
15169esac
15170
15171{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15172$as_echo_n "checking dynamic linker characteristics... " >&6; }
15173library_names_spec=
15174libname_spec='lib$name'
15175soname_spec=
15176shrext_cmds=".so"
15177postinstall_cmds=
15178postuninstall_cmds=
15179finish_cmds=
15180finish_eval=
15181shlibpath_var=
15182shlibpath_overrides_runpath=unknown
15183version_type=none
15184dynamic_linker="$host_os ld.so"
15185sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186
15187need_lib_prefix=unknown
15188hardcode_into_libs=no
15189
15190# when you set need_version to no, make sure it does not cause -set_version
15191# flags to be left without arguments
15192need_version=unknown
15193
15194case $host_os in
15195aix3*)
15196 version_type=linux
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15198 shlibpath_var=LIBPATH
15199
15200 # AIX 3 has no versioning support, so we append a major version to the name.
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 ;;
15203
15204aix[4-9]*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 hardcode_into_libs=yes
15209 if test "$host_cpu" = ia64; then
15210 # AIX 5 supports IA64
15211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 else
15214 # With GCC up to 2.95.x, collect2 would create an import file
15215 # for dependence libraries. The import file would start with
15216 # the line `#! .'. This would cause the generated library to
15217 # depend on `.', always an invalid library. This was fixed in
15218 # development snapshots of GCC prior to 3.0.
15219 case $host_os in
15220 aix4 | aix4.[01] | aix4.[01].*)
15221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo ' yes '
15223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15224 :
15225 else
15226 can_build_shared=no
15227 fi
15228 ;;
15229 esac
15230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15231 # soname into executable. Probably we can add versioning support to
15232 # collect2, so additional links can be useful in future.
15233 if test "$aix_use_runtimelinking" = yes; then
15234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15235 # instead of lib<name>.a to let people know that these are not
15236 # typical AIX shared libraries.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 else
15239 # We preserve .a as extension for shared libraries through AIX4.2
15240 # and later when we are not doing run time linking.
15241 library_names_spec='${libname}${release}.a $libname.a'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 fi
15244 shlibpath_var=LIBPATH
15245 fi
15246 ;;
15247
15248amigaos*)
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15252 ;;
15253
15254beos*)
15255 library_names_spec='${libname}${shared_ext}'
15256 dynamic_linker="$host_os ld.so"
15257 shlibpath_var=LIBRARY_PATH
15258 ;;
15259
15260bsdi[45]*)
15261 version_type=linux
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15269 # the default ld.so.conf also contains /usr/contrib/lib and
15270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15271 # libtool to hard-code these into programs
15272 ;;
15273
15274cygwin* | mingw* | pw32*)
15275 version_type=windows
15276 shrext_cmds=".dll"
15277 need_version=no
15278 need_lib_prefix=no
15279
15280 case $GCC,$host_os in
15281 yes,cygwin* | yes,mingw* | yes,pw32*)
15282 library_names_spec='$libname.dll.a'
15283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15284 postinstall_cmds='base_file=`basename \${file}`~
15285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15286 dldir=$destdir/`dirname \$dlpath`~
15287 test -d \$dldir || mkdir -p \$dldir~
15288 $install_prog $dir/$dlname \$dldir/$dlname~
15289 chmod a+x \$dldir/$dlname'
15290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15291 dlpath=$dir/\$dldll~
15292 $rm \$dlpath'
15293 shlibpath_overrides_runpath=yes
15294
15295 case $host_os in
15296 cygwin*)
15297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15300 ;;
15301 mingw*)
15302 # MinGW DLLs use traditional 'lib' prefix
15303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15306 # It is most probably a Windows format PATH printed by
15307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15308 # path with ; separators, and with drive letters. We can handle the
15309 # drive letters (cygwin fileutils understands them), so leave them,
15310 # especially as we might pass files found there to a mingw objdump,
15311 # which wouldn't understand a cygwinified path. Ahh.
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15313 else
15314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15315 fi
15316 ;;
15317 pw32*)
15318 # pw32 DLLs use 'pw' prefix rather than 'lib'
15319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320 ;;
15321 esac
15322 ;;
15323
15324 *)
15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15326 ;;
15327 esac
15328 dynamic_linker='Win32 ld.exe'
15329 # FIXME: first we should search . and the directory the executable is in
15330 shlibpath_var=PATH
15331 ;;
15332
15333darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15343
15344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15345 ;;
15346
15347dgux*)
15348 version_type=linux
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 ;;
15355
15356freebsd1*)
15357 dynamic_linker=no
15358 ;;
15359
15360freebsd* | dragonfly*)
15361 # DragonFly does not have aout. When/if they implement a new
15362 # versioning mechanism, adjust this.
15363 if test -x /usr/bin/objformat; then
15364 objformat=`/usr/bin/objformat`
15365 else
15366 case $host_os in
15367 freebsd[123]*) objformat=aout ;;
15368 *) objformat=elf ;;
15369 esac
15370 fi
15371 version_type=freebsd-$objformat
15372 case $version_type in
15373 freebsd-elf*)
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15375 need_version=no
15376 need_lib_prefix=no
15377 ;;
15378 freebsd-*)
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15380 need_version=yes
15381 ;;
15382 esac
15383 shlibpath_var=LD_LIBRARY_PATH
15384 case $host_os in
15385 freebsd2*)
15386 shlibpath_overrides_runpath=yes
15387 ;;
15388 freebsd3.[01]* | freebsdelf3.[01]*)
15389 shlibpath_overrides_runpath=yes
15390 hardcode_into_libs=yes
15391 ;;
15392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15396 ;;
15397 *) # from 4.6 on, and DragonFly
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 ;;
15401 esac
15402 ;;
15403
15404gnu*)
15405 version_type=linux
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 hardcode_into_libs=yes
15412 ;;
15413
15414hpux9* | hpux10* | hpux11*)
15415 # Give a soname corresponding to the major version so that dld.sl refuses to
15416 # link against other versions.
15417 version_type=sunos
15418 need_lib_prefix=no
15419 need_version=no
15420 case $host_cpu in
15421 ia64*)
15422 shrext_cmds='.so'
15423 hardcode_into_libs=yes
15424 dynamic_linker="$host_os dld.so"
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15431 else
15432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15433 fi
15434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15435 ;;
15436 hppa*64*)
15437 shrext_cmds='.sl'
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.sl"
15440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 ;;
15447 *)
15448 shrext_cmds='.sl'
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=SHLIB_PATH
15451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 ;;
15455 esac
15456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15457 postinstall_cmds='chmod 555 $lib'
15458 ;;
15459
15460interix[3-9]*)
15461 version_type=linux
15462 need_lib_prefix=no
15463 need_version=no
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=no
15469 hardcode_into_libs=yes
15470 ;;
15471
15472irix5* | irix6* | nonstopux*)
15473 case $host_os in
15474 nonstopux*) version_type=nonstopux ;;
15475 *)
15476 if test "$lt_cv_prog_gnu_ld" = yes; then
15477 version_type=linux
15478 else
15479 version_type=irix
15480 fi ;;
15481 esac
15482 need_lib_prefix=no
15483 need_version=no
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15486 case $host_os in
15487 irix5* | nonstopux*)
15488 libsuff= shlibsuff=
15489 ;;
15490 *)
15491 case $LD in # libtool.m4 will add one of these switches to LD
15492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15493 libsuff= shlibsuff= libmagic=32-bit;;
15494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15495 libsuff=32 shlibsuff=N32 libmagic=N32;;
15496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15498 *) libsuff= shlibsuff= libmagic=never-match;;
15499 esac
15500 ;;
15501 esac
15502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15503 shlibpath_overrides_runpath=no
15504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15506 hardcode_into_libs=yes
15507 ;;
15508
15509# No shared lib support for Linux oldld, aout, or coff.
15510linux*oldld* | linux*aout* | linux*coff*)
15511 dynamic_linker=no
15512 ;;
15513
15514# This must be Linux ELF.
15515linux* | k*bsd*-gnu)
15516 version_type=linux
15517 need_lib_prefix=no
15518 need_version=no
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=no
15524 # This implies no fast_install, which is unacceptable.
15525 # Some rework will be needed to allow for fast_install
15526 # before this can be enabled.
15527 hardcode_into_libs=yes
15528
15529 # Append ld.so.conf contents to the search path
15530 if test -f /etc/ld.so.conf; then
15531 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' ' '`
15532 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15533 fi
15534
15535 # We used to test for /lib/ld.so.1 and disable shared libraries on
15536 # powerpc, because MkLinux only supported shared libraries with the
15537 # GNU dynamic linker. Since this was broken with cross compilers,
15538 # most powerpc-linux boxes support dynamic linking these days and
15539 # people can always --disable-shared, the test was removed, and we
15540 # assume the GNU/Linux dynamic linker is in use.
15541 dynamic_linker='GNU/Linux ld.so'
15542 ;;
15543
15544netbsd*)
15545 version_type=sunos
15546 need_lib_prefix=no
15547 need_version=no
15548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15551 dynamic_linker='NetBSD (a.out) ld.so'
15552 else
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 dynamic_linker='NetBSD ld.elf_so'
15556 fi
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15560 ;;
15561
15562newsos6)
15563 version_type=linux
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 ;;
15568
15569nto-qnx*)
15570 version_type=linux
15571 need_lib_prefix=no
15572 need_version=no
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes
15577 ;;
15578
15579openbsd*)
15580 version_type=sunos
15581 sys_lib_dlsearch_path_spec="/usr/lib"
15582 need_lib_prefix=no
15583 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15584 case $host_os in
15585 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15586 *) need_version=no ;;
15587 esac
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15592 case $host_os in
15593 openbsd2.[89] | openbsd2.[89].*)
15594 shlibpath_overrides_runpath=no
15595 ;;
15596 *)
15597 shlibpath_overrides_runpath=yes
15598 ;;
15599 esac
15600 else
15601 shlibpath_overrides_runpath=yes
15602 fi
15603 ;;
15604
15605os2*)
15606 libname_spec='$name'
15607 shrext_cmds=".dll"
15608 need_lib_prefix=no
15609 library_names_spec='$libname${shared_ext} $libname.a'
15610 dynamic_linker='OS/2 ld.exe'
15611 shlibpath_var=LIBPATH
15612 ;;
15613
15614osf3* | osf4* | osf5*)
15615 version_type=osf
15616 need_lib_prefix=no
15617 need_version=no
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15623 ;;
15624
15625rdos*)
15626 dynamic_linker=no
15627 ;;
15628
15629solaris*)
15630 version_type=linux
15631 need_lib_prefix=no
15632 need_version=no
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15638 # ldd complains unless libraries are executable
15639 postinstall_cmds='chmod +x $lib'
15640 ;;
15641
15642sunos4*)
15643 version_type=sunos
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 if test "$with_gnu_ld" = yes; then
15649 need_lib_prefix=no
15650 fi
15651 need_version=yes
15652 ;;
15653
15654sysv4 | sysv4.3*)
15655 version_type=linux
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 case $host_vendor in
15660 sni)
15661 shlibpath_overrides_runpath=no
15662 need_lib_prefix=no
15663 export_dynamic_flag_spec='${wl}-Blargedynsym'
15664 runpath_var=LD_RUN_PATH
15665 ;;
15666 siemens)
15667 need_lib_prefix=no
15668 ;;
15669 motorola)
15670 need_lib_prefix=no
15671 need_version=no
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15674 ;;
15675 esac
15676 ;;
15677
15678sysv4*MP*)
15679 if test -d /usr/nec ;then
15680 version_type=linux
15681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15682 soname_spec='$libname${shared_ext}.$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 fi
15685 ;;
15686
15687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15688 version_type=freebsd-elf
15689 need_lib_prefix=no
15690 need_version=no
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 hardcode_into_libs=yes
15695 if test "$with_gnu_ld" = yes; then
15696 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15697 shlibpath_overrides_runpath=no
15698 else
15699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15700 shlibpath_overrides_runpath=yes
15701 case $host_os in
15702 sco3.2v5*)
15703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15704 ;;
15705 esac
15706 fi
15707 sys_lib_dlsearch_path_spec='/usr/lib'
15708 ;;
15709
15710uts4*)
15711 version_type=linux
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 ;;
15716
15717*)
15718 dynamic_linker=no
15719 ;;
15720esac
15721{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15722$as_echo "$dynamic_linker" >&6; }
15723test "$dynamic_linker" = no && can_build_shared=no
15724
15725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15727else
15728 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15729fi
15730
15731sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15732if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15733 $as_echo_n "(cached) " >&6
15734else
15735 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15736fi
15737
15738sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15739
15740variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15743fi
15744
15745{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15746$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15747hardcode_action_F77=
15748if test -n "$hardcode_libdir_flag_spec_F77" || \
15749 test -n "$runpath_var_F77" || \
15750 test "X$hardcode_automatic_F77" = "Xyes" ; then
15751
15752 # We can hardcode non-existant directories.
15753 if test "$hardcode_direct_F77" != no &&
15754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15755 # have to relink, otherwise we might link with an installed library
15756 # when we should be linking with a yet-to-be-installed one
15757 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15758 test "$hardcode_minus_L_F77" != no; then
15759 # Linking always hardcodes the temporary library directory.
15760 hardcode_action_F77=relink
15761 else
15762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15763 hardcode_action_F77=immediate
15764 fi
15765else
15766 # We cannot hardcode anything, or else we can only hardcode existing
15767 # directories.
15768 hardcode_action_F77=unsupported
15769fi
15770{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15771$as_echo "$hardcode_action_F77" >&6; }
15772
15773if test "$hardcode_action_F77" = relink; then
15774 # Fast installation is not supported
15775 enable_fast_install=no
15776elif test "$shlibpath_overrides_runpath" = yes ||
15777 test "$enable_shared" = no; then
15778 # Fast installation is not necessary
15779 enable_fast_install=needless
15780fi
15781
15782
15783# The else clause should only fire when bootstrapping the
15784# libtool distribution, otherwise you forgot to ship ltmain.sh
15785# with your package, and you will get complaints that there are
15786# no rules to generate ltmain.sh.
15787if test -f "$ltmain"; then
15788 # See if we are running on zsh, and set the options which allow our commands through
15789 # without removal of \ escapes.
15790 if test -n "${ZSH_VERSION+set}" ; then
15791 setopt NO_GLOB_SUBST
15792 fi
15793 # Now quote all the things that may contain metacharacters while being
15794 # careful not to overquote the AC_SUBSTed values. We take copies of the
15795 # variables and quote the copies for generation of the libtool script.
15796 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15797 SED SHELL STRIP \
15798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15800 deplibs_check_method reload_flag reload_cmds need_locks \
15801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15802 lt_cv_sys_global_symbol_to_c_name_address \
15803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15804 old_postinstall_cmds old_postuninstall_cmds \
15805 compiler_F77 \
15806 CC_F77 \
15807 LD_F77 \
15808 lt_prog_compiler_wl_F77 \
15809 lt_prog_compiler_pic_F77 \
15810 lt_prog_compiler_static_F77 \
15811 lt_prog_compiler_no_builtin_flag_F77 \
15812 export_dynamic_flag_spec_F77 \
15813 thread_safe_flag_spec_F77 \
15814 whole_archive_flag_spec_F77 \
15815 enable_shared_with_static_runtimes_F77 \
15816 old_archive_cmds_F77 \
15817 old_archive_from_new_cmds_F77 \
15818 predep_objects_F77 \
15819 postdep_objects_F77 \
15820 predeps_F77 \
15821 postdeps_F77 \
15822 compiler_lib_search_path_F77 \
15823 compiler_lib_search_dirs_F77 \
15824 archive_cmds_F77 \
15825 archive_expsym_cmds_F77 \
15826 postinstall_cmds_F77 \
15827 postuninstall_cmds_F77 \
15828 old_archive_from_expsyms_cmds_F77 \
15829 allow_undefined_flag_F77 \
15830 no_undefined_flag_F77 \
15831 export_symbols_cmds_F77 \
15832 hardcode_libdir_flag_spec_F77 \
15833 hardcode_libdir_flag_spec_ld_F77 \
15834 hardcode_libdir_separator_F77 \
15835 hardcode_automatic_F77 \
15836 module_cmds_F77 \
15837 module_expsym_cmds_F77 \
15838 lt_cv_prog_compiler_c_o_F77 \
15839 fix_srcfile_path_F77 \
15840 exclude_expsyms_F77 \
15841 include_expsyms_F77; do
15842
15843 case $var in
15844 old_archive_cmds_F77 | \
15845 old_archive_from_new_cmds_F77 | \
15846 archive_cmds_F77 | \
15847 archive_expsym_cmds_F77 | \
15848 module_cmds_F77 | \
15849 module_expsym_cmds_F77 | \
15850 old_archive_from_expsyms_cmds_F77 | \
15851 export_symbols_cmds_F77 | \
15852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15853 postinstall_cmds | postuninstall_cmds | \
15854 old_postinstall_cmds | old_postuninstall_cmds | \
15855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15856 # Double-quote double-evaled strings.
15857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15858 ;;
15859 *)
15860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15861 ;;
15862 esac
15863 done
15864
15865 case $lt_echo in
15866 *'\$0 --fallback-echo"')
15867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15868 ;;
15869 esac
15870
15871cfgfile="$ofile"
15872
15873 cat <<__EOF__ >> "$cfgfile"
15874# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15875
15876# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15877
15878# Shell to use when invoking shell scripts.
15879SHELL=$lt_SHELL
15880
15881# Whether or not to build shared libraries.
15882build_libtool_libs=$enable_shared
15883
15884# Whether or not to build static libraries.
15885build_old_libs=$enable_static
15886
15887# Whether or not to add -lc for building shared libraries.
15888build_libtool_need_lc=$archive_cmds_need_lc_F77
15889
15890# Whether or not to disallow shared libs when runtime libs are static
15891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15892
15893# Whether or not to optimize for fast installation.
15894fast_install=$enable_fast_install
15895
15896# The host system.
15897host_alias=$host_alias
15898host=$host
15899host_os=$host_os
15900
15901# The build system.
15902build_alias=$build_alias
15903build=$build
15904build_os=$build_os
15905
15906# An echo program that does not interpret backslashes.
15907echo=$lt_echo
15908
15909# The archiver.
15910AR=$lt_AR
15911AR_FLAGS=$lt_AR_FLAGS
15912
15913# A C compiler.
15914LTCC=$lt_LTCC
15915
15916# LTCC compiler flags.
15917LTCFLAGS=$lt_LTCFLAGS
15918
15919# A language-specific compiler.
15920CC=$lt_compiler_F77
15921
15922# Is the compiler the GNU C compiler?
15923with_gcc=$GCC_F77
15924
15925# An ERE matcher.
15926EGREP=$lt_EGREP
15927
15928# The linker used to build libraries.
15929LD=$lt_LD_F77
15930
15931# Whether we need hard or soft links.
15932LN_S=$lt_LN_S
15933
15934# A BSD-compatible nm program.
15935NM=$lt_NM
15936
15937# A symbol stripping program
15938STRIP=$lt_STRIP
15939
15940# Used to examine libraries when file_magic_cmd begins "file"
15941MAGIC_CMD=$MAGIC_CMD
15942
15943# Used on cygwin: DLL creation program.
15944DLLTOOL="$DLLTOOL"
15945
15946# Used on cygwin: object dumper.
15947OBJDUMP="$OBJDUMP"
15948
15949# Used on cygwin: assembler.
15950AS="$AS"
15951
15952# The name of the directory that contains temporary libtool files.
15953objdir=$objdir
15954
15955# How to create reloadable object files.
15956reload_flag=$lt_reload_flag
15957reload_cmds=$lt_reload_cmds
15958
15959# How to pass a linker flag through the compiler.
15960wl=$lt_lt_prog_compiler_wl_F77
15961
15962# Object file suffix (normally "o").
15963objext="$ac_objext"
15964
15965# Old archive suffix (normally "a").
15966libext="$libext"
15967
15968# Shared library suffix (normally ".so").
15969shrext_cmds='$shrext_cmds'
15970
15971# Executable file suffix (normally "").
15972exeext="$exeext"
15973
15974# Additional compiler flags for building library objects.
15975pic_flag=$lt_lt_prog_compiler_pic_F77
15976pic_mode=$pic_mode
15977
15978# What is the maximum length of a command?
15979max_cmd_len=$lt_cv_sys_max_cmd_len
15980
15981# Does compiler simultaneously support -c and -o options?
15982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15983
15984# Must we lock files when doing compilation?
15985need_locks=$lt_need_locks
15986
15987# Do we need the lib prefix for modules?
15988need_lib_prefix=$need_lib_prefix
15989
15990# Do we need a version for libraries?
15991need_version=$need_version
15992
15993# Whether dlopen is supported.
15994dlopen_support=$enable_dlopen
15995
15996# Whether dlopen of programs is supported.
15997dlopen_self=$enable_dlopen_self
15998
15999# Whether dlopen of statically linked programs is supported.
16000dlopen_self_static=$enable_dlopen_self_static
16001
16002# Compiler flag to prevent dynamic linking.
16003link_static_flag=$lt_lt_prog_compiler_static_F77
16004
16005# Compiler flag to turn off builtin functions.
16006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16007
16008# Compiler flag to allow reflexive dlopens.
16009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16010
16011# Compiler flag to generate shared objects directly from archives.
16012whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16013
16014# Compiler flag to generate thread-safe objects.
16015thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16016
16017# Library versioning type.
16018version_type=$version_type
16019
16020# Format of library name prefix.
16021libname_spec=$lt_libname_spec
16022
16023# List of archive names. First name is the real one, the rest are links.
16024# The last name is the one that the linker finds with -lNAME.
16025library_names_spec=$lt_library_names_spec
16026
16027# The coded name of the library, if different from the real name.
16028soname_spec=$lt_soname_spec
16029
16030# Commands used to build and install an old-style archive.
16031RANLIB=$lt_RANLIB
16032old_archive_cmds=$lt_old_archive_cmds_F77
16033old_postinstall_cmds=$lt_old_postinstall_cmds
16034old_postuninstall_cmds=$lt_old_postuninstall_cmds
16035
16036# Create an old-style archive from a shared archive.
16037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16038
16039# Create a temporary old-style archive to link instead of a shared archive.
16040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16041
16042# Commands used to build and install a shared archive.
16043archive_cmds=$lt_archive_cmds_F77
16044archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16045postinstall_cmds=$lt_postinstall_cmds
16046postuninstall_cmds=$lt_postuninstall_cmds
16047
16048# Commands used to build a loadable module (assumed same as above if empty)
16049module_cmds=$lt_module_cmds_F77
16050module_expsym_cmds=$lt_module_expsym_cmds_F77
16051
16052# Commands to strip libraries.
16053old_striplib=$lt_old_striplib
16054striplib=$lt_striplib
16055
16056# Dependencies to place before the objects being linked to create a
16057# shared library.
16058predep_objects=$lt_predep_objects_F77
16059
16060# Dependencies to place after the objects being linked to create a
16061# shared library.
16062postdep_objects=$lt_postdep_objects_F77
16063
16064# Dependencies to place before the objects being linked to create a
16065# shared library.
16066predeps=$lt_predeps_F77
16067
16068# Dependencies to place after the objects being linked to create a
16069# shared library.
16070postdeps=$lt_postdeps_F77
16071
16072# The directories searched by this compiler when creating a shared
16073# library
16074compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16075
16076# The library search path used internally by the compiler when linking
16077# a shared library.
16078compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16079
16080# Method to check whether dependent libraries are shared objects.
16081deplibs_check_method=$lt_deplibs_check_method
16082
16083# Command to use when deplibs_check_method == file_magic.
16084file_magic_cmd=$lt_file_magic_cmd
16085
16086# Flag that allows shared libraries with undefined symbols to be built.
16087allow_undefined_flag=$lt_allow_undefined_flag_F77
16088
16089# Flag that forces no undefined symbols.
16090no_undefined_flag=$lt_no_undefined_flag_F77
16091
16092# Commands used to finish a libtool library installation in a directory.
16093finish_cmds=$lt_finish_cmds
16094
16095# Same as above, but a single script fragment to be evaled but not shown.
16096finish_eval=$lt_finish_eval
16097
16098# Take the output of nm and produce a listing of raw symbols and C names.
16099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100
16101# Transform the output of nm in a proper C declaration
16102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103
16104# Transform the output of nm in a C name address pair
16105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16106
16107# This is the shared library runtime path variable.
16108runpath_var=$runpath_var
16109
16110# This is the shared library path variable.
16111shlibpath_var=$shlibpath_var
16112
16113# Is shlibpath searched before the hard-coded library search path?
16114shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16115
16116# How to hardcode a shared library path into an executable.
16117hardcode_action=$hardcode_action_F77
16118
16119# Whether we should hardcode library paths into libraries.
16120hardcode_into_libs=$hardcode_into_libs
16121
16122# Flag to hardcode \$libdir into a binary during linking.
16123# This must work even if \$libdir does not exist.
16124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16125
16126# If ld is used when linking, flag to hardcode \$libdir into
16127# a binary during linking. This must work even if \$libdir does
16128# not exist.
16129hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16130
16131# Whether we need a single -rpath flag with a separated argument.
16132hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16133
16134# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16135# resulting binary.
16136hardcode_direct=$hardcode_direct_F77
16137
16138# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16139# resulting binary.
16140hardcode_minus_L=$hardcode_minus_L_F77
16141
16142# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16143# the resulting binary.
16144hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16145
16146# Set to yes if building a shared library automatically hardcodes DIR into the library
16147# and all subsequent libraries and executables linked against it.
16148hardcode_automatic=$hardcode_automatic_F77
16149
16150# Variables whose values should be saved in libtool wrapper scripts and
16151# restored at relink time.
16152variables_saved_for_relink="$variables_saved_for_relink"
16153
16154# Whether libtool must link a program against all its dependency libraries.
16155link_all_deplibs=$link_all_deplibs_F77
16156
16157# Compile-time system search path for libraries
16158sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16159
16160# Run-time system search path for libraries
16161sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16162
16163# Fix the shell variable \$srcfile for the compiler.
16164fix_srcfile_path=$lt_fix_srcfile_path
16165
16166# Set to yes if exported symbols are required.
16167always_export_symbols=$always_export_symbols_F77
16168
16169# The commands to list exported symbols.
16170export_symbols_cmds=$lt_export_symbols_cmds_F77
16171
16172# The commands to extract the exported symbol list from a shared archive.
16173extract_expsyms_cmds=$lt_extract_expsyms_cmds
16174
16175# Symbols that should not be listed in the preloaded symbols.
16176exclude_expsyms=$lt_exclude_expsyms_F77
16177
16178# Symbols that must always be exported.
16179include_expsyms=$lt_include_expsyms_F77
16180
16181# ### END LIBTOOL TAG CONFIG: $tagname
16182
16183__EOF__
16184
16185
16186else
16187 # If there is no Makefile yet, we rely on a make rule to execute
16188 # `config.status --recheck' to rerun these tests and create the
16189 # libtool script then.
16190 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16191 if test -f "$ltmain_in"; then
16192 test -f Makefile && make "$ltmain"
16193 fi
16194fi
16195
16196
16197ac_ext=c
16198ac_cpp='$CPP $CPPFLAGS'
16199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16201ac_compiler_gnu=$ac_cv_c_compiler_gnu
16202
16203CC="$lt_save_CC"
16204
16205 else
16206 tagname=""
16207 fi
16208 ;;
16209
16210 GCJ)
16211 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16212
16213
16214# Source file extension for Java test sources.
16215ac_ext=java
16216
16217# Object file extension for compiled Java test sources.
16218objext=o
16219objext_GCJ=$objext
16220
16221# Code to be used in simple compile tests
16222lt_simple_compile_test_code="class foo {}"
16223
16224# Code to be used in simple link tests
16225lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16226
16227# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16228
16229# If no C compiler was specified, use CC.
16230LTCC=${LTCC-"$CC"}
16231
16232# If no C compiler flags were specified, use CFLAGS.
16233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16234
16235# Allow CC to be a program name with arguments.
16236compiler=$CC
16237
16238
16239# save warnings/boilerplate of simple test code
16240ac_outfile=conftest.$ac_objext
16241echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16242eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16243_lt_compiler_boilerplate=`cat conftest.err`
16244$rm conftest*
16245
16246ac_outfile=conftest.$ac_objext
16247echo "$lt_simple_link_test_code" >conftest.$ac_ext
16248eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16249_lt_linker_boilerplate=`cat conftest.err`
16250$rm -r conftest*
16251
16252
16253# Allow CC to be a program name with arguments.
16254lt_save_CC="$CC"
16255CC=${GCJ-"gcj"}
16256compiler=$CC
16257compiler_GCJ=$CC
16258for cc_temp in $compiler""; do
16259 case $cc_temp in
16260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16262 \-*) ;;
16263 *) break;;
16264 esac
16265done
16266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16267
16268
16269# GCJ did not exist at the time GCC didn't implicitly link libc in.
16270archive_cmds_need_lc_GCJ=no
16271
16272old_archive_cmds_GCJ=$old_archive_cmds
16273
16274
16275lt_prog_compiler_no_builtin_flag_GCJ=
16276
16277if test "$GCC" = yes; then
16278 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16279
16280
16281{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16282$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16283if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16284 $as_echo_n "(cached) " >&6
16285else
16286 lt_cv_prog_compiler_rtti_exceptions=no
16287 ac_outfile=conftest.$ac_objext
16288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16289 lt_compiler_flag="-fno-rtti -fno-exceptions"
16290 # Insert the option either (1) after the last *FLAGS variable, or
16291 # (2) before a word containing "conftest.", or (3) at the end.
16292 # Note that $ac_compile itself does not contain backslashes and begins
16293 # with a dollar sign (not a hyphen), so the echo should work correctly.
16294 # The option is referenced via a variable to avoid confusing sed.
16295 lt_compile=`echo "$ac_compile" | $SED \
16296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16298 -e 's:$: $lt_compiler_flag:'`
16299 (eval echo "\"\$as_me:16299: $lt_compile\"" >&5)
16300 (eval "$lt_compile" 2>conftest.err)
16301 ac_status=$?
16302 cat conftest.err >&5
16303 echo "$as_me:16303: \$? = $ac_status" >&5
16304 if (exit $ac_status) && test -s "$ac_outfile"; then
16305 # The compiler can only warn and ignore the option if not recognized
16306 # So say no if there are warnings other than the usual output.
16307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16310 lt_cv_prog_compiler_rtti_exceptions=yes
16311 fi
16312 fi
16313 $rm conftest*
16314
16315fi
16316{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16317$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16318
16319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16320 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16321else
16322 :
16323fi
16324
16325fi
16326
16327lt_prog_compiler_wl_GCJ=
16328lt_prog_compiler_pic_GCJ=
16329lt_prog_compiler_static_GCJ=
16330
16331{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16332$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16333
16334 if test "$GCC" = yes; then
16335 lt_prog_compiler_wl_GCJ='-Wl,'
16336 lt_prog_compiler_static_GCJ='-static'
16337
16338 case $host_os in
16339 aix*)
16340 # All AIX code is PIC.
16341 if test "$host_cpu" = ia64; then
16342 # AIX 5 now supports IA64 processor
16343 lt_prog_compiler_static_GCJ='-Bstatic'
16344 fi
16345 ;;
16346
16347 amigaos*)
16348 # FIXME: we need at least 68020 code to build shared libraries, but
16349 # adding the `-m68020' flag to GCC prevents building anything better,
16350 # like `-m68040'.
16351 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16352 ;;
16353
16354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16355 # PIC is the default for these OSes.
16356 ;;
16357
16358 mingw* | cygwin* | pw32* | os2*)
16359 # This hack is so that the source file can tell whether it is being
16360 # built for inclusion in a dll (and should export symbols for example).
16361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16362 # (--disable-auto-import) libraries
16363
16364 ;;
16365
16366 darwin* | rhapsody*)
16367 # PIC is the default on this platform
16368 # Common symbols not allowed in MH_DYLIB files
16369 lt_prog_compiler_pic_GCJ='-fno-common'
16370 ;;
16371
16372 interix[3-9]*)
16373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16374 # Instead, we relocate shared libraries at runtime.
16375 ;;
16376
16377 msdosdjgpp*)
16378 # Just because we use GCC doesn't mean we suddenly get shared libraries
16379 # on systems that don't support them.
16380 lt_prog_compiler_can_build_shared_GCJ=no
16381 enable_shared=no
16382 ;;
16383
16384 sysv4*MP*)
16385 if test -d /usr/nec; then
16386 lt_prog_compiler_pic_GCJ=-Kconform_pic
16387 fi
16388 ;;
16389
16390 hpux*)
16391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16392 # not for PA HP-UX.
16393 case $host_cpu in
16394 hppa*64*|ia64*)
16395 # +Z the default
16396 ;;
16397 *)
16398 lt_prog_compiler_pic_GCJ='-fPIC'
16399 ;;
16400 esac
16401 ;;
16402
16403 *)
16404 lt_prog_compiler_pic_GCJ='-fPIC'
16405 ;;
16406 esac
16407 else
16408 # PORTME Check for flag to pass linker flags through the system compiler.
16409 case $host_os in
16410 aix*)
16411 lt_prog_compiler_wl_GCJ='-Wl,'
16412 if test "$host_cpu" = ia64; then
16413 # AIX 5 now supports IA64 processor
16414 lt_prog_compiler_static_GCJ='-Bstatic'
16415 else
16416 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16417 fi
16418 ;;
16419 darwin*)
16420 # PIC is the default on this platform
16421 # Common symbols not allowed in MH_DYLIB files
16422 case $cc_basename in
16423 xlc*)
16424 lt_prog_compiler_pic_GCJ='-qnocommon'
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16426 ;;
16427 esac
16428 ;;
16429
16430 mingw* | cygwin* | pw32* | os2*)
16431 # This hack is so that the source file can tell whether it is being
16432 # built for inclusion in a dll (and should export symbols for example).
16433
16434 ;;
16435
16436 hpux9* | hpux10* | hpux11*)
16437 lt_prog_compiler_wl_GCJ='-Wl,'
16438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16439 # not for PA HP-UX.
16440 case $host_cpu in
16441 hppa*64*|ia64*)
16442 # +Z the default
16443 ;;
16444 *)
16445 lt_prog_compiler_pic_GCJ='+Z'
16446 ;;
16447 esac
16448 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16449 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16450 ;;
16451
16452 irix5* | irix6* | nonstopux*)
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 # PIC (with -KPIC) is the default.
16455 lt_prog_compiler_static_GCJ='-non_shared'
16456 ;;
16457
16458 newsos6)
16459 lt_prog_compiler_pic_GCJ='-KPIC'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16461 ;;
16462
16463 linux* | k*bsd*-gnu)
16464 case $cc_basename in
16465 icc* | ecc*)
16466 lt_prog_compiler_wl_GCJ='-Wl,'
16467 lt_prog_compiler_pic_GCJ='-KPIC'
16468 lt_prog_compiler_static_GCJ='-static'
16469 ;;
16470 pgcc* | pgf77* | pgf90* | pgf95*)
16471 # Portland Group compilers (*not* the Pentium gcc compiler,
16472 # which looks to be a dead project)
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16474 lt_prog_compiler_pic_GCJ='-fpic'
16475 lt_prog_compiler_static_GCJ='-Bstatic'
16476 ;;
16477 ccc*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 # All Alpha code is PIC.
16480 lt_prog_compiler_static_GCJ='-non_shared'
16481 ;;
16482 *)
16483 case `$CC -V 2>&1 | sed 5q` in
16484 *Sun\ C*)
16485 # Sun C 5.9
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 lt_prog_compiler_wl_GCJ='-Wl,'
16489 ;;
16490 *Sun\ F*)
16491 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16494 lt_prog_compiler_wl_GCJ=''
16495 ;;
16496 esac
16497 ;;
16498 esac
16499 ;;
16500
16501 osf3* | osf4* | osf5*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 # All OSF/1 code is PIC.
16504 lt_prog_compiler_static_GCJ='-non_shared'
16505 ;;
16506
16507 rdos*)
16508 lt_prog_compiler_static_GCJ='-non_shared'
16509 ;;
16510
16511 solaris*)
16512 lt_prog_compiler_pic_GCJ='-KPIC'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16514 case $cc_basename in
16515 f77* | f90* | f95*)
16516 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16517 *)
16518 lt_prog_compiler_wl_GCJ='-Wl,';;
16519 esac
16520 ;;
16521
16522 sunos4*)
16523 lt_prog_compiler_wl_GCJ='-Qoption ld '
16524 lt_prog_compiler_pic_GCJ='-PIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16526 ;;
16527
16528 sysv4 | sysv4.2uw2* | sysv4.3*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 lt_prog_compiler_pic_GCJ='-KPIC'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16532 ;;
16533
16534 sysv4*MP*)
16535 if test -d /usr/nec ;then
16536 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16537 lt_prog_compiler_static_GCJ='-Bstatic'
16538 fi
16539 ;;
16540
16541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 lt_prog_compiler_pic_GCJ='-KPIC'
16544 lt_prog_compiler_static_GCJ='-Bstatic'
16545 ;;
16546
16547 unicos*)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_can_build_shared_GCJ=no
16550 ;;
16551
16552 uts4*)
16553 lt_prog_compiler_pic_GCJ='-pic'
16554 lt_prog_compiler_static_GCJ='-Bstatic'
16555 ;;
16556
16557 *)
16558 lt_prog_compiler_can_build_shared_GCJ=no
16559 ;;
16560 esac
16561 fi
16562
16563{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16564$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16565
16566#
16567# Check to make sure the PIC flag actually works.
16568#
16569if test -n "$lt_prog_compiler_pic_GCJ"; then
16570
16571{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16572$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16573if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16574 $as_echo_n "(cached) " >&6
16575else
16576 lt_cv_prog_compiler_pic_works_GCJ=no
16577 ac_outfile=conftest.$ac_objext
16578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16579 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16580 # Insert the option either (1) after the last *FLAGS variable, or
16581 # (2) before a word containing "conftest.", or (3) at the end.
16582 # Note that $ac_compile itself does not contain backslashes and begins
16583 # with a dollar sign (not a hyphen), so the echo should work correctly.
16584 # The option is referenced via a variable to avoid confusing sed.
16585 lt_compile=`echo "$ac_compile" | $SED \
16586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16588 -e 's:$: $lt_compiler_flag:'`
16589 (eval echo "\"\$as_me:16589: $lt_compile\"" >&5)
16590 (eval "$lt_compile" 2>conftest.err)
16591 ac_status=$?
16592 cat conftest.err >&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 if (exit $ac_status) && test -s "$ac_outfile"; then
16595 # The compiler can only warn and ignore the option if not recognized
16596 # So say no if there are warnings other than the usual output.
16597 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16600 lt_cv_prog_compiler_pic_works_GCJ=yes
16601 fi
16602 fi
16603 $rm conftest*
16604
16605fi
16606{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16607$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16608
16609if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16610 case $lt_prog_compiler_pic_GCJ in
16611 "" | " "*) ;;
16612 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16613 esac
16614else
16615 lt_prog_compiler_pic_GCJ=
16616 lt_prog_compiler_can_build_shared_GCJ=no
16617fi
16618
16619fi
16620case $host_os in
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16622 *djgpp*)
16623 lt_prog_compiler_pic_GCJ=
16624 ;;
16625 *)
16626 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16627 ;;
16628esac
16629
16630#
16631# Check to make sure the static flag actually works.
16632#
16633wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16634{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16635$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16636if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16637 $as_echo_n "(cached) " >&6
16638else
16639 lt_cv_prog_compiler_static_works_GCJ=no
16640 save_LDFLAGS="$LDFLAGS"
16641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16644 # The linker can only warn and ignore the option if not recognized
16645 # So say no if there are warnings
16646 if test -s conftest.err; then
16647 # Append any errors to the config.log.
16648 cat conftest.err 1>&5
16649 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16651 if diff conftest.exp conftest.er2 >/dev/null; then
16652 lt_cv_prog_compiler_static_works_GCJ=yes
16653 fi
16654 else
16655 lt_cv_prog_compiler_static_works_GCJ=yes
16656 fi
16657 fi
16658 $rm -r conftest*
16659 LDFLAGS="$save_LDFLAGS"
16660
16661fi
16662{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16663$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16664
16665if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16666 :
16667else
16668 lt_prog_compiler_static_GCJ=
16669fi
16670
16671
16672{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16674if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16675 $as_echo_n "(cached) " >&6
16676else
16677 lt_cv_prog_compiler_c_o_GCJ=no
16678 $rm -r conftest 2>/dev/null
16679 mkdir conftest
16680 cd conftest
16681 mkdir out
16682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16683
16684 lt_compiler_flag="-o out/conftest2.$ac_objext"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 lt_compile=`echo "$ac_compile" | $SED \
16690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692 -e 's:$: $lt_compiler_flag:'`
16693 (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16694 (eval "$lt_compile" 2>out/conftest.err)
16695 ac_status=$?
16696 cat out/conftest.err >&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16699 then
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16705 lt_cv_prog_compiler_c_o_GCJ=yes
16706 fi
16707 fi
16708 chmod u+w . 2>&5
16709 $rm conftest*
16710 # SGI C++ compiler will create directory out/ii_files/ for
16711 # template instantiation
16712 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16713 $rm out/* && rmdir out
16714 cd ..
16715 rmdir conftest
16716 $rm conftest*
16717
16718fi
16719{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16720$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16721
16722
16723hard_links="nottested"
16724if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16725 # do not overwrite the value of need_locks provided by the user
16726 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16727$as_echo_n "checking if we can lock with hard links... " >&6; }
16728 hard_links=yes
16729 $rm conftest*
16730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16731 touch conftest.a
16732 ln conftest.a conftest.b 2>&5 || hard_links=no
16733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16734 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16735$as_echo "$hard_links" >&6; }
16736 if test "$hard_links" = no; then
16737 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16738$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16739 need_locks=warn
16740 fi
16741else
16742 need_locks=no
16743fi
16744
16745{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16746$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16747
16748 runpath_var=
16749 allow_undefined_flag_GCJ=
16750 enable_shared_with_static_runtimes_GCJ=no
16751 archive_cmds_GCJ=
16752 archive_expsym_cmds_GCJ=
16753 old_archive_From_new_cmds_GCJ=
16754 old_archive_from_expsyms_cmds_GCJ=
16755 export_dynamic_flag_spec_GCJ=
16756 whole_archive_flag_spec_GCJ=
16757 thread_safe_flag_spec_GCJ=
16758 hardcode_libdir_flag_spec_GCJ=
16759 hardcode_libdir_flag_spec_ld_GCJ=
16760 hardcode_libdir_separator_GCJ=
16761 hardcode_direct_GCJ=no
16762 hardcode_minus_L_GCJ=no
16763 hardcode_shlibpath_var_GCJ=unsupported
16764 link_all_deplibs_GCJ=unknown
16765 hardcode_automatic_GCJ=no
16766 module_cmds_GCJ=
16767 module_expsym_cmds_GCJ=
16768 always_export_symbols_GCJ=no
16769 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16770 # include_expsyms should be a list of space-separated symbols to be *always*
16771 # included in the symbol list
16772 include_expsyms_GCJ=
16773 # exclude_expsyms can be an extended regexp of symbols to exclude
16774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16776 # as well as any symbol that contains `d'.
16777 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16779 # platforms (ab)use it in PIC code, but their linkers get confused if
16780 # the symbol is explicitly referenced. Since portable code cannot
16781 # rely on this symbol name, it's probably fine to never include it in
16782 # preloaded symbol tables.
16783 # Exclude shared library initialization/finalization symbols.
16784 extract_expsyms_cmds=
16785 # Just being paranoid about ensuring that cc_basename is set.
16786 for cc_temp in $compiler""; do
16787 case $cc_temp in
16788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16790 \-*) ;;
16791 *) break;;
16792 esac
16793done
16794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16795
16796 case $host_os in
16797 cygwin* | mingw* | pw32*)
16798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16799 # When not using gcc, we currently assume that we are using
16800 # Microsoft Visual C++.
16801 if test "$GCC" != yes; then
16802 with_gnu_ld=no
16803 fi
16804 ;;
16805 interix*)
16806 # we just hope/assume this is gcc and not c89 (= MSVC++)
16807 with_gnu_ld=yes
16808 ;;
16809 openbsd*)
16810 with_gnu_ld=no
16811 ;;
16812 esac
16813
16814 ld_shlibs_GCJ=yes
16815 if test "$with_gnu_ld" = yes; then
16816 # If archive_cmds runs LD, not CC, wlarc should be empty
16817 wlarc='${wl}'
16818
16819 # Set some defaults for GNU ld with shared library support. These
16820 # are reset later if shared libraries are not supported. Putting them
16821 # here allows them to be overridden if necessary.
16822 runpath_var=LD_RUN_PATH
16823 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16824 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16825 # ancient GNU ld didn't support --whole-archive et. al.
16826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16827 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16828 else
16829 whole_archive_flag_spec_GCJ=
16830 fi
16831 supports_anon_versioning=no
16832 case `$LD -v 2>/dev/null` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16836 *\ 2.11.*) ;; # other 2.11 versions
16837 *) supports_anon_versioning=yes ;;
16838 esac
16839
16840 # See if GNU ld supports shared libraries.
16841 case $host_os in
16842 aix[3-9]*)
16843 # On AIX/PPC, the GNU linker is very broken
16844 if test "$host_cpu" != ia64; then
16845 ld_shlibs_GCJ=no
16846 cat <<EOF 1>&2
16847
16848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16849*** to be unable to reliably create shared libraries on AIX.
16850*** Therefore, libtool is disabling shared libraries support. If you
16851*** really care for shared libraries, you may want to modify your PATH
16852*** so that a non-GNU linker is found, and then restart.
16853
16854EOF
16855 fi
16856 ;;
16857
16858 amigaos*)
16859 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)'
16860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861 hardcode_minus_L_GCJ=yes
16862
16863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16864 # that the semantics of dynamic libraries on AmigaOS, at least up
16865 # to version 4, is to share data among multiple programs linked
16866 # with the same dynamic library. Since this doesn't match the
16867 # behavior of shared libraries on other platforms, we can't use
16868 # them.
16869 ld_shlibs_GCJ=no
16870 ;;
16871
16872 beos*)
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 allow_undefined_flag_GCJ=unsupported
16875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16876 # support --undefined. This deserves some investigation. FIXME
16877 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 else
16879 ld_shlibs_GCJ=no
16880 fi
16881 ;;
16882
16883 cygwin* | mingw* | pw32*)
16884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16885 # as there is no search path for DLLs.
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 allow_undefined_flag_GCJ=unsupported
16888 always_export_symbols_GCJ=no
16889 enable_shared_with_static_runtimes_GCJ=yes
16890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16891
16892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 # If the export-symbols file already is a .def file (1st line
16895 # is EXPORTS), use it as is; otherwise, prepend...
16896 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16897 cp $export_symbols $output_objdir/$soname.def;
16898 else
16899 echo EXPORTS > $output_objdir/$soname.def;
16900 cat $export_symbols >> $output_objdir/$soname.def;
16901 fi~
16902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903 else
16904 ld_shlibs_GCJ=no
16905 fi
16906 ;;
16907
16908 interix[3-9]*)
16909 hardcode_direct_GCJ=no
16910 hardcode_shlibpath_var_GCJ=no
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16914 # Instead, shared libraries are loaded at an image base (0x10000000 by
16915 # default) and relocated if they conflict, which is a slow very memory
16916 # consuming and fragmenting process. To avoid this, we pick a random,
16917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16919 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'
16920 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'
16921 ;;
16922
16923 gnu* | linux* | k*bsd*-gnu)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16925 tmp_addflag=
16926 case $cc_basename,$host_cpu in
16927 pgcc*) # Portland Group C compiler
16928 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'
16929 tmp_addflag=' $pic_flag'
16930 ;;
16931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16932 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'
16933 tmp_addflag=' $pic_flag -Mnomain' ;;
16934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16935 tmp_addflag=' -i_dynamic' ;;
16936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16937 tmp_addflag=' -i_dynamic -nofor_main' ;;
16938 ifc* | ifort*) # Intel Fortran compiler
16939 tmp_addflag=' -nofor_main' ;;
16940 esac
16941 case `$CC -V 2>&1 | sed 5q` in
16942 *Sun\ C*) # Sun C 5.9
16943 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'
16944 tmp_sharedflag='-G' ;;
16945 *Sun\ F*) # Sun Fortran 8.3
16946 tmp_sharedflag='-G' ;;
16947 *)
16948 tmp_sharedflag='-shared' ;;
16949 esac
16950 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951
16952 if test $supports_anon_versioning = yes; then
16953 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16955 $echo "local: *; };" >> $output_objdir/$libname.ver~
16956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16957 fi
16958 else
16959 ld_shlibs_GCJ=no
16960 fi
16961 ;;
16962
16963 netbsd*)
16964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16965 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16966 wlarc=
16967 else
16968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16970 fi
16971 ;;
16972
16973 solaris*)
16974 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16975 ld_shlibs_GCJ=no
16976 cat <<EOF 1>&2
16977
16978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16979*** create shared libraries on Solaris systems. Therefore, libtool
16980*** is disabling shared libraries support. We urge you to upgrade GNU
16981*** binutils to release 2.9.1 or newer. Another option is to modify
16982*** your PATH or compiler configuration so that the native linker is
16983*** used, and then restart.
16984
16985EOF
16986 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16989 else
16990 ld_shlibs_GCJ=no
16991 fi
16992 ;;
16993
16994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16995 case `$LD -v 2>&1` in
16996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16997 ld_shlibs_GCJ=no
16998 cat <<_LT_EOF 1>&2
16999
17000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17001*** reliably create shared libraries on SCO systems. Therefore, libtool
17002*** is disabling shared libraries support. We urge you to upgrade GNU
17003*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17004*** your PATH or compiler configuration so that the native linker is
17005*** used, and then restart.
17006
17007_LT_EOF
17008 ;;
17009 *)
17010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17011 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018 esac
17019 ;;
17020
17021 sunos4*)
17022 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023 wlarc=
17024 hardcode_direct_GCJ=yes
17025 hardcode_shlibpath_var_GCJ=no
17026 ;;
17027
17028 *)
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17032 else
17033 ld_shlibs_GCJ=no
17034 fi
17035 ;;
17036 esac
17037
17038 if test "$ld_shlibs_GCJ" = no; then
17039 runpath_var=
17040 hardcode_libdir_flag_spec_GCJ=
17041 export_dynamic_flag_spec_GCJ=
17042 whole_archive_flag_spec_GCJ=
17043 fi
17044 else
17045 # PORTME fill in a description of your system's linker (not GNU ld)
17046 case $host_os in
17047 aix3*)
17048 allow_undefined_flag_GCJ=unsupported
17049 always_export_symbols_GCJ=yes
17050 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'
17051 # Note: this linker hardcodes the directories in LIBPATH if there
17052 # are no directories specified by -L.
17053 hardcode_minus_L_GCJ=yes
17054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17055 # Neither direct hardcoding nor static linking is supported with a
17056 # broken collect2.
17057 hardcode_direct_GCJ=unsupported
17058 fi
17059 ;;
17060
17061 aix[4-9]*)
17062 if test "$host_cpu" = ia64; then
17063 # On IA64, the linker does run time linking by default, so we don't
17064 # have to do anything special.
17065 aix_use_runtimelinking=no
17066 exp_sym_flag='-Bexport'
17067 no_entry_flag=""
17068 else
17069 # If we're using GNU nm, then we don't want the "-C" option.
17070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17071 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17072 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'
17073 else
17074 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'
17075 fi
17076 aix_use_runtimelinking=no
17077
17078 # Test if we are trying to use run time linking or normal
17079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17080 # need to do runtime linking.
17081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17082 for ld_flag in $LDFLAGS; do
17083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17084 aix_use_runtimelinking=yes
17085 break
17086 fi
17087 done
17088 ;;
17089 esac
17090
17091 exp_sym_flag='-bexport'
17092 no_entry_flag='-bnoentry'
17093 fi
17094
17095 # When large executables or shared objects are built, AIX ld can
17096 # have problems creating the table of contents. If linking a library
17097 # or program results in "error TOC overflow" add -mminimal-toc to
17098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17100
17101 archive_cmds_GCJ=''
17102 hardcode_direct_GCJ=yes
17103 hardcode_libdir_separator_GCJ=':'
17104 link_all_deplibs_GCJ=yes
17105
17106 if test "$GCC" = yes; then
17107 case $host_os in aix4.[012]|aix4.[012].*)
17108 # We only want to do this on AIX 4.2 and lower, the check
17109 # below for broken collect2 doesn't work under 4.3+
17110 collect2name=`${CC} -print-prog-name=collect2`
17111 if test -f "$collect2name" && \
17112 strings "$collect2name" | grep resolve_lib_name >/dev/null
17113 then
17114 # We have reworked collect2
17115 :
17116 else
17117 # We have old collect2
17118 hardcode_direct_GCJ=unsupported
17119 # It fails to find uninstalled libraries when the uninstalled
17120 # path is not listed in the libpath. Setting hardcode_minus_L
17121 # to unsupported forces relinking
17122 hardcode_minus_L_GCJ=yes
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_libdir_separator_GCJ=
17125 fi
17126 ;;
17127 esac
17128 shared_flag='-shared'
17129 if test "$aix_use_runtimelinking" = yes; then
17130 shared_flag="$shared_flag "'${wl}-G'
17131 fi
17132 else
17133 # not using gcc
17134 if test "$host_cpu" = ia64; then
17135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17136 # chokes on -Wl,-G. The following line is correct:
17137 shared_flag='-G'
17138 else
17139 if test "$aix_use_runtimelinking" = yes; then
17140 shared_flag='${wl}-G'
17141 else
17142 shared_flag='${wl}-bM:SRE'
17143 fi
17144 fi
17145 fi
17146
17147 # It seems that -bexpall does not export symbols beginning with
17148 # underscore (_), so it is better to generate a list of symbols to export.
17149 always_export_symbols_GCJ=yes
17150 if test "$aix_use_runtimelinking" = yes; then
17151 # Warning - without using the other runtime loading flags (-brtl),
17152 # -berok will link without error, but may produce a broken library.
17153 allow_undefined_flag_GCJ='-berok'
17154 # Determine the default libpath from the value encoded in an empty executable.
17155 cat >conftest.$ac_ext <<_ACEOF
17156/* confdefs.h. */
17157_ACEOF
17158cat confdefs.h >>conftest.$ac_ext
17159cat >>conftest.$ac_ext <<_ACEOF
17160/* end confdefs.h. */
17161
17162int
17163main ()
17164{
17165
17166 ;
17167 return 0;
17168}
17169_ACEOF
17170rm -f conftest.$ac_objext conftest$ac_exeext
17171if { (ac_try="$ac_link"
17172case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17177$as_echo "$ac_try_echo") >&5
17178 (eval "$ac_link") 2>conftest.er1
17179 ac_status=$?
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && {
17185 test -z "$ac_c_werror_flag" ||
17186 test ! -s conftest.err
17187 } && test -s conftest$ac_exeext && {
17188 test "$cross_compiling" = yes ||
17189 $as_test_x conftest$ac_exeext
17190 }; then
17191
17192lt_aix_libpath_sed='
17193 /Import File Strings/,/^$/ {
17194 /^0/ {
17195 s/^0 *\(.*\)$/\1/
17196 p
17197 }
17198 }'
17199aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17200# Check for a 64-bit object if we didn't find anything.
17201if test -z "$aix_libpath"; then
17202 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17203fi
17204else
17205 $as_echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208
17209fi
17210
17211rm -rf conftest.dSYM
17212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213 conftest$ac_exeext conftest.$ac_ext
17214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17215
17216 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17217 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"
17218 else
17219 if test "$host_cpu" = ia64; then
17220 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17221 allow_undefined_flag_GCJ="-z nodefs"
17222 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"
17223 else
17224 # Determine the default libpath from the value encoded in an empty executable.
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231
17232int
17233main ()
17234{
17235
17236 ;
17237 return 0;
17238}
17239_ACEOF
17240rm -f conftest.$ac_objext conftest$ac_exeext
17241if { (ac_try="$ac_link"
17242case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17247$as_echo "$ac_try_echo") >&5
17248 (eval "$ac_link") 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } && {
17255 test -z "$ac_c_werror_flag" ||
17256 test ! -s conftest.err
17257 } && test -s conftest$ac_exeext && {
17258 test "$cross_compiling" = yes ||
17259 $as_test_x conftest$ac_exeext
17260 }; then
17261
17262lt_aix_libpath_sed='
17263 /Import File Strings/,/^$/ {
17264 /^0/ {
17265 s/^0 *\(.*\)$/\1/
17266 p
17267 }
17268 }'
17269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17270# Check for a 64-bit object if we didn't find anything.
17271if test -z "$aix_libpath"; then
17272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273fi
17274else
17275 $as_echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
17278
17279fi
17280
17281rm -rf conftest.dSYM
17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17284if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17285
17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17287 # Warning - without using the other run time loading flags,
17288 # -berok will link without error, but may produce a broken library.
17289 no_undefined_flag_GCJ=' ${wl}-bernotok'
17290 allow_undefined_flag_GCJ=' ${wl}-berok'
17291 # Exported symbols can be pulled into shared objects from archives
17292 whole_archive_flag_spec_GCJ='$convenience'
17293 archive_cmds_need_lc_GCJ=yes
17294 # This is similar to how AIX traditionally builds its shared libraries.
17295 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'
17296 fi
17297 fi
17298 ;;
17299
17300 amigaos*)
17301 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)'
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 hardcode_minus_L_GCJ=yes
17304 # see comment about different semantics on the GNU ld section
17305 ld_shlibs_GCJ=no
17306 ;;
17307
17308 bsdi[45]*)
17309 export_dynamic_flag_spec_GCJ=-rdynamic
17310 ;;
17311
17312 cygwin* | mingw* | pw32*)
17313 # When not using gcc, we currently assume that we are using
17314 # Microsoft Visual C++.
17315 # hardcode_libdir_flag_spec is actually meaningless, as there is
17316 # no search path for DLLs.
17317 hardcode_libdir_flag_spec_GCJ=' '
17318 allow_undefined_flag_GCJ=unsupported
17319 # Tell ltmain to make .lib files, not .a files.
17320 libext=lib
17321 # Tell ltmain to make .dll files, not .so files.
17322 shrext_cmds=".dll"
17323 # FIXME: Setting linknames here is a bad hack.
17324 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17325 # The linker will automatically build a .lib file if we build a DLL.
17326 old_archive_From_new_cmds_GCJ='true'
17327 # FIXME: Should let the user specify the lib program.
17328 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17329 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17330 enable_shared_with_static_runtimes_GCJ=yes
17331 ;;
17332
17333 darwin* | rhapsody*)
17334 case $host_os in
17335 rhapsody* | darwin1.[012])
17336 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17337 ;;
17338 *) # Darwin 1.3 on
17339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17340 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17341 else
17342 case ${MACOSX_DEPLOYMENT_TARGET} in
17343 10.[012])
17344 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17345 ;;
17346 10.*)
17347 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17348 ;;
17349 esac
17350 fi
17351 ;;
17352 esac
17353 archive_cmds_need_lc_GCJ=no
17354 hardcode_direct_GCJ=no
17355 hardcode_automatic_GCJ=yes
17356 hardcode_shlibpath_var_GCJ=unsupported
17357 whole_archive_flag_spec_GCJ=''
17358 link_all_deplibs_GCJ=yes
17359 if test "$GCC" = yes ; then
17360 output_verbose_link_cmd='echo'
17361 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}"
17362 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17363 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}"
17364 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}"
17365 else
17366 case $cc_basename in
17367 xlc*)
17368 output_verbose_link_cmd='echo'
17369 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17370 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17372 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}'
17373 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}'
17374 ;;
17375 *)
17376 ld_shlibs_GCJ=no
17377 ;;
17378 esac
17379 fi
17380 ;;
17381
17382 dgux*)
17383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17385 hardcode_shlibpath_var_GCJ=no
17386 ;;
17387
17388 freebsd1*)
17389 ld_shlibs_GCJ=no
17390 ;;
17391
17392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17393 # support. Future versions do this automatically, but an explicit c++rt0.o
17394 # does not break anything, and helps significantly (at the cost of a little
17395 # extra space).
17396 freebsd2.2*)
17397 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399 hardcode_direct_GCJ=yes
17400 hardcode_shlibpath_var_GCJ=no
17401 ;;
17402
17403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17404 freebsd2*)
17405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_direct_GCJ=yes
17407 hardcode_minus_L_GCJ=yes
17408 hardcode_shlibpath_var_GCJ=no
17409 ;;
17410
17411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17412 freebsd* | dragonfly*)
17413 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17415 hardcode_direct_GCJ=yes
17416 hardcode_shlibpath_var_GCJ=no
17417 ;;
17418
17419 hpux9*)
17420 if test "$GCC" = yes; then
17421 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'
17422 else
17423 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'
17424 fi
17425 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17426 hardcode_libdir_separator_GCJ=:
17427 hardcode_direct_GCJ=yes
17428
17429 # hardcode_minus_L: Not really in the search PATH,
17430 # but as the default location of the library.
17431 hardcode_minus_L_GCJ=yes
17432 export_dynamic_flag_spec_GCJ='${wl}-E'
17433 ;;
17434
17435 hpux10*)
17436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438 else
17439 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17440 fi
17441 if test "$with_gnu_ld" = no; then
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_separator_GCJ=:
17444
17445 hardcode_direct_GCJ=yes
17446 export_dynamic_flag_spec_GCJ='${wl}-E'
17447
17448 # hardcode_minus_L: Not really in the search PATH,
17449 # but as the default location of the library.
17450 hardcode_minus_L_GCJ=yes
17451 fi
17452 ;;
17453
17454 hpux11*)
17455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17456 case $host_cpu in
17457 hppa*64*)
17458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17459 ;;
17460 ia64*)
17461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17462 ;;
17463 *)
17464 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17465 ;;
17466 esac
17467 else
17468 case $host_cpu in
17469 hppa*64*)
17470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17471 ;;
17472 ia64*)
17473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17474 ;;
17475 *)
17476 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17477 ;;
17478 esac
17479 fi
17480 if test "$with_gnu_ld" = no; then
17481 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17482 hardcode_libdir_separator_GCJ=:
17483
17484 case $host_cpu in
17485 hppa*64*|ia64*)
17486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17487 hardcode_direct_GCJ=no
17488 hardcode_shlibpath_var_GCJ=no
17489 ;;
17490 *)
17491 hardcode_direct_GCJ=yes
17492 export_dynamic_flag_spec_GCJ='${wl}-E'
17493
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17497 ;;
17498 esac
17499 fi
17500 ;;
17501
17502 irix5* | irix6* | nonstopux*)
17503 if test "$GCC" = yes; then
17504 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'
17505 else
17506 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'
17507 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17508 fi
17509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17510 hardcode_libdir_separator_GCJ=:
17511 link_all_deplibs_GCJ=yes
17512 ;;
17513
17514 netbsd*)
17515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17517 else
17518 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17519 fi
17520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17523 ;;
17524
17525 newsos6)
17526 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527 hardcode_direct_GCJ=yes
17528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17529 hardcode_libdir_separator_GCJ=:
17530 hardcode_shlibpath_var_GCJ=no
17531 ;;
17532
17533 openbsd*)
17534 if test -f /usr/libexec/ld.so; then
17535 hardcode_direct_GCJ=yes
17536 hardcode_shlibpath_var_GCJ=no
17537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17542 else
17543 case $host_os in
17544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17547 ;;
17548 *)
17549 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17551 ;;
17552 esac
17553 fi
17554 else
17555 ld_shlibs_GCJ=no
17556 fi
17557 ;;
17558
17559 os2*)
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_minus_L_GCJ=yes
17562 allow_undefined_flag_GCJ=unsupported
17563 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'
17564 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17565 ;;
17566
17567 osf3*)
17568 if test "$GCC" = yes; then
17569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17570 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'
17571 else
17572 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17573 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'
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17576 hardcode_libdir_separator_GCJ=:
17577 ;;
17578
17579 osf4* | osf5*) # as osf3* with the addition of -msym flag
17580 if test "$GCC" = yes; then
17581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17582 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'
17583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17584 else
17585 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17586 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'
17587 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~
17588 $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'
17589
17590 # Both c and cxx compiler support -rpath directly
17591 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17592 fi
17593 hardcode_libdir_separator_GCJ=:
17594 ;;
17595
17596 solaris*)
17597 no_undefined_flag_GCJ=' -z text'
17598 if test "$GCC" = yes; then
17599 wlarc='${wl}'
17600 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17603 else
17604 wlarc=''
17605 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17608 fi
17609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17610 hardcode_shlibpath_var_GCJ=no
17611 case $host_os in
17612 solaris2.[0-5] | solaris2.[0-5].*) ;;
17613 *)
17614 # The compiler driver will combine and reorder linker options,
17615 # but understands `-z linker_flag'. GCC discards it without `$wl',
17616 # but is careful enough not to reorder.
17617 # Supported since Solaris 2.6 (maybe 2.5.1?)
17618 if test "$GCC" = yes; then
17619 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17620 else
17621 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17622 fi
17623 ;;
17624 esac
17625 link_all_deplibs_GCJ=yes
17626 ;;
17627
17628 sunos4*)
17629 if test "x$host_vendor" = xsequent; then
17630 # Use $CC to link under sequent, because it throws in some extra .o
17631 # files that make .init and .fini sections work.
17632 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17633 else
17634 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17635 fi
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_direct_GCJ=yes
17638 hardcode_minus_L_GCJ=yes
17639 hardcode_shlibpath_var_GCJ=no
17640 ;;
17641
17642 sysv4)
17643 case $host_vendor in
17644 sni)
17645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_direct_GCJ=yes # is this really true???
17647 ;;
17648 siemens)
17649 ## LD is ld it makes a PLAMLIB
17650 ## CC just makes a GrossModule.
17651 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17652 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17653 hardcode_direct_GCJ=no
17654 ;;
17655 motorola)
17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17658 ;;
17659 esac
17660 runpath_var='LD_RUN_PATH'
17661 hardcode_shlibpath_var_GCJ=no
17662 ;;
17663
17664 sysv4.3*)
17665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17666 hardcode_shlibpath_var_GCJ=no
17667 export_dynamic_flag_spec_GCJ='-Bexport'
17668 ;;
17669
17670 sysv4*MP*)
17671 if test -d /usr/nec; then
17672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 hardcode_shlibpath_var_GCJ=no
17674 runpath_var=LD_RUN_PATH
17675 hardcode_runpath_var=yes
17676 ld_shlibs_GCJ=yes
17677 fi
17678 ;;
17679
17680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17681 no_undefined_flag_GCJ='${wl}-z,text'
17682 archive_cmds_need_lc_GCJ=no
17683 hardcode_shlibpath_var_GCJ=no
17684 runpath_var='LD_RUN_PATH'
17685
17686 if test "$GCC" = yes; then
17687 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17688 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17689 else
17690 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17692 fi
17693 ;;
17694
17695 sysv5* | sco3.2v5* | sco5v6*)
17696 # Note: We can NOT use -z defs as we might desire, because we do not
17697 # link with -lc, and that would cause any symbols used from libc to
17698 # always be unresolved, which means just about no library would
17699 # ever link correctly. If we're not using GNU ld we use -z text
17700 # though, which does catch some bad symbols but isn't as heavy-handed
17701 # as -z defs.
17702 no_undefined_flag_GCJ='${wl}-z,text'
17703 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17704 archive_cmds_need_lc_GCJ=no
17705 hardcode_shlibpath_var_GCJ=no
17706 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17707 hardcode_libdir_separator_GCJ=':'
17708 link_all_deplibs_GCJ=yes
17709 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17710 runpath_var='LD_RUN_PATH'
17711
17712 if test "$GCC" = yes; then
17713 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17715 else
17716 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17718 fi
17719 ;;
17720
17721 uts4*)
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17724 hardcode_shlibpath_var_GCJ=no
17725 ;;
17726
17727 *)
17728 ld_shlibs_GCJ=no
17729 ;;
17730 esac
17731 fi
17732
17733{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17734$as_echo "$ld_shlibs_GCJ" >&6; }
17735test "$ld_shlibs_GCJ" = no && can_build_shared=no
17736
17737#
17738# Do we need to explicitly link libc?
17739#
17740case "x$archive_cmds_need_lc_GCJ" in
17741x|xyes)
17742 # Assume -lc should be added
17743 archive_cmds_need_lc_GCJ=yes
17744
17745 if test "$enable_shared" = yes && test "$GCC" = yes; then
17746 case $archive_cmds_GCJ in
17747 *'~'*)
17748 # FIXME: we may have to deal with multi-command sequences.
17749 ;;
17750 '$CC '*)
17751 # Test whether the compiler implicitly links with -lc since on some
17752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17753 # to ld, don't add -lc before -lgcc.
17754 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17756 $rm conftest*
17757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17758
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760 (eval $ac_compile) 2>&5
17761 ac_status=$?
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } 2>conftest.err; then
17764 soname=conftest
17765 lib=conftest
17766 libobjs=conftest.$ac_objext
17767 deplibs=
17768 wl=$lt_prog_compiler_wl_GCJ
17769 pic_flag=$lt_prog_compiler_pic_GCJ
17770 compiler_flags=-v
17771 linker_flags=-v
17772 verstring=
17773 output_objdir=.
17774 libname=conftest
17775 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17776 allow_undefined_flag_GCJ=
17777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17778 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }
17782 then
17783 archive_cmds_need_lc_GCJ=no
17784 else
17785 archive_cmds_need_lc_GCJ=yes
17786 fi
17787 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17788 else
17789 cat conftest.err 1>&5
17790 fi
17791 $rm conftest*
17792 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17793$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17794 ;;
17795 esac
17796 fi
17797 ;;
17798esac
17799
17800{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17801$as_echo_n "checking dynamic linker characteristics... " >&6; }
17802library_names_spec=
17803libname_spec='lib$name'
17804soname_spec=
17805shrext_cmds=".so"
17806postinstall_cmds=
17807postuninstall_cmds=
17808finish_cmds=
17809finish_eval=
17810shlibpath_var=
17811shlibpath_overrides_runpath=unknown
17812version_type=none
17813dynamic_linker="$host_os ld.so"
17814sys_lib_dlsearch_path_spec="/lib /usr/lib"
17815
17816need_lib_prefix=unknown
17817hardcode_into_libs=no
17818
17819# when you set need_version to no, make sure it does not cause -set_version
17820# flags to be left without arguments
17821need_version=unknown
17822
17823case $host_os in
17824aix3*)
17825 version_type=linux
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17827 shlibpath_var=LIBPATH
17828
17829 # AIX 3 has no versioning support, so we append a major version to the name.
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 ;;
17832
17833aix[4-9]*)
17834 version_type=linux
17835 need_lib_prefix=no
17836 need_version=no
17837 hardcode_into_libs=yes
17838 if test "$host_cpu" = ia64; then
17839 # AIX 5 supports IA64
17840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 else
17843 # With GCC up to 2.95.x, collect2 would create an import file
17844 # for dependence libraries. The import file would start with
17845 # the line `#! .'. This would cause the generated library to
17846 # depend on `.', always an invalid library. This was fixed in
17847 # development snapshots of GCC prior to 3.0.
17848 case $host_os in
17849 aix4 | aix4.[01] | aix4.[01].*)
17850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17851 echo ' yes '
17852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17853 :
17854 else
17855 can_build_shared=no
17856 fi
17857 ;;
17858 esac
17859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17860 # soname into executable. Probably we can add versioning support to
17861 # collect2, so additional links can be useful in future.
17862 if test "$aix_use_runtimelinking" = yes; then
17863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17864 # instead of lib<name>.a to let people know that these are not
17865 # typical AIX shared libraries.
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867 else
17868 # We preserve .a as extension for shared libraries through AIX4.2
17869 # and later when we are not doing run time linking.
17870 library_names_spec='${libname}${release}.a $libname.a'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 fi
17873 shlibpath_var=LIBPATH
17874 fi
17875 ;;
17876
17877amigaos*)
17878 library_names_spec='$libname.ixlibrary $libname.a'
17879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17880 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'
17881 ;;
17882
17883beos*)
17884 library_names_spec='${libname}${shared_ext}'
17885 dynamic_linker="$host_os ld.so"
17886 shlibpath_var=LIBRARY_PATH
17887 ;;
17888
17889bsdi[45]*)
17890 version_type=linux
17891 need_version=no
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17895 shlibpath_var=LD_LIBRARY_PATH
17896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17898 # the default ld.so.conf also contains /usr/contrib/lib and
17899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17900 # libtool to hard-code these into programs
17901 ;;
17902
17903cygwin* | mingw* | pw32*)
17904 version_type=windows
17905 shrext_cmds=".dll"
17906 need_version=no
17907 need_lib_prefix=no
17908
17909 case $GCC,$host_os in
17910 yes,cygwin* | yes,mingw* | yes,pw32*)
17911 library_names_spec='$libname.dll.a'
17912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17913 postinstall_cmds='base_file=`basename \${file}`~
17914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17915 dldir=$destdir/`dirname \$dlpath`~
17916 test -d \$dldir || mkdir -p \$dldir~
17917 $install_prog $dir/$dlname \$dldir/$dlname~
17918 chmod a+x \$dldir/$dlname'
17919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17920 dlpath=$dir/\$dldll~
17921 $rm \$dlpath'
17922 shlibpath_overrides_runpath=yes
17923
17924 case $host_os in
17925 cygwin*)
17926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17929 ;;
17930 mingw*)
17931 # MinGW DLLs use traditional 'lib' prefix
17932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17935 # It is most probably a Windows format PATH printed by
17936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17937 # path with ; separators, and with drive letters. We can handle the
17938 # drive letters (cygwin fileutils understands them), so leave them,
17939 # especially as we might pass files found there to a mingw objdump,
17940 # which wouldn't understand a cygwinified path. Ahh.
17941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17942 else
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17944 fi
17945 ;;
17946 pw32*)
17947 # pw32 DLLs use 'pw' prefix rather than 'lib'
17948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17949 ;;
17950 esac
17951 ;;
17952
17953 *)
17954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17955 ;;
17956 esac
17957 dynamic_linker='Win32 ld.exe'
17958 # FIXME: first we should search . and the directory the executable is in
17959 shlibpath_var=PATH
17960 ;;
17961
17962darwin* | rhapsody*)
17963 dynamic_linker="$host_os dyld"
17964 version_type=darwin
17965 need_lib_prefix=no
17966 need_version=no
17967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17968 soname_spec='${libname}${release}${major}$shared_ext'
17969 shlibpath_overrides_runpath=yes
17970 shlibpath_var=DYLD_LIBRARY_PATH
17971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17972
17973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17974 ;;
17975
17976dgux*)
17977 version_type=linux
17978 need_lib_prefix=no
17979 need_version=no
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 ;;
17984
17985freebsd1*)
17986 dynamic_linker=no
17987 ;;
17988
17989freebsd* | dragonfly*)
17990 # DragonFly does not have aout. When/if they implement a new
17991 # versioning mechanism, adjust this.
17992 if test -x /usr/bin/objformat; then
17993 objformat=`/usr/bin/objformat`
17994 else
17995 case $host_os in
17996 freebsd[123]*) objformat=aout ;;
17997 *) objformat=elf ;;
17998 esac
17999 fi
18000 version_type=freebsd-$objformat
18001 case $version_type in
18002 freebsd-elf*)
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18004 need_version=no
18005 need_lib_prefix=no
18006 ;;
18007 freebsd-*)
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18009 need_version=yes
18010 ;;
18011 esac
18012 shlibpath_var=LD_LIBRARY_PATH
18013 case $host_os in
18014 freebsd2*)
18015 shlibpath_overrides_runpath=yes
18016 ;;
18017 freebsd3.[01]* | freebsdelf3.[01]*)
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18020 ;;
18021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18023 shlibpath_overrides_runpath=no
18024 hardcode_into_libs=yes
18025 ;;
18026 *) # from 4.6 on, and DragonFly
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18029 ;;
18030 esac
18031 ;;
18032
18033gnu*)
18034 version_type=linux
18035 need_lib_prefix=no
18036 need_version=no
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 hardcode_into_libs=yes
18041 ;;
18042
18043hpux9* | hpux10* | hpux11*)
18044 # Give a soname corresponding to the major version so that dld.sl refuses to
18045 # link against other versions.
18046 version_type=sunos
18047 need_lib_prefix=no
18048 need_version=no
18049 case $host_cpu in
18050 ia64*)
18051 shrext_cmds='.so'
18052 hardcode_into_libs=yes
18053 dynamic_linker="$host_os dld.so"
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 if test "X$HPUX_IA64_MODE" = X32; then
18059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18060 else
18061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18062 fi
18063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18064 ;;
18065 hppa*64*)
18066 shrext_cmds='.sl'
18067 hardcode_into_libs=yes
18068 dynamic_linker="$host_os dld.sl"
18069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18075 ;;
18076 *)
18077 shrext_cmds='.sl'
18078 dynamic_linker="$host_os dld.sl"
18079 shlibpath_var=SHLIB_PATH
18080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 ;;
18084 esac
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086 postinstall_cmds='chmod 555 $lib'
18087 ;;
18088
18089interix[3-9]*)
18090 version_type=linux
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 hardcode_into_libs=yes
18099 ;;
18100
18101irix5* | irix6* | nonstopux*)
18102 case $host_os in
18103 nonstopux*) version_type=nonstopux ;;
18104 *)
18105 if test "$lt_cv_prog_gnu_ld" = yes; then
18106 version_type=linux
18107 else
18108 version_type=irix
18109 fi ;;
18110 esac
18111 need_lib_prefix=no
18112 need_version=no
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18115 case $host_os in
18116 irix5* | nonstopux*)
18117 libsuff= shlibsuff=
18118 ;;
18119 *)
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122 libsuff= shlibsuff= libmagic=32-bit;;
18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124 libsuff=32 shlibsuff=N32 libmagic=N32;;
18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127 *) libsuff= shlibsuff= libmagic=never-match;;
18128 esac
18129 ;;
18130 esac
18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18135 hardcode_into_libs=yes
18136 ;;
18137
18138# No shared lib support for Linux oldld, aout, or coff.
18139linux*oldld* | linux*aout* | linux*coff*)
18140 dynamic_linker=no
18141 ;;
18142
18143# This must be Linux ELF.
18144linux* | k*bsd*-gnu)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs=yes
18157
18158 # Append ld.so.conf contents to the search path
18159 if test -f /etc/ld.so.conf; then
18160 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' ' '`
18161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18162 fi
18163
18164 # We used to test for /lib/ld.so.1 and disable shared libraries on
18165 # powerpc, because MkLinux only supported shared libraries with the
18166 # GNU dynamic linker. Since this was broken with cross compilers,
18167 # most powerpc-linux boxes support dynamic linking these days and
18168 # people can always --disable-shared, the test was removed, and we
18169 # assume the GNU/Linux dynamic linker is in use.
18170 dynamic_linker='GNU/Linux ld.so'
18171 ;;
18172
18173netbsd*)
18174 version_type=sunos
18175 need_lib_prefix=no
18176 need_version=no
18177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180 dynamic_linker='NetBSD (a.out) ld.so'
18181 else
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 dynamic_linker='NetBSD ld.elf_so'
18185 fi
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=yes
18188 hardcode_into_libs=yes
18189 ;;
18190
18191newsos6)
18192 version_type=linux
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath=yes
18196 ;;
18197
18198nto-qnx*)
18199 version_type=linux
18200 need_lib_prefix=no
18201 need_version=no
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=yes
18206 ;;
18207
18208openbsd*)
18209 version_type=sunos
18210 sys_lib_dlsearch_path_spec="/usr/lib"
18211 need_lib_prefix=no
18212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18213 case $host_os in
18214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18215 *) need_version=no ;;
18216 esac
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18221 case $host_os in
18222 openbsd2.[89] | openbsd2.[89].*)
18223 shlibpath_overrides_runpath=no
18224 ;;
18225 *)
18226 shlibpath_overrides_runpath=yes
18227 ;;
18228 esac
18229 else
18230 shlibpath_overrides_runpath=yes
18231 fi
18232 ;;
18233
18234os2*)
18235 libname_spec='$name'
18236 shrext_cmds=".dll"
18237 need_lib_prefix=no
18238 library_names_spec='$libname${shared_ext} $libname.a'
18239 dynamic_linker='OS/2 ld.exe'
18240 shlibpath_var=LIBPATH
18241 ;;
18242
18243osf3* | osf4* | osf5*)
18244 version_type=osf
18245 need_lib_prefix=no
18246 need_version=no
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18252 ;;
18253
18254rdos*)
18255 dynamic_linker=no
18256 ;;
18257
18258solaris*)
18259 version_type=linux
18260 need_lib_prefix=no
18261 need_version=no
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 shlibpath_overrides_runpath=yes
18266 hardcode_into_libs=yes
18267 # ldd complains unless libraries are executable
18268 postinstall_cmds='chmod +x $lib'
18269 ;;
18270
18271sunos4*)
18272 version_type=sunos
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath=yes
18277 if test "$with_gnu_ld" = yes; then
18278 need_lib_prefix=no
18279 fi
18280 need_version=yes
18281 ;;
18282
18283sysv4 | sysv4.3*)
18284 version_type=linux
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 case $host_vendor in
18289 sni)
18290 shlibpath_overrides_runpath=no
18291 need_lib_prefix=no
18292 export_dynamic_flag_spec='${wl}-Blargedynsym'
18293 runpath_var=LD_RUN_PATH
18294 ;;
18295 siemens)
18296 need_lib_prefix=no
18297 ;;
18298 motorola)
18299 need_lib_prefix=no
18300 need_version=no
18301 shlibpath_overrides_runpath=no
18302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18303 ;;
18304 esac
18305 ;;
18306
18307sysv4*MP*)
18308 if test -d /usr/nec ;then
18309 version_type=linux
18310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18311 soname_spec='$libname${shared_ext}.$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 fi
18314 ;;
18315
18316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18317 version_type=freebsd-elf
18318 need_lib_prefix=no
18319 need_version=no
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 hardcode_into_libs=yes
18324 if test "$with_gnu_ld" = yes; then
18325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18326 shlibpath_overrides_runpath=no
18327 else
18328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18329 shlibpath_overrides_runpath=yes
18330 case $host_os in
18331 sco3.2v5*)
18332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18333 ;;
18334 esac
18335 fi
18336 sys_lib_dlsearch_path_spec='/usr/lib'
18337 ;;
18338
18339uts4*)
18340 version_type=linux
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 ;;
18345
18346*)
18347 dynamic_linker=no
18348 ;;
18349esac
18350{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18351$as_echo "$dynamic_linker" >&6; }
18352test "$dynamic_linker" = no && can_build_shared=no
18353
18354if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18355 $as_echo_n "(cached) " >&6
18356else
18357 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18358fi
18359
18360sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18361if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18362 $as_echo_n "(cached) " >&6
18363else
18364 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18365fi
18366
18367sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18368
18369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18370if test "$GCC" = yes; then
18371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18372fi
18373
18374{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18376hardcode_action_GCJ=
18377if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18378 test -n "$runpath_var_GCJ" || \
18379 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18380
18381 # We can hardcode non-existant directories.
18382 if test "$hardcode_direct_GCJ" != no &&
18383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384 # have to relink, otherwise we might link with an installed library
18385 # when we should be linking with a yet-to-be-installed one
18386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387 test "$hardcode_minus_L_GCJ" != no; then
18388 # Linking always hardcodes the temporary library directory.
18389 hardcode_action_GCJ=relink
18390 else
18391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392 hardcode_action_GCJ=immediate
18393 fi
18394else
18395 # We cannot hardcode anything, or else we can only hardcode existing
18396 # directories.
18397 hardcode_action_GCJ=unsupported
18398fi
18399{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400$as_echo "$hardcode_action_GCJ" >&6; }
18401
18402if test "$hardcode_action_GCJ" = relink; then
18403 # Fast installation is not supported
18404 enable_fast_install=no
18405elif test "$shlibpath_overrides_runpath" = yes ||
18406 test "$enable_shared" = no; then
18407 # Fast installation is not necessary
18408 enable_fast_install=needless
18409fi
18410
18411
18412# The else clause should only fire when bootstrapping the
18413# libtool distribution, otherwise you forgot to ship ltmain.sh
18414# with your package, and you will get complaints that there are
18415# no rules to generate ltmain.sh.
18416if test -f "$ltmain"; then
18417 # See if we are running on zsh, and set the options which allow our commands through
18418 # without removal of \ escapes.
18419 if test -n "${ZSH_VERSION+set}" ; then
18420 setopt NO_GLOB_SUBST
18421 fi
18422 # Now quote all the things that may contain metacharacters while being
18423 # careful not to overquote the AC_SUBSTed values. We take copies of the
18424 # variables and quote the copies for generation of the libtool script.
18425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18426 SED SHELL STRIP \
18427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18429 deplibs_check_method reload_flag reload_cmds need_locks \
18430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18431 lt_cv_sys_global_symbol_to_c_name_address \
18432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18433 old_postinstall_cmds old_postuninstall_cmds \
18434 compiler_GCJ \
18435 CC_GCJ \
18436 LD_GCJ \
18437 lt_prog_compiler_wl_GCJ \
18438 lt_prog_compiler_pic_GCJ \
18439 lt_prog_compiler_static_GCJ \
18440 lt_prog_compiler_no_builtin_flag_GCJ \
18441 export_dynamic_flag_spec_GCJ \
18442 thread_safe_flag_spec_GCJ \
18443 whole_archive_flag_spec_GCJ \
18444 enable_shared_with_static_runtimes_GCJ \
18445 old_archive_cmds_GCJ \
18446 old_archive_from_new_cmds_GCJ \
18447 predep_objects_GCJ \
18448 postdep_objects_GCJ \
18449 predeps_GCJ \
18450 postdeps_GCJ \
18451 compiler_lib_search_path_GCJ \
18452 compiler_lib_search_dirs_GCJ \
18453 archive_cmds_GCJ \
18454 archive_expsym_cmds_GCJ \
18455 postinstall_cmds_GCJ \
18456 postuninstall_cmds_GCJ \
18457 old_archive_from_expsyms_cmds_GCJ \
18458 allow_undefined_flag_GCJ \
18459 no_undefined_flag_GCJ \
18460 export_symbols_cmds_GCJ \
18461 hardcode_libdir_flag_spec_GCJ \
18462 hardcode_libdir_flag_spec_ld_GCJ \
18463 hardcode_libdir_separator_GCJ \
18464 hardcode_automatic_GCJ \
18465 module_cmds_GCJ \
18466 module_expsym_cmds_GCJ \
18467 lt_cv_prog_compiler_c_o_GCJ \
18468 fix_srcfile_path_GCJ \
18469 exclude_expsyms_GCJ \
18470 include_expsyms_GCJ; do
18471
18472 case $var in
18473 old_archive_cmds_GCJ | \
18474 old_archive_from_new_cmds_GCJ | \
18475 archive_cmds_GCJ | \
18476 archive_expsym_cmds_GCJ | \
18477 module_cmds_GCJ | \
18478 module_expsym_cmds_GCJ | \
18479 old_archive_from_expsyms_cmds_GCJ | \
18480 export_symbols_cmds_GCJ | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18487 ;;
18488 *)
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18490 ;;
18491 esac
18492 done
18493
18494 case $lt_echo in
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18497 ;;
18498 esac
18499
18500cfgfile="$ofile"
18501
18502 cat <<__EOF__ >> "$cfgfile"
18503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504
18505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506
18507# Shell to use when invoking shell scripts.
18508SHELL=$lt_SHELL
18509
18510# Whether or not to build shared libraries.
18511build_libtool_libs=$enable_shared
18512
18513# Whether or not to build static libraries.
18514build_old_libs=$enable_static
18515
18516# Whether or not to add -lc for building shared libraries.
18517build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18518
18519# Whether or not to disallow shared libs when runtime libs are static
18520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18521
18522# Whether or not to optimize for fast installation.
18523fast_install=$enable_fast_install
18524
18525# The host system.
18526host_alias=$host_alias
18527host=$host
18528host_os=$host_os
18529
18530# The build system.
18531build_alias=$build_alias
18532build=$build
18533build_os=$build_os
18534
18535# An echo program that does not interpret backslashes.
18536echo=$lt_echo
18537
18538# The archiver.
18539AR=$lt_AR
18540AR_FLAGS=$lt_AR_FLAGS
18541
18542# A C compiler.
18543LTCC=$lt_LTCC
18544
18545# LTCC compiler flags.
18546LTCFLAGS=$lt_LTCFLAGS
18547
18548# A language-specific compiler.
18549CC=$lt_compiler_GCJ
18550
18551# Is the compiler the GNU C compiler?
18552with_gcc=$GCC_GCJ
18553
18554# An ERE matcher.
18555EGREP=$lt_EGREP
18556
18557# The linker used to build libraries.
18558LD=$lt_LD_GCJ
18559
18560# Whether we need hard or soft links.
18561LN_S=$lt_LN_S
18562
18563# A BSD-compatible nm program.
18564NM=$lt_NM
18565
18566# A symbol stripping program
18567STRIP=$lt_STRIP
18568
18569# Used to examine libraries when file_magic_cmd begins "file"
18570MAGIC_CMD=$MAGIC_CMD
18571
18572# Used on cygwin: DLL creation program.
18573DLLTOOL="$DLLTOOL"
18574
18575# Used on cygwin: object dumper.
18576OBJDUMP="$OBJDUMP"
18577
18578# Used on cygwin: assembler.
18579AS="$AS"
18580
18581# The name of the directory that contains temporary libtool files.
18582objdir=$objdir
18583
18584# How to create reloadable object files.
18585reload_flag=$lt_reload_flag
18586reload_cmds=$lt_reload_cmds
18587
18588# How to pass a linker flag through the compiler.
18589wl=$lt_lt_prog_compiler_wl_GCJ
18590
18591# Object file suffix (normally "o").
18592objext="$ac_objext"
18593
18594# Old archive suffix (normally "a").
18595libext="$libext"
18596
18597# Shared library suffix (normally ".so").
18598shrext_cmds='$shrext_cmds'
18599
18600# Executable file suffix (normally "").
18601exeext="$exeext"
18602
18603# Additional compiler flags for building library objects.
18604pic_flag=$lt_lt_prog_compiler_pic_GCJ
18605pic_mode=$pic_mode
18606
18607# What is the maximum length of a command?
18608max_cmd_len=$lt_cv_sys_max_cmd_len
18609
18610# Does compiler simultaneously support -c and -o options?
18611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18612
18613# Must we lock files when doing compilation?
18614need_locks=$lt_need_locks
18615
18616# Do we need the lib prefix for modules?
18617need_lib_prefix=$need_lib_prefix
18618
18619# Do we need a version for libraries?
18620need_version=$need_version
18621
18622# Whether dlopen is supported.
18623dlopen_support=$enable_dlopen
18624
18625# Whether dlopen of programs is supported.
18626dlopen_self=$enable_dlopen_self
18627
18628# Whether dlopen of statically linked programs is supported.
18629dlopen_self_static=$enable_dlopen_self_static
18630
18631# Compiler flag to prevent dynamic linking.
18632link_static_flag=$lt_lt_prog_compiler_static_GCJ
18633
18634# Compiler flag to turn off builtin functions.
18635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18636
18637# Compiler flag to allow reflexive dlopens.
18638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18639
18640# Compiler flag to generate shared objects directly from archives.
18641whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18642
18643# Compiler flag to generate thread-safe objects.
18644thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18645
18646# Library versioning type.
18647version_type=$version_type
18648
18649# Format of library name prefix.
18650libname_spec=$lt_libname_spec
18651
18652# List of archive names. First name is the real one, the rest are links.
18653# The last name is the one that the linker finds with -lNAME.
18654library_names_spec=$lt_library_names_spec
18655
18656# The coded name of the library, if different from the real name.
18657soname_spec=$lt_soname_spec
18658
18659# Commands used to build and install an old-style archive.
18660RANLIB=$lt_RANLIB
18661old_archive_cmds=$lt_old_archive_cmds_GCJ
18662old_postinstall_cmds=$lt_old_postinstall_cmds
18663old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665# Create an old-style archive from a shared archive.
18666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18667
18668# Create a temporary old-style archive to link instead of a shared archive.
18669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18670
18671# Commands used to build and install a shared archive.
18672archive_cmds=$lt_archive_cmds_GCJ
18673archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18674postinstall_cmds=$lt_postinstall_cmds
18675postuninstall_cmds=$lt_postuninstall_cmds
18676
18677# Commands used to build a loadable module (assumed same as above if empty)
18678module_cmds=$lt_module_cmds_GCJ
18679module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18680
18681# Commands to strip libraries.
18682old_striplib=$lt_old_striplib
18683striplib=$lt_striplib
18684
18685# Dependencies to place before the objects being linked to create a
18686# shared library.
18687predep_objects=$lt_predep_objects_GCJ
18688
18689# Dependencies to place after the objects being linked to create a
18690# shared library.
18691postdep_objects=$lt_postdep_objects_GCJ
18692
18693# Dependencies to place before the objects being linked to create a
18694# shared library.
18695predeps=$lt_predeps_GCJ
18696
18697# Dependencies to place after the objects being linked to create a
18698# shared library.
18699postdeps=$lt_postdeps_GCJ
18700
18701# The directories searched by this compiler when creating a shared
18702# library
18703compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18704
18705# The library search path used internally by the compiler when linking
18706# a shared library.
18707compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18708
18709# Method to check whether dependent libraries are shared objects.
18710deplibs_check_method=$lt_deplibs_check_method
18711
18712# Command to use when deplibs_check_method == file_magic.
18713file_magic_cmd=$lt_file_magic_cmd
18714
18715# Flag that allows shared libraries with undefined symbols to be built.
18716allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18717
18718# Flag that forces no undefined symbols.
18719no_undefined_flag=$lt_no_undefined_flag_GCJ
18720
18721# Commands used to finish a libtool library installation in a directory.
18722finish_cmds=$lt_finish_cmds
18723
18724# Same as above, but a single script fragment to be evaled but not shown.
18725finish_eval=$lt_finish_eval
18726
18727# Take the output of nm and produce a listing of raw symbols and C names.
18728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18729
18730# Transform the output of nm in a proper C declaration
18731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18732
18733# Transform the output of nm in a C name address pair
18734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18735
18736# This is the shared library runtime path variable.
18737runpath_var=$runpath_var
18738
18739# This is the shared library path variable.
18740shlibpath_var=$shlibpath_var
18741
18742# Is shlibpath searched before the hard-coded library search path?
18743shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18744
18745# How to hardcode a shared library path into an executable.
18746hardcode_action=$hardcode_action_GCJ
18747
18748# Whether we should hardcode library paths into libraries.
18749hardcode_into_libs=$hardcode_into_libs
18750
18751# Flag to hardcode \$libdir into a binary during linking.
18752# This must work even if \$libdir does not exist.
18753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18754
18755# If ld is used when linking, flag to hardcode \$libdir into
18756# a binary during linking. This must work even if \$libdir does
18757# not exist.
18758hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18759
18760# Whether we need a single -rpath flag with a separated argument.
18761hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18762
18763# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18764# resulting binary.
18765hardcode_direct=$hardcode_direct_GCJ
18766
18767# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18768# resulting binary.
18769hardcode_minus_L=$hardcode_minus_L_GCJ
18770
18771# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18772# the resulting binary.
18773hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18774
18775# Set to yes if building a shared library automatically hardcodes DIR into the library
18776# and all subsequent libraries and executables linked against it.
18777hardcode_automatic=$hardcode_automatic_GCJ
18778
18779# Variables whose values should be saved in libtool wrapper scripts and
18780# restored at relink time.
18781variables_saved_for_relink="$variables_saved_for_relink"
18782
18783# Whether libtool must link a program against all its dependency libraries.
18784link_all_deplibs=$link_all_deplibs_GCJ
18785
18786# Compile-time system search path for libraries
18787sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18788
18789# Run-time system search path for libraries
18790sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18791
18792# Fix the shell variable \$srcfile for the compiler.
18793fix_srcfile_path=$lt_fix_srcfile_path
18794
18795# Set to yes if exported symbols are required.
18796always_export_symbols=$always_export_symbols_GCJ
18797
18798# The commands to list exported symbols.
18799export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18800
18801# The commands to extract the exported symbol list from a shared archive.
18802extract_expsyms_cmds=$lt_extract_expsyms_cmds
18803
18804# Symbols that should not be listed in the preloaded symbols.
18805exclude_expsyms=$lt_exclude_expsyms_GCJ
18806
18807# Symbols that must always be exported.
18808include_expsyms=$lt_include_expsyms_GCJ
18809
18810# ### END LIBTOOL TAG CONFIG: $tagname
18811
18812__EOF__
18813
18814
18815else
18816 # If there is no Makefile yet, we rely on a make rule to execute
18817 # `config.status --recheck' to rerun these tests and create the
18818 # libtool script then.
18819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18820 if test -f "$ltmain_in"; then
18821 test -f Makefile && make "$ltmain"
18822 fi
18823fi
18824
18825
18826ac_ext=c
18827ac_cpp='$CPP $CPPFLAGS'
18828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830ac_compiler_gnu=$ac_cv_c_compiler_gnu
18831
18832CC="$lt_save_CC"
18833
18834 else
18835 tagname=""
18836 fi
18837 ;;
18838
18839 RC)
18840
18841
18842# Source file extension for RC test sources.
18843ac_ext=rc
18844
18845# Object file extension for compiled RC test sources.
18846objext=o
18847objext_RC=$objext
18848
18849# Code to be used in simple compile tests
18850lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18851
18852# Code to be used in simple link tests
18853lt_simple_link_test_code="$lt_simple_compile_test_code"
18854
18855# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18856
18857# If no C compiler was specified, use CC.
18858LTCC=${LTCC-"$CC"}
18859
18860# If no C compiler flags were specified, use CFLAGS.
18861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18862
18863# Allow CC to be a program name with arguments.
18864compiler=$CC
18865
18866
18867# save warnings/boilerplate of simple test code
18868ac_outfile=conftest.$ac_objext
18869echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18871_lt_compiler_boilerplate=`cat conftest.err`
18872$rm conftest*
18873
18874ac_outfile=conftest.$ac_objext
18875echo "$lt_simple_link_test_code" >conftest.$ac_ext
18876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18877_lt_linker_boilerplate=`cat conftest.err`
18878$rm -r conftest*
18879
18880
18881# Allow CC to be a program name with arguments.
18882lt_save_CC="$CC"
18883CC=${RC-"windres"}
18884compiler=$CC
18885compiler_RC=$CC
18886for cc_temp in $compiler""; do
18887 case $cc_temp in
18888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18890 \-*) ;;
18891 *) break;;
18892 esac
18893done
18894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18895
18896lt_cv_prog_compiler_c_o_RC=yes
18897
18898# The else clause should only fire when bootstrapping the
18899# libtool distribution, otherwise you forgot to ship ltmain.sh
18900# with your package, and you will get complaints that there are
18901# no rules to generate ltmain.sh.
18902if test -f "$ltmain"; then
18903 # See if we are running on zsh, and set the options which allow our commands through
18904 # without removal of \ escapes.
18905 if test -n "${ZSH_VERSION+set}" ; then
18906 setopt NO_GLOB_SUBST
18907 fi
18908 # Now quote all the things that may contain metacharacters while being
18909 # careful not to overquote the AC_SUBSTed values. We take copies of the
18910 # variables and quote the copies for generation of the libtool script.
18911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18912 SED SHELL STRIP \
18913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18915 deplibs_check_method reload_flag reload_cmds need_locks \
18916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18917 lt_cv_sys_global_symbol_to_c_name_address \
18918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18919 old_postinstall_cmds old_postuninstall_cmds \
18920 compiler_RC \
18921 CC_RC \
18922 LD_RC \
18923 lt_prog_compiler_wl_RC \
18924 lt_prog_compiler_pic_RC \
18925 lt_prog_compiler_static_RC \
18926 lt_prog_compiler_no_builtin_flag_RC \
18927 export_dynamic_flag_spec_RC \
18928 thread_safe_flag_spec_RC \
18929 whole_archive_flag_spec_RC \
18930 enable_shared_with_static_runtimes_RC \
18931 old_archive_cmds_RC \
18932 old_archive_from_new_cmds_RC \
18933 predep_objects_RC \
18934 postdep_objects_RC \
18935 predeps_RC \
18936 postdeps_RC \
18937 compiler_lib_search_path_RC \
18938 compiler_lib_search_dirs_RC \
18939 archive_cmds_RC \
18940 archive_expsym_cmds_RC \
18941 postinstall_cmds_RC \
18942 postuninstall_cmds_RC \
18943 old_archive_from_expsyms_cmds_RC \
18944 allow_undefined_flag_RC \
18945 no_undefined_flag_RC \
18946 export_symbols_cmds_RC \
18947 hardcode_libdir_flag_spec_RC \
18948 hardcode_libdir_flag_spec_ld_RC \
18949 hardcode_libdir_separator_RC \
18950 hardcode_automatic_RC \
18951 module_cmds_RC \
18952 module_expsym_cmds_RC \
18953 lt_cv_prog_compiler_c_o_RC \
18954 fix_srcfile_path_RC \
18955 exclude_expsyms_RC \
18956 include_expsyms_RC; do
18957
18958 case $var in
18959 old_archive_cmds_RC | \
18960 old_archive_from_new_cmds_RC | \
18961 archive_cmds_RC | \
18962 archive_expsym_cmds_RC | \
18963 module_cmds_RC | \
18964 module_expsym_cmds_RC | \
18965 old_archive_from_expsyms_cmds_RC | \
18966 export_symbols_cmds_RC | \
18967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18968 postinstall_cmds | postuninstall_cmds | \
18969 old_postinstall_cmds | old_postuninstall_cmds | \
18970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18971 # Double-quote double-evaled strings.
18972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18973 ;;
18974 *)
18975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18976 ;;
18977 esac
18978 done
18979
18980 case $lt_echo in
18981 *'\$0 --fallback-echo"')
18982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18983 ;;
18984 esac
18985
18986cfgfile="$ofile"
18987
18988 cat <<__EOF__ >> "$cfgfile"
18989# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18990
18991# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18992
18993# Shell to use when invoking shell scripts.
18994SHELL=$lt_SHELL
18995
18996# Whether or not to build shared libraries.
18997build_libtool_libs=$enable_shared
18998
18999# Whether or not to build static libraries.
19000build_old_libs=$enable_static
19001
19002# Whether or not to add -lc for building shared libraries.
19003build_libtool_need_lc=$archive_cmds_need_lc_RC
19004
19005# Whether or not to disallow shared libs when runtime libs are static
19006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19007
19008# Whether or not to optimize for fast installation.
19009fast_install=$enable_fast_install
19010
19011# The host system.
19012host_alias=$host_alias
19013host=$host
19014host_os=$host_os
19015
19016# The build system.
19017build_alias=$build_alias
19018build=$build
19019build_os=$build_os
19020
19021# An echo program that does not interpret backslashes.
19022echo=$lt_echo
19023
19024# The archiver.
19025AR=$lt_AR
19026AR_FLAGS=$lt_AR_FLAGS
19027
19028# A C compiler.
19029LTCC=$lt_LTCC
19030
19031# LTCC compiler flags.
19032LTCFLAGS=$lt_LTCFLAGS
19033
19034# A language-specific compiler.
19035CC=$lt_compiler_RC
19036
19037# Is the compiler the GNU C compiler?
19038with_gcc=$GCC_RC
19039
19040# An ERE matcher.
19041EGREP=$lt_EGREP
19042
19043# The linker used to build libraries.
19044LD=$lt_LD_RC
19045
19046# Whether we need hard or soft links.
19047LN_S=$lt_LN_S
19048
19049# A BSD-compatible nm program.
19050NM=$lt_NM
19051
19052# A symbol stripping program
19053STRIP=$lt_STRIP
19054
19055# Used to examine libraries when file_magic_cmd begins "file"
19056MAGIC_CMD=$MAGIC_CMD
19057
19058# Used on cygwin: DLL creation program.
19059DLLTOOL="$DLLTOOL"
19060
19061# Used on cygwin: object dumper.
19062OBJDUMP="$OBJDUMP"
19063
19064# Used on cygwin: assembler.
19065AS="$AS"
19066
19067# The name of the directory that contains temporary libtool files.
19068objdir=$objdir
19069
19070# How to create reloadable object files.
19071reload_flag=$lt_reload_flag
19072reload_cmds=$lt_reload_cmds
19073
19074# How to pass a linker flag through the compiler.
19075wl=$lt_lt_prog_compiler_wl_RC
19076
19077# Object file suffix (normally "o").
19078objext="$ac_objext"
19079
19080# Old archive suffix (normally "a").
19081libext="$libext"
19082
19083# Shared library suffix (normally ".so").
19084shrext_cmds='$shrext_cmds'
19085
19086# Executable file suffix (normally "").
19087exeext="$exeext"
19088
19089# Additional compiler flags for building library objects.
19090pic_flag=$lt_lt_prog_compiler_pic_RC
19091pic_mode=$pic_mode
19092
19093# What is the maximum length of a command?
19094max_cmd_len=$lt_cv_sys_max_cmd_len
19095
19096# Does compiler simultaneously support -c and -o options?
19097compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19098
19099# Must we lock files when doing compilation?
19100need_locks=$lt_need_locks
19101
19102# Do we need the lib prefix for modules?
19103need_lib_prefix=$need_lib_prefix
19104
19105# Do we need a version for libraries?
19106need_version=$need_version
19107
19108# Whether dlopen is supported.
19109dlopen_support=$enable_dlopen
19110
19111# Whether dlopen of programs is supported.
19112dlopen_self=$enable_dlopen_self
19113
19114# Whether dlopen of statically linked programs is supported.
19115dlopen_self_static=$enable_dlopen_self_static
19116
19117# Compiler flag to prevent dynamic linking.
19118link_static_flag=$lt_lt_prog_compiler_static_RC
19119
19120# Compiler flag to turn off builtin functions.
19121no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19122
19123# Compiler flag to allow reflexive dlopens.
19124export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19125
19126# Compiler flag to generate shared objects directly from archives.
19127whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19128
19129# Compiler flag to generate thread-safe objects.
19130thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19131
19132# Library versioning type.
19133version_type=$version_type
19134
19135# Format of library name prefix.
19136libname_spec=$lt_libname_spec
19137
19138# List of archive names. First name is the real one, the rest are links.
19139# The last name is the one that the linker finds with -lNAME.
19140library_names_spec=$lt_library_names_spec
19141
19142# The coded name of the library, if different from the real name.
19143soname_spec=$lt_soname_spec
19144
19145# Commands used to build and install an old-style archive.
19146RANLIB=$lt_RANLIB
19147old_archive_cmds=$lt_old_archive_cmds_RC
19148old_postinstall_cmds=$lt_old_postinstall_cmds
19149old_postuninstall_cmds=$lt_old_postuninstall_cmds
19150
19151# Create an old-style archive from a shared archive.
19152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19153
19154# Create a temporary old-style archive to link instead of a shared archive.
19155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19156
19157# Commands used to build and install a shared archive.
19158archive_cmds=$lt_archive_cmds_RC
19159archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19160postinstall_cmds=$lt_postinstall_cmds
19161postuninstall_cmds=$lt_postuninstall_cmds
19162
19163# Commands used to build a loadable module (assumed same as above if empty)
19164module_cmds=$lt_module_cmds_RC
19165module_expsym_cmds=$lt_module_expsym_cmds_RC
19166
19167# Commands to strip libraries.
19168old_striplib=$lt_old_striplib
19169striplib=$lt_striplib
19170
19171# Dependencies to place before the objects being linked to create a
19172# shared library.
19173predep_objects=$lt_predep_objects_RC
19174
19175# Dependencies to place after the objects being linked to create a
19176# shared library.
19177postdep_objects=$lt_postdep_objects_RC
19178
19179# Dependencies to place before the objects being linked to create a
19180# shared library.
19181predeps=$lt_predeps_RC
19182
19183# Dependencies to place after the objects being linked to create a
19184# shared library.
19185postdeps=$lt_postdeps_RC
19186
19187# The directories searched by this compiler when creating a shared
19188# library
19189compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19190
19191# The library search path used internally by the compiler when linking
19192# a shared library.
19193compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19194
19195# Method to check whether dependent libraries are shared objects.
19196deplibs_check_method=$lt_deplibs_check_method
19197
19198# Command to use when deplibs_check_method == file_magic.
19199file_magic_cmd=$lt_file_magic_cmd
19200
19201# Flag that allows shared libraries with undefined symbols to be built.
19202allow_undefined_flag=$lt_allow_undefined_flag_RC
19203
19204# Flag that forces no undefined symbols.
19205no_undefined_flag=$lt_no_undefined_flag_RC
19206
19207# Commands used to finish a libtool library installation in a directory.
19208finish_cmds=$lt_finish_cmds
19209
19210# Same as above, but a single script fragment to be evaled but not shown.
19211finish_eval=$lt_finish_eval
19212
19213# Take the output of nm and produce a listing of raw symbols and C names.
19214global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19215
19216# Transform the output of nm in a proper C declaration
19217global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19218
19219# Transform the output of nm in a C name address pair
19220global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19221
19222# This is the shared library runtime path variable.
19223runpath_var=$runpath_var
19224
19225# This is the shared library path variable.
19226shlibpath_var=$shlibpath_var
19227
19228# Is shlibpath searched before the hard-coded library search path?
19229shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19230
19231# How to hardcode a shared library path into an executable.
19232hardcode_action=$hardcode_action_RC
19233
19234# Whether we should hardcode library paths into libraries.
19235hardcode_into_libs=$hardcode_into_libs
19236
19237# Flag to hardcode \$libdir into a binary during linking.
19238# This must work even if \$libdir does not exist.
19239hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19240
19241# If ld is used when linking, flag to hardcode \$libdir into
19242# a binary during linking. This must work even if \$libdir does
19243# not exist.
19244hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19245
19246# Whether we need a single -rpath flag with a separated argument.
19247hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19248
19249# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19250# resulting binary.
19251hardcode_direct=$hardcode_direct_RC
19252
19253# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19254# resulting binary.
19255hardcode_minus_L=$hardcode_minus_L_RC
19256
19257# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19258# the resulting binary.
19259hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19260
19261# Set to yes if building a shared library automatically hardcodes DIR into the library
19262# and all subsequent libraries and executables linked against it.
19263hardcode_automatic=$hardcode_automatic_RC
19264
19265# Variables whose values should be saved in libtool wrapper scripts and
19266# restored at relink time.
19267variables_saved_for_relink="$variables_saved_for_relink"
19268
19269# Whether libtool must link a program against all its dependency libraries.
19270link_all_deplibs=$link_all_deplibs_RC
19271
19272# Compile-time system search path for libraries
19273sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19274
19275# Run-time system search path for libraries
19276sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19277
19278# Fix the shell variable \$srcfile for the compiler.
19279fix_srcfile_path=$lt_fix_srcfile_path
19280
19281# Set to yes if exported symbols are required.
19282always_export_symbols=$always_export_symbols_RC
19283
19284# The commands to list exported symbols.
19285export_symbols_cmds=$lt_export_symbols_cmds_RC
19286
19287# The commands to extract the exported symbol list from a shared archive.
19288extract_expsyms_cmds=$lt_extract_expsyms_cmds
19289
19290# Symbols that should not be listed in the preloaded symbols.
19291exclude_expsyms=$lt_exclude_expsyms_RC
19292
19293# Symbols that must always be exported.
19294include_expsyms=$lt_include_expsyms_RC
19295
19296# ### END LIBTOOL TAG CONFIG: $tagname
19297
19298__EOF__
19299
19300
19301else
19302 # If there is no Makefile yet, we rely on a make rule to execute
19303 # `config.status --recheck' to rerun these tests and create the
19304 # libtool script then.
19305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19306 if test -f "$ltmain_in"; then
19307 test -f Makefile && make "$ltmain"
19308 fi
19309fi
19310
19311
19312ac_ext=c
19313ac_cpp='$CPP $CPPFLAGS'
19314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19316ac_compiler_gnu=$ac_cv_c_compiler_gnu
19317
19318CC="$lt_save_CC"
19319
19320 ;;
19321
19322 *)
19323 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19324$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19325 { (exit 1); exit 1; }; }
19326 ;;
19327 esac
19328
19329 # Append the new tag name to the list of available tags.
19330 if test -n "$tagname" ; then
19331 available_tags="$available_tags $tagname"
19332 fi
19333 fi
19334 done
19335 IFS="$lt_save_ifs"
19336
19337 # Now substitute the updated list of available tags.
19338 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19339 mv "${ofile}T" "$ofile"
19340 chmod +x "$ofile"
19341 else
19342 rm -f "${ofile}T"
19343 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19344$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19345 { (exit 1); exit 1; }; }
19346 fi
19347fi
19348
19349
19350
19351# This can be used to rebuild libtool when needed
19352LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19353
19354# Always use our own libtool.
19355LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19356
19357# Prevent multiple expansion
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379am__api_version='1.10'
19380
19381{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19382$as_echo_n "checking whether build environment is sane... " >&6; }
19383# Just in case
19384sleep 1
19385echo timestamp > conftest.file
19386# Do `set' in a subshell so we don't clobber the current shell's
19387# arguments. Must try -L first in case configure is actually a
19388# symlink; some systems play weird games with the mod time of symlinks
19389# (eg FreeBSD returns the mod time of the symlink's containing
19390# directory).
19391if (
19392 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19393 if test "$*" = "X"; then
19394 # -L didn't work.
19395 set X `ls -t $srcdir/configure conftest.file`
19396 fi
19397 rm -f conftest.file
19398 if test "$*" != "X $srcdir/configure conftest.file" \
19399 && test "$*" != "X conftest.file $srcdir/configure"; then
19400
19401 # If neither matched, then we have a broken ls. This can happen
19402 # if, for instance, CONFIG_SHELL is bash and it inherits a
19403 # broken ls alias from the environment. This has actually
19404 # happened. Such a system could not be considered "sane".
19405 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19406alias in your environment" >&5
19407$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19408alias in your environment" >&2;}
19409 { (exit 1); exit 1; }; }
19410 fi
19411
19412 test "$2" = conftest.file
19413 )
19414then
19415 # Ok.
19416 :
19417else
19418 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19419Check your system clock" >&5
19420$as_echo "$as_me: error: newly created file is older than distributed files!
19421Check your system clock" >&2;}
19422 { (exit 1); exit 1; }; }
19423fi
19424{ $as_echo "$as_me:$LINENO: result: yes" >&5
19425$as_echo "yes" >&6; }
19426test "$program_prefix" != NONE &&
19427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
19428# Use a double $ so make ignores it.
19429test "$program_suffix" != NONE &&
19430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
19431# Double any \ or $.
19432# By default was `s,x,x', remove it if useless.
19433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
19434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
19435
19436# expand $ac_aux_dir to an absolute path
19437am_aux_dir=`cd $ac_aux_dir && pwd`
19438
19439test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19440# Use eval to expand $SHELL
19441if eval "$MISSING --run true"; then
19442 am_missing_run="$MISSING --run "
19443else
19444 am_missing_run=
19445 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19446$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19447fi
19448
19449{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
19450$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19451if test -z "$MKDIR_P"; then
19452 if test "${ac_cv_path_mkdir+set}" = set; then
19453 $as_echo_n "(cached) " >&6
19454else
19455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19456for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19457do
19458 IFS=$as_save_IFS
19459 test -z "$as_dir" && as_dir=.
19460 for ac_prog in mkdir gmkdir; do
19461 for ac_exec_ext in '' $ac_executable_extensions; do
19462 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19463 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19464 'mkdir (GNU coreutils) '* | \
19465 'mkdir (coreutils) '* | \
19466 'mkdir (fileutils) '4.1*)
19467 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19468 break 3;;
19469 esac
19470 done
19471 done
19472done
19473IFS=$as_save_IFS
19474
19475fi
19476
19477 if test "${ac_cv_path_mkdir+set}" = set; then
19478 MKDIR_P="$ac_cv_path_mkdir -p"
19479 else
19480 # As a last resort, use the slow shell script. Don't cache a
19481 # value for MKDIR_P within a source directory, because that will
19482 # break other packages using the cache if that directory is
19483 # removed, or if the value is a relative name.
19484 test -d ./--version && rmdir ./--version
19485 MKDIR_P="$ac_install_sh -d"
19486 fi
19487fi
19488{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
19489$as_echo "$MKDIR_P" >&6; }
19490
19491mkdir_p="$MKDIR_P"
19492case $mkdir_p in
19493 [\\/$]* | ?:[\\/]*) ;;
19494 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19495esac
19496
19497for ac_prog in gawk mawk nawk awk
19498do
19499 # Extract the first word of "$ac_prog", so it can be a program name with args.
19500set dummy $ac_prog; ac_word=$2
19501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19502$as_echo_n "checking for $ac_word... " >&6; }
19503if test "${ac_cv_prog_AWK+set}" = set; then
19504 $as_echo_n "(cached) " >&6
19505else
19506 if test -n "$AWK"; then
19507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19508else
19509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19510for as_dir in $PATH
19511do
19512 IFS=$as_save_IFS
19513 test -z "$as_dir" && as_dir=.
19514 for ac_exec_ext in '' $ac_executable_extensions; do
19515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19516 ac_cv_prog_AWK="$ac_prog"
19517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19518 break 2
19519 fi
19520done
19521done
19522IFS=$as_save_IFS
19523
19524fi
19525fi
19526AWK=$ac_cv_prog_AWK
19527if test -n "$AWK"; then
19528 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
19529$as_echo "$AWK" >&6; }
19530else
19531 { $as_echo "$as_me:$LINENO: result: no" >&5
19532$as_echo "no" >&6; }
19533fi
19534
19535
19536 test -n "$AWK" && break
19537done
19538
19539{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19540$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19541set x ${MAKE-make}
19542ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19543if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19544 $as_echo_n "(cached) " >&6
19545else
19546 cat >conftest.make <<\_ACEOF
19547SHELL = /bin/sh
19548all:
19549 @echo '@@@%%%=$(MAKE)=@@@%%%'
19550_ACEOF
19551# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19552case `${MAKE-make} -f conftest.make 2>/dev/null` in
19553 *@@@%%%=?*=@@@%%%*)
19554 eval ac_cv_prog_make_${ac_make}_set=yes;;
19555 *)
19556 eval ac_cv_prog_make_${ac_make}_set=no;;
19557esac
19558rm -f conftest.make
19559fi
19560if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19561 { $as_echo "$as_me:$LINENO: result: yes" >&5
19562$as_echo "yes" >&6; }
19563 SET_MAKE=
19564else
19565 { $as_echo "$as_me:$LINENO: result: no" >&5
19566$as_echo "no" >&6; }
19567 SET_MAKE="MAKE=${MAKE-make}"
19568fi
19569
19570rm -rf .tst 2>/dev/null
19571mkdir .tst 2>/dev/null
19572if test -d .tst; then
19573 am__leading_dot=.
19574else
19575 am__leading_dot=_
19576fi
19577rmdir .tst 2>/dev/null
19578
19579DEPDIR="${am__leading_dot}deps"
19580
19581ac_config_commands="$ac_config_commands depfiles"
19582
19583
19584am_make=${MAKE-make}
19585cat > confinc << 'END'
19586am__doit:
19587 @echo done
19588.PHONY: am__doit
19589END
19590# If we don't find an include directive, just comment out the code.
19591{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19592$as_echo_n "checking for style of include used by $am_make... " >&6; }
19593am__include="#"
19594am__quote=
19595_am_result=none
19596# First try GNU make style include.
19597echo "include confinc" > confmf
19598# We grep out `Entering directory' and `Leaving directory'
19599# messages which can occur if `w' ends up in MAKEFLAGS.
19600# In particular we don't look at `^make:' because GNU make might
19601# be invoked under some other name (usually "gmake"), in which
19602# case it prints its new name instead of `make'.
19603if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19604 am__include=include
19605 am__quote=
19606 _am_result=GNU
19607fi
19608# Now try BSD make style include.
19609if test "$am__include" = "#"; then
19610 echo '.include "confinc"' > confmf
19611 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19612 am__include=.include
19613 am__quote="\""
19614 _am_result=BSD
19615 fi
19616fi
19617
19618
19619{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
19620$as_echo "$_am_result" >&6; }
19621rm -f confinc confmf
19622
19623# Check whether --enable-dependency-tracking was given.
19624if test "${enable_dependency_tracking+set}" = set; then
19625 enableval=$enable_dependency_tracking;
19626fi
19627
19628if test "x$enable_dependency_tracking" != xno; then
19629 am_depcomp="$ac_aux_dir/depcomp"
19630 AMDEPBACKSLASH='\'
19631fi
19632 if test "x$enable_dependency_tracking" != xno; then
19633 AMDEP_TRUE=
19634 AMDEP_FALSE='#'
19635else
19636 AMDEP_TRUE='#'
19637 AMDEP_FALSE=
19638fi
19639
19640
19641if test "`cd $srcdir && pwd`" != "`pwd`"; then
19642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19643 # is not polluted with repeated "-I."
19644 am__isrc=' -I$(srcdir)'
19645 # test to see if srcdir already configured
19646 if test -f $srcdir/config.status; then
19647 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19648$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19649 { (exit 1); exit 1; }; }
19650 fi
19651fi
19652
19653# test whether we have cygpath
19654if test -z "$CYGPATH_W"; then
19655 if (cygpath --version) >/dev/null 2>/dev/null; then
19656 CYGPATH_W='cygpath -w'
19657 else
19658 CYGPATH_W=echo
19659 fi
19660fi
19661
19662
19663# Define the identity of the package.
19664 PACKAGE=OpenBSM
1689generated by GNU Autoconf 2.62. Invocation command line was
1690
1691 $ $0 $@
1692
1693_ACEOF
1694exec 5>>config.log
1695{
1696cat <<_ASUNAME
1697## --------- ##
1698## Platform. ##
1699## --------- ##
1700
1701hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1702uname -m = `(uname -m) 2>/dev/null || echo unknown`
1703uname -r = `(uname -r) 2>/dev/null || echo unknown`
1704uname -s = `(uname -s) 2>/dev/null || echo unknown`
1705uname -v = `(uname -v) 2>/dev/null || echo unknown`
1706
1707/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1708/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1709
1710/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1711/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1712/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1713/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1714/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1715/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1716/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1717
1718_ASUNAME
1719
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 $as_echo "PATH: $as_dir"
1726done
1727IFS=$as_save_IFS
1728
1729} >&5
1730
1731cat >&5 <<_ACEOF
1732
1733
1734## ----------- ##
1735## Core tests. ##
1736## ----------- ##
1737
1738_ACEOF
1739
1740
1741# Keep a trace of the command line.
1742# Strip out --no-create and --no-recursion so they do not pile up.
1743# Strip out --silent because we don't want to record it for future runs.
1744# Also quote any args containing shell meta-characters.
1745# Make two passes to allow for proper duplicate-argument suppression.
1746ac_configure_args=
1747ac_configure_args0=
1748ac_configure_args1=
1749ac_must_keep_next=false
1750for ac_pass in 1 2
1751do
1752 for ac_arg
1753 do
1754 case $ac_arg in
1755 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1757 | -silent | --silent | --silen | --sile | --sil)
1758 continue ;;
1759 *\'*)
1760 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1761 esac
1762 case $ac_pass in
1763 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1764 2)
1765 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1766 if test $ac_must_keep_next = true; then
1767 ac_must_keep_next=false # Got value, back to normal.
1768 else
1769 case $ac_arg in
1770 *=* | --config-cache | -C | -disable-* | --disable-* \
1771 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1772 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1773 | -with-* | --with-* | -without-* | --without-* | --x)
1774 case "$ac_configure_args0 " in
1775 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1776 esac
1777 ;;
1778 -* ) ac_must_keep_next=true ;;
1779 esac
1780 fi
1781 ac_configure_args="$ac_configure_args '$ac_arg'"
1782 ;;
1783 esac
1784 done
1785done
1786$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1787$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1788
1789# When interrupted or exit'd, cleanup temporary files, and complete
1790# config.log. We remove comments because anyway the quotes in there
1791# would cause problems or look ugly.
1792# WARNING: Use '\'' to represent an apostrophe within the trap.
1793# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1794trap 'exit_status=$?
1795 # Save into config.log some information that might help in debugging.
1796 {
1797 echo
1798
1799 cat <<\_ASBOX
1800## ---------------- ##
1801## Cache variables. ##
1802## ---------------- ##
1803_ASBOX
1804 echo
1805 # The following way of writing the cache mishandles newlines in values,
1806(
1807 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1808 eval ac_val=\$$ac_var
1809 case $ac_val in #(
1810 *${as_nl}*)
1811 case $ac_var in #(
1812 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1813$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1814 esac
1815 case $ac_var in #(
1816 _ | IFS | as_nl) ;; #(
1817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1818 *) $as_unset $ac_var ;;
1819 esac ;;
1820 esac
1821 done
1822 (set) 2>&1 |
1823 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824 *${as_nl}ac_space=\ *)
1825 sed -n \
1826 "s/'\''/'\''\\\\'\'''\''/g;
1827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828 ;; #(
1829 *)
1830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831 ;;
1832 esac |
1833 sort
1834)
1835 echo
1836
1837 cat <<\_ASBOX
1838## ----------------- ##
1839## Output variables. ##
1840## ----------------- ##
1841_ASBOX
1842 echo
1843 for ac_var in $ac_subst_vars
1844 do
1845 eval ac_val=\$$ac_var
1846 case $ac_val in
1847 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 esac
1849 $as_echo "$ac_var='\''$ac_val'\''"
1850 done | sort
1851 echo
1852
1853 if test -n "$ac_subst_files"; then
1854 cat <<\_ASBOX
1855## ------------------- ##
1856## File substitutions. ##
1857## ------------------- ##
1858_ASBOX
1859 echo
1860 for ac_var in $ac_subst_files
1861 do
1862 eval ac_val=\$$ac_var
1863 case $ac_val in
1864 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865 esac
1866 $as_echo "$ac_var='\''$ac_val'\''"
1867 done | sort
1868 echo
1869 fi
1870
1871 if test -s confdefs.h; then
1872 cat <<\_ASBOX
1873## ----------- ##
1874## confdefs.h. ##
1875## ----------- ##
1876_ASBOX
1877 echo
1878 cat confdefs.h
1879 echo
1880 fi
1881 test "$ac_signal" != 0 &&
1882 $as_echo "$as_me: caught signal $ac_signal"
1883 $as_echo "$as_me: exit $exit_status"
1884 } >&5
1885 rm -f core *.core core.conftest.* &&
1886 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887 exit $exit_status
1888' 0
1889for ac_signal in 1 2 13 15; do
1890 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891done
1892ac_signal=0
1893
1894# confdefs.h avoids OS command line length limits that DEFS can exceed.
1895rm -f -r conftest* confdefs.h
1896
1897# Predefined preprocessor variables.
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_NAME "$PACKAGE_NAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_VERSION "$PACKAGE_VERSION"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_STRING "$PACKAGE_STRING"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921_ACEOF
1922
1923
1924# Let the site file select an alternate cache file if it wants to.
1925# Prefer an explicitly selected file to automatically selected ones.
1926ac_site_file1=NONE
1927ac_site_file2=NONE
1928if test -n "$CONFIG_SITE"; then
1929 ac_site_file1=$CONFIG_SITE
1930elif test "x$prefix" != xNONE; then
1931 ac_site_file1=$prefix/share/config.site
1932 ac_site_file2=$prefix/etc/config.site
1933else
1934 ac_site_file1=$ac_default_prefix/share/config.site
1935 ac_site_file2=$ac_default_prefix/etc/config.site
1936fi
1937for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1938do
1939 test "x$ac_site_file" = xNONE && continue
1940 if test -r "$ac_site_file"; then
1941 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1943 sed 's/^/| /' "$ac_site_file" >&5
1944 . "$ac_site_file"
1945 fi
1946done
1947
1948if test -r "$cache_file"; then
1949 # Some versions of bash will fail to source /dev/null (special
1950 # files actually), so we avoid doing that.
1951 if test -f "$cache_file"; then
1952 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953$as_echo "$as_me: loading cache $cache_file" >&6;}
1954 case $cache_file in
1955 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1956 *) . "./$cache_file";;
1957 esac
1958 fi
1959else
1960 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961$as_echo "$as_me: creating cache $cache_file" >&6;}
1962 >$cache_file
1963fi
1964
1965ac_header_list="$ac_header_list sys/time.h"
1966ac_header_list="$ac_header_list unistd.h"
1967ac_func_list="$ac_func_list alarm"
1968# Check that the precious variables saved in the cache have kept the same
1969# value.
1970ac_cache_corrupted=false
1971for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1977 set,)
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,set)
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1985 ,);;
1986 *)
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1995 else
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
1999 fi
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2004 fi;;
2005 esac
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2008 case $ac_new_val in
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2011 esac
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2015 esac
2016 fi
2017done
2018if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2020$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2021 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2022$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2023 { (exit 1); exit 1; }; }
2024fi
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050ac_ext=c
2051ac_cpp='$CPP $CPPFLAGS'
2052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059ac_aux_dir=
2060for ac_dir in config "$srcdir"/config; do
2061 if test -f "$ac_dir/install-sh"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/install-sh -c"
2064 break
2065 elif test -f "$ac_dir/install.sh"; then
2066 ac_aux_dir=$ac_dir
2067 ac_install_sh="$ac_aux_dir/install.sh -c"
2068 break
2069 elif test -f "$ac_dir/shtool"; then
2070 ac_aux_dir=$ac_dir
2071 ac_install_sh="$ac_aux_dir/shtool install -c"
2072 break
2073 fi
2074done
2075if test -z "$ac_aux_dir"; then
2076 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2077$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2078 { (exit 1); exit 1; }; }
2079fi
2080
2081# These three variables are undocumented and unsupported,
2082# and are intended to be withdrawn in a future Autoconf release.
2083# They can cause serious problems if a builder's source tree is in a directory
2084# whose full name contains unusual characters.
2085ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088
2089
2090ac_config_headers="$ac_config_headers config/config.h"
2091
2092{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2093$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2094 # Check whether --enable-maintainer-mode was given.
2095if test "${enable_maintainer_mode+set}" = set; then
2096 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2097else
2098 USE_MAINTAINER_MODE=no
2099fi
2100
2101 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2102$as_echo "$USE_MAINTAINER_MODE" >&6; }
2103 if test $USE_MAINTAINER_MODE = yes; then
2104 MAINTAINER_MODE_TRUE=
2105 MAINTAINER_MODE_FALSE='#'
2106else
2107 MAINTAINER_MODE_TRUE='#'
2108 MAINTAINER_MODE_FALSE=
2109fi
2110
2111 MAINT=$MAINTAINER_MODE_TRUE
2112
2113
2114
2115# --with-native-includes forces the use of the system bsm headers.
2116
2117# Check whether --with-native-includes was given.
2118if test "${with_native_includes+set}" = set; then
2119 withval=$with_native_includes;
2120
2121cat >>confdefs.h <<\_ACEOF
2122#define USE_NATIVE_INCLUDES /**/
2123_ACEOF
2124
2125use_native_includes=true
2126
2127else
2128 use_native_includes=false
2129fi
2130
2131 if $use_native_includes; then
2132 USE_NATIVE_INCLUDES_TRUE=
2133 USE_NATIVE_INCLUDES_FALSE='#'
2134else
2135 USE_NATIVE_INCLUDES_TRUE='#'
2136 USE_NATIVE_INCLUDES_FALSE=
2137fi
2138
2139
2140for ac_prog in mig
2141do
2142 # Extract the first word of "$ac_prog", so it can be a program name with args.
2143set dummy $ac_prog; ac_word=$2
2144{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2145$as_echo_n "checking for $ac_word... " >&6; }
2146if test "${ac_cv_path_MIG+set}" = set; then
2147 $as_echo_n "(cached) " >&6
2148else
2149 case $MIG in
2150 [\\/]* | ?:[\\/]*)
2151 ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2152 ;;
2153 *)
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157 IFS=$as_save_IFS
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 break 2
2164 fi
2165done
2166done
2167IFS=$as_save_IFS
2168
2169 ;;
2170esac
2171fi
2172MIG=$ac_cv_path_MIG
2173if test -n "$MIG"; then
2174 { $as_echo "$as_me:$LINENO: result: $MIG" >&5
2175$as_echo "$MIG" >&6; }
2176else
2177 { $as_echo "$as_me:$LINENO: result: no" >&5
2178$as_echo "no" >&6; }
2179fi
2180
2181
2182 test -n "$MIG" && break
2183done
2184
2185
2186# Checks for programs.
2187ac_ext=c
2188ac_cpp='$CPP $CPPFLAGS'
2189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196$as_echo_n "checking for $ac_word... " >&6; }
2197if test "${ac_cv_prog_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2199else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214done
2215done
2216IFS=$as_save_IFS
2217
2218fi
2219fi
2220CC=$ac_cv_prog_CC
2221if test -n "$CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2223$as_echo "$CC" >&6; }
2224else
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226$as_echo "no" >&6; }
2227fi
2228
2229
2230fi
2231if test -z "$ac_cv_prog_CC"; then
2232 ac_ct_CC=$CC
2233 # Extract the first word of "gcc", so it can be a program name with args.
2234set dummy gcc; ac_word=$2
2235{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2236$as_echo_n "checking for $ac_word... " >&6; }
2237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2238 $as_echo_n "(cached) " >&6
2239else
2240 if test -n "$ac_ct_CC"; then
2241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2242else
2243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244for as_dir in $PATH
2245do
2246 IFS=$as_save_IFS
2247 test -z "$as_dir" && as_dir=.
2248 for ac_exec_ext in '' $ac_executable_extensions; do
2249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250 ac_cv_prog_ac_ct_CC="gcc"
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 break 2
2253 fi
2254done
2255done
2256IFS=$as_save_IFS
2257
2258fi
2259fi
2260ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261if test -n "$ac_ct_CC"; then
2262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263$as_echo "$ac_ct_CC" >&6; }
2264else
2265 { $as_echo "$as_me:$LINENO: result: no" >&5
2266$as_echo "no" >&6; }
2267fi
2268
2269 if test "x$ac_ct_CC" = x; then
2270 CC=""
2271 else
2272 case $cross_compiling:$ac_tool_warned in
2273yes:)
2274{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2275whose name does not start with the host triplet. If you think this
2276configuration is useful to you, please write to autoconf@gnu.org." >&5
2277$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2278whose name does not start with the host triplet. If you think this
2279configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2280ac_tool_warned=yes ;;
2281esac
2282 CC=$ac_ct_CC
2283 fi
2284else
2285 CC="$ac_cv_prog_CC"
2286fi
2287
2288if test -z "$CC"; then
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2291set dummy ${ac_tool_prefix}cc; ac_word=$2
2292{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293$as_echo_n "checking for $ac_word... " >&6; }
2294if test "${ac_cv_prog_CC+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299else
2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301for as_dir in $PATH
2302do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}cc"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311done
2312done
2313IFS=$as_save_IFS
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2320$as_echo "$CC" >&6; }
2321else
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323$as_echo "no" >&6; }
2324fi
2325
2326
2327 fi
2328fi
2329if test -z "$CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331set dummy cc; ac_word=$2
2332{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2333$as_echo_n "checking for $ac_word... " >&6; }
2334if test "${ac_cv_prog_CC+set}" = set; then
2335 $as_echo_n "(cached) " >&6
2336else
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2339else
2340 ac_prog_rejected=no
2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342for as_dir in $PATH
2343do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2349 ac_prog_rejected=yes
2350 continue
2351 fi
2352 ac_cv_prog_CC="cc"
2353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356done
2357done
2358IFS=$as_save_IFS
2359
2360if test $ac_prog_rejected = yes; then
2361 # We found a bogon in the path, so make sure we never use it.
2362 set dummy $ac_cv_prog_CC
2363 shift
2364 if test $# != 0; then
2365 # We chose a different compiler from the bogus one.
2366 # However, it has the same basename, so the bogon will be chosen
2367 # first if we set CC to just the basename; use the full file name.
2368 shift
2369 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2370 fi
2371fi
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
2376 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2377$as_echo "$CC" >&6; }
2378else
2379 { $as_echo "$as_me:$LINENO: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383
2384fi
2385if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2387 for ac_prog in cl.exe
2388 do
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2392$as_echo_n "checking for $ac_word... " >&6; }
2393if test "${ac_cv_prog_CC+set}" = set; then
2394 $as_echo_n "(cached) " >&6
2395else
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2409 fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416CC=$ac_cv_prog_CC
2417if test -n "$CC"; then
2418 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2419$as_echo "$CC" >&6; }
2420else
2421 { $as_echo "$as_me:$LINENO: result: no" >&5
2422$as_echo "no" >&6; }
2423fi
2424
2425
2426 test -n "$CC" && break
2427 done
2428fi
2429if test -z "$CC"; then
2430 ac_ct_CC=$CC
2431 for ac_prog in cl.exe
2432do
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434set dummy $ac_prog; ac_word=$2
2435{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436$as_echo_n "checking for $ac_word... " >&6; }
2437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 $as_echo_n "(cached) " >&6
2439else
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442else
2443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444for as_dir in $PATH
2445do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC="$ac_prog"
2451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454done
2455done
2456IFS=$as_save_IFS
2457
2458fi
2459fi
2460ac_ct_CC=$ac_cv_prog_ac_ct_CC
2461if test -n "$ac_ct_CC"; then
2462 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463$as_echo "$ac_ct_CC" >&6; }
2464else
2465 { $as_echo "$as_me:$LINENO: result: no" >&5
2466$as_echo "no" >&6; }
2467fi
2468
2469
2470 test -n "$ac_ct_CC" && break
2471done
2472
2473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
2488fi
2489
2490fi
2491
2492
2493test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2494See \`config.log' for more details." >&5
2495$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2496See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2498
2499# Provide some information about the compiler.
2500$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2501set X $ac_compile
2502ac_compiler=$2
2503{ (ac_try="$ac_compiler --version >&5"
2504case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509$as_echo "$ac_try_echo") >&5
2510 (eval "$ac_compiler --version >&5") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }
2514{ (ac_try="$ac_compiler -v >&5"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2520$as_echo "$ac_try_echo") >&5
2521 (eval "$ac_compiler -v >&5") 2>&5
2522 ac_status=$?
2523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }
2525{ (ac_try="$ac_compiler -V >&5"
2526case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2529esac
2530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2531$as_echo "$ac_try_echo") >&5
2532 (eval "$ac_compiler -V >&5") 2>&5
2533 ac_status=$?
2534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536
2537cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */
2543
2544int
2545main ()
2546{
2547
2548 ;
2549 return 0;
2550}
2551_ACEOF
2552ac_clean_files_save=$ac_clean_files
2553ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2554# Try to create an executable without -o first, disregard a.out.
2555# It will help us diagnose broken compilers, and finding out an intuition
2556# of exeext.
2557{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2558$as_echo_n "checking for C compiler default output file name... " >&6; }
2559ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2560
2561# The possible output files:
2562ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2563
2564ac_rmfiles=
2565for ac_file in $ac_files
2566do
2567 case $ac_file in
2568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2570 esac
2571done
2572rm -f $ac_rmfiles
2573
2574if { (ac_try="$ac_link_default"
2575case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578esac
2579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2580$as_echo "$ac_try_echo") >&5
2581 (eval "$ac_link_default") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2586# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2587# in a Makefile. We should not override ac_cv_exeext if it was cached,
2588# so that the user can short-circuit this test for compilers unknown to
2589# Autoconf.
2590for ac_file in $ac_files ''
2591do
2592 test -f "$ac_file" || continue
2593 case $ac_file in
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2595 ;;
2596 [ab].out )
2597 # We found the default executable, but exeext='' is most
2598 # certainly right.
2599 break;;
2600 *.* )
2601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2602 then :; else
2603 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 fi
2605 # We set ac_cv_exeext here because the later test for it is not
2606 # safe: cross compilers may not add the suffix if given an `-o'
2607 # argument, so we may need to know it at that point already.
2608 # Even if this section looks crufty: it has the advantage of
2609 # actually working.
2610 break;;
2611 * )
2612 break;;
2613 esac
2614done
2615test "$ac_cv_exeext" = no && ac_cv_exeext=
2616
2617else
2618 ac_file=''
2619fi
2620
2621{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2622$as_echo "$ac_file" >&6; }
2623if test -z "$ac_file"; then
2624 $as_echo "$as_me: failed program was:" >&5
2625sed 's/^/| /' conftest.$ac_ext >&5
2626
2627{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2628See \`config.log' for more details." >&5
2629$as_echo "$as_me: error: C compiler cannot create executables
2630See \`config.log' for more details." >&2;}
2631 { (exit 77); exit 77; }; }
2632fi
2633
2634ac_exeext=$ac_cv_exeext
2635
2636# Check that the compiler produces executables we can run. If not, either
2637# the compiler is broken, or we cross compile.
2638{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2639$as_echo_n "checking whether the C compiler works... " >&6; }
2640# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2641# If not cross compiling, check that we can run a simple program.
2642if test "$cross_compiling" != yes; then
2643 if { ac_try='./$ac_file'
2644 { (case "(($ac_try" in
2645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646 *) ac_try_echo=$ac_try;;
2647esac
2648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2649$as_echo "$ac_try_echo") >&5
2650 (eval "$ac_try") 2>&5
2651 ac_status=$?
2652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; }; then
2654 cross_compiling=no
2655 else
2656 if test "$cross_compiling" = maybe; then
2657 cross_compiling=yes
2658 else
2659 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2660If you meant to cross compile, use \`--host'.
2661See \`config.log' for more details." >&5
2662$as_echo "$as_me: error: cannot run C compiled programs.
2663If you meant to cross compile, use \`--host'.
2664See \`config.log' for more details." >&2;}
2665 { (exit 1); exit 1; }; }
2666 fi
2667 fi
2668fi
2669{ $as_echo "$as_me:$LINENO: result: yes" >&5
2670$as_echo "yes" >&6; }
2671
2672rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2673ac_clean_files=$ac_clean_files_save
2674# Check that the compiler produces executables we can run. If not, either
2675# the compiler is broken, or we cross compile.
2676{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2677$as_echo_n "checking whether we are cross compiling... " >&6; }
2678{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2679$as_echo "$cross_compiling" >&6; }
2680
2681{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2682$as_echo_n "checking for suffix of executables... " >&6; }
2683if { (ac_try="$ac_link"
2684case "(($ac_try" in
2685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686 *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2689$as_echo "$ac_try_echo") >&5
2690 (eval "$ac_link") 2>&5
2691 ac_status=$?
2692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2695# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2696# work properly (i.e., refer to `conftest.exe'), while it won't with
2697# `rm'.
2698for ac_file in conftest.exe conftest conftest.*; do
2699 test -f "$ac_file" || continue
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 break;;
2704 * ) break;;
2705 esac
2706done
2707else
2708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2709See \`config.log' for more details." >&5
2710$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2711See \`config.log' for more details." >&2;}
2712 { (exit 1); exit 1; }; }
2713fi
2714
2715rm -f conftest$ac_cv_exeext
2716{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2717$as_echo "$ac_cv_exeext" >&6; }
2718
2719rm -f conftest.$ac_ext
2720EXEEXT=$ac_cv_exeext
2721ac_exeext=$EXEEXT
2722{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2723$as_echo_n "checking for suffix of object files... " >&6; }
2724if test "${ac_cv_objext+set}" = set; then
2725 $as_echo_n "(cached) " >&6
2726else
2727 cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733
2734int
2735main ()
2736{
2737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742rm -f conftest.o conftest.obj
2743if { (ac_try="$ac_compile"
2744case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747esac
2748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2749$as_echo "$ac_try_echo") >&5
2750 (eval "$ac_compile") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2756 case $ac_file in
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2759 break;;
2760 esac
2761done
2762else
2763 $as_echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2767See \`config.log' for more details." >&5
2768$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2769See \`config.log' for more details." >&2;}
2770 { (exit 1); exit 1; }; }
2771fi
2772
2773rm -f conftest.$ac_cv_objext conftest.$ac_ext
2774fi
2775{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2776$as_echo "$ac_cv_objext" >&6; }
2777OBJEXT=$ac_cv_objext
2778ac_objext=$OBJEXT
2779{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2780$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2781if test "${ac_cv_c_compiler_gnu+set}" = set; then
2782 $as_echo_n "(cached) " >&6
2783else
2784 cat >conftest.$ac_ext <<_ACEOF
2785/* confdefs.h. */
2786_ACEOF
2787cat confdefs.h >>conftest.$ac_ext
2788cat >>conftest.$ac_ext <<_ACEOF
2789/* end confdefs.h. */
2790
2791int
2792main ()
2793{
2794#ifndef __GNUC__
2795 choke me
2796#endif
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (ac_try="$ac_compile"
2804case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2807esac
2808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2809$as_echo "$ac_try_echo") >&5
2810 (eval "$ac_compile") 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } && {
2817 test -z "$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 } && test -s conftest.$ac_objext; then
2820 ac_compiler_gnu=yes
2821else
2822 $as_echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 ac_compiler_gnu=no
2826fi
2827
2828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2829ac_cv_c_compiler_gnu=$ac_compiler_gnu
2830
2831fi
2832{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2833$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2834if test $ac_compiler_gnu = yes; then
2835 GCC=yes
2836else
2837 GCC=
2838fi
2839ac_test_CFLAGS=${CFLAGS+set}
2840ac_save_CFLAGS=$CFLAGS
2841{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2842$as_echo_n "checking whether $CC accepts -g... " >&6; }
2843if test "${ac_cv_prog_cc_g+set}" = set; then
2844 $as_echo_n "(cached) " >&6
2845else
2846 ac_save_c_werror_flag=$ac_c_werror_flag
2847 ac_c_werror_flag=yes
2848 ac_cv_prog_cc_g=no
2849 CFLAGS="-g"
2850 cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h. */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h. */
2856
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865rm -f conftest.$ac_objext
2866if { (ac_try="$ac_compile"
2867case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2870esac
2871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2872$as_echo "$ac_try_echo") >&5
2873 (eval "$ac_compile") 2>conftest.er1
2874 ac_status=$?
2875 grep -v '^ *+' conftest.er1 >conftest.err
2876 rm -f conftest.er1
2877 cat conftest.err >&5
2878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); } && {
2880 test -z "$ac_c_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest.$ac_objext; then
2883 ac_cv_prog_cc_g=yes
2884else
2885 $as_echo "$as_me: failed program was:" >&5
2886sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 CFLAGS=""
2889 cat >conftest.$ac_ext <<_ACEOF
2890/* confdefs.h. */
2891_ACEOF
2892cat confdefs.h >>conftest.$ac_ext
2893cat >>conftest.$ac_ext <<_ACEOF
2894/* end confdefs.h. */
2895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904rm -f conftest.$ac_objext
2905if { (ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2911$as_echo "$ac_try_echo") >&5
2912 (eval "$ac_compile") 2>conftest.er1
2913 ac_status=$?
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } && {
2919 test -z "$ac_c_werror_flag" ||
2920 test ! -s conftest.err
2921 } && test -s conftest.$ac_objext; then
2922 :
2923else
2924 $as_echo "$as_me: failed program was:" >&5
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
2927 ac_c_werror_flag=$ac_save_c_werror_flag
2928 CFLAGS="-g"
2929 cat >conftest.$ac_ext <<_ACEOF
2930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
2945if { (ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2951$as_echo "$ac_try_echo") >&5
2952 (eval "$ac_compile") 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } && {
2959 test -z "$ac_c_werror_flag" ||
2960 test ! -s conftest.err
2961 } && test -s conftest.$ac_objext; then
2962 ac_cv_prog_cc_g=yes
2963else
2964 $as_echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967
2968fi
2969
2970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971fi
2972
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2978fi
2979{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2980$as_echo "$ac_cv_prog_cc_g" >&6; }
2981if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995fi
2996{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998if test "${ac_cv_prog_cc_c89+set}" = set; then
2999 $as_echo_n "(cached) " >&6
3000else
3001 ac_cv_prog_cc_c89=no
3002ac_save_CC=$CC
3003cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009#include <stdarg.h>
3010#include <stdio.h>
3011#include <sys/types.h>
3012#include <sys/stat.h>
3013/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3014struct buf { int x; };
3015FILE * (*rcsopen) (struct buf *, struct stat *, int);
3016static char *e (p, i)
3017 char **p;
3018 int i;
3019{
3020 return p[i];
3021}
3022static char *f (char * (*g) (char **, int), char **p, ...)
3023{
3024 char *s;
3025 va_list v;
3026 va_start (v,p);
3027 s = g (p, va_arg (v,int));
3028 va_end (v);
3029 return s;
3030}
3031
3032/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3033 function prototypes and stuff, but not '\xHH' hex character constants.
3034 These don't provoke an error unfortunately, instead are silently treated
3035 as 'x'. The following induces an error, until -std is added to get
3036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3037 array size at least. It's necessary to write '\x00'==0 to get something
3038 that's true only with -std. */
3039int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040
3041/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3042 inside strings and character constants. */
3043#define FOO(x) 'x'
3044int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045
3046int test (int i, double x);
3047struct s1 {int (*f) (int a);};
3048struct s2 {int (*f) (double a);};
3049int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3050int argc;
3051char **argv;
3052int
3053main ()
3054{
3055return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3056 ;
3057 return 0;
3058}
3059_ACEOF
3060for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3061 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062do
3063 CC="$ac_save_CC $ac_arg"
3064 rm -f conftest.$ac_objext
3065if { (ac_try="$ac_compile"
3066case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069esac
3070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3071$as_echo "$ac_try_echo") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3083else
3084 $as_echo "$as_me: failed program was:" >&5
3085sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088fi
3089
3090rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092done
3093rm -f conftest.$ac_ext
3094CC=$ac_save_CC
3095
3096fi
3097# AC_CACHE_VAL
3098case "x$ac_cv_prog_cc_c89" in
3099 x)
3100 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3101$as_echo "none needed" >&6; } ;;
3102 xno)
3103 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3104$as_echo "unsupported" >&6; } ;;
3105 *)
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3109esac
3110
3111
3112ac_ext=c
3113ac_cpp='$CPP $CPPFLAGS'
3114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118# Find a good install program. We prefer a C program (faster),
3119# so one script is as good as another. But avoid the broken or
3120# incompatible versions:
3121# SysV /etc/install, /usr/sbin/install
3122# SunOS /usr/etc/install
3123# IRIX /sbin/install
3124# AIX /bin/install
3125# AmigaOS /C/install, which installs bootblocks on floppy discs
3126# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3127# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3128# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3129# OS/2's system install, which has a completely different semantic
3130# ./install, which can be erroneously created by make from ./install.sh.
3131# Reject install programs that cannot install multiple files.
3132{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3133$as_echo_n "checking for a BSD-compatible install... " >&6; }
3134if test -z "$INSTALL"; then
3135if test "${ac_cv_path_install+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3137else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 # Account for people who put trailing slashes in PATH elements.
3144case $as_dir/ in
3145 ./ | .// | /cC/* | \
3146 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3147 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3148 /usr/ucb/* ) ;;
3149 *)
3150 # OSF1 and SCO ODT 3.0 have their own names for install.
3151 # Don't use installbsd from OSF since it installs stuff as root
3152 # by default.
3153 for ac_prog in ginstall scoinst install; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3156 if test $ac_prog = install &&
3157 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3158 # AIX install. It has an incompatible calling convention.
3159 :
3160 elif test $ac_prog = install &&
3161 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3162 # program-specific install script used by HP pwplus--don't use.
3163 :
3164 else
3165 rm -rf conftest.one conftest.two conftest.dir
3166 echo one > conftest.one
3167 echo two > conftest.two
3168 mkdir conftest.dir
3169 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3170 test -s conftest.one && test -s conftest.two &&
3171 test -s conftest.dir/conftest.one &&
3172 test -s conftest.dir/conftest.two
3173 then
3174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3175 break 3
3176 fi
3177 fi
3178 fi
3179 done
3180 done
3181 ;;
3182esac
3183
3184done
3185IFS=$as_save_IFS
3186
3187rm -rf conftest.one conftest.two conftest.dir
3188
3189fi
3190 if test "${ac_cv_path_install+set}" = set; then
3191 INSTALL=$ac_cv_path_install
3192 else
3193 # As a last resort, use the slow shell script. Don't cache a
3194 # value for INSTALL within a source directory, because that will
3195 # break other packages using the cache if that directory is
3196 # removed, or if the value is a relative name.
3197 INSTALL=$ac_install_sh
3198 fi
3199fi
3200{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3201$as_echo "$INSTALL" >&6; }
3202
3203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3204# It thinks the first close brace ends the variable substitution.
3205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3206
3207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3208
3209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3210
3211# Check whether --enable-shared was given.
3212if test "${enable_shared+set}" = set; then
3213 enableval=$enable_shared; p=${PACKAGE-default}
3214 case $enableval in
3215 yes) enable_shared=yes ;;
3216 no) enable_shared=no ;;
3217 *)
3218 enable_shared=no
3219 # Look at the argument we got. We use all the common list separators.
3220 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3221 for pkg in $enableval; do
3222 IFS="$lt_save_ifs"
3223 if test "X$pkg" = "X$p"; then
3224 enable_shared=yes
3225 fi
3226 done
3227 IFS="$lt_save_ifs"
3228 ;;
3229 esac
3230else
3231 enable_shared=yes
3232fi
3233
3234
3235# Check whether --enable-static was given.
3236if test "${enable_static+set}" = set; then
3237 enableval=$enable_static; p=${PACKAGE-default}
3238 case $enableval in
3239 yes) enable_static=yes ;;
3240 no) enable_static=no ;;
3241 *)
3242 enable_static=no
3243 # Look at the argument we got. We use all the common list separators.
3244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3245 for pkg in $enableval; do
3246 IFS="$lt_save_ifs"
3247 if test "X$pkg" = "X$p"; then
3248 enable_static=yes
3249 fi
3250 done
3251 IFS="$lt_save_ifs"
3252 ;;
3253 esac
3254else
3255 enable_static=yes
3256fi
3257
3258
3259# Check whether --enable-fast-install was given.
3260if test "${enable_fast_install+set}" = set; then
3261 enableval=$enable_fast_install; p=${PACKAGE-default}
3262 case $enableval in
3263 yes) enable_fast_install=yes ;;
3264 no) enable_fast_install=no ;;
3265 *)
3266 enable_fast_install=no
3267 # Look at the argument we got. We use all the common list separators.
3268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3269 for pkg in $enableval; do
3270 IFS="$lt_save_ifs"
3271 if test "X$pkg" = "X$p"; then
3272 enable_fast_install=yes
3273 fi
3274 done
3275 IFS="$lt_save_ifs"
3276 ;;
3277 esac
3278else
3279 enable_fast_install=yes
3280fi
3281
3282
3283# Make sure we can run config.sub.
3284$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3285 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3286$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3287 { (exit 1); exit 1; }; }
3288
3289{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3290$as_echo_n "checking build system type... " >&6; }
3291if test "${ac_cv_build+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3293else
3294 ac_build_alias=$build_alias
3295test "x$ac_build_alias" = x &&
3296 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3297test "x$ac_build_alias" = x &&
3298 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3299$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3300 { (exit 1); exit 1; }; }
3301ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3302 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3303$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3304 { (exit 1); exit 1; }; }
3305
3306fi
3307{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3308$as_echo "$ac_cv_build" >&6; }
3309case $ac_cv_build in
3310*-*-*) ;;
3311*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3312$as_echo "$as_me: error: invalid value of canonical build" >&2;}
3313 { (exit 1); exit 1; }; };;
3314esac
3315build=$ac_cv_build
3316ac_save_IFS=$IFS; IFS='-'
3317set x $ac_cv_build
3318shift
3319build_cpu=$1
3320build_vendor=$2
3321shift; shift
3322# Remember, the first character of IFS is used to create $*,
3323# except with old shells:
3324build_os=$*
3325IFS=$ac_save_IFS
3326case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3327
3328
3329{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3330$as_echo_n "checking host system type... " >&6; }
3331if test "${ac_cv_host+set}" = set; then
3332 $as_echo_n "(cached) " >&6
3333else
3334 if test "x$host_alias" = x; then
3335 ac_cv_host=$ac_cv_build
3336else
3337 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3338 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3339$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3340 { (exit 1); exit 1; }; }
3341fi
3342
3343fi
3344{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3345$as_echo "$ac_cv_host" >&6; }
3346case $ac_cv_host in
3347*-*-*) ;;
3348*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3349$as_echo "$as_me: error: invalid value of canonical host" >&2;}
3350 { (exit 1); exit 1; }; };;
3351esac
3352host=$ac_cv_host
3353ac_save_IFS=$IFS; IFS='-'
3354set x $ac_cv_host
3355shift
3356host_cpu=$1
3357host_vendor=$2
3358shift; shift
3359# Remember, the first character of IFS is used to create $*,
3360# except with old shells:
3361host_os=$*
3362IFS=$ac_save_IFS
3363case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3364
3365
3366{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3367$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3368if test "${lt_cv_path_SED+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3370else
3371 # Loop through the user's path and test for sed and gsed.
3372# Then use that list of sed's as ones to test for truncation.
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for lt_ac_prog in sed gsed; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3381 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3382 fi
3383 done
3384 done
3385done
3386IFS=$as_save_IFS
3387lt_ac_max=0
3388lt_ac_count=0
3389# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3390# along with /bin/sed that truncates output.
3391for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3392 test ! -f $lt_ac_sed && continue
3393 cat /dev/null > conftest.in
3394 lt_ac_count=0
3395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3396 # Check for GNU sed and select it if it is found.
3397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3398 lt_cv_path_SED=$lt_ac_sed
3399 break
3400 fi
3401 while true; do
3402 cat conftest.in conftest.in >conftest.tmp
3403 mv conftest.tmp conftest.in
3404 cp conftest.in conftest.nl
3405 echo >>conftest.nl
3406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3407 cmp -s conftest.out conftest.nl || break
3408 # 10000 chars as input seems more than enough
3409 test $lt_ac_count -gt 10 && break
3410 lt_ac_count=`expr $lt_ac_count + 1`
3411 if test $lt_ac_count -gt $lt_ac_max; then
3412 lt_ac_max=$lt_ac_count
3413 lt_cv_path_SED=$lt_ac_sed
3414 fi
3415 done
3416done
3417
3418fi
3419
3420SED=$lt_cv_path_SED
3421
3422{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3423$as_echo "$SED" >&6; }
3424
3425{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3426$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3427if test "${ac_cv_path_GREP+set}" = set; then
3428 $as_echo_n "(cached) " >&6
3429else
3430 if test -z "$GREP"; then
3431 ac_path_GREP_found=false
3432 # Loop through the user's path and test for each of PROGNAME-LIST
3433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3435do
3436 IFS=$as_save_IFS
3437 test -z "$as_dir" && as_dir=.
3438 for ac_prog in grep ggrep; do
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3442# Check for GNU ac_path_GREP and select it if it is found.
3443 # Check for GNU $ac_path_GREP
3444case `"$ac_path_GREP" --version 2>&1` in
3445*GNU*)
3446 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3447*)
3448 ac_count=0
3449 $as_echo_n 0123456789 >"conftest.in"
3450 while :
3451 do
3452 cat "conftest.in" "conftest.in" >"conftest.tmp"
3453 mv "conftest.tmp" "conftest.in"
3454 cp "conftest.in" "conftest.nl"
3455 $as_echo 'GREP' >> "conftest.nl"
3456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3458 ac_count=`expr $ac_count + 1`
3459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3460 # Best one so far, save it but keep looking for a better one
3461 ac_cv_path_GREP="$ac_path_GREP"
3462 ac_path_GREP_max=$ac_count
3463 fi
3464 # 10*(2^10) chars as input seems more than enough
3465 test $ac_count -gt 10 && break
3466 done
3467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3468esac
3469
3470 $ac_path_GREP_found && break 3
3471 done
3472 done
3473done
3474IFS=$as_save_IFS
3475 if test -z "$ac_cv_path_GREP"; then
3476 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3477$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3478 { (exit 1); exit 1; }; }
3479 fi
3480else
3481 ac_cv_path_GREP=$GREP
3482fi
3483
3484fi
3485{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3486$as_echo "$ac_cv_path_GREP" >&6; }
3487 GREP="$ac_cv_path_GREP"
3488
3489
3490{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3491$as_echo_n "checking for egrep... " >&6; }
3492if test "${ac_cv_path_EGREP+set}" = set; then
3493 $as_echo_n "(cached) " >&6
3494else
3495 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3496 then ac_cv_path_EGREP="$GREP -E"
3497 else
3498 if test -z "$EGREP"; then
3499 ac_path_EGREP_found=false
3500 # Loop through the user's path and test for each of PROGNAME-LIST
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3503do
3504 IFS=$as_save_IFS
3505 test -z "$as_dir" && as_dir=.
3506 for ac_prog in egrep; do
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3509 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3510# Check for GNU ac_path_EGREP and select it if it is found.
3511 # Check for GNU $ac_path_EGREP
3512case `"$ac_path_EGREP" --version 2>&1` in
3513*GNU*)
3514 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3515*)
3516 ac_count=0
3517 $as_echo_n 0123456789 >"conftest.in"
3518 while :
3519 do
3520 cat "conftest.in" "conftest.in" >"conftest.tmp"
3521 mv "conftest.tmp" "conftest.in"
3522 cp "conftest.in" "conftest.nl"
3523 $as_echo 'EGREP' >> "conftest.nl"
3524 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3526 ac_count=`expr $ac_count + 1`
3527 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3528 # Best one so far, save it but keep looking for a better one
3529 ac_cv_path_EGREP="$ac_path_EGREP"
3530 ac_path_EGREP_max=$ac_count
3531 fi
3532 # 10*(2^10) chars as input seems more than enough
3533 test $ac_count -gt 10 && break
3534 done
3535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3536esac
3537
3538 $ac_path_EGREP_found && break 3
3539 done
3540 done
3541done
3542IFS=$as_save_IFS
3543 if test -z "$ac_cv_path_EGREP"; then
3544 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3545$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3546 { (exit 1); exit 1; }; }
3547 fi
3548else
3549 ac_cv_path_EGREP=$EGREP
3550fi
3551
3552 fi
3553fi
3554{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3555$as_echo "$ac_cv_path_EGREP" >&6; }
3556 EGREP="$ac_cv_path_EGREP"
3557
3558
3559
3560# Check whether --with-gnu-ld was given.
3561if test "${with_gnu_ld+set}" = set; then
3562 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3563else
3564 with_gnu_ld=no
3565fi
3566
3567ac_prog=ld
3568if test "$GCC" = yes; then
3569 # Check if gcc -print-prog-name=ld gives a path.
3570 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3571$as_echo_n "checking for ld used by $CC... " >&6; }
3572 case $host in
3573 *-*-mingw*)
3574 # gcc leaves a trailing carriage return which upsets mingw
3575 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3576 *)
3577 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3578 esac
3579 case $ac_prog in
3580 # Accept absolute paths.
3581 [\\/]* | ?:[\\/]*)
3582 re_direlt='/[^/][^/]*/\.\./'
3583 # Canonicalize the pathname of ld
3584 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3585 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3586 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3587 done
3588 test -z "$LD" && LD="$ac_prog"
3589 ;;
3590 "")
3591 # If it fails, then pretend we aren't using GCC.
3592 ac_prog=ld
3593 ;;
3594 *)
3595 # If it is relative, then search for the first ld in PATH.
3596 with_gnu_ld=unknown
3597 ;;
3598 esac
3599elif test "$with_gnu_ld" = yes; then
3600 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3601$as_echo_n "checking for GNU ld... " >&6; }
3602else
3603 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3604$as_echo_n "checking for non-GNU ld... " >&6; }
3605fi
3606if test "${lt_cv_path_LD+set}" = set; then
3607 $as_echo_n "(cached) " >&6
3608else
3609 if test -z "$LD"; then
3610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3611 for ac_dir in $PATH; do
3612 IFS="$lt_save_ifs"
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3615 lt_cv_path_LD="$ac_dir/$ac_prog"
3616 # Check to see if the program is GNU ld. I'd rather use --version,
3617 # but apparently some variants of GNU ld only accept -v.
3618 # Break only if it was the GNU/non-GNU ld that we prefer.
3619 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3620 *GNU* | *'with BFD'*)
3621 test "$with_gnu_ld" != no && break
3622 ;;
3623 *)
3624 test "$with_gnu_ld" != yes && break
3625 ;;
3626 esac
3627 fi
3628 done
3629 IFS="$lt_save_ifs"
3630else
3631 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3632fi
3633fi
3634
3635LD="$lt_cv_path_LD"
3636if test -n "$LD"; then
3637 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3638$as_echo "$LD" >&6; }
3639else
3640 { $as_echo "$as_me:$LINENO: result: no" >&5
3641$as_echo "no" >&6; }
3642fi
3643test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3644$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3645 { (exit 1); exit 1; }; }
3646{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3647$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3648if test "${lt_cv_prog_gnu_ld+set}" = set; then
3649 $as_echo_n "(cached) " >&6
3650else
3651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3652case `$LD -v 2>&1 </dev/null` in
3653*GNU* | *'with BFD'*)
3654 lt_cv_prog_gnu_ld=yes
3655 ;;
3656*)
3657 lt_cv_prog_gnu_ld=no
3658 ;;
3659esac
3660fi
3661{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3662$as_echo "$lt_cv_prog_gnu_ld" >&6; }
3663with_gnu_ld=$lt_cv_prog_gnu_ld
3664
3665
3666{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3667$as_echo_n "checking for $LD option to reload object files... " >&6; }
3668if test "${lt_cv_ld_reload_flag+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670else
3671 lt_cv_ld_reload_flag='-r'
3672fi
3673{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3674$as_echo "$lt_cv_ld_reload_flag" >&6; }
3675reload_flag=$lt_cv_ld_reload_flag
3676case $reload_flag in
3677"" | " "*) ;;
3678*) reload_flag=" $reload_flag" ;;
3679esac
3680reload_cmds='$LD$reload_flag -o $output$reload_objs'
3681case $host_os in
3682 darwin*)
3683 if test "$GCC" = yes; then
3684 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3685 else
3686 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3687 fi
3688 ;;
3689esac
3690
3691{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3692$as_echo_n "checking for BSD-compatible nm... " >&6; }
3693if test "${lt_cv_path_NM+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3695else
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3698 lt_cv_path_NM="$NM"
3699else
3700 lt_nm_to_check="${ac_tool_prefix}nm"
3701 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3702 lt_nm_to_check="$lt_nm_to_check nm"
3703 fi
3704 for lt_tmp_nm in $lt_nm_to_check; do
3705 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3706 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3707 IFS="$lt_save_ifs"
3708 test -z "$ac_dir" && ac_dir=.
3709 tmp_nm="$ac_dir/$lt_tmp_nm"
3710 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3711 # Check to see if the nm accepts a BSD-compat flag.
3712 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3713 # nm: unknown option "B" ignored
3714 # Tru64's nm complains that /dev/null is an invalid object file
3715 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3716 */dev/null* | *'Invalid file or object type'*)
3717 lt_cv_path_NM="$tmp_nm -B"
3718 break
3719 ;;
3720 *)
3721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3722 */dev/null*)
3723 lt_cv_path_NM="$tmp_nm -p"
3724 break
3725 ;;
3726 *)
3727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3728 continue # so that we can try to find one that supports BSD flags
3729 ;;
3730 esac
3731 ;;
3732 esac
3733 fi
3734 done
3735 IFS="$lt_save_ifs"
3736 done
3737 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3738fi
3739fi
3740{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3741$as_echo "$lt_cv_path_NM" >&6; }
3742NM="$lt_cv_path_NM"
3743
3744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3745$as_echo_n "checking whether ln -s works... " >&6; }
3746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
3748 { $as_echo "$as_me:$LINENO: result: yes" >&5
3749$as_echo "yes" >&6; }
3750else
3751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3752$as_echo "no, using $LN_S" >&6; }
3753fi
3754
3755{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3756$as_echo_n "checking how to recognize dependent libraries... " >&6; }
3757if test "${lt_cv_deplibs_check_method+set}" = set; then
3758 $as_echo_n "(cached) " >&6
3759else
3760 lt_cv_file_magic_cmd='$MAGIC_CMD'
3761lt_cv_file_magic_test_file=
3762lt_cv_deplibs_check_method='unknown'
3763# Need to set the preceding variable on all platforms that support
3764# interlibrary dependencies.
3765# 'none' -- dependencies not supported.
3766# `unknown' -- same as none, but documents that we really don't know.
3767# 'pass_all' -- all dependencies passed with no checks.
3768# 'test_compile' -- check by making test program.
3769# 'file_magic [[regex]]' -- check by looking for files in library path
3770# which responds to the $file_magic_cmd with a given extended regex.
3771# If you have `file' or equivalent on your system and you're not sure
3772# whether `pass_all' will *always* work, you probably want this one.
3773
3774case $host_os in
3775aix[4-9]*)
3776 lt_cv_deplibs_check_method=pass_all
3777 ;;
3778
3779beos*)
3780 lt_cv_deplibs_check_method=pass_all
3781 ;;
3782
3783bsdi[45]*)
3784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3785 lt_cv_file_magic_cmd='/usr/bin/file -L'
3786 lt_cv_file_magic_test_file=/shlib/libc.so
3787 ;;
3788
3789cygwin*)
3790 # func_win32_libid is a shell function defined in ltmain.sh
3791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3792 lt_cv_file_magic_cmd='func_win32_libid'
3793 ;;
3794
3795mingw* | pw32*)
3796 # Base MSYS/MinGW do not provide the 'file' command needed by
3797 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3798 # unless we find 'file', for example because we are cross-compiling.
3799 if ( file / ) >/dev/null 2>&1; then
3800 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3801 lt_cv_file_magic_cmd='func_win32_libid'
3802 else
3803 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3804 lt_cv_file_magic_cmd='$OBJDUMP -f'
3805 fi
3806 ;;
3807
3808darwin* | rhapsody*)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811
3812freebsd* | dragonfly*)
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814 case $host_cpu in
3815 i*86 )
3816 # Not sure whether the presence of OpenBSD here was a mistake.
3817 # Let's accept both of them until this is cleared up.
3818 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3819 lt_cv_file_magic_cmd=/usr/bin/file
3820 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3821 ;;
3822 esac
3823 else
3824 lt_cv_deplibs_check_method=pass_all
3825 fi
3826 ;;
3827
3828gnu*)
3829 lt_cv_deplibs_check_method=pass_all
3830 ;;
3831
3832hpux10.20* | hpux11*)
3833 lt_cv_file_magic_cmd=/usr/bin/file
3834 case $host_cpu in
3835 ia64*)
3836 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3837 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3838 ;;
3839 hppa*64*)
3840 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]'
3841 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3842 ;;
3843 *)
3844 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3845 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3846 ;;
3847 esac
3848 ;;
3849
3850interix[3-9]*)
3851 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3853 ;;
3854
3855irix5* | irix6* | nonstopux*)
3856 case $LD in
3857 *-32|*"-32 ") libmagic=32-bit;;
3858 *-n32|*"-n32 ") libmagic=N32;;
3859 *-64|*"-64 ") libmagic=64-bit;;
3860 *) libmagic=never-match;;
3861 esac
3862 lt_cv_deplibs_check_method=pass_all
3863 ;;
3864
3865# This must be Linux ELF.
3866linux* | k*bsd*-gnu)
3867 lt_cv_deplibs_check_method=pass_all
3868 ;;
3869
3870netbsd*)
3871 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3873 else
3874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3875 fi
3876 ;;
3877
3878newos6*)
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3880 lt_cv_file_magic_cmd=/usr/bin/file
3881 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3882 ;;
3883
3884nto-qnx*)
3885 lt_cv_deplibs_check_method=unknown
3886 ;;
3887
3888openbsd*)
3889 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3891 else
3892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3893 fi
3894 ;;
3895
3896osf3* | osf4* | osf5*)
3897 lt_cv_deplibs_check_method=pass_all
3898 ;;
3899
3900rdos*)
3901 lt_cv_deplibs_check_method=pass_all
3902 ;;
3903
3904solaris*)
3905 lt_cv_deplibs_check_method=pass_all
3906 ;;
3907
3908sysv4 | sysv4.3*)
3909 case $host_vendor in
3910 motorola)
3911 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]'
3912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3913 ;;
3914 ncr)
3915 lt_cv_deplibs_check_method=pass_all
3916 ;;
3917 sequent)
3918 lt_cv_file_magic_cmd='/bin/file'
3919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3920 ;;
3921 sni)
3922 lt_cv_file_magic_cmd='/bin/file'
3923 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3924 lt_cv_file_magic_test_file=/lib/libc.so
3925 ;;
3926 siemens)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929 pc)
3930 lt_cv_deplibs_check_method=pass_all
3931 ;;
3932 esac
3933 ;;
3934
3935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3936 lt_cv_deplibs_check_method=pass_all
3937 ;;
3938esac
3939
3940fi
3941{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3942$as_echo "$lt_cv_deplibs_check_method" >&6; }
3943file_magic_cmd=$lt_cv_file_magic_cmd
3944deplibs_check_method=$lt_cv_deplibs_check_method
3945test -z "$deplibs_check_method" && deplibs_check_method=unknown
3946
3947
3948
3949
3950# If no C compiler was specified, use CC.
3951LTCC=${LTCC-"$CC"}
3952
3953# If no C compiler flags were specified, use CFLAGS.
3954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3955
3956# Allow CC to be a program name with arguments.
3957compiler=$CC
3958
3959
3960# Check whether --enable-libtool-lock was given.
3961if test "${enable_libtool_lock+set}" = set; then
3962 enableval=$enable_libtool_lock;
3963fi
3964
3965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3966
3967# Some flags need to be propagated to the compiler or linker for good
3968# libtool support.
3969case $host in
3970ia64-*-hpux*)
3971 # Find out which ABI we are using.
3972 echo 'int i;' > conftest.$ac_ext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *ELF-32*)
3980 HPUX_IA64_MODE="32"
3981 ;;
3982 *ELF-64*)
3983 HPUX_IA64_MODE="64"
3984 ;;
3985 esac
3986 fi
3987 rm -rf conftest*
3988 ;;
3989*-*-irix6*)
3990 # Find out which ABI we are using.
3991 echo '#line 3991 "configure"' > conftest.$ac_ext
3992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993 (eval $ac_compile) 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; then
3997 if test "$lt_cv_prog_gnu_ld" = yes; then
3998 case `/usr/bin/file conftest.$ac_objext` in
3999 *32-bit*)
4000 LD="${LD-ld} -melf32bsmip"
4001 ;;
4002 *N32*)
4003 LD="${LD-ld} -melf32bmipn32"
4004 ;;
4005 *64-bit*)
4006 LD="${LD-ld} -melf64bmip"
4007 ;;
4008 esac
4009 else
4010 case `/usr/bin/file conftest.$ac_objext` in
4011 *32-bit*)
4012 LD="${LD-ld} -32"
4013 ;;
4014 *N32*)
4015 LD="${LD-ld} -n32"
4016 ;;
4017 *64-bit*)
4018 LD="${LD-ld} -64"
4019 ;;
4020 esac
4021 fi
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
4026x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4027s390*-*linux*|sparc*-*linux*)
4028 # Find out which ABI we are using.
4029 echo 'int i;' > conftest.$ac_ext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>&5
4032 ac_status=$?
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; then
4035 case `/usr/bin/file conftest.o` in
4036 *32-bit*)
4037 case $host in
4038 x86_64-*kfreebsd*-gnu)
4039 LD="${LD-ld} -m elf_i386_fbsd"
4040 ;;
4041 x86_64-*linux*)
4042 LD="${LD-ld} -m elf_i386"
4043 ;;
4044 ppc64-*linux*|powerpc64-*linux*)
4045 LD="${LD-ld} -m elf32ppclinux"
4046 ;;
4047 s390x-*linux*)
4048 LD="${LD-ld} -m elf_s390"
4049 ;;
4050 sparc64-*linux*)
4051 LD="${LD-ld} -m elf32_sparc"
4052 ;;
4053 esac
4054 ;;
4055 *64-bit*)
4056 case $host in
4057 x86_64-*kfreebsd*-gnu)
4058 LD="${LD-ld} -m elf_x86_64_fbsd"
4059 ;;
4060 x86_64-*linux*)
4061 LD="${LD-ld} -m elf_x86_64"
4062 ;;
4063 ppc*-*linux*|powerpc*-*linux*)
4064 LD="${LD-ld} -m elf64ppc"
4065 ;;
4066 s390*-*linux*)
4067 LD="${LD-ld} -m elf64_s390"
4068 ;;
4069 sparc*-*linux*)
4070 LD="${LD-ld} -m elf64_sparc"
4071 ;;
4072 esac
4073 ;;
4074 esac
4075 fi
4076 rm -rf conftest*
4077 ;;
4078
4079*-*-sco3.2v5*)
4080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4081 SAVE_CFLAGS="$CFLAGS"
4082 CFLAGS="$CFLAGS -belf"
4083 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4084$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4085if test "${lt_cv_cc_needs_belf+set}" = set; then
4086 $as_echo_n "(cached) " >&6
4087else
4088 ac_ext=c
4089ac_cpp='$CPP $CPPFLAGS'
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094 cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
4096_ACEOF
4097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
4099/* end confdefs.h. */
4100
4101int
4102main ()
4103{
4104
4105 ;
4106 return 0;
4107}
4108_ACEOF
4109rm -f conftest.$ac_objext conftest$ac_exeext
4110if { (ac_try="$ac_link"
4111case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4116$as_echo "$ac_try_echo") >&5
4117 (eval "$ac_link") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest$ac_exeext && {
4127 test "$cross_compiling" = yes ||
4128 $as_test_x conftest$ac_exeext
4129 }; then
4130 lt_cv_cc_needs_belf=yes
4131else
4132 $as_echo "$as_me: failed program was:" >&5
4133sed 's/^/| /' conftest.$ac_ext >&5
4134
4135 lt_cv_cc_needs_belf=no
4136fi
4137
4138rm -rf conftest.dSYM
4139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4140 conftest$ac_exeext conftest.$ac_ext
4141 ac_ext=c
4142ac_cpp='$CPP $CPPFLAGS'
4143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
4147fi
4148{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4149$as_echo "$lt_cv_cc_needs_belf" >&6; }
4150 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4151 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4152 CFLAGS="$SAVE_CFLAGS"
4153 fi
4154 ;;
4155sparc*-*solaris*)
4156 # Find out which ABI we are using.
4157 echo 'int i;' > conftest.$ac_ext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4159 (eval $ac_compile) 2>&5
4160 ac_status=$?
4161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; then
4163 case `/usr/bin/file conftest.o` in
4164 *64-bit*)
4165 case $lt_cv_prog_gnu_ld in
4166 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4167 *)
4168 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4169 LD="${LD-ld} -64"
4170 fi
4171 ;;
4172 esac
4173 ;;
4174 esac
4175 fi
4176 rm -rf conftest*
4177 ;;
4178
4179
4180esac
4181
4182need_locks="$enable_libtool_lock"
4183
4184
4185ac_ext=c
4186ac_cpp='$CPP $CPPFLAGS'
4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4189ac_compiler_gnu=$ac_cv_c_compiler_gnu
4190{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4191$as_echo_n "checking how to run the C preprocessor... " >&6; }
4192# On Suns, sometimes $CPP names a directory.
4193if test -n "$CPP" && test -d "$CPP"; then
4194 CPP=
4195fi
4196if test -z "$CPP"; then
4197 if test "${ac_cv_prog_CPP+set}" = set; then
4198 $as_echo_n "(cached) " >&6
4199else
4200 # Double quotes because CPP needs to be expanded
4201 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4202 do
4203 ac_preproc_ok=false
4204for ac_c_preproc_warn_flag in '' yes
4205do
4206 # Use a header file that comes with gcc, so configuring glibc
4207 # with a fresh cross-compiler works.
4208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4209 # <limits.h> exists even on freestanding compilers.
4210 # On the NeXT, cc -E runs the code through the compiler's parser,
4211 # not just through cpp. "Syntax error" is here to catch this case.
4212 cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218#ifdef __STDC__
4219# include <limits.h>
4220#else
4221# include <assert.h>
4222#endif
4223 Syntax error
4224_ACEOF
4225if { (ac_try="$ac_cpp conftest.$ac_ext"
4226case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4231$as_echo "$ac_try_echo") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4233 ac_status=$?
4234 grep -v '^ *+' conftest.er1 >conftest.err
4235 rm -f conftest.er1
4236 cat conftest.err >&5
4237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4241 }; then
4242 :
4243else
4244 $as_echo "$as_me: failed program was:" >&5
4245sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 # Broken: fails on valid input.
4248continue
4249fi
4250
4251rm -f conftest.err conftest.$ac_ext
4252
4253 # OK, works on sane cases. Now check whether nonexistent headers
4254 # can be detected and how.
4255 cat >conftest.$ac_ext <<_ACEOF
4256/* confdefs.h. */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h. */
4261#include <ac_nonexistent.h>
4262_ACEOF
4263if { (ac_try="$ac_cpp conftest.$ac_ext"
4264case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4269$as_echo "$ac_try_echo") >&5
4270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } >/dev/null && {
4277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 }; then
4280 # Broken: success on invalid input.
4281continue
4282else
4283 $as_echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 # Passes both tests.
4287ac_preproc_ok=:
4288break
4289fi
4290
4291rm -f conftest.err conftest.$ac_ext
4292
4293done
4294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4295rm -f conftest.err conftest.$ac_ext
4296if $ac_preproc_ok; then
4297 break
4298fi
4299
4300 done
4301 ac_cv_prog_CPP=$CPP
4302
4303fi
4304 CPP=$ac_cv_prog_CPP
4305else
4306 ac_cv_prog_CPP=$CPP
4307fi
4308{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4309$as_echo "$CPP" >&6; }
4310ac_preproc_ok=false
4311for ac_c_preproc_warn_flag in '' yes
4312do
4313 # Use a header file that comes with gcc, so configuring glibc
4314 # with a fresh cross-compiler works.
4315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4316 # <limits.h> exists even on freestanding compilers.
4317 # On the NeXT, cc -E runs the code through the compiler's parser,
4318 # not just through cpp. "Syntax error" is here to catch this case.
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325#ifdef __STDC__
4326# include <limits.h>
4327#else
4328# include <assert.h>
4329#endif
4330 Syntax error
4331_ACEOF
4332if { (ac_try="$ac_cpp conftest.$ac_ext"
4333case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4338$as_echo "$ac_try_echo") >&5
4339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } >/dev/null && {
4346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4347 test ! -s conftest.err
4348 }; then
4349 :
4350else
4351 $as_echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354 # Broken: fails on valid input.
4355continue
4356fi
4357
4358rm -f conftest.err conftest.$ac_ext
4359
4360 # OK, works on sane cases. Now check whether nonexistent headers
4361 # can be detected and how.
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368#include <ac_nonexistent.h>
4369_ACEOF
4370if { (ac_try="$ac_cpp conftest.$ac_ext"
4371case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4376$as_echo "$ac_try_echo") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4378 ac_status=$?
4379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
4382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4386 }; then
4387 # Broken: success on invalid input.
4388continue
4389else
4390 $as_echo "$as_me: failed program was:" >&5
4391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393 # Passes both tests.
4394ac_preproc_ok=:
4395break
4396fi
4397
4398rm -f conftest.err conftest.$ac_ext
4399
4400done
4401# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402rm -f conftest.err conftest.$ac_ext
4403if $ac_preproc_ok; then
4404 :
4405else
4406 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4407See \`config.log' for more details." >&5
4408$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4409See \`config.log' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4411fi
4412
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419
4420{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4421$as_echo_n "checking for ANSI C header files... " >&6; }
4422if test "${ac_cv_header_stdc+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4424else
4425 cat >conftest.$ac_ext <<_ACEOF
4426/* confdefs.h. */
4427_ACEOF
4428cat confdefs.h >>conftest.$ac_ext
4429cat >>conftest.$ac_ext <<_ACEOF
4430/* end confdefs.h. */
4431#include <stdlib.h>
4432#include <stdarg.h>
4433#include <string.h>
4434#include <float.h>
4435
4436int
4437main ()
4438{
4439
4440 ;
4441 return 0;
4442}
4443_ACEOF
4444rm -f conftest.$ac_objext
4445if { (ac_try="$ac_compile"
4446case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449esac
4450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4451$as_echo "$ac_try_echo") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4453 ac_status=$?
4454 grep -v '^ *+' conftest.er1 >conftest.err
4455 rm -f conftest.er1
4456 cat conftest.err >&5
4457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_cv_header_stdc=yes
4463else
4464 $as_echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467 ac_cv_header_stdc=no
4468fi
4469
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471
4472if test $ac_cv_header_stdc = yes; then
4473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480#include <string.h>
4481
4482_ACEOF
4483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then
4485 :
4486else
4487 ac_cv_header_stdc=no
4488fi
4489rm -f conftest*
4490
4491fi
4492
4493if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501#include <stdlib.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "free" >/dev/null 2>&1; then
4506 :
4507else
4508 ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4516 if test "$cross_compiling" = yes; then
4517 :
4518else
4519 cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h. */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h. */
4525#include <ctype.h>
4526#include <stdlib.h>
4527#if ((' ' & 0x0FF) == 0x020)
4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530#else
4531# define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542 int i;
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4546 return 2;
4547 return 0;
4548}
4549_ACEOF
4550rm -f conftest$ac_exeext
4551if { (ac_try="$ac_link"
4552case "(($ac_try" in
4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4554 *) ac_try_echo=$ac_try;;
4555esac
4556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4557$as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4559 ac_status=$?
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567$as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 :
4573else
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575$as_echo "$as_me: failed program was:" >&5
4576sed 's/^/| /' conftest.$ac_ext >&5
4577
4578( exit $ac_status )
4579ac_cv_header_stdc=no
4580fi
4581rm -rf conftest.dSYM
4582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4583fi
4584
4585
4586fi
4587fi
4588{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4589$as_echo "$ac_cv_header_stdc" >&6; }
4590if test $ac_cv_header_stdc = yes; then
4591
4592cat >>confdefs.h <<\_ACEOF
4593#define STDC_HEADERS 1
4594_ACEOF
4595
4596fi
4597
4598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609 inttypes.h stdint.h unistd.h
4610do
4611as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4613$as_echo_n "checking for $ac_header... " >&6; }
4614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 $as_echo_n "(cached) " >&6
4616else
4617 cat >conftest.$ac_ext <<_ACEOF
4618/* confdefs.h. */
4619_ACEOF
4620cat confdefs.h >>conftest.$ac_ext
4621cat >>conftest.$ac_ext <<_ACEOF
4622/* end confdefs.h. */
4623$ac_includes_default
4624
4625#include <$ac_header>
4626_ACEOF
4627rm -f conftest.$ac_objext
4628if { (ac_try="$ac_compile"
4629case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632esac
4633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634$as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4636 ac_status=$?
4637 grep -v '^ *+' conftest.er1 >conftest.err
4638 rm -f conftest.er1
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.$ac_objext; then
4645 eval "$as_ac_Header=yes"
4646else
4647 $as_echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650 eval "$as_ac_Header=no"
4651fi
4652
4653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654fi
4655ac_res=`eval 'as_val=${'$as_ac_Header'}
4656 $as_echo "$as_val"'`
4657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4658$as_echo "$ac_res" >&6; }
4659if test `eval 'as_val=${'$as_ac_Header'}
4660 $as_echo "$as_val"'` = yes; then
4661 cat >>confdefs.h <<_ACEOF
4662#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4663_ACEOF
4664
4665fi
4666
4667done
4668
4669
4670
4671for ac_header in dlfcn.h
4672do
4673as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4676$as_echo_n "checking for $ac_header... " >&6; }
4677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4678 $as_echo_n "(cached) " >&6
4679fi
4680ac_res=`eval 'as_val=${'$as_ac_Header'}
4681 $as_echo "$as_val"'`
4682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4683$as_echo "$ac_res" >&6; }
4684else
4685 # Is the header compilable?
4686{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4687$as_echo_n "checking $ac_header usability... " >&6; }
4688cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694$ac_includes_default
4695#include <$ac_header>
4696_ACEOF
4697rm -f conftest.$ac_objext
4698if { (ac_try="$ac_compile"
4699case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702esac
4703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4704$as_echo "$ac_try_echo") >&5
4705 (eval "$ac_compile") 2>conftest.er1
4706 ac_status=$?
4707 grep -v '^ *+' conftest.er1 >conftest.err
4708 rm -f conftest.er1
4709 cat conftest.err >&5
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); } && {
4712 test -z "$ac_c_werror_flag" ||
4713 test ! -s conftest.err
4714 } && test -s conftest.$ac_objext; then
4715 ac_header_compiler=yes
4716else
4717 $as_echo "$as_me: failed program was:" >&5
4718sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 ac_header_compiler=no
4721fi
4722
4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725$as_echo "$ac_header_compiler" >&6; }
4726
4727# Is the header present?
4728{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4729$as_echo_n "checking $ac_header presence... " >&6; }
4730cat >conftest.$ac_ext <<_ACEOF
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
4736#include <$ac_header>
4737_ACEOF
4738if { (ac_try="$ac_cpp conftest.$ac_ext"
4739case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
4743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4744$as_echo "$ac_try_echo") >&5
4745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4746 ac_status=$?
4747 grep -v '^ *+' conftest.er1 >conftest.err
4748 rm -f conftest.er1
4749 cat conftest.err >&5
4750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); } >/dev/null && {
4752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4753 test ! -s conftest.err
4754 }; then
4755 ac_header_preproc=yes
4756else
4757 $as_echo "$as_me: failed program was:" >&5
4758sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ac_header_preproc=no
4761fi
4762
4763rm -f conftest.err conftest.$ac_ext
4764{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765$as_echo "$ac_header_preproc" >&6; }
4766
4767# So? What about this header?
4768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4769 yes:no: )
4770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4771$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4773$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4775 ;;
4776 no:yes:* )
4777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4778$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4780$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4782$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4784$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4786$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4788$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4789 ( cat <<\_ASBOX
4790## ----------------------------------------------- ##
4791## Report this to trustedbsd-audit@TrustesdBSD.org ##
4792## ----------------------------------------------- ##
4793_ASBOX
4794 ) | sed "s/^/$as_me: WARNING: /" >&2
4795 ;;
4796esac
4797{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4798$as_echo_n "checking for $ac_header... " >&6; }
4799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4800 $as_echo_n "(cached) " >&6
4801else
4802 eval "$as_ac_Header=\$ac_header_preproc"
4803fi
4804ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807$as_echo "$ac_res" >&6; }
4808
4809fi
4810if test `eval 'as_val=${'$as_ac_Header'}
4811 $as_echo "$as_val"'` = yes; then
4812 cat >>confdefs.h <<_ACEOF
4813#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4814_ACEOF
4815
4816fi
4817
4818done
4819
4820ac_ext=cpp
4821ac_cpp='$CXXCPP $CPPFLAGS'
4822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4825if test -z "$CXX"; then
4826 if test -n "$CCC"; then
4827 CXX=$CCC
4828 else
4829 if test -n "$ac_tool_prefix"; then
4830 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4831 do
4832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4834{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_CXX+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4838else
4839 if test -n "$CXX"; then
4840 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855IFS=$as_save_IFS
4856
4857fi
4858fi
4859CXX=$ac_cv_prog_CXX
4860if test -n "$CXX"; then
4861 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4862$as_echo "$CXX" >&6; }
4863else
4864 { $as_echo "$as_me:$LINENO: result: no" >&5
4865$as_echo "no" >&6; }
4866fi
4867
4868
4869 test -n "$CXX" && break
4870 done
4871fi
4872if test -z "$CXX"; then
4873 ac_ct_CXX=$CXX
4874 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4875do
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877set dummy $ac_prog; ac_word=$2
4878{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4879$as_echo_n "checking for $ac_word... " >&6; }
4880if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4881 $as_echo_n "(cached) " >&6
4882else
4883 if test -n "$ac_ct_CXX"; then
4884 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4885else
4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887for as_dir in $PATH
4888do
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_ac_ct_CXX="$ac_prog"
4894 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4895 break 2
4896 fi
4897done
4898done
4899IFS=$as_save_IFS
4900
4901fi
4902fi
4903ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4904if test -n "$ac_ct_CXX"; then
4905 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4906$as_echo "$ac_ct_CXX" >&6; }
4907else
4908 { $as_echo "$as_me:$LINENO: result: no" >&5
4909$as_echo "no" >&6; }
4910fi
4911
4912
4913 test -n "$ac_ct_CXX" && break
4914done
4915
4916 if test "x$ac_ct_CXX" = x; then
4917 CXX="g++"
4918 else
4919 case $cross_compiling:$ac_tool_warned in
4920yes:)
4921{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4922whose name does not start with the host triplet. If you think this
4923configuration is useful to you, please write to autoconf@gnu.org." >&5
4924$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4925whose name does not start with the host triplet. If you think this
4926configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4927ac_tool_warned=yes ;;
4928esac
4929 CXX=$ac_ct_CXX
4930 fi
4931fi
4932
4933 fi
4934fi
4935# Provide some information about the compiler.
4936$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4937set X $ac_compile
4938ac_compiler=$2
4939{ (ac_try="$ac_compiler --version >&5"
4940case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943esac
4944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4945$as_echo "$ac_try_echo") >&5
4946 (eval "$ac_compiler --version >&5") 2>&5
4947 ac_status=$?
4948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }
4950{ (ac_try="$ac_compiler -v >&5"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4956$as_echo "$ac_try_echo") >&5
4957 (eval "$ac_compiler -v >&5") 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }
4961{ (ac_try="$ac_compiler -V >&5"
4962case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965esac
4966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967$as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compiler -V >&5") 2>&5
4969 ac_status=$?
4970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }
4972
4973{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4974$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4975if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4977else
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988#ifndef __GNUC__
4989 choke me
4990#endif
4991
4992 ;
4993 return 0;
4994}
4995_ACEOF
4996rm -f conftest.$ac_objext
4997if { (ac_try="$ac_compile"
4998case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001esac
5002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003$as_echo "$ac_try_echo") >&5
5004 (eval "$ac_compile") 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && {
5011 test -z "$ac_cxx_werror_flag" ||
5012 test ! -s conftest.err
5013 } && test -s conftest.$ac_objext; then
5014 ac_compiler_gnu=yes
5015else
5016 $as_echo "$as_me: failed program was:" >&5
5017sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 ac_compiler_gnu=no
5020fi
5021
5022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5024
5025fi
5026{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5027$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5028if test $ac_compiler_gnu = yes; then
5029 GXX=yes
5030else
5031 GXX=
5032fi
5033ac_test_CXXFLAGS=${CXXFLAGS+set}
5034ac_save_CXXFLAGS=$CXXFLAGS
5035{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5036$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5037if test "${ac_cv_prog_cxx_g+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039else
5040 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5041 ac_cxx_werror_flag=yes
5042 ac_cv_prog_cxx_g=no
5043 CXXFLAGS="-g"
5044 cat >conftest.$ac_ext <<_ACEOF
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050
5051int
5052main ()
5053{
5054
5055 ;
5056 return 0;
5057}
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (ac_try="$ac_compile"
5061case "(($ac_try" in
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5063 *) ac_try_echo=$ac_try;;
5064esac
5065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5066$as_echo "$ac_try_echo") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_cxx_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_prog_cxx_g=yes
5078else
5079 $as_echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082 CXXFLAGS=""
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089
5090int
5091main ()
5092{
5093
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (ac_try="$ac_compile"
5100case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105$as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_cxx_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 :
5117else
5118 $as_echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5122 CXXFLAGS="-g"
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129
5130int
5131main ()
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138rm -f conftest.$ac_objext
5139if { (ac_try="$ac_compile"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5145$as_echo "$ac_try_echo") >&5
5146 (eval "$ac_compile") 2>conftest.er1
5147 ac_status=$?
5148 grep -v '^ *+' conftest.er1 >conftest.err
5149 rm -f conftest.er1
5150 cat conftest.err >&5
5151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); } && {
5153 test -z "$ac_cxx_werror_flag" ||
5154 test ! -s conftest.err
5155 } && test -s conftest.$ac_objext; then
5156 ac_cv_prog_cxx_g=yes
5157else
5158 $as_echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161
5162fi
5163
5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5165fi
5166
5167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168fi
5169
5170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5172fi
5173{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5174$as_echo "$ac_cv_prog_cxx_g" >&6; }
5175if test "$ac_test_CXXFLAGS" = set; then
5176 CXXFLAGS=$ac_save_CXXFLAGS
5177elif test $ac_cv_prog_cxx_g = yes; then
5178 if test "$GXX" = yes; then
5179 CXXFLAGS="-g -O2"
5180 else
5181 CXXFLAGS="-g"
5182 fi
5183else
5184 if test "$GXX" = yes; then
5185 CXXFLAGS="-O2"
5186 else
5187 CXXFLAGS=
5188 fi
5189fi
5190ac_ext=cpp
5191ac_cpp='$CXXCPP $CPPFLAGS'
5192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5195
5196
5197
5198if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5199 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5200 (test "X$CXX" != "Xg++"))) ; then
5201 ac_ext=cpp
5202ac_cpp='$CXXCPP $CPPFLAGS'
5203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5207$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5208if test -z "$CXXCPP"; then
5209 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5210 $as_echo_n "(cached) " >&6
5211else
5212 # Double quotes because CXXCPP needs to be expanded
5213 for CXXCPP in "$CXX -E" "/lib/cpp"
5214 do
5215 ac_preproc_ok=false
5216for ac_cxx_preproc_warn_flag in '' yes
5217do
5218 # Use a header file that comes with gcc, so configuring glibc
5219 # with a fresh cross-compiler works.
5220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5221 # <limits.h> exists even on freestanding compilers.
5222 # On the NeXT, cc -E runs the code through the compiler's parser,
5223 # not just through cpp. "Syntax error" is here to catch this case.
5224 cat >conftest.$ac_ext <<_ACEOF
5225/* confdefs.h. */
5226_ACEOF
5227cat confdefs.h >>conftest.$ac_ext
5228cat >>conftest.$ac_ext <<_ACEOF
5229/* end confdefs.h. */
5230#ifdef __STDC__
5231# include <limits.h>
5232#else
5233# include <assert.h>
5234#endif
5235 Syntax error
5236_ACEOF
5237if { (ac_try="$ac_cpp conftest.$ac_ext"
5238case "(($ac_try" in
5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5240 *) ac_try_echo=$ac_try;;
5241esac
5242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5243$as_echo "$ac_try_echo") >&5
5244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } >/dev/null && {
5251 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5252 test ! -s conftest.err
5253 }; then
5254 :
5255else
5256 $as_echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 # Broken: fails on valid input.
5260continue
5261fi
5262
5263rm -f conftest.err conftest.$ac_ext
5264
5265 # OK, works on sane cases. Now check whether nonexistent headers
5266 # can be detected and how.
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
5273#include <ac_nonexistent.h>
5274_ACEOF
5275if { (ac_try="$ac_cpp conftest.$ac_ext"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5281$as_echo "$ac_try_echo") >&5
5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } >/dev/null && {
5289 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5290 test ! -s conftest.err
5291 }; then
5292 # Broken: success on invalid input.
5293continue
5294else
5295 $as_echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 # Passes both tests.
5299ac_preproc_ok=:
5300break
5301fi
5302
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then
5309 break
5310fi
5311
5312 done
5313 ac_cv_prog_CXXCPP=$CXXCPP
5314
5315fi
5316 CXXCPP=$ac_cv_prog_CXXCPP
5317else
5318 ac_cv_prog_CXXCPP=$CXXCPP
5319fi
5320{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5321$as_echo "$CXXCPP" >&6; }
5322ac_preproc_ok=false
5323for ac_cxx_preproc_warn_flag in '' yes
5324do
5325 # Use a header file that comes with gcc, so configuring glibc
5326 # with a fresh cross-compiler works.
5327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328 # <limits.h> exists even on freestanding compilers.
5329 # On the NeXT, cc -E runs the code through the compiler's parser,
5330 # not just through cpp. "Syntax error" is here to catch this case.
5331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
5336/* end confdefs.h. */
5337#ifdef __STDC__
5338# include <limits.h>
5339#else
5340# include <assert.h>
5341#endif
5342 Syntax error
5343_ACEOF
5344if { (ac_try="$ac_cpp conftest.$ac_ext"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350$as_echo "$ac_try_echo") >&5
5351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } >/dev/null && {
5358 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5359 test ! -s conftest.err
5360 }; then
5361 :
5362else
5363 $as_echo "$as_me: failed program was:" >&5
5364sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 # Broken: fails on valid input.
5367continue
5368fi
5369
5370rm -f conftest.err conftest.$ac_ext
5371
5372 # OK, works on sane cases. Now check whether nonexistent headers
5373 # can be detected and how.
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#include <ac_nonexistent.h>
5381_ACEOF
5382if { (ac_try="$ac_cpp conftest.$ac_ext"
5383case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386esac
5387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388$as_echo "$ac_try_echo") >&5
5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } >/dev/null && {
5396 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 }; then
5399 # Broken: success on invalid input.
5400continue
5401else
5402 $as_echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 :
5417else
5418 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5419See \`config.log' for more details." >&5
5420$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5423fi
5424
5425ac_ext=cpp
5426ac_cpp='$CXXCPP $CPPFLAGS'
5427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5430
5431fi
5432
5433
5434ac_ext=f
5435ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438if test -n "$ac_tool_prefix"; then
5439 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 pgf95 lf95 ftn
5440 do
5441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5444$as_echo_n "checking for $ac_word... " >&6; }
5445if test "${ac_cv_prog_F77+set}" = set; then
5446 $as_echo_n "(cached) " >&6
5447else
5448 if test -n "$F77"; then
5449 ac_cv_prog_F77="$F77" # Let the user override the test.
5450else
5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452for as_dir in $PATH
5453do
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5461 fi
5462done
5463done
5464IFS=$as_save_IFS
5465
5466fi
5467fi
5468F77=$ac_cv_prog_F77
5469if test -n "$F77"; then
5470 { $as_echo "$as_me:$LINENO: result: $F77" >&5
5471$as_echo "$F77" >&6; }
5472else
5473 { $as_echo "$as_me:$LINENO: result: no" >&5
5474$as_echo "no" >&6; }
5475fi
5476
5477
5478 test -n "$F77" && break
5479 done
5480fi
5481if test -z "$F77"; then
5482 ac_ct_F77=$F77
5483 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 pgf95 lf95 ftn
5484do
5485 # Extract the first word of "$ac_prog", so it can be a program name with args.
5486set dummy $ac_prog; ac_word=$2
5487{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5488$as_echo_n "checking for $ac_word... " >&6; }
5489if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5490 $as_echo_n "(cached) " >&6
5491else
5492 if test -n "$ac_ct_F77"; then
5493 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5494else
5495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_F77="$ac_prog"
5503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506done
5507done
5508IFS=$as_save_IFS
5509
5510fi
5511fi
5512ac_ct_F77=$ac_cv_prog_ac_ct_F77
5513if test -n "$ac_ct_F77"; then
5514 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5515$as_echo "$ac_ct_F77" >&6; }
5516else
5517 { $as_echo "$as_me:$LINENO: result: no" >&5
5518$as_echo "no" >&6; }
5519fi
5520
5521
5522 test -n "$ac_ct_F77" && break
5523done
5524
5525 if test "x$ac_ct_F77" = x; then
5526 F77=""
5527 else
5528 case $cross_compiling:$ac_tool_warned in
5529yes:)
5530{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5531whose name does not start with the host triplet. If you think this
5532configuration is useful to you, please write to autoconf@gnu.org." >&5
5533$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5534whose name does not start with the host triplet. If you think this
5535configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538 F77=$ac_ct_F77
5539 fi
5540fi
5541
5542
5543# Provide some information about the compiler.
5544$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5545set X $ac_compile
5546ac_compiler=$2
5547{ (ac_try="$ac_compiler --version >&5"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5553$as_echo "$ac_try_echo") >&5
5554 (eval "$ac_compiler --version >&5") 2>&5
5555 ac_status=$?
5556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }
5558{ (ac_try="$ac_compiler -v >&5"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5564$as_echo "$ac_try_echo") >&5
5565 (eval "$ac_compiler -v >&5") 2>&5
5566 ac_status=$?
5567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569{ (ac_try="$ac_compiler -V >&5"
5570case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573esac
5574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5575$as_echo "$ac_try_echo") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5577 ac_status=$?
5578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580rm -f a.out
5581
5582# If we don't use `.F' as extension, the preprocessor is not run on the
5583# input file. (Note that this only needs to work for GNU compilers.)
5584ac_save_ext=$ac_ext
5585ac_ext=F
5586{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5587$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5588if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5590else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 program main
5593#ifndef __GNUC__
5594 choke me
5595#endif
5596
5597 end
5598_ACEOF
5599rm -f conftest.$ac_objext
5600if { (ac_try="$ac_compile"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5606$as_echo "$ac_try_echo") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_f77_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_compiler_gnu=yes
5618else
5619 $as_echo "$as_me: failed program was:" >&5
5620sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_compiler_gnu=no
5623fi
5624
5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5627
5628fi
5629{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5630$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5631ac_ext=$ac_save_ext
5632ac_test_FFLAGS=${FFLAGS+set}
5633ac_save_FFLAGS=$FFLAGS
5634FFLAGS=
5635{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5636$as_echo_n "checking whether $F77 accepts -g... " >&6; }
5637if test "${ac_cv_prog_f77_g+set}" = set; then
5638 $as_echo_n "(cached) " >&6
5639else
5640 FFLAGS=-g
5641cat >conftest.$ac_ext <<_ACEOF
5642 program main
5643
5644 end
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (ac_try="$ac_compile"
5648case "(($ac_try" in
5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650 *) ac_try_echo=$ac_try;;
5651esac
5652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5653$as_echo "$ac_try_echo") >&5
5654 (eval "$ac_compile") 2>conftest.er1
5655 ac_status=$?
5656 grep -v '^ *+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); } && {
5661 test -z "$ac_f77_werror_flag" ||
5662 test ! -s conftest.err
5663 } && test -s conftest.$ac_objext; then
5664 ac_cv_prog_f77_g=yes
5665else
5666 $as_echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669 ac_cv_prog_f77_g=no
5670fi
5671
5672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673
5674fi
5675{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5676$as_echo "$ac_cv_prog_f77_g" >&6; }
5677if test "$ac_test_FFLAGS" = set; then
5678 FFLAGS=$ac_save_FFLAGS
5679elif test $ac_cv_prog_f77_g = yes; then
5680 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5681 FFLAGS="-g -O2"
5682 else
5683 FFLAGS="-g"
5684 fi
5685else
5686 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5687 FFLAGS="-O2"
5688 else
5689 FFLAGS=
5690 fi
5691fi
5692
5693if test $ac_compiler_gnu = yes; then
5694 G77=yes
5695else
5696 G77=
5697fi
5698ac_ext=c
5699ac_cpp='$CPP $CPPFLAGS'
5700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705
5706# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5707# find the maximum length of command line arguments
5708{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5709$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5710if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5712else
5713 i=0
5714 teststring="ABCD"
5715
5716 case $build_os in
5717 msdosdjgpp*)
5718 # On DJGPP, this test can blow up pretty badly due to problems in libc
5719 # (any single argument exceeding 2000 bytes causes a buffer overrun
5720 # during glob expansion). Even if it were fixed, the result of this
5721 # check would be larger than it should be.
5722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5723 ;;
5724
5725 gnu*)
5726 # Under GNU Hurd, this test is not required because there is
5727 # no limit to the length of command line arguments.
5728 # Libtool will interpret -1 as no limit whatsoever
5729 lt_cv_sys_max_cmd_len=-1;
5730 ;;
5731
5732 cygwin* | mingw*)
5733 # On Win9x/ME, this test blows up -- it succeeds, but takes
5734 # about 5 minutes as the teststring grows exponentially.
5735 # Worse, since 9x/ME are not pre-emptively multitasking,
5736 # you end up with a "frozen" computer, even though with patience
5737 # the test eventually succeeds (with a max line length of 256k).
5738 # Instead, let's just punt: use the minimum linelength reported by
5739 # all of the supported platforms: 8192 (on NT/2K/XP).
5740 lt_cv_sys_max_cmd_len=8192;
5741 ;;
5742
5743 amigaos*)
5744 # On AmigaOS with pdksh, this test takes hours, literally.
5745 # So we just punt and use a minimum line length of 8192.
5746 lt_cv_sys_max_cmd_len=8192;
5747 ;;
5748
5749 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5750 # This has been around since 386BSD, at least. Likely further.
5751 if test -x /sbin/sysctl; then
5752 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5753 elif test -x /usr/sbin/sysctl; then
5754 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5755 else
5756 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5757 fi
5758 # And add a safety zone
5759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761 ;;
5762
5763 interix*)
5764 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5765 lt_cv_sys_max_cmd_len=196608
5766 ;;
5767
5768 osf*)
5769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5771 # nice to cause kernel panics so lets avoid the loop below.
5772 # First set a reasonable default.
5773 lt_cv_sys_max_cmd_len=16384
5774 #
5775 if test -x /sbin/sysconfig; then
5776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5778 esac
5779 fi
5780 ;;
5781 sco3.2v5*)
5782 lt_cv_sys_max_cmd_len=102400
5783 ;;
5784 sysv5* | sco5v6* | sysv4.2uw2*)
5785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5786 if test -n "$kargmax"; then
5787 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5788 else
5789 lt_cv_sys_max_cmd_len=32768
5790 fi
5791 ;;
5792 *)
5793 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5794 if test -n "$lt_cv_sys_max_cmd_len"; then
5795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5797 else
5798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5799 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5800 = "XX$teststring") >/dev/null 2>&1 &&
5801 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5802 lt_cv_sys_max_cmd_len=$new_result &&
5803 test $i != 17 # 1/2 MB should be enough
5804 do
5805 i=`expr $i + 1`
5806 teststring=$teststring$teststring
5807 done
5808 teststring=
5809 # Add a significant safety factor because C++ compilers can tack on massive
5810 # amounts of additional arguments before passing them to the linker.
5811 # It appears as though 1/2 is a usable value.
5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5813 fi
5814 ;;
5815 esac
5816
5817fi
5818
5819if test -n $lt_cv_sys_max_cmd_len ; then
5820 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5821$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5822else
5823 { $as_echo "$as_me:$LINENO: result: none" >&5
5824$as_echo "none" >&6; }
5825fi
5826
5827
5828
5829
5830
5831# Check for command to grab the raw symbol name followed by C symbol from nm.
5832{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5833$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5834if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5835 $as_echo_n "(cached) " >&6
5836else
5837
5838# These are sane defaults that work on at least a few old systems.
5839# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5840
5841# Character class describing NM global symbol codes.
5842symcode='[BCDEGRST]'
5843
5844# Regexp to match symbols that can be accessed directly from C.
5845sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5846
5847# Transform an extracted symbol line into a proper C declaration
5848lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5849
5850# Transform an extracted symbol line into symbol name and symbol address
5851lt_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'"
5852
5853# Define system-specific variables.
5854case $host_os in
5855aix*)
5856 symcode='[BCDT]'
5857 ;;
5858cygwin* | mingw* | pw32*)
5859 symcode='[ABCDGISTW]'
5860 ;;
5861hpux*) # Its linker distinguishes data from code symbols
5862 if test "$host_cpu" = ia64; then
5863 symcode='[ABCDEGRST]'
5864 fi
5865 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5866 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'"
5867 ;;
5868linux* | k*bsd*-gnu)
5869 if test "$host_cpu" = ia64; then
5870 symcode='[ABCDGIRSTW]'
5871 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5872 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'"
5873 fi
5874 ;;
5875irix* | nonstopux*)
5876 symcode='[BCDEGRST]'
5877 ;;
5878osf*)
5879 symcode='[BCDEGQRST]'
5880 ;;
5881solaris*)
5882 symcode='[BDRT]'
5883 ;;
5884sco3.2v5*)
5885 symcode='[DT]'
5886 ;;
5887sysv4.2uw2*)
5888 symcode='[DT]'
5889 ;;
5890sysv5* | sco5v6* | unixware* | OpenUNIX*)
5891 symcode='[ABDT]'
5892 ;;
5893sysv4)
5894 symcode='[DFNSTU]'
5895 ;;
5896esac
5897
5898# Handle CRLF in mingw tool chain
5899opt_cr=
5900case $build_os in
5901mingw*)
5902 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5903 ;;
5904esac
5905
5906# If we're using GNU nm, then use its standard symbol codes.
5907case `$NM -V 2>&1` in
5908*GNU* | *'with BFD'*)
5909 symcode='[ABCDGIRSTW]' ;;
5910esac
5911
5912# Try without a prefix undercore, then with it.
5913for ac_symprfx in "" "_"; do
5914
5915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5916 symxfrm="\\1 $ac_symprfx\\2 \\2"
5917
5918 # Write the raw and C identifiers.
5919 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5920
5921 # Check to see that the pipe works correctly.
5922 pipe_works=no
5923
5924 rm -f conftest*
5925 cat > conftest.$ac_ext <<EOF
5926#ifdef __cplusplus
5927extern "C" {
5928#endif
5929char nm_test_var;
5930void nm_test_func(){}
5931#ifdef __cplusplus
5932}
5933#endif
5934int main(){nm_test_var='a';nm_test_func();return(0);}
5935EOF
5936
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5939 ac_status=$?
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; then
5942 # Now try to grab the symbols.
5943 nlist=conftest.nm
5944 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } && test -s "$nlist"; then
5949 # Try sorting and uniquifying the output.
5950 if sort "$nlist" | uniq > "$nlist"T; then
5951 mv -f "$nlist"T "$nlist"
5952 else
5953 rm -f "$nlist"T
5954 fi
5955
5956 # Make sure that we snagged all the symbols we need.
5957 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5958 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5959 cat <<EOF > conftest.$ac_ext
5960#ifdef __cplusplus
5961extern "C" {
5962#endif
5963
5964EOF
5965 # Now generate the symbol file.
5966 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5967
5968 cat <<EOF >> conftest.$ac_ext
5969#if defined (__STDC__) && __STDC__
5970# define lt_ptr_t void *
5971#else
5972# define lt_ptr_t char *
5973# define const
5974#endif
5975
5976/* The mapping between symbol names and symbols. */
5977const struct {
5978 const char *name;
5979 lt_ptr_t address;
5980}
5981lt_preloaded_symbols[] =
5982{
5983EOF
5984 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5985 cat <<\EOF >> conftest.$ac_ext
5986 {0, (lt_ptr_t) 0}
5987};
5988
5989#ifdef __cplusplus
5990}
5991#endif
5992EOF
5993 # Now try linking the two files.
5994 mv conftest.$ac_objext conftstm.$ac_objext
5995 lt_save_LIBS="$LIBS"
5996 lt_save_CFLAGS="$CFLAGS"
5997 LIBS="conftstm.$ac_objext"
5998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>&5
6001 ac_status=$?
6002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6004 pipe_works=yes
6005 fi
6006 LIBS="$lt_save_LIBS"
6007 CFLAGS="$lt_save_CFLAGS"
6008 else
6009 echo "cannot find nm_test_func in $nlist" >&5
6010 fi
6011 else
6012 echo "cannot find nm_test_var in $nlist" >&5
6013 fi
6014 else
6015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6016 fi
6017 else
6018 echo "$progname: failed program was:" >&5
6019 cat conftest.$ac_ext >&5
6020 fi
6021 rm -rf conftest* conftst*
6022
6023 # Do not use the global_symbol_pipe unless it works.
6024 if test "$pipe_works" = yes; then
6025 break
6026 else
6027 lt_cv_sys_global_symbol_pipe=
6028 fi
6029done
6030
6031fi
6032
6033if test -z "$lt_cv_sys_global_symbol_pipe"; then
6034 lt_cv_sys_global_symbol_to_cdecl=
6035fi
6036if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6037 { $as_echo "$as_me:$LINENO: result: failed" >&5
6038$as_echo "failed" >&6; }
6039else
6040 { $as_echo "$as_me:$LINENO: result: ok" >&5
6041$as_echo "ok" >&6; }
6042fi
6043
6044{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6045$as_echo_n "checking for objdir... " >&6; }
6046if test "${lt_cv_objdir+set}" = set; then
6047 $as_echo_n "(cached) " >&6
6048else
6049 rm -f .libs 2>/dev/null
6050mkdir .libs 2>/dev/null
6051if test -d .libs; then
6052 lt_cv_objdir=.libs
6053else
6054 # MS-DOS does not allow filenames that begin with a dot.
6055 lt_cv_objdir=_libs
6056fi
6057rmdir .libs 2>/dev/null
6058fi
6059{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6060$as_echo "$lt_cv_objdir" >&6; }
6061objdir=$lt_cv_objdir
6062
6063
6064
6065
6066
6067case $host_os in
6068aix3*)
6069 # AIX sometimes has problems with the GCC collect2 program. For some
6070 # reason, if we set the COLLECT_NAMES environment variable, the problems
6071 # vanish in a puff of smoke.
6072 if test "X${COLLECT_NAMES+set}" != Xset; then
6073 COLLECT_NAMES=
6074 export COLLECT_NAMES
6075 fi
6076 ;;
6077esac
6078
6079# Sed substitution that helps us do robust quoting. It backslashifies
6080# metacharacters that are still active within double-quoted strings.
6081Xsed='sed -e 1s/^X//'
6082sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6083
6084# Same as above, but do not quote variable references.
6085double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6086
6087# Sed substitution to delay expansion of an escaped shell variable in a
6088# double_quote_subst'ed string.
6089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6090
6091# Sed substitution to avoid accidental globbing in evaled expressions
6092no_glob_subst='s/\*/\\\*/g'
6093
6094# Constants:
6095rm="rm -f"
6096
6097# Global variables:
6098default_ofile=libtool
6099can_build_shared=yes
6100
6101# All known linkers require a `.a' archive for static linking (except MSVC,
6102# which needs '.lib').
6103libext=a
6104ltmain="$ac_aux_dir/ltmain.sh"
6105ofile="$default_ofile"
6106with_gnu_ld="$lt_cv_prog_gnu_ld"
6107
6108if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6110set dummy ${ac_tool_prefix}ar; ac_word=$2
6111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6112$as_echo_n "checking for $ac_word... " >&6; }
6113if test "${ac_cv_prog_AR+set}" = set; then
6114 $as_echo_n "(cached) " >&6
6115else
6116 if test -n "$AR"; then
6117 ac_cv_prog_AR="$AR" # Let the user override the test.
6118else
6119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120for as_dir in $PATH
6121do
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_AR="${ac_tool_prefix}ar"
6127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6129 fi
6130done
6131done
6132IFS=$as_save_IFS
6133
6134fi
6135fi
6136AR=$ac_cv_prog_AR
6137if test -n "$AR"; then
6138 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6139$as_echo "$AR" >&6; }
6140else
6141 { $as_echo "$as_me:$LINENO: result: no" >&5
6142$as_echo "no" >&6; }
6143fi
6144
6145
6146fi
6147if test -z "$ac_cv_prog_AR"; then
6148 ac_ct_AR=$AR
6149 # Extract the first word of "ar", so it can be a program name with args.
6150set dummy ar; ac_word=$2
6151{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6155else
6156 if test -n "$ac_ct_AR"; then
6157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_AR="ar"
6167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170done
6171done
6172IFS=$as_save_IFS
6173
6174fi
6175fi
6176ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177if test -n "$ac_ct_AR"; then
6178 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6179$as_echo "$ac_ct_AR" >&6; }
6180else
6181 { $as_echo "$as_me:$LINENO: result: no" >&5
6182$as_echo "no" >&6; }
6183fi
6184
6185 if test "x$ac_ct_AR" = x; then
6186 AR="false"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189yes:)
6190{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6191whose name does not start with the host triplet. If you think this
6192configuration is useful to you, please write to autoconf@gnu.org." >&5
6193$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6194whose name does not start with the host triplet. If you think this
6195configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6196ac_tool_warned=yes ;;
6197esac
6198 AR=$ac_ct_AR
6199 fi
6200else
6201 AR="$ac_cv_prog_AR"
6202fi
6203
6204if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208$as_echo_n "checking for $ac_word... " >&6; }
6209if test "${ac_cv_prog_RANLIB+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6211else
6212 if test -n "$RANLIB"; then
6213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214else
6215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216for as_dir in $PATH
6217do
6218 IFS=$as_save_IFS
6219 test -z "$as_dir" && as_dir=.
6220 for ac_exec_ext in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 break 2
6225 fi
6226done
6227done
6228IFS=$as_save_IFS
6229
6230fi
6231fi
6232RANLIB=$ac_cv_prog_RANLIB
6233if test -n "$RANLIB"; then
6234 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6235$as_echo "$RANLIB" >&6; }
6236else
6237 { $as_echo "$as_me:$LINENO: result: no" >&5
6238$as_echo "no" >&6; }
6239fi
6240
6241
6242fi
6243if test -z "$ac_cv_prog_RANLIB"; then
6244 ac_ct_RANLIB=$RANLIB
6245 # Extract the first word of "ranlib", so it can be a program name with args.
6246set dummy ranlib; ac_word=$2
6247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248$as_echo_n "checking for $ac_word... " >&6; }
6249if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6251else
6252 if test -n "$ac_ct_RANLIB"; then
6253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_RANLIB="ranlib"
6263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268IFS=$as_save_IFS
6269
6270fi
6271fi
6272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273if test -n "$ac_ct_RANLIB"; then
6274 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6275$as_echo "$ac_ct_RANLIB" >&6; }
6276else
6277 { $as_echo "$as_me:$LINENO: result: no" >&5
6278$as_echo "no" >&6; }
6279fi
6280
6281 if test "x$ac_ct_RANLIB" = x; then
6282 RANLIB=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285yes:)
6286{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6287whose name does not start with the host triplet. If you think this
6288configuration is useful to you, please write to autoconf@gnu.org." >&5
6289$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6290whose name does not start with the host triplet. If you think this
6291configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6292ac_tool_warned=yes ;;
6293esac
6294 RANLIB=$ac_ct_RANLIB
6295 fi
6296else
6297 RANLIB="$ac_cv_prog_RANLIB"
6298fi
6299
6300if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6302set dummy ${ac_tool_prefix}strip; ac_word=$2
6303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6304$as_echo_n "checking for $ac_word... " >&6; }
6305if test "${ac_cv_prog_STRIP+set}" = set; then
6306 $as_echo_n "(cached) " >&6
6307else
6308 if test -n "$STRIP"; then
6309 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314 IFS=$as_save_IFS
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320 break 2
6321 fi
6322done
6323done
6324IFS=$as_save_IFS
6325
6326fi
6327fi
6328STRIP=$ac_cv_prog_STRIP
6329if test -n "$STRIP"; then
6330 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6331$as_echo "$STRIP" >&6; }
6332else
6333 { $as_echo "$as_me:$LINENO: result: no" >&5
6334$as_echo "no" >&6; }
6335fi
6336
6337
6338fi
6339if test -z "$ac_cv_prog_STRIP"; then
6340 ac_ct_STRIP=$STRIP
6341 # Extract the first word of "strip", so it can be a program name with args.
6342set dummy strip; ac_word=$2
6343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347else
6348 if test -n "$ac_ct_STRIP"; then
6349 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354 IFS=$as_save_IFS
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358 ac_cv_prog_ac_ct_STRIP="strip"
6359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 break 2
6361 fi
6362done
6363done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6369if test -n "$ac_ct_STRIP"; then
6370 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6371$as_echo "$ac_ct_STRIP" >&6; }
6372else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377 if test "x$ac_ct_STRIP" = x; then
6378 STRIP=":"
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381yes:)
6382{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383whose name does not start with the host triplet. If you think this
6384configuration is useful to you, please write to autoconf@gnu.org." >&5
6385$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386whose name does not start with the host triplet. If you think this
6387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388ac_tool_warned=yes ;;
6389esac
6390 STRIP=$ac_ct_STRIP
6391 fi
6392else
6393 STRIP="$ac_cv_prog_STRIP"
6394fi
6395
6396
6397old_CC="$CC"
6398old_CFLAGS="$CFLAGS"
6399
6400# Set sane defaults for various variables
6401test -z "$AR" && AR=ar
6402test -z "$AR_FLAGS" && AR_FLAGS=cru
6403test -z "$AS" && AS=as
6404test -z "$CC" && CC=cc
6405test -z "$LTCC" && LTCC=$CC
6406test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6407test -z "$DLLTOOL" && DLLTOOL=dlltool
6408test -z "$LD" && LD=ld
6409test -z "$LN_S" && LN_S="ln -s"
6410test -z "$MAGIC_CMD" && MAGIC_CMD=file
6411test -z "$NM" && NM=nm
6412test -z "$SED" && SED=sed
6413test -z "$OBJDUMP" && OBJDUMP=objdump
6414test -z "$RANLIB" && RANLIB=:
6415test -z "$STRIP" && STRIP=:
6416test -z "$ac_objext" && ac_objext=o
6417
6418# Determine commands to create old-style static archives.
6419old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6420old_postinstall_cmds='chmod 644 $oldlib'
6421old_postuninstall_cmds=
6422
6423if test -n "$RANLIB"; then
6424 case $host_os in
6425 openbsd*)
6426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6427 ;;
6428 *)
6429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6430 ;;
6431 esac
6432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6433fi
6434
6435for cc_temp in $compiler""; do
6436 case $cc_temp in
6437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 \-*) ;;
6440 *) break;;
6441 esac
6442done
6443cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6444
6445
6446# Only perform the check for file, if the check method requires it
6447case $deplibs_check_method in
6448file_magic*)
6449 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6450 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6451$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6452if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6453 $as_echo_n "(cached) " >&6
6454else
6455 case $MAGIC_CMD in
6456[\\/*] | ?:[\\/]*)
6457 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6458 ;;
6459*)
6460 lt_save_MAGIC_CMD="$MAGIC_CMD"
6461 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6462 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6463 for ac_dir in $ac_dummy; do
6464 IFS="$lt_save_ifs"
6465 test -z "$ac_dir" && ac_dir=.
6466 if test -f $ac_dir/${ac_tool_prefix}file; then
6467 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6468 if test -n "$file_magic_test_file"; then
6469 case $deplibs_check_method in
6470 "file_magic "*)
6471 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6473 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6474 $EGREP "$file_magic_regex" > /dev/null; then
6475 :
6476 else
6477 cat <<EOF 1>&2
6478
6479*** Warning: the command libtool uses to detect shared libraries,
6480*** $file_magic_cmd, produces output that libtool cannot recognize.
6481*** The result is that libtool may fail to recognize shared libraries
6482*** as such. This will affect the creation of libtool libraries that
6483*** depend on shared libraries, but programs linked with such libtool
6484*** libraries will work regardless of this problem. Nevertheless, you
6485*** may want to report the problem to your system manager and/or to
6486*** bug-libtool@gnu.org
6487
6488EOF
6489 fi ;;
6490 esac
6491 fi
6492 break
6493 fi
6494 done
6495 IFS="$lt_save_ifs"
6496 MAGIC_CMD="$lt_save_MAGIC_CMD"
6497 ;;
6498esac
6499fi
6500
6501MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6502if test -n "$MAGIC_CMD"; then
6503 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6504$as_echo "$MAGIC_CMD" >&6; }
6505else
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507$as_echo "no" >&6; }
6508fi
6509
6510if test -z "$lt_cv_path_MAGIC_CMD"; then
6511 if test -n "$ac_tool_prefix"; then
6512 { $as_echo "$as_me:$LINENO: checking for file" >&5
6513$as_echo_n "checking for file... " >&6; }
6514if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6515 $as_echo_n "(cached) " >&6
6516else
6517 case $MAGIC_CMD in
6518[\\/*] | ?:[\\/]*)
6519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6520 ;;
6521*)
6522 lt_save_MAGIC_CMD="$MAGIC_CMD"
6523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6525 for ac_dir in $ac_dummy; do
6526 IFS="$lt_save_ifs"
6527 test -z "$ac_dir" && ac_dir=.
6528 if test -f $ac_dir/file; then
6529 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6530 if test -n "$file_magic_test_file"; then
6531 case $deplibs_check_method in
6532 "file_magic "*)
6533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6536 $EGREP "$file_magic_regex" > /dev/null; then
6537 :
6538 else
6539 cat <<EOF 1>&2
6540
6541*** Warning: the command libtool uses to detect shared libraries,
6542*** $file_magic_cmd, produces output that libtool cannot recognize.
6543*** The result is that libtool may fail to recognize shared libraries
6544*** as such. This will affect the creation of libtool libraries that
6545*** depend on shared libraries, but programs linked with such libtool
6546*** libraries will work regardless of this problem. Nevertheless, you
6547*** may want to report the problem to your system manager and/or to
6548*** bug-libtool@gnu.org
6549
6550EOF
6551 fi ;;
6552 esac
6553 fi
6554 break
6555 fi
6556 done
6557 IFS="$lt_save_ifs"
6558 MAGIC_CMD="$lt_save_MAGIC_CMD"
6559 ;;
6560esac
6561fi
6562
6563MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6564if test -n "$MAGIC_CMD"; then
6565 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6566$as_echo "$MAGIC_CMD" >&6; }
6567else
6568 { $as_echo "$as_me:$LINENO: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572 else
6573 MAGIC_CMD=:
6574 fi
6575fi
6576
6577 fi
6578 ;;
6579esac
6580
6581
6582 case $host_os in
6583 rhapsody* | darwin*)
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6591else
6592 if test -n "$DSYMUTIL"; then
6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613if test -n "$DSYMUTIL"; then
6614 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6615$as_echo "$DSYMUTIL" >&6; }
6616else
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_DSYMUTIL"; then
6624 ac_ct_DSYMUTIL=$DSYMUTIL
6625 # Extract the first word of "dsymutil", so it can be a program name with args.
6626set dummy dsymutil; ac_word=$2
6627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6631else
6632 if test -n "$ac_ct_DSYMUTIL"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
6647done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653if test -n "$ac_ct_DSYMUTIL"; then
6654 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6655$as_echo "$ac_ct_DSYMUTIL" >&6; }
6656else
6657 { $as_echo "$as_me:$LINENO: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661 if test "x$ac_ct_DSYMUTIL" = x; then
6662 DSYMUTIL=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6667whose name does not start with the host triplet. If you think this
6668configuration is useful to you, please write to autoconf@gnu.org." >&5
6669$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6670whose name does not start with the host triplet. If you think this
6671configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6672ac_tool_warned=yes ;;
6673esac
6674 DSYMUTIL=$ac_ct_DSYMUTIL
6675 fi
6676else
6677 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6678fi
6679
6680 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6682set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6683{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6684$as_echo_n "checking for $ac_word... " >&6; }
6685if test "${ac_cv_prog_NMEDIT+set}" = set; then
6686 $as_echo_n "(cached) " >&6
6687else
6688 if test -n "$NMEDIT"; then
6689 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6690else
6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692for as_dir in $PATH
6693do
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6701 fi
6702done
6703done
6704IFS=$as_save_IFS
6705
6706fi
6707fi
6708NMEDIT=$ac_cv_prog_NMEDIT
6709if test -n "$NMEDIT"; then
6710 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6711$as_echo "$NMEDIT" >&6; }
6712else
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714$as_echo "no" >&6; }
6715fi
6716
6717
6718fi
6719if test -z "$ac_cv_prog_NMEDIT"; then
6720 ac_ct_NMEDIT=$NMEDIT
6721 # Extract the first word of "nmedit", so it can be a program name with args.
6722set dummy nmedit; ac_word=$2
6723{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6726 $as_echo_n "(cached) " >&6
6727else
6728 if test -n "$ac_ct_NMEDIT"; then
6729 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6749if test -n "$ac_ct_NMEDIT"; then
6750 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6751$as_echo "$ac_ct_NMEDIT" >&6; }
6752else
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757 if test "x$ac_ct_NMEDIT" = x; then
6758 NMEDIT=":"
6759 else
6760 case $cross_compiling:$ac_tool_warned in
6761yes:)
6762{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6763whose name does not start with the host triplet. If you think this
6764configuration is useful to you, please write to autoconf@gnu.org." >&5
6765$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6766whose name does not start with the host triplet. If you think this
6767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6768ac_tool_warned=yes ;;
6769esac
6770 NMEDIT=$ac_ct_NMEDIT
6771 fi
6772else
6773 NMEDIT="$ac_cv_prog_NMEDIT"
6774fi
6775
6776
6777 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6778$as_echo_n "checking for -single_module linker flag... " >&6; }
6779if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6781else
6782 lt_cv_apple_cc_single_mod=no
6783 if test -z "${LT_MULTI_MODULE}"; then
6784 # By default we will add the -single_module flag. You can override
6785 # by either setting the environment variable LT_MULTI_MODULE
6786 # non-empty at configure time, or by adding -multi_module to the
6787 # link flags.
6788 echo "int foo(void){return 1;}" > conftest.c
6789 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6790 -dynamiclib ${wl}-single_module conftest.c
6791 if test -f libconftest.dylib; then
6792 lt_cv_apple_cc_single_mod=yes
6793 rm -rf libconftest.dylib*
6794 fi
6795 rm conftest.c
6796 fi
6797fi
6798{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6799$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6800 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6801$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6802if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6803 $as_echo_n "(cached) " >&6
6804else
6805 lt_cv_ld_exported_symbols_list=no
6806 save_LDFLAGS=$LDFLAGS
6807 echo "_main" > conftest.sym
6808 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6809 cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
6815
6816int
6817main ()
6818{
6819
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824rm -f conftest.$ac_objext conftest$ac_exeext
6825if { (ac_try="$ac_link"
6826case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829esac
6830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6831$as_echo "$ac_try_echo") >&5
6832 (eval "$ac_link") 2>conftest.er1
6833 ac_status=$?
6834 grep -v '^ *+' conftest.er1 >conftest.err
6835 rm -f conftest.er1
6836 cat conftest.err >&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest$ac_exeext && {
6842 test "$cross_compiling" = yes ||
6843 $as_test_x conftest$ac_exeext
6844 }; then
6845 lt_cv_ld_exported_symbols_list=yes
6846else
6847 $as_echo "$as_me: failed program was:" >&5
6848sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 lt_cv_ld_exported_symbols_list=no
6851fi
6852
6853rm -rf conftest.dSYM
6854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6855 conftest$ac_exeext conftest.$ac_ext
6856 LDFLAGS="$save_LDFLAGS"
6857
6858fi
6859{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6860$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6861 case $host_os in
6862 rhapsody* | darwin1.[0123])
6863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6864 darwin1.*)
6865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6866 darwin*)
6867 # if running on 10.5 or later, the deployment target defaults
6868 # to the OS version, if on x86, and 10.4, the deployment
6869 # target defaults to 10.4. Don't you love it?
6870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6871 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6873 10.[012]*)
6874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6875 10.*)
6876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6877 esac
6878 ;;
6879 esac
6880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6881 _lt_dar_single_mod='$single_module'
6882 fi
6883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6885 else
6886 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6887 fi
6888 if test "$DSYMUTIL" != ":"; then
6889 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6890 else
6891 _lt_dsymutil=
6892 fi
6893 ;;
6894 esac
6895
6896
6897enable_dlopen=no
6898enable_win32_dll=no
6899
6900# Check whether --enable-libtool-lock was given.
6901if test "${enable_libtool_lock+set}" = set; then
6902 enableval=$enable_libtool_lock;
6903fi
6904
6905test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6906
6907
6908# Check whether --with-pic was given.
6909if test "${with_pic+set}" = set; then
6910 withval=$with_pic; pic_mode="$withval"
6911else
6912 pic_mode=default
6913fi
6914
6915test -z "$pic_mode" && pic_mode=default
6916
6917# Use C for the default configuration in the libtool script
6918tagname=
6919lt_save_CC="$CC"
6920ac_ext=c
6921ac_cpp='$CPP $CPPFLAGS'
6922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6924ac_compiler_gnu=$ac_cv_c_compiler_gnu
6925
6926
6927# Source file extension for C test sources.
6928ac_ext=c
6929
6930# Object file extension for compiled C test sources.
6931objext=o
6932objext=$objext
6933
6934# Code to be used in simple compile tests
6935lt_simple_compile_test_code="int some_variable = 0;"
6936
6937# Code to be used in simple link tests
6938lt_simple_link_test_code='int main(){return(0);}'
6939
6940
6941# If no C compiler was specified, use CC.
6942LTCC=${LTCC-"$CC"}
6943
6944# If no C compiler flags were specified, use CFLAGS.
6945LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6946
6947# Allow CC to be a program name with arguments.
6948compiler=$CC
6949
6950
6951# save warnings/boilerplate of simple test code
6952ac_outfile=conftest.$ac_objext
6953echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6954eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6955_lt_compiler_boilerplate=`cat conftest.err`
6956$rm conftest*
6957
6958ac_outfile=conftest.$ac_objext
6959echo "$lt_simple_link_test_code" >conftest.$ac_ext
6960eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6961_lt_linker_boilerplate=`cat conftest.err`
6962$rm -r conftest*
6963
6964
6965
6966lt_prog_compiler_no_builtin_flag=
6967
6968if test "$GCC" = yes; then
6969 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6970
6971
6972{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6973$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6974if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6975 $as_echo_n "(cached) " >&6
6976else
6977 lt_cv_prog_compiler_rtti_exceptions=no
6978 ac_outfile=conftest.$ac_objext
6979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6980 lt_compiler_flag="-fno-rtti -fno-exceptions"
6981 # Insert the option either (1) after the last *FLAGS variable, or
6982 # (2) before a word containing "conftest.", or (3) at the end.
6983 # Note that $ac_compile itself does not contain backslashes and begins
6984 # with a dollar sign (not a hyphen), so the echo should work correctly.
6985 # The option is referenced via a variable to avoid confusing sed.
6986 lt_compile=`echo "$ac_compile" | $SED \
6987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6989 -e 's:$: $lt_compiler_flag:'`
6990 (eval echo "\"\$as_me:6990: $lt_compile\"" >&5)
6991 (eval "$lt_compile" 2>conftest.err)
6992 ac_status=$?
6993 cat conftest.err >&5
6994 echo "$as_me:6994: \$? = $ac_status" >&5
6995 if (exit $ac_status) && test -s "$ac_outfile"; then
6996 # The compiler can only warn and ignore the option if not recognized
6997 # So say no if there are warnings other than the usual output.
6998 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7000 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7001 lt_cv_prog_compiler_rtti_exceptions=yes
7002 fi
7003 fi
7004 $rm conftest*
7005
7006fi
7007{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7008$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7009
7010if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7011 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7012else
7013 :
7014fi
7015
7016fi
7017
7018lt_prog_compiler_wl=
7019lt_prog_compiler_pic=
7020lt_prog_compiler_static=
7021
7022{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7023$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7024
7025 if test "$GCC" = yes; then
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_static='-static'
7028
7029 case $host_os in
7030 aix*)
7031 # All AIX code is PIC.
7032 if test "$host_cpu" = ia64; then
7033 # AIX 5 now supports IA64 processor
7034 lt_prog_compiler_static='-Bstatic'
7035 fi
7036 ;;
7037
7038 amigaos*)
7039 # FIXME: we need at least 68020 code to build shared libraries, but
7040 # adding the `-m68020' flag to GCC prevents building anything better,
7041 # like `-m68040'.
7042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7043 ;;
7044
7045 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7046 # PIC is the default for these OSes.
7047 ;;
7048
7049 mingw* | cygwin* | pw32* | os2*)
7050 # This hack is so that the source file can tell whether it is being
7051 # built for inclusion in a dll (and should export symbols for example).
7052 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7053 # (--disable-auto-import) libraries
7054 lt_prog_compiler_pic='-DDLL_EXPORT'
7055 ;;
7056
7057 darwin* | rhapsody*)
7058 # PIC is the default on this platform
7059 # Common symbols not allowed in MH_DYLIB files
7060 lt_prog_compiler_pic='-fno-common'
7061 ;;
7062
7063 interix[3-9]*)
7064 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7065 # Instead, we relocate shared libraries at runtime.
7066 ;;
7067
7068 msdosdjgpp*)
7069 # Just because we use GCC doesn't mean we suddenly get shared libraries
7070 # on systems that don't support them.
7071 lt_prog_compiler_can_build_shared=no
7072 enable_shared=no
7073 ;;
7074
7075 sysv4*MP*)
7076 if test -d /usr/nec; then
7077 lt_prog_compiler_pic=-Kconform_pic
7078 fi
7079 ;;
7080
7081 hpux*)
7082 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7083 # not for PA HP-UX.
7084 case $host_cpu in
7085 hppa*64*|ia64*)
7086 # +Z the default
7087 ;;
7088 *)
7089 lt_prog_compiler_pic='-fPIC'
7090 ;;
7091 esac
7092 ;;
7093
7094 *)
7095 lt_prog_compiler_pic='-fPIC'
7096 ;;
7097 esac
7098 else
7099 # PORTME Check for flag to pass linker flags through the system compiler.
7100 case $host_os in
7101 aix*)
7102 lt_prog_compiler_wl='-Wl,'
7103 if test "$host_cpu" = ia64; then
7104 # AIX 5 now supports IA64 processor
7105 lt_prog_compiler_static='-Bstatic'
7106 else
7107 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7108 fi
7109 ;;
7110 darwin*)
7111 # PIC is the default on this platform
7112 # Common symbols not allowed in MH_DYLIB files
7113 case $cc_basename in
7114 xlc*)
7115 lt_prog_compiler_pic='-qnocommon'
7116 lt_prog_compiler_wl='-Wl,'
7117 ;;
7118 esac
7119 ;;
7120
7121 mingw* | cygwin* | pw32* | os2*)
7122 # This hack is so that the source file can tell whether it is being
7123 # built for inclusion in a dll (and should export symbols for example).
7124 lt_prog_compiler_pic='-DDLL_EXPORT'
7125 ;;
7126
7127 hpux9* | hpux10* | hpux11*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7130 # not for PA HP-UX.
7131 case $host_cpu in
7132 hppa*64*|ia64*)
7133 # +Z the default
7134 ;;
7135 *)
7136 lt_prog_compiler_pic='+Z'
7137 ;;
7138 esac
7139 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7140 lt_prog_compiler_static='${wl}-a ${wl}archive'
7141 ;;
7142
7143 irix5* | irix6* | nonstopux*)
7144 lt_prog_compiler_wl='-Wl,'
7145 # PIC (with -KPIC) is the default.
7146 lt_prog_compiler_static='-non_shared'
7147 ;;
7148
7149 newsos6)
7150 lt_prog_compiler_pic='-KPIC'
7151 lt_prog_compiler_static='-Bstatic'
7152 ;;
7153
7154 linux* | k*bsd*-gnu)
7155 case $cc_basename in
7156 icc* | ecc*)
7157 lt_prog_compiler_wl='-Wl,'
7158 lt_prog_compiler_pic='-KPIC'
7159 lt_prog_compiler_static='-static'
7160 ;;
7161 pgcc* | pgf77* | pgf90* | pgf95*)
7162 # Portland Group compilers (*not* the Pentium gcc compiler,
7163 # which looks to be a dead project)
7164 lt_prog_compiler_wl='-Wl,'
7165 lt_prog_compiler_pic='-fpic'
7166 lt_prog_compiler_static='-Bstatic'
7167 ;;
7168 ccc*)
7169 lt_prog_compiler_wl='-Wl,'
7170 # All Alpha code is PIC.
7171 lt_prog_compiler_static='-non_shared'
7172 ;;
7173 *)
7174 case `$CC -V 2>&1 | sed 5q` in
7175 *Sun\ C*)
7176 # Sun C 5.9
7177 lt_prog_compiler_pic='-KPIC'
7178 lt_prog_compiler_static='-Bstatic'
7179 lt_prog_compiler_wl='-Wl,'
7180 ;;
7181 *Sun\ F*)
7182 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7183 lt_prog_compiler_pic='-KPIC'
7184 lt_prog_compiler_static='-Bstatic'
7185 lt_prog_compiler_wl=''
7186 ;;
7187 esac
7188 ;;
7189 esac
7190 ;;
7191
7192 osf3* | osf4* | osf5*)
7193 lt_prog_compiler_wl='-Wl,'
7194 # All OSF/1 code is PIC.
7195 lt_prog_compiler_static='-non_shared'
7196 ;;
7197
7198 rdos*)
7199 lt_prog_compiler_static='-non_shared'
7200 ;;
7201
7202 solaris*)
7203 lt_prog_compiler_pic='-KPIC'
7204 lt_prog_compiler_static='-Bstatic'
7205 case $cc_basename in
7206 f77* | f90* | f95*)
7207 lt_prog_compiler_wl='-Qoption ld ';;
7208 *)
7209 lt_prog_compiler_wl='-Wl,';;
7210 esac
7211 ;;
7212
7213 sunos4*)
7214 lt_prog_compiler_wl='-Qoption ld '
7215 lt_prog_compiler_pic='-PIC'
7216 lt_prog_compiler_static='-Bstatic'
7217 ;;
7218
7219 sysv4 | sysv4.2uw2* | sysv4.3*)
7220 lt_prog_compiler_wl='-Wl,'
7221 lt_prog_compiler_pic='-KPIC'
7222 lt_prog_compiler_static='-Bstatic'
7223 ;;
7224
7225 sysv4*MP*)
7226 if test -d /usr/nec ;then
7227 lt_prog_compiler_pic='-Kconform_pic'
7228 lt_prog_compiler_static='-Bstatic'
7229 fi
7230 ;;
7231
7232 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7233 lt_prog_compiler_wl='-Wl,'
7234 lt_prog_compiler_pic='-KPIC'
7235 lt_prog_compiler_static='-Bstatic'
7236 ;;
7237
7238 unicos*)
7239 lt_prog_compiler_wl='-Wl,'
7240 lt_prog_compiler_can_build_shared=no
7241 ;;
7242
7243 uts4*)
7244 lt_prog_compiler_pic='-pic'
7245 lt_prog_compiler_static='-Bstatic'
7246 ;;
7247
7248 *)
7249 lt_prog_compiler_can_build_shared=no
7250 ;;
7251 esac
7252 fi
7253
7254{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7255$as_echo "$lt_prog_compiler_pic" >&6; }
7256
7257#
7258# Check to make sure the PIC flag actually works.
7259#
7260if test -n "$lt_prog_compiler_pic"; then
7261
7262{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7263$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7264if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7265 $as_echo_n "(cached) " >&6
7266else
7267 lt_cv_prog_compiler_pic_works=no
7268 ac_outfile=conftest.$ac_objext
7269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7271 # Insert the option either (1) after the last *FLAGS variable, or
7272 # (2) before a word containing "conftest.", or (3) at the end.
7273 # Note that $ac_compile itself does not contain backslashes and begins
7274 # with a dollar sign (not a hyphen), so the echo should work correctly.
7275 # The option is referenced via a variable to avoid confusing sed.
7276 lt_compile=`echo "$ac_compile" | $SED \
7277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7279 -e 's:$: $lt_compiler_flag:'`
7280 (eval echo "\"\$as_me:7280: $lt_compile\"" >&5)
7281 (eval "$lt_compile" 2>conftest.err)
7282 ac_status=$?
7283 cat conftest.err >&5
7284 echo "$as_me:7284: \$? = $ac_status" >&5
7285 if (exit $ac_status) && test -s "$ac_outfile"; then
7286 # The compiler can only warn and ignore the option if not recognized
7287 # So say no if there are warnings other than the usual output.
7288 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7291 lt_cv_prog_compiler_pic_works=yes
7292 fi
7293 fi
7294 $rm conftest*
7295
7296fi
7297{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7298$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7299
7300if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7301 case $lt_prog_compiler_pic in
7302 "" | " "*) ;;
7303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7304 esac
7305else
7306 lt_prog_compiler_pic=
7307 lt_prog_compiler_can_build_shared=no
7308fi
7309
7310fi
7311case $host_os in
7312 # For platforms which do not support PIC, -DPIC is meaningless:
7313 *djgpp*)
7314 lt_prog_compiler_pic=
7315 ;;
7316 *)
7317 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7318 ;;
7319esac
7320
7321#
7322# Check to make sure the static flag actually works.
7323#
7324wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7325{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7326$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7327if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7329else
7330 lt_cv_prog_compiler_static_works=no
7331 save_LDFLAGS="$LDFLAGS"
7332 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7333 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7334 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7335 # The linker can only warn and ignore the option if not recognized
7336 # So say no if there are warnings
7337 if test -s conftest.err; then
7338 # Append any errors to the config.log.
7339 cat conftest.err 1>&5
7340 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7342 if diff conftest.exp conftest.er2 >/dev/null; then
7343 lt_cv_prog_compiler_static_works=yes
7344 fi
7345 else
7346 lt_cv_prog_compiler_static_works=yes
7347 fi
7348 fi
7349 $rm -r conftest*
7350 LDFLAGS="$save_LDFLAGS"
7351
7352fi
7353{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7354$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7355
7356if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7357 :
7358else
7359 lt_prog_compiler_static=
7360fi
7361
7362
7363{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7364$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7365if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7367else
7368 lt_cv_prog_compiler_c_o=no
7369 $rm -r conftest 2>/dev/null
7370 mkdir conftest
7371 cd conftest
7372 mkdir out
7373 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374
7375 lt_compiler_flag="-o out/conftest2.$ac_objext"
7376 # Insert the option either (1) after the last *FLAGS variable, or
7377 # (2) before a word containing "conftest.", or (3) at the end.
7378 # Note that $ac_compile itself does not contain backslashes and begins
7379 # with a dollar sign (not a hyphen), so the echo should work correctly.
7380 lt_compile=`echo "$ac_compile" | $SED \
7381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383 -e 's:$: $lt_compiler_flag:'`
7384 (eval echo "\"\$as_me:7384: $lt_compile\"" >&5)
7385 (eval "$lt_compile" 2>out/conftest.err)
7386 ac_status=$?
7387 cat out/conftest.err >&5
7388 echo "$as_me:7388: \$? = $ac_status" >&5
7389 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7390 then
7391 # The compiler can only warn and ignore the option if not recognized
7392 # So say no if there are warnings
7393 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7394 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7395 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7396 lt_cv_prog_compiler_c_o=yes
7397 fi
7398 fi
7399 chmod u+w . 2>&5
7400 $rm conftest*
7401 # SGI C++ compiler will create directory out/ii_files/ for
7402 # template instantiation
7403 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7404 $rm out/* && rmdir out
7405 cd ..
7406 rmdir conftest
7407 $rm conftest*
7408
7409fi
7410{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7411$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7412
7413
7414hard_links="nottested"
7415if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7416 # do not overwrite the value of need_locks provided by the user
7417 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7418$as_echo_n "checking if we can lock with hard links... " >&6; }
7419 hard_links=yes
7420 $rm conftest*
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422 touch conftest.a
7423 ln conftest.a conftest.b 2>&5 || hard_links=no
7424 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7425 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7426$as_echo "$hard_links" >&6; }
7427 if test "$hard_links" = no; then
7428 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7429$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7430 need_locks=warn
7431 fi
7432else
7433 need_locks=no
7434fi
7435
7436{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7437$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7438
7439 runpath_var=
7440 allow_undefined_flag=
7441 enable_shared_with_static_runtimes=no
7442 archive_cmds=
7443 archive_expsym_cmds=
7444 old_archive_From_new_cmds=
7445 old_archive_from_expsyms_cmds=
7446 export_dynamic_flag_spec=
7447 whole_archive_flag_spec=
7448 thread_safe_flag_spec=
7449 hardcode_libdir_flag_spec=
7450 hardcode_libdir_flag_spec_ld=
7451 hardcode_libdir_separator=
7452 hardcode_direct=no
7453 hardcode_minus_L=no
7454 hardcode_shlibpath_var=unsupported
7455 link_all_deplibs=unknown
7456 hardcode_automatic=no
7457 module_cmds=
7458 module_expsym_cmds=
7459 always_export_symbols=no
7460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7461 # include_expsyms should be a list of space-separated symbols to be *always*
7462 # included in the symbol list
7463 include_expsyms=
7464 # exclude_expsyms can be an extended regexp of symbols to exclude
7465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7467 # as well as any symbol that contains `d'.
7468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7470 # platforms (ab)use it in PIC code, but their linkers get confused if
7471 # the symbol is explicitly referenced. Since portable code cannot
7472 # rely on this symbol name, it's probably fine to never include it in
7473 # preloaded symbol tables.
7474 # Exclude shared library initialization/finalization symbols.
7475 extract_expsyms_cmds=
7476 # Just being paranoid about ensuring that cc_basename is set.
7477 for cc_temp in $compiler""; do
7478 case $cc_temp in
7479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7481 \-*) ;;
7482 *) break;;
7483 esac
7484done
7485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7486
7487 case $host_os in
7488 cygwin* | mingw* | pw32*)
7489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7490 # When not using gcc, we currently assume that we are using
7491 # Microsoft Visual C++.
7492 if test "$GCC" != yes; then
7493 with_gnu_ld=no
7494 fi
7495 ;;
7496 interix*)
7497 # we just hope/assume this is gcc and not c89 (= MSVC++)
7498 with_gnu_ld=yes
7499 ;;
7500 openbsd*)
7501 with_gnu_ld=no
7502 ;;
7503 esac
7504
7505 ld_shlibs=yes
7506 if test "$with_gnu_ld" = yes; then
7507 # If archive_cmds runs LD, not CC, wlarc should be empty
7508 wlarc='${wl}'
7509
7510 # Set some defaults for GNU ld with shared library support. These
7511 # are reset later if shared libraries are not supported. Putting them
7512 # here allows them to be overridden if necessary.
7513 runpath_var=LD_RUN_PATH
7514 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7515 export_dynamic_flag_spec='${wl}--export-dynamic'
7516 # ancient GNU ld didn't support --whole-archive et. al.
7517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7518 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7519 else
7520 whole_archive_flag_spec=
7521 fi
7522 supports_anon_versioning=no
7523 case `$LD -v 2>/dev/null` in
7524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7527 *\ 2.11.*) ;; # other 2.11 versions
7528 *) supports_anon_versioning=yes ;;
7529 esac
7530
7531 # See if GNU ld supports shared libraries.
7532 case $host_os in
7533 aix[3-9]*)
7534 # On AIX/PPC, the GNU linker is very broken
7535 if test "$host_cpu" != ia64; then
7536 ld_shlibs=no
7537 cat <<EOF 1>&2
7538
7539*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7540*** to be unable to reliably create shared libraries on AIX.
7541*** Therefore, libtool is disabling shared libraries support. If you
7542*** really care for shared libraries, you may want to modify your PATH
7543*** so that a non-GNU linker is found, and then restart.
7544
7545EOF
7546 fi
7547 ;;
7548
7549 amigaos*)
7550 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)'
7551 hardcode_libdir_flag_spec='-L$libdir'
7552 hardcode_minus_L=yes
7553
7554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7555 # that the semantics of dynamic libraries on AmigaOS, at least up
7556 # to version 4, is to share data among multiple programs linked
7557 # with the same dynamic library. Since this doesn't match the
7558 # behavior of shared libraries on other platforms, we can't use
7559 # them.
7560 ld_shlibs=no
7561 ;;
7562
7563 beos*)
7564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7565 allow_undefined_flag=unsupported
7566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7567 # support --undefined. This deserves some investigation. FIXME
7568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7569 else
7570 ld_shlibs=no
7571 fi
7572 ;;
7573
7574 cygwin* | mingw* | pw32*)
7575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7576 # as there is no search path for DLLs.
7577 hardcode_libdir_flag_spec='-L$libdir'
7578 allow_undefined_flag=unsupported
7579 always_export_symbols=no
7580 enable_shared_with_static_runtimes=yes
7581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7582
7583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7585 # If the export-symbols file already is a .def file (1st line
7586 # is EXPORTS), use it as is; otherwise, prepend...
7587 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7588 cp $export_symbols $output_objdir/$soname.def;
7589 else
7590 echo EXPORTS > $output_objdir/$soname.def;
7591 cat $export_symbols >> $output_objdir/$soname.def;
7592 fi~
7593 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7594 else
7595 ld_shlibs=no
7596 fi
7597 ;;
7598
7599 interix[3-9]*)
7600 hardcode_direct=no
7601 hardcode_shlibpath_var=no
7602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 export_dynamic_flag_spec='${wl}-E'
7604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7605 # Instead, shared libraries are loaded at an image base (0x10000000 by
7606 # default) and relocated if they conflict, which is a slow very memory
7607 # consuming and fragmenting process. To avoid this, we pick a random,
7608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7611 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'
7612 ;;
7613
7614 gnu* | linux* | k*bsd*-gnu)
7615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7616 tmp_addflag=
7617 case $cc_basename,$host_cpu in
7618 pgcc*) # Portland Group C compiler
7619 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'
7620 tmp_addflag=' $pic_flag'
7621 ;;
7622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7623 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'
7624 tmp_addflag=' $pic_flag -Mnomain' ;;
7625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7626 tmp_addflag=' -i_dynamic' ;;
7627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7628 tmp_addflag=' -i_dynamic -nofor_main' ;;
7629 ifc* | ifort*) # Intel Fortran compiler
7630 tmp_addflag=' -nofor_main' ;;
7631 esac
7632 case `$CC -V 2>&1 | sed 5q` in
7633 *Sun\ C*) # Sun C 5.9
7634 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'
7635 tmp_sharedflag='-G' ;;
7636 *Sun\ F*) # Sun Fortran 8.3
7637 tmp_sharedflag='-G' ;;
7638 *)
7639 tmp_sharedflag='-shared' ;;
7640 esac
7641 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642
7643 if test $supports_anon_versioning = yes; then
7644 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7645 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7646 $echo "local: *; };" >> $output_objdir/$libname.ver~
7647 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7648 fi
7649 else
7650 ld_shlibs=no
7651 fi
7652 ;;
7653
7654 netbsd*)
7655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7656 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7657 wlarc=
7658 else
7659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7661 fi
7662 ;;
7663
7664 solaris*)
7665 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7666 ld_shlibs=no
7667 cat <<EOF 1>&2
7668
7669*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7670*** create shared libraries on Solaris systems. Therefore, libtool
7671*** is disabling shared libraries support. We urge you to upgrade GNU
7672*** binutils to release 2.9.1 or newer. Another option is to modify
7673*** your PATH or compiler configuration so that the native linker is
7674*** used, and then restart.
7675
7676EOF
7677 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7680 else
7681 ld_shlibs=no
7682 fi
7683 ;;
7684
7685 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7686 case `$LD -v 2>&1` in
7687 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7688 ld_shlibs=no
7689 cat <<_LT_EOF 1>&2
7690
7691*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7692*** reliably create shared libraries on SCO systems. Therefore, libtool
7693*** is disabling shared libraries support. We urge you to upgrade GNU
7694*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7695*** your PATH or compiler configuration so that the native linker is
7696*** used, and then restart.
7697
7698_LT_EOF
7699 ;;
7700 *)
7701 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7705 else
7706 ld_shlibs=no
7707 fi
7708 ;;
7709 esac
7710 ;;
7711
7712 sunos4*)
7713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7714 wlarc=
7715 hardcode_direct=yes
7716 hardcode_shlibpath_var=no
7717 ;;
7718
7719 *)
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7723 else
7724 ld_shlibs=no
7725 fi
7726 ;;
7727 esac
7728
7729 if test "$ld_shlibs" = no; then
7730 runpath_var=
7731 hardcode_libdir_flag_spec=
7732 export_dynamic_flag_spec=
7733 whole_archive_flag_spec=
7734 fi
7735 else
7736 # PORTME fill in a description of your system's linker (not GNU ld)
7737 case $host_os in
7738 aix3*)
7739 allow_undefined_flag=unsupported
7740 always_export_symbols=yes
7741 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'
7742 # Note: this linker hardcodes the directories in LIBPATH if there
7743 # are no directories specified by -L.
7744 hardcode_minus_L=yes
7745 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7746 # Neither direct hardcoding nor static linking is supported with a
7747 # broken collect2.
7748 hardcode_direct=unsupported
7749 fi
7750 ;;
7751
7752 aix[4-9]*)
7753 if test "$host_cpu" = ia64; then
7754 # On IA64, the linker does run time linking by default, so we don't
7755 # have to do anything special.
7756 aix_use_runtimelinking=no
7757 exp_sym_flag='-Bexport'
7758 no_entry_flag=""
7759 else
7760 # If we're using GNU nm, then we don't want the "-C" option.
7761 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7762 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7763 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'
7764 else
7765 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'
7766 fi
7767 aix_use_runtimelinking=no
7768
7769 # Test if we are trying to use run time linking or normal
7770 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7771 # need to do runtime linking.
7772 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7773 for ld_flag in $LDFLAGS; do
7774 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7775 aix_use_runtimelinking=yes
7776 break
7777 fi
7778 done
7779 ;;
7780 esac
7781
7782 exp_sym_flag='-bexport'
7783 no_entry_flag='-bnoentry'
7784 fi
7785
7786 # When large executables or shared objects are built, AIX ld can
7787 # have problems creating the table of contents. If linking a library
7788 # or program results in "error TOC overflow" add -mminimal-toc to
7789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7791
7792 archive_cmds=''
7793 hardcode_direct=yes
7794 hardcode_libdir_separator=':'
7795 link_all_deplibs=yes
7796
7797 if test "$GCC" = yes; then
7798 case $host_os in aix4.[012]|aix4.[012].*)
7799 # We only want to do this on AIX 4.2 and lower, the check
7800 # below for broken collect2 doesn't work under 4.3+
7801 collect2name=`${CC} -print-prog-name=collect2`
7802 if test -f "$collect2name" && \
7803 strings "$collect2name" | grep resolve_lib_name >/dev/null
7804 then
7805 # We have reworked collect2
7806 :
7807 else
7808 # We have old collect2
7809 hardcode_direct=unsupported
7810 # It fails to find uninstalled libraries when the uninstalled
7811 # path is not listed in the libpath. Setting hardcode_minus_L
7812 # to unsupported forces relinking
7813 hardcode_minus_L=yes
7814 hardcode_libdir_flag_spec='-L$libdir'
7815 hardcode_libdir_separator=
7816 fi
7817 ;;
7818 esac
7819 shared_flag='-shared'
7820 if test "$aix_use_runtimelinking" = yes; then
7821 shared_flag="$shared_flag "'${wl}-G'
7822 fi
7823 else
7824 # not using gcc
7825 if test "$host_cpu" = ia64; then
7826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7827 # chokes on -Wl,-G. The following line is correct:
7828 shared_flag='-G'
7829 else
7830 if test "$aix_use_runtimelinking" = yes; then
7831 shared_flag='${wl}-G'
7832 else
7833 shared_flag='${wl}-bM:SRE'
7834 fi
7835 fi
7836 fi
7837
7838 # It seems that -bexpall does not export symbols beginning with
7839 # underscore (_), so it is better to generate a list of symbols to export.
7840 always_export_symbols=yes
7841 if test "$aix_use_runtimelinking" = yes; then
7842 # Warning - without using the other runtime loading flags (-brtl),
7843 # -berok will link without error, but may produce a broken library.
7844 allow_undefined_flag='-berok'
7845 # Determine the default libpath from the value encoded in an empty executable.
7846 cat >conftest.$ac_ext <<_ACEOF
7847/* confdefs.h. */
7848_ACEOF
7849cat confdefs.h >>conftest.$ac_ext
7850cat >>conftest.$ac_ext <<_ACEOF
7851/* end confdefs.h. */
7852
7853int
7854main ()
7855{
7856
7857 ;
7858 return 0;
7859}
7860_ACEOF
7861rm -f conftest.$ac_objext conftest$ac_exeext
7862if { (ac_try="$ac_link"
7863case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7866esac
7867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7868$as_echo "$ac_try_echo") >&5
7869 (eval "$ac_link") 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext && {
7879 test "$cross_compiling" = yes ||
7880 $as_test_x conftest$ac_exeext
7881 }; then
7882
7883lt_aix_libpath_sed='
7884 /Import File Strings/,/^$/ {
7885 /^0/ {
7886 s/^0 *\(.*\)$/\1/
7887 p
7888 }
7889 }'
7890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7891# Check for a 64-bit object if we didn't find anything.
7892if test -z "$aix_libpath"; then
7893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7894fi
7895else
7896 $as_echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899
7900fi
7901
7902rm -rf conftest.dSYM
7903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7906
7907 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7908 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"
7909 else
7910 if test "$host_cpu" = ia64; then
7911 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7912 allow_undefined_flag="-z nodefs"
7913 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"
7914 else
7915 # Determine the default libpath from the value encoded in an empty executable.
7916 cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922
7923int
7924main ()
7925{
7926
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext conftest$ac_exeext
7932if { (ac_try="$ac_link"
7933case "(($ac_try" in
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7936esac
7937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938$as_echo "$ac_try_echo") >&5
7939 (eval "$ac_link") 2>conftest.er1
7940 ac_status=$?
7941 grep -v '^ *+' conftest.er1 >conftest.err
7942 rm -f conftest.er1
7943 cat conftest.err >&5
7944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_c_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest$ac_exeext && {
7949 test "$cross_compiling" = yes ||
7950 $as_test_x conftest$ac_exeext
7951 }; then
7952
7953lt_aix_libpath_sed='
7954 /Import File Strings/,/^$/ {
7955 /^0/ {
7956 s/^0 *\(.*\)$/\1/
7957 p
7958 }
7959 }'
7960aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7961# Check for a 64-bit object if we didn't find anything.
7962if test -z "$aix_libpath"; then
7963 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7964fi
7965else
7966 $as_echo "$as_me: failed program was:" >&5
7967sed 's/^/| /' conftest.$ac_ext >&5
7968
7969
7970fi
7971
7972rm -rf conftest.dSYM
7973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7974 conftest$ac_exeext conftest.$ac_ext
7975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7976
7977 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7978 # Warning - without using the other run time loading flags,
7979 # -berok will link without error, but may produce a broken library.
7980 no_undefined_flag=' ${wl}-bernotok'
7981 allow_undefined_flag=' ${wl}-berok'
7982 # Exported symbols can be pulled into shared objects from archives
7983 whole_archive_flag_spec='$convenience'
7984 archive_cmds_need_lc=yes
7985 # This is similar to how AIX traditionally builds its shared libraries.
7986 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'
7987 fi
7988 fi
7989 ;;
7990
7991 amigaos*)
7992 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)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 # see comment about different semantics on the GNU ld section
7996 ld_shlibs=no
7997 ;;
7998
7999 bsdi[45]*)
8000 export_dynamic_flag_spec=-rdynamic
8001 ;;
8002
8003 cygwin* | mingw* | pw32*)
8004 # When not using gcc, we currently assume that we are using
8005 # Microsoft Visual C++.
8006 # hardcode_libdir_flag_spec is actually meaningless, as there is
8007 # no search path for DLLs.
8008 hardcode_libdir_flag_spec=' '
8009 allow_undefined_flag=unsupported
8010 # Tell ltmain to make .lib files, not .a files.
8011 libext=lib
8012 # Tell ltmain to make .dll files, not .so files.
8013 shrext_cmds=".dll"
8014 # FIXME: Setting linknames here is a bad hack.
8015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8016 # The linker will automatically build a .lib file if we build a DLL.
8017 old_archive_From_new_cmds='true'
8018 # FIXME: Should let the user specify the lib program.
8019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8020 fix_srcfile_path='`cygpath -w "$srcfile"`'
8021 enable_shared_with_static_runtimes=yes
8022 ;;
8023
8024 darwin* | rhapsody*)
8025 case $host_os in
8026 rhapsody* | darwin1.[012])
8027 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8028 ;;
8029 *) # Darwin 1.3 on
8030 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8031 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8032 else
8033 case ${MACOSX_DEPLOYMENT_TARGET} in
8034 10.[012])
8035 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8036 ;;
8037 10.*)
8038 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8039 ;;
8040 esac
8041 fi
8042 ;;
8043 esac
8044 archive_cmds_need_lc=no
8045 hardcode_direct=no
8046 hardcode_automatic=yes
8047 hardcode_shlibpath_var=unsupported
8048 whole_archive_flag_spec=''
8049 link_all_deplibs=yes
8050 if test "$GCC" = yes ; then
8051 output_verbose_link_cmd='echo'
8052 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8053 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8054 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}"
8055 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}"
8056 else
8057 case $cc_basename in
8058 xlc*)
8059 output_verbose_link_cmd='echo'
8060 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8061 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8062 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8063 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}'
8064 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}'
8065 ;;
8066 *)
8067 ld_shlibs=no
8068 ;;
8069 esac
8070 fi
8071 ;;
8072
8073 dgux*)
8074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_libdir_flag_spec='-L$libdir'
8076 hardcode_shlibpath_var=no
8077 ;;
8078
8079 freebsd1*)
8080 ld_shlibs=no
8081 ;;
8082
8083 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8084 # support. Future versions do this automatically, but an explicit c++rt0.o
8085 # does not break anything, and helps significantly (at the cost of a little
8086 # extra space).
8087 freebsd2.2*)
8088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8089 hardcode_libdir_flag_spec='-R$libdir'
8090 hardcode_direct=yes
8091 hardcode_shlibpath_var=no
8092 ;;
8093
8094 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8095 freebsd2*)
8096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8097 hardcode_direct=yes
8098 hardcode_minus_L=yes
8099 hardcode_shlibpath_var=no
8100 ;;
8101
8102 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8103 freebsd* | dragonfly*)
8104 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8105 hardcode_libdir_flag_spec='-R$libdir'
8106 hardcode_direct=yes
8107 hardcode_shlibpath_var=no
8108 ;;
8109
8110 hpux9*)
8111 if test "$GCC" = yes; then
8112 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'
8113 else
8114 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'
8115 fi
8116 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8117 hardcode_libdir_separator=:
8118 hardcode_direct=yes
8119
8120 # hardcode_minus_L: Not really in the search PATH,
8121 # but as the default location of the library.
8122 hardcode_minus_L=yes
8123 export_dynamic_flag_spec='${wl}-E'
8124 ;;
8125
8126 hpux10*)
8127 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8129 else
8130 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8131 fi
8132 if test "$with_gnu_ld" = no; then
8133 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134 hardcode_libdir_separator=:
8135
8136 hardcode_direct=yes
8137 export_dynamic_flag_spec='${wl}-E'
8138
8139 # hardcode_minus_L: Not really in the search PATH,
8140 # but as the default location of the library.
8141 hardcode_minus_L=yes
8142 fi
8143 ;;
8144
8145 hpux11*)
8146 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8147 case $host_cpu in
8148 hppa*64*)
8149 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 ;;
8151 ia64*)
8152 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8153 ;;
8154 *)
8155 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8156 ;;
8157 esac
8158 else
8159 case $host_cpu in
8160 hppa*64*)
8161 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 ;;
8163 ia64*)
8164 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8165 ;;
8166 *)
8167 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8168 ;;
8169 esac
8170 fi
8171 if test "$with_gnu_ld" = no; then
8172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173 hardcode_libdir_separator=:
8174
8175 case $host_cpu in
8176 hppa*64*|ia64*)
8177 hardcode_libdir_flag_spec_ld='+b $libdir'
8178 hardcode_direct=no
8179 hardcode_shlibpath_var=no
8180 ;;
8181 *)
8182 hardcode_direct=yes
8183 export_dynamic_flag_spec='${wl}-E'
8184
8185 # hardcode_minus_L: Not really in the search PATH,
8186 # but as the default location of the library.
8187 hardcode_minus_L=yes
8188 ;;
8189 esac
8190 fi
8191 ;;
8192
8193 irix5* | irix6* | nonstopux*)
8194 if test "$GCC" = yes; then
8195 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'
8196 else
8197 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'
8198 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8199 fi
8200 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8201 hardcode_libdir_separator=:
8202 link_all_deplibs=yes
8203 ;;
8204
8205 netbsd*)
8206 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8208 else
8209 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8210 fi
8211 hardcode_libdir_flag_spec='-R$libdir'
8212 hardcode_direct=yes
8213 hardcode_shlibpath_var=no
8214 ;;
8215
8216 newsos6)
8217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8218 hardcode_direct=yes
8219 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8220 hardcode_libdir_separator=:
8221 hardcode_shlibpath_var=no
8222 ;;
8223
8224 openbsd*)
8225 if test -f /usr/libexec/ld.so; then
8226 hardcode_direct=yes
8227 hardcode_shlibpath_var=no
8228 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8231 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8232 export_dynamic_flag_spec='${wl}-E'
8233 else
8234 case $host_os in
8235 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8237 hardcode_libdir_flag_spec='-R$libdir'
8238 ;;
8239 *)
8240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8241 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8242 ;;
8243 esac
8244 fi
8245 else
8246 ld_shlibs=no
8247 fi
8248 ;;
8249
8250 os2*)
8251 hardcode_libdir_flag_spec='-L$libdir'
8252 hardcode_minus_L=yes
8253 allow_undefined_flag=unsupported
8254 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'
8255 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8256 ;;
8257
8258 osf3*)
8259 if test "$GCC" = yes; then
8260 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8261 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'
8262 else
8263 allow_undefined_flag=' -expect_unresolved \*'
8264 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'
8265 fi
8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 ;;
8269
8270 osf4* | osf5*) # as osf3* with the addition of -msym flag
8271 if test "$GCC" = yes; then
8272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8273 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'
8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275 else
8276 allow_undefined_flag=' -expect_unresolved \*'
8277 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'
8278 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8279 $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'
8280
8281 # Both c and cxx compiler support -rpath directly
8282 hardcode_libdir_flag_spec='-rpath $libdir'
8283 fi
8284 hardcode_libdir_separator=:
8285 ;;
8286
8287 solaris*)
8288 no_undefined_flag=' -z text'
8289 if test "$GCC" = yes; then
8290 wlarc='${wl}'
8291 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8292 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8293 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8294 else
8295 wlarc=''
8296 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8297 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8298 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8299 fi
8300 hardcode_libdir_flag_spec='-R$libdir'
8301 hardcode_shlibpath_var=no
8302 case $host_os in
8303 solaris2.[0-5] | solaris2.[0-5].*) ;;
8304 *)
8305 # The compiler driver will combine and reorder linker options,
8306 # but understands `-z linker_flag'. GCC discards it without `$wl',
8307 # but is careful enough not to reorder.
8308 # Supported since Solaris 2.6 (maybe 2.5.1?)
8309 if test "$GCC" = yes; then
8310 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8311 else
8312 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8313 fi
8314 ;;
8315 esac
8316 link_all_deplibs=yes
8317 ;;
8318
8319 sunos4*)
8320 if test "x$host_vendor" = xsequent; then
8321 # Use $CC to link under sequent, because it throws in some extra .o
8322 # files that make .init and .fini sections work.
8323 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8324 else
8325 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8326 fi
8327 hardcode_libdir_flag_spec='-L$libdir'
8328 hardcode_direct=yes
8329 hardcode_minus_L=yes
8330 hardcode_shlibpath_var=no
8331 ;;
8332
8333 sysv4)
8334 case $host_vendor in
8335 sni)
8336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_direct=yes # is this really true???
8338 ;;
8339 siemens)
8340 ## LD is ld it makes a PLAMLIB
8341 ## CC just makes a GrossModule.
8342 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8343 reload_cmds='$CC -r -o $output$reload_objs'
8344 hardcode_direct=no
8345 ;;
8346 motorola)
8347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8349 ;;
8350 esac
8351 runpath_var='LD_RUN_PATH'
8352 hardcode_shlibpath_var=no
8353 ;;
8354
8355 sysv4.3*)
8356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8357 hardcode_shlibpath_var=no
8358 export_dynamic_flag_spec='-Bexport'
8359 ;;
8360
8361 sysv4*MP*)
8362 if test -d /usr/nec; then
8363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_shlibpath_var=no
8365 runpath_var=LD_RUN_PATH
8366 hardcode_runpath_var=yes
8367 ld_shlibs=yes
8368 fi
8369 ;;
8370
8371 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8372 no_undefined_flag='${wl}-z,text'
8373 archive_cmds_need_lc=no
8374 hardcode_shlibpath_var=no
8375 runpath_var='LD_RUN_PATH'
8376
8377 if test "$GCC" = yes; then
8378 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8379 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8380 else
8381 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8382 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8383 fi
8384 ;;
8385
8386 sysv5* | sco3.2v5* | sco5v6*)
8387 # Note: We can NOT use -z defs as we might desire, because we do not
8388 # link with -lc, and that would cause any symbols used from libc to
8389 # always be unresolved, which means just about no library would
8390 # ever link correctly. If we're not using GNU ld we use -z text
8391 # though, which does catch some bad symbols but isn't as heavy-handed
8392 # as -z defs.
8393 no_undefined_flag='${wl}-z,text'
8394 allow_undefined_flag='${wl}-z,nodefs'
8395 archive_cmds_need_lc=no
8396 hardcode_shlibpath_var=no
8397 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8398 hardcode_libdir_separator=':'
8399 link_all_deplibs=yes
8400 export_dynamic_flag_spec='${wl}-Bexport'
8401 runpath_var='LD_RUN_PATH'
8402
8403 if test "$GCC" = yes; then
8404 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8405 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 else
8407 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8409 fi
8410 ;;
8411
8412 uts4*)
8413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_libdir_flag_spec='-L$libdir'
8415 hardcode_shlibpath_var=no
8416 ;;
8417
8418 *)
8419 ld_shlibs=no
8420 ;;
8421 esac
8422 fi
8423
8424{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8425$as_echo "$ld_shlibs" >&6; }
8426test "$ld_shlibs" = no && can_build_shared=no
8427
8428#
8429# Do we need to explicitly link libc?
8430#
8431case "x$archive_cmds_need_lc" in
8432x|xyes)
8433 # Assume -lc should be added
8434 archive_cmds_need_lc=yes
8435
8436 if test "$enable_shared" = yes && test "$GCC" = yes; then
8437 case $archive_cmds in
8438 *'~'*)
8439 # FIXME: we may have to deal with multi-command sequences.
8440 ;;
8441 '$CC '*)
8442 # Test whether the compiler implicitly links with -lc since on some
8443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8444 # to ld, don't add -lc before -lgcc.
8445 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8446$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8447 $rm conftest*
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>&5
8452 ac_status=$?
8453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } 2>conftest.err; then
8455 soname=conftest
8456 lib=conftest
8457 libobjs=conftest.$ac_objext
8458 deplibs=
8459 wl=$lt_prog_compiler_wl
8460 pic_flag=$lt_prog_compiler_pic
8461 compiler_flags=-v
8462 linker_flags=-v
8463 verstring=
8464 output_objdir=.
8465 libname=conftest
8466 lt_save_allow_undefined_flag=$allow_undefined_flag
8467 allow_undefined_flag=
8468 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8469 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8470 ac_status=$?
8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }
8473 then
8474 archive_cmds_need_lc=no
8475 else
8476 archive_cmds_need_lc=yes
8477 fi
8478 allow_undefined_flag=$lt_save_allow_undefined_flag
8479 else
8480 cat conftest.err 1>&5
8481 fi
8482 $rm conftest*
8483 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8484$as_echo "$archive_cmds_need_lc" >&6; }
8485 ;;
8486 esac
8487 fi
8488 ;;
8489esac
8490
8491{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8492$as_echo_n "checking dynamic linker characteristics... " >&6; }
8493library_names_spec=
8494libname_spec='lib$name'
8495soname_spec=
8496shrext_cmds=".so"
8497postinstall_cmds=
8498postuninstall_cmds=
8499finish_cmds=
8500finish_eval=
8501shlibpath_var=
8502shlibpath_overrides_runpath=unknown
8503version_type=none
8504dynamic_linker="$host_os ld.so"
8505sys_lib_dlsearch_path_spec="/lib /usr/lib"
8506
8507if test "$GCC" = yes; then
8508 case $host_os in
8509 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8510 *) lt_awk_arg="/^libraries:/" ;;
8511 esac
8512 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8513 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8514 # if the path contains ";" then we assume it to be the separator
8515 # otherwise default to the standard path separator (i.e. ":") - it is
8516 # assumed that no part of a normal pathname contains ";" but that should
8517 # okay in the real world where ";" in dirpaths is itself problematic.
8518 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8519 else
8520 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8521 fi
8522 # Ok, now we have the path, separated by spaces, we can step through it
8523 # and add multilib dir if necessary.
8524 lt_tmp_lt_search_path_spec=
8525 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8526 for lt_sys_path in $lt_search_path_spec; do
8527 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8529 else
8530 test -d "$lt_sys_path" && \
8531 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8532 fi
8533 done
8534 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8535BEGIN {RS=" "; FS="/|\n";} {
8536 lt_foo="";
8537 lt_count=0;
8538 for (lt_i = NF; lt_i > 0; lt_i--) {
8539 if ($lt_i != "" && $lt_i != ".") {
8540 if ($lt_i == "..") {
8541 lt_count++;
8542 } else {
8543 if (lt_count == 0) {
8544 lt_foo="/" $lt_i lt_foo;
8545 } else {
8546 lt_count--;
8547 }
8548 }
8549 }
8550 }
8551 if (lt_foo != "") { lt_freq[lt_foo]++; }
8552 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8553}'`
8554 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8555else
8556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8557fi
8558need_lib_prefix=unknown
8559hardcode_into_libs=no
8560
8561# when you set need_version to no, make sure it does not cause -set_version
8562# flags to be left without arguments
8563need_version=unknown
8564
8565case $host_os in
8566aix3*)
8567 version_type=linux
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8569 shlibpath_var=LIBPATH
8570
8571 # AIX 3 has no versioning support, so we append a major version to the name.
8572 soname_spec='${libname}${release}${shared_ext}$major'
8573 ;;
8574
8575aix[4-9]*)
8576 version_type=linux
8577 need_lib_prefix=no
8578 need_version=no
8579 hardcode_into_libs=yes
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 supports IA64
8582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8583 shlibpath_var=LD_LIBRARY_PATH
8584 else
8585 # With GCC up to 2.95.x, collect2 would create an import file
8586 # for dependence libraries. The import file would start with
8587 # the line `#! .'. This would cause the generated library to
8588 # depend on `.', always an invalid library. This was fixed in
8589 # development snapshots of GCC prior to 3.0.
8590 case $host_os in
8591 aix4 | aix4.[01] | aix4.[01].*)
8592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8593 echo ' yes '
8594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8595 :
8596 else
8597 can_build_shared=no
8598 fi
8599 ;;
8600 esac
8601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8602 # soname into executable. Probably we can add versioning support to
8603 # collect2, so additional links can be useful in future.
8604 if test "$aix_use_runtimelinking" = yes; then
8605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8606 # instead of lib<name>.a to let people know that these are not
8607 # typical AIX shared libraries.
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8609 else
8610 # We preserve .a as extension for shared libraries through AIX4.2
8611 # and later when we are not doing run time linking.
8612 library_names_spec='${libname}${release}.a $libname.a'
8613 soname_spec='${libname}${release}${shared_ext}$major'
8614 fi
8615 shlibpath_var=LIBPATH
8616 fi
8617 ;;
8618
8619amigaos*)
8620 library_names_spec='$libname.ixlibrary $libname.a'
8621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8622 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'
8623 ;;
8624
8625beos*)
8626 library_names_spec='${libname}${shared_ext}'
8627 dynamic_linker="$host_os ld.so"
8628 shlibpath_var=LIBRARY_PATH
8629 ;;
8630
8631bsdi[45]*)
8632 version_type=linux
8633 need_version=no
8634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8635 soname_spec='${libname}${release}${shared_ext}$major'
8636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8640 # the default ld.so.conf also contains /usr/contrib/lib and
8641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8642 # libtool to hard-code these into programs
8643 ;;
8644
8645cygwin* | mingw* | pw32*)
8646 version_type=windows
8647 shrext_cmds=".dll"
8648 need_version=no
8649 need_lib_prefix=no
8650
8651 case $GCC,$host_os in
8652 yes,cygwin* | yes,mingw* | yes,pw32*)
8653 library_names_spec='$libname.dll.a'
8654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8655 postinstall_cmds='base_file=`basename \${file}`~
8656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8657 dldir=$destdir/`dirname \$dlpath`~
8658 test -d \$dldir || mkdir -p \$dldir~
8659 $install_prog $dir/$dlname \$dldir/$dlname~
8660 chmod a+x \$dldir/$dlname'
8661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8662 dlpath=$dir/\$dldll~
8663 $rm \$dlpath'
8664 shlibpath_overrides_runpath=yes
8665
8666 case $host_os in
8667 cygwin*)
8668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8671 ;;
8672 mingw*)
8673 # MinGW DLLs use traditional 'lib' prefix
8674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8677 # It is most probably a Windows format PATH printed by
8678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8679 # path with ; separators, and with drive letters. We can handle the
8680 # drive letters (cygwin fileutils understands them), so leave them,
8681 # especially as we might pass files found there to a mingw objdump,
8682 # which wouldn't understand a cygwinified path. Ahh.
8683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8684 else
8685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8686 fi
8687 ;;
8688 pw32*)
8689 # pw32 DLLs use 'pw' prefix rather than 'lib'
8690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8691 ;;
8692 esac
8693 ;;
8694
8695 *)
8696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8697 ;;
8698 esac
8699 dynamic_linker='Win32 ld.exe'
8700 # FIXME: first we should search . and the directory the executable is in
8701 shlibpath_var=PATH
8702 ;;
8703
8704darwin* | rhapsody*)
8705 dynamic_linker="$host_os dyld"
8706 version_type=darwin
8707 need_lib_prefix=no
8708 need_version=no
8709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8710 soname_spec='${libname}${release}${major}$shared_ext'
8711 shlibpath_overrides_runpath=yes
8712 shlibpath_var=DYLD_LIBRARY_PATH
8713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8714
8715 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8716 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8717 ;;
8718
8719dgux*)
8720 version_type=linux
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8724 soname_spec='${libname}${release}${shared_ext}$major'
8725 shlibpath_var=LD_LIBRARY_PATH
8726 ;;
8727
8728freebsd1*)
8729 dynamic_linker=no
8730 ;;
8731
8732freebsd* | dragonfly*)
8733 # DragonFly does not have aout. When/if they implement a new
8734 # versioning mechanism, adjust this.
8735 if test -x /usr/bin/objformat; then
8736 objformat=`/usr/bin/objformat`
8737 else
8738 case $host_os in
8739 freebsd[123]*) objformat=aout ;;
8740 *) objformat=elf ;;
8741 esac
8742 fi
8743 version_type=freebsd-$objformat
8744 case $version_type in
8745 freebsd-elf*)
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8747 need_version=no
8748 need_lib_prefix=no
8749 ;;
8750 freebsd-*)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8752 need_version=yes
8753 ;;
8754 esac
8755 shlibpath_var=LD_LIBRARY_PATH
8756 case $host_os in
8757 freebsd2*)
8758 shlibpath_overrides_runpath=yes
8759 ;;
8760 freebsd3.[01]* | freebsdelf3.[01]*)
8761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8763 ;;
8764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8766 shlibpath_overrides_runpath=no
8767 hardcode_into_libs=yes
8768 ;;
8769 *) # from 4.6 on, and DragonFly
8770 shlibpath_overrides_runpath=yes
8771 hardcode_into_libs=yes
8772 ;;
8773 esac
8774 ;;
8775
8776gnu*)
8777 version_type=linux
8778 need_lib_prefix=no
8779 need_version=no
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 hardcode_into_libs=yes
8784 ;;
8785
8786hpux9* | hpux10* | hpux11*)
8787 # Give a soname corresponding to the major version so that dld.sl refuses to
8788 # link against other versions.
8789 version_type=sunos
8790 need_lib_prefix=no
8791 need_version=no
8792 case $host_cpu in
8793 ia64*)
8794 shrext_cmds='.so'
8795 hardcode_into_libs=yes
8796 dynamic_linker="$host_os dld.so"
8797 shlibpath_var=LD_LIBRARY_PATH
8798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 if test "X$HPUX_IA64_MODE" = X32; then
8802 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8803 else
8804 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 fi
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 ;;
8808 hppa*64*)
8809 shrext_cmds='.sl'
8810 hardcode_into_libs=yes
8811 dynamic_linker="$host_os dld.sl"
8812 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8813 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8815 soname_spec='${libname}${release}${shared_ext}$major'
8816 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8817 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8818 ;;
8819 *)
8820 shrext_cmds='.sl'
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=SHLIB_PATH
8823 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 ;;
8827 esac
8828 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829 postinstall_cmds='chmod 555 $lib'
8830 ;;
8831
8832interix[3-9]*)
8833 version_type=linux
8834 need_lib_prefix=no
8835 need_version=no
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8839 shlibpath_var=LD_LIBRARY_PATH
8840 shlibpath_overrides_runpath=no
8841 hardcode_into_libs=yes
8842 ;;
8843
8844irix5* | irix6* | nonstopux*)
8845 case $host_os in
8846 nonstopux*) version_type=nonstopux ;;
8847 *)
8848 if test "$lt_cv_prog_gnu_ld" = yes; then
8849 version_type=linux
8850 else
8851 version_type=irix
8852 fi ;;
8853 esac
8854 need_lib_prefix=no
8855 need_version=no
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8858 case $host_os in
8859 irix5* | nonstopux*)
8860 libsuff= shlibsuff=
8861 ;;
8862 *)
8863 case $LD in # libtool.m4 will add one of these switches to LD
8864 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8865 libsuff= shlibsuff= libmagic=32-bit;;
8866 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8867 libsuff=32 shlibsuff=N32 libmagic=N32;;
8868 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8869 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8870 *) libsuff= shlibsuff= libmagic=never-match;;
8871 esac
8872 ;;
8873 esac
8874 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8875 shlibpath_overrides_runpath=no
8876 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8877 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8878 hardcode_into_libs=yes
8879 ;;
8880
8881# No shared lib support for Linux oldld, aout, or coff.
8882linux*oldld* | linux*aout* | linux*coff*)
8883 dynamic_linker=no
8884 ;;
8885
8886# This must be Linux ELF.
8887linux* | k*bsd*-gnu)
8888 version_type=linux
8889 need_lib_prefix=no
8890 need_version=no
8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8892 soname_spec='${libname}${release}${shared_ext}$major'
8893 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8894 shlibpath_var=LD_LIBRARY_PATH
8895 shlibpath_overrides_runpath=no
8896 # This implies no fast_install, which is unacceptable.
8897 # Some rework will be needed to allow for fast_install
8898 # before this can be enabled.
8899 hardcode_into_libs=yes
8900
8901 # Append ld.so.conf contents to the search path
8902 if test -f /etc/ld.so.conf; then
8903 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' ' '`
8904 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8905 fi
8906
8907 # We used to test for /lib/ld.so.1 and disable shared libraries on
8908 # powerpc, because MkLinux only supported shared libraries with the
8909 # GNU dynamic linker. Since this was broken with cross compilers,
8910 # most powerpc-linux boxes support dynamic linking these days and
8911 # people can always --disable-shared, the test was removed, and we
8912 # assume the GNU/Linux dynamic linker is in use.
8913 dynamic_linker='GNU/Linux ld.so'
8914 ;;
8915
8916netbsd*)
8917 version_type=sunos
8918 need_lib_prefix=no
8919 need_version=no
8920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8923 dynamic_linker='NetBSD (a.out) ld.so'
8924 else
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 dynamic_linker='NetBSD ld.elf_so'
8928 fi
8929 shlibpath_var=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath=yes
8931 hardcode_into_libs=yes
8932 ;;
8933
8934newsos6)
8935 version_type=linux
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=yes
8939 ;;
8940
8941nto-qnx*)
8942 version_type=linux
8943 need_lib_prefix=no
8944 need_version=no
8945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946 soname_spec='${libname}${release}${shared_ext}$major'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8949 ;;
8950
8951openbsd*)
8952 version_type=sunos
8953 sys_lib_dlsearch_path_spec="/usr/lib"
8954 need_lib_prefix=no
8955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8956 case $host_os in
8957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8958 *) need_version=no ;;
8959 esac
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964 case $host_os in
8965 openbsd2.[89] | openbsd2.[89].*)
8966 shlibpath_overrides_runpath=no
8967 ;;
8968 *)
8969 shlibpath_overrides_runpath=yes
8970 ;;
8971 esac
8972 else
8973 shlibpath_overrides_runpath=yes
8974 fi
8975 ;;
8976
8977os2*)
8978 libname_spec='$name'
8979 shrext_cmds=".dll"
8980 need_lib_prefix=no
8981 library_names_spec='$libname${shared_ext} $libname.a'
8982 dynamic_linker='OS/2 ld.exe'
8983 shlibpath_var=LIBPATH
8984 ;;
8985
8986osf3* | osf4* | osf5*)
8987 version_type=osf
8988 need_lib_prefix=no
8989 need_version=no
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8995 ;;
8996
8997rdos*)
8998 dynamic_linker=no
8999 ;;
9000
9001solaris*)
9002 version_type=linux
9003 need_lib_prefix=no
9004 need_version=no
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9010 # ldd complains unless libraries are executable
9011 postinstall_cmds='chmod +x $lib'
9012 ;;
9013
9014sunos4*)
9015 version_type=sunos
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 if test "$with_gnu_ld" = yes; then
9021 need_lib_prefix=no
9022 fi
9023 need_version=yes
9024 ;;
9025
9026sysv4 | sysv4.3*)
9027 version_type=linux
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 case $host_vendor in
9032 sni)
9033 shlibpath_overrides_runpath=no
9034 need_lib_prefix=no
9035 export_dynamic_flag_spec='${wl}-Blargedynsym'
9036 runpath_var=LD_RUN_PATH
9037 ;;
9038 siemens)
9039 need_lib_prefix=no
9040 ;;
9041 motorola)
9042 need_lib_prefix=no
9043 need_version=no
9044 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9046 ;;
9047 esac
9048 ;;
9049
9050sysv4*MP*)
9051 if test -d /usr/nec ;then
9052 version_type=linux
9053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9054 soname_spec='$libname${shared_ext}.$major'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 fi
9057 ;;
9058
9059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9060 version_type=freebsd-elf
9061 need_lib_prefix=no
9062 need_version=no
9063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9064 soname_spec='${libname}${release}${shared_ext}$major'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 hardcode_into_libs=yes
9067 if test "$with_gnu_ld" = yes; then
9068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9069 shlibpath_overrides_runpath=no
9070 else
9071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9072 shlibpath_overrides_runpath=yes
9073 case $host_os in
9074 sco3.2v5*)
9075 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9076 ;;
9077 esac
9078 fi
9079 sys_lib_dlsearch_path_spec='/usr/lib'
9080 ;;
9081
9082uts4*)
9083 version_type=linux
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 ;;
9088
9089*)
9090 dynamic_linker=no
9091 ;;
9092esac
9093{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9094$as_echo "$dynamic_linker" >&6; }
9095test "$dynamic_linker" = no && can_build_shared=no
9096
9097if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9099else
9100 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9101fi
9102
9103sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9104if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9105 $as_echo_n "(cached) " >&6
9106else
9107 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9108fi
9109
9110sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9111
9112variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9113if test "$GCC" = yes; then
9114 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9115fi
9116
9117{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9118$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9119hardcode_action=
9120if test -n "$hardcode_libdir_flag_spec" || \
9121 test -n "$runpath_var" || \
9122 test "X$hardcode_automatic" = "Xyes" ; then
9123
9124 # We can hardcode non-existant directories.
9125 if test "$hardcode_direct" != no &&
9126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9127 # have to relink, otherwise we might link with an installed library
9128 # when we should be linking with a yet-to-be-installed one
9129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9130 test "$hardcode_minus_L" != no; then
9131 # Linking always hardcodes the temporary library directory.
9132 hardcode_action=relink
9133 else
9134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9135 hardcode_action=immediate
9136 fi
9137else
9138 # We cannot hardcode anything, or else we can only hardcode existing
9139 # directories.
9140 hardcode_action=unsupported
9141fi
9142{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9143$as_echo "$hardcode_action" >&6; }
9144
9145if test "$hardcode_action" = relink; then
9146 # Fast installation is not supported
9147 enable_fast_install=no
9148elif test "$shlibpath_overrides_runpath" = yes ||
9149 test "$enable_shared" = no; then
9150 # Fast installation is not necessary
9151 enable_fast_install=needless
9152fi
9153
9154striplib=
9155old_striplib=
9156{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9157$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9158if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9161 { $as_echo "$as_me:$LINENO: result: yes" >&5
9162$as_echo "yes" >&6; }
9163else
9164# FIXME - insert some real tests, host_os isn't really good enough
9165 case $host_os in
9166 darwin*)
9167 if test -n "$STRIP" ; then
9168 striplib="$STRIP -x"
9169 old_striplib="$STRIP -S"
9170 { $as_echo "$as_me:$LINENO: result: yes" >&5
9171$as_echo "yes" >&6; }
9172 else
9173 { $as_echo "$as_me:$LINENO: result: no" >&5
9174$as_echo "no" >&6; }
9175fi
9176 ;;
9177 *)
9178 { $as_echo "$as_me:$LINENO: result: no" >&5
9179$as_echo "no" >&6; }
9180 ;;
9181 esac
9182fi
9183
9184if test "x$enable_dlopen" != xyes; then
9185 enable_dlopen=unknown
9186 enable_dlopen_self=unknown
9187 enable_dlopen_self_static=unknown
9188else
9189 lt_cv_dlopen=no
9190 lt_cv_dlopen_libs=
9191
9192 case $host_os in
9193 beos*)
9194 lt_cv_dlopen="load_add_on"
9195 lt_cv_dlopen_libs=
9196 lt_cv_dlopen_self=yes
9197 ;;
9198
9199 mingw* | pw32*)
9200 lt_cv_dlopen="LoadLibrary"
9201 lt_cv_dlopen_libs=
9202 ;;
9203
9204 cygwin*)
9205 lt_cv_dlopen="dlopen"
9206 lt_cv_dlopen_libs=
9207 ;;
9208
9209 darwin*)
9210 # if libdl is installed we need to link against it
9211 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9212$as_echo_n "checking for dlopen in -ldl... " >&6; }
9213if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9214 $as_echo_n "(cached) " >&6
9215else
9216 ac_check_lib_save_LIBS=$LIBS
9217LIBS="-ldl $LIBS"
9218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
9225/* Override any GCC internal prototype to avoid an error.
9226 Use char because int might match the return type of a GCC
9227 builtin and then its argument prototype would still apply. */
9228#ifdef __cplusplus
9229extern "C"
9230#endif
9231char dlopen ();
9232int
9233main ()
9234{
9235return dlopen ();
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (ac_try="$ac_link"
9242case "(($ac_try" in
9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9245esac
9246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247$as_echo "$ac_try_echo") >&5
9248 (eval "$ac_link") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest$ac_exeext && {
9258 test "$cross_compiling" = yes ||
9259 $as_test_x conftest$ac_exeext
9260 }; then
9261 ac_cv_lib_dl_dlopen=yes
9262else
9263 $as_echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_lib_dl_dlopen=no
9267fi
9268
9269rm -rf conftest.dSYM
9270rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9271 conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9275$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9276if test $ac_cv_lib_dl_dlopen = yes; then
9277 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9278else
9279
9280 lt_cv_dlopen="dyld"
9281 lt_cv_dlopen_libs=
9282 lt_cv_dlopen_self=yes
9283
9284fi
9285
9286 ;;
9287
9288 *)
9289 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9290$as_echo_n "checking for shl_load... " >&6; }
9291if test "${ac_cv_func_shl_load+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9293else
9294 cat >conftest.$ac_ext <<_ACEOF
9295/* confdefs.h. */
9296_ACEOF
9297cat confdefs.h >>conftest.$ac_ext
9298cat >>conftest.$ac_ext <<_ACEOF
9299/* end confdefs.h. */
9300/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9302#define shl_load innocuous_shl_load
9303
9304/* System header to define __stub macros and hopefully few prototypes,
9305 which can conflict with char shl_load (); below.
9306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9307 <limits.h> exists even on freestanding compilers. */
9308
9309#ifdef __STDC__
9310# include <limits.h>
9311#else
9312# include <assert.h>
9313#endif
9314
9315#undef shl_load
9316
9317/* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320#ifdef __cplusplus
9321extern "C"
9322#endif
9323char shl_load ();
9324/* The GNU C library defines this for functions which it implements
9325 to always fail with ENOSYS. Some functions are actually named
9326 something starting with __ and the normal name is an alias. */
9327#if defined __stub_shl_load || defined __stub___shl_load
9328choke me
9329#endif
9330
9331int
9332main ()
9333{
9334return shl_load ();
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339rm -f conftest.$ac_objext conftest$ac_exeext
9340if { (ac_try="$ac_link"
9341case "(($ac_try" in
9342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9343 *) ac_try_echo=$ac_try;;
9344esac
9345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9346$as_echo "$ac_try_echo") >&5
9347 (eval "$ac_link") 2>conftest.er1
9348 ac_status=$?
9349 grep -v '^ *+' conftest.er1 >conftest.err
9350 rm -f conftest.er1
9351 cat conftest.err >&5
9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext && {
9357 test "$cross_compiling" = yes ||
9358 $as_test_x conftest$ac_exeext
9359 }; then
9360 ac_cv_func_shl_load=yes
9361else
9362 $as_echo "$as_me: failed program was:" >&5
9363sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 ac_cv_func_shl_load=no
9366fi
9367
9368rm -rf conftest.dSYM
9369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371fi
9372{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9373$as_echo "$ac_cv_func_shl_load" >&6; }
9374if test $ac_cv_func_shl_load = yes; then
9375 lt_cv_dlopen="shl_load"
9376else
9377 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9378$as_echo_n "checking for shl_load in -ldld... " >&6; }
9379if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9380 $as_echo_n "(cached) " >&6
9381else
9382 ac_check_lib_save_LIBS=$LIBS
9383LIBS="-ldld $LIBS"
9384cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390
9391/* Override any GCC internal prototype to avoid an error.
9392 Use char because int might match the return type of a GCC
9393 builtin and then its argument prototype would still apply. */
9394#ifdef __cplusplus
9395extern "C"
9396#endif
9397char shl_load ();
9398int
9399main ()
9400{
9401return shl_load ();
9402 ;
9403 return 0;
9404}
9405_ACEOF
9406rm -f conftest.$ac_objext conftest$ac_exeext
9407if { (ac_try="$ac_link"
9408case "(($ac_try" in
9409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9410 *) ac_try_echo=$ac_try;;
9411esac
9412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9413$as_echo "$ac_try_echo") >&5
9414 (eval "$ac_link") 2>conftest.er1
9415 ac_status=$?
9416 grep -v '^ *+' conftest.er1 >conftest.err
9417 rm -f conftest.er1
9418 cat conftest.err >&5
9419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } && {
9421 test -z "$ac_c_werror_flag" ||
9422 test ! -s conftest.err
9423 } && test -s conftest$ac_exeext && {
9424 test "$cross_compiling" = yes ||
9425 $as_test_x conftest$ac_exeext
9426 }; then
9427 ac_cv_lib_dld_shl_load=yes
9428else
9429 $as_echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432 ac_cv_lib_dld_shl_load=no
9433fi
9434
9435rm -rf conftest.dSYM
9436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9437 conftest$ac_exeext conftest.$ac_ext
9438LIBS=$ac_check_lib_save_LIBS
9439fi
9440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9441$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9442if test $ac_cv_lib_dld_shl_load = yes; then
9443 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9444else
9445 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9446$as_echo_n "checking for dlopen... " >&6; }
9447if test "${ac_cv_func_dlopen+set}" = set; then
9448 $as_echo_n "(cached) " >&6
9449else
9450 cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
9456/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9458#define dlopen innocuous_dlopen
9459
9460/* System header to define __stub macros and hopefully few prototypes,
9461 which can conflict with char dlopen (); below.
9462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9463 <limits.h> exists even on freestanding compilers. */
9464
9465#ifdef __STDC__
9466# include <limits.h>
9467#else
9468# include <assert.h>
9469#endif
9470
9471#undef dlopen
9472
9473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
9476#ifdef __cplusplus
9477extern "C"
9478#endif
9479char dlopen ();
9480/* The GNU C library defines this for functions which it implements
9481 to always fail with ENOSYS. Some functions are actually named
9482 something starting with __ and the normal name is an alias. */
9483#if defined __stub_dlopen || defined __stub___dlopen
9484choke me
9485#endif
9486
9487int
9488main ()
9489{
9490return dlopen ();
9491 ;
9492 return 0;
9493}
9494_ACEOF
9495rm -f conftest.$ac_objext conftest$ac_exeext
9496if { (ac_try="$ac_link"
9497case "(($ac_try" in
9498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9499 *) ac_try_echo=$ac_try;;
9500esac
9501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9502$as_echo "$ac_try_echo") >&5
9503 (eval "$ac_link") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_c_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest$ac_exeext && {
9513 test "$cross_compiling" = yes ||
9514 $as_test_x conftest$ac_exeext
9515 }; then
9516 ac_cv_func_dlopen=yes
9517else
9518 $as_echo "$as_me: failed program was:" >&5
9519sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_func_dlopen=no
9522fi
9523
9524rm -rf conftest.dSYM
9525rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9526 conftest$ac_exeext conftest.$ac_ext
9527fi
9528{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9529$as_echo "$ac_cv_func_dlopen" >&6; }
9530if test $ac_cv_func_dlopen = yes; then
9531 lt_cv_dlopen="dlopen"
9532else
9533 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9534$as_echo_n "checking for dlopen in -ldl... " >&6; }
9535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9536 $as_echo_n "(cached) " >&6
9537else
9538 ac_check_lib_save_LIBS=$LIBS
9539LIBS="-ldl $LIBS"
9540cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
9545/* end confdefs.h. */
9546
9547/* Override any GCC internal prototype to avoid an error.
9548 Use char because int might match the return type of a GCC
9549 builtin and then its argument prototype would still apply. */
9550#ifdef __cplusplus
9551extern "C"
9552#endif
9553char dlopen ();
9554int
9555main ()
9556{
9557return dlopen ();
9558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
9563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9569$as_echo "$ac_try_echo") >&5
9570 (eval "$ac_link") 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } && {
9577 test -z "$ac_c_werror_flag" ||
9578 test ! -s conftest.err
9579 } && test -s conftest$ac_exeext && {
9580 test "$cross_compiling" = yes ||
9581 $as_test_x conftest$ac_exeext
9582 }; then
9583 ac_cv_lib_dl_dlopen=yes
9584else
9585 $as_echo "$as_me: failed program was:" >&5
9586sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_cv_lib_dl_dlopen=no
9589fi
9590
9591rm -rf conftest.dSYM
9592rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9593 conftest$ac_exeext conftest.$ac_ext
9594LIBS=$ac_check_lib_save_LIBS
9595fi
9596{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9597$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9598if test $ac_cv_lib_dl_dlopen = yes; then
9599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9600else
9601 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9602$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9603if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9604 $as_echo_n "(cached) " >&6
9605else
9606 ac_check_lib_save_LIBS=$LIBS
9607LIBS="-lsvld $LIBS"
9608cat >conftest.$ac_ext <<_ACEOF
9609/* confdefs.h. */
9610_ACEOF
9611cat confdefs.h >>conftest.$ac_ext
9612cat >>conftest.$ac_ext <<_ACEOF
9613/* end confdefs.h. */
9614
9615/* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621char dlopen ();
9622int
9623main ()
9624{
9625return dlopen ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (ac_try="$ac_link"
9632case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9637$as_echo "$ac_try_echo") >&5
9638 (eval "$ac_link") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext && {
9648 test "$cross_compiling" = yes ||
9649 $as_test_x conftest$ac_exeext
9650 }; then
9651 ac_cv_lib_svld_dlopen=yes
9652else
9653 $as_echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
9656 ac_cv_lib_svld_dlopen=no
9657fi
9658
9659rm -rf conftest.dSYM
9660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9661 conftest$ac_exeext conftest.$ac_ext
9662LIBS=$ac_check_lib_save_LIBS
9663fi
9664{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9665$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9666if test $ac_cv_lib_svld_dlopen = yes; then
9667 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9668else
9669 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9670$as_echo_n "checking for dld_link in -ldld... " >&6; }
9671if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9672 $as_echo_n "(cached) " >&6
9673else
9674 ac_check_lib_save_LIBS=$LIBS
9675LIBS="-ldld $LIBS"
9676cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682
9683/* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686#ifdef __cplusplus
9687extern "C"
9688#endif
9689char dld_link ();
9690int
9691main ()
9692{
9693return dld_link ();
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext conftest$ac_exeext
9699if { (ac_try="$ac_link"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705$as_echo "$ac_try_echo") >&5
9706 (eval "$ac_link") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest$ac_exeext && {
9716 test "$cross_compiling" = yes ||
9717 $as_test_x conftest$ac_exeext
9718 }; then
9719 ac_cv_lib_dld_dld_link=yes
9720else
9721 $as_echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 ac_cv_lib_dld_dld_link=no
9725fi
9726
9727rm -rf conftest.dSYM
9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9730LIBS=$ac_check_lib_save_LIBS
9731fi
9732{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9733$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9734if test $ac_cv_lib_dld_dld_link = yes; then
9735 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9736fi
9737
9738
9739fi
9740
9741
9742fi
9743
9744
9745fi
9746
9747
9748fi
9749
9750
9751fi
9752
9753 ;;
9754 esac
9755
9756 if test "x$lt_cv_dlopen" != xno; then
9757 enable_dlopen=yes
9758 else
9759 enable_dlopen=no
9760 fi
9761
9762 case $lt_cv_dlopen in
9763 dlopen)
9764 save_CPPFLAGS="$CPPFLAGS"
9765 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9766
9767 save_LDFLAGS="$LDFLAGS"
9768 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9769
9770 save_LIBS="$LIBS"
9771 LIBS="$lt_cv_dlopen_libs $LIBS"
9772
9773 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9774$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9775if test "${lt_cv_dlopen_self+set}" = set; then
9776 $as_echo_n "(cached) " >&6
9777else
9778 if test "$cross_compiling" = yes; then :
9779 lt_cv_dlopen_self=cross
9780else
9781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9782 lt_status=$lt_dlunknown
9783 cat > conftest.$ac_ext <<EOF
9784#line 9784 "configure"
9785#include "confdefs.h"
9786
9787#if HAVE_DLFCN_H
9788#include <dlfcn.h>
9789#endif
9790
9791#include <stdio.h>
9792
9793#ifdef RTLD_GLOBAL
9794# define LT_DLGLOBAL RTLD_GLOBAL
9795#else
9796# ifdef DL_GLOBAL
9797# define LT_DLGLOBAL DL_GLOBAL
9798# else
9799# define LT_DLGLOBAL 0
9800# endif
9801#endif
9802
9803/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9804 find out it does not work in some platform. */
9805#ifndef LT_DLLAZY_OR_NOW
9806# ifdef RTLD_LAZY
9807# define LT_DLLAZY_OR_NOW RTLD_LAZY
9808# else
9809# ifdef DL_LAZY
9810# define LT_DLLAZY_OR_NOW DL_LAZY
9811# else
9812# ifdef RTLD_NOW
9813# define LT_DLLAZY_OR_NOW RTLD_NOW
9814# else
9815# ifdef DL_NOW
9816# define LT_DLLAZY_OR_NOW DL_NOW
9817# else
9818# define LT_DLLAZY_OR_NOW 0
9819# endif
9820# endif
9821# endif
9822# endif
9823#endif
9824
9825#ifdef __cplusplus
9826extern "C" void exit (int);
9827#endif
9828
9829void fnord() { int i=42;}
9830int main ()
9831{
9832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9833 int status = $lt_dlunknown;
9834
9835 if (self)
9836 {
9837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9839 /* dlclose (self); */
9840 }
9841 else
9842 puts (dlerror ());
9843
9844 exit (status);
9845}
9846EOF
9847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9848 (eval $ac_link) 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9852 (./conftest; exit; ) >&5 2>/dev/null
9853 lt_status=$?
9854 case x$lt_status in
9855 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9856 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9857 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9858 esac
9859 else :
9860 # compilation failed
9861 lt_cv_dlopen_self=no
9862 fi
9863fi
9864rm -fr conftest*
9865
9866
9867fi
9868{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9869$as_echo "$lt_cv_dlopen_self" >&6; }
9870
9871 if test "x$lt_cv_dlopen_self" = xyes; then
9872 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9873 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9874$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9875if test "${lt_cv_dlopen_self_static+set}" = set; then
9876 $as_echo_n "(cached) " >&6
9877else
9878 if test "$cross_compiling" = yes; then :
9879 lt_cv_dlopen_self_static=cross
9880else
9881 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9882 lt_status=$lt_dlunknown
9883 cat > conftest.$ac_ext <<EOF
9884#line 9884 "configure"
9885#include "confdefs.h"
9886
9887#if HAVE_DLFCN_H
9888#include <dlfcn.h>
9889#endif
9890
9891#include <stdio.h>
9892
9893#ifdef RTLD_GLOBAL
9894# define LT_DLGLOBAL RTLD_GLOBAL
9895#else
9896# ifdef DL_GLOBAL
9897# define LT_DLGLOBAL DL_GLOBAL
9898# else
9899# define LT_DLGLOBAL 0
9900# endif
9901#endif
9902
9903/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9904 find out it does not work in some platform. */
9905#ifndef LT_DLLAZY_OR_NOW
9906# ifdef RTLD_LAZY
9907# define LT_DLLAZY_OR_NOW RTLD_LAZY
9908# else
9909# ifdef DL_LAZY
9910# define LT_DLLAZY_OR_NOW DL_LAZY
9911# else
9912# ifdef RTLD_NOW
9913# define LT_DLLAZY_OR_NOW RTLD_NOW
9914# else
9915# ifdef DL_NOW
9916# define LT_DLLAZY_OR_NOW DL_NOW
9917# else
9918# define LT_DLLAZY_OR_NOW 0
9919# endif
9920# endif
9921# endif
9922# endif
9923#endif
9924
9925#ifdef __cplusplus
9926extern "C" void exit (int);
9927#endif
9928
9929void fnord() { int i=42;}
9930int main ()
9931{
9932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9933 int status = $lt_dlunknown;
9934
9935 if (self)
9936 {
9937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9938 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9939 /* dlclose (self); */
9940 }
9941 else
9942 puts (dlerror ());
9943
9944 exit (status);
9945}
9946EOF
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9949 ac_status=$?
9950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9952 (./conftest; exit; ) >&5 2>/dev/null
9953 lt_status=$?
9954 case x$lt_status in
9955 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9956 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9957 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9958 esac
9959 else :
9960 # compilation failed
9961 lt_cv_dlopen_self_static=no
9962 fi
9963fi
9964rm -fr conftest*
9965
9966
9967fi
9968{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9969$as_echo "$lt_cv_dlopen_self_static" >&6; }
9970 fi
9971
9972 CPPFLAGS="$save_CPPFLAGS"
9973 LDFLAGS="$save_LDFLAGS"
9974 LIBS="$save_LIBS"
9975 ;;
9976 esac
9977
9978 case $lt_cv_dlopen_self in
9979 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9980 *) enable_dlopen_self=unknown ;;
9981 esac
9982
9983 case $lt_cv_dlopen_self_static in
9984 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9985 *) enable_dlopen_self_static=unknown ;;
9986 esac
9987fi
9988
9989
9990# Report which library types will actually be built
9991{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9992$as_echo_n "checking if libtool supports shared libraries... " >&6; }
9993{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
9994$as_echo "$can_build_shared" >&6; }
9995
9996{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9997$as_echo_n "checking whether to build shared libraries... " >&6; }
9998test "$can_build_shared" = "no" && enable_shared=no
9999
10000# On AIX, shared libraries and static libraries use the same namespace, and
10001# are all built from PIC.
10002case $host_os in
10003aix3*)
10004 test "$enable_shared" = yes && enable_static=no
10005 if test -n "$RANLIB"; then
10006 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10007 postinstall_cmds='$RANLIB $lib'
10008 fi
10009 ;;
10010
10011aix[4-9]*)
10012 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10013 test "$enable_shared" = yes && enable_static=no
10014 fi
10015 ;;
10016esac
10017{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10018$as_echo "$enable_shared" >&6; }
10019
10020{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10021$as_echo_n "checking whether to build static libraries... " >&6; }
10022# Make sure either enable_shared or enable_static is yes.
10023test "$enable_shared" = yes || enable_static=yes
10024{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10025$as_echo "$enable_static" >&6; }
10026
10027# The else clause should only fire when bootstrapping the
10028# libtool distribution, otherwise you forgot to ship ltmain.sh
10029# with your package, and you will get complaints that there are
10030# no rules to generate ltmain.sh.
10031if test -f "$ltmain"; then
10032 # See if we are running on zsh, and set the options which allow our commands through
10033 # without removal of \ escapes.
10034 if test -n "${ZSH_VERSION+set}" ; then
10035 setopt NO_GLOB_SUBST
10036 fi
10037 # Now quote all the things that may contain metacharacters while being
10038 # careful not to overquote the AC_SUBSTed values. We take copies of the
10039 # variables and quote the copies for generation of the libtool script.
10040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10041 SED SHELL STRIP \
10042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10044 deplibs_check_method reload_flag reload_cmds need_locks \
10045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10046 lt_cv_sys_global_symbol_to_c_name_address \
10047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10048 old_postinstall_cmds old_postuninstall_cmds \
10049 compiler \
10050 CC \
10051 LD \
10052 lt_prog_compiler_wl \
10053 lt_prog_compiler_pic \
10054 lt_prog_compiler_static \
10055 lt_prog_compiler_no_builtin_flag \
10056 export_dynamic_flag_spec \
10057 thread_safe_flag_spec \
10058 whole_archive_flag_spec \
10059 enable_shared_with_static_runtimes \
10060 old_archive_cmds \
10061 old_archive_from_new_cmds \
10062 predep_objects \
10063 postdep_objects \
10064 predeps \
10065 postdeps \
10066 compiler_lib_search_path \
10067 compiler_lib_search_dirs \
10068 archive_cmds \
10069 archive_expsym_cmds \
10070 postinstall_cmds \
10071 postuninstall_cmds \
10072 old_archive_from_expsyms_cmds \
10073 allow_undefined_flag \
10074 no_undefined_flag \
10075 export_symbols_cmds \
10076 hardcode_libdir_flag_spec \
10077 hardcode_libdir_flag_spec_ld \
10078 hardcode_libdir_separator \
10079 hardcode_automatic \
10080 module_cmds \
10081 module_expsym_cmds \
10082 lt_cv_prog_compiler_c_o \
10083 fix_srcfile_path \
10084 exclude_expsyms \
10085 include_expsyms; do
10086
10087 case $var in
10088 old_archive_cmds | \
10089 old_archive_from_new_cmds | \
10090 archive_cmds | \
10091 archive_expsym_cmds | \
10092 module_cmds | \
10093 module_expsym_cmds | \
10094 old_archive_from_expsyms_cmds | \
10095 export_symbols_cmds | \
10096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10097 postinstall_cmds | postuninstall_cmds | \
10098 old_postinstall_cmds | old_postuninstall_cmds | \
10099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10100 # Double-quote double-evaled strings.
10101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10102 ;;
10103 *)
10104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10105 ;;
10106 esac
10107 done
10108
10109 case $lt_echo in
10110 *'\$0 --fallback-echo"')
10111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10112 ;;
10113 esac
10114
10115cfgfile="${ofile}T"
10116 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10117 $rm -f "$cfgfile"
10118 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10119$as_echo "$as_me: creating $ofile" >&6;}
10120
10121 cat <<__EOF__ >> "$cfgfile"
10122#! $SHELL
10123
10124# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10125# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10126# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10127#
10128# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10129# Free Software Foundation, Inc.
10130#
10131# This file is part of GNU Libtool:
10132# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10133#
10134# This program is free software; you can redistribute it and/or modify
10135# it under the terms of the GNU General Public License as published by
10136# the Free Software Foundation; either version 2 of the License, or
10137# (at your option) any later version.
10138#
10139# This program is distributed in the hope that it will be useful, but
10140# WITHOUT ANY WARRANTY; without even the implied warranty of
10141# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10142# General Public License for more details.
10143#
10144# You should have received a copy of the GNU General Public License
10145# along with this program; if not, write to the Free Software
10146# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10147#
10148# As a special exception to the GNU General Public License, if you
10149# distribute this file as part of a program that contains a
10150# configuration script generated by Autoconf, you may include it under
10151# the same distribution terms that you use for the rest of that program.
10152
10153# A sed program that does not truncate output.
10154SED=$lt_SED
10155
10156# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10157Xsed="$SED -e 1s/^X//"
10158
10159# The HP-UX ksh and POSIX shell print the target directory to stdout
10160# if CDPATH is set.
10161(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10162
10163# The names of the tagged configurations supported by this script.
10164available_tags=
10165
10166# ### BEGIN LIBTOOL CONFIG
10167
10168# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10169
10170# Shell to use when invoking shell scripts.
10171SHELL=$lt_SHELL
10172
10173# Whether or not to build shared libraries.
10174build_libtool_libs=$enable_shared
10175
10176# Whether or not to build static libraries.
10177build_old_libs=$enable_static
10178
10179# Whether or not to add -lc for building shared libraries.
10180build_libtool_need_lc=$archive_cmds_need_lc
10181
10182# Whether or not to disallow shared libs when runtime libs are static
10183allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10184
10185# Whether or not to optimize for fast installation.
10186fast_install=$enable_fast_install
10187
10188# The host system.
10189host_alias=$host_alias
10190host=$host
10191host_os=$host_os
10192
10193# The build system.
10194build_alias=$build_alias
10195build=$build
10196build_os=$build_os
10197
10198# An echo program that does not interpret backslashes.
10199echo=$lt_echo
10200
10201# The archiver.
10202AR=$lt_AR
10203AR_FLAGS=$lt_AR_FLAGS
10204
10205# A C compiler.
10206LTCC=$lt_LTCC
10207
10208# LTCC compiler flags.
10209LTCFLAGS=$lt_LTCFLAGS
10210
10211# A language-specific compiler.
10212CC=$lt_compiler
10213
10214# Is the compiler the GNU C compiler?
10215with_gcc=$GCC
10216
10217# An ERE matcher.
10218EGREP=$lt_EGREP
10219
10220# The linker used to build libraries.
10221LD=$lt_LD
10222
10223# Whether we need hard or soft links.
10224LN_S=$lt_LN_S
10225
10226# A BSD-compatible nm program.
10227NM=$lt_NM
10228
10229# A symbol stripping program
10230STRIP=$lt_STRIP
10231
10232# Used to examine libraries when file_magic_cmd begins "file"
10233MAGIC_CMD=$MAGIC_CMD
10234
10235# Used on cygwin: DLL creation program.
10236DLLTOOL="$DLLTOOL"
10237
10238# Used on cygwin: object dumper.
10239OBJDUMP="$OBJDUMP"
10240
10241# Used on cygwin: assembler.
10242AS="$AS"
10243
10244# The name of the directory that contains temporary libtool files.
10245objdir=$objdir
10246
10247# How to create reloadable object files.
10248reload_flag=$lt_reload_flag
10249reload_cmds=$lt_reload_cmds
10250
10251# How to pass a linker flag through the compiler.
10252wl=$lt_lt_prog_compiler_wl
10253
10254# Object file suffix (normally "o").
10255objext="$ac_objext"
10256
10257# Old archive suffix (normally "a").
10258libext="$libext"
10259
10260# Shared library suffix (normally ".so").
10261shrext_cmds='$shrext_cmds'
10262
10263# Executable file suffix (normally "").
10264exeext="$exeext"
10265
10266# Additional compiler flags for building library objects.
10267pic_flag=$lt_lt_prog_compiler_pic
10268pic_mode=$pic_mode
10269
10270# What is the maximum length of a command?
10271max_cmd_len=$lt_cv_sys_max_cmd_len
10272
10273# Does compiler simultaneously support -c and -o options?
10274compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10275
10276# Must we lock files when doing compilation?
10277need_locks=$lt_need_locks
10278
10279# Do we need the lib prefix for modules?
10280need_lib_prefix=$need_lib_prefix
10281
10282# Do we need a version for libraries?
10283need_version=$need_version
10284
10285# Whether dlopen is supported.
10286dlopen_support=$enable_dlopen
10287
10288# Whether dlopen of programs is supported.
10289dlopen_self=$enable_dlopen_self
10290
10291# Whether dlopen of statically linked programs is supported.
10292dlopen_self_static=$enable_dlopen_self_static
10293
10294# Compiler flag to prevent dynamic linking.
10295link_static_flag=$lt_lt_prog_compiler_static
10296
10297# Compiler flag to turn off builtin functions.
10298no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10299
10300# Compiler flag to allow reflexive dlopens.
10301export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10302
10303# Compiler flag to generate shared objects directly from archives.
10304whole_archive_flag_spec=$lt_whole_archive_flag_spec
10305
10306# Compiler flag to generate thread-safe objects.
10307thread_safe_flag_spec=$lt_thread_safe_flag_spec
10308
10309# Library versioning type.
10310version_type=$version_type
10311
10312# Format of library name prefix.
10313libname_spec=$lt_libname_spec
10314
10315# List of archive names. First name is the real one, the rest are links.
10316# The last name is the one that the linker finds with -lNAME.
10317library_names_spec=$lt_library_names_spec
10318
10319# The coded name of the library, if different from the real name.
10320soname_spec=$lt_soname_spec
10321
10322# Commands used to build and install an old-style archive.
10323RANLIB=$lt_RANLIB
10324old_archive_cmds=$lt_old_archive_cmds
10325old_postinstall_cmds=$lt_old_postinstall_cmds
10326old_postuninstall_cmds=$lt_old_postuninstall_cmds
10327
10328# Create an old-style archive from a shared archive.
10329old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10330
10331# Create a temporary old-style archive to link instead of a shared archive.
10332old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10333
10334# Commands used to build and install a shared archive.
10335archive_cmds=$lt_archive_cmds
10336archive_expsym_cmds=$lt_archive_expsym_cmds
10337postinstall_cmds=$lt_postinstall_cmds
10338postuninstall_cmds=$lt_postuninstall_cmds
10339
10340# Commands used to build a loadable module (assumed same as above if empty)
10341module_cmds=$lt_module_cmds
10342module_expsym_cmds=$lt_module_expsym_cmds
10343
10344# Commands to strip libraries.
10345old_striplib=$lt_old_striplib
10346striplib=$lt_striplib
10347
10348# Dependencies to place before the objects being linked to create a
10349# shared library.
10350predep_objects=$lt_predep_objects
10351
10352# Dependencies to place after the objects being linked to create a
10353# shared library.
10354postdep_objects=$lt_postdep_objects
10355
10356# Dependencies to place before the objects being linked to create a
10357# shared library.
10358predeps=$lt_predeps
10359
10360# Dependencies to place after the objects being linked to create a
10361# shared library.
10362postdeps=$lt_postdeps
10363
10364# The directories searched by this compiler when creating a shared
10365# library
10366compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10367
10368# The library search path used internally by the compiler when linking
10369# a shared library.
10370compiler_lib_search_path=$lt_compiler_lib_search_path
10371
10372# Method to check whether dependent libraries are shared objects.
10373deplibs_check_method=$lt_deplibs_check_method
10374
10375# Command to use when deplibs_check_method == file_magic.
10376file_magic_cmd=$lt_file_magic_cmd
10377
10378# Flag that allows shared libraries with undefined symbols to be built.
10379allow_undefined_flag=$lt_allow_undefined_flag
10380
10381# Flag that forces no undefined symbols.
10382no_undefined_flag=$lt_no_undefined_flag
10383
10384# Commands used to finish a libtool library installation in a directory.
10385finish_cmds=$lt_finish_cmds
10386
10387# Same as above, but a single script fragment to be evaled but not shown.
10388finish_eval=$lt_finish_eval
10389
10390# Take the output of nm and produce a listing of raw symbols and C names.
10391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10392
10393# Transform the output of nm in a proper C declaration
10394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10395
10396# Transform the output of nm in a C name address pair
10397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10398
10399# This is the shared library runtime path variable.
10400runpath_var=$runpath_var
10401
10402# This is the shared library path variable.
10403shlibpath_var=$shlibpath_var
10404
10405# Is shlibpath searched before the hard-coded library search path?
10406shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10407
10408# How to hardcode a shared library path into an executable.
10409hardcode_action=$hardcode_action
10410
10411# Whether we should hardcode library paths into libraries.
10412hardcode_into_libs=$hardcode_into_libs
10413
10414# Flag to hardcode \$libdir into a binary during linking.
10415# This must work even if \$libdir does not exist.
10416hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10417
10418# If ld is used when linking, flag to hardcode \$libdir into
10419# a binary during linking. This must work even if \$libdir does
10420# not exist.
10421hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10422
10423# Whether we need a single -rpath flag with a separated argument.
10424hardcode_libdir_separator=$lt_hardcode_libdir_separator
10425
10426# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10427# resulting binary.
10428hardcode_direct=$hardcode_direct
10429
10430# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10431# resulting binary.
10432hardcode_minus_L=$hardcode_minus_L
10433
10434# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10435# the resulting binary.
10436hardcode_shlibpath_var=$hardcode_shlibpath_var
10437
10438# Set to yes if building a shared library automatically hardcodes DIR into the library
10439# and all subsequent libraries and executables linked against it.
10440hardcode_automatic=$hardcode_automatic
10441
10442# Variables whose values should be saved in libtool wrapper scripts and
10443# restored at relink time.
10444variables_saved_for_relink="$variables_saved_for_relink"
10445
10446# Whether libtool must link a program against all its dependency libraries.
10447link_all_deplibs=$link_all_deplibs
10448
10449# Compile-time system search path for libraries
10450sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10451
10452# Run-time system search path for libraries
10453sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10454
10455# Fix the shell variable \$srcfile for the compiler.
10456fix_srcfile_path=$lt_fix_srcfile_path
10457
10458# Set to yes if exported symbols are required.
10459always_export_symbols=$always_export_symbols
10460
10461# The commands to list exported symbols.
10462export_symbols_cmds=$lt_export_symbols_cmds
10463
10464# The commands to extract the exported symbol list from a shared archive.
10465extract_expsyms_cmds=$lt_extract_expsyms_cmds
10466
10467# Symbols that should not be listed in the preloaded symbols.
10468exclude_expsyms=$lt_exclude_expsyms
10469
10470# Symbols that must always be exported.
10471include_expsyms=$lt_include_expsyms
10472
10473# ### END LIBTOOL CONFIG
10474
10475__EOF__
10476
10477
10478 case $host_os in
10479 aix3*)
10480 cat <<\EOF >> "$cfgfile"
10481
10482# AIX sometimes has problems with the GCC collect2 program. For some
10483# reason, if we set the COLLECT_NAMES environment variable, the problems
10484# vanish in a puff of smoke.
10485if test "X${COLLECT_NAMES+set}" != Xset; then
10486 COLLECT_NAMES=
10487 export COLLECT_NAMES
10488fi
10489EOF
10490 ;;
10491 esac
10492
10493 # We use sed instead of cat because bash on DJGPP gets confused if
10494 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10495 # text mode, it properly converts lines to CR/LF. This bash problem
10496 # is reportedly fixed, but why not run on old versions too?
10497 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10498
10499 mv -f "$cfgfile" "$ofile" || \
10500 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10501 chmod +x "$ofile"
10502
10503else
10504 # If there is no Makefile yet, we rely on a make rule to execute
10505 # `config.status --recheck' to rerun these tests and create the
10506 # libtool script then.
10507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10508 if test -f "$ltmain_in"; then
10509 test -f Makefile && make "$ltmain"
10510 fi
10511fi
10512
10513
10514ac_ext=c
10515ac_cpp='$CPP $CPPFLAGS'
10516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518ac_compiler_gnu=$ac_cv_c_compiler_gnu
10519
10520CC="$lt_save_CC"
10521
10522
10523# Check whether --with-tags was given.
10524if test "${with_tags+set}" = set; then
10525 withval=$with_tags; tagnames="$withval"
10526fi
10527
10528
10529if test -f "$ltmain" && test -n "$tagnames"; then
10530 if test ! -f "${ofile}"; then
10531 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10532$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10533 fi
10534
10535 if test -z "$LTCC"; then
10536 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10537 if test -z "$LTCC"; then
10538 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10539$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10540 else
10541 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10542$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10543 fi
10544 fi
10545 if test -z "$LTCFLAGS"; then
10546 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10547 fi
10548
10549 # Extract list of available tagged configurations in $ofile.
10550 # Note that this assumes the entire list is on one line.
10551 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10552
10553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10554 for tagname in $tagnames; do
10555 IFS="$lt_save_ifs"
10556 # Check whether tagname contains only valid characters
10557 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10558 "") ;;
10559 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10560$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
10561 { (exit 1); exit 1; }; }
10562 ;;
10563 esac
10564
10565 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10566 then
10567 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10568$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10569 { (exit 1); exit 1; }; }
10570 fi
10571
10572 # Update the list of available tags.
10573 if test -n "$tagname"; then
10574 echo appending configuration tag \"$tagname\" to $ofile
10575
10576 case $tagname in
10577 CXX)
10578 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10579 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10580 (test "X$CXX" != "Xg++"))) ; then
10581 ac_ext=cpp
10582ac_cpp='$CXXCPP $CPPFLAGS'
10583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10586
10587
10588
10589
10590archive_cmds_need_lc_CXX=no
10591allow_undefined_flag_CXX=
10592always_export_symbols_CXX=no
10593archive_expsym_cmds_CXX=
10594export_dynamic_flag_spec_CXX=
10595hardcode_direct_CXX=no
10596hardcode_libdir_flag_spec_CXX=
10597hardcode_libdir_flag_spec_ld_CXX=
10598hardcode_libdir_separator_CXX=
10599hardcode_minus_L_CXX=no
10600hardcode_shlibpath_var_CXX=unsupported
10601hardcode_automatic_CXX=no
10602module_cmds_CXX=
10603module_expsym_cmds_CXX=
10604link_all_deplibs_CXX=unknown
10605old_archive_cmds_CXX=$old_archive_cmds
10606no_undefined_flag_CXX=
10607whole_archive_flag_spec_CXX=
10608enable_shared_with_static_runtimes_CXX=no
10609
10610# Dependencies to place before and after the object being linked:
10611predep_objects_CXX=
10612postdep_objects_CXX=
10613predeps_CXX=
10614postdeps_CXX=
10615compiler_lib_search_path_CXX=
10616compiler_lib_search_dirs_CXX=
10617
10618# Source file extension for C++ test sources.
10619ac_ext=cpp
10620
10621# Object file extension for compiled C++ test sources.
10622objext=o
10623objext_CXX=$objext
10624
10625# Code to be used in simple compile tests
10626lt_simple_compile_test_code="int some_variable = 0;"
10627
10628# Code to be used in simple link tests
10629lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10630
10631# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10632
10633# If no C compiler was specified, use CC.
10634LTCC=${LTCC-"$CC"}
10635
10636# If no C compiler flags were specified, use CFLAGS.
10637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10638
10639# Allow CC to be a program name with arguments.
10640compiler=$CC
10641
10642
10643# save warnings/boilerplate of simple test code
10644ac_outfile=conftest.$ac_objext
10645echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10647_lt_compiler_boilerplate=`cat conftest.err`
10648$rm conftest*
10649
10650ac_outfile=conftest.$ac_objext
10651echo "$lt_simple_link_test_code" >conftest.$ac_ext
10652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10653_lt_linker_boilerplate=`cat conftest.err`
10654$rm -r conftest*
10655
10656
10657# Allow CC to be a program name with arguments.
10658lt_save_CC=$CC
10659lt_save_LD=$LD
10660lt_save_GCC=$GCC
10661GCC=$GXX
10662lt_save_with_gnu_ld=$with_gnu_ld
10663lt_save_path_LD=$lt_cv_path_LD
10664if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10665 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10666else
10667 $as_unset lt_cv_prog_gnu_ld
10668fi
10669if test -n "${lt_cv_path_LDCXX+set}"; then
10670 lt_cv_path_LD=$lt_cv_path_LDCXX
10671else
10672 $as_unset lt_cv_path_LD
10673fi
10674test -z "${LDCXX+set}" || LD=$LDCXX
10675CC=${CXX-"c++"}
10676compiler=$CC
10677compiler_CXX=$CC
10678for cc_temp in $compiler""; do
10679 case $cc_temp in
10680 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10681 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10682 \-*) ;;
10683 *) break;;
10684 esac
10685done
10686cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10687
10688
10689# We don't want -fno-exception wen compiling C++ code, so set the
10690# no_builtin_flag separately
10691if test "$GXX" = yes; then
10692 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10693else
10694 lt_prog_compiler_no_builtin_flag_CXX=
10695fi
10696
10697if test "$GXX" = yes; then
10698 # Set up default GNU C++ configuration
10699
10700
10701# Check whether --with-gnu-ld was given.
10702if test "${with_gnu_ld+set}" = set; then
10703 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10704else
10705 with_gnu_ld=no
10706fi
10707
10708ac_prog=ld
10709if test "$GCC" = yes; then
10710 # Check if gcc -print-prog-name=ld gives a path.
10711 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10712$as_echo_n "checking for ld used by $CC... " >&6; }
10713 case $host in
10714 *-*-mingw*)
10715 # gcc leaves a trailing carriage return which upsets mingw
10716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10717 *)
10718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10719 esac
10720 case $ac_prog in
10721 # Accept absolute paths.
10722 [\\/]* | ?:[\\/]*)
10723 re_direlt='/[^/][^/]*/\.\./'
10724 # Canonicalize the pathname of ld
10725 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10726 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10727 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10728 done
10729 test -z "$LD" && LD="$ac_prog"
10730 ;;
10731 "")
10732 # If it fails, then pretend we aren't using GCC.
10733 ac_prog=ld
10734 ;;
10735 *)
10736 # If it is relative, then search for the first ld in PATH.
10737 with_gnu_ld=unknown
10738 ;;
10739 esac
10740elif test "$with_gnu_ld" = yes; then
10741 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
10742$as_echo_n "checking for GNU ld... " >&6; }
10743else
10744 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10745$as_echo_n "checking for non-GNU ld... " >&6; }
10746fi
10747if test "${lt_cv_path_LD+set}" = set; then
10748 $as_echo_n "(cached) " >&6
10749else
10750 if test -z "$LD"; then
10751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10752 for ac_dir in $PATH; do
10753 IFS="$lt_save_ifs"
10754 test -z "$ac_dir" && ac_dir=.
10755 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10756 lt_cv_path_LD="$ac_dir/$ac_prog"
10757 # Check to see if the program is GNU ld. I'd rather use --version,
10758 # but apparently some variants of GNU ld only accept -v.
10759 # Break only if it was the GNU/non-GNU ld that we prefer.
10760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10761 *GNU* | *'with BFD'*)
10762 test "$with_gnu_ld" != no && break
10763 ;;
10764 *)
10765 test "$with_gnu_ld" != yes && break
10766 ;;
10767 esac
10768 fi
10769 done
10770 IFS="$lt_save_ifs"
10771else
10772 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10773fi
10774fi
10775
10776LD="$lt_cv_path_LD"
10777if test -n "$LD"; then
10778 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10779$as_echo "$LD" >&6; }
10780else
10781 { $as_echo "$as_me:$LINENO: result: no" >&5
10782$as_echo "no" >&6; }
10783fi
10784test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10785$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10786 { (exit 1); exit 1; }; }
10787{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10788$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10789if test "${lt_cv_prog_gnu_ld+set}" = set; then
10790 $as_echo_n "(cached) " >&6
10791else
10792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10793case `$LD -v 2>&1 </dev/null` in
10794*GNU* | *'with BFD'*)
10795 lt_cv_prog_gnu_ld=yes
10796 ;;
10797*)
10798 lt_cv_prog_gnu_ld=no
10799 ;;
10800esac
10801fi
10802{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10803$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10804with_gnu_ld=$lt_cv_prog_gnu_ld
10805
10806
10807
10808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10809 # archiving commands below assume that GNU ld is being used.
10810 if test "$with_gnu_ld" = yes; then
10811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10812 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'
10813
10814 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10816
10817 # If archive_cmds runs LD, not CC, wlarc should be empty
10818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10819 # investigate it a little bit more. (MM)
10820 wlarc='${wl}'
10821
10822 # ancient GNU ld didn't support --whole-archive et. al.
10823 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10824 grep 'no-whole-archive' > /dev/null; then
10825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10826 else
10827 whole_archive_flag_spec_CXX=
10828 fi
10829 else
10830 with_gnu_ld=no
10831 wlarc=
10832
10833 # A generic and very simple default shared library creation
10834 # command for GNU C++ for the case where it uses the native
10835 # linker, instead of GNU ld. If possible, this setting should
10836 # overridden to take advantage of the native linker features on
10837 # the platform it is being used on.
10838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10839 fi
10840
10841 # Commands to make compiler produce verbose output that lists
10842 # what "hidden" libraries, object files and flags are used when
10843 # linking a shared library.
10844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10845
10846else
10847 GXX=no
10848 with_gnu_ld=no
10849 wlarc=
10850fi
10851
10852# PORTME: fill in a description of your system's C++ link characteristics
10853{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10854$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10855ld_shlibs_CXX=yes
10856case $host_os in
10857 aix3*)
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 aix[4-9]*)
10862 if test "$host_cpu" = ia64; then
10863 # On IA64, the linker does run time linking by default, so we don't
10864 # have to do anything special.
10865 aix_use_runtimelinking=no
10866 exp_sym_flag='-Bexport'
10867 no_entry_flag=""
10868 else
10869 aix_use_runtimelinking=no
10870
10871 # Test if we are trying to use run time linking or normal
10872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10873 # need to do runtime linking.
10874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10875 for ld_flag in $LDFLAGS; do
10876 case $ld_flag in
10877 *-brtl*)
10878 aix_use_runtimelinking=yes
10879 break
10880 ;;
10881 esac
10882 done
10883 ;;
10884 esac
10885
10886 exp_sym_flag='-bexport'
10887 no_entry_flag='-bnoentry'
10888 fi
10889
10890 # When large executables or shared objects are built, AIX ld can
10891 # have problems creating the table of contents. If linking a library
10892 # or program results in "error TOC overflow" add -mminimal-toc to
10893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10895
10896 archive_cmds_CXX=''
10897 hardcode_direct_CXX=yes
10898 hardcode_libdir_separator_CXX=':'
10899 link_all_deplibs_CXX=yes
10900
10901 if test "$GXX" = yes; then
10902 case $host_os in aix4.[012]|aix4.[012].*)
10903 # We only want to do this on AIX 4.2 and lower, the check
10904 # below for broken collect2 doesn't work under 4.3+
10905 collect2name=`${CC} -print-prog-name=collect2`
10906 if test -f "$collect2name" && \
10907 strings "$collect2name" | grep resolve_lib_name >/dev/null
10908 then
10909 # We have reworked collect2
10910 :
10911 else
10912 # We have old collect2
10913 hardcode_direct_CXX=unsupported
10914 # It fails to find uninstalled libraries when the uninstalled
10915 # path is not listed in the libpath. Setting hardcode_minus_L
10916 # to unsupported forces relinking
10917 hardcode_minus_L_CXX=yes
10918 hardcode_libdir_flag_spec_CXX='-L$libdir'
10919 hardcode_libdir_separator_CXX=
10920 fi
10921 ;;
10922 esac
10923 shared_flag='-shared'
10924 if test "$aix_use_runtimelinking" = yes; then
10925 shared_flag="$shared_flag "'${wl}-G'
10926 fi
10927 else
10928 # not using gcc
10929 if test "$host_cpu" = ia64; then
10930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10931 # chokes on -Wl,-G. The following line is correct:
10932 shared_flag='-G'
10933 else
10934 if test "$aix_use_runtimelinking" = yes; then
10935 shared_flag='${wl}-G'
10936 else
10937 shared_flag='${wl}-bM:SRE'
10938 fi
10939 fi
10940 fi
10941
10942 # It seems that -bexpall does not export symbols beginning with
10943 # underscore (_), so it is better to generate a list of symbols to export.
10944 always_export_symbols_CXX=yes
10945 if test "$aix_use_runtimelinking" = yes; then
10946 # Warning - without using the other runtime loading flags (-brtl),
10947 # -berok will link without error, but may produce a broken library.
10948 allow_undefined_flag_CXX='-berok'
10949 # Determine the default libpath from the value encoded in an empty executable.
10950 cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
10955/* end confdefs.h. */
10956
10957int
10958main ()
10959{
10960
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext conftest$ac_exeext
10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972$as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_cxx_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986
10987lt_aix_libpath_sed='
10988 /Import File Strings/,/^$/ {
10989 /^0/ {
10990 s/^0 *\(.*\)$/\1/
10991 p
10992 }
10993 }'
10994aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10995# Check for a 64-bit object if we didn't find anything.
10996if test -z "$aix_libpath"; then
10997 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10998fi
10999else
11000 $as_echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004fi
11005
11006rm -rf conftest.dSYM
11007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11010
11011 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11012
11013 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"
11014 else
11015 if test "$host_cpu" = ia64; then
11016 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11017 allow_undefined_flag_CXX="-z nodefs"
11018 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"
11019 else
11020 # Determine the default libpath from the value encoded in an empty executable.
11021 cat >conftest.$ac_ext <<_ACEOF
11022/* confdefs.h. */
11023_ACEOF
11024cat confdefs.h >>conftest.$ac_ext
11025cat >>conftest.$ac_ext <<_ACEOF
11026/* end confdefs.h. */
11027
11028int
11029main ()
11030{
11031
11032 ;
11033 return 0;
11034}
11035_ACEOF
11036rm -f conftest.$ac_objext conftest$ac_exeext
11037if { (ac_try="$ac_link"
11038case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043$as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_cxx_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057
11058lt_aix_libpath_sed='
11059 /Import File Strings/,/^$/ {
11060 /^0/ {
11061 s/^0 *\(.*\)$/\1/
11062 p
11063 }
11064 }'
11065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11066# Check for a 64-bit object if we didn't find anything.
11067if test -z "$aix_libpath"; then
11068 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11069fi
11070else
11071 $as_echo "$as_me: failed program was:" >&5
11072sed 's/^/| /' conftest.$ac_ext >&5
11073
11074
11075fi
11076
11077rm -rf conftest.dSYM
11078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11079 conftest$ac_exeext conftest.$ac_ext
11080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11081
11082 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11083 # Warning - without using the other run time loading flags,
11084 # -berok will link without error, but may produce a broken library.
11085 no_undefined_flag_CXX=' ${wl}-bernotok'
11086 allow_undefined_flag_CXX=' ${wl}-berok'
11087 # Exported symbols can be pulled into shared objects from archives
11088 whole_archive_flag_spec_CXX='$convenience'
11089 archive_cmds_need_lc_CXX=yes
11090 # This is similar to how AIX traditionally builds its shared libraries.
11091 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'
11092 fi
11093 fi
11094 ;;
11095
11096 beos*)
11097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11098 allow_undefined_flag_CXX=unsupported
11099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11100 # support --undefined. This deserves some investigation. FIXME
11101 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102 else
11103 ld_shlibs_CXX=no
11104 fi
11105 ;;
11106
11107 chorus*)
11108 case $cc_basename in
11109 *)
11110 # FIXME: insert proper C++ library support
11111 ld_shlibs_CXX=no
11112 ;;
11113 esac
11114 ;;
11115
11116 cygwin* | mingw* | pw32*)
11117 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11118 # as there is no search path for DLLs.
11119 hardcode_libdir_flag_spec_CXX='-L$libdir'
11120 allow_undefined_flag_CXX=unsupported
11121 always_export_symbols_CXX=no
11122 enable_shared_with_static_runtimes_CXX=yes
11123
11124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11125 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'
11126 # If the export-symbols file already is a .def file (1st line
11127 # is EXPORTS), use it as is; otherwise, prepend...
11128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11129 cp $export_symbols $output_objdir/$soname.def;
11130 else
11131 echo EXPORTS > $output_objdir/$soname.def;
11132 cat $export_symbols >> $output_objdir/$soname.def;
11133 fi~
11134 $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'
11135 else
11136 ld_shlibs_CXX=no
11137 fi
11138 ;;
11139 darwin* | rhapsody*)
11140 archive_cmds_need_lc_CXX=no
11141 hardcode_direct_CXX=no
11142 hardcode_automatic_CXX=yes
11143 hardcode_shlibpath_var_CXX=unsupported
11144 whole_archive_flag_spec_CXX=''
11145 link_all_deplibs_CXX=yes
11146 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11147 if test "$GXX" = yes ; then
11148 output_verbose_link_cmd='echo'
11149 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}"
11150 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11151 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}"
11152 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}"
11153 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11154 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}"
11155 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}"
11156 fi
11157 else
11158 case $cc_basename in
11159 xlc*)
11160 output_verbose_link_cmd='echo'
11161 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'
11162 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11163 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11164 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}'
11165 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}'
11166 ;;
11167 *)
11168 ld_shlibs_CXX=no
11169 ;;
11170 esac
11171 fi
11172 ;;
11173
11174 dgux*)
11175 case $cc_basename in
11176 ec++*)
11177 # FIXME: insert proper C++ library support
11178 ld_shlibs_CXX=no
11179 ;;
11180 ghcx*)
11181 # Green Hills C++ Compiler
11182 # FIXME: insert proper C++ library support
11183 ld_shlibs_CXX=no
11184 ;;
11185 *)
11186 # FIXME: insert proper C++ library support
11187 ld_shlibs_CXX=no
11188 ;;
11189 esac
11190 ;;
11191 freebsd[12]*)
11192 # C++ shared libraries reported to be fairly broken before switch to ELF
11193 ld_shlibs_CXX=no
11194 ;;
11195 freebsd-elf*)
11196 archive_cmds_need_lc_CXX=no
11197 ;;
11198 freebsd* | dragonfly*)
11199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11200 # conventions
11201 ld_shlibs_CXX=yes
11202 ;;
11203 gnu*)
11204 ;;
11205 hpux9*)
11206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11207 hardcode_libdir_separator_CXX=:
11208 export_dynamic_flag_spec_CXX='${wl}-E'
11209 hardcode_direct_CXX=yes
11210 hardcode_minus_L_CXX=yes # Not in the search PATH,
11211 # but as the default
11212 # location of the library.
11213
11214 case $cc_basename in
11215 CC*)
11216 # FIXME: insert proper C++ library support
11217 ld_shlibs_CXX=no
11218 ;;
11219 aCC*)
11220 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'
11221 # Commands to make compiler produce verbose output that lists
11222 # what "hidden" libraries, object files and flags are used when
11223 # linking a shared library.
11224 #
11225 # There doesn't appear to be a way to prevent this compiler from
11226 # explicitly linking system object files so we need to strip them
11227 # from the output so that they don't get included in the library
11228 # dependencies.
11229 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'
11230 ;;
11231 *)
11232 if test "$GXX" = yes; then
11233 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'
11234 else
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11237 fi
11238 ;;
11239 esac
11240 ;;
11241 hpux10*|hpux11*)
11242 if test $with_gnu_ld = no; then
11243 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11244 hardcode_libdir_separator_CXX=:
11245
11246 case $host_cpu in
11247 hppa*64*|ia64*) ;;
11248 *)
11249 export_dynamic_flag_spec_CXX='${wl}-E'
11250 ;;
11251 esac
11252 fi
11253 case $host_cpu in
11254 hppa*64*|ia64*)
11255 hardcode_direct_CXX=no
11256 hardcode_shlibpath_var_CXX=no
11257 ;;
11258 *)
11259 hardcode_direct_CXX=yes
11260 hardcode_minus_L_CXX=yes # Not in the search PATH,
11261 # but as the default
11262 # location of the library.
11263 ;;
11264 esac
11265
11266 case $cc_basename in
11267 CC*)
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11270 ;;
11271 aCC*)
11272 case $host_cpu in
11273 hppa*64*)
11274 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11275 ;;
11276 ia64*)
11277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11278 ;;
11279 *)
11280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11281 ;;
11282 esac
11283 # Commands to make compiler produce verbose output that lists
11284 # what "hidden" libraries, object files and flags are used when
11285 # linking a shared library.
11286 #
11287 # There doesn't appear to be a way to prevent this compiler from
11288 # explicitly linking system object files so we need to strip them
11289 # from the output so that they don't get included in the library
11290 # dependencies.
11291 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'
11292 ;;
11293 *)
11294 if test "$GXX" = yes; then
11295 if test $with_gnu_ld = no; then
11296 case $host_cpu in
11297 hppa*64*)
11298 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11299 ;;
11300 ia64*)
11301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11302 ;;
11303 *)
11304 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'
11305 ;;
11306 esac
11307 fi
11308 else
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 fi
11312 ;;
11313 esac
11314 ;;
11315 interix[3-9]*)
11316 hardcode_direct_CXX=no
11317 hardcode_shlibpath_var_CXX=no
11318 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11319 export_dynamic_flag_spec_CXX='${wl}-E'
11320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11321 # Instead, shared libraries are loaded at an image base (0x10000000 by
11322 # default) and relocated if they conflict, which is a slow very memory
11323 # consuming and fragmenting process. To avoid this, we pick a random,
11324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11326 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'
11327 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'
11328 ;;
11329 irix5* | irix6*)
11330 case $cc_basename in
11331 CC*)
11332 # SGI C++
11333 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'
11334
11335 # Archives containing C++ object files must be created using
11336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11337 # necessary to make sure instantiated templates are included
11338 # in the archive.
11339 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11340 ;;
11341 *)
11342 if test "$GXX" = yes; then
11343 if test "$with_gnu_ld" = no; then
11344 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'
11345 else
11346 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'
11347 fi
11348 fi
11349 link_all_deplibs_CXX=yes
11350 ;;
11351 esac
11352 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11353 hardcode_libdir_separator_CXX=:
11354 ;;
11355 linux* | k*bsd*-gnu)
11356 case $cc_basename in
11357 KCC*)
11358 # Kuck and Associates, Inc. (KAI) C++ Compiler
11359
11360 # KCC will only create a shared library if the output file
11361 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11362 # to its proper name (with version) after linking.
11363 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'
11364 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'
11365 # Commands to make compiler produce verbose output that lists
11366 # what "hidden" libraries, object files and flags are used when
11367 # linking a shared library.
11368 #
11369 # There doesn't appear to be a way to prevent this compiler from
11370 # explicitly linking system object files so we need to strip them
11371 # from the output so that they don't get included in the library
11372 # dependencies.
11373 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'
11374
11375 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11377
11378 # Archives containing C++ object files must be created using
11379 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11380 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11381 ;;
11382 icpc*)
11383 # Intel C++
11384 with_gnu_ld=yes
11385 # version 8.0 and above of icpc choke on multiply defined symbols
11386 # if we add $predep_objects and $postdep_objects, however 7.1 and
11387 # earlier do not add the objects themselves.
11388 case `$CC -V 2>&1` in
11389 *"Version 7."*)
11390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11391 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'
11392 ;;
11393 *) # Version 8.0 or newer
11394 tmp_idyn=
11395 case $host_cpu in
11396 ia64*) tmp_idyn=' -i_dynamic';;
11397 esac
11398 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11399 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'
11400 ;;
11401 esac
11402 archive_cmds_need_lc_CXX=no
11403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11405 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11406 ;;
11407 pgCC* | pgcpp*)
11408 # Portland Group C++ compiler
11409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11410 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'
11411
11412 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11413 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11414 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'
11415 ;;
11416 cxx*)
11417 # Compaq C++
11418 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11419 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'
11420
11421 runpath_var=LD_RUN_PATH
11422 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11423 hardcode_libdir_separator_CXX=:
11424
11425 # Commands to make compiler produce verbose output that lists
11426 # what "hidden" libraries, object files and flags are used when
11427 # linking a shared library.
11428 #
11429 # There doesn't appear to be a way to prevent this compiler from
11430 # explicitly linking system object files so we need to strip them
11431 # from the output so that they don't get included in the library
11432 # dependencies.
11433 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'
11434 ;;
11435 *)
11436 case `$CC -V 2>&1 | sed 5q` in
11437 *Sun\ C*)
11438 # Sun C++ 5.9
11439 no_undefined_flag_CXX=' -zdefs'
11440 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 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'
11442 hardcode_libdir_flag_spec_CXX='-R$libdir'
11443 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'
11444
11445 # Not sure whether something based on
11446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11447 # would be better.
11448 output_verbose_link_cmd='echo'
11449
11450 # Archives containing C++ object files must be created using
11451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11452 # necessary to make sure instantiated templates are included
11453 # in the archive.
11454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11455 ;;
11456 esac
11457 ;;
11458 esac
11459 ;;
11460 lynxos*)
11461 # FIXME: insert proper C++ library support
11462 ld_shlibs_CXX=no
11463 ;;
11464 m88k*)
11465 # FIXME: insert proper C++ library support
11466 ld_shlibs_CXX=no
11467 ;;
11468 mvs*)
11469 case $cc_basename in
11470 cxx*)
11471 # FIXME: insert proper C++ library support
11472 ld_shlibs_CXX=no
11473 ;;
11474 *)
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 esac
11479 ;;
11480 netbsd*)
11481 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11483 wlarc=
11484 hardcode_libdir_flag_spec_CXX='-R$libdir'
11485 hardcode_direct_CXX=yes
11486 hardcode_shlibpath_var_CXX=no
11487 fi
11488 # Workaround some broken pre-1.5 toolchains
11489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11490 ;;
11491 openbsd2*)
11492 # C++ shared libraries are fairly broken
11493 ld_shlibs_CXX=no
11494 ;;
11495 openbsd*)
11496 if test -f /usr/libexec/ld.so; then
11497 hardcode_direct_CXX=yes
11498 hardcode_shlibpath_var_CXX=no
11499 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11500 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11502 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11503 export_dynamic_flag_spec_CXX='${wl}-E'
11504 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11505 fi
11506 output_verbose_link_cmd='echo'
11507 else
11508 ld_shlibs_CXX=no
11509 fi
11510 ;;
11511 osf3*)
11512 case $cc_basename in
11513 KCC*)
11514 # Kuck and Associates, Inc. (KAI) C++ Compiler
11515
11516 # KCC will only create a shared library if the output file
11517 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11518 # to its proper name (with version) after linking.
11519 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'
11520
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11522 hardcode_libdir_separator_CXX=:
11523
11524 # Archives containing C++ object files must be created using
11525 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11526 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11527
11528 ;;
11529 RCC*)
11530 # Rational C++ 2.4.1
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11533 ;;
11534 cxx*)
11535 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11536 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'
11537
11538 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11539 hardcode_libdir_separator_CXX=:
11540
11541 # Commands to make compiler produce verbose output that lists
11542 # what "hidden" libraries, object files and flags are used when
11543 # linking a shared library.
11544 #
11545 # There doesn't appear to be a way to prevent this compiler from
11546 # explicitly linking system object files so we need to strip them
11547 # from the output so that they don't get included in the library
11548 # dependencies.
11549 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'
11550 ;;
11551 *)
11552 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11553 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11554 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'
11555
11556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11557 hardcode_libdir_separator_CXX=:
11558
11559 # Commands to make compiler produce verbose output that lists
11560 # what "hidden" libraries, object files and flags are used when
11561 # linking a shared library.
11562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11563
11564 else
11565 # FIXME: insert proper C++ library support
11566 ld_shlibs_CXX=no
11567 fi
11568 ;;
11569 esac
11570 ;;
11571 osf4* | osf5*)
11572 case $cc_basename in
11573 KCC*)
11574 # Kuck and Associates, Inc. (KAI) C++ Compiler
11575
11576 # KCC will only create a shared library if the output file
11577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11578 # to its proper name (with version) after linking.
11579 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'
11580
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11582 hardcode_libdir_separator_CXX=:
11583
11584 # Archives containing C++ object files must be created using
11585 # the KAI C++ compiler.
11586 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11587 ;;
11588 RCC*)
11589 # Rational C++ 2.4.1
11590 # FIXME: insert proper C++ library support
11591 ld_shlibs_CXX=no
11592 ;;
11593 cxx*)
11594 allow_undefined_flag_CXX=' -expect_unresolved \*'
11595 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'
11596 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11597 echo "-hidden">> $lib.exp~
11598 $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~
11599 $rm $lib.exp'
11600
11601 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11602 hardcode_libdir_separator_CXX=:
11603
11604 # Commands to make compiler produce verbose output that lists
11605 # what "hidden" libraries, object files and flags are used when
11606 # linking a shared library.
11607 #
11608 # There doesn't appear to be a way to prevent this compiler from
11609 # explicitly linking system object files so we need to strip them
11610 # from the output so that they don't get included in the library
11611 # dependencies.
11612 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'
11613 ;;
11614 *)
11615 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11616 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11617 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'
11618
11619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11620 hardcode_libdir_separator_CXX=:
11621
11622 # Commands to make compiler produce verbose output that lists
11623 # what "hidden" libraries, object files and flags are used when
11624 # linking a shared library.
11625 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11626
11627 else
11628 # FIXME: insert proper C++ library support
11629 ld_shlibs_CXX=no
11630 fi
11631 ;;
11632 esac
11633 ;;
11634 psos*)
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
11638 sunos4*)
11639 case $cc_basename in
11640 CC*)
11641 # Sun C++ 4.x
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 lcc*)
11646 # Lucid
11647 # FIXME: insert proper C++ library support
11648 ld_shlibs_CXX=no
11649 ;;
11650 *)
11651 # FIXME: insert proper C++ library support
11652 ld_shlibs_CXX=no
11653 ;;
11654 esac
11655 ;;
11656 solaris*)
11657 case $cc_basename in
11658 CC*)
11659 # Sun C++ 4.2, 5.x and Centerline C++
11660 archive_cmds_need_lc_CXX=yes
11661 no_undefined_flag_CXX=' -zdefs'
11662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11663 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11664 $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'
11665
11666 hardcode_libdir_flag_spec_CXX='-R$libdir'
11667 hardcode_shlibpath_var_CXX=no
11668 case $host_os in
11669 solaris2.[0-5] | solaris2.[0-5].*) ;;
11670 *)
11671 # The compiler driver will combine and reorder linker options,
11672 # but understands `-z linker_flag'.
11673 # Supported since Solaris 2.6 (maybe 2.5.1?)
11674 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11675 ;;
11676 esac
11677 link_all_deplibs_CXX=yes
11678
11679 output_verbose_link_cmd='echo'
11680
11681 # Archives containing C++ object files must be created using
11682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11683 # necessary to make sure instantiated templates are included
11684 # in the archive.
11685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11686 ;;
11687 gcx*)
11688 # Green Hills C++ Compiler
11689 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11690
11691 # The C++ compiler must be used to create the archive.
11692 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11693 ;;
11694 *)
11695 # GNU C++ compiler with Solaris linker
11696 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11697 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11698 if $CC --version | grep -v '^2\.7' > /dev/null; then
11699 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11700 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11701 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11702
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11706 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11707 else
11708 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11709 # platform.
11710 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718 fi
11719
11720 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11721 case $host_os in
11722 solaris2.[0-5] | solaris2.[0-5].*) ;;
11723 *)
11724 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11725 ;;
11726 esac
11727 fi
11728 ;;
11729 esac
11730 ;;
11731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11732 no_undefined_flag_CXX='${wl}-z,text'
11733 archive_cmds_need_lc_CXX=no
11734 hardcode_shlibpath_var_CXX=no
11735 runpath_var='LD_RUN_PATH'
11736
11737 case $cc_basename in
11738 CC*)
11739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11741 ;;
11742 *)
11743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745 ;;
11746 esac
11747 ;;
11748 sysv5* | sco3.2v5* | sco5v6*)
11749 # Note: We can NOT use -z defs as we might desire, because we do not
11750 # link with -lc, and that would cause any symbols used from libc to
11751 # always be unresolved, which means just about no library would
11752 # ever link correctly. If we're not using GNU ld we use -z text
11753 # though, which does catch some bad symbols but isn't as heavy-handed
11754 # as -z defs.
11755 # For security reasons, it is highly recommended that you always
11756 # use absolute paths for naming shared libraries, and exclude the
11757 # DT_RUNPATH tag from executables and libraries. But doing so
11758 # requires that you compile everything twice, which is a pain.
11759 # So that behaviour is only enabled if SCOABSPATH is set to a
11760 # non-empty value in the environment. Most likely only useful for
11761 # creating official distributions of packages.
11762 # This is a hack until libtool officially supports absolute path
11763 # names for shared libraries.
11764 no_undefined_flag_CXX='${wl}-z,text'
11765 allow_undefined_flag_CXX='${wl}-z,nodefs'
11766 archive_cmds_need_lc_CXX=no
11767 hardcode_shlibpath_var_CXX=no
11768 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11769 hardcode_libdir_separator_CXX=':'
11770 link_all_deplibs_CXX=yes
11771 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11772 runpath_var='LD_RUN_PATH'
11773
11774 case $cc_basename in
11775 CC*)
11776 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 ;;
11779 *)
11780 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11781 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782 ;;
11783 esac
11784 ;;
11785 tandem*)
11786 case $cc_basename in
11787 NCC*)
11788 # NonStop-UX NCC 3.20
11789 # FIXME: insert proper C++ library support
11790 ld_shlibs_CXX=no
11791 ;;
11792 *)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 esac
11797 ;;
11798 vxworks*)
11799 # FIXME: insert proper C++ library support
11800 ld_shlibs_CXX=no
11801 ;;
11802 *)
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806esac
11807{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11808$as_echo "$ld_shlibs_CXX" >&6; }
11809test "$ld_shlibs_CXX" = no && can_build_shared=no
11810
11811GCC_CXX="$GXX"
11812LD_CXX="$LD"
11813
11814cat > conftest.$ac_ext <<EOF
11815class Foo
11816{
11817public:
11818 Foo (void) { a = 0; }
11819private:
11820 int a;
11821};
11822EOF
11823
11824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>&5
11826 ac_status=$?
11827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; then
11829 # Parse the compiler output and extract the necessary
11830 # objects, libraries and library flags.
11831
11832 # Sentinel used to keep track of whether or not we are before
11833 # the conftest object file.
11834 pre_test_object_deps_done=no
11835
11836 # The `*' in the case matches for architectures that use `case' in
11837 # $output_verbose_cmd can trigger glob expansion during the loop
11838 # eval without this substitution.
11839 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11840
11841 for p in `eval $output_verbose_link_cmd`; do
11842 case $p in
11843
11844 -L* | -R* | -l*)
11845 # Some compilers place space between "-{L,R}" and the path.
11846 # Remove the space.
11847 if test $p = "-L" \
11848 || test $p = "-R"; then
11849 prev=$p
11850 continue
11851 else
11852 prev=
11853 fi
11854
11855 if test "$pre_test_object_deps_done" = no; then
11856 case $p in
11857 -L* | -R*)
11858 # Internal compiler library paths should come after those
11859 # provided the user. The postdeps already come after the
11860 # user supplied libs so there is no need to process them.
11861 if test -z "$compiler_lib_search_path_CXX"; then
11862 compiler_lib_search_path_CXX="${prev}${p}"
11863 else
11864 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11865 fi
11866 ;;
11867 # The "-l" case would never come before the object being
11868 # linked, so don't bother handling this case.
11869 esac
11870 else
11871 if test -z "$postdeps_CXX"; then
11872 postdeps_CXX="${prev}${p}"
11873 else
11874 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11875 fi
11876 fi
11877 ;;
11878
11879 *.$objext)
11880 # This assumes that the test object file only shows up
11881 # once in the compiler output.
11882 if test "$p" = "conftest.$objext"; then
11883 pre_test_object_deps_done=yes
11884 continue
11885 fi
11886
11887 if test "$pre_test_object_deps_done" = no; then
11888 if test -z "$predep_objects_CXX"; then
11889 predep_objects_CXX="$p"
11890 else
11891 predep_objects_CXX="$predep_objects_CXX $p"
11892 fi
11893 else
11894 if test -z "$postdep_objects_CXX"; then
11895 postdep_objects_CXX="$p"
11896 else
11897 postdep_objects_CXX="$postdep_objects_CXX $p"
11898 fi
11899 fi
11900 ;;
11901
11902 *) ;; # Ignore the rest.
11903
11904 esac
11905 done
11906
11907 # Clean up.
11908 rm -f a.out a.exe
11909else
11910 echo "libtool.m4: error: problem compiling CXX test program"
11911fi
11912
11913$rm -f confest.$objext
11914
11915compiler_lib_search_dirs_CXX=
11916if test -n "$compiler_lib_search_path_CXX"; then
11917 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11918fi
11919
11920# PORTME: override above test on systems where it is broken
11921case $host_os in
11922interix[3-9]*)
11923 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11924 # hack all around it, let's just trust "g++" to DTRT.
11925 predep_objects_CXX=
11926 postdep_objects_CXX=
11927 postdeps_CXX=
11928 ;;
11929
11930linux*)
11931 case `$CC -V 2>&1 | sed 5q` in
11932 *Sun\ C*)
11933 # Sun C++ 5.9
11934 #
11935 # The more standards-conforming stlport4 library is
11936 # incompatible with the Cstd library. Avoid specifying
11937 # it if it's in CXXFLAGS. Ignore libCrun as
11938 # -library=stlport4 depends on it.
11939 case " $CXX $CXXFLAGS " in
11940 *" -library=stlport4 "*)
11941 solaris_use_stlport4=yes
11942 ;;
11943 esac
11944 if test "$solaris_use_stlport4" != yes; then
11945 postdeps_CXX='-library=Cstd -library=Crun'
11946 fi
11947 ;;
11948 esac
11949 ;;
11950
11951solaris*)
11952 case $cc_basename in
11953 CC*)
11954 # The more standards-conforming stlport4 library is
11955 # incompatible with the Cstd library. Avoid specifying
11956 # it if it's in CXXFLAGS. Ignore libCrun as
11957 # -library=stlport4 depends on it.
11958 case " $CXX $CXXFLAGS " in
11959 *" -library=stlport4 "*)
11960 solaris_use_stlport4=yes
11961 ;;
11962 esac
11963
11964 # Adding this requires a known-good setup of shared libraries for
11965 # Sun compiler versions before 5.6, else PIC objects from an old
11966 # archive will be linked into the output, leading to subtle bugs.
11967 if test "$solaris_use_stlport4" != yes; then
11968 postdeps_CXX='-library=Cstd -library=Crun'
11969 fi
11970 ;;
11971 esac
11972 ;;
11973esac
11974
11975case " $postdeps_CXX " in
11976*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11977esac
11978
11979lt_prog_compiler_wl_CXX=
11980lt_prog_compiler_pic_CXX=
11981lt_prog_compiler_static_CXX=
11982
11983{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11984$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11985
11986 # C++ specific cases for pic, static, wl, etc.
11987 if test "$GXX" = yes; then
11988 lt_prog_compiler_wl_CXX='-Wl,'
11989 lt_prog_compiler_static_CXX='-static'
11990
11991 case $host_os in
11992 aix*)
11993 # All AIX code is PIC.
11994 if test "$host_cpu" = ia64; then
11995 # AIX 5 now supports IA64 processor
11996 lt_prog_compiler_static_CXX='-Bstatic'
11997 fi
11998 ;;
11999 amigaos*)
12000 # FIXME: we need at least 68020 code to build shared libraries, but
12001 # adding the `-m68020' flag to GCC prevents building anything better,
12002 # like `-m68040'.
12003 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12004 ;;
12005 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12006 # PIC is the default for these OSes.
12007 ;;
12008 mingw* | cygwin* | os2* | pw32*)
12009 # This hack is so that the source file can tell whether it is being
12010 # built for inclusion in a dll (and should export symbols for example).
12011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12012 # (--disable-auto-import) libraries
12013 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12014 ;;
12015 darwin* | rhapsody*)
12016 # PIC is the default on this platform
12017 # Common symbols not allowed in MH_DYLIB files
12018 lt_prog_compiler_pic_CXX='-fno-common'
12019 ;;
12020 *djgpp*)
12021 # DJGPP does not support shared libraries at all
12022 lt_prog_compiler_pic_CXX=
12023 ;;
12024 interix[3-9]*)
12025 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12026 # Instead, we relocate shared libraries at runtime.
12027 ;;
12028 sysv4*MP*)
12029 if test -d /usr/nec; then
12030 lt_prog_compiler_pic_CXX=-Kconform_pic
12031 fi
12032 ;;
12033 hpux*)
12034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12035 # not for PA HP-UX.
12036 case $host_cpu in
12037 hppa*64*|ia64*)
12038 ;;
12039 *)
12040 lt_prog_compiler_pic_CXX='-fPIC'
12041 ;;
12042 esac
12043 ;;
12044 *)
12045 lt_prog_compiler_pic_CXX='-fPIC'
12046 ;;
12047 esac
12048 else
12049 case $host_os in
12050 aix[4-9]*)
12051 # All AIX code is PIC.
12052 if test "$host_cpu" = ia64; then
12053 # AIX 5 now supports IA64 processor
12054 lt_prog_compiler_static_CXX='-Bstatic'
12055 else
12056 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12057 fi
12058 ;;
12059 chorus*)
12060 case $cc_basename in
12061 cxch68*)
12062 # Green Hills C++ Compiler
12063 # _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"
12064 ;;
12065 esac
12066 ;;
12067 darwin*)
12068 # PIC is the default on this platform
12069 # Common symbols not allowed in MH_DYLIB files
12070 case $cc_basename in
12071 xlc*)
12072 lt_prog_compiler_pic_CXX='-qnocommon'
12073 lt_prog_compiler_wl_CXX='-Wl,'
12074 ;;
12075 esac
12076 ;;
12077 dgux*)
12078 case $cc_basename in
12079 ec++*)
12080 lt_prog_compiler_pic_CXX='-KPIC'
12081 ;;
12082 ghcx*)
12083 # Green Hills C++ Compiler
12084 lt_prog_compiler_pic_CXX='-pic'
12085 ;;
12086 *)
12087 ;;
12088 esac
12089 ;;
12090 freebsd* | dragonfly*)
12091 # FreeBSD uses GNU C++
12092 ;;
12093 hpux9* | hpux10* | hpux11*)
12094 case $cc_basename in
12095 CC*)
12096 lt_prog_compiler_wl_CXX='-Wl,'
12097 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12098 if test "$host_cpu" != ia64; then
12099 lt_prog_compiler_pic_CXX='+Z'
12100 fi
12101 ;;
12102 aCC*)
12103 lt_prog_compiler_wl_CXX='-Wl,'
12104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105 case $host_cpu in
12106 hppa*64*|ia64*)
12107 # +Z the default
12108 ;;
12109 *)
12110 lt_prog_compiler_pic_CXX='+Z'
12111 ;;
12112 esac
12113 ;;
12114 *)
12115 ;;
12116 esac
12117 ;;
12118 interix*)
12119 # This is c89, which is MS Visual C++ (no shared libs)
12120 # Anyone wants to do a port?
12121 ;;
12122 irix5* | irix6* | nonstopux*)
12123 case $cc_basename in
12124 CC*)
12125 lt_prog_compiler_wl_CXX='-Wl,'
12126 lt_prog_compiler_static_CXX='-non_shared'
12127 # CC pic flag -KPIC is the default.
12128 ;;
12129 *)
12130 ;;
12131 esac
12132 ;;
12133 linux* | k*bsd*-gnu)
12134 case $cc_basename in
12135 KCC*)
12136 # KAI C++ Compiler
12137 lt_prog_compiler_wl_CXX='--backend -Wl,'
12138 lt_prog_compiler_pic_CXX='-fPIC'
12139 ;;
12140 icpc* | ecpc*)
12141 # Intel C++
12142 lt_prog_compiler_wl_CXX='-Wl,'
12143 lt_prog_compiler_pic_CXX='-KPIC'
12144 lt_prog_compiler_static_CXX='-static'
12145 ;;
12146 pgCC* | pgcpp*)
12147 # Portland Group C++ compiler.
12148 lt_prog_compiler_wl_CXX='-Wl,'
12149 lt_prog_compiler_pic_CXX='-fpic'
12150 lt_prog_compiler_static_CXX='-Bstatic'
12151 ;;
12152 cxx*)
12153 # Compaq C++
12154 # Make sure the PIC flag is empty. It appears that all Alpha
12155 # Linux and Compaq Tru64 Unix objects are PIC.
12156 lt_prog_compiler_pic_CXX=
12157 lt_prog_compiler_static_CXX='-non_shared'
12158 ;;
12159 *)
12160 case `$CC -V 2>&1 | sed 5q` in
12161 *Sun\ C*)
12162 # Sun C++ 5.9
12163 lt_prog_compiler_pic_CXX='-KPIC'
12164 lt_prog_compiler_static_CXX='-Bstatic'
12165 lt_prog_compiler_wl_CXX='-Qoption ld '
12166 ;;
12167 esac
12168 ;;
12169 esac
12170 ;;
12171 lynxos*)
12172 ;;
12173 m88k*)
12174 ;;
12175 mvs*)
12176 case $cc_basename in
12177 cxx*)
12178 lt_prog_compiler_pic_CXX='-W c,exportall'
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 netbsd*)
12185 ;;
12186 osf3* | osf4* | osf5*)
12187 case $cc_basename in
12188 KCC*)
12189 lt_prog_compiler_wl_CXX='--backend -Wl,'
12190 ;;
12191 RCC*)
12192 # Rational C++ 2.4.1
12193 lt_prog_compiler_pic_CXX='-pic'
12194 ;;
12195 cxx*)
12196 # Digital/Compaq C++
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 # Make sure the PIC flag is empty. It appears that all Alpha
12199 # Linux and Compaq Tru64 Unix objects are PIC.
12200 lt_prog_compiler_pic_CXX=
12201 lt_prog_compiler_static_CXX='-non_shared'
12202 ;;
12203 *)
12204 ;;
12205 esac
12206 ;;
12207 psos*)
12208 ;;
12209 solaris*)
12210 case $cc_basename in
12211 CC*)
12212 # Sun C++ 4.2, 5.x and Centerline C++
12213 lt_prog_compiler_pic_CXX='-KPIC'
12214 lt_prog_compiler_static_CXX='-Bstatic'
12215 lt_prog_compiler_wl_CXX='-Qoption ld '
12216 ;;
12217 gcx*)
12218 # Green Hills C++ Compiler
12219 lt_prog_compiler_pic_CXX='-PIC'
12220 ;;
12221 *)
12222 ;;
12223 esac
12224 ;;
12225 sunos4*)
12226 case $cc_basename in
12227 CC*)
12228 # Sun C++ 4.x
12229 lt_prog_compiler_pic_CXX='-pic'
12230 lt_prog_compiler_static_CXX='-Bstatic'
12231 ;;
12232 lcc*)
12233 # Lucid
12234 lt_prog_compiler_pic_CXX='-pic'
12235 ;;
12236 *)
12237 ;;
12238 esac
12239 ;;
12240 tandem*)
12241 case $cc_basename in
12242 NCC*)
12243 # NonStop-UX NCC 3.20
12244 lt_prog_compiler_pic_CXX='-KPIC'
12245 ;;
12246 *)
12247 ;;
12248 esac
12249 ;;
12250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12251 case $cc_basename in
12252 CC*)
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_pic_CXX='-KPIC'
12255 lt_prog_compiler_static_CXX='-Bstatic'
12256 ;;
12257 esac
12258 ;;
12259 vxworks*)
12260 ;;
12261 *)
12262 lt_prog_compiler_can_build_shared_CXX=no
12263 ;;
12264 esac
12265 fi
12266
12267{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12268$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12269
12270#
12271# Check to make sure the PIC flag actually works.
12272#
12273if test -n "$lt_prog_compiler_pic_CXX"; then
12274
12275{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12276$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12277if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12278 $as_echo_n "(cached) " >&6
12279else
12280 lt_cv_prog_compiler_pic_works_CXX=no
12281 ac_outfile=conftest.$ac_objext
12282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12283 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12284 # Insert the option either (1) after the last *FLAGS variable, or
12285 # (2) before a word containing "conftest.", or (3) at the end.
12286 # Note that $ac_compile itself does not contain backslashes and begins
12287 # with a dollar sign (not a hyphen), so the echo should work correctly.
12288 # The option is referenced via a variable to avoid confusing sed.
12289 lt_compile=`echo "$ac_compile" | $SED \
12290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12292 -e 's:$: $lt_compiler_flag:'`
12293 (eval echo "\"\$as_me:12293: $lt_compile\"" >&5)
12294 (eval "$lt_compile" 2>conftest.err)
12295 ac_status=$?
12296 cat conftest.err >&5
12297 echo "$as_me:12297: \$? = $ac_status" >&5
12298 if (exit $ac_status) && test -s "$ac_outfile"; then
12299 # The compiler can only warn and ignore the option if not recognized
12300 # So say no if there are warnings other than the usual output.
12301 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12304 lt_cv_prog_compiler_pic_works_CXX=yes
12305 fi
12306 fi
12307 $rm conftest*
12308
12309fi
12310{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12311$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12312
12313if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12314 case $lt_prog_compiler_pic_CXX in
12315 "" | " "*) ;;
12316 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12317 esac
12318else
12319 lt_prog_compiler_pic_CXX=
12320 lt_prog_compiler_can_build_shared_CXX=no
12321fi
12322
12323fi
12324case $host_os in
12325 # For platforms which do not support PIC, -DPIC is meaningless:
12326 *djgpp*)
12327 lt_prog_compiler_pic_CXX=
12328 ;;
12329 *)
12330 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12331 ;;
12332esac
12333
12334#
12335# Check to make sure the static flag actually works.
12336#
12337wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12338{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12339$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12340if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12341 $as_echo_n "(cached) " >&6
12342else
12343 lt_cv_prog_compiler_static_works_CXX=no
12344 save_LDFLAGS="$LDFLAGS"
12345 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12348 # The linker can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 if test -s conftest.err; then
12351 # Append any errors to the config.log.
12352 cat conftest.err 1>&5
12353 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12355 if diff conftest.exp conftest.er2 >/dev/null; then
12356 lt_cv_prog_compiler_static_works_CXX=yes
12357 fi
12358 else
12359 lt_cv_prog_compiler_static_works_CXX=yes
12360 fi
12361 fi
12362 $rm -r conftest*
12363 LDFLAGS="$save_LDFLAGS"
12364
12365fi
12366{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12367$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12368
12369if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12370 :
12371else
12372 lt_prog_compiler_static_CXX=
12373fi
12374
12375
12376{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12378if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12379 $as_echo_n "(cached) " >&6
12380else
12381 lt_cv_prog_compiler_c_o_CXX=no
12382 $rm -r conftest 2>/dev/null
12383 mkdir conftest
12384 cd conftest
12385 mkdir out
12386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12387
12388 lt_compiler_flag="-o out/conftest2.$ac_objext"
12389 # Insert the option either (1) after the last *FLAGS variable, or
12390 # (2) before a word containing "conftest.", or (3) at the end.
12391 # Note that $ac_compile itself does not contain backslashes and begins
12392 # with a dollar sign (not a hyphen), so the echo should work correctly.
12393 lt_compile=`echo "$ac_compile" | $SED \
12394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12396 -e 's:$: $lt_compiler_flag:'`
12397 (eval echo "\"\$as_me:12397: $lt_compile\"" >&5)
12398 (eval "$lt_compile" 2>out/conftest.err)
12399 ac_status=$?
12400 cat out/conftest.err >&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12403 then
12404 # The compiler can only warn and ignore the option if not recognized
12405 # So say no if there are warnings
12406 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12409 lt_cv_prog_compiler_c_o_CXX=yes
12410 fi
12411 fi
12412 chmod u+w . 2>&5
12413 $rm conftest*
12414 # SGI C++ compiler will create directory out/ii_files/ for
12415 # template instantiation
12416 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12417 $rm out/* && rmdir out
12418 cd ..
12419 rmdir conftest
12420 $rm conftest*
12421
12422fi
12423{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12424$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12425
12426
12427hard_links="nottested"
12428if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12429 # do not overwrite the value of need_locks provided by the user
12430 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12431$as_echo_n "checking if we can lock with hard links... " >&6; }
12432 hard_links=yes
12433 $rm conftest*
12434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12435 touch conftest.a
12436 ln conftest.a conftest.b 2>&5 || hard_links=no
12437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12438 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12439$as_echo "$hard_links" >&6; }
12440 if test "$hard_links" = no; then
12441 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12442$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12443 need_locks=warn
12444 fi
12445else
12446 need_locks=no
12447fi
12448
12449{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12451
12452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12453 case $host_os in
12454 aix[4-9]*)
12455 # If we're using GNU nm, then we don't want the "-C" option.
12456 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12457 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12458 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'
12459 else
12460 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'
12461 fi
12462 ;;
12463 pw32*)
12464 export_symbols_cmds_CXX="$ltdll_cmds"
12465 ;;
12466 cygwin* | mingw*)
12467 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'
12468 ;;
12469 *)
12470 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12471 ;;
12472 esac
12473 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12474
12475{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12476$as_echo "$ld_shlibs_CXX" >&6; }
12477test "$ld_shlibs_CXX" = no && can_build_shared=no
12478
12479#
12480# Do we need to explicitly link libc?
12481#
12482case "x$archive_cmds_need_lc_CXX" in
12483x|xyes)
12484 # Assume -lc should be added
12485 archive_cmds_need_lc_CXX=yes
12486
12487 if test "$enable_shared" = yes && test "$GCC" = yes; then
12488 case $archive_cmds_CXX in
12489 *'~'*)
12490 # FIXME: we may have to deal with multi-command sequences.
12491 ;;
12492 '$CC '*)
12493 # Test whether the compiler implicitly links with -lc since on some
12494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12495 # to ld, don't add -lc before -lgcc.
12496 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12497$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12498 $rm conftest*
12499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12500
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>&5
12503 ac_status=$?
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } 2>conftest.err; then
12506 soname=conftest
12507 lib=conftest
12508 libobjs=conftest.$ac_objext
12509 deplibs=
12510 wl=$lt_prog_compiler_wl_CXX
12511 pic_flag=$lt_prog_compiler_pic_CXX
12512 compiler_flags=-v
12513 linker_flags=-v
12514 verstring=
12515 output_objdir=.
12516 libname=conftest
12517 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12518 allow_undefined_flag_CXX=
12519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12520 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12521 ac_status=$?
12522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }
12524 then
12525 archive_cmds_need_lc_CXX=no
12526 else
12527 archive_cmds_need_lc_CXX=yes
12528 fi
12529 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12530 else
12531 cat conftest.err 1>&5
12532 fi
12533 $rm conftest*
12534 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12535$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12536 ;;
12537 esac
12538 fi
12539 ;;
12540esac
12541
12542{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12543$as_echo_n "checking dynamic linker characteristics... " >&6; }
12544library_names_spec=
12545libname_spec='lib$name'
12546soname_spec=
12547shrext_cmds=".so"
12548postinstall_cmds=
12549postuninstall_cmds=
12550finish_cmds=
12551finish_eval=
12552shlibpath_var=
12553shlibpath_overrides_runpath=unknown
12554version_type=none
12555dynamic_linker="$host_os ld.so"
12556sys_lib_dlsearch_path_spec="/lib /usr/lib"
12557
12558need_lib_prefix=unknown
12559hardcode_into_libs=no
12560
12561# when you set need_version to no, make sure it does not cause -set_version
12562# flags to be left without arguments
12563need_version=unknown
12564
12565case $host_os in
12566aix3*)
12567 version_type=linux
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12569 shlibpath_var=LIBPATH
12570
12571 # AIX 3 has no versioning support, so we append a major version to the name.
12572 soname_spec='${libname}${release}${shared_ext}$major'
12573 ;;
12574
12575aix[4-9]*)
12576 version_type=linux
12577 need_lib_prefix=no
12578 need_version=no
12579 hardcode_into_libs=yes
12580 if test "$host_cpu" = ia64; then
12581 # AIX 5 supports IA64
12582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 else
12585 # With GCC up to 2.95.x, collect2 would create an import file
12586 # for dependence libraries. The import file would start with
12587 # the line `#! .'. This would cause the generated library to
12588 # depend on `.', always an invalid library. This was fixed in
12589 # development snapshots of GCC prior to 3.0.
12590 case $host_os in
12591 aix4 | aix4.[01] | aix4.[01].*)
12592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12593 echo ' yes '
12594 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12595 :
12596 else
12597 can_build_shared=no
12598 fi
12599 ;;
12600 esac
12601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12602 # soname into executable. Probably we can add versioning support to
12603 # collect2, so additional links can be useful in future.
12604 if test "$aix_use_runtimelinking" = yes; then
12605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12606 # instead of lib<name>.a to let people know that these are not
12607 # typical AIX shared libraries.
12608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12609 else
12610 # We preserve .a as extension for shared libraries through AIX4.2
12611 # and later when we are not doing run time linking.
12612 library_names_spec='${libname}${release}.a $libname.a'
12613 soname_spec='${libname}${release}${shared_ext}$major'
12614 fi
12615 shlibpath_var=LIBPATH
12616 fi
12617 ;;
12618
12619amigaos*)
12620 library_names_spec='$libname.ixlibrary $libname.a'
12621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12622 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'
12623 ;;
12624
12625beos*)
12626 library_names_spec='${libname}${shared_ext}'
12627 dynamic_linker="$host_os ld.so"
12628 shlibpath_var=LIBRARY_PATH
12629 ;;
12630
12631bsdi[45]*)
12632 version_type=linux
12633 need_version=no
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12639 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12640 # the default ld.so.conf also contains /usr/contrib/lib and
12641 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12642 # libtool to hard-code these into programs
12643 ;;
12644
12645cygwin* | mingw* | pw32*)
12646 version_type=windows
12647 shrext_cmds=".dll"
12648 need_version=no
12649 need_lib_prefix=no
12650
12651 case $GCC,$host_os in
12652 yes,cygwin* | yes,mingw* | yes,pw32*)
12653 library_names_spec='$libname.dll.a'
12654 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12655 postinstall_cmds='base_file=`basename \${file}`~
12656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12657 dldir=$destdir/`dirname \$dlpath`~
12658 test -d \$dldir || mkdir -p \$dldir~
12659 $install_prog $dir/$dlname \$dldir/$dlname~
12660 chmod a+x \$dldir/$dlname'
12661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12662 dlpath=$dir/\$dldll~
12663 $rm \$dlpath'
12664 shlibpath_overrides_runpath=yes
12665
12666 case $host_os in
12667 cygwin*)
12668 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12669 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12670 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12671 ;;
12672 mingw*)
12673 # MinGW DLLs use traditional 'lib' prefix
12674 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12675 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12676 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12677 # It is most probably a Windows format PATH printed by
12678 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12679 # path with ; separators, and with drive letters. We can handle the
12680 # drive letters (cygwin fileutils understands them), so leave them,
12681 # especially as we might pass files found there to a mingw objdump,
12682 # which wouldn't understand a cygwinified path. Ahh.
12683 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12684 else
12685 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12686 fi
12687 ;;
12688 pw32*)
12689 # pw32 DLLs use 'pw' prefix rather than 'lib'
12690 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12691 ;;
12692 esac
12693 ;;
12694
12695 *)
12696 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12697 ;;
12698 esac
12699 dynamic_linker='Win32 ld.exe'
12700 # FIXME: first we should search . and the directory the executable is in
12701 shlibpath_var=PATH
12702 ;;
12703
12704darwin* | rhapsody*)
12705 dynamic_linker="$host_os dyld"
12706 version_type=darwin
12707 need_lib_prefix=no
12708 need_version=no
12709 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12710 soname_spec='${libname}${release}${major}$shared_ext'
12711 shlibpath_overrides_runpath=yes
12712 shlibpath_var=DYLD_LIBRARY_PATH
12713 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12714
12715 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716 ;;
12717
12718dgux*)
12719 version_type=linux
12720 need_lib_prefix=no
12721 need_version=no
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723 soname_spec='${libname}${release}${shared_ext}$major'
12724 shlibpath_var=LD_LIBRARY_PATH
12725 ;;
12726
12727freebsd1*)
12728 dynamic_linker=no
12729 ;;
12730
12731freebsd* | dragonfly*)
12732 # DragonFly does not have aout. When/if they implement a new
12733 # versioning mechanism, adjust this.
12734 if test -x /usr/bin/objformat; then
12735 objformat=`/usr/bin/objformat`
12736 else
12737 case $host_os in
12738 freebsd[123]*) objformat=aout ;;
12739 *) objformat=elf ;;
12740 esac
12741 fi
12742 version_type=freebsd-$objformat
12743 case $version_type in
12744 freebsd-elf*)
12745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12746 need_version=no
12747 need_lib_prefix=no
12748 ;;
12749 freebsd-*)
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12751 need_version=yes
12752 ;;
12753 esac
12754 shlibpath_var=LD_LIBRARY_PATH
12755 case $host_os in
12756 freebsd2*)
12757 shlibpath_overrides_runpath=yes
12758 ;;
12759 freebsd3.[01]* | freebsdelf3.[01]*)
12760 shlibpath_overrides_runpath=yes
12761 hardcode_into_libs=yes
12762 ;;
12763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12765 shlibpath_overrides_runpath=no
12766 hardcode_into_libs=yes
12767 ;;
12768 *) # from 4.6 on, and DragonFly
12769 shlibpath_overrides_runpath=yes
12770 hardcode_into_libs=yes
12771 ;;
12772 esac
12773 ;;
12774
12775gnu*)
12776 version_type=linux
12777 need_lib_prefix=no
12778 need_version=no
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12781 shlibpath_var=LD_LIBRARY_PATH
12782 hardcode_into_libs=yes
12783 ;;
12784
12785hpux9* | hpux10* | hpux11*)
12786 # Give a soname corresponding to the major version so that dld.sl refuses to
12787 # link against other versions.
12788 version_type=sunos
12789 need_lib_prefix=no
12790 need_version=no
12791 case $host_cpu in
12792 ia64*)
12793 shrext_cmds='.so'
12794 hardcode_into_libs=yes
12795 dynamic_linker="$host_os dld.so"
12796 shlibpath_var=LD_LIBRARY_PATH
12797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 if test "X$HPUX_IA64_MODE" = X32; then
12801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12802 else
12803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12804 fi
12805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12806 ;;
12807 hppa*64*)
12808 shrext_cmds='.sl'
12809 hardcode_into_libs=yes
12810 dynamic_linker="$host_os dld.sl"
12811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814 soname_spec='${libname}${release}${shared_ext}$major'
12815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12817 ;;
12818 *)
12819 shrext_cmds='.sl'
12820 dynamic_linker="$host_os dld.sl"
12821 shlibpath_var=SHLIB_PATH
12822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824 soname_spec='${libname}${release}${shared_ext}$major'
12825 ;;
12826 esac
12827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12828 postinstall_cmds='chmod 555 $lib'
12829 ;;
12830
12831interix[3-9]*)
12832 version_type=linux
12833 need_lib_prefix=no
12834 need_version=no
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12836 soname_spec='${libname}${release}${shared_ext}$major'
12837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=no
12840 hardcode_into_libs=yes
12841 ;;
12842
12843irix5* | irix6* | nonstopux*)
12844 case $host_os in
12845 nonstopux*) version_type=nonstopux ;;
12846 *)
12847 if test "$lt_cv_prog_gnu_ld" = yes; then
12848 version_type=linux
12849 else
12850 version_type=irix
12851 fi ;;
12852 esac
12853 need_lib_prefix=no
12854 need_version=no
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12857 case $host_os in
12858 irix5* | nonstopux*)
12859 libsuff= shlibsuff=
12860 ;;
12861 *)
12862 case $LD in # libtool.m4 will add one of these switches to LD
12863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12864 libsuff= shlibsuff= libmagic=32-bit;;
12865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12866 libsuff=32 shlibsuff=N32 libmagic=N32;;
12867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12869 *) libsuff= shlibsuff= libmagic=never-match;;
12870 esac
12871 ;;
12872 esac
12873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12874 shlibpath_overrides_runpath=no
12875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12877 hardcode_into_libs=yes
12878 ;;
12879
12880# No shared lib support for Linux oldld, aout, or coff.
12881linux*oldld* | linux*aout* | linux*coff*)
12882 dynamic_linker=no
12883 ;;
12884
12885# This must be Linux ELF.
12886linux* | k*bsd*-gnu)
12887 version_type=linux
12888 need_lib_prefix=no
12889 need_version=no
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12893 shlibpath_var=LD_LIBRARY_PATH
12894 shlibpath_overrides_runpath=no
12895 # This implies no fast_install, which is unacceptable.
12896 # Some rework will be needed to allow for fast_install
12897 # before this can be enabled.
12898 hardcode_into_libs=yes
12899
12900 # Append ld.so.conf contents to the search path
12901 if test -f /etc/ld.so.conf; then
12902 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' ' '`
12903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12904 fi
12905
12906 # We used to test for /lib/ld.so.1 and disable shared libraries on
12907 # powerpc, because MkLinux only supported shared libraries with the
12908 # GNU dynamic linker. Since this was broken with cross compilers,
12909 # most powerpc-linux boxes support dynamic linking these days and
12910 # people can always --disable-shared, the test was removed, and we
12911 # assume the GNU/Linux dynamic linker is in use.
12912 dynamic_linker='GNU/Linux ld.so'
12913 ;;
12914
12915netbsd*)
12916 version_type=sunos
12917 need_lib_prefix=no
12918 need_version=no
12919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12923 else
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12927 fi
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12931 ;;
12932
12933newsos6)
12934 version_type=linux
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12938 ;;
12939
12940nto-qnx*)
12941 version_type=linux
12942 need_lib_prefix=no
12943 need_version=no
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=yes
12948 ;;
12949
12950openbsd*)
12951 version_type=sunos
12952 sys_lib_dlsearch_path_spec="/usr/lib"
12953 need_lib_prefix=no
12954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12955 case $host_os in
12956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12957 *) need_version=no ;;
12958 esac
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12961 shlibpath_var=LD_LIBRARY_PATH
12962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12963 case $host_os in
12964 openbsd2.[89] | openbsd2.[89].*)
12965 shlibpath_overrides_runpath=no
12966 ;;
12967 *)
12968 shlibpath_overrides_runpath=yes
12969 ;;
12970 esac
12971 else
12972 shlibpath_overrides_runpath=yes
12973 fi
12974 ;;
12975
12976os2*)
12977 libname_spec='$name'
12978 shrext_cmds=".dll"
12979 need_lib_prefix=no
12980 library_names_spec='$libname${shared_ext} $libname.a'
12981 dynamic_linker='OS/2 ld.exe'
12982 shlibpath_var=LIBPATH
12983 ;;
12984
12985osf3* | osf4* | osf5*)
12986 version_type=osf
12987 need_lib_prefix=no
12988 need_version=no
12989 soname_spec='${libname}${release}${shared_ext}$major'
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12991 shlibpath_var=LD_LIBRARY_PATH
12992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12994 ;;
12995
12996rdos*)
12997 dynamic_linker=no
12998 ;;
12999
13000solaris*)
13001 version_type=linux
13002 need_lib_prefix=no
13003 need_version=no
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13009 # ldd complains unless libraries are executable
13010 postinstall_cmds='chmod +x $lib'
13011 ;;
13012
13013sunos4*)
13014 version_type=sunos
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 if test "$with_gnu_ld" = yes; then
13020 need_lib_prefix=no
13021 fi
13022 need_version=yes
13023 ;;
13024
13025sysv4 | sysv4.3*)
13026 version_type=linux
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 case $host_vendor in
13031 sni)
13032 shlibpath_overrides_runpath=no
13033 need_lib_prefix=no
13034 export_dynamic_flag_spec='${wl}-Blargedynsym'
13035 runpath_var=LD_RUN_PATH
13036 ;;
13037 siemens)
13038 need_lib_prefix=no
13039 ;;
13040 motorola)
13041 need_lib_prefix=no
13042 need_version=no
13043 shlibpath_overrides_runpath=no
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13045 ;;
13046 esac
13047 ;;
13048
13049sysv4*MP*)
13050 if test -d /usr/nec ;then
13051 version_type=linux
13052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053 soname_spec='$libname${shared_ext}.$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 fi
13056 ;;
13057
13058sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059 version_type=freebsd-elf
13060 need_lib_prefix=no
13061 need_version=no
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 hardcode_into_libs=yes
13066 if test "$with_gnu_ld" = yes; then
13067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068 shlibpath_overrides_runpath=no
13069 else
13070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071 shlibpath_overrides_runpath=yes
13072 case $host_os in
13073 sco3.2v5*)
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13075 ;;
13076 esac
13077 fi
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13079 ;;
13080
13081uts4*)
13082 version_type=linux
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13086 ;;
13087
13088*)
13089 dynamic_linker=no
13090 ;;
13091esac
13092{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093$as_echo "$dynamic_linker" >&6; }
13094test "$dynamic_linker" = no && can_build_shared=no
13095
13096if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13097 $as_echo_n "(cached) " >&6
13098else
13099 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13100fi
13101
13102sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13103if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13105else
13106 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13107fi
13108
13109sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13110
13111variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13112if test "$GCC" = yes; then
13113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13114fi
13115
13116{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13117$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13118hardcode_action_CXX=
13119if test -n "$hardcode_libdir_flag_spec_CXX" || \
13120 test -n "$runpath_var_CXX" || \
13121 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13122
13123 # We can hardcode non-existant directories.
13124 if test "$hardcode_direct_CXX" != no &&
13125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13126 # have to relink, otherwise we might link with an installed library
13127 # when we should be linking with a yet-to-be-installed one
13128 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13129 test "$hardcode_minus_L_CXX" != no; then
13130 # Linking always hardcodes the temporary library directory.
13131 hardcode_action_CXX=relink
13132 else
13133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13134 hardcode_action_CXX=immediate
13135 fi
13136else
13137 # We cannot hardcode anything, or else we can only hardcode existing
13138 # directories.
13139 hardcode_action_CXX=unsupported
13140fi
13141{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13142$as_echo "$hardcode_action_CXX" >&6; }
13143
13144if test "$hardcode_action_CXX" = relink; then
13145 # Fast installation is not supported
13146 enable_fast_install=no
13147elif test "$shlibpath_overrides_runpath" = yes ||
13148 test "$enable_shared" = no; then
13149 # Fast installation is not necessary
13150 enable_fast_install=needless
13151fi
13152
13153
13154# The else clause should only fire when bootstrapping the
13155# libtool distribution, otherwise you forgot to ship ltmain.sh
13156# with your package, and you will get complaints that there are
13157# no rules to generate ltmain.sh.
13158if test -f "$ltmain"; then
13159 # See if we are running on zsh, and set the options which allow our commands through
13160 # without removal of \ escapes.
13161 if test -n "${ZSH_VERSION+set}" ; then
13162 setopt NO_GLOB_SUBST
13163 fi
13164 # Now quote all the things that may contain metacharacters while being
13165 # careful not to overquote the AC_SUBSTed values. We take copies of the
13166 # variables and quote the copies for generation of the libtool script.
13167 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13168 SED SHELL STRIP \
13169 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13170 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13171 deplibs_check_method reload_flag reload_cmds need_locks \
13172 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13173 lt_cv_sys_global_symbol_to_c_name_address \
13174 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13175 old_postinstall_cmds old_postuninstall_cmds \
13176 compiler_CXX \
13177 CC_CXX \
13178 LD_CXX \
13179 lt_prog_compiler_wl_CXX \
13180 lt_prog_compiler_pic_CXX \
13181 lt_prog_compiler_static_CXX \
13182 lt_prog_compiler_no_builtin_flag_CXX \
13183 export_dynamic_flag_spec_CXX \
13184 thread_safe_flag_spec_CXX \
13185 whole_archive_flag_spec_CXX \
13186 enable_shared_with_static_runtimes_CXX \
13187 old_archive_cmds_CXX \
13188 old_archive_from_new_cmds_CXX \
13189 predep_objects_CXX \
13190 postdep_objects_CXX \
13191 predeps_CXX \
13192 postdeps_CXX \
13193 compiler_lib_search_path_CXX \
13194 compiler_lib_search_dirs_CXX \
13195 archive_cmds_CXX \
13196 archive_expsym_cmds_CXX \
13197 postinstall_cmds_CXX \
13198 postuninstall_cmds_CXX \
13199 old_archive_from_expsyms_cmds_CXX \
13200 allow_undefined_flag_CXX \
13201 no_undefined_flag_CXX \
13202 export_symbols_cmds_CXX \
13203 hardcode_libdir_flag_spec_CXX \
13204 hardcode_libdir_flag_spec_ld_CXX \
13205 hardcode_libdir_separator_CXX \
13206 hardcode_automatic_CXX \
13207 module_cmds_CXX \
13208 module_expsym_cmds_CXX \
13209 lt_cv_prog_compiler_c_o_CXX \
13210 fix_srcfile_path_CXX \
13211 exclude_expsyms_CXX \
13212 include_expsyms_CXX; do
13213
13214 case $var in
13215 old_archive_cmds_CXX | \
13216 old_archive_from_new_cmds_CXX | \
13217 archive_cmds_CXX | \
13218 archive_expsym_cmds_CXX | \
13219 module_cmds_CXX | \
13220 module_expsym_cmds_CXX | \
13221 old_archive_from_expsyms_cmds_CXX | \
13222 export_symbols_cmds_CXX | \
13223 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13224 postinstall_cmds | postuninstall_cmds | \
13225 old_postinstall_cmds | old_postuninstall_cmds | \
13226 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13227 # Double-quote double-evaled strings.
13228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13229 ;;
13230 *)
13231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13232 ;;
13233 esac
13234 done
13235
13236 case $lt_echo in
13237 *'\$0 --fallback-echo"')
13238 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13239 ;;
13240 esac
13241
13242cfgfile="$ofile"
13243
13244 cat <<__EOF__ >> "$cfgfile"
13245# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13246
13247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13248
13249# Shell to use when invoking shell scripts.
13250SHELL=$lt_SHELL
13251
13252# Whether or not to build shared libraries.
13253build_libtool_libs=$enable_shared
13254
13255# Whether or not to build static libraries.
13256build_old_libs=$enable_static
13257
13258# Whether or not to add -lc for building shared libraries.
13259build_libtool_need_lc=$archive_cmds_need_lc_CXX
13260
13261# Whether or not to disallow shared libs when runtime libs are static
13262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13263
13264# Whether or not to optimize for fast installation.
13265fast_install=$enable_fast_install
13266
13267# The host system.
13268host_alias=$host_alias
13269host=$host
13270host_os=$host_os
13271
13272# The build system.
13273build_alias=$build_alias
13274build=$build
13275build_os=$build_os
13276
13277# An echo program that does not interpret backslashes.
13278echo=$lt_echo
13279
13280# The archiver.
13281AR=$lt_AR
13282AR_FLAGS=$lt_AR_FLAGS
13283
13284# A C compiler.
13285LTCC=$lt_LTCC
13286
13287# LTCC compiler flags.
13288LTCFLAGS=$lt_LTCFLAGS
13289
13290# A language-specific compiler.
13291CC=$lt_compiler_CXX
13292
13293# Is the compiler the GNU C compiler?
13294with_gcc=$GCC_CXX
13295
13296# An ERE matcher.
13297EGREP=$lt_EGREP
13298
13299# The linker used to build libraries.
13300LD=$lt_LD_CXX
13301
13302# Whether we need hard or soft links.
13303LN_S=$lt_LN_S
13304
13305# A BSD-compatible nm program.
13306NM=$lt_NM
13307
13308# A symbol stripping program
13309STRIP=$lt_STRIP
13310
13311# Used to examine libraries when file_magic_cmd begins "file"
13312MAGIC_CMD=$MAGIC_CMD
13313
13314# Used on cygwin: DLL creation program.
13315DLLTOOL="$DLLTOOL"
13316
13317# Used on cygwin: object dumper.
13318OBJDUMP="$OBJDUMP"
13319
13320# Used on cygwin: assembler.
13321AS="$AS"
13322
13323# The name of the directory that contains temporary libtool files.
13324objdir=$objdir
13325
13326# How to create reloadable object files.
13327reload_flag=$lt_reload_flag
13328reload_cmds=$lt_reload_cmds
13329
13330# How to pass a linker flag through the compiler.
13331wl=$lt_lt_prog_compiler_wl_CXX
13332
13333# Object file suffix (normally "o").
13334objext="$ac_objext"
13335
13336# Old archive suffix (normally "a").
13337libext="$libext"
13338
13339# Shared library suffix (normally ".so").
13340shrext_cmds='$shrext_cmds'
13341
13342# Executable file suffix (normally "").
13343exeext="$exeext"
13344
13345# Additional compiler flags for building library objects.
13346pic_flag=$lt_lt_prog_compiler_pic_CXX
13347pic_mode=$pic_mode
13348
13349# What is the maximum length of a command?
13350max_cmd_len=$lt_cv_sys_max_cmd_len
13351
13352# Does compiler simultaneously support -c and -o options?
13353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13354
13355# Must we lock files when doing compilation?
13356need_locks=$lt_need_locks
13357
13358# Do we need the lib prefix for modules?
13359need_lib_prefix=$need_lib_prefix
13360
13361# Do we need a version for libraries?
13362need_version=$need_version
13363
13364# Whether dlopen is supported.
13365dlopen_support=$enable_dlopen
13366
13367# Whether dlopen of programs is supported.
13368dlopen_self=$enable_dlopen_self
13369
13370# Whether dlopen of statically linked programs is supported.
13371dlopen_self_static=$enable_dlopen_self_static
13372
13373# Compiler flag to prevent dynamic linking.
13374link_static_flag=$lt_lt_prog_compiler_static_CXX
13375
13376# Compiler flag to turn off builtin functions.
13377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13378
13379# Compiler flag to allow reflexive dlopens.
13380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13381
13382# Compiler flag to generate shared objects directly from archives.
13383whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13384
13385# Compiler flag to generate thread-safe objects.
13386thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13387
13388# Library versioning type.
13389version_type=$version_type
13390
13391# Format of library name prefix.
13392libname_spec=$lt_libname_spec
13393
13394# List of archive names. First name is the real one, the rest are links.
13395# The last name is the one that the linker finds with -lNAME.
13396library_names_spec=$lt_library_names_spec
13397
13398# The coded name of the library, if different from the real name.
13399soname_spec=$lt_soname_spec
13400
13401# Commands used to build and install an old-style archive.
13402RANLIB=$lt_RANLIB
13403old_archive_cmds=$lt_old_archive_cmds_CXX
13404old_postinstall_cmds=$lt_old_postinstall_cmds
13405old_postuninstall_cmds=$lt_old_postuninstall_cmds
13406
13407# Create an old-style archive from a shared archive.
13408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13409
13410# Create a temporary old-style archive to link instead of a shared archive.
13411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13412
13413# Commands used to build and install a shared archive.
13414archive_cmds=$lt_archive_cmds_CXX
13415archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13416postinstall_cmds=$lt_postinstall_cmds
13417postuninstall_cmds=$lt_postuninstall_cmds
13418
13419# Commands used to build a loadable module (assumed same as above if empty)
13420module_cmds=$lt_module_cmds_CXX
13421module_expsym_cmds=$lt_module_expsym_cmds_CXX
13422
13423# Commands to strip libraries.
13424old_striplib=$lt_old_striplib
13425striplib=$lt_striplib
13426
13427# Dependencies to place before the objects being linked to create a
13428# shared library.
13429predep_objects=$lt_predep_objects_CXX
13430
13431# Dependencies to place after the objects being linked to create a
13432# shared library.
13433postdep_objects=$lt_postdep_objects_CXX
13434
13435# Dependencies to place before the objects being linked to create a
13436# shared library.
13437predeps=$lt_predeps_CXX
13438
13439# Dependencies to place after the objects being linked to create a
13440# shared library.
13441postdeps=$lt_postdeps_CXX
13442
13443# The directories searched by this compiler when creating a shared
13444# library
13445compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13446
13447# The library search path used internally by the compiler when linking
13448# a shared library.
13449compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13450
13451# Method to check whether dependent libraries are shared objects.
13452deplibs_check_method=$lt_deplibs_check_method
13453
13454# Command to use when deplibs_check_method == file_magic.
13455file_magic_cmd=$lt_file_magic_cmd
13456
13457# Flag that allows shared libraries with undefined symbols to be built.
13458allow_undefined_flag=$lt_allow_undefined_flag_CXX
13459
13460# Flag that forces no undefined symbols.
13461no_undefined_flag=$lt_no_undefined_flag_CXX
13462
13463# Commands used to finish a libtool library installation in a directory.
13464finish_cmds=$lt_finish_cmds
13465
13466# Same as above, but a single script fragment to be evaled but not shown.
13467finish_eval=$lt_finish_eval
13468
13469# Take the output of nm and produce a listing of raw symbols and C names.
13470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13471
13472# Transform the output of nm in a proper C declaration
13473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13474
13475# Transform the output of nm in a C name address pair
13476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13477
13478# This is the shared library runtime path variable.
13479runpath_var=$runpath_var
13480
13481# This is the shared library path variable.
13482shlibpath_var=$shlibpath_var
13483
13484# Is shlibpath searched before the hard-coded library search path?
13485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13486
13487# How to hardcode a shared library path into an executable.
13488hardcode_action=$hardcode_action_CXX
13489
13490# Whether we should hardcode library paths into libraries.
13491hardcode_into_libs=$hardcode_into_libs
13492
13493# Flag to hardcode \$libdir into a binary during linking.
13494# This must work even if \$libdir does not exist.
13495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13496
13497# If ld is used when linking, flag to hardcode \$libdir into
13498# a binary during linking. This must work even if \$libdir does
13499# not exist.
13500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13501
13502# Whether we need a single -rpath flag with a separated argument.
13503hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13504
13505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13506# resulting binary.
13507hardcode_direct=$hardcode_direct_CXX
13508
13509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13510# resulting binary.
13511hardcode_minus_L=$hardcode_minus_L_CXX
13512
13513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13514# the resulting binary.
13515hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13516
13517# Set to yes if building a shared library automatically hardcodes DIR into the library
13518# and all subsequent libraries and executables linked against it.
13519hardcode_automatic=$hardcode_automatic_CXX
13520
13521# Variables whose values should be saved in libtool wrapper scripts and
13522# restored at relink time.
13523variables_saved_for_relink="$variables_saved_for_relink"
13524
13525# Whether libtool must link a program against all its dependency libraries.
13526link_all_deplibs=$link_all_deplibs_CXX
13527
13528# Compile-time system search path for libraries
13529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13530
13531# Run-time system search path for libraries
13532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13533
13534# Fix the shell variable \$srcfile for the compiler.
13535fix_srcfile_path=$lt_fix_srcfile_path
13536
13537# Set to yes if exported symbols are required.
13538always_export_symbols=$always_export_symbols_CXX
13539
13540# The commands to list exported symbols.
13541export_symbols_cmds=$lt_export_symbols_cmds_CXX
13542
13543# The commands to extract the exported symbol list from a shared archive.
13544extract_expsyms_cmds=$lt_extract_expsyms_cmds
13545
13546# Symbols that should not be listed in the preloaded symbols.
13547exclude_expsyms=$lt_exclude_expsyms_CXX
13548
13549# Symbols that must always be exported.
13550include_expsyms=$lt_include_expsyms_CXX
13551
13552# ### END LIBTOOL TAG CONFIG: $tagname
13553
13554__EOF__
13555
13556
13557else
13558 # If there is no Makefile yet, we rely on a make rule to execute
13559 # `config.status --recheck' to rerun these tests and create the
13560 # libtool script then.
13561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13562 if test -f "$ltmain_in"; then
13563 test -f Makefile && make "$ltmain"
13564 fi
13565fi
13566
13567
13568ac_ext=c
13569ac_cpp='$CPP $CPPFLAGS'
13570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572ac_compiler_gnu=$ac_cv_c_compiler_gnu
13573
13574CC=$lt_save_CC
13575LDCXX=$LD
13576LD=$lt_save_LD
13577GCC=$lt_save_GCC
13578with_gnu_ldcxx=$with_gnu_ld
13579with_gnu_ld=$lt_save_with_gnu_ld
13580lt_cv_path_LDCXX=$lt_cv_path_LD
13581lt_cv_path_LD=$lt_save_path_LD
13582lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13583lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13584
13585 else
13586 tagname=""
13587 fi
13588 ;;
13589
13590 F77)
13591 if test -n "$F77" && test "X$F77" != "Xno"; then
13592
13593ac_ext=f
13594ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13595ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13597
13598
13599archive_cmds_need_lc_F77=no
13600allow_undefined_flag_F77=
13601always_export_symbols_F77=no
13602archive_expsym_cmds_F77=
13603export_dynamic_flag_spec_F77=
13604hardcode_direct_F77=no
13605hardcode_libdir_flag_spec_F77=
13606hardcode_libdir_flag_spec_ld_F77=
13607hardcode_libdir_separator_F77=
13608hardcode_minus_L_F77=no
13609hardcode_automatic_F77=no
13610module_cmds_F77=
13611module_expsym_cmds_F77=
13612link_all_deplibs_F77=unknown
13613old_archive_cmds_F77=$old_archive_cmds
13614no_undefined_flag_F77=
13615whole_archive_flag_spec_F77=
13616enable_shared_with_static_runtimes_F77=no
13617
13618# Source file extension for f77 test sources.
13619ac_ext=f
13620
13621# Object file extension for compiled f77 test sources.
13622objext=o
13623objext_F77=$objext
13624
13625# Code to be used in simple compile tests
13626lt_simple_compile_test_code="\
13627 subroutine t
13628 return
13629 end
13630"
13631
13632# Code to be used in simple link tests
13633lt_simple_link_test_code="\
13634 program t
13635 end
13636"
13637
13638# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13639
13640# If no C compiler was specified, use CC.
13641LTCC=${LTCC-"$CC"}
13642
13643# If no C compiler flags were specified, use CFLAGS.
13644LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13645
13646# Allow CC to be a program name with arguments.
13647compiler=$CC
13648
13649
13650# save warnings/boilerplate of simple test code
13651ac_outfile=conftest.$ac_objext
13652echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13653eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13654_lt_compiler_boilerplate=`cat conftest.err`
13655$rm conftest*
13656
13657ac_outfile=conftest.$ac_objext
13658echo "$lt_simple_link_test_code" >conftest.$ac_ext
13659eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13660_lt_linker_boilerplate=`cat conftest.err`
13661$rm -r conftest*
13662
13663
13664# Allow CC to be a program name with arguments.
13665lt_save_CC="$CC"
13666CC=${F77-"f77"}
13667compiler=$CC
13668compiler_F77=$CC
13669for cc_temp in $compiler""; do
13670 case $cc_temp in
13671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13673 \-*) ;;
13674 *) break;;
13675 esac
13676done
13677cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13678
13679
13680{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13682{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13683$as_echo "$can_build_shared" >&6; }
13684
13685{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13686$as_echo_n "checking whether to build shared libraries... " >&6; }
13687test "$can_build_shared" = "no" && enable_shared=no
13688
13689# On AIX, shared libraries and static libraries use the same namespace, and
13690# are all built from PIC.
13691case $host_os in
13692aix3*)
13693 test "$enable_shared" = yes && enable_static=no
13694 if test -n "$RANLIB"; then
13695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13696 postinstall_cmds='$RANLIB $lib'
13697 fi
13698 ;;
13699aix[4-9]*)
13700 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13701 test "$enable_shared" = yes && enable_static=no
13702 fi
13703 ;;
13704esac
13705{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13706$as_echo "$enable_shared" >&6; }
13707
13708{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13709$as_echo_n "checking whether to build static libraries... " >&6; }
13710# Make sure either enable_shared or enable_static is yes.
13711test "$enable_shared" = yes || enable_static=yes
13712{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13713$as_echo "$enable_static" >&6; }
13714
13715GCC_F77="$G77"
13716LD_F77="$LD"
13717
13718lt_prog_compiler_wl_F77=
13719lt_prog_compiler_pic_F77=
13720lt_prog_compiler_static_F77=
13721
13722{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13723$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13724
13725 if test "$GCC" = yes; then
13726 lt_prog_compiler_wl_F77='-Wl,'
13727 lt_prog_compiler_static_F77='-static'
13728
13729 case $host_os in
13730 aix*)
13731 # All AIX code is PIC.
13732 if test "$host_cpu" = ia64; then
13733 # AIX 5 now supports IA64 processor
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 fi
13736 ;;
13737
13738 amigaos*)
13739 # FIXME: we need at least 68020 code to build shared libraries, but
13740 # adding the `-m68020' flag to GCC prevents building anything better,
13741 # like `-m68040'.
13742 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13743 ;;
13744
13745 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13746 # PIC is the default for these OSes.
13747 ;;
13748
13749 mingw* | cygwin* | pw32* | os2*)
13750 # This hack is so that the source file can tell whether it is being
13751 # built for inclusion in a dll (and should export symbols for example).
13752 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13753 # (--disable-auto-import) libraries
13754 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13755 ;;
13756
13757 darwin* | rhapsody*)
13758 # PIC is the default on this platform
13759 # Common symbols not allowed in MH_DYLIB files
13760 lt_prog_compiler_pic_F77='-fno-common'
13761 ;;
13762
13763 interix[3-9]*)
13764 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13765 # Instead, we relocate shared libraries at runtime.
13766 ;;
13767
13768 msdosdjgpp*)
13769 # Just because we use GCC doesn't mean we suddenly get shared libraries
13770 # on systems that don't support them.
13771 lt_prog_compiler_can_build_shared_F77=no
13772 enable_shared=no
13773 ;;
13774
13775 sysv4*MP*)
13776 if test -d /usr/nec; then
13777 lt_prog_compiler_pic_F77=-Kconform_pic
13778 fi
13779 ;;
13780
13781 hpux*)
13782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13783 # not for PA HP-UX.
13784 case $host_cpu in
13785 hppa*64*|ia64*)
13786 # +Z the default
13787 ;;
13788 *)
13789 lt_prog_compiler_pic_F77='-fPIC'
13790 ;;
13791 esac
13792 ;;
13793
13794 *)
13795 lt_prog_compiler_pic_F77='-fPIC'
13796 ;;
13797 esac
13798 else
13799 # PORTME Check for flag to pass linker flags through the system compiler.
13800 case $host_os in
13801 aix*)
13802 lt_prog_compiler_wl_F77='-Wl,'
13803 if test "$host_cpu" = ia64; then
13804 # AIX 5 now supports IA64 processor
13805 lt_prog_compiler_static_F77='-Bstatic'
13806 else
13807 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13808 fi
13809 ;;
13810 darwin*)
13811 # PIC is the default on this platform
13812 # Common symbols not allowed in MH_DYLIB files
13813 case $cc_basename in
13814 xlc*)
13815 lt_prog_compiler_pic_F77='-qnocommon'
13816 lt_prog_compiler_wl_F77='-Wl,'
13817 ;;
13818 esac
13819 ;;
13820
13821 mingw* | cygwin* | pw32* | os2*)
13822 # This hack is so that the source file can tell whether it is being
13823 # built for inclusion in a dll (and should export symbols for example).
13824 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13825 ;;
13826
13827 hpux9* | hpux10* | hpux11*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13830 # not for PA HP-UX.
13831 case $host_cpu in
13832 hppa*64*|ia64*)
13833 # +Z the default
13834 ;;
13835 *)
13836 lt_prog_compiler_pic_F77='+Z'
13837 ;;
13838 esac
13839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13840 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13841 ;;
13842
13843 irix5* | irix6* | nonstopux*)
13844 lt_prog_compiler_wl_F77='-Wl,'
13845 # PIC (with -KPIC) is the default.
13846 lt_prog_compiler_static_F77='-non_shared'
13847 ;;
13848
13849 newsos6)
13850 lt_prog_compiler_pic_F77='-KPIC'
13851 lt_prog_compiler_static_F77='-Bstatic'
13852 ;;
13853
13854 linux* | k*bsd*-gnu)
13855 case $cc_basename in
13856 icc* | ecc*)
13857 lt_prog_compiler_wl_F77='-Wl,'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-static'
13860 ;;
13861 pgcc* | pgf77* | pgf90* | pgf95*)
13862 # Portland Group compilers (*not* the Pentium gcc compiler,
13863 # which looks to be a dead project)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-fpic'
13866 lt_prog_compiler_static_F77='-Bstatic'
13867 ;;
13868 ccc*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # All Alpha code is PIC.
13871 lt_prog_compiler_static_F77='-non_shared'
13872 ;;
13873 *)
13874 case `$CC -V 2>&1 | sed 5q` in
13875 *Sun\ C*)
13876 # Sun C 5.9
13877 lt_prog_compiler_pic_F77='-KPIC'
13878 lt_prog_compiler_static_F77='-Bstatic'
13879 lt_prog_compiler_wl_F77='-Wl,'
13880 ;;
13881 *Sun\ F*)
13882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13883 lt_prog_compiler_pic_F77='-KPIC'
13884 lt_prog_compiler_static_F77='-Bstatic'
13885 lt_prog_compiler_wl_F77=''
13886 ;;
13887 esac
13888 ;;
13889 esac
13890 ;;
13891
13892 osf3* | osf4* | osf5*)
13893 lt_prog_compiler_wl_F77='-Wl,'
13894 # All OSF/1 code is PIC.
13895 lt_prog_compiler_static_F77='-non_shared'
13896 ;;
13897
13898 rdos*)
13899 lt_prog_compiler_static_F77='-non_shared'
13900 ;;
13901
13902 solaris*)
13903 lt_prog_compiler_pic_F77='-KPIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13905 case $cc_basename in
13906 f77* | f90* | f95*)
13907 lt_prog_compiler_wl_F77='-Qoption ld ';;
13908 *)
13909 lt_prog_compiler_wl_F77='-Wl,';;
13910 esac
13911 ;;
13912
13913 sunos4*)
13914 lt_prog_compiler_wl_F77='-Qoption ld '
13915 lt_prog_compiler_pic_F77='-PIC'
13916 lt_prog_compiler_static_F77='-Bstatic'
13917 ;;
13918
13919 sysv4 | sysv4.2uw2* | sysv4.3*)
13920 lt_prog_compiler_wl_F77='-Wl,'
13921 lt_prog_compiler_pic_F77='-KPIC'
13922 lt_prog_compiler_static_F77='-Bstatic'
13923 ;;
13924
13925 sysv4*MP*)
13926 if test -d /usr/nec ;then
13927 lt_prog_compiler_pic_F77='-Kconform_pic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13929 fi
13930 ;;
13931
13932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 lt_prog_compiler_pic_F77='-KPIC'
13935 lt_prog_compiler_static_F77='-Bstatic'
13936 ;;
13937
13938 unicos*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 lt_prog_compiler_can_build_shared_F77=no
13941 ;;
13942
13943 uts4*)
13944 lt_prog_compiler_pic_F77='-pic'
13945 lt_prog_compiler_static_F77='-Bstatic'
13946 ;;
13947
13948 *)
13949 lt_prog_compiler_can_build_shared_F77=no
13950 ;;
13951 esac
13952 fi
13953
13954{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13955$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13956
13957#
13958# Check to make sure the PIC flag actually works.
13959#
13960if test -n "$lt_prog_compiler_pic_F77"; then
13961
13962{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13963$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13964if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13965 $as_echo_n "(cached) " >&6
13966else
13967 lt_cv_prog_compiler_pic_works_F77=no
13968 ac_outfile=conftest.$ac_objext
13969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13970 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13971 # Insert the option either (1) after the last *FLAGS variable, or
13972 # (2) before a word containing "conftest.", or (3) at the end.
13973 # Note that $ac_compile itself does not contain backslashes and begins
13974 # with a dollar sign (not a hyphen), so the echo should work correctly.
13975 # The option is referenced via a variable to avoid confusing sed.
13976 lt_compile=`echo "$ac_compile" | $SED \
13977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13979 -e 's:$: $lt_compiler_flag:'`
13980 (eval echo "\"\$as_me:13980: $lt_compile\"" >&5)
13981 (eval "$lt_compile" 2>conftest.err)
13982 ac_status=$?
13983 cat conftest.err >&5
13984 echo "$as_me:13984: \$? = $ac_status" >&5
13985 if (exit $ac_status) && test -s "$ac_outfile"; then
13986 # The compiler can only warn and ignore the option if not recognized
13987 # So say no if there are warnings other than the usual output.
13988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13991 lt_cv_prog_compiler_pic_works_F77=yes
13992 fi
13993 fi
13994 $rm conftest*
13995
13996fi
13997{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13998$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13999
14000if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14001 case $lt_prog_compiler_pic_F77 in
14002 "" | " "*) ;;
14003 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14004 esac
14005else
14006 lt_prog_compiler_pic_F77=
14007 lt_prog_compiler_can_build_shared_F77=no
14008fi
14009
14010fi
14011case $host_os in
14012 # For platforms which do not support PIC, -DPIC is meaningless:
14013 *djgpp*)
14014 lt_prog_compiler_pic_F77=
14015 ;;
14016 *)
14017 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14018 ;;
14019esac
14020
14021#
14022# Check to make sure the static flag actually works.
14023#
14024wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14025{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14026$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14027if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14028 $as_echo_n "(cached) " >&6
14029else
14030 lt_cv_prog_compiler_static_works_F77=no
14031 save_LDFLAGS="$LDFLAGS"
14032 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14033 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14034 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14035 # The linker can only warn and ignore the option if not recognized
14036 # So say no if there are warnings
14037 if test -s conftest.err; then
14038 # Append any errors to the config.log.
14039 cat conftest.err 1>&5
14040 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14042 if diff conftest.exp conftest.er2 >/dev/null; then
14043 lt_cv_prog_compiler_static_works_F77=yes
14044 fi
14045 else
14046 lt_cv_prog_compiler_static_works_F77=yes
14047 fi
14048 fi
14049 $rm -r conftest*
14050 LDFLAGS="$save_LDFLAGS"
14051
14052fi
14053{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14054$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14055
14056if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14057 :
14058else
14059 lt_prog_compiler_static_F77=
14060fi
14061
14062
14063{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14064$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14065if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14066 $as_echo_n "(cached) " >&6
14067else
14068 lt_cv_prog_compiler_c_o_F77=no
14069 $rm -r conftest 2>/dev/null
14070 mkdir conftest
14071 cd conftest
14072 mkdir out
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14074
14075 lt_compiler_flag="-o out/conftest2.$ac_objext"
14076 # Insert the option either (1) after the last *FLAGS variable, or
14077 # (2) before a word containing "conftest.", or (3) at the end.
14078 # Note that $ac_compile itself does not contain backslashes and begins
14079 # with a dollar sign (not a hyphen), so the echo should work correctly.
14080 lt_compile=`echo "$ac_compile" | $SED \
14081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14083 -e 's:$: $lt_compiler_flag:'`
14084 (eval echo "\"\$as_me:14084: $lt_compile\"" >&5)
14085 (eval "$lt_compile" 2>out/conftest.err)
14086 ac_status=$?
14087 cat out/conftest.err >&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14090 then
14091 # The compiler can only warn and ignore the option if not recognized
14092 # So say no if there are warnings
14093 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14096 lt_cv_prog_compiler_c_o_F77=yes
14097 fi
14098 fi
14099 chmod u+w . 2>&5
14100 $rm conftest*
14101 # SGI C++ compiler will create directory out/ii_files/ for
14102 # template instantiation
14103 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14104 $rm out/* && rmdir out
14105 cd ..
14106 rmdir conftest
14107 $rm conftest*
14108
14109fi
14110{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14111$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14112
14113
14114hard_links="nottested"
14115if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14116 # do not overwrite the value of need_locks provided by the user
14117 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14118$as_echo_n "checking if we can lock with hard links... " >&6; }
14119 hard_links=yes
14120 $rm conftest*
14121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14122 touch conftest.a
14123 ln conftest.a conftest.b 2>&5 || hard_links=no
14124 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14125 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14126$as_echo "$hard_links" >&6; }
14127 if test "$hard_links" = no; then
14128 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14129$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14130 need_locks=warn
14131 fi
14132else
14133 need_locks=no
14134fi
14135
14136{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14137$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14138
14139 runpath_var=
14140 allow_undefined_flag_F77=
14141 enable_shared_with_static_runtimes_F77=no
14142 archive_cmds_F77=
14143 archive_expsym_cmds_F77=
14144 old_archive_From_new_cmds_F77=
14145 old_archive_from_expsyms_cmds_F77=
14146 export_dynamic_flag_spec_F77=
14147 whole_archive_flag_spec_F77=
14148 thread_safe_flag_spec_F77=
14149 hardcode_libdir_flag_spec_F77=
14150 hardcode_libdir_flag_spec_ld_F77=
14151 hardcode_libdir_separator_F77=
14152 hardcode_direct_F77=no
14153 hardcode_minus_L_F77=no
14154 hardcode_shlibpath_var_F77=unsupported
14155 link_all_deplibs_F77=unknown
14156 hardcode_automatic_F77=no
14157 module_cmds_F77=
14158 module_expsym_cmds_F77=
14159 always_export_symbols_F77=no
14160 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14161 # include_expsyms should be a list of space-separated symbols to be *always*
14162 # included in the symbol list
14163 include_expsyms_F77=
14164 # exclude_expsyms can be an extended regexp of symbols to exclude
14165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14167 # as well as any symbol that contains `d'.
14168 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14170 # platforms (ab)use it in PIC code, but their linkers get confused if
14171 # the symbol is explicitly referenced. Since portable code cannot
14172 # rely on this symbol name, it's probably fine to never include it in
14173 # preloaded symbol tables.
14174 # Exclude shared library initialization/finalization symbols.
14175 extract_expsyms_cmds=
14176 # Just being paranoid about ensuring that cc_basename is set.
14177 for cc_temp in $compiler""; do
14178 case $cc_temp in
14179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14181 \-*) ;;
14182 *) break;;
14183 esac
14184done
14185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14186
14187 case $host_os in
14188 cygwin* | mingw* | pw32*)
14189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14190 # When not using gcc, we currently assume that we are using
14191 # Microsoft Visual C++.
14192 if test "$GCC" != yes; then
14193 with_gnu_ld=no
14194 fi
14195 ;;
14196 interix*)
14197 # we just hope/assume this is gcc and not c89 (= MSVC++)
14198 with_gnu_ld=yes
14199 ;;
14200 openbsd*)
14201 with_gnu_ld=no
14202 ;;
14203 esac
14204
14205 ld_shlibs_F77=yes
14206 if test "$with_gnu_ld" = yes; then
14207 # If archive_cmds runs LD, not CC, wlarc should be empty
14208 wlarc='${wl}'
14209
14210 # Set some defaults for GNU ld with shared library support. These
14211 # are reset later if shared libraries are not supported. Putting them
14212 # here allows them to be overridden if necessary.
14213 runpath_var=LD_RUN_PATH
14214 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14215 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14216 # ancient GNU ld didn't support --whole-archive et. al.
14217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14218 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14219 else
14220 whole_archive_flag_spec_F77=
14221 fi
14222 supports_anon_versioning=no
14223 case `$LD -v 2>/dev/null` in
14224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14227 *\ 2.11.*) ;; # other 2.11 versions
14228 *) supports_anon_versioning=yes ;;
14229 esac
14230
14231 # See if GNU ld supports shared libraries.
14232 case $host_os in
14233 aix[3-9]*)
14234 # On AIX/PPC, the GNU linker is very broken
14235 if test "$host_cpu" != ia64; then
14236 ld_shlibs_F77=no
14237 cat <<EOF 1>&2
14238
14239*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14240*** to be unable to reliably create shared libraries on AIX.
14241*** Therefore, libtool is disabling shared libraries support. If you
14242*** really care for shared libraries, you may want to modify your PATH
14243*** so that a non-GNU linker is found, and then restart.
14244
14245EOF
14246 fi
14247 ;;
14248
14249 amigaos*)
14250 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)'
14251 hardcode_libdir_flag_spec_F77='-L$libdir'
14252 hardcode_minus_L_F77=yes
14253
14254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14255 # that the semantics of dynamic libraries on AmigaOS, at least up
14256 # to version 4, is to share data among multiple programs linked
14257 # with the same dynamic library. Since this doesn't match the
14258 # behavior of shared libraries on other platforms, we can't use
14259 # them.
14260 ld_shlibs_F77=no
14261 ;;
14262
14263 beos*)
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14265 allow_undefined_flag_F77=unsupported
14266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14267 # support --undefined. This deserves some investigation. FIXME
14268 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14269 else
14270 ld_shlibs_F77=no
14271 fi
14272 ;;
14273
14274 cygwin* | mingw* | pw32*)
14275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14276 # as there is no search path for DLLs.
14277 hardcode_libdir_flag_spec_F77='-L$libdir'
14278 allow_undefined_flag_F77=unsupported
14279 always_export_symbols_F77=no
14280 enable_shared_with_static_runtimes_F77=yes
14281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14282
14283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14284 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 # If the export-symbols file already is a .def file (1st line
14286 # is EXPORTS), use it as is; otherwise, prepend...
14287 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14288 cp $export_symbols $output_objdir/$soname.def;
14289 else
14290 echo EXPORTS > $output_objdir/$soname.def;
14291 cat $export_symbols >> $output_objdir/$soname.def;
14292 fi~
14293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14294 else
14295 ld_shlibs_F77=no
14296 fi
14297 ;;
14298
14299 interix[3-9]*)
14300 hardcode_direct_F77=no
14301 hardcode_shlibpath_var_F77=no
14302 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14303 export_dynamic_flag_spec_F77='${wl}-E'
14304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14305 # Instead, shared libraries are loaded at an image base (0x10000000 by
14306 # default) and relocated if they conflict, which is a slow very memory
14307 # consuming and fragmenting process. To avoid this, we pick a random,
14308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14310 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'
14311 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'
14312 ;;
14313
14314 gnu* | linux* | k*bsd*-gnu)
14315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14316 tmp_addflag=
14317 case $cc_basename,$host_cpu in
14318 pgcc*) # Portland Group C compiler
14319 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'
14320 tmp_addflag=' $pic_flag'
14321 ;;
14322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14323 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'
14324 tmp_addflag=' $pic_flag -Mnomain' ;;
14325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14326 tmp_addflag=' -i_dynamic' ;;
14327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14328 tmp_addflag=' -i_dynamic -nofor_main' ;;
14329 ifc* | ifort*) # Intel Fortran compiler
14330 tmp_addflag=' -nofor_main' ;;
14331 esac
14332 case `$CC -V 2>&1 | sed 5q` in
14333 *Sun\ C*) # Sun C 5.9
14334 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'
14335 tmp_sharedflag='-G' ;;
14336 *Sun\ F*) # Sun Fortran 8.3
14337 tmp_sharedflag='-G' ;;
14338 *)
14339 tmp_sharedflag='-shared' ;;
14340 esac
14341 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342
14343 if test $supports_anon_versioning = yes; then
14344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14346 $echo "local: *; };" >> $output_objdir/$libname.ver~
14347 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14348 fi
14349 else
14350 ld_shlibs_F77=no
14351 fi
14352 ;;
14353
14354 netbsd*)
14355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14356 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14357 wlarc=
14358 else
14359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14361 fi
14362 ;;
14363
14364 solaris*)
14365 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14366 ld_shlibs_F77=no
14367 cat <<EOF 1>&2
14368
14369*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14370*** create shared libraries on Solaris systems. Therefore, libtool
14371*** is disabling shared libraries support. We urge you to upgrade GNU
14372*** binutils to release 2.9.1 or newer. Another option is to modify
14373*** your PATH or compiler configuration so that the native linker is
14374*** used, and then restart.
14375
14376EOF
14377 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14378 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14379 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14380 else
14381 ld_shlibs_F77=no
14382 fi
14383 ;;
14384
14385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14386 case `$LD -v 2>&1` in
14387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14388 ld_shlibs_F77=no
14389 cat <<_LT_EOF 1>&2
14390
14391*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14392*** reliably create shared libraries on SCO systems. Therefore, libtool
14393*** is disabling shared libraries support. We urge you to upgrade GNU
14394*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14395*** your PATH or compiler configuration so that the native linker is
14396*** used, and then restart.
14397
14398_LT_EOF
14399 ;;
14400 *)
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14405 else
14406 ld_shlibs_F77=no
14407 fi
14408 ;;
14409 esac
14410 ;;
14411
14412 sunos4*)
14413 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14414 wlarc=
14415 hardcode_direct_F77=yes
14416 hardcode_shlibpath_var_F77=no
14417 ;;
14418
14419 *)
14420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14422 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14423 else
14424 ld_shlibs_F77=no
14425 fi
14426 ;;
14427 esac
14428
14429 if test "$ld_shlibs_F77" = no; then
14430 runpath_var=
14431 hardcode_libdir_flag_spec_F77=
14432 export_dynamic_flag_spec_F77=
14433 whole_archive_flag_spec_F77=
14434 fi
14435 else
14436 # PORTME fill in a description of your system's linker (not GNU ld)
14437 case $host_os in
14438 aix3*)
14439 allow_undefined_flag_F77=unsupported
14440 always_export_symbols_F77=yes
14441 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'
14442 # Note: this linker hardcodes the directories in LIBPATH if there
14443 # are no directories specified by -L.
14444 hardcode_minus_L_F77=yes
14445 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14446 # Neither direct hardcoding nor static linking is supported with a
14447 # broken collect2.
14448 hardcode_direct_F77=unsupported
14449 fi
14450 ;;
14451
14452 aix[4-9]*)
14453 if test "$host_cpu" = ia64; then
14454 # On IA64, the linker does run time linking by default, so we don't
14455 # have to do anything special.
14456 aix_use_runtimelinking=no
14457 exp_sym_flag='-Bexport'
14458 no_entry_flag=""
14459 else
14460 # If we're using GNU nm, then we don't want the "-C" option.
14461 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14463 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'
14464 else
14465 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'
14466 fi
14467 aix_use_runtimelinking=no
14468
14469 # Test if we are trying to use run time linking or normal
14470 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14471 # need to do runtime linking.
14472 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14473 for ld_flag in $LDFLAGS; do
14474 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14475 aix_use_runtimelinking=yes
14476 break
14477 fi
14478 done
14479 ;;
14480 esac
14481
14482 exp_sym_flag='-bexport'
14483 no_entry_flag='-bnoentry'
14484 fi
14485
14486 # When large executables or shared objects are built, AIX ld can
14487 # have problems creating the table of contents. If linking a library
14488 # or program results in "error TOC overflow" add -mminimal-toc to
14489 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14490 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14491
14492 archive_cmds_F77=''
14493 hardcode_direct_F77=yes
14494 hardcode_libdir_separator_F77=':'
14495 link_all_deplibs_F77=yes
14496
14497 if test "$GCC" = yes; then
14498 case $host_os in aix4.[012]|aix4.[012].*)
14499 # We only want to do this on AIX 4.2 and lower, the check
14500 # below for broken collect2 doesn't work under 4.3+
14501 collect2name=`${CC} -print-prog-name=collect2`
14502 if test -f "$collect2name" && \
14503 strings "$collect2name" | grep resolve_lib_name >/dev/null
14504 then
14505 # We have reworked collect2
14506 :
14507 else
14508 # We have old collect2
14509 hardcode_direct_F77=unsupported
14510 # It fails to find uninstalled libraries when the uninstalled
14511 # path is not listed in the libpath. Setting hardcode_minus_L
14512 # to unsupported forces relinking
14513 hardcode_minus_L_F77=yes
14514 hardcode_libdir_flag_spec_F77='-L$libdir'
14515 hardcode_libdir_separator_F77=
14516 fi
14517 ;;
14518 esac
14519 shared_flag='-shared'
14520 if test "$aix_use_runtimelinking" = yes; then
14521 shared_flag="$shared_flag "'${wl}-G'
14522 fi
14523 else
14524 # not using gcc
14525 if test "$host_cpu" = ia64; then
14526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14527 # chokes on -Wl,-G. The following line is correct:
14528 shared_flag='-G'
14529 else
14530 if test "$aix_use_runtimelinking" = yes; then
14531 shared_flag='${wl}-G'
14532 else
14533 shared_flag='${wl}-bM:SRE'
14534 fi
14535 fi
14536 fi
14537
14538 # It seems that -bexpall does not export symbols beginning with
14539 # underscore (_), so it is better to generate a list of symbols to export.
14540 always_export_symbols_F77=yes
14541 if test "$aix_use_runtimelinking" = yes; then
14542 # Warning - without using the other runtime loading flags (-brtl),
14543 # -berok will link without error, but may produce a broken library.
14544 allow_undefined_flag_F77='-berok'
14545 # Determine the default libpath from the value encoded in an empty executable.
14546 cat >conftest.$ac_ext <<_ACEOF
14547 program main
14548
14549 end
14550_ACEOF
14551rm -f conftest.$ac_objext conftest$ac_exeext
14552if { (ac_try="$ac_link"
14553case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556esac
14557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558$as_echo "$ac_try_echo") >&5
14559 (eval "$ac_link") 2>conftest.er1
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } && {
14566 test -z "$ac_f77_werror_flag" ||
14567 test ! -s conftest.err
14568 } && test -s conftest$ac_exeext && {
14569 test "$cross_compiling" = yes ||
14570 $as_test_x conftest$ac_exeext
14571 }; then
14572
14573lt_aix_libpath_sed='
14574 /Import File Strings/,/^$/ {
14575 /^0/ {
14576 s/^0 *\(.*\)$/\1/
14577 p
14578 }
14579 }'
14580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14581# Check for a 64-bit object if we didn't find anything.
14582if test -z "$aix_libpath"; then
14583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14584fi
14585else
14586 $as_echo "$as_me: failed program was:" >&5
14587sed 's/^/| /' conftest.$ac_ext >&5
14588
14589
14590fi
14591
14592rm -rf conftest.dSYM
14593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14594 conftest$ac_exeext conftest.$ac_ext
14595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14596
14597 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14598 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"
14599 else
14600 if test "$host_cpu" = ia64; then
14601 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14602 allow_undefined_flag_F77="-z nodefs"
14603 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"
14604 else
14605 # Determine the default libpath from the value encoded in an empty executable.
14606 cat >conftest.$ac_ext <<_ACEOF
14607 program main
14608
14609 end
14610_ACEOF
14611rm -f conftest.$ac_objext conftest$ac_exeext
14612if { (ac_try="$ac_link"
14613case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14618$as_echo "$ac_try_echo") >&5
14619 (eval "$ac_link") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_f77_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext && {
14629 test "$cross_compiling" = yes ||
14630 $as_test_x conftest$ac_exeext
14631 }; then
14632
14633lt_aix_libpath_sed='
14634 /Import File Strings/,/^$/ {
14635 /^0/ {
14636 s/^0 *\(.*\)$/\1/
14637 p
14638 }
14639 }'
14640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14641# Check for a 64-bit object if we didn't find anything.
14642if test -z "$aix_libpath"; then
14643 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14644fi
14645else
14646 $as_echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
14650fi
14651
14652rm -rf conftest.dSYM
14653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14654 conftest$ac_exeext conftest.$ac_ext
14655if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14656
14657 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14658 # Warning - without using the other run time loading flags,
14659 # -berok will link without error, but may produce a broken library.
14660 no_undefined_flag_F77=' ${wl}-bernotok'
14661 allow_undefined_flag_F77=' ${wl}-berok'
14662 # Exported symbols can be pulled into shared objects from archives
14663 whole_archive_flag_spec_F77='$convenience'
14664 archive_cmds_need_lc_F77=yes
14665 # This is similar to how AIX traditionally builds its shared libraries.
14666 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'
14667 fi
14668 fi
14669 ;;
14670
14671 amigaos*)
14672 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)'
14673 hardcode_libdir_flag_spec_F77='-L$libdir'
14674 hardcode_minus_L_F77=yes
14675 # see comment about different semantics on the GNU ld section
14676 ld_shlibs_F77=no
14677 ;;
14678
14679 bsdi[45]*)
14680 export_dynamic_flag_spec_F77=-rdynamic
14681 ;;
14682
14683 cygwin* | mingw* | pw32*)
14684 # When not using gcc, we currently assume that we are using
14685 # Microsoft Visual C++.
14686 # hardcode_libdir_flag_spec is actually meaningless, as there is
14687 # no search path for DLLs.
14688 hardcode_libdir_flag_spec_F77=' '
14689 allow_undefined_flag_F77=unsupported
14690 # Tell ltmain to make .lib files, not .a files.
14691 libext=lib
14692 # Tell ltmain to make .dll files, not .so files.
14693 shrext_cmds=".dll"
14694 # FIXME: Setting linknames here is a bad hack.
14695 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14696 # The linker will automatically build a .lib file if we build a DLL.
14697 old_archive_From_new_cmds_F77='true'
14698 # FIXME: Should let the user specify the lib program.
14699 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14700 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14701 enable_shared_with_static_runtimes_F77=yes
14702 ;;
14703
14704 darwin* | rhapsody*)
14705 case $host_os in
14706 rhapsody* | darwin1.[012])
14707 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14708 ;;
14709 *) # Darwin 1.3 on
14710 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14711 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14712 else
14713 case ${MACOSX_DEPLOYMENT_TARGET} in
14714 10.[012])
14715 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14716 ;;
14717 10.*)
14718 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14719 ;;
14720 esac
14721 fi
14722 ;;
14723 esac
14724 archive_cmds_need_lc_F77=no
14725 hardcode_direct_F77=no
14726 hardcode_automatic_F77=yes
14727 hardcode_shlibpath_var_F77=unsupported
14728 whole_archive_flag_spec_F77=''
14729 link_all_deplibs_F77=yes
14730 if test "$GCC" = yes ; then
14731 output_verbose_link_cmd='echo'
14732 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}"
14733 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14734 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}"
14735 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}"
14736 else
14737 case $cc_basename in
14738 xlc*)
14739 output_verbose_link_cmd='echo'
14740 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14741 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14743 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}'
14744 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}'
14745 ;;
14746 *)
14747 ld_shlibs_F77=no
14748 ;;
14749 esac
14750 fi
14751 ;;
14752
14753 dgux*)
14754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755 hardcode_libdir_flag_spec_F77='-L$libdir'
14756 hardcode_shlibpath_var_F77=no
14757 ;;
14758
14759 freebsd1*)
14760 ld_shlibs_F77=no
14761 ;;
14762
14763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14764 # support. Future versions do this automatically, but an explicit c++rt0.o
14765 # does not break anything, and helps significantly (at the cost of a little
14766 # extra space).
14767 freebsd2.2*)
14768 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14769 hardcode_libdir_flag_spec_F77='-R$libdir'
14770 hardcode_direct_F77=yes
14771 hardcode_shlibpath_var_F77=no
14772 ;;
14773
14774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14775 freebsd2*)
14776 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14777 hardcode_direct_F77=yes
14778 hardcode_minus_L_F77=yes
14779 hardcode_shlibpath_var_F77=no
14780 ;;
14781
14782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14783 freebsd* | dragonfly*)
14784 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14785 hardcode_libdir_flag_spec_F77='-R$libdir'
14786 hardcode_direct_F77=yes
14787 hardcode_shlibpath_var_F77=no
14788 ;;
14789
14790 hpux9*)
14791 if test "$GCC" = yes; then
14792 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'
14793 else
14794 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'
14795 fi
14796 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14797 hardcode_libdir_separator_F77=:
14798 hardcode_direct_F77=yes
14799
14800 # hardcode_minus_L: Not really in the search PATH,
14801 # but as the default location of the library.
14802 hardcode_minus_L_F77=yes
14803 export_dynamic_flag_spec_F77='${wl}-E'
14804 ;;
14805
14806 hpux10*)
14807 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14808 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14809 else
14810 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14811 fi
14812 if test "$with_gnu_ld" = no; then
14813 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14814 hardcode_libdir_separator_F77=:
14815
14816 hardcode_direct_F77=yes
14817 export_dynamic_flag_spec_F77='${wl}-E'
14818
14819 # hardcode_minus_L: Not really in the search PATH,
14820 # but as the default location of the library.
14821 hardcode_minus_L_F77=yes
14822 fi
14823 ;;
14824
14825 hpux11*)
14826 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14827 case $host_cpu in
14828 hppa*64*)
14829 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14830 ;;
14831 ia64*)
14832 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14833 ;;
14834 *)
14835 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14836 ;;
14837 esac
14838 else
14839 case $host_cpu in
14840 hppa*64*)
14841 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 ;;
14843 ia64*)
14844 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14845 ;;
14846 *)
14847 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14848 ;;
14849 esac
14850 fi
14851 if test "$with_gnu_ld" = no; then
14852 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14853 hardcode_libdir_separator_F77=:
14854
14855 case $host_cpu in
14856 hppa*64*|ia64*)
14857 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14858 hardcode_direct_F77=no
14859 hardcode_shlibpath_var_F77=no
14860 ;;
14861 *)
14862 hardcode_direct_F77=yes
14863 export_dynamic_flag_spec_F77='${wl}-E'
14864
14865 # hardcode_minus_L: Not really in the search PATH,
14866 # but as the default location of the library.
14867 hardcode_minus_L_F77=yes
14868 ;;
14869 esac
14870 fi
14871 ;;
14872
14873 irix5* | irix6* | nonstopux*)
14874 if test "$GCC" = yes; then
14875 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'
14876 else
14877 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'
14878 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14879 fi
14880 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14881 hardcode_libdir_separator_F77=:
14882 link_all_deplibs_F77=yes
14883 ;;
14884
14885 netbsd*)
14886 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14887 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14888 else
14889 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14890 fi
14891 hardcode_libdir_flag_spec_F77='-R$libdir'
14892 hardcode_direct_F77=yes
14893 hardcode_shlibpath_var_F77=no
14894 ;;
14895
14896 newsos6)
14897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898 hardcode_direct_F77=yes
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14900 hardcode_libdir_separator_F77=:
14901 hardcode_shlibpath_var_F77=no
14902 ;;
14903
14904 openbsd*)
14905 if test -f /usr/libexec/ld.so; then
14906 hardcode_direct_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14910 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14911 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14912 export_dynamic_flag_spec_F77='${wl}-E'
14913 else
14914 case $host_os in
14915 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14916 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14917 hardcode_libdir_flag_spec_F77='-R$libdir'
14918 ;;
14919 *)
14920 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14921 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14922 ;;
14923 esac
14924 fi
14925 else
14926 ld_shlibs_F77=no
14927 fi
14928 ;;
14929
14930 os2*)
14931 hardcode_libdir_flag_spec_F77='-L$libdir'
14932 hardcode_minus_L_F77=yes
14933 allow_undefined_flag_F77=unsupported
14934 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'
14935 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14936 ;;
14937
14938 osf3*)
14939 if test "$GCC" = yes; then
14940 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14941 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'
14942 else
14943 allow_undefined_flag_F77=' -expect_unresolved \*'
14944 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'
14945 fi
14946 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14947 hardcode_libdir_separator_F77=:
14948 ;;
14949
14950 osf4* | osf5*) # as osf3* with the addition of -msym flag
14951 if test "$GCC" = yes; then
14952 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14953 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'
14954 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14955 else
14956 allow_undefined_flag_F77=' -expect_unresolved \*'
14957 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'
14958 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~
14959 $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'
14960
14961 # Both c and cxx compiler support -rpath directly
14962 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14963 fi
14964 hardcode_libdir_separator_F77=:
14965 ;;
14966
14967 solaris*)
14968 no_undefined_flag_F77=' -z text'
14969 if test "$GCC" = yes; then
14970 wlarc='${wl}'
14971 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14973 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14974 else
14975 wlarc=''
14976 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14978 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14979 fi
14980 hardcode_libdir_flag_spec_F77='-R$libdir'
14981 hardcode_shlibpath_var_F77=no
14982 case $host_os in
14983 solaris2.[0-5] | solaris2.[0-5].*) ;;
14984 *)
14985 # The compiler driver will combine and reorder linker options,
14986 # but understands `-z linker_flag'. GCC discards it without `$wl',
14987 # but is careful enough not to reorder.
14988 # Supported since Solaris 2.6 (maybe 2.5.1?)
14989 if test "$GCC" = yes; then
14990 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14991 else
14992 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14993 fi
14994 ;;
14995 esac
14996 link_all_deplibs_F77=yes
14997 ;;
14998
14999 sunos4*)
15000 if test "x$host_vendor" = xsequent; then
15001 # Use $CC to link under sequent, because it throws in some extra .o
15002 # files that make .init and .fini sections work.
15003 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15004 else
15005 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15006 fi
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_direct_F77=yes
15009 hardcode_minus_L_F77=yes
15010 hardcode_shlibpath_var_F77=no
15011 ;;
15012
15013 sysv4)
15014 case $host_vendor in
15015 sni)
15016 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15017 hardcode_direct_F77=yes # is this really true???
15018 ;;
15019 siemens)
15020 ## LD is ld it makes a PLAMLIB
15021 ## CC just makes a GrossModule.
15022 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15023 reload_cmds_F77='$CC -r -o $output$reload_objs'
15024 hardcode_direct_F77=no
15025 ;;
15026 motorola)
15027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15029 ;;
15030 esac
15031 runpath_var='LD_RUN_PATH'
15032 hardcode_shlibpath_var_F77=no
15033 ;;
15034
15035 sysv4.3*)
15036 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15037 hardcode_shlibpath_var_F77=no
15038 export_dynamic_flag_spec_F77='-Bexport'
15039 ;;
15040
15041 sysv4*MP*)
15042 if test -d /usr/nec; then
15043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15044 hardcode_shlibpath_var_F77=no
15045 runpath_var=LD_RUN_PATH
15046 hardcode_runpath_var=yes
15047 ld_shlibs_F77=yes
15048 fi
15049 ;;
15050
15051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15052 no_undefined_flag_F77='${wl}-z,text'
15053 archive_cmds_need_lc_F77=no
15054 hardcode_shlibpath_var_F77=no
15055 runpath_var='LD_RUN_PATH'
15056
15057 if test "$GCC" = yes; then
15058 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15060 else
15061 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15062 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15063 fi
15064 ;;
15065
15066 sysv5* | sco3.2v5* | sco5v6*)
15067 # Note: We can NOT use -z defs as we might desire, because we do not
15068 # link with -lc, and that would cause any symbols used from libc to
15069 # always be unresolved, which means just about no library would
15070 # ever link correctly. If we're not using GNU ld we use -z text
15071 # though, which does catch some bad symbols but isn't as heavy-handed
15072 # as -z defs.
15073 no_undefined_flag_F77='${wl}-z,text'
15074 allow_undefined_flag_F77='${wl}-z,nodefs'
15075 archive_cmds_need_lc_F77=no
15076 hardcode_shlibpath_var_F77=no
15077 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15078 hardcode_libdir_separator_F77=':'
15079 link_all_deplibs_F77=yes
15080 export_dynamic_flag_spec_F77='${wl}-Bexport'
15081 runpath_var='LD_RUN_PATH'
15082
15083 if test "$GCC" = yes; then
15084 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15086 else
15087 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15088 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15089 fi
15090 ;;
15091
15092 uts4*)
15093 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15094 hardcode_libdir_flag_spec_F77='-L$libdir'
15095 hardcode_shlibpath_var_F77=no
15096 ;;
15097
15098 *)
15099 ld_shlibs_F77=no
15100 ;;
15101 esac
15102 fi
15103
15104{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15105$as_echo "$ld_shlibs_F77" >&6; }
15106test "$ld_shlibs_F77" = no && can_build_shared=no
15107
15108#
15109# Do we need to explicitly link libc?
15110#
15111case "x$archive_cmds_need_lc_F77" in
15112x|xyes)
15113 # Assume -lc should be added
15114 archive_cmds_need_lc_F77=yes
15115
15116 if test "$enable_shared" = yes && test "$GCC" = yes; then
15117 case $archive_cmds_F77 in
15118 *'~'*)
15119 # FIXME: we may have to deal with multi-command sequences.
15120 ;;
15121 '$CC '*)
15122 # Test whether the compiler implicitly links with -lc since on some
15123 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15124 # to ld, don't add -lc before -lgcc.
15125 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15126$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15127 $rm conftest*
15128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131 (eval $ac_compile) 2>&5
15132 ac_status=$?
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } 2>conftest.err; then
15135 soname=conftest
15136 lib=conftest
15137 libobjs=conftest.$ac_objext
15138 deplibs=
15139 wl=$lt_prog_compiler_wl_F77
15140 pic_flag=$lt_prog_compiler_pic_F77
15141 compiler_flags=-v
15142 linker_flags=-v
15143 verstring=
15144 output_objdir=.
15145 libname=conftest
15146 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15147 allow_undefined_flag_F77=
15148 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15149 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15150 ac_status=$?
15151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }
15153 then
15154 archive_cmds_need_lc_F77=no
15155 else
15156 archive_cmds_need_lc_F77=yes
15157 fi
15158 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15159 else
15160 cat conftest.err 1>&5
15161 fi
15162 $rm conftest*
15163 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15164$as_echo "$archive_cmds_need_lc_F77" >&6; }
15165 ;;
15166 esac
15167 fi
15168 ;;
15169esac
15170
15171{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15172$as_echo_n "checking dynamic linker characteristics... " >&6; }
15173library_names_spec=
15174libname_spec='lib$name'
15175soname_spec=
15176shrext_cmds=".so"
15177postinstall_cmds=
15178postuninstall_cmds=
15179finish_cmds=
15180finish_eval=
15181shlibpath_var=
15182shlibpath_overrides_runpath=unknown
15183version_type=none
15184dynamic_linker="$host_os ld.so"
15185sys_lib_dlsearch_path_spec="/lib /usr/lib"
15186
15187need_lib_prefix=unknown
15188hardcode_into_libs=no
15189
15190# when you set need_version to no, make sure it does not cause -set_version
15191# flags to be left without arguments
15192need_version=unknown
15193
15194case $host_os in
15195aix3*)
15196 version_type=linux
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15198 shlibpath_var=LIBPATH
15199
15200 # AIX 3 has no versioning support, so we append a major version to the name.
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 ;;
15203
15204aix[4-9]*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 hardcode_into_libs=yes
15209 if test "$host_cpu" = ia64; then
15210 # AIX 5 supports IA64
15211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 else
15214 # With GCC up to 2.95.x, collect2 would create an import file
15215 # for dependence libraries. The import file would start with
15216 # the line `#! .'. This would cause the generated library to
15217 # depend on `.', always an invalid library. This was fixed in
15218 # development snapshots of GCC prior to 3.0.
15219 case $host_os in
15220 aix4 | aix4.[01] | aix4.[01].*)
15221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo ' yes '
15223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15224 :
15225 else
15226 can_build_shared=no
15227 fi
15228 ;;
15229 esac
15230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15231 # soname into executable. Probably we can add versioning support to
15232 # collect2, so additional links can be useful in future.
15233 if test "$aix_use_runtimelinking" = yes; then
15234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15235 # instead of lib<name>.a to let people know that these are not
15236 # typical AIX shared libraries.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 else
15239 # We preserve .a as extension for shared libraries through AIX4.2
15240 # and later when we are not doing run time linking.
15241 library_names_spec='${libname}${release}.a $libname.a'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 fi
15244 shlibpath_var=LIBPATH
15245 fi
15246 ;;
15247
15248amigaos*)
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15252 ;;
15253
15254beos*)
15255 library_names_spec='${libname}${shared_ext}'
15256 dynamic_linker="$host_os ld.so"
15257 shlibpath_var=LIBRARY_PATH
15258 ;;
15259
15260bsdi[45]*)
15261 version_type=linux
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15269 # the default ld.so.conf also contains /usr/contrib/lib and
15270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15271 # libtool to hard-code these into programs
15272 ;;
15273
15274cygwin* | mingw* | pw32*)
15275 version_type=windows
15276 shrext_cmds=".dll"
15277 need_version=no
15278 need_lib_prefix=no
15279
15280 case $GCC,$host_os in
15281 yes,cygwin* | yes,mingw* | yes,pw32*)
15282 library_names_spec='$libname.dll.a'
15283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15284 postinstall_cmds='base_file=`basename \${file}`~
15285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15286 dldir=$destdir/`dirname \$dlpath`~
15287 test -d \$dldir || mkdir -p \$dldir~
15288 $install_prog $dir/$dlname \$dldir/$dlname~
15289 chmod a+x \$dldir/$dlname'
15290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15291 dlpath=$dir/\$dldll~
15292 $rm \$dlpath'
15293 shlibpath_overrides_runpath=yes
15294
15295 case $host_os in
15296 cygwin*)
15297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15300 ;;
15301 mingw*)
15302 # MinGW DLLs use traditional 'lib' prefix
15303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15306 # It is most probably a Windows format PATH printed by
15307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15308 # path with ; separators, and with drive letters. We can handle the
15309 # drive letters (cygwin fileutils understands them), so leave them,
15310 # especially as we might pass files found there to a mingw objdump,
15311 # which wouldn't understand a cygwinified path. Ahh.
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15313 else
15314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15315 fi
15316 ;;
15317 pw32*)
15318 # pw32 DLLs use 'pw' prefix rather than 'lib'
15319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320 ;;
15321 esac
15322 ;;
15323
15324 *)
15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15326 ;;
15327 esac
15328 dynamic_linker='Win32 ld.exe'
15329 # FIXME: first we should search . and the directory the executable is in
15330 shlibpath_var=PATH
15331 ;;
15332
15333darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15343
15344 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15345 ;;
15346
15347dgux*)
15348 version_type=linux
15349 need_lib_prefix=no
15350 need_version=no
15351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15353 shlibpath_var=LD_LIBRARY_PATH
15354 ;;
15355
15356freebsd1*)
15357 dynamic_linker=no
15358 ;;
15359
15360freebsd* | dragonfly*)
15361 # DragonFly does not have aout. When/if they implement a new
15362 # versioning mechanism, adjust this.
15363 if test -x /usr/bin/objformat; then
15364 objformat=`/usr/bin/objformat`
15365 else
15366 case $host_os in
15367 freebsd[123]*) objformat=aout ;;
15368 *) objformat=elf ;;
15369 esac
15370 fi
15371 version_type=freebsd-$objformat
15372 case $version_type in
15373 freebsd-elf*)
15374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15375 need_version=no
15376 need_lib_prefix=no
15377 ;;
15378 freebsd-*)
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15380 need_version=yes
15381 ;;
15382 esac
15383 shlibpath_var=LD_LIBRARY_PATH
15384 case $host_os in
15385 freebsd2*)
15386 shlibpath_overrides_runpath=yes
15387 ;;
15388 freebsd3.[01]* | freebsdelf3.[01]*)
15389 shlibpath_overrides_runpath=yes
15390 hardcode_into_libs=yes
15391 ;;
15392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15396 ;;
15397 *) # from 4.6 on, and DragonFly
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 ;;
15401 esac
15402 ;;
15403
15404gnu*)
15405 version_type=linux
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 hardcode_into_libs=yes
15412 ;;
15413
15414hpux9* | hpux10* | hpux11*)
15415 # Give a soname corresponding to the major version so that dld.sl refuses to
15416 # link against other versions.
15417 version_type=sunos
15418 need_lib_prefix=no
15419 need_version=no
15420 case $host_cpu in
15421 ia64*)
15422 shrext_cmds='.so'
15423 hardcode_into_libs=yes
15424 dynamic_linker="$host_os dld.so"
15425 shlibpath_var=LD_LIBRARY_PATH
15426 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
15430 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15431 else
15432 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15433 fi
15434 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15435 ;;
15436 hppa*64*)
15437 shrext_cmds='.sl'
15438 hardcode_into_libs=yes
15439 dynamic_linker="$host_os dld.sl"
15440 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15441 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443 soname_spec='${libname}${release}${shared_ext}$major'
15444 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15446 ;;
15447 *)
15448 shrext_cmds='.sl'
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=SHLIB_PATH
15451 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 ;;
15455 esac
15456 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15457 postinstall_cmds='chmod 555 $lib'
15458 ;;
15459
15460interix[3-9]*)
15461 version_type=linux
15462 need_lib_prefix=no
15463 need_version=no
15464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15465 soname_spec='${libname}${release}${shared_ext}$major'
15466 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=no
15469 hardcode_into_libs=yes
15470 ;;
15471
15472irix5* | irix6* | nonstopux*)
15473 case $host_os in
15474 nonstopux*) version_type=nonstopux ;;
15475 *)
15476 if test "$lt_cv_prog_gnu_ld" = yes; then
15477 version_type=linux
15478 else
15479 version_type=irix
15480 fi ;;
15481 esac
15482 need_lib_prefix=no
15483 need_version=no
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15486 case $host_os in
15487 irix5* | nonstopux*)
15488 libsuff= shlibsuff=
15489 ;;
15490 *)
15491 case $LD in # libtool.m4 will add one of these switches to LD
15492 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15493 libsuff= shlibsuff= libmagic=32-bit;;
15494 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15495 libsuff=32 shlibsuff=N32 libmagic=N32;;
15496 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15497 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15498 *) libsuff= shlibsuff= libmagic=never-match;;
15499 esac
15500 ;;
15501 esac
15502 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15503 shlibpath_overrides_runpath=no
15504 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15505 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15506 hardcode_into_libs=yes
15507 ;;
15508
15509# No shared lib support for Linux oldld, aout, or coff.
15510linux*oldld* | linux*aout* | linux*coff*)
15511 dynamic_linker=no
15512 ;;
15513
15514# This must be Linux ELF.
15515linux* | k*bsd*-gnu)
15516 version_type=linux
15517 need_lib_prefix=no
15518 need_version=no
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=no
15524 # This implies no fast_install, which is unacceptable.
15525 # Some rework will be needed to allow for fast_install
15526 # before this can be enabled.
15527 hardcode_into_libs=yes
15528
15529 # Append ld.so.conf contents to the search path
15530 if test -f /etc/ld.so.conf; then
15531 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' ' '`
15532 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15533 fi
15534
15535 # We used to test for /lib/ld.so.1 and disable shared libraries on
15536 # powerpc, because MkLinux only supported shared libraries with the
15537 # GNU dynamic linker. Since this was broken with cross compilers,
15538 # most powerpc-linux boxes support dynamic linking these days and
15539 # people can always --disable-shared, the test was removed, and we
15540 # assume the GNU/Linux dynamic linker is in use.
15541 dynamic_linker='GNU/Linux ld.so'
15542 ;;
15543
15544netbsd*)
15545 version_type=sunos
15546 need_lib_prefix=no
15547 need_version=no
15548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15551 dynamic_linker='NetBSD (a.out) ld.so'
15552 else
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 dynamic_linker='NetBSD ld.elf_so'
15556 fi
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15560 ;;
15561
15562newsos6)
15563 version_type=linux
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 ;;
15568
15569nto-qnx*)
15570 version_type=linux
15571 need_lib_prefix=no
15572 need_version=no
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=yes
15577 ;;
15578
15579openbsd*)
15580 version_type=sunos
15581 sys_lib_dlsearch_path_spec="/usr/lib"
15582 need_lib_prefix=no
15583 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15584 case $host_os in
15585 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15586 *) need_version=no ;;
15587 esac
15588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590 shlibpath_var=LD_LIBRARY_PATH
15591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15592 case $host_os in
15593 openbsd2.[89] | openbsd2.[89].*)
15594 shlibpath_overrides_runpath=no
15595 ;;
15596 *)
15597 shlibpath_overrides_runpath=yes
15598 ;;
15599 esac
15600 else
15601 shlibpath_overrides_runpath=yes
15602 fi
15603 ;;
15604
15605os2*)
15606 libname_spec='$name'
15607 shrext_cmds=".dll"
15608 need_lib_prefix=no
15609 library_names_spec='$libname${shared_ext} $libname.a'
15610 dynamic_linker='OS/2 ld.exe'
15611 shlibpath_var=LIBPATH
15612 ;;
15613
15614osf3* | osf4* | osf5*)
15615 version_type=osf
15616 need_lib_prefix=no
15617 need_version=no
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 shlibpath_var=LD_LIBRARY_PATH
15621 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15622 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15623 ;;
15624
15625rdos*)
15626 dynamic_linker=no
15627 ;;
15628
15629solaris*)
15630 version_type=linux
15631 need_lib_prefix=no
15632 need_version=no
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15638 # ldd complains unless libraries are executable
15639 postinstall_cmds='chmod +x $lib'
15640 ;;
15641
15642sunos4*)
15643 version_type=sunos
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 if test "$with_gnu_ld" = yes; then
15649 need_lib_prefix=no
15650 fi
15651 need_version=yes
15652 ;;
15653
15654sysv4 | sysv4.3*)
15655 version_type=linux
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 case $host_vendor in
15660 sni)
15661 shlibpath_overrides_runpath=no
15662 need_lib_prefix=no
15663 export_dynamic_flag_spec='${wl}-Blargedynsym'
15664 runpath_var=LD_RUN_PATH
15665 ;;
15666 siemens)
15667 need_lib_prefix=no
15668 ;;
15669 motorola)
15670 need_lib_prefix=no
15671 need_version=no
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15674 ;;
15675 esac
15676 ;;
15677
15678sysv4*MP*)
15679 if test -d /usr/nec ;then
15680 version_type=linux
15681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15682 soname_spec='$libname${shared_ext}.$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 fi
15685 ;;
15686
15687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15688 version_type=freebsd-elf
15689 need_lib_prefix=no
15690 need_version=no
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 hardcode_into_libs=yes
15695 if test "$with_gnu_ld" = yes; then
15696 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15697 shlibpath_overrides_runpath=no
15698 else
15699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15700 shlibpath_overrides_runpath=yes
15701 case $host_os in
15702 sco3.2v5*)
15703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15704 ;;
15705 esac
15706 fi
15707 sys_lib_dlsearch_path_spec='/usr/lib'
15708 ;;
15709
15710uts4*)
15711 version_type=linux
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 ;;
15716
15717*)
15718 dynamic_linker=no
15719 ;;
15720esac
15721{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15722$as_echo "$dynamic_linker" >&6; }
15723test "$dynamic_linker" = no && can_build_shared=no
15724
15725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15727else
15728 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15729fi
15730
15731sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15732if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15733 $as_echo_n "(cached) " >&6
15734else
15735 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15736fi
15737
15738sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15739
15740variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15741if test "$GCC" = yes; then
15742 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15743fi
15744
15745{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15746$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15747hardcode_action_F77=
15748if test -n "$hardcode_libdir_flag_spec_F77" || \
15749 test -n "$runpath_var_F77" || \
15750 test "X$hardcode_automatic_F77" = "Xyes" ; then
15751
15752 # We can hardcode non-existant directories.
15753 if test "$hardcode_direct_F77" != no &&
15754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15755 # have to relink, otherwise we might link with an installed library
15756 # when we should be linking with a yet-to-be-installed one
15757 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15758 test "$hardcode_minus_L_F77" != no; then
15759 # Linking always hardcodes the temporary library directory.
15760 hardcode_action_F77=relink
15761 else
15762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15763 hardcode_action_F77=immediate
15764 fi
15765else
15766 # We cannot hardcode anything, or else we can only hardcode existing
15767 # directories.
15768 hardcode_action_F77=unsupported
15769fi
15770{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15771$as_echo "$hardcode_action_F77" >&6; }
15772
15773if test "$hardcode_action_F77" = relink; then
15774 # Fast installation is not supported
15775 enable_fast_install=no
15776elif test "$shlibpath_overrides_runpath" = yes ||
15777 test "$enable_shared" = no; then
15778 # Fast installation is not necessary
15779 enable_fast_install=needless
15780fi
15781
15782
15783# The else clause should only fire when bootstrapping the
15784# libtool distribution, otherwise you forgot to ship ltmain.sh
15785# with your package, and you will get complaints that there are
15786# no rules to generate ltmain.sh.
15787if test -f "$ltmain"; then
15788 # See if we are running on zsh, and set the options which allow our commands through
15789 # without removal of \ escapes.
15790 if test -n "${ZSH_VERSION+set}" ; then
15791 setopt NO_GLOB_SUBST
15792 fi
15793 # Now quote all the things that may contain metacharacters while being
15794 # careful not to overquote the AC_SUBSTed values. We take copies of the
15795 # variables and quote the copies for generation of the libtool script.
15796 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15797 SED SHELL STRIP \
15798 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15799 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15800 deplibs_check_method reload_flag reload_cmds need_locks \
15801 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15802 lt_cv_sys_global_symbol_to_c_name_address \
15803 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15804 old_postinstall_cmds old_postuninstall_cmds \
15805 compiler_F77 \
15806 CC_F77 \
15807 LD_F77 \
15808 lt_prog_compiler_wl_F77 \
15809 lt_prog_compiler_pic_F77 \
15810 lt_prog_compiler_static_F77 \
15811 lt_prog_compiler_no_builtin_flag_F77 \
15812 export_dynamic_flag_spec_F77 \
15813 thread_safe_flag_spec_F77 \
15814 whole_archive_flag_spec_F77 \
15815 enable_shared_with_static_runtimes_F77 \
15816 old_archive_cmds_F77 \
15817 old_archive_from_new_cmds_F77 \
15818 predep_objects_F77 \
15819 postdep_objects_F77 \
15820 predeps_F77 \
15821 postdeps_F77 \
15822 compiler_lib_search_path_F77 \
15823 compiler_lib_search_dirs_F77 \
15824 archive_cmds_F77 \
15825 archive_expsym_cmds_F77 \
15826 postinstall_cmds_F77 \
15827 postuninstall_cmds_F77 \
15828 old_archive_from_expsyms_cmds_F77 \
15829 allow_undefined_flag_F77 \
15830 no_undefined_flag_F77 \
15831 export_symbols_cmds_F77 \
15832 hardcode_libdir_flag_spec_F77 \
15833 hardcode_libdir_flag_spec_ld_F77 \
15834 hardcode_libdir_separator_F77 \
15835 hardcode_automatic_F77 \
15836 module_cmds_F77 \
15837 module_expsym_cmds_F77 \
15838 lt_cv_prog_compiler_c_o_F77 \
15839 fix_srcfile_path_F77 \
15840 exclude_expsyms_F77 \
15841 include_expsyms_F77; do
15842
15843 case $var in
15844 old_archive_cmds_F77 | \
15845 old_archive_from_new_cmds_F77 | \
15846 archive_cmds_F77 | \
15847 archive_expsym_cmds_F77 | \
15848 module_cmds_F77 | \
15849 module_expsym_cmds_F77 | \
15850 old_archive_from_expsyms_cmds_F77 | \
15851 export_symbols_cmds_F77 | \
15852 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15853 postinstall_cmds | postuninstall_cmds | \
15854 old_postinstall_cmds | old_postuninstall_cmds | \
15855 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15856 # Double-quote double-evaled strings.
15857 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15858 ;;
15859 *)
15860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15861 ;;
15862 esac
15863 done
15864
15865 case $lt_echo in
15866 *'\$0 --fallback-echo"')
15867 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15868 ;;
15869 esac
15870
15871cfgfile="$ofile"
15872
15873 cat <<__EOF__ >> "$cfgfile"
15874# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15875
15876# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15877
15878# Shell to use when invoking shell scripts.
15879SHELL=$lt_SHELL
15880
15881# Whether or not to build shared libraries.
15882build_libtool_libs=$enable_shared
15883
15884# Whether or not to build static libraries.
15885build_old_libs=$enable_static
15886
15887# Whether or not to add -lc for building shared libraries.
15888build_libtool_need_lc=$archive_cmds_need_lc_F77
15889
15890# Whether or not to disallow shared libs when runtime libs are static
15891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15892
15893# Whether or not to optimize for fast installation.
15894fast_install=$enable_fast_install
15895
15896# The host system.
15897host_alias=$host_alias
15898host=$host
15899host_os=$host_os
15900
15901# The build system.
15902build_alias=$build_alias
15903build=$build
15904build_os=$build_os
15905
15906# An echo program that does not interpret backslashes.
15907echo=$lt_echo
15908
15909# The archiver.
15910AR=$lt_AR
15911AR_FLAGS=$lt_AR_FLAGS
15912
15913# A C compiler.
15914LTCC=$lt_LTCC
15915
15916# LTCC compiler flags.
15917LTCFLAGS=$lt_LTCFLAGS
15918
15919# A language-specific compiler.
15920CC=$lt_compiler_F77
15921
15922# Is the compiler the GNU C compiler?
15923with_gcc=$GCC_F77
15924
15925# An ERE matcher.
15926EGREP=$lt_EGREP
15927
15928# The linker used to build libraries.
15929LD=$lt_LD_F77
15930
15931# Whether we need hard or soft links.
15932LN_S=$lt_LN_S
15933
15934# A BSD-compatible nm program.
15935NM=$lt_NM
15936
15937# A symbol stripping program
15938STRIP=$lt_STRIP
15939
15940# Used to examine libraries when file_magic_cmd begins "file"
15941MAGIC_CMD=$MAGIC_CMD
15942
15943# Used on cygwin: DLL creation program.
15944DLLTOOL="$DLLTOOL"
15945
15946# Used on cygwin: object dumper.
15947OBJDUMP="$OBJDUMP"
15948
15949# Used on cygwin: assembler.
15950AS="$AS"
15951
15952# The name of the directory that contains temporary libtool files.
15953objdir=$objdir
15954
15955# How to create reloadable object files.
15956reload_flag=$lt_reload_flag
15957reload_cmds=$lt_reload_cmds
15958
15959# How to pass a linker flag through the compiler.
15960wl=$lt_lt_prog_compiler_wl_F77
15961
15962# Object file suffix (normally "o").
15963objext="$ac_objext"
15964
15965# Old archive suffix (normally "a").
15966libext="$libext"
15967
15968# Shared library suffix (normally ".so").
15969shrext_cmds='$shrext_cmds'
15970
15971# Executable file suffix (normally "").
15972exeext="$exeext"
15973
15974# Additional compiler flags for building library objects.
15975pic_flag=$lt_lt_prog_compiler_pic_F77
15976pic_mode=$pic_mode
15977
15978# What is the maximum length of a command?
15979max_cmd_len=$lt_cv_sys_max_cmd_len
15980
15981# Does compiler simultaneously support -c and -o options?
15982compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15983
15984# Must we lock files when doing compilation?
15985need_locks=$lt_need_locks
15986
15987# Do we need the lib prefix for modules?
15988need_lib_prefix=$need_lib_prefix
15989
15990# Do we need a version for libraries?
15991need_version=$need_version
15992
15993# Whether dlopen is supported.
15994dlopen_support=$enable_dlopen
15995
15996# Whether dlopen of programs is supported.
15997dlopen_self=$enable_dlopen_self
15998
15999# Whether dlopen of statically linked programs is supported.
16000dlopen_self_static=$enable_dlopen_self_static
16001
16002# Compiler flag to prevent dynamic linking.
16003link_static_flag=$lt_lt_prog_compiler_static_F77
16004
16005# Compiler flag to turn off builtin functions.
16006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16007
16008# Compiler flag to allow reflexive dlopens.
16009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16010
16011# Compiler flag to generate shared objects directly from archives.
16012whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16013
16014# Compiler flag to generate thread-safe objects.
16015thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16016
16017# Library versioning type.
16018version_type=$version_type
16019
16020# Format of library name prefix.
16021libname_spec=$lt_libname_spec
16022
16023# List of archive names. First name is the real one, the rest are links.
16024# The last name is the one that the linker finds with -lNAME.
16025library_names_spec=$lt_library_names_spec
16026
16027# The coded name of the library, if different from the real name.
16028soname_spec=$lt_soname_spec
16029
16030# Commands used to build and install an old-style archive.
16031RANLIB=$lt_RANLIB
16032old_archive_cmds=$lt_old_archive_cmds_F77
16033old_postinstall_cmds=$lt_old_postinstall_cmds
16034old_postuninstall_cmds=$lt_old_postuninstall_cmds
16035
16036# Create an old-style archive from a shared archive.
16037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16038
16039# Create a temporary old-style archive to link instead of a shared archive.
16040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16041
16042# Commands used to build and install a shared archive.
16043archive_cmds=$lt_archive_cmds_F77
16044archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16045postinstall_cmds=$lt_postinstall_cmds
16046postuninstall_cmds=$lt_postuninstall_cmds
16047
16048# Commands used to build a loadable module (assumed same as above if empty)
16049module_cmds=$lt_module_cmds_F77
16050module_expsym_cmds=$lt_module_expsym_cmds_F77
16051
16052# Commands to strip libraries.
16053old_striplib=$lt_old_striplib
16054striplib=$lt_striplib
16055
16056# Dependencies to place before the objects being linked to create a
16057# shared library.
16058predep_objects=$lt_predep_objects_F77
16059
16060# Dependencies to place after the objects being linked to create a
16061# shared library.
16062postdep_objects=$lt_postdep_objects_F77
16063
16064# Dependencies to place before the objects being linked to create a
16065# shared library.
16066predeps=$lt_predeps_F77
16067
16068# Dependencies to place after the objects being linked to create a
16069# shared library.
16070postdeps=$lt_postdeps_F77
16071
16072# The directories searched by this compiler when creating a shared
16073# library
16074compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16075
16076# The library search path used internally by the compiler when linking
16077# a shared library.
16078compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16079
16080# Method to check whether dependent libraries are shared objects.
16081deplibs_check_method=$lt_deplibs_check_method
16082
16083# Command to use when deplibs_check_method == file_magic.
16084file_magic_cmd=$lt_file_magic_cmd
16085
16086# Flag that allows shared libraries with undefined symbols to be built.
16087allow_undefined_flag=$lt_allow_undefined_flag_F77
16088
16089# Flag that forces no undefined symbols.
16090no_undefined_flag=$lt_no_undefined_flag_F77
16091
16092# Commands used to finish a libtool library installation in a directory.
16093finish_cmds=$lt_finish_cmds
16094
16095# Same as above, but a single script fragment to be evaled but not shown.
16096finish_eval=$lt_finish_eval
16097
16098# Take the output of nm and produce a listing of raw symbols and C names.
16099global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100
16101# Transform the output of nm in a proper C declaration
16102global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103
16104# Transform the output of nm in a C name address pair
16105global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16106
16107# This is the shared library runtime path variable.
16108runpath_var=$runpath_var
16109
16110# This is the shared library path variable.
16111shlibpath_var=$shlibpath_var
16112
16113# Is shlibpath searched before the hard-coded library search path?
16114shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16115
16116# How to hardcode a shared library path into an executable.
16117hardcode_action=$hardcode_action_F77
16118
16119# Whether we should hardcode library paths into libraries.
16120hardcode_into_libs=$hardcode_into_libs
16121
16122# Flag to hardcode \$libdir into a binary during linking.
16123# This must work even if \$libdir does not exist.
16124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16125
16126# If ld is used when linking, flag to hardcode \$libdir into
16127# a binary during linking. This must work even if \$libdir does
16128# not exist.
16129hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16130
16131# Whether we need a single -rpath flag with a separated argument.
16132hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16133
16134# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16135# resulting binary.
16136hardcode_direct=$hardcode_direct_F77
16137
16138# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16139# resulting binary.
16140hardcode_minus_L=$hardcode_minus_L_F77
16141
16142# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16143# the resulting binary.
16144hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16145
16146# Set to yes if building a shared library automatically hardcodes DIR into the library
16147# and all subsequent libraries and executables linked against it.
16148hardcode_automatic=$hardcode_automatic_F77
16149
16150# Variables whose values should be saved in libtool wrapper scripts and
16151# restored at relink time.
16152variables_saved_for_relink="$variables_saved_for_relink"
16153
16154# Whether libtool must link a program against all its dependency libraries.
16155link_all_deplibs=$link_all_deplibs_F77
16156
16157# Compile-time system search path for libraries
16158sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16159
16160# Run-time system search path for libraries
16161sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16162
16163# Fix the shell variable \$srcfile for the compiler.
16164fix_srcfile_path=$lt_fix_srcfile_path
16165
16166# Set to yes if exported symbols are required.
16167always_export_symbols=$always_export_symbols_F77
16168
16169# The commands to list exported symbols.
16170export_symbols_cmds=$lt_export_symbols_cmds_F77
16171
16172# The commands to extract the exported symbol list from a shared archive.
16173extract_expsyms_cmds=$lt_extract_expsyms_cmds
16174
16175# Symbols that should not be listed in the preloaded symbols.
16176exclude_expsyms=$lt_exclude_expsyms_F77
16177
16178# Symbols that must always be exported.
16179include_expsyms=$lt_include_expsyms_F77
16180
16181# ### END LIBTOOL TAG CONFIG: $tagname
16182
16183__EOF__
16184
16185
16186else
16187 # If there is no Makefile yet, we rely on a make rule to execute
16188 # `config.status --recheck' to rerun these tests and create the
16189 # libtool script then.
16190 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16191 if test -f "$ltmain_in"; then
16192 test -f Makefile && make "$ltmain"
16193 fi
16194fi
16195
16196
16197ac_ext=c
16198ac_cpp='$CPP $CPPFLAGS'
16199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16201ac_compiler_gnu=$ac_cv_c_compiler_gnu
16202
16203CC="$lt_save_CC"
16204
16205 else
16206 tagname=""
16207 fi
16208 ;;
16209
16210 GCJ)
16211 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16212
16213
16214# Source file extension for Java test sources.
16215ac_ext=java
16216
16217# Object file extension for compiled Java test sources.
16218objext=o
16219objext_GCJ=$objext
16220
16221# Code to be used in simple compile tests
16222lt_simple_compile_test_code="class foo {}"
16223
16224# Code to be used in simple link tests
16225lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16226
16227# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16228
16229# If no C compiler was specified, use CC.
16230LTCC=${LTCC-"$CC"}
16231
16232# If no C compiler flags were specified, use CFLAGS.
16233LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16234
16235# Allow CC to be a program name with arguments.
16236compiler=$CC
16237
16238
16239# save warnings/boilerplate of simple test code
16240ac_outfile=conftest.$ac_objext
16241echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16242eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16243_lt_compiler_boilerplate=`cat conftest.err`
16244$rm conftest*
16245
16246ac_outfile=conftest.$ac_objext
16247echo "$lt_simple_link_test_code" >conftest.$ac_ext
16248eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16249_lt_linker_boilerplate=`cat conftest.err`
16250$rm -r conftest*
16251
16252
16253# Allow CC to be a program name with arguments.
16254lt_save_CC="$CC"
16255CC=${GCJ-"gcj"}
16256compiler=$CC
16257compiler_GCJ=$CC
16258for cc_temp in $compiler""; do
16259 case $cc_temp in
16260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16262 \-*) ;;
16263 *) break;;
16264 esac
16265done
16266cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16267
16268
16269# GCJ did not exist at the time GCC didn't implicitly link libc in.
16270archive_cmds_need_lc_GCJ=no
16271
16272old_archive_cmds_GCJ=$old_archive_cmds
16273
16274
16275lt_prog_compiler_no_builtin_flag_GCJ=
16276
16277if test "$GCC" = yes; then
16278 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16279
16280
16281{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16282$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16283if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16284 $as_echo_n "(cached) " >&6
16285else
16286 lt_cv_prog_compiler_rtti_exceptions=no
16287 ac_outfile=conftest.$ac_objext
16288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16289 lt_compiler_flag="-fno-rtti -fno-exceptions"
16290 # Insert the option either (1) after the last *FLAGS variable, or
16291 # (2) before a word containing "conftest.", or (3) at the end.
16292 # Note that $ac_compile itself does not contain backslashes and begins
16293 # with a dollar sign (not a hyphen), so the echo should work correctly.
16294 # The option is referenced via a variable to avoid confusing sed.
16295 lt_compile=`echo "$ac_compile" | $SED \
16296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16298 -e 's:$: $lt_compiler_flag:'`
16299 (eval echo "\"\$as_me:16299: $lt_compile\"" >&5)
16300 (eval "$lt_compile" 2>conftest.err)
16301 ac_status=$?
16302 cat conftest.err >&5
16303 echo "$as_me:16303: \$? = $ac_status" >&5
16304 if (exit $ac_status) && test -s "$ac_outfile"; then
16305 # The compiler can only warn and ignore the option if not recognized
16306 # So say no if there are warnings other than the usual output.
16307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16310 lt_cv_prog_compiler_rtti_exceptions=yes
16311 fi
16312 fi
16313 $rm conftest*
16314
16315fi
16316{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16317$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16318
16319if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16320 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16321else
16322 :
16323fi
16324
16325fi
16326
16327lt_prog_compiler_wl_GCJ=
16328lt_prog_compiler_pic_GCJ=
16329lt_prog_compiler_static_GCJ=
16330
16331{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16332$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16333
16334 if test "$GCC" = yes; then
16335 lt_prog_compiler_wl_GCJ='-Wl,'
16336 lt_prog_compiler_static_GCJ='-static'
16337
16338 case $host_os in
16339 aix*)
16340 # All AIX code is PIC.
16341 if test "$host_cpu" = ia64; then
16342 # AIX 5 now supports IA64 processor
16343 lt_prog_compiler_static_GCJ='-Bstatic'
16344 fi
16345 ;;
16346
16347 amigaos*)
16348 # FIXME: we need at least 68020 code to build shared libraries, but
16349 # adding the `-m68020' flag to GCC prevents building anything better,
16350 # like `-m68040'.
16351 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16352 ;;
16353
16354 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16355 # PIC is the default for these OSes.
16356 ;;
16357
16358 mingw* | cygwin* | pw32* | os2*)
16359 # This hack is so that the source file can tell whether it is being
16360 # built for inclusion in a dll (and should export symbols for example).
16361 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16362 # (--disable-auto-import) libraries
16363
16364 ;;
16365
16366 darwin* | rhapsody*)
16367 # PIC is the default on this platform
16368 # Common symbols not allowed in MH_DYLIB files
16369 lt_prog_compiler_pic_GCJ='-fno-common'
16370 ;;
16371
16372 interix[3-9]*)
16373 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16374 # Instead, we relocate shared libraries at runtime.
16375 ;;
16376
16377 msdosdjgpp*)
16378 # Just because we use GCC doesn't mean we suddenly get shared libraries
16379 # on systems that don't support them.
16380 lt_prog_compiler_can_build_shared_GCJ=no
16381 enable_shared=no
16382 ;;
16383
16384 sysv4*MP*)
16385 if test -d /usr/nec; then
16386 lt_prog_compiler_pic_GCJ=-Kconform_pic
16387 fi
16388 ;;
16389
16390 hpux*)
16391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16392 # not for PA HP-UX.
16393 case $host_cpu in
16394 hppa*64*|ia64*)
16395 # +Z the default
16396 ;;
16397 *)
16398 lt_prog_compiler_pic_GCJ='-fPIC'
16399 ;;
16400 esac
16401 ;;
16402
16403 *)
16404 lt_prog_compiler_pic_GCJ='-fPIC'
16405 ;;
16406 esac
16407 else
16408 # PORTME Check for flag to pass linker flags through the system compiler.
16409 case $host_os in
16410 aix*)
16411 lt_prog_compiler_wl_GCJ='-Wl,'
16412 if test "$host_cpu" = ia64; then
16413 # AIX 5 now supports IA64 processor
16414 lt_prog_compiler_static_GCJ='-Bstatic'
16415 else
16416 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16417 fi
16418 ;;
16419 darwin*)
16420 # PIC is the default on this platform
16421 # Common symbols not allowed in MH_DYLIB files
16422 case $cc_basename in
16423 xlc*)
16424 lt_prog_compiler_pic_GCJ='-qnocommon'
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16426 ;;
16427 esac
16428 ;;
16429
16430 mingw* | cygwin* | pw32* | os2*)
16431 # This hack is so that the source file can tell whether it is being
16432 # built for inclusion in a dll (and should export symbols for example).
16433
16434 ;;
16435
16436 hpux9* | hpux10* | hpux11*)
16437 lt_prog_compiler_wl_GCJ='-Wl,'
16438 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16439 # not for PA HP-UX.
16440 case $host_cpu in
16441 hppa*64*|ia64*)
16442 # +Z the default
16443 ;;
16444 *)
16445 lt_prog_compiler_pic_GCJ='+Z'
16446 ;;
16447 esac
16448 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16449 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16450 ;;
16451
16452 irix5* | irix6* | nonstopux*)
16453 lt_prog_compiler_wl_GCJ='-Wl,'
16454 # PIC (with -KPIC) is the default.
16455 lt_prog_compiler_static_GCJ='-non_shared'
16456 ;;
16457
16458 newsos6)
16459 lt_prog_compiler_pic_GCJ='-KPIC'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16461 ;;
16462
16463 linux* | k*bsd*-gnu)
16464 case $cc_basename in
16465 icc* | ecc*)
16466 lt_prog_compiler_wl_GCJ='-Wl,'
16467 lt_prog_compiler_pic_GCJ='-KPIC'
16468 lt_prog_compiler_static_GCJ='-static'
16469 ;;
16470 pgcc* | pgf77* | pgf90* | pgf95*)
16471 # Portland Group compilers (*not* the Pentium gcc compiler,
16472 # which looks to be a dead project)
16473 lt_prog_compiler_wl_GCJ='-Wl,'
16474 lt_prog_compiler_pic_GCJ='-fpic'
16475 lt_prog_compiler_static_GCJ='-Bstatic'
16476 ;;
16477 ccc*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 # All Alpha code is PIC.
16480 lt_prog_compiler_static_GCJ='-non_shared'
16481 ;;
16482 *)
16483 case `$CC -V 2>&1 | sed 5q` in
16484 *Sun\ C*)
16485 # Sun C 5.9
16486 lt_prog_compiler_pic_GCJ='-KPIC'
16487 lt_prog_compiler_static_GCJ='-Bstatic'
16488 lt_prog_compiler_wl_GCJ='-Wl,'
16489 ;;
16490 *Sun\ F*)
16491 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16492 lt_prog_compiler_pic_GCJ='-KPIC'
16493 lt_prog_compiler_static_GCJ='-Bstatic'
16494 lt_prog_compiler_wl_GCJ=''
16495 ;;
16496 esac
16497 ;;
16498 esac
16499 ;;
16500
16501 osf3* | osf4* | osf5*)
16502 lt_prog_compiler_wl_GCJ='-Wl,'
16503 # All OSF/1 code is PIC.
16504 lt_prog_compiler_static_GCJ='-non_shared'
16505 ;;
16506
16507 rdos*)
16508 lt_prog_compiler_static_GCJ='-non_shared'
16509 ;;
16510
16511 solaris*)
16512 lt_prog_compiler_pic_GCJ='-KPIC'
16513 lt_prog_compiler_static_GCJ='-Bstatic'
16514 case $cc_basename in
16515 f77* | f90* | f95*)
16516 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16517 *)
16518 lt_prog_compiler_wl_GCJ='-Wl,';;
16519 esac
16520 ;;
16521
16522 sunos4*)
16523 lt_prog_compiler_wl_GCJ='-Qoption ld '
16524 lt_prog_compiler_pic_GCJ='-PIC'
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16526 ;;
16527
16528 sysv4 | sysv4.2uw2* | sysv4.3*)
16529 lt_prog_compiler_wl_GCJ='-Wl,'
16530 lt_prog_compiler_pic_GCJ='-KPIC'
16531 lt_prog_compiler_static_GCJ='-Bstatic'
16532 ;;
16533
16534 sysv4*MP*)
16535 if test -d /usr/nec ;then
16536 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16537 lt_prog_compiler_static_GCJ='-Bstatic'
16538 fi
16539 ;;
16540
16541 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16542 lt_prog_compiler_wl_GCJ='-Wl,'
16543 lt_prog_compiler_pic_GCJ='-KPIC'
16544 lt_prog_compiler_static_GCJ='-Bstatic'
16545 ;;
16546
16547 unicos*)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_can_build_shared_GCJ=no
16550 ;;
16551
16552 uts4*)
16553 lt_prog_compiler_pic_GCJ='-pic'
16554 lt_prog_compiler_static_GCJ='-Bstatic'
16555 ;;
16556
16557 *)
16558 lt_prog_compiler_can_build_shared_GCJ=no
16559 ;;
16560 esac
16561 fi
16562
16563{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16564$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16565
16566#
16567# Check to make sure the PIC flag actually works.
16568#
16569if test -n "$lt_prog_compiler_pic_GCJ"; then
16570
16571{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16572$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16573if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16574 $as_echo_n "(cached) " >&6
16575else
16576 lt_cv_prog_compiler_pic_works_GCJ=no
16577 ac_outfile=conftest.$ac_objext
16578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16579 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16580 # Insert the option either (1) after the last *FLAGS variable, or
16581 # (2) before a word containing "conftest.", or (3) at the end.
16582 # Note that $ac_compile itself does not contain backslashes and begins
16583 # with a dollar sign (not a hyphen), so the echo should work correctly.
16584 # The option is referenced via a variable to avoid confusing sed.
16585 lt_compile=`echo "$ac_compile" | $SED \
16586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16588 -e 's:$: $lt_compiler_flag:'`
16589 (eval echo "\"\$as_me:16589: $lt_compile\"" >&5)
16590 (eval "$lt_compile" 2>conftest.err)
16591 ac_status=$?
16592 cat conftest.err >&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 if (exit $ac_status) && test -s "$ac_outfile"; then
16595 # The compiler can only warn and ignore the option if not recognized
16596 # So say no if there are warnings other than the usual output.
16597 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16600 lt_cv_prog_compiler_pic_works_GCJ=yes
16601 fi
16602 fi
16603 $rm conftest*
16604
16605fi
16606{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16607$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16608
16609if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16610 case $lt_prog_compiler_pic_GCJ in
16611 "" | " "*) ;;
16612 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16613 esac
16614else
16615 lt_prog_compiler_pic_GCJ=
16616 lt_prog_compiler_can_build_shared_GCJ=no
16617fi
16618
16619fi
16620case $host_os in
16621 # For platforms which do not support PIC, -DPIC is meaningless:
16622 *djgpp*)
16623 lt_prog_compiler_pic_GCJ=
16624 ;;
16625 *)
16626 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16627 ;;
16628esac
16629
16630#
16631# Check to make sure the static flag actually works.
16632#
16633wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16634{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16635$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16636if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16637 $as_echo_n "(cached) " >&6
16638else
16639 lt_cv_prog_compiler_static_works_GCJ=no
16640 save_LDFLAGS="$LDFLAGS"
16641 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16642 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16643 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16644 # The linker can only warn and ignore the option if not recognized
16645 # So say no if there are warnings
16646 if test -s conftest.err; then
16647 # Append any errors to the config.log.
16648 cat conftest.err 1>&5
16649 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16651 if diff conftest.exp conftest.er2 >/dev/null; then
16652 lt_cv_prog_compiler_static_works_GCJ=yes
16653 fi
16654 else
16655 lt_cv_prog_compiler_static_works_GCJ=yes
16656 fi
16657 fi
16658 $rm -r conftest*
16659 LDFLAGS="$save_LDFLAGS"
16660
16661fi
16662{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16663$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
16664
16665if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16666 :
16667else
16668 lt_prog_compiler_static_GCJ=
16669fi
16670
16671
16672{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16674if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16675 $as_echo_n "(cached) " >&6
16676else
16677 lt_cv_prog_compiler_c_o_GCJ=no
16678 $rm -r conftest 2>/dev/null
16679 mkdir conftest
16680 cd conftest
16681 mkdir out
16682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16683
16684 lt_compiler_flag="-o out/conftest2.$ac_objext"
16685 # Insert the option either (1) after the last *FLAGS variable, or
16686 # (2) before a word containing "conftest.", or (3) at the end.
16687 # Note that $ac_compile itself does not contain backslashes and begins
16688 # with a dollar sign (not a hyphen), so the echo should work correctly.
16689 lt_compile=`echo "$ac_compile" | $SED \
16690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16692 -e 's:$: $lt_compiler_flag:'`
16693 (eval echo "\"\$as_me:16693: $lt_compile\"" >&5)
16694 (eval "$lt_compile" 2>out/conftest.err)
16695 ac_status=$?
16696 cat out/conftest.err >&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16699 then
16700 # The compiler can only warn and ignore the option if not recognized
16701 # So say no if there are warnings
16702 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16705 lt_cv_prog_compiler_c_o_GCJ=yes
16706 fi
16707 fi
16708 chmod u+w . 2>&5
16709 $rm conftest*
16710 # SGI C++ compiler will create directory out/ii_files/ for
16711 # template instantiation
16712 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16713 $rm out/* && rmdir out
16714 cd ..
16715 rmdir conftest
16716 $rm conftest*
16717
16718fi
16719{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16720$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16721
16722
16723hard_links="nottested"
16724if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16725 # do not overwrite the value of need_locks provided by the user
16726 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16727$as_echo_n "checking if we can lock with hard links... " >&6; }
16728 hard_links=yes
16729 $rm conftest*
16730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16731 touch conftest.a
16732 ln conftest.a conftest.b 2>&5 || hard_links=no
16733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16734 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16735$as_echo "$hard_links" >&6; }
16736 if test "$hard_links" = no; then
16737 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16738$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16739 need_locks=warn
16740 fi
16741else
16742 need_locks=no
16743fi
16744
16745{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16746$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16747
16748 runpath_var=
16749 allow_undefined_flag_GCJ=
16750 enable_shared_with_static_runtimes_GCJ=no
16751 archive_cmds_GCJ=
16752 archive_expsym_cmds_GCJ=
16753 old_archive_From_new_cmds_GCJ=
16754 old_archive_from_expsyms_cmds_GCJ=
16755 export_dynamic_flag_spec_GCJ=
16756 whole_archive_flag_spec_GCJ=
16757 thread_safe_flag_spec_GCJ=
16758 hardcode_libdir_flag_spec_GCJ=
16759 hardcode_libdir_flag_spec_ld_GCJ=
16760 hardcode_libdir_separator_GCJ=
16761 hardcode_direct_GCJ=no
16762 hardcode_minus_L_GCJ=no
16763 hardcode_shlibpath_var_GCJ=unsupported
16764 link_all_deplibs_GCJ=unknown
16765 hardcode_automatic_GCJ=no
16766 module_cmds_GCJ=
16767 module_expsym_cmds_GCJ=
16768 always_export_symbols_GCJ=no
16769 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16770 # include_expsyms should be a list of space-separated symbols to be *always*
16771 # included in the symbol list
16772 include_expsyms_GCJ=
16773 # exclude_expsyms can be an extended regexp of symbols to exclude
16774 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16775 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16776 # as well as any symbol that contains `d'.
16777 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16778 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16779 # platforms (ab)use it in PIC code, but their linkers get confused if
16780 # the symbol is explicitly referenced. Since portable code cannot
16781 # rely on this symbol name, it's probably fine to never include it in
16782 # preloaded symbol tables.
16783 # Exclude shared library initialization/finalization symbols.
16784 extract_expsyms_cmds=
16785 # Just being paranoid about ensuring that cc_basename is set.
16786 for cc_temp in $compiler""; do
16787 case $cc_temp in
16788 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16789 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16790 \-*) ;;
16791 *) break;;
16792 esac
16793done
16794cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16795
16796 case $host_os in
16797 cygwin* | mingw* | pw32*)
16798 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16799 # When not using gcc, we currently assume that we are using
16800 # Microsoft Visual C++.
16801 if test "$GCC" != yes; then
16802 with_gnu_ld=no
16803 fi
16804 ;;
16805 interix*)
16806 # we just hope/assume this is gcc and not c89 (= MSVC++)
16807 with_gnu_ld=yes
16808 ;;
16809 openbsd*)
16810 with_gnu_ld=no
16811 ;;
16812 esac
16813
16814 ld_shlibs_GCJ=yes
16815 if test "$with_gnu_ld" = yes; then
16816 # If archive_cmds runs LD, not CC, wlarc should be empty
16817 wlarc='${wl}'
16818
16819 # Set some defaults for GNU ld with shared library support. These
16820 # are reset later if shared libraries are not supported. Putting them
16821 # here allows them to be overridden if necessary.
16822 runpath_var=LD_RUN_PATH
16823 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16824 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16825 # ancient GNU ld didn't support --whole-archive et. al.
16826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16827 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16828 else
16829 whole_archive_flag_spec_GCJ=
16830 fi
16831 supports_anon_versioning=no
16832 case `$LD -v 2>/dev/null` in
16833 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16834 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16835 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16836 *\ 2.11.*) ;; # other 2.11 versions
16837 *) supports_anon_versioning=yes ;;
16838 esac
16839
16840 # See if GNU ld supports shared libraries.
16841 case $host_os in
16842 aix[3-9]*)
16843 # On AIX/PPC, the GNU linker is very broken
16844 if test "$host_cpu" != ia64; then
16845 ld_shlibs_GCJ=no
16846 cat <<EOF 1>&2
16847
16848*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16849*** to be unable to reliably create shared libraries on AIX.
16850*** Therefore, libtool is disabling shared libraries support. If you
16851*** really care for shared libraries, you may want to modify your PATH
16852*** so that a non-GNU linker is found, and then restart.
16853
16854EOF
16855 fi
16856 ;;
16857
16858 amigaos*)
16859 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)'
16860 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16861 hardcode_minus_L_GCJ=yes
16862
16863 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16864 # that the semantics of dynamic libraries on AmigaOS, at least up
16865 # to version 4, is to share data among multiple programs linked
16866 # with the same dynamic library. Since this doesn't match the
16867 # behavior of shared libraries on other platforms, we can't use
16868 # them.
16869 ld_shlibs_GCJ=no
16870 ;;
16871
16872 beos*)
16873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16874 allow_undefined_flag_GCJ=unsupported
16875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16876 # support --undefined. This deserves some investigation. FIXME
16877 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 else
16879 ld_shlibs_GCJ=no
16880 fi
16881 ;;
16882
16883 cygwin* | mingw* | pw32*)
16884 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16885 # as there is no search path for DLLs.
16886 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16887 allow_undefined_flag_GCJ=unsupported
16888 always_export_symbols_GCJ=no
16889 enable_shared_with_static_runtimes_GCJ=yes
16890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16891
16892 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16893 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16894 # If the export-symbols file already is a .def file (1st line
16895 # is EXPORTS), use it as is; otherwise, prepend...
16896 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16897 cp $export_symbols $output_objdir/$soname.def;
16898 else
16899 echo EXPORTS > $output_objdir/$soname.def;
16900 cat $export_symbols >> $output_objdir/$soname.def;
16901 fi~
16902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16903 else
16904 ld_shlibs_GCJ=no
16905 fi
16906 ;;
16907
16908 interix[3-9]*)
16909 hardcode_direct_GCJ=no
16910 hardcode_shlibpath_var_GCJ=no
16911 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec_GCJ='${wl}-E'
16913 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16914 # Instead, shared libraries are loaded at an image base (0x10000000 by
16915 # default) and relocated if they conflict, which is a slow very memory
16916 # consuming and fragmenting process. To avoid this, we pick a random,
16917 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16918 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16919 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'
16920 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'
16921 ;;
16922
16923 gnu* | linux* | k*bsd*-gnu)
16924 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16925 tmp_addflag=
16926 case $cc_basename,$host_cpu in
16927 pgcc*) # Portland Group C compiler
16928 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'
16929 tmp_addflag=' $pic_flag'
16930 ;;
16931 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16932 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'
16933 tmp_addflag=' $pic_flag -Mnomain' ;;
16934 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16935 tmp_addflag=' -i_dynamic' ;;
16936 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16937 tmp_addflag=' -i_dynamic -nofor_main' ;;
16938 ifc* | ifort*) # Intel Fortran compiler
16939 tmp_addflag=' -nofor_main' ;;
16940 esac
16941 case `$CC -V 2>&1 | sed 5q` in
16942 *Sun\ C*) # Sun C 5.9
16943 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'
16944 tmp_sharedflag='-G' ;;
16945 *Sun\ F*) # Sun Fortran 8.3
16946 tmp_sharedflag='-G' ;;
16947 *)
16948 tmp_sharedflag='-shared' ;;
16949 esac
16950 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16951
16952 if test $supports_anon_versioning = yes; then
16953 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16954 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16955 $echo "local: *; };" >> $output_objdir/$libname.ver~
16956 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16957 fi
16958 else
16959 ld_shlibs_GCJ=no
16960 fi
16961 ;;
16962
16963 netbsd*)
16964 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16965 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16966 wlarc=
16967 else
16968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16970 fi
16971 ;;
16972
16973 solaris*)
16974 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16975 ld_shlibs_GCJ=no
16976 cat <<EOF 1>&2
16977
16978*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16979*** create shared libraries on Solaris systems. Therefore, libtool
16980*** is disabling shared libraries support. We urge you to upgrade GNU
16981*** binutils to release 2.9.1 or newer. Another option is to modify
16982*** your PATH or compiler configuration so that the native linker is
16983*** used, and then restart.
16984
16985EOF
16986 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16989 else
16990 ld_shlibs_GCJ=no
16991 fi
16992 ;;
16993
16994 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16995 case `$LD -v 2>&1` in
16996 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16997 ld_shlibs_GCJ=no
16998 cat <<_LT_EOF 1>&2
16999
17000*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17001*** reliably create shared libraries on SCO systems. Therefore, libtool
17002*** is disabling shared libraries support. We urge you to upgrade GNU
17003*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17004*** your PATH or compiler configuration so that the native linker is
17005*** used, and then restart.
17006
17007_LT_EOF
17008 ;;
17009 *)
17010 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17011 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17013 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018 esac
17019 ;;
17020
17021 sunos4*)
17022 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023 wlarc=
17024 hardcode_direct_GCJ=yes
17025 hardcode_shlibpath_var_GCJ=no
17026 ;;
17027
17028 *)
17029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17032 else
17033 ld_shlibs_GCJ=no
17034 fi
17035 ;;
17036 esac
17037
17038 if test "$ld_shlibs_GCJ" = no; then
17039 runpath_var=
17040 hardcode_libdir_flag_spec_GCJ=
17041 export_dynamic_flag_spec_GCJ=
17042 whole_archive_flag_spec_GCJ=
17043 fi
17044 else
17045 # PORTME fill in a description of your system's linker (not GNU ld)
17046 case $host_os in
17047 aix3*)
17048 allow_undefined_flag_GCJ=unsupported
17049 always_export_symbols_GCJ=yes
17050 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'
17051 # Note: this linker hardcodes the directories in LIBPATH if there
17052 # are no directories specified by -L.
17053 hardcode_minus_L_GCJ=yes
17054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17055 # Neither direct hardcoding nor static linking is supported with a
17056 # broken collect2.
17057 hardcode_direct_GCJ=unsupported
17058 fi
17059 ;;
17060
17061 aix[4-9]*)
17062 if test "$host_cpu" = ia64; then
17063 # On IA64, the linker does run time linking by default, so we don't
17064 # have to do anything special.
17065 aix_use_runtimelinking=no
17066 exp_sym_flag='-Bexport'
17067 no_entry_flag=""
17068 else
17069 # If we're using GNU nm, then we don't want the "-C" option.
17070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17071 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17072 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'
17073 else
17074 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'
17075 fi
17076 aix_use_runtimelinking=no
17077
17078 # Test if we are trying to use run time linking or normal
17079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17080 # need to do runtime linking.
17081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17082 for ld_flag in $LDFLAGS; do
17083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17084 aix_use_runtimelinking=yes
17085 break
17086 fi
17087 done
17088 ;;
17089 esac
17090
17091 exp_sym_flag='-bexport'
17092 no_entry_flag='-bnoentry'
17093 fi
17094
17095 # When large executables or shared objects are built, AIX ld can
17096 # have problems creating the table of contents. If linking a library
17097 # or program results in "error TOC overflow" add -mminimal-toc to
17098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17100
17101 archive_cmds_GCJ=''
17102 hardcode_direct_GCJ=yes
17103 hardcode_libdir_separator_GCJ=':'
17104 link_all_deplibs_GCJ=yes
17105
17106 if test "$GCC" = yes; then
17107 case $host_os in aix4.[012]|aix4.[012].*)
17108 # We only want to do this on AIX 4.2 and lower, the check
17109 # below for broken collect2 doesn't work under 4.3+
17110 collect2name=`${CC} -print-prog-name=collect2`
17111 if test -f "$collect2name" && \
17112 strings "$collect2name" | grep resolve_lib_name >/dev/null
17113 then
17114 # We have reworked collect2
17115 :
17116 else
17117 # We have old collect2
17118 hardcode_direct_GCJ=unsupported
17119 # It fails to find uninstalled libraries when the uninstalled
17120 # path is not listed in the libpath. Setting hardcode_minus_L
17121 # to unsupported forces relinking
17122 hardcode_minus_L_GCJ=yes
17123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17124 hardcode_libdir_separator_GCJ=
17125 fi
17126 ;;
17127 esac
17128 shared_flag='-shared'
17129 if test "$aix_use_runtimelinking" = yes; then
17130 shared_flag="$shared_flag "'${wl}-G'
17131 fi
17132 else
17133 # not using gcc
17134 if test "$host_cpu" = ia64; then
17135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17136 # chokes on -Wl,-G. The following line is correct:
17137 shared_flag='-G'
17138 else
17139 if test "$aix_use_runtimelinking" = yes; then
17140 shared_flag='${wl}-G'
17141 else
17142 shared_flag='${wl}-bM:SRE'
17143 fi
17144 fi
17145 fi
17146
17147 # It seems that -bexpall does not export symbols beginning with
17148 # underscore (_), so it is better to generate a list of symbols to export.
17149 always_export_symbols_GCJ=yes
17150 if test "$aix_use_runtimelinking" = yes; then
17151 # Warning - without using the other runtime loading flags (-brtl),
17152 # -berok will link without error, but may produce a broken library.
17153 allow_undefined_flag_GCJ='-berok'
17154 # Determine the default libpath from the value encoded in an empty executable.
17155 cat >conftest.$ac_ext <<_ACEOF
17156/* confdefs.h. */
17157_ACEOF
17158cat confdefs.h >>conftest.$ac_ext
17159cat >>conftest.$ac_ext <<_ACEOF
17160/* end confdefs.h. */
17161
17162int
17163main ()
17164{
17165
17166 ;
17167 return 0;
17168}
17169_ACEOF
17170rm -f conftest.$ac_objext conftest$ac_exeext
17171if { (ac_try="$ac_link"
17172case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175esac
17176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17177$as_echo "$ac_try_echo") >&5
17178 (eval "$ac_link") 2>conftest.er1
17179 ac_status=$?
17180 grep -v '^ *+' conftest.er1 >conftest.err
17181 rm -f conftest.er1
17182 cat conftest.err >&5
17183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); } && {
17185 test -z "$ac_c_werror_flag" ||
17186 test ! -s conftest.err
17187 } && test -s conftest$ac_exeext && {
17188 test "$cross_compiling" = yes ||
17189 $as_test_x conftest$ac_exeext
17190 }; then
17191
17192lt_aix_libpath_sed='
17193 /Import File Strings/,/^$/ {
17194 /^0/ {
17195 s/^0 *\(.*\)$/\1/
17196 p
17197 }
17198 }'
17199aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17200# Check for a 64-bit object if we didn't find anything.
17201if test -z "$aix_libpath"; then
17202 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17203fi
17204else
17205 $as_echo "$as_me: failed program was:" >&5
17206sed 's/^/| /' conftest.$ac_ext >&5
17207
17208
17209fi
17210
17211rm -rf conftest.dSYM
17212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17213 conftest$ac_exeext conftest.$ac_ext
17214if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17215
17216 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17217 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"
17218 else
17219 if test "$host_cpu" = ia64; then
17220 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17221 allow_undefined_flag_GCJ="-z nodefs"
17222 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"
17223 else
17224 # Determine the default libpath from the value encoded in an empty executable.
17225 cat >conftest.$ac_ext <<_ACEOF
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231
17232int
17233main ()
17234{
17235
17236 ;
17237 return 0;
17238}
17239_ACEOF
17240rm -f conftest.$ac_objext conftest$ac_exeext
17241if { (ac_try="$ac_link"
17242case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17247$as_echo "$ac_try_echo") >&5
17248 (eval "$ac_link") 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } && {
17255 test -z "$ac_c_werror_flag" ||
17256 test ! -s conftest.err
17257 } && test -s conftest$ac_exeext && {
17258 test "$cross_compiling" = yes ||
17259 $as_test_x conftest$ac_exeext
17260 }; then
17261
17262lt_aix_libpath_sed='
17263 /Import File Strings/,/^$/ {
17264 /^0/ {
17265 s/^0 *\(.*\)$/\1/
17266 p
17267 }
17268 }'
17269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17270# Check for a 64-bit object if we didn't find anything.
17271if test -z "$aix_libpath"; then
17272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17273fi
17274else
17275 $as_echo "$as_me: failed program was:" >&5
17276sed 's/^/| /' conftest.$ac_ext >&5
17277
17278
17279fi
17280
17281rm -rf conftest.dSYM
17282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17284if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17285
17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17287 # Warning - without using the other run time loading flags,
17288 # -berok will link without error, but may produce a broken library.
17289 no_undefined_flag_GCJ=' ${wl}-bernotok'
17290 allow_undefined_flag_GCJ=' ${wl}-berok'
17291 # Exported symbols can be pulled into shared objects from archives
17292 whole_archive_flag_spec_GCJ='$convenience'
17293 archive_cmds_need_lc_GCJ=yes
17294 # This is similar to how AIX traditionally builds its shared libraries.
17295 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'
17296 fi
17297 fi
17298 ;;
17299
17300 amigaos*)
17301 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)'
17302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17303 hardcode_minus_L_GCJ=yes
17304 # see comment about different semantics on the GNU ld section
17305 ld_shlibs_GCJ=no
17306 ;;
17307
17308 bsdi[45]*)
17309 export_dynamic_flag_spec_GCJ=-rdynamic
17310 ;;
17311
17312 cygwin* | mingw* | pw32*)
17313 # When not using gcc, we currently assume that we are using
17314 # Microsoft Visual C++.
17315 # hardcode_libdir_flag_spec is actually meaningless, as there is
17316 # no search path for DLLs.
17317 hardcode_libdir_flag_spec_GCJ=' '
17318 allow_undefined_flag_GCJ=unsupported
17319 # Tell ltmain to make .lib files, not .a files.
17320 libext=lib
17321 # Tell ltmain to make .dll files, not .so files.
17322 shrext_cmds=".dll"
17323 # FIXME: Setting linknames here is a bad hack.
17324 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17325 # The linker will automatically build a .lib file if we build a DLL.
17326 old_archive_From_new_cmds_GCJ='true'
17327 # FIXME: Should let the user specify the lib program.
17328 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17329 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17330 enable_shared_with_static_runtimes_GCJ=yes
17331 ;;
17332
17333 darwin* | rhapsody*)
17334 case $host_os in
17335 rhapsody* | darwin1.[012])
17336 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17337 ;;
17338 *) # Darwin 1.3 on
17339 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17340 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17341 else
17342 case ${MACOSX_DEPLOYMENT_TARGET} in
17343 10.[012])
17344 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17345 ;;
17346 10.*)
17347 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17348 ;;
17349 esac
17350 fi
17351 ;;
17352 esac
17353 archive_cmds_need_lc_GCJ=no
17354 hardcode_direct_GCJ=no
17355 hardcode_automatic_GCJ=yes
17356 hardcode_shlibpath_var_GCJ=unsupported
17357 whole_archive_flag_spec_GCJ=''
17358 link_all_deplibs_GCJ=yes
17359 if test "$GCC" = yes ; then
17360 output_verbose_link_cmd='echo'
17361 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}"
17362 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17363 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}"
17364 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}"
17365 else
17366 case $cc_basename in
17367 xlc*)
17368 output_verbose_link_cmd='echo'
17369 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17370 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17372 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}'
17373 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}'
17374 ;;
17375 *)
17376 ld_shlibs_GCJ=no
17377 ;;
17378 esac
17379 fi
17380 ;;
17381
17382 dgux*)
17383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17385 hardcode_shlibpath_var_GCJ=no
17386 ;;
17387
17388 freebsd1*)
17389 ld_shlibs_GCJ=no
17390 ;;
17391
17392 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17393 # support. Future versions do this automatically, but an explicit c++rt0.o
17394 # does not break anything, and helps significantly (at the cost of a little
17395 # extra space).
17396 freebsd2.2*)
17397 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17398 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17399 hardcode_direct_GCJ=yes
17400 hardcode_shlibpath_var_GCJ=no
17401 ;;
17402
17403 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17404 freebsd2*)
17405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_direct_GCJ=yes
17407 hardcode_minus_L_GCJ=yes
17408 hardcode_shlibpath_var_GCJ=no
17409 ;;
17410
17411 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17412 freebsd* | dragonfly*)
17413 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17414 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17415 hardcode_direct_GCJ=yes
17416 hardcode_shlibpath_var_GCJ=no
17417 ;;
17418
17419 hpux9*)
17420 if test "$GCC" = yes; then
17421 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'
17422 else
17423 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'
17424 fi
17425 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17426 hardcode_libdir_separator_GCJ=:
17427 hardcode_direct_GCJ=yes
17428
17429 # hardcode_minus_L: Not really in the search PATH,
17430 # but as the default location of the library.
17431 hardcode_minus_L_GCJ=yes
17432 export_dynamic_flag_spec_GCJ='${wl}-E'
17433 ;;
17434
17435 hpux10*)
17436 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17437 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17438 else
17439 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17440 fi
17441 if test "$with_gnu_ld" = no; then
17442 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17443 hardcode_libdir_separator_GCJ=:
17444
17445 hardcode_direct_GCJ=yes
17446 export_dynamic_flag_spec_GCJ='${wl}-E'
17447
17448 # hardcode_minus_L: Not really in the search PATH,
17449 # but as the default location of the library.
17450 hardcode_minus_L_GCJ=yes
17451 fi
17452 ;;
17453
17454 hpux11*)
17455 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17456 case $host_cpu in
17457 hppa*64*)
17458 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17459 ;;
17460 ia64*)
17461 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17462 ;;
17463 *)
17464 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17465 ;;
17466 esac
17467 else
17468 case $host_cpu in
17469 hppa*64*)
17470 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17471 ;;
17472 ia64*)
17473 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17474 ;;
17475 *)
17476 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17477 ;;
17478 esac
17479 fi
17480 if test "$with_gnu_ld" = no; then
17481 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17482 hardcode_libdir_separator_GCJ=:
17483
17484 case $host_cpu in
17485 hppa*64*|ia64*)
17486 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17487 hardcode_direct_GCJ=no
17488 hardcode_shlibpath_var_GCJ=no
17489 ;;
17490 *)
17491 hardcode_direct_GCJ=yes
17492 export_dynamic_flag_spec_GCJ='${wl}-E'
17493
17494 # hardcode_minus_L: Not really in the search PATH,
17495 # but as the default location of the library.
17496 hardcode_minus_L_GCJ=yes
17497 ;;
17498 esac
17499 fi
17500 ;;
17501
17502 irix5* | irix6* | nonstopux*)
17503 if test "$GCC" = yes; then
17504 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'
17505 else
17506 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'
17507 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17508 fi
17509 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17510 hardcode_libdir_separator_GCJ=:
17511 link_all_deplibs_GCJ=yes
17512 ;;
17513
17514 netbsd*)
17515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17517 else
17518 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17519 fi
17520 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17521 hardcode_direct_GCJ=yes
17522 hardcode_shlibpath_var_GCJ=no
17523 ;;
17524
17525 newsos6)
17526 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527 hardcode_direct_GCJ=yes
17528 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17529 hardcode_libdir_separator_GCJ=:
17530 hardcode_shlibpath_var_GCJ=no
17531 ;;
17532
17533 openbsd*)
17534 if test -f /usr/libexec/ld.so; then
17535 hardcode_direct_GCJ=yes
17536 hardcode_shlibpath_var_GCJ=no
17537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17541 export_dynamic_flag_spec_GCJ='${wl}-E'
17542 else
17543 case $host_os in
17544 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17547 ;;
17548 *)
17549 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17550 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17551 ;;
17552 esac
17553 fi
17554 else
17555 ld_shlibs_GCJ=no
17556 fi
17557 ;;
17558
17559 os2*)
17560 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561 hardcode_minus_L_GCJ=yes
17562 allow_undefined_flag_GCJ=unsupported
17563 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'
17564 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17565 ;;
17566
17567 osf3*)
17568 if test "$GCC" = yes; then
17569 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17570 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'
17571 else
17572 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17573 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'
17574 fi
17575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17576 hardcode_libdir_separator_GCJ=:
17577 ;;
17578
17579 osf4* | osf5*) # as osf3* with the addition of -msym flag
17580 if test "$GCC" = yes; then
17581 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17582 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'
17583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17584 else
17585 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17586 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'
17587 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~
17588 $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'
17589
17590 # Both c and cxx compiler support -rpath directly
17591 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17592 fi
17593 hardcode_libdir_separator_GCJ=:
17594 ;;
17595
17596 solaris*)
17597 no_undefined_flag_GCJ=' -z text'
17598 if test "$GCC" = yes; then
17599 wlarc='${wl}'
17600 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17601 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17603 else
17604 wlarc=''
17605 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17608 fi
17609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17610 hardcode_shlibpath_var_GCJ=no
17611 case $host_os in
17612 solaris2.[0-5] | solaris2.[0-5].*) ;;
17613 *)
17614 # The compiler driver will combine and reorder linker options,
17615 # but understands `-z linker_flag'. GCC discards it without `$wl',
17616 # but is careful enough not to reorder.
17617 # Supported since Solaris 2.6 (maybe 2.5.1?)
17618 if test "$GCC" = yes; then
17619 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17620 else
17621 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17622 fi
17623 ;;
17624 esac
17625 link_all_deplibs_GCJ=yes
17626 ;;
17627
17628 sunos4*)
17629 if test "x$host_vendor" = xsequent; then
17630 # Use $CC to link under sequent, because it throws in some extra .o
17631 # files that make .init and .fini sections work.
17632 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17633 else
17634 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17635 fi
17636 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17637 hardcode_direct_GCJ=yes
17638 hardcode_minus_L_GCJ=yes
17639 hardcode_shlibpath_var_GCJ=no
17640 ;;
17641
17642 sysv4)
17643 case $host_vendor in
17644 sni)
17645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17646 hardcode_direct_GCJ=yes # is this really true???
17647 ;;
17648 siemens)
17649 ## LD is ld it makes a PLAMLIB
17650 ## CC just makes a GrossModule.
17651 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17652 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17653 hardcode_direct_GCJ=no
17654 ;;
17655 motorola)
17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17657 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17658 ;;
17659 esac
17660 runpath_var='LD_RUN_PATH'
17661 hardcode_shlibpath_var_GCJ=no
17662 ;;
17663
17664 sysv4.3*)
17665 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17666 hardcode_shlibpath_var_GCJ=no
17667 export_dynamic_flag_spec_GCJ='-Bexport'
17668 ;;
17669
17670 sysv4*MP*)
17671 if test -d /usr/nec; then
17672 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 hardcode_shlibpath_var_GCJ=no
17674 runpath_var=LD_RUN_PATH
17675 hardcode_runpath_var=yes
17676 ld_shlibs_GCJ=yes
17677 fi
17678 ;;
17679
17680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17681 no_undefined_flag_GCJ='${wl}-z,text'
17682 archive_cmds_need_lc_GCJ=no
17683 hardcode_shlibpath_var_GCJ=no
17684 runpath_var='LD_RUN_PATH'
17685
17686 if test "$GCC" = yes; then
17687 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17688 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17689 else
17690 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17691 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17692 fi
17693 ;;
17694
17695 sysv5* | sco3.2v5* | sco5v6*)
17696 # Note: We can NOT use -z defs as we might desire, because we do not
17697 # link with -lc, and that would cause any symbols used from libc to
17698 # always be unresolved, which means just about no library would
17699 # ever link correctly. If we're not using GNU ld we use -z text
17700 # though, which does catch some bad symbols but isn't as heavy-handed
17701 # as -z defs.
17702 no_undefined_flag_GCJ='${wl}-z,text'
17703 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17704 archive_cmds_need_lc_GCJ=no
17705 hardcode_shlibpath_var_GCJ=no
17706 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17707 hardcode_libdir_separator_GCJ=':'
17708 link_all_deplibs_GCJ=yes
17709 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17710 runpath_var='LD_RUN_PATH'
17711
17712 if test "$GCC" = yes; then
17713 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17714 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17715 else
17716 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17717 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17718 fi
17719 ;;
17720
17721 uts4*)
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17724 hardcode_shlibpath_var_GCJ=no
17725 ;;
17726
17727 *)
17728 ld_shlibs_GCJ=no
17729 ;;
17730 esac
17731 fi
17732
17733{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17734$as_echo "$ld_shlibs_GCJ" >&6; }
17735test "$ld_shlibs_GCJ" = no && can_build_shared=no
17736
17737#
17738# Do we need to explicitly link libc?
17739#
17740case "x$archive_cmds_need_lc_GCJ" in
17741x|xyes)
17742 # Assume -lc should be added
17743 archive_cmds_need_lc_GCJ=yes
17744
17745 if test "$enable_shared" = yes && test "$GCC" = yes; then
17746 case $archive_cmds_GCJ in
17747 *'~'*)
17748 # FIXME: we may have to deal with multi-command sequences.
17749 ;;
17750 '$CC '*)
17751 # Test whether the compiler implicitly links with -lc since on some
17752 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17753 # to ld, don't add -lc before -lgcc.
17754 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17755$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17756 $rm conftest*
17757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17758
17759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17760 (eval $ac_compile) 2>&5
17761 ac_status=$?
17762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } 2>conftest.err; then
17764 soname=conftest
17765 lib=conftest
17766 libobjs=conftest.$ac_objext
17767 deplibs=
17768 wl=$lt_prog_compiler_wl_GCJ
17769 pic_flag=$lt_prog_compiler_pic_GCJ
17770 compiler_flags=-v
17771 linker_flags=-v
17772 verstring=
17773 output_objdir=.
17774 libname=conftest
17775 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17776 allow_undefined_flag_GCJ=
17777 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17778 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17779 ac_status=$?
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }
17782 then
17783 archive_cmds_need_lc_GCJ=no
17784 else
17785 archive_cmds_need_lc_GCJ=yes
17786 fi
17787 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17788 else
17789 cat conftest.err 1>&5
17790 fi
17791 $rm conftest*
17792 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17793$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17794 ;;
17795 esac
17796 fi
17797 ;;
17798esac
17799
17800{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17801$as_echo_n "checking dynamic linker characteristics... " >&6; }
17802library_names_spec=
17803libname_spec='lib$name'
17804soname_spec=
17805shrext_cmds=".so"
17806postinstall_cmds=
17807postuninstall_cmds=
17808finish_cmds=
17809finish_eval=
17810shlibpath_var=
17811shlibpath_overrides_runpath=unknown
17812version_type=none
17813dynamic_linker="$host_os ld.so"
17814sys_lib_dlsearch_path_spec="/lib /usr/lib"
17815
17816need_lib_prefix=unknown
17817hardcode_into_libs=no
17818
17819# when you set need_version to no, make sure it does not cause -set_version
17820# flags to be left without arguments
17821need_version=unknown
17822
17823case $host_os in
17824aix3*)
17825 version_type=linux
17826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17827 shlibpath_var=LIBPATH
17828
17829 # AIX 3 has no versioning support, so we append a major version to the name.
17830 soname_spec='${libname}${release}${shared_ext}$major'
17831 ;;
17832
17833aix[4-9]*)
17834 version_type=linux
17835 need_lib_prefix=no
17836 need_version=no
17837 hardcode_into_libs=yes
17838 if test "$host_cpu" = ia64; then
17839 # AIX 5 supports IA64
17840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17841 shlibpath_var=LD_LIBRARY_PATH
17842 else
17843 # With GCC up to 2.95.x, collect2 would create an import file
17844 # for dependence libraries. The import file would start with
17845 # the line `#! .'. This would cause the generated library to
17846 # depend on `.', always an invalid library. This was fixed in
17847 # development snapshots of GCC prior to 3.0.
17848 case $host_os in
17849 aix4 | aix4.[01] | aix4.[01].*)
17850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17851 echo ' yes '
17852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17853 :
17854 else
17855 can_build_shared=no
17856 fi
17857 ;;
17858 esac
17859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17860 # soname into executable. Probably we can add versioning support to
17861 # collect2, so additional links can be useful in future.
17862 if test "$aix_use_runtimelinking" = yes; then
17863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17864 # instead of lib<name>.a to let people know that these are not
17865 # typical AIX shared libraries.
17866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17867 else
17868 # We preserve .a as extension for shared libraries through AIX4.2
17869 # and later when we are not doing run time linking.
17870 library_names_spec='${libname}${release}.a $libname.a'
17871 soname_spec='${libname}${release}${shared_ext}$major'
17872 fi
17873 shlibpath_var=LIBPATH
17874 fi
17875 ;;
17876
17877amigaos*)
17878 library_names_spec='$libname.ixlibrary $libname.a'
17879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17880 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'
17881 ;;
17882
17883beos*)
17884 library_names_spec='${libname}${shared_ext}'
17885 dynamic_linker="$host_os ld.so"
17886 shlibpath_var=LIBRARY_PATH
17887 ;;
17888
17889bsdi[45]*)
17890 version_type=linux
17891 need_version=no
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17895 shlibpath_var=LD_LIBRARY_PATH
17896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17898 # the default ld.so.conf also contains /usr/contrib/lib and
17899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17900 # libtool to hard-code these into programs
17901 ;;
17902
17903cygwin* | mingw* | pw32*)
17904 version_type=windows
17905 shrext_cmds=".dll"
17906 need_version=no
17907 need_lib_prefix=no
17908
17909 case $GCC,$host_os in
17910 yes,cygwin* | yes,mingw* | yes,pw32*)
17911 library_names_spec='$libname.dll.a'
17912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17913 postinstall_cmds='base_file=`basename \${file}`~
17914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17915 dldir=$destdir/`dirname \$dlpath`~
17916 test -d \$dldir || mkdir -p \$dldir~
17917 $install_prog $dir/$dlname \$dldir/$dlname~
17918 chmod a+x \$dldir/$dlname'
17919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17920 dlpath=$dir/\$dldll~
17921 $rm \$dlpath'
17922 shlibpath_overrides_runpath=yes
17923
17924 case $host_os in
17925 cygwin*)
17926 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17927 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17928 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17929 ;;
17930 mingw*)
17931 # MinGW DLLs use traditional 'lib' prefix
17932 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17934 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17935 # It is most probably a Windows format PATH printed by
17936 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17937 # path with ; separators, and with drive letters. We can handle the
17938 # drive letters (cygwin fileutils understands them), so leave them,
17939 # especially as we might pass files found there to a mingw objdump,
17940 # which wouldn't understand a cygwinified path. Ahh.
17941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17942 else
17943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17944 fi
17945 ;;
17946 pw32*)
17947 # pw32 DLLs use 'pw' prefix rather than 'lib'
17948 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17949 ;;
17950 esac
17951 ;;
17952
17953 *)
17954 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17955 ;;
17956 esac
17957 dynamic_linker='Win32 ld.exe'
17958 # FIXME: first we should search . and the directory the executable is in
17959 shlibpath_var=PATH
17960 ;;
17961
17962darwin* | rhapsody*)
17963 dynamic_linker="$host_os dyld"
17964 version_type=darwin
17965 need_lib_prefix=no
17966 need_version=no
17967 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17968 soname_spec='${libname}${release}${major}$shared_ext'
17969 shlibpath_overrides_runpath=yes
17970 shlibpath_var=DYLD_LIBRARY_PATH
17971 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17972
17973 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17974 ;;
17975
17976dgux*)
17977 version_type=linux
17978 need_lib_prefix=no
17979 need_version=no
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 ;;
17984
17985freebsd1*)
17986 dynamic_linker=no
17987 ;;
17988
17989freebsd* | dragonfly*)
17990 # DragonFly does not have aout. When/if they implement a new
17991 # versioning mechanism, adjust this.
17992 if test -x /usr/bin/objformat; then
17993 objformat=`/usr/bin/objformat`
17994 else
17995 case $host_os in
17996 freebsd[123]*) objformat=aout ;;
17997 *) objformat=elf ;;
17998 esac
17999 fi
18000 version_type=freebsd-$objformat
18001 case $version_type in
18002 freebsd-elf*)
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18004 need_version=no
18005 need_lib_prefix=no
18006 ;;
18007 freebsd-*)
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18009 need_version=yes
18010 ;;
18011 esac
18012 shlibpath_var=LD_LIBRARY_PATH
18013 case $host_os in
18014 freebsd2*)
18015 shlibpath_overrides_runpath=yes
18016 ;;
18017 freebsd3.[01]* | freebsdelf3.[01]*)
18018 shlibpath_overrides_runpath=yes
18019 hardcode_into_libs=yes
18020 ;;
18021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18023 shlibpath_overrides_runpath=no
18024 hardcode_into_libs=yes
18025 ;;
18026 *) # from 4.6 on, and DragonFly
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18029 ;;
18030 esac
18031 ;;
18032
18033gnu*)
18034 version_type=linux
18035 need_lib_prefix=no
18036 need_version=no
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18038 soname_spec='${libname}${release}${shared_ext}$major'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 hardcode_into_libs=yes
18041 ;;
18042
18043hpux9* | hpux10* | hpux11*)
18044 # Give a soname corresponding to the major version so that dld.sl refuses to
18045 # link against other versions.
18046 version_type=sunos
18047 need_lib_prefix=no
18048 need_version=no
18049 case $host_cpu in
18050 ia64*)
18051 shrext_cmds='.so'
18052 hardcode_into_libs=yes
18053 dynamic_linker="$host_os dld.so"
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 if test "X$HPUX_IA64_MODE" = X32; then
18059 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18060 else
18061 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18062 fi
18063 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18064 ;;
18065 hppa*64*)
18066 shrext_cmds='.sl'
18067 hardcode_into_libs=yes
18068 dynamic_linker="$host_os dld.sl"
18069 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18070 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18075 ;;
18076 *)
18077 shrext_cmds='.sl'
18078 dynamic_linker="$host_os dld.sl"
18079 shlibpath_var=SHLIB_PATH
18080 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec='${libname}${release}${shared_ext}$major'
18083 ;;
18084 esac
18085 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18086 postinstall_cmds='chmod 555 $lib'
18087 ;;
18088
18089interix[3-9]*)
18090 version_type=linux
18091 need_lib_prefix=no
18092 need_version=no
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18094 soname_spec='${libname}${release}${shared_ext}$major'
18095 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18096 shlibpath_var=LD_LIBRARY_PATH
18097 shlibpath_overrides_runpath=no
18098 hardcode_into_libs=yes
18099 ;;
18100
18101irix5* | irix6* | nonstopux*)
18102 case $host_os in
18103 nonstopux*) version_type=nonstopux ;;
18104 *)
18105 if test "$lt_cv_prog_gnu_ld" = yes; then
18106 version_type=linux
18107 else
18108 version_type=irix
18109 fi ;;
18110 esac
18111 need_lib_prefix=no
18112 need_version=no
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18115 case $host_os in
18116 irix5* | nonstopux*)
18117 libsuff= shlibsuff=
18118 ;;
18119 *)
18120 case $LD in # libtool.m4 will add one of these switches to LD
18121 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18122 libsuff= shlibsuff= libmagic=32-bit;;
18123 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18124 libsuff=32 shlibsuff=N32 libmagic=N32;;
18125 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18126 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18127 *) libsuff= shlibsuff= libmagic=never-match;;
18128 esac
18129 ;;
18130 esac
18131 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18132 shlibpath_overrides_runpath=no
18133 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18134 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18135 hardcode_into_libs=yes
18136 ;;
18137
18138# No shared lib support for Linux oldld, aout, or coff.
18139linux*oldld* | linux*aout* | linux*coff*)
18140 dynamic_linker=no
18141 ;;
18142
18143# This must be Linux ELF.
18144linux* | k*bsd*-gnu)
18145 version_type=linux
18146 need_lib_prefix=no
18147 need_version=no
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18151 shlibpath_var=LD_LIBRARY_PATH
18152 shlibpath_overrides_runpath=no
18153 # This implies no fast_install, which is unacceptable.
18154 # Some rework will be needed to allow for fast_install
18155 # before this can be enabled.
18156 hardcode_into_libs=yes
18157
18158 # Append ld.so.conf contents to the search path
18159 if test -f /etc/ld.so.conf; then
18160 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' ' '`
18161 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18162 fi
18163
18164 # We used to test for /lib/ld.so.1 and disable shared libraries on
18165 # powerpc, because MkLinux only supported shared libraries with the
18166 # GNU dynamic linker. Since this was broken with cross compilers,
18167 # most powerpc-linux boxes support dynamic linking these days and
18168 # people can always --disable-shared, the test was removed, and we
18169 # assume the GNU/Linux dynamic linker is in use.
18170 dynamic_linker='GNU/Linux ld.so'
18171 ;;
18172
18173netbsd*)
18174 version_type=sunos
18175 need_lib_prefix=no
18176 need_version=no
18177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18180 dynamic_linker='NetBSD (a.out) ld.so'
18181 else
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 dynamic_linker='NetBSD ld.elf_so'
18185 fi
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=yes
18188 hardcode_into_libs=yes
18189 ;;
18190
18191newsos6)
18192 version_type=linux
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 shlibpath_var=LD_LIBRARY_PATH
18195 shlibpath_overrides_runpath=yes
18196 ;;
18197
18198nto-qnx*)
18199 version_type=linux
18200 need_lib_prefix=no
18201 need_version=no
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18203 soname_spec='${libname}${release}${shared_ext}$major'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=yes
18206 ;;
18207
18208openbsd*)
18209 version_type=sunos
18210 sys_lib_dlsearch_path_spec="/usr/lib"
18211 need_lib_prefix=no
18212 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18213 case $host_os in
18214 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18215 *) need_version=no ;;
18216 esac
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18221 case $host_os in
18222 openbsd2.[89] | openbsd2.[89].*)
18223 shlibpath_overrides_runpath=no
18224 ;;
18225 *)
18226 shlibpath_overrides_runpath=yes
18227 ;;
18228 esac
18229 else
18230 shlibpath_overrides_runpath=yes
18231 fi
18232 ;;
18233
18234os2*)
18235 libname_spec='$name'
18236 shrext_cmds=".dll"
18237 need_lib_prefix=no
18238 library_names_spec='$libname${shared_ext} $libname.a'
18239 dynamic_linker='OS/2 ld.exe'
18240 shlibpath_var=LIBPATH
18241 ;;
18242
18243osf3* | osf4* | osf5*)
18244 version_type=osf
18245 need_lib_prefix=no
18246 need_version=no
18247 soname_spec='${libname}${release}${shared_ext}$major'
18248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18249 shlibpath_var=LD_LIBRARY_PATH
18250 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18251 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18252 ;;
18253
18254rdos*)
18255 dynamic_linker=no
18256 ;;
18257
18258solaris*)
18259 version_type=linux
18260 need_lib_prefix=no
18261 need_version=no
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 soname_spec='${libname}${release}${shared_ext}$major'
18264 shlibpath_var=LD_LIBRARY_PATH
18265 shlibpath_overrides_runpath=yes
18266 hardcode_into_libs=yes
18267 # ldd complains unless libraries are executable
18268 postinstall_cmds='chmod +x $lib'
18269 ;;
18270
18271sunos4*)
18272 version_type=sunos
18273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18275 shlibpath_var=LD_LIBRARY_PATH
18276 shlibpath_overrides_runpath=yes
18277 if test "$with_gnu_ld" = yes; then
18278 need_lib_prefix=no
18279 fi
18280 need_version=yes
18281 ;;
18282
18283sysv4 | sysv4.3*)
18284 version_type=linux
18285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 shlibpath_var=LD_LIBRARY_PATH
18288 case $host_vendor in
18289 sni)
18290 shlibpath_overrides_runpath=no
18291 need_lib_prefix=no
18292 export_dynamic_flag_spec='${wl}-Blargedynsym'
18293 runpath_var=LD_RUN_PATH
18294 ;;
18295 siemens)
18296 need_lib_prefix=no
18297 ;;
18298 motorola)
18299 need_lib_prefix=no
18300 need_version=no
18301 shlibpath_overrides_runpath=no
18302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18303 ;;
18304 esac
18305 ;;
18306
18307sysv4*MP*)
18308 if test -d /usr/nec ;then
18309 version_type=linux
18310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18311 soname_spec='$libname${shared_ext}.$major'
18312 shlibpath_var=LD_LIBRARY_PATH
18313 fi
18314 ;;
18315
18316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18317 version_type=freebsd-elf
18318 need_lib_prefix=no
18319 need_version=no
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 hardcode_into_libs=yes
18324 if test "$with_gnu_ld" = yes; then
18325 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18326 shlibpath_overrides_runpath=no
18327 else
18328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18329 shlibpath_overrides_runpath=yes
18330 case $host_os in
18331 sco3.2v5*)
18332 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18333 ;;
18334 esac
18335 fi
18336 sys_lib_dlsearch_path_spec='/usr/lib'
18337 ;;
18338
18339uts4*)
18340 version_type=linux
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 ;;
18345
18346*)
18347 dynamic_linker=no
18348 ;;
18349esac
18350{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18351$as_echo "$dynamic_linker" >&6; }
18352test "$dynamic_linker" = no && can_build_shared=no
18353
18354if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18355 $as_echo_n "(cached) " >&6
18356else
18357 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18358fi
18359
18360sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18361if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18362 $as_echo_n "(cached) " >&6
18363else
18364 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18365fi
18366
18367sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18368
18369variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18370if test "$GCC" = yes; then
18371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18372fi
18373
18374{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18376hardcode_action_GCJ=
18377if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18378 test -n "$runpath_var_GCJ" || \
18379 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18380
18381 # We can hardcode non-existant directories.
18382 if test "$hardcode_direct_GCJ" != no &&
18383 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384 # have to relink, otherwise we might link with an installed library
18385 # when we should be linking with a yet-to-be-installed one
18386 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387 test "$hardcode_minus_L_GCJ" != no; then
18388 # Linking always hardcodes the temporary library directory.
18389 hardcode_action_GCJ=relink
18390 else
18391 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392 hardcode_action_GCJ=immediate
18393 fi
18394else
18395 # We cannot hardcode anything, or else we can only hardcode existing
18396 # directories.
18397 hardcode_action_GCJ=unsupported
18398fi
18399{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400$as_echo "$hardcode_action_GCJ" >&6; }
18401
18402if test "$hardcode_action_GCJ" = relink; then
18403 # Fast installation is not supported
18404 enable_fast_install=no
18405elif test "$shlibpath_overrides_runpath" = yes ||
18406 test "$enable_shared" = no; then
18407 # Fast installation is not necessary
18408 enable_fast_install=needless
18409fi
18410
18411
18412# The else clause should only fire when bootstrapping the
18413# libtool distribution, otherwise you forgot to ship ltmain.sh
18414# with your package, and you will get complaints that there are
18415# no rules to generate ltmain.sh.
18416if test -f "$ltmain"; then
18417 # See if we are running on zsh, and set the options which allow our commands through
18418 # without removal of \ escapes.
18419 if test -n "${ZSH_VERSION+set}" ; then
18420 setopt NO_GLOB_SUBST
18421 fi
18422 # Now quote all the things that may contain metacharacters while being
18423 # careful not to overquote the AC_SUBSTed values. We take copies of the
18424 # variables and quote the copies for generation of the libtool script.
18425 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18426 SED SHELL STRIP \
18427 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18428 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18429 deplibs_check_method reload_flag reload_cmds need_locks \
18430 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18431 lt_cv_sys_global_symbol_to_c_name_address \
18432 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18433 old_postinstall_cmds old_postuninstall_cmds \
18434 compiler_GCJ \
18435 CC_GCJ \
18436 LD_GCJ \
18437 lt_prog_compiler_wl_GCJ \
18438 lt_prog_compiler_pic_GCJ \
18439 lt_prog_compiler_static_GCJ \
18440 lt_prog_compiler_no_builtin_flag_GCJ \
18441 export_dynamic_flag_spec_GCJ \
18442 thread_safe_flag_spec_GCJ \
18443 whole_archive_flag_spec_GCJ \
18444 enable_shared_with_static_runtimes_GCJ \
18445 old_archive_cmds_GCJ \
18446 old_archive_from_new_cmds_GCJ \
18447 predep_objects_GCJ \
18448 postdep_objects_GCJ \
18449 predeps_GCJ \
18450 postdeps_GCJ \
18451 compiler_lib_search_path_GCJ \
18452 compiler_lib_search_dirs_GCJ \
18453 archive_cmds_GCJ \
18454 archive_expsym_cmds_GCJ \
18455 postinstall_cmds_GCJ \
18456 postuninstall_cmds_GCJ \
18457 old_archive_from_expsyms_cmds_GCJ \
18458 allow_undefined_flag_GCJ \
18459 no_undefined_flag_GCJ \
18460 export_symbols_cmds_GCJ \
18461 hardcode_libdir_flag_spec_GCJ \
18462 hardcode_libdir_flag_spec_ld_GCJ \
18463 hardcode_libdir_separator_GCJ \
18464 hardcode_automatic_GCJ \
18465 module_cmds_GCJ \
18466 module_expsym_cmds_GCJ \
18467 lt_cv_prog_compiler_c_o_GCJ \
18468 fix_srcfile_path_GCJ \
18469 exclude_expsyms_GCJ \
18470 include_expsyms_GCJ; do
18471
18472 case $var in
18473 old_archive_cmds_GCJ | \
18474 old_archive_from_new_cmds_GCJ | \
18475 archive_cmds_GCJ | \
18476 archive_expsym_cmds_GCJ | \
18477 module_cmds_GCJ | \
18478 module_expsym_cmds_GCJ | \
18479 old_archive_from_expsyms_cmds_GCJ | \
18480 export_symbols_cmds_GCJ | \
18481 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18482 postinstall_cmds | postuninstall_cmds | \
18483 old_postinstall_cmds | old_postuninstall_cmds | \
18484 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18485 # Double-quote double-evaled strings.
18486 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18487 ;;
18488 *)
18489 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18490 ;;
18491 esac
18492 done
18493
18494 case $lt_echo in
18495 *'\$0 --fallback-echo"')
18496 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18497 ;;
18498 esac
18499
18500cfgfile="$ofile"
18501
18502 cat <<__EOF__ >> "$cfgfile"
18503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18504
18505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18506
18507# Shell to use when invoking shell scripts.
18508SHELL=$lt_SHELL
18509
18510# Whether or not to build shared libraries.
18511build_libtool_libs=$enable_shared
18512
18513# Whether or not to build static libraries.
18514build_old_libs=$enable_static
18515
18516# Whether or not to add -lc for building shared libraries.
18517build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18518
18519# Whether or not to disallow shared libs when runtime libs are static
18520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18521
18522# Whether or not to optimize for fast installation.
18523fast_install=$enable_fast_install
18524
18525# The host system.
18526host_alias=$host_alias
18527host=$host
18528host_os=$host_os
18529
18530# The build system.
18531build_alias=$build_alias
18532build=$build
18533build_os=$build_os
18534
18535# An echo program that does not interpret backslashes.
18536echo=$lt_echo
18537
18538# The archiver.
18539AR=$lt_AR
18540AR_FLAGS=$lt_AR_FLAGS
18541
18542# A C compiler.
18543LTCC=$lt_LTCC
18544
18545# LTCC compiler flags.
18546LTCFLAGS=$lt_LTCFLAGS
18547
18548# A language-specific compiler.
18549CC=$lt_compiler_GCJ
18550
18551# Is the compiler the GNU C compiler?
18552with_gcc=$GCC_GCJ
18553
18554# An ERE matcher.
18555EGREP=$lt_EGREP
18556
18557# The linker used to build libraries.
18558LD=$lt_LD_GCJ
18559
18560# Whether we need hard or soft links.
18561LN_S=$lt_LN_S
18562
18563# A BSD-compatible nm program.
18564NM=$lt_NM
18565
18566# A symbol stripping program
18567STRIP=$lt_STRIP
18568
18569# Used to examine libraries when file_magic_cmd begins "file"
18570MAGIC_CMD=$MAGIC_CMD
18571
18572# Used on cygwin: DLL creation program.
18573DLLTOOL="$DLLTOOL"
18574
18575# Used on cygwin: object dumper.
18576OBJDUMP="$OBJDUMP"
18577
18578# Used on cygwin: assembler.
18579AS="$AS"
18580
18581# The name of the directory that contains temporary libtool files.
18582objdir=$objdir
18583
18584# How to create reloadable object files.
18585reload_flag=$lt_reload_flag
18586reload_cmds=$lt_reload_cmds
18587
18588# How to pass a linker flag through the compiler.
18589wl=$lt_lt_prog_compiler_wl_GCJ
18590
18591# Object file suffix (normally "o").
18592objext="$ac_objext"
18593
18594# Old archive suffix (normally "a").
18595libext="$libext"
18596
18597# Shared library suffix (normally ".so").
18598shrext_cmds='$shrext_cmds'
18599
18600# Executable file suffix (normally "").
18601exeext="$exeext"
18602
18603# Additional compiler flags for building library objects.
18604pic_flag=$lt_lt_prog_compiler_pic_GCJ
18605pic_mode=$pic_mode
18606
18607# What is the maximum length of a command?
18608max_cmd_len=$lt_cv_sys_max_cmd_len
18609
18610# Does compiler simultaneously support -c and -o options?
18611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18612
18613# Must we lock files when doing compilation?
18614need_locks=$lt_need_locks
18615
18616# Do we need the lib prefix for modules?
18617need_lib_prefix=$need_lib_prefix
18618
18619# Do we need a version for libraries?
18620need_version=$need_version
18621
18622# Whether dlopen is supported.
18623dlopen_support=$enable_dlopen
18624
18625# Whether dlopen of programs is supported.
18626dlopen_self=$enable_dlopen_self
18627
18628# Whether dlopen of statically linked programs is supported.
18629dlopen_self_static=$enable_dlopen_self_static
18630
18631# Compiler flag to prevent dynamic linking.
18632link_static_flag=$lt_lt_prog_compiler_static_GCJ
18633
18634# Compiler flag to turn off builtin functions.
18635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18636
18637# Compiler flag to allow reflexive dlopens.
18638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18639
18640# Compiler flag to generate shared objects directly from archives.
18641whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18642
18643# Compiler flag to generate thread-safe objects.
18644thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18645
18646# Library versioning type.
18647version_type=$version_type
18648
18649# Format of library name prefix.
18650libname_spec=$lt_libname_spec
18651
18652# List of archive names. First name is the real one, the rest are links.
18653# The last name is the one that the linker finds with -lNAME.
18654library_names_spec=$lt_library_names_spec
18655
18656# The coded name of the library, if different from the real name.
18657soname_spec=$lt_soname_spec
18658
18659# Commands used to build and install an old-style archive.
18660RANLIB=$lt_RANLIB
18661old_archive_cmds=$lt_old_archive_cmds_GCJ
18662old_postinstall_cmds=$lt_old_postinstall_cmds
18663old_postuninstall_cmds=$lt_old_postuninstall_cmds
18664
18665# Create an old-style archive from a shared archive.
18666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18667
18668# Create a temporary old-style archive to link instead of a shared archive.
18669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18670
18671# Commands used to build and install a shared archive.
18672archive_cmds=$lt_archive_cmds_GCJ
18673archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18674postinstall_cmds=$lt_postinstall_cmds
18675postuninstall_cmds=$lt_postuninstall_cmds
18676
18677# Commands used to build a loadable module (assumed same as above if empty)
18678module_cmds=$lt_module_cmds_GCJ
18679module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18680
18681# Commands to strip libraries.
18682old_striplib=$lt_old_striplib
18683striplib=$lt_striplib
18684
18685# Dependencies to place before the objects being linked to create a
18686# shared library.
18687predep_objects=$lt_predep_objects_GCJ
18688
18689# Dependencies to place after the objects being linked to create a
18690# shared library.
18691postdep_objects=$lt_postdep_objects_GCJ
18692
18693# Dependencies to place before the objects being linked to create a
18694# shared library.
18695predeps=$lt_predeps_GCJ
18696
18697# Dependencies to place after the objects being linked to create a
18698# shared library.
18699postdeps=$lt_postdeps_GCJ
18700
18701# The directories searched by this compiler when creating a shared
18702# library
18703compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18704
18705# The library search path used internally by the compiler when linking
18706# a shared library.
18707compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18708
18709# Method to check whether dependent libraries are shared objects.
18710deplibs_check_method=$lt_deplibs_check_method
18711
18712# Command to use when deplibs_check_method == file_magic.
18713file_magic_cmd=$lt_file_magic_cmd
18714
18715# Flag that allows shared libraries with undefined symbols to be built.
18716allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18717
18718# Flag that forces no undefined symbols.
18719no_undefined_flag=$lt_no_undefined_flag_GCJ
18720
18721# Commands used to finish a libtool library installation in a directory.
18722finish_cmds=$lt_finish_cmds
18723
18724# Same as above, but a single script fragment to be evaled but not shown.
18725finish_eval=$lt_finish_eval
18726
18727# Take the output of nm and produce a listing of raw symbols and C names.
18728global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18729
18730# Transform the output of nm in a proper C declaration
18731global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18732
18733# Transform the output of nm in a C name address pair
18734global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18735
18736# This is the shared library runtime path variable.
18737runpath_var=$runpath_var
18738
18739# This is the shared library path variable.
18740shlibpath_var=$shlibpath_var
18741
18742# Is shlibpath searched before the hard-coded library search path?
18743shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18744
18745# How to hardcode a shared library path into an executable.
18746hardcode_action=$hardcode_action_GCJ
18747
18748# Whether we should hardcode library paths into libraries.
18749hardcode_into_libs=$hardcode_into_libs
18750
18751# Flag to hardcode \$libdir into a binary during linking.
18752# This must work even if \$libdir does not exist.
18753hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18754
18755# If ld is used when linking, flag to hardcode \$libdir into
18756# a binary during linking. This must work even if \$libdir does
18757# not exist.
18758hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18759
18760# Whether we need a single -rpath flag with a separated argument.
18761hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18762
18763# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18764# resulting binary.
18765hardcode_direct=$hardcode_direct_GCJ
18766
18767# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18768# resulting binary.
18769hardcode_minus_L=$hardcode_minus_L_GCJ
18770
18771# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18772# the resulting binary.
18773hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18774
18775# Set to yes if building a shared library automatically hardcodes DIR into the library
18776# and all subsequent libraries and executables linked against it.
18777hardcode_automatic=$hardcode_automatic_GCJ
18778
18779# Variables whose values should be saved in libtool wrapper scripts and
18780# restored at relink time.
18781variables_saved_for_relink="$variables_saved_for_relink"
18782
18783# Whether libtool must link a program against all its dependency libraries.
18784link_all_deplibs=$link_all_deplibs_GCJ
18785
18786# Compile-time system search path for libraries
18787sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18788
18789# Run-time system search path for libraries
18790sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18791
18792# Fix the shell variable \$srcfile for the compiler.
18793fix_srcfile_path=$lt_fix_srcfile_path
18794
18795# Set to yes if exported symbols are required.
18796always_export_symbols=$always_export_symbols_GCJ
18797
18798# The commands to list exported symbols.
18799export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18800
18801# The commands to extract the exported symbol list from a shared archive.
18802extract_expsyms_cmds=$lt_extract_expsyms_cmds
18803
18804# Symbols that should not be listed in the preloaded symbols.
18805exclude_expsyms=$lt_exclude_expsyms_GCJ
18806
18807# Symbols that must always be exported.
18808include_expsyms=$lt_include_expsyms_GCJ
18809
18810# ### END LIBTOOL TAG CONFIG: $tagname
18811
18812__EOF__
18813
18814
18815else
18816 # If there is no Makefile yet, we rely on a make rule to execute
18817 # `config.status --recheck' to rerun these tests and create the
18818 # libtool script then.
18819 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18820 if test -f "$ltmain_in"; then
18821 test -f Makefile && make "$ltmain"
18822 fi
18823fi
18824
18825
18826ac_ext=c
18827ac_cpp='$CPP $CPPFLAGS'
18828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830ac_compiler_gnu=$ac_cv_c_compiler_gnu
18831
18832CC="$lt_save_CC"
18833
18834 else
18835 tagname=""
18836 fi
18837 ;;
18838
18839 RC)
18840
18841
18842# Source file extension for RC test sources.
18843ac_ext=rc
18844
18845# Object file extension for compiled RC test sources.
18846objext=o
18847objext_RC=$objext
18848
18849# Code to be used in simple compile tests
18850lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18851
18852# Code to be used in simple link tests
18853lt_simple_link_test_code="$lt_simple_compile_test_code"
18854
18855# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18856
18857# If no C compiler was specified, use CC.
18858LTCC=${LTCC-"$CC"}
18859
18860# If no C compiler flags were specified, use CFLAGS.
18861LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18862
18863# Allow CC to be a program name with arguments.
18864compiler=$CC
18865
18866
18867# save warnings/boilerplate of simple test code
18868ac_outfile=conftest.$ac_objext
18869echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18870eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18871_lt_compiler_boilerplate=`cat conftest.err`
18872$rm conftest*
18873
18874ac_outfile=conftest.$ac_objext
18875echo "$lt_simple_link_test_code" >conftest.$ac_ext
18876eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18877_lt_linker_boilerplate=`cat conftest.err`
18878$rm -r conftest*
18879
18880
18881# Allow CC to be a program name with arguments.
18882lt_save_CC="$CC"
18883CC=${RC-"windres"}
18884compiler=$CC
18885compiler_RC=$CC
18886for cc_temp in $compiler""; do
18887 case $cc_temp in
18888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18890 \-*) ;;
18891 *) break;;
18892 esac
18893done
18894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18895
18896lt_cv_prog_compiler_c_o_RC=yes
18897
18898# The else clause should only fire when bootstrapping the
18899# libtool distribution, otherwise you forgot to ship ltmain.sh
18900# with your package, and you will get complaints that there are
18901# no rules to generate ltmain.sh.
18902if test -f "$ltmain"; then
18903 # See if we are running on zsh, and set the options which allow our commands through
18904 # without removal of \ escapes.
18905 if test -n "${ZSH_VERSION+set}" ; then
18906 setopt NO_GLOB_SUBST
18907 fi
18908 # Now quote all the things that may contain metacharacters while being
18909 # careful not to overquote the AC_SUBSTed values. We take copies of the
18910 # variables and quote the copies for generation of the libtool script.
18911 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18912 SED SHELL STRIP \
18913 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18914 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18915 deplibs_check_method reload_flag reload_cmds need_locks \
18916 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18917 lt_cv_sys_global_symbol_to_c_name_address \
18918 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18919 old_postinstall_cmds old_postuninstall_cmds \
18920 compiler_RC \
18921 CC_RC \
18922 LD_RC \
18923 lt_prog_compiler_wl_RC \
18924 lt_prog_compiler_pic_RC \
18925 lt_prog_compiler_static_RC \
18926 lt_prog_compiler_no_builtin_flag_RC \
18927 export_dynamic_flag_spec_RC \
18928 thread_safe_flag_spec_RC \
18929 whole_archive_flag_spec_RC \
18930 enable_shared_with_static_runtimes_RC \
18931 old_archive_cmds_RC \
18932 old_archive_from_new_cmds_RC \
18933 predep_objects_RC \
18934 postdep_objects_RC \
18935 predeps_RC \
18936 postdeps_RC \
18937 compiler_lib_search_path_RC \
18938 compiler_lib_search_dirs_RC \
18939 archive_cmds_RC \
18940 archive_expsym_cmds_RC \
18941 postinstall_cmds_RC \
18942 postuninstall_cmds_RC \
18943 old_archive_from_expsyms_cmds_RC \
18944 allow_undefined_flag_RC \
18945 no_undefined_flag_RC \
18946 export_symbols_cmds_RC \
18947 hardcode_libdir_flag_spec_RC \
18948 hardcode_libdir_flag_spec_ld_RC \
18949 hardcode_libdir_separator_RC \
18950 hardcode_automatic_RC \
18951 module_cmds_RC \
18952 module_expsym_cmds_RC \
18953 lt_cv_prog_compiler_c_o_RC \
18954 fix_srcfile_path_RC \
18955 exclude_expsyms_RC \
18956 include_expsyms_RC; do
18957
18958 case $var in
18959 old_archive_cmds_RC | \
18960 old_archive_from_new_cmds_RC | \
18961 archive_cmds_RC | \
18962 archive_expsym_cmds_RC | \
18963 module_cmds_RC | \
18964 module_expsym_cmds_RC | \
18965 old_archive_from_expsyms_cmds_RC | \
18966 export_symbols_cmds_RC | \
18967 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18968 postinstall_cmds | postuninstall_cmds | \
18969 old_postinstall_cmds | old_postuninstall_cmds | \
18970 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18971 # Double-quote double-evaled strings.
18972 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18973 ;;
18974 *)
18975 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18976 ;;
18977 esac
18978 done
18979
18980 case $lt_echo in
18981 *'\$0 --fallback-echo"')
18982 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18983 ;;
18984 esac
18985
18986cfgfile="$ofile"
18987
18988 cat <<__EOF__ >> "$cfgfile"
18989# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18990
18991# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18992
18993# Shell to use when invoking shell scripts.
18994SHELL=$lt_SHELL
18995
18996# Whether or not to build shared libraries.
18997build_libtool_libs=$enable_shared
18998
18999# Whether or not to build static libraries.
19000build_old_libs=$enable_static
19001
19002# Whether or not to add -lc for building shared libraries.
19003build_libtool_need_lc=$archive_cmds_need_lc_RC
19004
19005# Whether or not to disallow shared libs when runtime libs are static
19006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19007
19008# Whether or not to optimize for fast installation.
19009fast_install=$enable_fast_install
19010
19011# The host system.
19012host_alias=$host_alias
19013host=$host
19014host_os=$host_os
19015
19016# The build system.
19017build_alias=$build_alias
19018build=$build
19019build_os=$build_os
19020
19021# An echo program that does not interpret backslashes.
19022echo=$lt_echo
19023
19024# The archiver.
19025AR=$lt_AR
19026AR_FLAGS=$lt_AR_FLAGS
19027
19028# A C compiler.
19029LTCC=$lt_LTCC
19030
19031# LTCC compiler flags.
19032LTCFLAGS=$lt_LTCFLAGS
19033
19034# A language-specific compiler.
19035CC=$lt_compiler_RC
19036
19037# Is the compiler the GNU C compiler?
19038with_gcc=$GCC_RC
19039
19040# An ERE matcher.
19041EGREP=$lt_EGREP
19042
19043# The linker used to build libraries.
19044LD=$lt_LD_RC
19045
19046# Whether we need hard or soft links.
19047LN_S=$lt_LN_S
19048
19049# A BSD-compatible nm program.
19050NM=$lt_NM
19051
19052# A symbol stripping program
19053STRIP=$lt_STRIP
19054
19055# Used to examine libraries when file_magic_cmd begins "file"
19056MAGIC_CMD=$MAGIC_CMD
19057
19058# Used on cygwin: DLL creation program.
19059DLLTOOL="$DLLTOOL"
19060
19061# Used on cygwin: object dumper.
19062OBJDUMP="$OBJDUMP"
19063
19064# Used on cygwin: assembler.
19065AS="$AS"
19066
19067# The name of the directory that contains temporary libtool files.
19068objdir=$objdir
19069
19070# How to create reloadable object files.
19071reload_flag=$lt_reload_flag
19072reload_cmds=$lt_reload_cmds
19073
19074# How to pass a linker flag through the compiler.
19075wl=$lt_lt_prog_compiler_wl_RC
19076
19077# Object file suffix (normally "o").
19078objext="$ac_objext"
19079
19080# Old archive suffix (normally "a").
19081libext="$libext"
19082
19083# Shared library suffix (normally ".so").
19084shrext_cmds='$shrext_cmds'
19085
19086# Executable file suffix (normally "").
19087exeext="$exeext"
19088
19089# Additional compiler flags for building library objects.
19090pic_flag=$lt_lt_prog_compiler_pic_RC
19091pic_mode=$pic_mode
19092
19093# What is the maximum length of a command?
19094max_cmd_len=$lt_cv_sys_max_cmd_len
19095
19096# Does compiler simultaneously support -c and -o options?
19097compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19098
19099# Must we lock files when doing compilation?
19100need_locks=$lt_need_locks
19101
19102# Do we need the lib prefix for modules?
19103need_lib_prefix=$need_lib_prefix
19104
19105# Do we need a version for libraries?
19106need_version=$need_version
19107
19108# Whether dlopen is supported.
19109dlopen_support=$enable_dlopen
19110
19111# Whether dlopen of programs is supported.
19112dlopen_self=$enable_dlopen_self
19113
19114# Whether dlopen of statically linked programs is supported.
19115dlopen_self_static=$enable_dlopen_self_static
19116
19117# Compiler flag to prevent dynamic linking.
19118link_static_flag=$lt_lt_prog_compiler_static_RC
19119
19120# Compiler flag to turn off builtin functions.
19121no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19122
19123# Compiler flag to allow reflexive dlopens.
19124export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19125
19126# Compiler flag to generate shared objects directly from archives.
19127whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19128
19129# Compiler flag to generate thread-safe objects.
19130thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19131
19132# Library versioning type.
19133version_type=$version_type
19134
19135# Format of library name prefix.
19136libname_spec=$lt_libname_spec
19137
19138# List of archive names. First name is the real one, the rest are links.
19139# The last name is the one that the linker finds with -lNAME.
19140library_names_spec=$lt_library_names_spec
19141
19142# The coded name of the library, if different from the real name.
19143soname_spec=$lt_soname_spec
19144
19145# Commands used to build and install an old-style archive.
19146RANLIB=$lt_RANLIB
19147old_archive_cmds=$lt_old_archive_cmds_RC
19148old_postinstall_cmds=$lt_old_postinstall_cmds
19149old_postuninstall_cmds=$lt_old_postuninstall_cmds
19150
19151# Create an old-style archive from a shared archive.
19152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19153
19154# Create a temporary old-style archive to link instead of a shared archive.
19155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19156
19157# Commands used to build and install a shared archive.
19158archive_cmds=$lt_archive_cmds_RC
19159archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19160postinstall_cmds=$lt_postinstall_cmds
19161postuninstall_cmds=$lt_postuninstall_cmds
19162
19163# Commands used to build a loadable module (assumed same as above if empty)
19164module_cmds=$lt_module_cmds_RC
19165module_expsym_cmds=$lt_module_expsym_cmds_RC
19166
19167# Commands to strip libraries.
19168old_striplib=$lt_old_striplib
19169striplib=$lt_striplib
19170
19171# Dependencies to place before the objects being linked to create a
19172# shared library.
19173predep_objects=$lt_predep_objects_RC
19174
19175# Dependencies to place after the objects being linked to create a
19176# shared library.
19177postdep_objects=$lt_postdep_objects_RC
19178
19179# Dependencies to place before the objects being linked to create a
19180# shared library.
19181predeps=$lt_predeps_RC
19182
19183# Dependencies to place after the objects being linked to create a
19184# shared library.
19185postdeps=$lt_postdeps_RC
19186
19187# The directories searched by this compiler when creating a shared
19188# library
19189compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19190
19191# The library search path used internally by the compiler when linking
19192# a shared library.
19193compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19194
19195# Method to check whether dependent libraries are shared objects.
19196deplibs_check_method=$lt_deplibs_check_method
19197
19198# Command to use when deplibs_check_method == file_magic.
19199file_magic_cmd=$lt_file_magic_cmd
19200
19201# Flag that allows shared libraries with undefined symbols to be built.
19202allow_undefined_flag=$lt_allow_undefined_flag_RC
19203
19204# Flag that forces no undefined symbols.
19205no_undefined_flag=$lt_no_undefined_flag_RC
19206
19207# Commands used to finish a libtool library installation in a directory.
19208finish_cmds=$lt_finish_cmds
19209
19210# Same as above, but a single script fragment to be evaled but not shown.
19211finish_eval=$lt_finish_eval
19212
19213# Take the output of nm and produce a listing of raw symbols and C names.
19214global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19215
19216# Transform the output of nm in a proper C declaration
19217global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19218
19219# Transform the output of nm in a C name address pair
19220global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19221
19222# This is the shared library runtime path variable.
19223runpath_var=$runpath_var
19224
19225# This is the shared library path variable.
19226shlibpath_var=$shlibpath_var
19227
19228# Is shlibpath searched before the hard-coded library search path?
19229shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19230
19231# How to hardcode a shared library path into an executable.
19232hardcode_action=$hardcode_action_RC
19233
19234# Whether we should hardcode library paths into libraries.
19235hardcode_into_libs=$hardcode_into_libs
19236
19237# Flag to hardcode \$libdir into a binary during linking.
19238# This must work even if \$libdir does not exist.
19239hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19240
19241# If ld is used when linking, flag to hardcode \$libdir into
19242# a binary during linking. This must work even if \$libdir does
19243# not exist.
19244hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19245
19246# Whether we need a single -rpath flag with a separated argument.
19247hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19248
19249# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19250# resulting binary.
19251hardcode_direct=$hardcode_direct_RC
19252
19253# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19254# resulting binary.
19255hardcode_minus_L=$hardcode_minus_L_RC
19256
19257# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19258# the resulting binary.
19259hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19260
19261# Set to yes if building a shared library automatically hardcodes DIR into the library
19262# and all subsequent libraries and executables linked against it.
19263hardcode_automatic=$hardcode_automatic_RC
19264
19265# Variables whose values should be saved in libtool wrapper scripts and
19266# restored at relink time.
19267variables_saved_for_relink="$variables_saved_for_relink"
19268
19269# Whether libtool must link a program against all its dependency libraries.
19270link_all_deplibs=$link_all_deplibs_RC
19271
19272# Compile-time system search path for libraries
19273sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19274
19275# Run-time system search path for libraries
19276sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19277
19278# Fix the shell variable \$srcfile for the compiler.
19279fix_srcfile_path=$lt_fix_srcfile_path
19280
19281# Set to yes if exported symbols are required.
19282always_export_symbols=$always_export_symbols_RC
19283
19284# The commands to list exported symbols.
19285export_symbols_cmds=$lt_export_symbols_cmds_RC
19286
19287# The commands to extract the exported symbol list from a shared archive.
19288extract_expsyms_cmds=$lt_extract_expsyms_cmds
19289
19290# Symbols that should not be listed in the preloaded symbols.
19291exclude_expsyms=$lt_exclude_expsyms_RC
19292
19293# Symbols that must always be exported.
19294include_expsyms=$lt_include_expsyms_RC
19295
19296# ### END LIBTOOL TAG CONFIG: $tagname
19297
19298__EOF__
19299
19300
19301else
19302 # If there is no Makefile yet, we rely on a make rule to execute
19303 # `config.status --recheck' to rerun these tests and create the
19304 # libtool script then.
19305 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19306 if test -f "$ltmain_in"; then
19307 test -f Makefile && make "$ltmain"
19308 fi
19309fi
19310
19311
19312ac_ext=c
19313ac_cpp='$CPP $CPPFLAGS'
19314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19316ac_compiler_gnu=$ac_cv_c_compiler_gnu
19317
19318CC="$lt_save_CC"
19319
19320 ;;
19321
19322 *)
19323 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19324$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19325 { (exit 1); exit 1; }; }
19326 ;;
19327 esac
19328
19329 # Append the new tag name to the list of available tags.
19330 if test -n "$tagname" ; then
19331 available_tags="$available_tags $tagname"
19332 fi
19333 fi
19334 done
19335 IFS="$lt_save_ifs"
19336
19337 # Now substitute the updated list of available tags.
19338 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19339 mv "${ofile}T" "$ofile"
19340 chmod +x "$ofile"
19341 else
19342 rm -f "${ofile}T"
19343 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19344$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19345 { (exit 1); exit 1; }; }
19346 fi
19347fi
19348
19349
19350
19351# This can be used to rebuild libtool when needed
19352LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19353
19354# Always use our own libtool.
19355LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19356
19357# Prevent multiple expansion
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379am__api_version='1.10'
19380
19381{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19382$as_echo_n "checking whether build environment is sane... " >&6; }
19383# Just in case
19384sleep 1
19385echo timestamp > conftest.file
19386# Do `set' in a subshell so we don't clobber the current shell's
19387# arguments. Must try -L first in case configure is actually a
19388# symlink; some systems play weird games with the mod time of symlinks
19389# (eg FreeBSD returns the mod time of the symlink's containing
19390# directory).
19391if (
19392 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19393 if test "$*" = "X"; then
19394 # -L didn't work.
19395 set X `ls -t $srcdir/configure conftest.file`
19396 fi
19397 rm -f conftest.file
19398 if test "$*" != "X $srcdir/configure conftest.file" \
19399 && test "$*" != "X conftest.file $srcdir/configure"; then
19400
19401 # If neither matched, then we have a broken ls. This can happen
19402 # if, for instance, CONFIG_SHELL is bash and it inherits a
19403 # broken ls alias from the environment. This has actually
19404 # happened. Such a system could not be considered "sane".
19405 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19406alias in your environment" >&5
19407$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19408alias in your environment" >&2;}
19409 { (exit 1); exit 1; }; }
19410 fi
19411
19412 test "$2" = conftest.file
19413 )
19414then
19415 # Ok.
19416 :
19417else
19418 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19419Check your system clock" >&5
19420$as_echo "$as_me: error: newly created file is older than distributed files!
19421Check your system clock" >&2;}
19422 { (exit 1); exit 1; }; }
19423fi
19424{ $as_echo "$as_me:$LINENO: result: yes" >&5
19425$as_echo "yes" >&6; }
19426test "$program_prefix" != NONE &&
19427 program_transform_name="s&^&$program_prefix&;$program_transform_name"
19428# Use a double $ so make ignores it.
19429test "$program_suffix" != NONE &&
19430 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
19431# Double any \ or $.
19432# By default was `s,x,x', remove it if useless.
19433ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
19434program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
19435
19436# expand $ac_aux_dir to an absolute path
19437am_aux_dir=`cd $ac_aux_dir && pwd`
19438
19439test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19440# Use eval to expand $SHELL
19441if eval "$MISSING --run true"; then
19442 am_missing_run="$MISSING --run "
19443else
19444 am_missing_run=
19445 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19446$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19447fi
19448
19449{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
19450$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
19451if test -z "$MKDIR_P"; then
19452 if test "${ac_cv_path_mkdir+set}" = set; then
19453 $as_echo_n "(cached) " >&6
19454else
19455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19456for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
19457do
19458 IFS=$as_save_IFS
19459 test -z "$as_dir" && as_dir=.
19460 for ac_prog in mkdir gmkdir; do
19461 for ac_exec_ext in '' $ac_executable_extensions; do
19462 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
19463 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
19464 'mkdir (GNU coreutils) '* | \
19465 'mkdir (coreutils) '* | \
19466 'mkdir (fileutils) '4.1*)
19467 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
19468 break 3;;
19469 esac
19470 done
19471 done
19472done
19473IFS=$as_save_IFS
19474
19475fi
19476
19477 if test "${ac_cv_path_mkdir+set}" = set; then
19478 MKDIR_P="$ac_cv_path_mkdir -p"
19479 else
19480 # As a last resort, use the slow shell script. Don't cache a
19481 # value for MKDIR_P within a source directory, because that will
19482 # break other packages using the cache if that directory is
19483 # removed, or if the value is a relative name.
19484 test -d ./--version && rmdir ./--version
19485 MKDIR_P="$ac_install_sh -d"
19486 fi
19487fi
19488{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
19489$as_echo "$MKDIR_P" >&6; }
19490
19491mkdir_p="$MKDIR_P"
19492case $mkdir_p in
19493 [\\/$]* | ?:[\\/]*) ;;
19494 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19495esac
19496
19497for ac_prog in gawk mawk nawk awk
19498do
19499 # Extract the first word of "$ac_prog", so it can be a program name with args.
19500set dummy $ac_prog; ac_word=$2
19501{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19502$as_echo_n "checking for $ac_word... " >&6; }
19503if test "${ac_cv_prog_AWK+set}" = set; then
19504 $as_echo_n "(cached) " >&6
19505else
19506 if test -n "$AWK"; then
19507 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19508else
19509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19510for as_dir in $PATH
19511do
19512 IFS=$as_save_IFS
19513 test -z "$as_dir" && as_dir=.
19514 for ac_exec_ext in '' $ac_executable_extensions; do
19515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19516 ac_cv_prog_AWK="$ac_prog"
19517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19518 break 2
19519 fi
19520done
19521done
19522IFS=$as_save_IFS
19523
19524fi
19525fi
19526AWK=$ac_cv_prog_AWK
19527if test -n "$AWK"; then
19528 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
19529$as_echo "$AWK" >&6; }
19530else
19531 { $as_echo "$as_me:$LINENO: result: no" >&5
19532$as_echo "no" >&6; }
19533fi
19534
19535
19536 test -n "$AWK" && break
19537done
19538
19539{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19540$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19541set x ${MAKE-make}
19542ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19543if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19544 $as_echo_n "(cached) " >&6
19545else
19546 cat >conftest.make <<\_ACEOF
19547SHELL = /bin/sh
19548all:
19549 @echo '@@@%%%=$(MAKE)=@@@%%%'
19550_ACEOF
19551# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19552case `${MAKE-make} -f conftest.make 2>/dev/null` in
19553 *@@@%%%=?*=@@@%%%*)
19554 eval ac_cv_prog_make_${ac_make}_set=yes;;
19555 *)
19556 eval ac_cv_prog_make_${ac_make}_set=no;;
19557esac
19558rm -f conftest.make
19559fi
19560if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19561 { $as_echo "$as_me:$LINENO: result: yes" >&5
19562$as_echo "yes" >&6; }
19563 SET_MAKE=
19564else
19565 { $as_echo "$as_me:$LINENO: result: no" >&5
19566$as_echo "no" >&6; }
19567 SET_MAKE="MAKE=${MAKE-make}"
19568fi
19569
19570rm -rf .tst 2>/dev/null
19571mkdir .tst 2>/dev/null
19572if test -d .tst; then
19573 am__leading_dot=.
19574else
19575 am__leading_dot=_
19576fi
19577rmdir .tst 2>/dev/null
19578
19579DEPDIR="${am__leading_dot}deps"
19580
19581ac_config_commands="$ac_config_commands depfiles"
19582
19583
19584am_make=${MAKE-make}
19585cat > confinc << 'END'
19586am__doit:
19587 @echo done
19588.PHONY: am__doit
19589END
19590# If we don't find an include directive, just comment out the code.
19591{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19592$as_echo_n "checking for style of include used by $am_make... " >&6; }
19593am__include="#"
19594am__quote=
19595_am_result=none
19596# First try GNU make style include.
19597echo "include confinc" > confmf
19598# We grep out `Entering directory' and `Leaving directory'
19599# messages which can occur if `w' ends up in MAKEFLAGS.
19600# In particular we don't look at `^make:' because GNU make might
19601# be invoked under some other name (usually "gmake"), in which
19602# case it prints its new name instead of `make'.
19603if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19604 am__include=include
19605 am__quote=
19606 _am_result=GNU
19607fi
19608# Now try BSD make style include.
19609if test "$am__include" = "#"; then
19610 echo '.include "confinc"' > confmf
19611 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19612 am__include=.include
19613 am__quote="\""
19614 _am_result=BSD
19615 fi
19616fi
19617
19618
19619{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
19620$as_echo "$_am_result" >&6; }
19621rm -f confinc confmf
19622
19623# Check whether --enable-dependency-tracking was given.
19624if test "${enable_dependency_tracking+set}" = set; then
19625 enableval=$enable_dependency_tracking;
19626fi
19627
19628if test "x$enable_dependency_tracking" != xno; then
19629 am_depcomp="$ac_aux_dir/depcomp"
19630 AMDEPBACKSLASH='\'
19631fi
19632 if test "x$enable_dependency_tracking" != xno; then
19633 AMDEP_TRUE=
19634 AMDEP_FALSE='#'
19635else
19636 AMDEP_TRUE='#'
19637 AMDEP_FALSE=
19638fi
19639
19640
19641if test "`cd $srcdir && pwd`" != "`pwd`"; then
19642 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19643 # is not polluted with repeated "-I."
19644 am__isrc=' -I$(srcdir)'
19645 # test to see if srcdir already configured
19646 if test -f $srcdir/config.status; then
19647 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19648$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19649 { (exit 1); exit 1; }; }
19650 fi
19651fi
19652
19653# test whether we have cygpath
19654if test -z "$CYGPATH_W"; then
19655 if (cygpath --version) >/dev/null 2>/dev/null; then
19656 CYGPATH_W='cygpath -w'
19657 else
19658 CYGPATH_W=echo
19659 fi
19660fi
19661
19662
19663# Define the identity of the package.
19664 PACKAGE=OpenBSM
19665 VERSION=1.1p1
19665 VERSION=1.1p2
19666
19667
19668cat >>confdefs.h <<_ACEOF
19669#define PACKAGE "$PACKAGE"
19670_ACEOF
19671
19672
19673cat >>confdefs.h <<_ACEOF
19674#define VERSION "$VERSION"
19675_ACEOF
19676
19677# Some tools Automake needs.
19678
19679ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19680
19681
19682AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19683
19684
19685AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19686
19687
19688AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19689
19690
19691MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19692
19693install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19694
19695# Installed binaries are usually stripped using `strip' when the user
19696# run `make install-strip'. However `strip' might not be the right
19697# tool to use in cross-compilation environments, therefore Automake
19698# will honor the `STRIP' environment variable to overrule this program.
19699if test "$cross_compiling" != no; then
19700 if test -n "$ac_tool_prefix"; then
19701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19702set dummy ${ac_tool_prefix}strip; ac_word=$2
19703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19704$as_echo_n "checking for $ac_word... " >&6; }
19705if test "${ac_cv_prog_STRIP+set}" = set; then
19706 $as_echo_n "(cached) " >&6
19707else
19708 if test -n "$STRIP"; then
19709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19710else
19711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712for as_dir in $PATH
19713do
19714 IFS=$as_save_IFS
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19720 break 2
19721 fi
19722done
19723done
19724IFS=$as_save_IFS
19725
19726fi
19727fi
19728STRIP=$ac_cv_prog_STRIP
19729if test -n "$STRIP"; then
19730 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
19731$as_echo "$STRIP" >&6; }
19732else
19733 { $as_echo "$as_me:$LINENO: result: no" >&5
19734$as_echo "no" >&6; }
19735fi
19736
19737
19738fi
19739if test -z "$ac_cv_prog_STRIP"; then
19740 ac_ct_STRIP=$STRIP
19741 # Extract the first word of "strip", so it can be a program name with args.
19742set dummy strip; ac_word=$2
19743{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19744$as_echo_n "checking for $ac_word... " >&6; }
19745if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19746 $as_echo_n "(cached) " >&6
19747else
19748 if test -n "$ac_ct_STRIP"; then
19749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19750else
19751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752for as_dir in $PATH
19753do
19754 IFS=$as_save_IFS
19755 test -z "$as_dir" && as_dir=.
19756 for ac_exec_ext in '' $ac_executable_extensions; do
19757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758 ac_cv_prog_ac_ct_STRIP="strip"
19759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 break 2
19761 fi
19762done
19763done
19764IFS=$as_save_IFS
19765
19766fi
19767fi
19768ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19769if test -n "$ac_ct_STRIP"; then
19770 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19771$as_echo "$ac_ct_STRIP" >&6; }
19772else
19773 { $as_echo "$as_me:$LINENO: result: no" >&5
19774$as_echo "no" >&6; }
19775fi
19776
19777 if test "x$ac_ct_STRIP" = x; then
19778 STRIP=":"
19779 else
19780 case $cross_compiling:$ac_tool_warned in
19781yes:)
19782{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19783whose name does not start with the host triplet. If you think this
19784configuration is useful to you, please write to autoconf@gnu.org." >&5
19785$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19786whose name does not start with the host triplet. If you think this
19787configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19788ac_tool_warned=yes ;;
19789esac
19790 STRIP=$ac_ct_STRIP
19791 fi
19792else
19793 STRIP="$ac_cv_prog_STRIP"
19794fi
19795
19796fi
19797INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19798
19799# We need awk for the "check" target. The system "awk" is bad on
19800# some platforms.
19801# Always define AMTAR for backward compatibility.
19802
19803AMTAR=${AMTAR-"${am_missing_run}tar"}
19804
19805am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19806
19807
19808
19809
19810depcc="$CC" am_compiler_list=
19811
19812{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19813$as_echo_n "checking dependency style of $depcc... " >&6; }
19814if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19815 $as_echo_n "(cached) " >&6
19816else
19817 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19818 # We make a subdir and do the tests there. Otherwise we can end up
19819 # making bogus files that we don't know about and never remove. For
19820 # instance it was reported that on HP-UX the gcc test will end up
19821 # making a dummy file named `D' -- because `-MD' means `put the output
19822 # in D'.
19823 mkdir conftest.dir
19824 # Copy depcomp to subdir because otherwise we won't find it if we're
19825 # using a relative directory.
19826 cp "$am_depcomp" conftest.dir
19827 cd conftest.dir
19828 # We will build objects and dependencies in a subdirectory because
19829 # it helps to detect inapplicable dependency modes. For instance
19830 # both Tru64's cc and ICC support -MD to output dependencies as a
19831 # side effect of compilation, but ICC will put the dependencies in
19832 # the current directory while Tru64 will put them in the object
19833 # directory.
19834 mkdir sub
19835
19836 am_cv_CC_dependencies_compiler_type=none
19837 if test "$am_compiler_list" = ""; then
19838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19839 fi
19840 for depmode in $am_compiler_list; do
19841 # Setup a source with many dependencies, because some compilers
19842 # like to wrap large dependency lists on column 80 (with \), and
19843 # we should not choose a depcomp mode which is confused by this.
19844 #
19845 # We need to recreate these files for each test, as the compiler may
19846 # overwrite some of them when testing with obscure command lines.
19847 # This happens at least with the AIX C compiler.
19848 : > sub/conftest.c
19849 for i in 1 2 3 4 5 6; do
19850 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19851 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19852 # Solaris 8's {/usr,}/bin/sh.
19853 touch sub/conftst$i.h
19854 done
19855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19856
19857 case $depmode in
19858 nosideeffect)
19859 # after this tag, mechanisms are not by side-effect, so they'll
19860 # only be used when explicitly requested
19861 if test "x$enable_dependency_tracking" = xyes; then
19862 continue
19863 else
19864 break
19865 fi
19866 ;;
19867 none) break ;;
19868 esac
19869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19870 # mode. It turns out that the SunPro C++ compiler does not properly
19871 # handle `-M -o', and we need to detect this.
19872 if depmode=$depmode \
19873 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19875 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19876 >/dev/null 2>conftest.err &&
19877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19881 # icc doesn't choke on unknown options, it will just issue warnings
19882 # or remarks (even with -Werror). So we grep stderr for any message
19883 # that says an option was ignored or not supported.
19884 # When given -MP, icc 7.0 and 7.1 complain thusly:
19885 # icc: Command line warning: ignoring option '-M'; no argument required
19886 # The diagnosis changed in icc 8.0:
19887 # icc: Command line remark: option '-MP' not supported
19888 if (grep 'ignoring option' conftest.err ||
19889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19890 am_cv_CC_dependencies_compiler_type=$depmode
19891 break
19892 fi
19893 fi
19894 done
19895
19896 cd ..
19897 rm -rf conftest.dir
19898else
19899 am_cv_CC_dependencies_compiler_type=none
19900fi
19901
19902fi
19903{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19904$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19905CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19906
19907 if
19908 test "x$enable_dependency_tracking" != xno \
19909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19910 am__fastdepCC_TRUE=
19911 am__fastdepCC_FALSE='#'
19912else
19913 am__fastdepCC_TRUE='#'
19914 am__fastdepCC_FALSE=
19915fi
19916
19917
19918depcc="$CXX" am_compiler_list=
19919
19920{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19921$as_echo_n "checking dependency style of $depcc... " >&6; }
19922if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19923 $as_echo_n "(cached) " >&6
19924else
19925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19926 # We make a subdir and do the tests there. Otherwise we can end up
19927 # making bogus files that we don't know about and never remove. For
19928 # instance it was reported that on HP-UX the gcc test will end up
19929 # making a dummy file named `D' -- because `-MD' means `put the output
19930 # in D'.
19931 mkdir conftest.dir
19932 # Copy depcomp to subdir because otherwise we won't find it if we're
19933 # using a relative directory.
19934 cp "$am_depcomp" conftest.dir
19935 cd conftest.dir
19936 # We will build objects and dependencies in a subdirectory because
19937 # it helps to detect inapplicable dependency modes. For instance
19938 # both Tru64's cc and ICC support -MD to output dependencies as a
19939 # side effect of compilation, but ICC will put the dependencies in
19940 # the current directory while Tru64 will put them in the object
19941 # directory.
19942 mkdir sub
19943
19944 am_cv_CXX_dependencies_compiler_type=none
19945 if test "$am_compiler_list" = ""; then
19946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19947 fi
19948 for depmode in $am_compiler_list; do
19949 # Setup a source with many dependencies, because some compilers
19950 # like to wrap large dependency lists on column 80 (with \), and
19951 # we should not choose a depcomp mode which is confused by this.
19952 #
19953 # We need to recreate these files for each test, as the compiler may
19954 # overwrite some of them when testing with obscure command lines.
19955 # This happens at least with the AIX C compiler.
19956 : > sub/conftest.c
19957 for i in 1 2 3 4 5 6; do
19958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19959 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19960 # Solaris 8's {/usr,}/bin/sh.
19961 touch sub/conftst$i.h
19962 done
19963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19964
19965 case $depmode in
19966 nosideeffect)
19967 # after this tag, mechanisms are not by side-effect, so they'll
19968 # only be used when explicitly requested
19969 if test "x$enable_dependency_tracking" = xyes; then
19970 continue
19971 else
19972 break
19973 fi
19974 ;;
19975 none) break ;;
19976 esac
19977 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19978 # mode. It turns out that the SunPro C++ compiler does not properly
19979 # handle `-M -o', and we need to detect this.
19980 if depmode=$depmode \
19981 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19983 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19984 >/dev/null 2>conftest.err &&
19985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19987 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19989 # icc doesn't choke on unknown options, it will just issue warnings
19990 # or remarks (even with -Werror). So we grep stderr for any message
19991 # that says an option was ignored or not supported.
19992 # When given -MP, icc 7.0 and 7.1 complain thusly:
19993 # icc: Command line warning: ignoring option '-M'; no argument required
19994 # The diagnosis changed in icc 8.0:
19995 # icc: Command line remark: option '-MP' not supported
19996 if (grep 'ignoring option' conftest.err ||
19997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19998 am_cv_CXX_dependencies_compiler_type=$depmode
19999 break
20000 fi
20001 fi
20002 done
20003
20004 cd ..
20005 rm -rf conftest.dir
20006else
20007 am_cv_CXX_dependencies_compiler_type=none
20008fi
20009
20010fi
20011{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20012$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
20013CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20014
20015 if
20016 test "x$enable_dependency_tracking" != xno \
20017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20018 am__fastdepCXX_TRUE=
20019 am__fastdepCXX_FALSE='#'
20020else
20021 am__fastdepCXX_TRUE='#'
20022 am__fastdepCXX_FALSE=
20023fi
20024
20025
20026
20027
20028{ $as_echo "$as_me:$LINENO: checking for library containing dlsym" >&5
20029$as_echo_n "checking for library containing dlsym... " >&6; }
20030if test "${ac_cv_search_dlsym+set}" = set; then
20031 $as_echo_n "(cached) " >&6
20032else
20033 ac_func_search_save_LIBS=$LIBS
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040
20041/* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char dlsym ();
20048int
20049main ()
20050{
20051return dlsym ();
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056for ac_lib in '' dl; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20059 else
20060 ac_res=-l$ac_lib
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20062 fi
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064if { (ac_try="$ac_link"
20065case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070$as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20083 }; then
20084 ac_cv_search_dlsym=$ac_res
20085else
20086 $as_echo "$as_me: failed program was:" >&5
20087sed 's/^/| /' conftest.$ac_ext >&5
20088
20089
20090fi
20091
20092rm -rf conftest.dSYM
20093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094 conftest$ac_exeext
20095 if test "${ac_cv_search_dlsym+set}" = set; then
20096 break
20097fi
20098done
20099if test "${ac_cv_search_dlsym+set}" = set; then
20100 :
20101else
20102 ac_cv_search_dlsym=no
20103fi
20104rm conftest.$ac_ext
20105LIBS=$ac_func_search_save_LIBS
20106fi
20107{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
20108$as_echo "$ac_cv_search_dlsym" >&6; }
20109ac_res=$ac_cv_search_dlsym
20110if test "$ac_res" != no; then
20111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20112
20113fi
20114
20115{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
20116$as_echo_n "checking for library containing clock_gettime... " >&6; }
20117if test "${ac_cv_search_clock_gettime+set}" = set; then
20118 $as_echo_n "(cached) " >&6
20119else
20120 ac_func_search_save_LIBS=$LIBS
20121cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127
20128/* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20131#ifdef __cplusplus
20132extern "C"
20133#endif
20134char clock_gettime ();
20135int
20136main ()
20137{
20138return clock_gettime ();
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143for ac_lib in '' rt; do
20144 if test -z "$ac_lib"; then
20145 ac_res="none required"
20146 else
20147 ac_res=-l$ac_lib
20148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20149 fi
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151if { (ac_try="$ac_link"
20152case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155esac
20156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157$as_echo "$ac_try_echo") >&5
20158 (eval "$ac_link") 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest$ac_exeext && {
20168 test "$cross_compiling" = yes ||
20169 $as_test_x conftest$ac_exeext
20170 }; then
20171 ac_cv_search_clock_gettime=$ac_res
20172else
20173 $as_echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176
20177fi
20178
20179rm -rf conftest.dSYM
20180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20181 conftest$ac_exeext
20182 if test "${ac_cv_search_clock_gettime+set}" = set; then
20183 break
20184fi
20185done
20186if test "${ac_cv_search_clock_gettime+set}" = set; then
20187 :
20188else
20189 ac_cv_search_clock_gettime=no
20190fi
20191rm conftest.$ac_ext
20192LIBS=$ac_func_search_save_LIBS
20193fi
20194{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
20195$as_echo "$ac_cv_search_clock_gettime" >&6; }
20196ac_res=$ac_cv_search_clock_gettime
20197if test "$ac_res" != no; then
20198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20199
20200fi
20201
20202
20203# Checks for header files.
20204{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20205$as_echo_n "checking for ANSI C header files... " >&6; }
20206if test "${ac_cv_header_stdc+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20208else
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215#include <stdlib.h>
20216#include <stdarg.h>
20217#include <string.h>
20218#include <float.h>
20219
20220int
20221main ()
20222{
20223
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext
20229if { (ac_try="$ac_compile"
20230case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235$as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_cv_header_stdc=yes
20247else
20248 $as_echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ac_cv_header_stdc=no
20252fi
20253
20254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255
20256if test $ac_cv_header_stdc = yes; then
20257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264#include <string.h>
20265
20266_ACEOF
20267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20268 $EGREP "memchr" >/dev/null 2>&1; then
20269 :
20270else
20271 ac_cv_header_stdc=no
20272fi
20273rm -f conftest*
20274
20275fi
20276
20277if test $ac_cv_header_stdc = yes; then
20278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20279 cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285#include <stdlib.h>
20286
20287_ACEOF
20288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20289 $EGREP "free" >/dev/null 2>&1; then
20290 :
20291else
20292 ac_cv_header_stdc=no
20293fi
20294rm -f conftest*
20295
20296fi
20297
20298if test $ac_cv_header_stdc = yes; then
20299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20300 if test "$cross_compiling" = yes; then
20301 :
20302else
20303 cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309#include <ctype.h>
20310#include <stdlib.h>
20311#if ((' ' & 0x0FF) == 0x020)
20312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20314#else
20315# define ISLOWER(c) \
20316 (('a' <= (c) && (c) <= 'i') \
20317 || ('j' <= (c) && (c) <= 'r') \
20318 || ('s' <= (c) && (c) <= 'z'))
20319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20320#endif
20321
20322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20323int
20324main ()
20325{
20326 int i;
20327 for (i = 0; i < 256; i++)
20328 if (XOR (islower (i), ISLOWER (i))
20329 || toupper (i) != TOUPPER (i))
20330 return 2;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest$ac_exeext
20335if { (ac_try="$ac_link"
20336case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341$as_echo "$ac_try_echo") >&5
20342 (eval "$ac_link") 2>&5
20343 ac_status=$?
20344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349esac
20350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351$as_echo "$ac_try_echo") >&5
20352 (eval "$ac_try") 2>&5
20353 ac_status=$?
20354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 :
20357else
20358 $as_echo "$as_me: program exited with status $ac_status" >&5
20359$as_echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
20362( exit $ac_status )
20363ac_cv_header_stdc=no
20364fi
20365rm -rf conftest.dSYM
20366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367fi
20368
20369
20370fi
20371fi
20372{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20373$as_echo "$ac_cv_header_stdc" >&6; }
20374if test $ac_cv_header_stdc = yes; then
20375
20376cat >>confdefs.h <<\_ACEOF
20377#define STDC_HEADERS 1
20378_ACEOF
20379
20380fi
20381
20382{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20383$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20384if test "${ac_cv_header_sys_wait_h+set}" = set; then
20385 $as_echo_n "(cached) " >&6
20386else
20387 cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h. */
20393#include <sys/types.h>
20394#include <sys/wait.h>
20395#ifndef WEXITSTATUS
20396# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20397#endif
20398#ifndef WIFEXITED
20399# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20400#endif
20401
20402int
20403main ()
20404{
20405 int s;
20406 wait (&s);
20407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20408 ;
20409 return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (ac_try="$ac_compile"
20414case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419$as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_cv_header_sys_wait_h=yes
20431else
20432 $as_echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_header_sys_wait_h=no
20436fi
20437
20438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439fi
20440{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20441$as_echo "$ac_cv_header_sys_wait_h" >&6; }
20442if test $ac_cv_header_sys_wait_h = yes; then
20443
20444cat >>confdefs.h <<\_ACEOF
20445#define HAVE_SYS_WAIT_H 1
20446_ACEOF
20447
20448fi
20449
20450
20451
20452
20453
20454
20455for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
20456do
20457as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20460$as_echo_n "checking for $ac_header... " >&6; }
20461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 $as_echo_n "(cached) " >&6
20463fi
20464ac_res=`eval 'as_val=${'$as_ac_Header'}
20465 $as_echo "$as_val"'`
20466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20467$as_echo "$ac_res" >&6; }
20468else
20469 # Is the header compilable?
20470{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471$as_echo_n "checking $ac_header usability... " >&6; }
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479#include <$ac_header>
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (ac_try="$ac_compile"
20483case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488$as_echo "$ac_try_echo") >&5
20489 (eval "$ac_compile") 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest.$ac_objext; then
20499 ac_header_compiler=yes
20500else
20501 $as_echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 ac_header_compiler=no
20505fi
20506
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509$as_echo "$ac_header_compiler" >&6; }
20510
20511# Is the header present?
20512{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20513$as_echo_n "checking $ac_header presence... " >&6; }
20514cat >conftest.$ac_ext <<_ACEOF
20515/* confdefs.h. */
20516_ACEOF
20517cat confdefs.h >>conftest.$ac_ext
20518cat >>conftest.$ac_ext <<_ACEOF
20519/* end confdefs.h. */
20520#include <$ac_header>
20521_ACEOF
20522if { (ac_try="$ac_cpp conftest.$ac_ext"
20523case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526esac
20527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528$as_echo "$ac_try_echo") >&5
20529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } >/dev/null && {
20536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 }; then
20539 ac_header_preproc=yes
20540else
20541 $as_echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 ac_header_preproc=no
20545fi
20546
20547rm -f conftest.err conftest.$ac_ext
20548{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20549$as_echo "$ac_header_preproc" >&6; }
20550
20551# So? What about this header?
20552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20553 yes:no: )
20554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20555$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20557$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20558 ac_header_preproc=yes
20559 ;;
20560 no:yes:* )
20561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20562$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20564$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20566$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20568$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20570$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20572$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20573 ( cat <<\_ASBOX
20574## ----------------------------------------------- ##
20575## Report this to trustedbsd-audit@TrustesdBSD.org ##
20576## ----------------------------------------------- ##
20577_ASBOX
20578 ) | sed "s/^/$as_me: WARNING: /" >&2
20579 ;;
20580esac
20581{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20582$as_echo_n "checking for $ac_header... " >&6; }
20583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20584 $as_echo_n "(cached) " >&6
20585else
20586 eval "$as_ac_Header=\$ac_header_preproc"
20587fi
20588ac_res=`eval 'as_val=${'$as_ac_Header'}
20589 $as_echo "$as_val"'`
20590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20591$as_echo "$ac_res" >&6; }
20592
20593fi
20594if test `eval 'as_val=${'$as_ac_Header'}
20595 $as_echo "$as_val"'` = yes; then
20596 cat >>confdefs.h <<_ACEOF
20597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20598_ACEOF
20599
20600fi
20601
20602done
20603
20604
20605
20606cat >>confdefs.h <<\_ACEOF
20607#define _GNU_SOURCE /**/
20608_ACEOF
20609
20610
20611# Checks for typedefs, structures, and compiler characteristics.
20612{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20613$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20614if test "${ac_cv_c_const+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20616else
20617 cat >conftest.$ac_ext <<_ACEOF
20618/* confdefs.h. */
20619_ACEOF
20620cat confdefs.h >>conftest.$ac_ext
20621cat >>conftest.$ac_ext <<_ACEOF
20622/* end confdefs.h. */
20623
20624int
20625main ()
20626{
20627/* FIXME: Include the comments suggested by Paul. */
20628#ifndef __cplusplus
20629 /* Ultrix mips cc rejects this. */
20630 typedef int charset[2];
20631 const charset cs;
20632 /* SunOS 4.1.1 cc rejects this. */
20633 char const *const *pcpcc;
20634 char **ppc;
20635 /* NEC SVR4.0.2 mips cc rejects this. */
20636 struct point {int x, y;};
20637 static struct point const zero = {0,0};
20638 /* AIX XL C 1.02.0.0 rejects this.
20639 It does not let you subtract one const X* pointer from another in
20640 an arm of an if-expression whose if-part is not a constant
20641 expression */
20642 const char *g = "string";
20643 pcpcc = &g + (g ? g-g : 0);
20644 /* HPUX 7.0 cc rejects these. */
20645 ++pcpcc;
20646 ppc = (char**) pcpcc;
20647 pcpcc = (char const *const *) ppc;
20648 { /* SCO 3.2v4 cc rejects this. */
20649 char *t;
20650 char const *s = 0 ? (char *) 0 : (char const *) 0;
20651
20652 *t++ = 0;
20653 if (s) return 0;
20654 }
20655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20656 int x[] = {25, 17};
20657 const int *foo = &x[0];
20658 ++foo;
20659 }
20660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20661 typedef const int *iptr;
20662 iptr p = 0;
20663 ++p;
20664 }
20665 { /* AIX XL C 1.02.0.0 rejects this saying
20666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20667 struct s { int j; const int *ap[3]; };
20668 struct s *b; b->j = 5;
20669 }
20670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20671 const int foo = 10;
20672 if (!foo) return 0;
20673 }
20674 return !cs[0] && !zero.x;
20675#endif
20676
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest.$ac_objext
20682if { (ac_try="$ac_compile"
20683case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686esac
20687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20688$as_echo "$ac_try_echo") >&5
20689 (eval "$ac_compile") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest.$ac_objext; then
20699 ac_cv_c_const=yes
20700else
20701 $as_echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 ac_cv_c_const=no
20705fi
20706
20707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708fi
20709{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20710$as_echo "$ac_cv_c_const" >&6; }
20711if test $ac_cv_c_const = no; then
20712
20713cat >>confdefs.h <<\_ACEOF
20714#define const /**/
20715_ACEOF
20716
20717fi
20718
20719{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20720$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20721if test "${ac_cv_type_uid_t+set}" = set; then
20722 $as_echo_n "(cached) " >&6
20723else
20724 cat >conftest.$ac_ext <<_ACEOF
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730#include <sys/types.h>
20731
20732_ACEOF
20733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20734 $EGREP "uid_t" >/dev/null 2>&1; then
20735 ac_cv_type_uid_t=yes
20736else
20737 ac_cv_type_uid_t=no
20738fi
20739rm -f conftest*
20740
20741fi
20742{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20743$as_echo "$ac_cv_type_uid_t" >&6; }
20744if test $ac_cv_type_uid_t = no; then
20745
20746cat >>confdefs.h <<\_ACEOF
20747#define uid_t int
20748_ACEOF
20749
20750
20751cat >>confdefs.h <<\_ACEOF
20752#define gid_t int
20753_ACEOF
20754
20755fi
20756
20757{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20758$as_echo_n "checking for pid_t... " >&6; }
20759if test "${ac_cv_type_pid_t+set}" = set; then
20760 $as_echo_n "(cached) " >&6
20761else
20762 ac_cv_type_pid_t=no
20763cat >conftest.$ac_ext <<_ACEOF
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769$ac_includes_default
20770int
20771main ()
20772{
20773if (sizeof (pid_t))
20774 return 0;
20775 ;
20776 return 0;
20777}
20778_ACEOF
20779rm -f conftest.$ac_objext
20780if { (ac_try="$ac_compile"
20781case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784esac
20785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786$as_echo "$ac_try_echo") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20797 cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
20803$ac_includes_default
20804int
20805main ()
20806{
20807if (sizeof ((pid_t)))
20808 return 0;
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (ac_try="$ac_compile"
20815case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818esac
20819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820$as_echo "$ac_try_echo") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20831 :
20832else
20833 $as_echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ac_cv_type_pid_t=yes
20837fi
20838
20839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840else
20841 $as_echo "$as_me: failed program was:" >&5
20842sed 's/^/| /' conftest.$ac_ext >&5
20843
20844
20845fi
20846
20847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848fi
20849{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20850$as_echo "$ac_cv_type_pid_t" >&6; }
20851if test $ac_cv_type_pid_t = yes; then
20852 :
20853else
20854
20855cat >>confdefs.h <<_ACEOF
20856#define pid_t int
20857_ACEOF
20858
20859fi
20860
20861{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20862$as_echo_n "checking for size_t... " >&6; }
20863if test "${ac_cv_type_size_t+set}" = set; then
20864 $as_echo_n "(cached) " >&6
20865else
20866 ac_cv_type_size_t=no
20867cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873$ac_includes_default
20874int
20875main ()
20876{
20877if (sizeof (size_t))
20878 return 0;
20879 ;
20880 return 0;
20881}
20882_ACEOF
20883rm -f conftest.$ac_objext
20884if { (ac_try="$ac_compile"
20885case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20890$as_echo "$ac_try_echo") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
20907$ac_includes_default
20908int
20909main ()
20910{
20911if (sizeof ((size_t)))
20912 return 0;
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest.$ac_objext
20918if { (ac_try="$ac_compile"
20919case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922esac
20923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924$as_echo "$ac_try_echo") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 :
20936else
20937 $as_echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 ac_cv_type_size_t=yes
20941fi
20942
20943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944else
20945 $as_echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
20948
20949fi
20950
20951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952fi
20953{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20954$as_echo "$ac_cv_type_size_t" >&6; }
20955if test $ac_cv_type_size_t = yes; then
20956 :
20957else
20958
20959cat >>confdefs.h <<_ACEOF
20960#define size_t unsigned int
20961_ACEOF
20962
20963fi
20964
20965{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20966$as_echo_n "checking for struct stat.st_rdev... " >&6; }
20967if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20968 $as_echo_n "(cached) " >&6
20969else
20970 cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
20976$ac_includes_default
20977int
20978main ()
20979{
20980static struct stat ac_aggr;
20981if (ac_aggr.st_rdev)
20982return 0;
20983 ;
20984 return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext
20988if { (ac_try="$ac_compile"
20989case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992esac
20993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994$as_echo "$ac_try_echo") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_cv_member_struct_stat_st_rdev=yes
21006else
21007 $as_echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 cat >conftest.$ac_ext <<_ACEOF
21011/* confdefs.h. */
21012_ACEOF
21013cat confdefs.h >>conftest.$ac_ext
21014cat >>conftest.$ac_ext <<_ACEOF
21015/* end confdefs.h. */
21016$ac_includes_default
21017int
21018main ()
21019{
21020static struct stat ac_aggr;
21021if (sizeof ac_aggr.st_rdev)
21022return 0;
21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest.$ac_objext
21028if { (ac_try="$ac_compile"
21029case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032esac
21033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21034$as_echo "$ac_try_echo") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21036 ac_status=$?
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_member_struct_stat_st_rdev=yes
21046else
21047 $as_echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_member_struct_stat_st_rdev=no
21051fi
21052
21053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054fi
21055
21056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057fi
21058{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21059$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
21060if test $ac_cv_member_struct_stat_st_rdev = yes; then
21061
21062cat >>confdefs.h <<_ACEOF
21063#define HAVE_STRUCT_STAT_ST_RDEV 1
21064_ACEOF
21065
21066
21067fi
21068
21069
21070{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
21071$as_echo_n "checking for struct ipc_perm.__key... " >&6; }
21072if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
21073 $as_echo_n "(cached) " >&6
21074else
21075 cat >conftest.$ac_ext <<_ACEOF
21076/* confdefs.h. */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h. */
21081
21082#include <sys/types.h>
21083#include <sys/ipc.h>
21084
21085
21086int
21087main ()
21088{
21089static struct ipc_perm ac_aggr;
21090if (ac_aggr.__key)
21091return 0;
21092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (ac_try="$ac_compile"
21098case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101esac
21102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103$as_echo "$ac_try_echo") >&5
21104 (eval "$ac_compile") 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest.$ac_objext; then
21114 ac_cv_member_struct_ipc_perm___key=yes
21115else
21116 $as_echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 cat >conftest.$ac_ext <<_ACEOF
21120/* confdefs.h. */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h. */
21125
21126#include <sys/types.h>
21127#include <sys/ipc.h>
21128
21129
21130int
21131main ()
21132{
21133static struct ipc_perm ac_aggr;
21134if (sizeof ac_aggr.__key)
21135return 0;
21136 ;
21137 return 0;
21138}
21139_ACEOF
21140rm -f conftest.$ac_objext
21141if { (ac_try="$ac_compile"
21142case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145esac
21146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21147$as_echo "$ac_try_echo") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest.$ac_objext; then
21158 ac_cv_member_struct_ipc_perm___key=yes
21159else
21160 $as_echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ac_cv_member_struct_ipc_perm___key=no
21164fi
21165
21166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167fi
21168
21169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170fi
21171{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
21172$as_echo "$ac_cv_member_struct_ipc_perm___key" >&6; }
21173if test $ac_cv_member_struct_ipc_perm___key = yes; then
21174
21175cat >>confdefs.h <<\_ACEOF
21176#define HAVE_IPC_PERM___KEY /**/
21177_ACEOF
21178
21179fi
21180
21181
21182{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
21183$as_echo_n "checking for struct ipc_perm._key... " >&6; }
21184if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
21185 $as_echo_n "(cached) " >&6
21186else
21187 cat >conftest.$ac_ext <<_ACEOF
21188/* confdefs.h. */
21189_ACEOF
21190cat confdefs.h >>conftest.$ac_ext
21191cat >>conftest.$ac_ext <<_ACEOF
21192/* end confdefs.h. */
21193
21194#include <sys/types.h>
21195#include <sys/ipc.h>
21196
21197
21198int
21199main ()
21200{
21201static struct ipc_perm ac_aggr;
21202if (ac_aggr._key)
21203return 0;
21204 ;
21205 return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
21209if { (ac_try="$ac_compile"
21210case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213esac
21214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21215$as_echo "$ac_try_echo") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21217 ac_status=$?
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_cv_member_struct_ipc_perm__key=yes
21227else
21228 $as_echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237
21238#include <sys/types.h>
21239#include <sys/ipc.h>
21240
21241
21242int
21243main ()
21244{
21245static struct ipc_perm ac_aggr;
21246if (sizeof ac_aggr._key)
21247return 0;
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21259$as_echo "$ac_try_echo") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_cv_member_struct_ipc_perm__key=yes
21271else
21272 $as_echo "$as_me: failed program was:" >&5
21273sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_cv_member_struct_ipc_perm__key=no
21276fi
21277
21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279fi
21280
21281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282fi
21283{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
21284$as_echo "$ac_cv_member_struct_ipc_perm__key" >&6; }
21285if test $ac_cv_member_struct_ipc_perm__key = yes; then
21286
21287cat >>confdefs.h <<\_ACEOF
21288#define HAVE_IPC_PERM__KEY /**/
21289_ACEOF
21290
21291fi
21292
21293
21294{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
21295$as_echo_n "checking for struct ipc_perm.__seq... " >&6; }
21296if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
21297 $as_echo_n "(cached) " >&6
21298else
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305
21306#include <sys/types.h>
21307#include <sys/ipc.h>
21308
21309
21310int
21311main ()
21312{
21313static struct ipc_perm ac_aggr;
21314if (ac_aggr.__seq)
21315return 0;
21316 ;
21317 return 0;
21318}
21319_ACEOF
21320rm -f conftest.$ac_objext
21321if { (ac_try="$ac_compile"
21322case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21325esac
21326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327$as_echo "$ac_try_echo") >&5
21328 (eval "$ac_compile") 2>conftest.er1
21329 ac_status=$?
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest.$ac_objext; then
21338 ac_cv_member_struct_ipc_perm___seq=yes
21339else
21340 $as_echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 cat >conftest.$ac_ext <<_ACEOF
21344/* confdefs.h. */
21345_ACEOF
21346cat confdefs.h >>conftest.$ac_ext
21347cat >>conftest.$ac_ext <<_ACEOF
21348/* end confdefs.h. */
21349
21350#include <sys/types.h>
21351#include <sys/ipc.h>
21352
21353
21354int
21355main ()
21356{
21357static struct ipc_perm ac_aggr;
21358if (sizeof ac_aggr.__seq)
21359return 0;
21360 ;
21361 return 0;
21362}
21363_ACEOF
21364rm -f conftest.$ac_objext
21365if { (ac_try="$ac_compile"
21366case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21369esac
21370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21371$as_echo "$ac_try_echo") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_member_struct_ipc_perm___seq=yes
21383else
21384 $as_echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_cv_member_struct_ipc_perm___seq=no
21388fi
21389
21390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391fi
21392
21393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394fi
21395{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
21396$as_echo "$ac_cv_member_struct_ipc_perm___seq" >&6; }
21397if test $ac_cv_member_struct_ipc_perm___seq = yes; then
21398
21399cat >>confdefs.h <<\_ACEOF
21400#define HAVE_IPC_PERM___SEQ /**/
21401_ACEOF
21402
21403fi
21404
21405
21406{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
21407$as_echo_n "checking for struct ipc_perm._seq... " >&6; }
21408if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
21409 $as_echo_n "(cached) " >&6
21410else
21411 cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h. */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h. */
21417
21418#include <sys/types.h>
21419#include <sys/ipc.h>
21420
21421
21422int
21423main ()
21424{
21425static struct ipc_perm ac_aggr;
21426if (ac_aggr._seq)
21427return 0;
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (ac_try="$ac_compile"
21434case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437esac
21438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21439$as_echo "$ac_try_echo") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_cv_member_struct_ipc_perm__seq=yes
21451else
21452 $as_echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 cat >conftest.$ac_ext <<_ACEOF
21456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461
21462#include <sys/types.h>
21463#include <sys/ipc.h>
21464
21465
21466int
21467main ()
21468{
21469static struct ipc_perm ac_aggr;
21470if (sizeof ac_aggr._seq)
21471return 0;
21472 ;
21473 return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
21477if { (ac_try="$ac_compile"
21478case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481esac
21482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483$as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 ac_cv_member_struct_ipc_perm__seq=yes
21495else
21496 $as_echo "$as_me: failed program was:" >&5
21497sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ac_cv_member_struct_ipc_perm__seq=no
21500fi
21501
21502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506fi
21507{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
21508$as_echo "$ac_cv_member_struct_ipc_perm__seq" >&6; }
21509if test $ac_cv_member_struct_ipc_perm__seq = yes; then
21510
21511cat >>confdefs.h <<\_ACEOF
21512#define HAVE_IPC_PERM__SEQ /**/
21513_ACEOF
21514
21515fi
21516
21517
21518{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21519$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21520if test "${ac_cv_header_time+set}" = set; then
21521 $as_echo_n "(cached) " >&6
21522else
21523 cat >conftest.$ac_ext <<_ACEOF
21524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
21529#include <sys/types.h>
21530#include <sys/time.h>
21531#include <time.h>
21532
21533int
21534main ()
21535{
21536if ((struct tm *) 0)
21537return 0;
21538 ;
21539 return 0;
21540}
21541_ACEOF
21542rm -f conftest.$ac_objext
21543if { (ac_try="$ac_compile"
21544case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21547esac
21548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21549$as_echo "$ac_try_echo") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_cv_header_time=yes
21561else
21562 $as_echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_header_time=no
21566fi
21567
21568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569fi
21570{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21571$as_echo "$ac_cv_header_time" >&6; }
21572if test $ac_cv_header_time = yes; then
21573
21574cat >>confdefs.h <<\_ACEOF
21575#define TIME_WITH_SYS_TIME 1
21576_ACEOF
21577
21578fi
21579
21580{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21581$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21582if test "${ac_cv_struct_tm+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21584else
21585 cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h. */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h. */
21591#include <sys/types.h>
21592#include <time.h>
21593
21594int
21595main ()
21596{
21597struct tm tm;
21598 int *p = &tm.tm_sec;
21599 return !p;
21600 ;
21601 return 0;
21602}
21603_ACEOF
21604rm -f conftest.$ac_objext
21605if { (ac_try="$ac_compile"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611$as_echo "$ac_try_echo") >&5
21612 (eval "$ac_compile") 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest.$ac_objext; then
21622 ac_cv_struct_tm=time.h
21623else
21624 $as_echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627 ac_cv_struct_tm=sys/time.h
21628fi
21629
21630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631fi
21632{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21633$as_echo "$ac_cv_struct_tm" >&6; }
21634if test $ac_cv_struct_tm = sys/time.h; then
21635
21636cat >>confdefs.h <<\_ACEOF
21637#define TM_IN_SYS_TIME 1
21638_ACEOF
21639
21640fi
21641
21642
21643# Checks for library functions.
21644
21645for ac_header in unistd.h
21646do
21647as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21650$as_echo_n "checking for $ac_header... " >&6; }
21651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21652 $as_echo_n "(cached) " >&6
21653fi
21654ac_res=`eval 'as_val=${'$as_ac_Header'}
21655 $as_echo "$as_val"'`
21656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21657$as_echo "$ac_res" >&6; }
21658else
21659 # Is the header compilable?
21660{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21661$as_echo_n "checking $ac_header usability... " >&6; }
21662cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668$ac_includes_default
21669#include <$ac_header>
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (ac_try="$ac_compile"
21673case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676esac
21677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21678$as_echo "$ac_try_echo") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21689 ac_header_compiler=yes
21690else
21691 $as_echo "$as_me: failed program was:" >&5
21692sed 's/^/| /' conftest.$ac_ext >&5
21693
21694 ac_header_compiler=no
21695fi
21696
21697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21699$as_echo "$ac_header_compiler" >&6; }
21700
21701# Is the header present?
21702{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21703$as_echo_n "checking $ac_header presence... " >&6; }
21704cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
21710#include <$ac_header>
21711_ACEOF
21712if { (ac_try="$ac_cpp conftest.$ac_ext"
21713case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716esac
21717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718$as_echo "$ac_try_echo") >&5
21719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null && {
21726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 }; then
21729 ac_header_preproc=yes
21730else
21731 $as_echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_header_preproc=no
21735fi
21736
21737rm -f conftest.err conftest.$ac_ext
21738{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21739$as_echo "$ac_header_preproc" >&6; }
21740
21741# So? What about this header?
21742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21743 yes:no: )
21744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21745$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21747$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21748 ac_header_preproc=yes
21749 ;;
21750 no:yes:* )
21751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21752$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21754$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21756$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21758$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21760$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21762$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21763 ( cat <<\_ASBOX
21764## ----------------------------------------------- ##
21765## Report this to trustedbsd-audit@TrustesdBSD.org ##
21766## ----------------------------------------------- ##
21767_ASBOX
21768 ) | sed "s/^/$as_me: WARNING: /" >&2
21769 ;;
21770esac
21771{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21772$as_echo_n "checking for $ac_header... " >&6; }
21773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 $as_echo_n "(cached) " >&6
21775else
21776 eval "$as_ac_Header=\$ac_header_preproc"
21777fi
21778ac_res=`eval 'as_val=${'$as_ac_Header'}
21779 $as_echo "$as_val"'`
21780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21781$as_echo "$ac_res" >&6; }
21782
21783fi
21784if test `eval 'as_val=${'$as_ac_Header'}
21785 $as_echo "$as_val"'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21788_ACEOF
21789
21790fi
21791
21792done
21793
21794{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
21795$as_echo_n "checking for working chown... " >&6; }
21796if test "${ac_cv_func_chown_works+set}" = set; then
21797 $as_echo_n "(cached) " >&6
21798else
21799 if test "$cross_compiling" = yes; then
21800 ac_cv_func_chown_works=no
21801else
21802 cat >conftest.$ac_ext <<_ACEOF
21803/* confdefs.h. */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h. */
21808$ac_includes_default
21809#include <fcntl.h>
21810
21811int
21812main ()
21813{
21814 char *f = "conftest.chown";
21815 struct stat before, after;
21816
21817 if (creat (f, 0600) < 0)
21818 return 1;
21819 if (stat (f, &before) < 0)
21820 return 1;
21821 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21822 return 1;
21823 if (stat (f, &after) < 0)
21824 return 1;
21825 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21826
21827 ;
21828 return 0;
21829}
21830_ACEOF
21831rm -f conftest$ac_exeext
21832if { (ac_try="$ac_link"
21833case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836esac
21837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838$as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>&5
21840 ac_status=$?
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21846esac
21847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21848$as_echo "$ac_try_echo") >&5
21849 (eval "$ac_try") 2>&5
21850 ac_status=$?
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_chown_works=yes
21854else
21855 $as_echo "$as_me: program exited with status $ac_status" >&5
21856$as_echo "$as_me: failed program was:" >&5
21857sed 's/^/| /' conftest.$ac_ext >&5
21858
21859( exit $ac_status )
21860ac_cv_func_chown_works=no
21861fi
21862rm -rf conftest.dSYM
21863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21864fi
21865
21866
21867rm -f conftest.chown
21868
21869fi
21870{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21871$as_echo "$ac_cv_func_chown_works" >&6; }
21872if test $ac_cv_func_chown_works = yes; then
21873
21874cat >>confdefs.h <<\_ACEOF
21875#define HAVE_CHOWN 1
21876_ACEOF
21877
21878fi
21879
21880
21881for ac_header in vfork.h
21882do
21883as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21886$as_echo_n "checking for $ac_header... " >&6; }
21887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 $as_echo_n "(cached) " >&6
21889fi
21890ac_res=`eval 'as_val=${'$as_ac_Header'}
21891 $as_echo "$as_val"'`
21892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21893$as_echo "$ac_res" >&6; }
21894else
21895 # Is the header compilable?
21896{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897$as_echo_n "checking $ac_header usability... " >&6; }
21898cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904$ac_includes_default
21905#include <$ac_header>
21906_ACEOF
21907rm -f conftest.$ac_objext
21908if { (ac_try="$ac_compile"
21909case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912esac
21913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914$as_echo "$ac_try_echo") >&5
21915 (eval "$ac_compile") 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
21925 ac_header_compiler=yes
21926else
21927 $as_echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 ac_header_compiler=no
21931fi
21932
21933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21935$as_echo "$ac_header_compiler" >&6; }
21936
21937# Is the header present?
21938{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21939$as_echo_n "checking $ac_header presence... " >&6; }
21940cat >conftest.$ac_ext <<_ACEOF
21941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
21946#include <$ac_header>
21947_ACEOF
21948if { (ac_try="$ac_cpp conftest.$ac_ext"
21949case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952esac
21953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21954$as_echo "$ac_try_echo") >&5
21955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21956 ac_status=$?
21957 grep -v '^ *+' conftest.er1 >conftest.err
21958 rm -f conftest.er1
21959 cat conftest.err >&5
21960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } >/dev/null && {
21962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21963 test ! -s conftest.err
21964 }; then
21965 ac_header_preproc=yes
21966else
21967 $as_echo "$as_me: failed program was:" >&5
21968sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ac_header_preproc=no
21971fi
21972
21973rm -f conftest.err conftest.$ac_ext
21974{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21975$as_echo "$ac_header_preproc" >&6; }
21976
21977# So? What about this header?
21978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21979 yes:no: )
21980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21981$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21983$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21984 ac_header_preproc=yes
21985 ;;
21986 no:yes:* )
21987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21988$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21990$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21992$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21994$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21996$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21998$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21999 ( cat <<\_ASBOX
22000## ----------------------------------------------- ##
22001## Report this to trustedbsd-audit@TrustesdBSD.org ##
22002## ----------------------------------------------- ##
22003_ASBOX
22004 ) | sed "s/^/$as_me: WARNING: /" >&2
22005 ;;
22006esac
22007{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22008$as_echo_n "checking for $ac_header... " >&6; }
22009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22010 $as_echo_n "(cached) " >&6
22011else
22012 eval "$as_ac_Header=\$ac_header_preproc"
22013fi
22014ac_res=`eval 'as_val=${'$as_ac_Header'}
22015 $as_echo "$as_val"'`
22016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22017$as_echo "$ac_res" >&6; }
22018
22019fi
22020if test `eval 'as_val=${'$as_ac_Header'}
22021 $as_echo "$as_val"'` = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22024_ACEOF
22025
22026fi
22027
22028done
22029
22030
22031
22032for ac_func in fork vfork
22033do
22034as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22035{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22036$as_echo_n "checking for $ac_func... " >&6; }
22037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22038 $as_echo_n "(cached) " >&6
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22048#define $ac_func innocuous_$ac_func
22049
22050/* System header to define __stub macros and hopefully few prototypes,
22051 which can conflict with char $ac_func (); below.
22052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22053 <limits.h> exists even on freestanding compilers. */
22054
22055#ifdef __STDC__
22056# include <limits.h>
22057#else
22058# include <assert.h>
22059#endif
22060
22061#undef $ac_func
22062
22063/* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22066#ifdef __cplusplus
22067extern "C"
22068#endif
22069char $ac_func ();
22070/* The GNU C library defines this for functions which it implements
22071 to always fail with ENOSYS. Some functions are actually named
22072 something starting with __ and the normal name is an alias. */
22073#if defined __stub_$ac_func || defined __stub___$ac_func
22074choke me
22075#endif
22076
22077int
22078main ()
22079{
22080return $ac_func ();
22081 ;
22082 return 0;
22083}
22084_ACEOF
22085rm -f conftest.$ac_objext conftest$ac_exeext
22086if { (ac_try="$ac_link"
22087case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090esac
22091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22092$as_echo "$ac_try_echo") >&5
22093 (eval "$ac_link") 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && {
22100 test -z "$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 } && test -s conftest$ac_exeext && {
22103 test "$cross_compiling" = yes ||
22104 $as_test_x conftest$ac_exeext
22105 }; then
22106 eval "$as_ac_var=yes"
22107else
22108 $as_echo "$as_me: failed program was:" >&5
22109sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 eval "$as_ac_var=no"
22112fi
22113
22114rm -rf conftest.dSYM
22115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22116 conftest$ac_exeext conftest.$ac_ext
22117fi
22118ac_res=`eval 'as_val=${'$as_ac_var'}
22119 $as_echo "$as_val"'`
22120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22121$as_echo "$ac_res" >&6; }
22122if test `eval 'as_val=${'$as_ac_var'}
22123 $as_echo "$as_val"'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22126_ACEOF
22127
22128fi
22129done
22130
22131if test "x$ac_cv_func_fork" = xyes; then
22132 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
22133$as_echo_n "checking for working fork... " >&6; }
22134if test "${ac_cv_func_fork_works+set}" = set; then
22135 $as_echo_n "(cached) " >&6
22136else
22137 if test "$cross_compiling" = yes; then
22138 ac_cv_func_fork_works=cross
22139else
22140 cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146$ac_includes_default
22147int
22148main ()
22149{
22150
22151 /* By Ruediger Kuhlmann. */
22152 return fork () < 0;
22153
22154 ;
22155 return 0;
22156}
22157_ACEOF
22158rm -f conftest$ac_exeext
22159if { (ac_try="$ac_link"
22160case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163esac
22164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22165$as_echo "$ac_try_echo") >&5
22166 (eval "$ac_link") 2>&5
22167 ac_status=$?
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170 { (case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173esac
22174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22175$as_echo "$ac_try_echo") >&5
22176 (eval "$ac_try") 2>&5
22177 ac_status=$?
22178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_cv_func_fork_works=yes
22181else
22182 $as_echo "$as_me: program exited with status $ac_status" >&5
22183$as_echo "$as_me: failed program was:" >&5
22184sed 's/^/| /' conftest.$ac_ext >&5
22185
22186( exit $ac_status )
22187ac_cv_func_fork_works=no
22188fi
22189rm -rf conftest.dSYM
22190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191fi
22192
22193
22194fi
22195{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22196$as_echo "$ac_cv_func_fork_works" >&6; }
22197
22198else
22199 ac_cv_func_fork_works=$ac_cv_func_fork
22200fi
22201if test "x$ac_cv_func_fork_works" = xcross; then
22202 case $host in
22203 *-*-amigaos* | *-*-msdosdjgpp*)
22204 # Override, as these systems have only a dummy fork() stub
22205 ac_cv_func_fork_works=no
22206 ;;
22207 *)
22208 ac_cv_func_fork_works=yes
22209 ;;
22210 esac
22211 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22212$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22213fi
22214ac_cv_func_vfork_works=$ac_cv_func_vfork
22215if test "x$ac_cv_func_vfork" = xyes; then
22216 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
22217$as_echo_n "checking for working vfork... " >&6; }
22218if test "${ac_cv_func_vfork_works+set}" = set; then
22219 $as_echo_n "(cached) " >&6
22220else
22221 if test "$cross_compiling" = yes; then
22222 ac_cv_func_vfork_works=cross
22223else
22224 cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
22230/* Thanks to Paul Eggert for this test. */
22231$ac_includes_default
22232#include <sys/wait.h>
22233#ifdef HAVE_VFORK_H
22234# include <vfork.h>
22235#endif
22236/* On some sparc systems, changes by the child to local and incoming
22237 argument registers are propagated back to the parent. The compiler
22238 is told about this with #include <vfork.h>, but some compilers
22239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22240 static variable whose address is put into a register that is
22241 clobbered by the vfork. */
22242static void
22243#ifdef __cplusplus
22244sparc_address_test (int arg)
22245# else
22246sparc_address_test (arg) int arg;
22247#endif
22248{
22249 static pid_t child;
22250 if (!child) {
22251 child = vfork ();
22252 if (child < 0) {
22253 perror ("vfork");
22254 _exit(2);
22255 }
22256 if (!child) {
22257 arg = getpid();
22258 write(-1, "", 0);
22259 _exit (arg);
22260 }
22261 }
22262}
22263
22264int
22265main ()
22266{
22267 pid_t parent = getpid ();
22268 pid_t child;
22269
22270 sparc_address_test (0);
22271
22272 child = vfork ();
22273
22274 if (child == 0) {
22275 /* Here is another test for sparc vfork register problems. This
22276 test uses lots of local variables, at least as many local
22277 variables as main has allocated so far including compiler
22278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22280 reuse the register of parent for one of the local variables,
22281 since it will think that parent can't possibly be used any more
22282 in this routine. Assigning to the local variable will thus
22283 munge parent in the parent process. */
22284 pid_t
22285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22287 /* Convince the compiler that p..p7 are live; otherwise, it might
22288 use the same hardware register for all 8 local variables. */
22289 if (p != p1 || p != p2 || p != p3 || p != p4
22290 || p != p5 || p != p6 || p != p7)
22291 _exit(1);
22292
22293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22294 from child file descriptors. If the child closes a descriptor
22295 before it execs or exits, this munges the parent's descriptor
22296 as well. Test for this by closing stdout in the child. */
22297 _exit(close(fileno(stdout)) != 0);
22298 } else {
22299 int status;
22300 struct stat st;
22301
22302 while (wait(&status) != child)
22303 ;
22304 return (
22305 /* Was there some problem with vforking? */
22306 child < 0
22307
22308 /* Did the child fail? (This shouldn't happen.) */
22309 || status
22310
22311 /* Did the vfork/compiler bug occur? */
22312 || parent != getpid()
22313
22314 /* Did the file descriptor bug occur? */
22315 || fstat(fileno(stdout), &st) != 0
22316 );
22317 }
22318}
22319_ACEOF
22320rm -f conftest$ac_exeext
22321if { (ac_try="$ac_link"
22322case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325esac
22326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327$as_echo "$ac_try_echo") >&5
22328 (eval "$ac_link") 2>&5
22329 ac_status=$?
22330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22332 { (case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335esac
22336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337$as_echo "$ac_try_echo") >&5
22338 (eval "$ac_try") 2>&5
22339 ac_status=$?
22340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_func_vfork_works=yes
22343else
22344 $as_echo "$as_me: program exited with status $ac_status" >&5
22345$as_echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348( exit $ac_status )
22349ac_cv_func_vfork_works=no
22350fi
22351rm -rf conftest.dSYM
22352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22353fi
22354
22355
22356fi
22357{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22358$as_echo "$ac_cv_func_vfork_works" >&6; }
22359
22360fi;
22361if test "x$ac_cv_func_fork_works" = xcross; then
22362 ac_cv_func_vfork_works=$ac_cv_func_vfork
22363 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22364$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22365fi
22366
22367if test "x$ac_cv_func_vfork_works" = xyes; then
22368
22369cat >>confdefs.h <<\_ACEOF
22370#define HAVE_WORKING_VFORK 1
22371_ACEOF
22372
22373else
22374
22375cat >>confdefs.h <<\_ACEOF
22376#define vfork fork
22377_ACEOF
22378
22379fi
22380if test "x$ac_cv_func_fork_works" = xyes; then
22381
22382cat >>confdefs.h <<\_ACEOF
22383#define HAVE_WORKING_FORK 1
22384_ACEOF
22385
22386fi
22387
22388
22389for ac_header in stdlib.h
22390do
22391as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22394$as_echo_n "checking for $ac_header... " >&6; }
22395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22396 $as_echo_n "(cached) " >&6
22397fi
22398ac_res=`eval 'as_val=${'$as_ac_Header'}
22399 $as_echo "$as_val"'`
22400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22401$as_echo "$ac_res" >&6; }
22402else
22403 # Is the header compilable?
22404{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22405$as_echo_n "checking $ac_header usability... " >&6; }
22406cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h. */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
22411/* end confdefs.h. */
22412$ac_includes_default
22413#include <$ac_header>
22414_ACEOF
22415rm -f conftest.$ac_objext
22416if { (ac_try="$ac_compile"
22417case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420esac
22421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422$as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_header_compiler=yes
22434else
22435 $as_echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_header_compiler=no
22439fi
22440
22441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22443$as_echo "$ac_header_compiler" >&6; }
22444
22445# Is the header present?
22446{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22447$as_echo_n "checking $ac_header presence... " >&6; }
22448cat >conftest.$ac_ext <<_ACEOF
22449/* confdefs.h. */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h. */
22454#include <$ac_header>
22455_ACEOF
22456if { (ac_try="$ac_cpp conftest.$ac_ext"
22457case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460esac
22461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22462$as_echo "$ac_try_echo") >&5
22463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } >/dev/null && {
22470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22472 }; then
22473 ac_header_preproc=yes
22474else
22475 $as_echo "$as_me: failed program was:" >&5
22476sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ac_header_preproc=no
22479fi
22480
22481rm -f conftest.err conftest.$ac_ext
22482{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22483$as_echo "$ac_header_preproc" >&6; }
22484
22485# So? What about this header?
22486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22487 yes:no: )
22488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22489$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22491$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22492 ac_header_preproc=yes
22493 ;;
22494 no:yes:* )
22495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22496$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22498$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22500$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22502$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22504$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22506$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22507 ( cat <<\_ASBOX
22508## ----------------------------------------------- ##
22509## Report this to trustedbsd-audit@TrustesdBSD.org ##
22510## ----------------------------------------------- ##
22511_ASBOX
22512 ) | sed "s/^/$as_me: WARNING: /" >&2
22513 ;;
22514esac
22515{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22516$as_echo_n "checking for $ac_header... " >&6; }
22517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22518 $as_echo_n "(cached) " >&6
22519else
22520 eval "$as_ac_Header=\$ac_header_preproc"
22521fi
22522ac_res=`eval 'as_val=${'$as_ac_Header'}
22523 $as_echo "$as_val"'`
22524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22525$as_echo "$ac_res" >&6; }
22526
22527fi
22528if test `eval 'as_val=${'$as_ac_Header'}
22529 $as_echo "$as_val"'` = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22532_ACEOF
22533
22534fi
22535
22536done
22537
22538{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22539$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22540if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22541 $as_echo_n "(cached) " >&6
22542else
22543 if test "$cross_compiling" = yes; then
22544 ac_cv_func_malloc_0_nonnull=no
22545else
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22553# include <stdlib.h>
22554#else
22555char *malloc ();
22556#endif
22557
22558int
22559main ()
22560{
22561return ! malloc (0);
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566rm -f conftest$ac_exeext
22567if { (ac_try="$ac_link"
22568case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571esac
22572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573$as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581esac
22582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22583$as_echo "$ac_try_echo") >&5
22584 (eval "$ac_try") 2>&5
22585 ac_status=$?
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_cv_func_malloc_0_nonnull=yes
22589else
22590 $as_echo "$as_me: program exited with status $ac_status" >&5
22591$as_echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594( exit $ac_status )
22595ac_cv_func_malloc_0_nonnull=no
22596fi
22597rm -rf conftest.dSYM
22598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599fi
22600
22601
22602fi
22603{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22604$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22605if test $ac_cv_func_malloc_0_nonnull = yes; then
22606
22607cat >>confdefs.h <<\_ACEOF
22608#define HAVE_MALLOC 1
22609_ACEOF
22610
22611else
22612 cat >>confdefs.h <<\_ACEOF
22613#define HAVE_MALLOC 0
22614_ACEOF
22615
22616 case " $LIBOBJS " in
22617 *" malloc.$ac_objext "* ) ;;
22618 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22619 ;;
22620esac
22621
22622
22623cat >>confdefs.h <<\_ACEOF
22624#define malloc rpl_malloc
22625_ACEOF
22626
22627fi
22628
22629
22630
22631
22632
22633
22634
22635for ac_header in $ac_header_list
22636do
22637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22640$as_echo_n "checking for $ac_header... " >&6; }
22641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22642 $as_echo_n "(cached) " >&6
22643fi
22644ac_res=`eval 'as_val=${'$as_ac_Header'}
22645 $as_echo "$as_val"'`
22646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22647$as_echo "$ac_res" >&6; }
22648else
22649 # Is the header compilable?
22650{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22651$as_echo_n "checking $ac_header usability... " >&6; }
22652cat >conftest.$ac_ext <<_ACEOF
22653/* confdefs.h. */
22654_ACEOF
22655cat confdefs.h >>conftest.$ac_ext
22656cat >>conftest.$ac_ext <<_ACEOF
22657/* end confdefs.h. */
22658$ac_includes_default
22659#include <$ac_header>
22660_ACEOF
22661rm -f conftest.$ac_objext
22662if { (ac_try="$ac_compile"
22663case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666esac
22667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668$as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_header_compiler=yes
22680else
22681 $as_echo "$as_me: failed program was:" >&5
22682sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 ac_header_compiler=no
22685fi
22686
22687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22689$as_echo "$ac_header_compiler" >&6; }
22690
22691# Is the header present?
22692{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22693$as_echo_n "checking $ac_header presence... " >&6; }
22694cat >conftest.$ac_ext <<_ACEOF
22695/* confdefs.h. */
22696_ACEOF
22697cat confdefs.h >>conftest.$ac_ext
22698cat >>conftest.$ac_ext <<_ACEOF
22699/* end confdefs.h. */
22700#include <$ac_header>
22701_ACEOF
22702if { (ac_try="$ac_cpp conftest.$ac_ext"
22703case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706esac
22707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22708$as_echo "$ac_try_echo") >&5
22709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } >/dev/null && {
22716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22718 }; then
22719 ac_header_preproc=yes
22720else
22721 $as_echo "$as_me: failed program was:" >&5
22722sed 's/^/| /' conftest.$ac_ext >&5
22723
22724 ac_header_preproc=no
22725fi
22726
22727rm -f conftest.err conftest.$ac_ext
22728{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22729$as_echo "$ac_header_preproc" >&6; }
22730
22731# So? What about this header?
22732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22733 yes:no: )
22734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22735$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22737$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22738 ac_header_preproc=yes
22739 ;;
22740 no:yes:* )
22741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22742$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22744$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22746$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22748$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22750$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22752$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22753 ( cat <<\_ASBOX
22754## ----------------------------------------------- ##
22755## Report this to trustedbsd-audit@TrustesdBSD.org ##
22756## ----------------------------------------------- ##
22757_ASBOX
22758 ) | sed "s/^/$as_me: WARNING: /" >&2
22759 ;;
22760esac
22761{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22762$as_echo_n "checking for $ac_header... " >&6; }
22763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22764 $as_echo_n "(cached) " >&6
22765else
22766 eval "$as_ac_Header=\$ac_header_preproc"
22767fi
22768ac_res=`eval 'as_val=${'$as_ac_Header'}
22769 $as_echo "$as_val"'`
22770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22771$as_echo "$ac_res" >&6; }
22772
22773fi
22774if test `eval 'as_val=${'$as_ac_Header'}
22775 $as_echo "$as_val"'` = yes; then
22776 cat >>confdefs.h <<_ACEOF
22777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22778_ACEOF
22779
22780fi
22781
22782done
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792for ac_func in $ac_func_list
22793do
22794as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22795{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22796$as_echo_n "checking for $ac_func... " >&6; }
22797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22798 $as_echo_n "(cached) " >&6
22799else
22800 cat >conftest.$ac_ext <<_ACEOF
22801/* confdefs.h. */
22802_ACEOF
22803cat confdefs.h >>conftest.$ac_ext
22804cat >>conftest.$ac_ext <<_ACEOF
22805/* end confdefs.h. */
22806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22808#define $ac_func innocuous_$ac_func
22809
22810/* System header to define __stub macros and hopefully few prototypes,
22811 which can conflict with char $ac_func (); below.
22812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22813 <limits.h> exists even on freestanding compilers. */
22814
22815#ifdef __STDC__
22816# include <limits.h>
22817#else
22818# include <assert.h>
22819#endif
22820
22821#undef $ac_func
22822
22823/* Override any GCC internal prototype to avoid an error.
22824 Use char because int might match the return type of a GCC
22825 builtin and then its argument prototype would still apply. */
22826#ifdef __cplusplus
22827extern "C"
22828#endif
22829char $ac_func ();
22830/* The GNU C library defines this for functions which it implements
22831 to always fail with ENOSYS. Some functions are actually named
22832 something starting with __ and the normal name is an alias. */
22833#if defined __stub_$ac_func || defined __stub___$ac_func
22834choke me
22835#endif
22836
22837int
22838main ()
22839{
22840return $ac_func ();
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845rm -f conftest.$ac_objext conftest$ac_exeext
22846if { (ac_try="$ac_link"
22847case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850esac
22851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22852$as_echo "$ac_try_echo") >&5
22853 (eval "$ac_link") 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext && {
22863 test "$cross_compiling" = yes ||
22864 $as_test_x conftest$ac_exeext
22865 }; then
22866 eval "$as_ac_var=yes"
22867else
22868 $as_echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 eval "$as_ac_var=no"
22872fi
22873
22874rm -rf conftest.dSYM
22875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22876 conftest$ac_exeext conftest.$ac_ext
22877fi
22878ac_res=`eval 'as_val=${'$as_ac_var'}
22879 $as_echo "$as_val"'`
22880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22881$as_echo "$ac_res" >&6; }
22882if test `eval 'as_val=${'$as_ac_var'}
22883 $as_echo "$as_val"'` = yes; then
22884 cat >>confdefs.h <<_ACEOF
22885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22886_ACEOF
22887
22888fi
22889done
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
22908$as_echo_n "checking for working mktime... " >&6; }
22909if test "${ac_cv_func_working_mktime+set}" = set; then
22910 $as_echo_n "(cached) " >&6
22911else
22912 if test "$cross_compiling" = yes; then
22913 ac_cv_func_working_mktime=no
22914else
22915 cat >conftest.$ac_ext <<_ACEOF
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921/* Test program from Paul Eggert and Tony Leneis. */
22922#ifdef TIME_WITH_SYS_TIME
22923# include <sys/time.h>
22924# include <time.h>
22925#else
22926# ifdef HAVE_SYS_TIME_H
22927# include <sys/time.h>
22928# else
22929# include <time.h>
22930# endif
22931#endif
22932
22933#include <limits.h>
22934#include <stdlib.h>
22935
22936#ifdef HAVE_UNISTD_H
22937# include <unistd.h>
22938#endif
22939
22940#ifndef HAVE_ALARM
22941# define alarm(X) /* empty */
22942#endif
22943
22944/* Work around redefinition to rpl_putenv by other config tests. */
22945#undef putenv
22946
22947static time_t time_t_max;
22948static time_t time_t_min;
22949
22950/* Values we'll use to set the TZ environment variable. */
22951static char *tz_strings[] = {
22952 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22953 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22954};
22955#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22956
22957/* Return 0 if mktime fails to convert a date in the spring-forward gap.
22958 Based on a problem report from Andreas Jaeger. */
22959static int
22960spring_forward_gap ()
22961{
22962 /* glibc (up to about 1998-10-07) failed this test. */
22963 struct tm tm;
22964
22965 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22966 instead of "TZ=America/Vancouver" in order to detect the bug even
22967 on systems that don't support the Olson extension, or don't have the
22968 full zoneinfo tables installed. */
22969 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22970
22971 tm.tm_year = 98;
22972 tm.tm_mon = 3;
22973 tm.tm_mday = 5;
22974 tm.tm_hour = 2;
22975 tm.tm_min = 0;
22976 tm.tm_sec = 0;
22977 tm.tm_isdst = -1;
22978 return mktime (&tm) != (time_t) -1;
22979}
22980
22981static int
22982mktime_test1 (now)
22983 time_t now;
22984{
22985 struct tm *lt;
22986 return ! (lt = localtime (&now)) || mktime (lt) == now;
22987}
22988
22989static int
22990mktime_test (now)
22991 time_t now;
22992{
22993 return (mktime_test1 (now)
22994 && mktime_test1 ((time_t) (time_t_max - now))
22995 && mktime_test1 ((time_t) (time_t_min + now)));
22996}
22997
22998static int
22999irix_6_4_bug ()
23000{
23001 /* Based on code from Ariel Faigon. */
23002 struct tm tm;
23003 tm.tm_year = 96;
23004 tm.tm_mon = 3;
23005 tm.tm_mday = 0;
23006 tm.tm_hour = 0;
23007 tm.tm_min = 0;
23008 tm.tm_sec = 0;
23009 tm.tm_isdst = -1;
23010 mktime (&tm);
23011 return tm.tm_mon == 2 && tm.tm_mday == 31;
23012}
23013
23014static int
23015bigtime_test (j)
23016 int j;
23017{
23018 struct tm tm;
23019 time_t now;
23020 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23021 now = mktime (&tm);
23022 if (now != (time_t) -1)
23023 {
23024 struct tm *lt = localtime (&now);
23025 if (! (lt
23026 && lt->tm_year == tm.tm_year
23027 && lt->tm_mon == tm.tm_mon
23028 && lt->tm_mday == tm.tm_mday
23029 && lt->tm_hour == tm.tm_hour
23030 && lt->tm_min == tm.tm_min
23031 && lt->tm_sec == tm.tm_sec
23032 && lt->tm_yday == tm.tm_yday
23033 && lt->tm_wday == tm.tm_wday
23034 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23035 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23036 return 0;
23037 }
23038 return 1;
23039}
23040
23041static int
23042year_2050_test ()
23043{
23044 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23045 ignoring leap seconds. */
23046 unsigned long int answer = 2527315200UL;
23047
23048 struct tm tm;
23049 time_t t;
23050 tm.tm_year = 2050 - 1900;
23051 tm.tm_mon = 2 - 1;
23052 tm.tm_mday = 1;
23053 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23054 tm.tm_isdst = -1;
23055
23056 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23057 instead of "TZ=America/Vancouver" in order to detect the bug even
23058 on systems that don't support the Olson extension, or don't have the
23059 full zoneinfo tables installed. */
23060 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23061
23062 t = mktime (&tm);
23063
23064 /* Check that the result is either a failure, or close enough
23065 to the correct answer that we can assume the discrepancy is
23066 due to leap seconds. */
23067 return (t == (time_t) -1
23068 || (0 < t && answer - 120 <= t && t <= answer + 120));
23069}
23070
23071int
23072main ()
23073{
23074 time_t t, delta;
23075 int i, j;
23076
23077 /* This test makes some buggy mktime implementations loop.
23078 Give up after 60 seconds; a mktime slower than that
23079 isn't worth using anyway. */
23080 alarm (60);
23081
23082 for (;;)
23083 {
23084 t = (time_t_max << 1) + 1;
23085 if (t <= time_t_max)
23086 break;
23087 time_t_max = t;
23088 }
23089 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
23090
23091 delta = time_t_max / 997; /* a suitable prime number */
23092 for (i = 0; i < N_STRINGS; i++)
23093 {
23094 if (tz_strings[i])
23095 putenv (tz_strings[i]);
23096
23097 for (t = 0; t <= time_t_max - delta; t += delta)
23098 if (! mktime_test (t))
23099 return 1;
23100 if (! (mktime_test ((time_t) 1)
23101 && mktime_test ((time_t) (60 * 60))
23102 && mktime_test ((time_t) (60 * 60 * 24))))
23103 return 1;
23104
23105 for (j = 1; ; j <<= 1)
23106 if (! bigtime_test (j))
23107 return 1;
23108 else if (INT_MAX / 2 < j)
23109 break;
23110 if (! bigtime_test (INT_MAX))
23111 return 1;
23112 }
23113 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
23114}
23115_ACEOF
23116rm -f conftest$ac_exeext
23117if { (ac_try="$ac_link"
23118case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23121esac
23122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123$as_echo "$ac_try_echo") >&5
23124 (eval "$ac_link") 2>&5
23125 ac_status=$?
23126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23128 { (case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131esac
23132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23133$as_echo "$ac_try_echo") >&5
23134 (eval "$ac_try") 2>&5
23135 ac_status=$?
23136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_func_working_mktime=yes
23139else
23140 $as_echo "$as_me: program exited with status $ac_status" >&5
23141$as_echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
23144( exit $ac_status )
23145ac_cv_func_working_mktime=no
23146fi
23147rm -rf conftest.dSYM
23148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23149fi
23150
23151
23152fi
23153{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
23154$as_echo "$ac_cv_func_working_mktime" >&6; }
23155if test $ac_cv_func_working_mktime = no; then
23156 case " $LIBOBJS " in
23157 *" mktime.$ac_objext "* ) ;;
23158 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
23159 ;;
23160esac
23161
23162fi
23163
23164{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23165$as_echo_n "checking return type of signal handlers... " >&6; }
23166if test "${ac_cv_type_signal+set}" = set; then
23167 $as_echo_n "(cached) " >&6
23168else
23169 cat >conftest.$ac_ext <<_ACEOF
23170/* confdefs.h. */
23171_ACEOF
23172cat confdefs.h >>conftest.$ac_ext
23173cat >>conftest.$ac_ext <<_ACEOF
23174/* end confdefs.h. */
23175#include <sys/types.h>
23176#include <signal.h>
23177
23178int
23179main ()
23180{
23181return *(signal (0, 0)) (0) == 1;
23182 ;
23183 return 0;
23184}
23185_ACEOF
23186rm -f conftest.$ac_objext
23187if { (ac_try="$ac_compile"
23188case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23191esac
23192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193$as_echo "$ac_try_echo") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_cv_type_signal=int
23205else
23206 $as_echo "$as_me: failed program was:" >&5
23207sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 ac_cv_type_signal=void
23210fi
23211
23212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213fi
23214{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23215$as_echo "$ac_cv_type_signal" >&6; }
23216
23217cat >>confdefs.h <<_ACEOF
23218#define RETSIGTYPE $ac_cv_type_signal
23219_ACEOF
23220
23221
23222{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23223$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
23224if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23225 $as_echo_n "(cached) " >&6
23226else
23227 rm -f conftest.sym conftest.file
23228echo >conftest.file
23229if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23230 if test "$cross_compiling" = yes; then
23231 ac_cv_func_lstat_dereferences_slashed_symlink=no
23232else
23233 cat >conftest.$ac_ext <<_ACEOF
23234/* confdefs.h. */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h. */
23239$ac_includes_default
23240int
23241main ()
23242{
23243struct stat sbuf;
23244 /* Linux will dereference the symlink and fail.
23245 That is better in the sense that it means we will not
23246 have to compile and use the lstat wrapper. */
23247 return lstat ("conftest.sym/", &sbuf) == 0;
23248 ;
23249 return 0;
23250}
23251_ACEOF
23252rm -f conftest$ac_exeext
23253if { (ac_try="$ac_link"
23254case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257esac
23258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259$as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267esac
23268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23269$as_echo "$ac_try_echo") >&5
23270 (eval "$ac_try") 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23275else
23276 $as_echo "$as_me: program exited with status $ac_status" >&5
23277$as_echo "$as_me: failed program was:" >&5
23278sed 's/^/| /' conftest.$ac_ext >&5
23279
23280( exit $ac_status )
23281ac_cv_func_lstat_dereferences_slashed_symlink=no
23282fi
23283rm -rf conftest.dSYM
23284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23285fi
23286
23287
23288else
23289 # If the `ln -s' command failed, then we probably don't even
23290 # have an lstat function.
23291 ac_cv_func_lstat_dereferences_slashed_symlink=no
23292fi
23293rm -f conftest.sym conftest.file
23294
23295fi
23296{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23297$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23298
23299test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23300
23301cat >>confdefs.h <<_ACEOF
23302#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23303_ACEOF
23304
23305
23306if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23307 case " $LIBOBJS " in
23308 *" lstat.$ac_objext "* ) ;;
23309 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
23310 ;;
23311esac
23312
23313fi
23314
23315{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23316$as_echo_n "checking whether stat accepts an empty string... " >&6; }
23317if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23318 $as_echo_n "(cached) " >&6
23319else
23320 if test "$cross_compiling" = yes; then
23321 ac_cv_func_stat_empty_string_bug=yes
23322else
23323 cat >conftest.$ac_ext <<_ACEOF
23324/* confdefs.h. */
23325_ACEOF
23326cat confdefs.h >>conftest.$ac_ext
23327cat >>conftest.$ac_ext <<_ACEOF
23328/* end confdefs.h. */
23329$ac_includes_default
23330int
23331main ()
23332{
23333struct stat sbuf;
23334 return stat ("", &sbuf) == 0;
23335 ;
23336 return 0;
23337}
23338_ACEOF
23339rm -f conftest$ac_exeext
23340if { (ac_try="$ac_link"
23341case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23344esac
23345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346$as_echo "$ac_try_echo") >&5
23347 (eval "$ac_link") 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23351 { (case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23354esac
23355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23356$as_echo "$ac_try_echo") >&5
23357 (eval "$ac_try") 2>&5
23358 ac_status=$?
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 ac_cv_func_stat_empty_string_bug=no
23362else
23363 $as_echo "$as_me: program exited with status $ac_status" >&5
23364$as_echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367( exit $ac_status )
23368ac_cv_func_stat_empty_string_bug=yes
23369fi
23370rm -rf conftest.dSYM
23371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23372fi
23373
23374
23375fi
23376{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23377$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
23378if test $ac_cv_func_stat_empty_string_bug = yes; then
23379 case " $LIBOBJS " in
23380 *" stat.$ac_objext "* ) ;;
23381 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
23382 ;;
23383esac
23384
23385
23386cat >>confdefs.h <<_ACEOF
23387#define HAVE_STAT_EMPTY_STRING_BUG 1
23388_ACEOF
23389
23390fi
23391
23392
23393for ac_func in strftime
23394do
23395as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23396{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23397$as_echo_n "checking for $ac_func... " >&6; }
23398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23399 $as_echo_n "(cached) " >&6
23400else
23401 cat >conftest.$ac_ext <<_ACEOF
23402/* confdefs.h. */
23403_ACEOF
23404cat confdefs.h >>conftest.$ac_ext
23405cat >>conftest.$ac_ext <<_ACEOF
23406/* end confdefs.h. */
23407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23409#define $ac_func innocuous_$ac_func
23410
23411/* System header to define __stub macros and hopefully few prototypes,
23412 which can conflict with char $ac_func (); below.
23413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23414 <limits.h> exists even on freestanding compilers. */
23415
23416#ifdef __STDC__
23417# include <limits.h>
23418#else
23419# include <assert.h>
23420#endif
23421
23422#undef $ac_func
23423
23424/* Override any GCC internal prototype to avoid an error.
23425 Use char because int might match the return type of a GCC
23426 builtin and then its argument prototype would still apply. */
23427#ifdef __cplusplus
23428extern "C"
23429#endif
23430char $ac_func ();
23431/* The GNU C library defines this for functions which it implements
23432 to always fail with ENOSYS. Some functions are actually named
23433 something starting with __ and the normal name is an alias. */
23434#if defined __stub_$ac_func || defined __stub___$ac_func
23435choke me
23436#endif
23437
23438int
23439main ()
23440{
23441return $ac_func ();
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext conftest$ac_exeext
23447if { (ac_try="$ac_link"
23448case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451esac
23452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23453$as_echo "$ac_try_echo") >&5
23454 (eval "$ac_link") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext && {
23464 test "$cross_compiling" = yes ||
23465 $as_test_x conftest$ac_exeext
23466 }; then
23467 eval "$as_ac_var=yes"
23468else
23469 $as_echo "$as_me: failed program was:" >&5
23470sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 eval "$as_ac_var=no"
23473fi
23474
23475rm -rf conftest.dSYM
23476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23477 conftest$ac_exeext conftest.$ac_ext
23478fi
23479ac_res=`eval 'as_val=${'$as_ac_var'}
23480 $as_echo "$as_val"'`
23481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23482$as_echo "$ac_res" >&6; }
23483if test `eval 'as_val=${'$as_ac_var'}
23484 $as_echo "$as_val"'` = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23487_ACEOF
23488
23489else
23490 # strftime is in -lintl on SCO UNIX.
23491{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23492$as_echo_n "checking for strftime in -lintl... " >&6; }
23493if test "${ac_cv_lib_intl_strftime+set}" = set; then
23494 $as_echo_n "(cached) " >&6
23495else
23496 ac_check_lib_save_LIBS=$LIBS
23497LIBS="-lintl $LIBS"
23498cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504
23505/* Override any GCC internal prototype to avoid an error.
23506 Use char because int might match the return type of a GCC
23507 builtin and then its argument prototype would still apply. */
23508#ifdef __cplusplus
23509extern "C"
23510#endif
23511char strftime ();
23512int
23513main ()
23514{
23515return strftime ();
23516 ;
23517 return 0;
23518}
23519_ACEOF
23520rm -f conftest.$ac_objext conftest$ac_exeext
23521if { (ac_try="$ac_link"
23522case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23525esac
23526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23527$as_echo "$ac_try_echo") >&5
23528 (eval "$ac_link") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest$ac_exeext && {
23538 test "$cross_compiling" = yes ||
23539 $as_test_x conftest$ac_exeext
23540 }; then
23541 ac_cv_lib_intl_strftime=yes
23542else
23543 $as_echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546 ac_cv_lib_intl_strftime=no
23547fi
23548
23549rm -rf conftest.dSYM
23550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23551 conftest$ac_exeext conftest.$ac_ext
23552LIBS=$ac_check_lib_save_LIBS
23553fi
23554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23555$as_echo "$ac_cv_lib_intl_strftime" >&6; }
23556if test $ac_cv_lib_intl_strftime = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558#define HAVE_STRFTIME 1
23559_ACEOF
23560
23561LIBS="-lintl $LIBS"
23562fi
23563
23564fi
23565done
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
23583do
23584as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23585{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23586$as_echo_n "checking for $ac_func... " >&6; }
23587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23588 $as_echo_n "(cached) " >&6
23589else
23590 cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23598#define $ac_func innocuous_$ac_func
23599
23600/* System header to define __stub macros and hopefully few prototypes,
23601 which can conflict with char $ac_func (); below.
23602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23603 <limits.h> exists even on freestanding compilers. */
23604
23605#ifdef __STDC__
23606# include <limits.h>
23607#else
23608# include <assert.h>
23609#endif
23610
23611#undef $ac_func
23612
23613/* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23616#ifdef __cplusplus
23617extern "C"
23618#endif
23619char $ac_func ();
23620/* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623#if defined __stub_$ac_func || defined __stub___$ac_func
23624choke me
23625#endif
23626
23627int
23628main ()
23629{
23630return $ac_func ();
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext conftest$ac_exeext
23636if { (ac_try="$ac_link"
23637case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23640esac
23641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642$as_echo "$ac_try_echo") >&5
23643 (eval "$ac_link") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext && {
23653 test "$cross_compiling" = yes ||
23654 $as_test_x conftest$ac_exeext
23655 }; then
23656 eval "$as_ac_var=yes"
23657else
23658 $as_echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 eval "$as_ac_var=no"
23662fi
23663
23664rm -rf conftest.dSYM
23665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23666 conftest$ac_exeext conftest.$ac_ext
23667fi
23668ac_res=`eval 'as_val=${'$as_ac_var'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671$as_echo "$ac_res" >&6; }
23672if test `eval 'as_val=${'$as_ac_var'}
23673 $as_echo "$as_val"'` = yes; then
23674 cat >>confdefs.h <<_ACEOF
23675#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23676_ACEOF
23677
23678fi
23679done
23680
23681
23682# sys/queue.h exists on most systems, but its capabilities vary a great deal.
23683# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
23684# all of them, and are necessary for OpenBSM.
23685cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692 #include <sys/queue.h>
23693
23694int
23695main ()
23696{
23697
23698
23699 #ifndef LIST_FIRST
23700 #error LIST_FIRST missing
23701 #endif
23702 #ifndef TAILQ_FOREACH_SAFE
23703 #error TAILQ_FOREACH_SAFE
23704 #endif
23705
23706 ;
23707 return 0;
23708}
23709_ACEOF
23710rm -f conftest.$ac_objext conftest$ac_exeext
23711if { (ac_try="$ac_link"
23712case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715esac
23716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23717$as_echo "$ac_try_echo") >&5
23718 (eval "$ac_link") 2>conftest.er1
23719 ac_status=$?
23720 grep -v '^ *+' conftest.er1 >conftest.err
23721 rm -f conftest.er1
23722 cat conftest.err >&5
23723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest$ac_exeext && {
23728 test "$cross_compiling" = yes ||
23729 $as_test_x conftest$ac_exeext
23730 }; then
23731
23732
23733cat >>confdefs.h <<\_ACEOF
23734#define HAVE_FULL_QUEUE_H /**/
23735_ACEOF
23736
23737
23738else
23739 $as_echo "$as_me: failed program was:" >&5
23740sed 's/^/| /' conftest.$ac_ext >&5
23741
23742
23743fi
23744
23745rm -rf conftest.dSYM
23746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747 conftest$ac_exeext conftest.$ac_ext
23748
23749# Systems may not define key audit system calls, in which case libbsm cannot
23750# depend on them or it will generate link-time or run-time errors. Test for
23751# just one.
23752cat >conftest.$ac_ext <<_ACEOF
23753/* confdefs.h. */
23754_ACEOF
23755cat confdefs.h >>conftest.$ac_ext
23756cat >>conftest.$ac_ext <<_ACEOF
23757/* end confdefs.h. */
23758
23759 #include <stddef.h>
23760
23761 extern int auditon(int, void *, int);
23762
23763int
23764main ()
23765{
23766
23767 int err;
23768
23769 err = auditon(0, NULL, 0);
23770
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext conftest$ac_exeext
23776if { (ac_try="$ac_link"
23777case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780esac
23781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782$as_echo "$ac_try_echo") >&5
23783 (eval "$ac_link") 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest$ac_exeext && {
23793 test "$cross_compiling" = yes ||
23794 $as_test_x conftest$ac_exeext
23795 }; then
23796
23797
23798cat >>confdefs.h <<\_ACEOF
23799#define HAVE_AUDIT_SYSCALLS /**/
23800_ACEOF
23801
23802have_audit_syscalls=true
23803
23804else
23805 $as_echo "$as_me: failed program was:" >&5
23806sed 's/^/| /' conftest.$ac_ext >&5
23807
23808
23809have_audit_syscalls=false
23810
23811fi
23812
23813rm -rf conftest.dSYM
23814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23815 conftest$ac_exeext conftest.$ac_ext
23816 if $have_audit_syscalls; then
23817 HAVE_AUDIT_SYSCALLS_TRUE=
23818 HAVE_AUDIT_SYSCALLS_FALSE='#'
23819else
23820 HAVE_AUDIT_SYSCALLS_TRUE='#'
23821 HAVE_AUDIT_SYSCALLS_FALSE=
23822fi
23823
23824
23825#
23826# There are a wide variety of endian macros and functions in the wild; we try
23827# to use the native support if it defines be32enc(), but otherwise have to
23828# use our own.
23829#
23830cat >conftest.$ac_ext <<_ACEOF
23831/* confdefs.h. */
23832_ACEOF
23833cat confdefs.h >>conftest.$ac_ext
23834cat >>conftest.$ac_ext <<_ACEOF
23835/* end confdefs.h. */
23836
23837 #include <sys/endian.h>
23838 #include <stdlib.h>
23839
23840int
23841main ()
23842{
23843
23844 be32enc(NULL, 1);
23845
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850rm -f conftest.$ac_objext conftest$ac_exeext
23851if { (ac_try="$ac_link"
23852case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23855esac
23856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23857$as_echo "$ac_try_echo") >&5
23858 (eval "$ac_link") 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest$ac_exeext && {
23868 test "$cross_compiling" = yes ||
23869 $as_test_x conftest$ac_exeext
23870 }; then
23871
23872
23873cat >>confdefs.h <<\_ACEOF
23874#define HAVE_BE32ENC /**/
23875_ACEOF
23876
23877
23878else
23879 $as_echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882
23883fi
23884
23885rm -rf conftest.dSYM
23886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887 conftest$ac_exeext conftest.$ac_ext
23888
23889# Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
23890# instead of the default for sending trigger messages to the audit components.
23891{ $as_echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23892$as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
23893if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23894 $as_echo_n "(cached) " >&6
23895else
23896 test "$cross_compiling" = yes &&
23897 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23898$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23899 { (exit 1); exit 1; }; }
23900if test -r "/usr/include/mach/audit_triggers.defs"; then
23901 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23902else
23903 ac_cv_file__usr_include_mach_audit_triggers_defs=no
23904fi
23905fi
23906{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23907$as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23908if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23909
23910
23911cat >>confdefs.h <<\_ACEOF
23912#define USE_MACH_IPC /**/
23913_ACEOF
23914
23915use_mach_ipc=true
23916
23917else
23918
23919use_mach_ipc=false
23920
23921fi
23922
23923 if $use_mach_ipc; then
23924 USE_MACH_IPC_TRUE=
23925 USE_MACH_IPC_FALSE='#'
23926else
23927 USE_MACH_IPC_TRUE='#'
23928 USE_MACH_IPC_FALSE=
23929fi
23930
23931
23932ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23933
23934
23935cat >confcache <<\_ACEOF
23936# This file is a shell script that caches the results of configure
23937# tests run on this system so they can be shared between configure
23938# scripts and configure runs, see configure's option --config-cache.
23939# It is not useful on other systems. If it contains results you don't
23940# want to keep, you may remove or edit it.
23941#
23942# config.status only pays attention to the cache file if you give it
23943# the --recheck option to rerun configure.
23944#
23945# `ac_cv_env_foo' variables (set or unset) will be overridden when
23946# loading this file, other *unset* `ac_cv_foo' will be assigned the
23947# following values.
23948
23949_ACEOF
23950
23951# The following way of writing the cache mishandles newlines in values,
23952# but we know of no workaround that is simple, portable, and efficient.
23953# So, we kill variables containing newlines.
23954# Ultrix sh set writes to stderr and can't be redirected directly,
23955# and sets the high bit in the cache file unless we assign to the vars.
23956(
23957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23958 eval ac_val=\$$ac_var
23959 case $ac_val in #(
23960 *${as_nl}*)
23961 case $ac_var in #(
23962 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23963$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23964 esac
23965 case $ac_var in #(
23966 _ | IFS | as_nl) ;; #(
23967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23968 *) $as_unset $ac_var ;;
23969 esac ;;
23970 esac
23971 done
23972
23973 (set) 2>&1 |
23974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23975 *${as_nl}ac_space=\ *)
23976 # `set' does not quote correctly, so add quotes (double-quote
23977 # substitution turns \\\\ into \\, and sed turns \\ into \).
23978 sed -n \
23979 "s/'/'\\\\''/g;
23980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23981 ;; #(
23982 *)
23983 # `set' quotes correctly as required by POSIX, so do not add quotes.
23984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23985 ;;
23986 esac |
23987 sort
23988) |
23989 sed '
23990 /^ac_cv_env_/b end
23991 t clear
23992 :clear
23993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23994 t end
23995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23996 :end' >>confcache
23997if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23998 if test -w "$cache_file"; then
23999 test "x$cache_file" != "x/dev/null" &&
24000 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24001$as_echo "$as_me: updating cache $cache_file" >&6;}
24002 cat confcache >$cache_file
24003 else
24004 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24005$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24006 fi
24007fi
24008rm -f confcache
24009
24010test "x$prefix" = xNONE && prefix=$ac_default_prefix
24011# Let make expand exec_prefix.
24012test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24013
24014DEFS=-DHAVE_CONFIG_H
24015
24016ac_libobjs=
24017ac_ltlibobjs=
24018for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24019 # 1. Remove the extension, and $U if already installed.
24020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24023 # will be set to the directory where LIBOBJS objects are built.
24024 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24025 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24026done
24027LIBOBJS=$ac_libobjs
24028
24029LTLIBOBJS=$ac_ltlibobjs
24030
24031
24032if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24033 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24034Usually this means the macro was only invoked conditionally." >&5
24035$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24036Usually this means the macro was only invoked conditionally." >&2;}
24037 { (exit 1); exit 1; }; }
24038fi
24039if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
24040 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24041Usually this means the macro was only invoked conditionally." >&5
24042$as_echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24043Usually this means the macro was only invoked conditionally." >&2;}
24044 { (exit 1); exit 1; }; }
24045fi
24046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24047 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24048Usually this means the macro was only invoked conditionally." >&5
24049$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24050Usually this means the macro was only invoked conditionally." >&2;}
24051 { (exit 1); exit 1; }; }
24052fi
24053if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24054 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24055Usually this means the macro was only invoked conditionally." >&5
24056$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24057Usually this means the macro was only invoked conditionally." >&2;}
24058 { (exit 1); exit 1; }; }
24059fi
24060if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24061 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24062Usually this means the macro was only invoked conditionally." >&5
24063$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24064Usually this means the macro was only invoked conditionally." >&2;}
24065 { (exit 1); exit 1; }; }
24066fi
24067if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
24068 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24069Usually this means the macro was only invoked conditionally." >&5
24070$as_echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24071Usually this means the macro was only invoked conditionally." >&2;}
24072 { (exit 1); exit 1; }; }
24073fi
24074if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
24075 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
24076Usually this means the macro was only invoked conditionally." >&5
24077$as_echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
24078Usually this means the macro was only invoked conditionally." >&2;}
24079 { (exit 1); exit 1; }; }
24080fi
24081
24082: ${CONFIG_STATUS=./config.status}
24083ac_write_fail=0
24084ac_clean_files_save=$ac_clean_files
24085ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24086{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24087$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24088cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24089#! $SHELL
24090# Generated by $as_me.
24091# Run this file to recreate the current configuration.
24092# Compiler output produced by configure, useful for debugging
24093# configure, is in config.log if it exists.
24094
24095debug=false
24096ac_cs_recheck=false
24097ac_cs_silent=false
24098SHELL=\${CONFIG_SHELL-$SHELL}
24099_ACEOF
24100
24101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24102## --------------------- ##
24103## M4sh Initialization. ##
24104## --------------------- ##
24105
24106# Be more Bourne compatible
24107DUALCASE=1; export DUALCASE # for MKS sh
24108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24109 emulate sh
24110 NULLCMD=:
24111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24112 # is contrary to our usage. Disable this feature.
24113 alias -g '${1+"$@"}'='"$@"'
24114 setopt NO_GLOB_SUBST
24115else
24116 case `(set -o) 2>/dev/null` in
24117 *posix*) set -o posix ;;
24118esac
24119
24120fi
24121
24122
24123
24124
24125# PATH needs CR
24126# Avoid depending upon Character Ranges.
24127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24130as_cr_digits='0123456789'
24131as_cr_alnum=$as_cr_Letters$as_cr_digits
24132
24133as_nl='
24134'
24135export as_nl
24136# Printing a long string crashes Solaris 7 /usr/bin/printf.
24137as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24140if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24141 as_echo='printf %s\n'
24142 as_echo_n='printf %s'
24143else
24144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24146 as_echo_n='/usr/ucb/echo -n'
24147 else
24148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24149 as_echo_n_body='eval
24150 arg=$1;
24151 case $arg in
24152 *"$as_nl"*)
24153 expr "X$arg" : "X\\(.*\\)$as_nl";
24154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24155 esac;
24156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24157 '
24158 export as_echo_n_body
24159 as_echo_n='sh -c $as_echo_n_body as_echo'
24160 fi
24161 export as_echo_body
24162 as_echo='sh -c $as_echo_body as_echo'
24163fi
24164
24165# The user is always right.
24166if test "${PATH_SEPARATOR+set}" != set; then
24167 PATH_SEPARATOR=:
24168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24170 PATH_SEPARATOR=';'
24171 }
24172fi
24173
24174# Support unset when possible.
24175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24176 as_unset=unset
24177else
24178 as_unset=false
24179fi
24180
24181
24182# IFS
24183# We need space, tab and new line, in precisely that order. Quoting is
24184# there to prevent editors from complaining about space-tab.
24185# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24186# splitting by setting IFS to empty value.)
24187IFS=" "" $as_nl"
24188
24189# Find who we are. Look in the path if we contain no directory separator.
24190case $0 in
24191 *[\\/]* ) as_myself=$0 ;;
24192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193for as_dir in $PATH
24194do
24195 IFS=$as_save_IFS
24196 test -z "$as_dir" && as_dir=.
24197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24198done
24199IFS=$as_save_IFS
24200
24201 ;;
24202esac
24203# We did not find ourselves, most probably we were run as `sh COMMAND'
24204# in which case we are not to be found in the path.
24205if test "x$as_myself" = x; then
24206 as_myself=$0
24207fi
24208if test ! -f "$as_myself"; then
24209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24210 { (exit 1); exit 1; }
24211fi
24212
24213# Work around bugs in pre-3.0 UWIN ksh.
24214for as_var in ENV MAIL MAILPATH
24215do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24216done
24217PS1='$ '
24218PS2='> '
24219PS4='+ '
24220
24221# NLS nuisances.
24222LC_ALL=C
24223export LC_ALL
24224LANGUAGE=C
24225export LANGUAGE
24226
24227# Required to use basename.
24228if expr a : '\(a\)' >/dev/null 2>&1 &&
24229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24230 as_expr=expr
24231else
24232 as_expr=false
24233fi
24234
24235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24236 as_basename=basename
24237else
24238 as_basename=false
24239fi
24240
24241
24242# Name of the executable.
24243as_me=`$as_basename -- "$0" ||
24244$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24245 X"$0" : 'X\(//\)$' \| \
24246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24247$as_echo X/"$0" |
24248 sed '/^.*\/\([^/][^/]*\)\/*$/{
24249 s//\1/
24250 q
24251 }
24252 /^X\/\(\/\/\)$/{
24253 s//\1/
24254 q
24255 }
24256 /^X\/\(\/\).*/{
24257 s//\1/
24258 q
24259 }
24260 s/.*/./; q'`
24261
24262# CDPATH.
24263$as_unset CDPATH
24264
24265
24266
24267 as_lineno_1=$LINENO
24268 as_lineno_2=$LINENO
24269 test "x$as_lineno_1" != "x$as_lineno_2" &&
24270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24271
24272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24273 # uniformly replaced by the line number. The first 'sed' inserts a
24274 # line-number line after each line using $LINENO; the second 'sed'
24275 # does the real work. The second script uses 'N' to pair each
24276 # line-number line with the line containing $LINENO, and appends
24277 # trailing '-' during substitution so that $LINENO is not a special
24278 # case at line end.
24279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24280 # scripts with optimization help from Paolo Bonzini. Blame Lee
24281 # E. McMahon (1931-1989) for sed's syntax. :-)
24282 sed -n '
24283 p
24284 /[$]LINENO/=
24285 ' <$as_myself |
24286 sed '
24287 s/[$]LINENO.*/&-/
24288 t lineno
24289 b
24290 :lineno
24291 N
24292 :loop
24293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24294 t loop
24295 s/-\n.*//
24296 ' >$as_me.lineno &&
24297 chmod +x "$as_me.lineno" ||
24298 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24299 { (exit 1); exit 1; }; }
24300
24301 # Don't try to exec as it changes $[0], causing all sort of problems
24302 # (the dirname of $[0] is not the place where we might find the
24303 # original and so on. Autoconf is especially sensitive to this).
24304 . "./$as_me.lineno"
24305 # Exit status is that of the last command.
24306 exit
24307}
24308
24309
24310if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24311 as_dirname=dirname
24312else
24313 as_dirname=false
24314fi
24315
24316ECHO_C= ECHO_N= ECHO_T=
24317case `echo -n x` in
24318-n*)
24319 case `echo 'x\c'` in
24320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24321 *) ECHO_C='\c';;
24322 esac;;
24323*)
24324 ECHO_N='-n';;
24325esac
24326if expr a : '\(a\)' >/dev/null 2>&1 &&
24327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24328 as_expr=expr
24329else
24330 as_expr=false
24331fi
24332
24333rm -f conf$$ conf$$.exe conf$$.file
24334if test -d conf$$.dir; then
24335 rm -f conf$$.dir/conf$$.file
24336else
24337 rm -f conf$$.dir
24338 mkdir conf$$.dir 2>/dev/null
24339fi
24340if (echo >conf$$.file) 2>/dev/null; then
24341 if ln -s conf$$.file conf$$ 2>/dev/null; then
24342 as_ln_s='ln -s'
24343 # ... but there are two gotchas:
24344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24346 # In both cases, we have to default to `cp -p'.
24347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24348 as_ln_s='cp -p'
24349 elif ln conf$$.file conf$$ 2>/dev/null; then
24350 as_ln_s=ln
24351 else
24352 as_ln_s='cp -p'
24353 fi
24354else
24355 as_ln_s='cp -p'
24356fi
24357rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24358rmdir conf$$.dir 2>/dev/null
24359
24360if mkdir -p . 2>/dev/null; then
24361 as_mkdir_p=:
24362else
24363 test -d ./-p && rmdir ./-p
24364 as_mkdir_p=false
24365fi
24366
24367if test -x / >/dev/null 2>&1; then
24368 as_test_x='test -x'
24369else
24370 if ls -dL / >/dev/null 2>&1; then
24371 as_ls_L_option=L
24372 else
24373 as_ls_L_option=
24374 fi
24375 as_test_x='
24376 eval sh -c '\''
24377 if test -d "$1"; then
24378 test -d "$1/.";
24379 else
24380 case $1 in
24381 -*)set "./$1";;
24382 esac;
24383 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24384 ???[sx]*):;;*)false;;esac;fi
24385 '\'' sh
24386 '
24387fi
24388as_executable_p=$as_test_x
24389
24390# Sed expression to map a string onto a valid CPP name.
24391as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24392
24393# Sed expression to map a string onto a valid variable name.
24394as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24395
24396
24397exec 6>&1
24398
24399# Save the log message, to keep $[0] and so on meaningful, and to
24400# report actual input values of CONFIG_FILES etc. instead of their
24401# values after options handling.
24402ac_log="
19666
19667
19668cat >>confdefs.h <<_ACEOF
19669#define PACKAGE "$PACKAGE"
19670_ACEOF
19671
19672
19673cat >>confdefs.h <<_ACEOF
19674#define VERSION "$VERSION"
19675_ACEOF
19676
19677# Some tools Automake needs.
19678
19679ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19680
19681
19682AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19683
19684
19685AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19686
19687
19688AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19689
19690
19691MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19692
19693install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19694
19695# Installed binaries are usually stripped using `strip' when the user
19696# run `make install-strip'. However `strip' might not be the right
19697# tool to use in cross-compilation environments, therefore Automake
19698# will honor the `STRIP' environment variable to overrule this program.
19699if test "$cross_compiling" != no; then
19700 if test -n "$ac_tool_prefix"; then
19701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19702set dummy ${ac_tool_prefix}strip; ac_word=$2
19703{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19704$as_echo_n "checking for $ac_word... " >&6; }
19705if test "${ac_cv_prog_STRIP+set}" = set; then
19706 $as_echo_n "(cached) " >&6
19707else
19708 if test -n "$STRIP"; then
19709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19710else
19711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19712for as_dir in $PATH
19713do
19714 IFS=$as_save_IFS
19715 test -z "$as_dir" && as_dir=.
19716 for ac_exec_ext in '' $ac_executable_extensions; do
19717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19720 break 2
19721 fi
19722done
19723done
19724IFS=$as_save_IFS
19725
19726fi
19727fi
19728STRIP=$ac_cv_prog_STRIP
19729if test -n "$STRIP"; then
19730 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
19731$as_echo "$STRIP" >&6; }
19732else
19733 { $as_echo "$as_me:$LINENO: result: no" >&5
19734$as_echo "no" >&6; }
19735fi
19736
19737
19738fi
19739if test -z "$ac_cv_prog_STRIP"; then
19740 ac_ct_STRIP=$STRIP
19741 # Extract the first word of "strip", so it can be a program name with args.
19742set dummy strip; ac_word=$2
19743{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19744$as_echo_n "checking for $ac_word... " >&6; }
19745if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19746 $as_echo_n "(cached) " >&6
19747else
19748 if test -n "$ac_ct_STRIP"; then
19749 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19750else
19751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19752for as_dir in $PATH
19753do
19754 IFS=$as_save_IFS
19755 test -z "$as_dir" && as_dir=.
19756 for ac_exec_ext in '' $ac_executable_extensions; do
19757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19758 ac_cv_prog_ac_ct_STRIP="strip"
19759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19760 break 2
19761 fi
19762done
19763done
19764IFS=$as_save_IFS
19765
19766fi
19767fi
19768ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19769if test -n "$ac_ct_STRIP"; then
19770 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19771$as_echo "$ac_ct_STRIP" >&6; }
19772else
19773 { $as_echo "$as_me:$LINENO: result: no" >&5
19774$as_echo "no" >&6; }
19775fi
19776
19777 if test "x$ac_ct_STRIP" = x; then
19778 STRIP=":"
19779 else
19780 case $cross_compiling:$ac_tool_warned in
19781yes:)
19782{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19783whose name does not start with the host triplet. If you think this
19784configuration is useful to you, please write to autoconf@gnu.org." >&5
19785$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19786whose name does not start with the host triplet. If you think this
19787configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19788ac_tool_warned=yes ;;
19789esac
19790 STRIP=$ac_ct_STRIP
19791 fi
19792else
19793 STRIP="$ac_cv_prog_STRIP"
19794fi
19795
19796fi
19797INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19798
19799# We need awk for the "check" target. The system "awk" is bad on
19800# some platforms.
19801# Always define AMTAR for backward compatibility.
19802
19803AMTAR=${AMTAR-"${am_missing_run}tar"}
19804
19805am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19806
19807
19808
19809
19810depcc="$CC" am_compiler_list=
19811
19812{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19813$as_echo_n "checking dependency style of $depcc... " >&6; }
19814if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19815 $as_echo_n "(cached) " >&6
19816else
19817 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19818 # We make a subdir and do the tests there. Otherwise we can end up
19819 # making bogus files that we don't know about and never remove. For
19820 # instance it was reported that on HP-UX the gcc test will end up
19821 # making a dummy file named `D' -- because `-MD' means `put the output
19822 # in D'.
19823 mkdir conftest.dir
19824 # Copy depcomp to subdir because otherwise we won't find it if we're
19825 # using a relative directory.
19826 cp "$am_depcomp" conftest.dir
19827 cd conftest.dir
19828 # We will build objects and dependencies in a subdirectory because
19829 # it helps to detect inapplicable dependency modes. For instance
19830 # both Tru64's cc and ICC support -MD to output dependencies as a
19831 # side effect of compilation, but ICC will put the dependencies in
19832 # the current directory while Tru64 will put them in the object
19833 # directory.
19834 mkdir sub
19835
19836 am_cv_CC_dependencies_compiler_type=none
19837 if test "$am_compiler_list" = ""; then
19838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19839 fi
19840 for depmode in $am_compiler_list; do
19841 # Setup a source with many dependencies, because some compilers
19842 # like to wrap large dependency lists on column 80 (with \), and
19843 # we should not choose a depcomp mode which is confused by this.
19844 #
19845 # We need to recreate these files for each test, as the compiler may
19846 # overwrite some of them when testing with obscure command lines.
19847 # This happens at least with the AIX C compiler.
19848 : > sub/conftest.c
19849 for i in 1 2 3 4 5 6; do
19850 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19851 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19852 # Solaris 8's {/usr,}/bin/sh.
19853 touch sub/conftst$i.h
19854 done
19855 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19856
19857 case $depmode in
19858 nosideeffect)
19859 # after this tag, mechanisms are not by side-effect, so they'll
19860 # only be used when explicitly requested
19861 if test "x$enable_dependency_tracking" = xyes; then
19862 continue
19863 else
19864 break
19865 fi
19866 ;;
19867 none) break ;;
19868 esac
19869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19870 # mode. It turns out that the SunPro C++ compiler does not properly
19871 # handle `-M -o', and we need to detect this.
19872 if depmode=$depmode \
19873 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19875 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19876 >/dev/null 2>conftest.err &&
19877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19879 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19881 # icc doesn't choke on unknown options, it will just issue warnings
19882 # or remarks (even with -Werror). So we grep stderr for any message
19883 # that says an option was ignored or not supported.
19884 # When given -MP, icc 7.0 and 7.1 complain thusly:
19885 # icc: Command line warning: ignoring option '-M'; no argument required
19886 # The diagnosis changed in icc 8.0:
19887 # icc: Command line remark: option '-MP' not supported
19888 if (grep 'ignoring option' conftest.err ||
19889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19890 am_cv_CC_dependencies_compiler_type=$depmode
19891 break
19892 fi
19893 fi
19894 done
19895
19896 cd ..
19897 rm -rf conftest.dir
19898else
19899 am_cv_CC_dependencies_compiler_type=none
19900fi
19901
19902fi
19903{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19904$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19905CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19906
19907 if
19908 test "x$enable_dependency_tracking" != xno \
19909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19910 am__fastdepCC_TRUE=
19911 am__fastdepCC_FALSE='#'
19912else
19913 am__fastdepCC_TRUE='#'
19914 am__fastdepCC_FALSE=
19915fi
19916
19917
19918depcc="$CXX" am_compiler_list=
19919
19920{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19921$as_echo_n "checking dependency style of $depcc... " >&6; }
19922if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19923 $as_echo_n "(cached) " >&6
19924else
19925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19926 # We make a subdir and do the tests there. Otherwise we can end up
19927 # making bogus files that we don't know about and never remove. For
19928 # instance it was reported that on HP-UX the gcc test will end up
19929 # making a dummy file named `D' -- because `-MD' means `put the output
19930 # in D'.
19931 mkdir conftest.dir
19932 # Copy depcomp to subdir because otherwise we won't find it if we're
19933 # using a relative directory.
19934 cp "$am_depcomp" conftest.dir
19935 cd conftest.dir
19936 # We will build objects and dependencies in a subdirectory because
19937 # it helps to detect inapplicable dependency modes. For instance
19938 # both Tru64's cc and ICC support -MD to output dependencies as a
19939 # side effect of compilation, but ICC will put the dependencies in
19940 # the current directory while Tru64 will put them in the object
19941 # directory.
19942 mkdir sub
19943
19944 am_cv_CXX_dependencies_compiler_type=none
19945 if test "$am_compiler_list" = ""; then
19946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19947 fi
19948 for depmode in $am_compiler_list; do
19949 # Setup a source with many dependencies, because some compilers
19950 # like to wrap large dependency lists on column 80 (with \), and
19951 # we should not choose a depcomp mode which is confused by this.
19952 #
19953 # We need to recreate these files for each test, as the compiler may
19954 # overwrite some of them when testing with obscure command lines.
19955 # This happens at least with the AIX C compiler.
19956 : > sub/conftest.c
19957 for i in 1 2 3 4 5 6; do
19958 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19959 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19960 # Solaris 8's {/usr,}/bin/sh.
19961 touch sub/conftst$i.h
19962 done
19963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19964
19965 case $depmode in
19966 nosideeffect)
19967 # after this tag, mechanisms are not by side-effect, so they'll
19968 # only be used when explicitly requested
19969 if test "x$enable_dependency_tracking" = xyes; then
19970 continue
19971 else
19972 break
19973 fi
19974 ;;
19975 none) break ;;
19976 esac
19977 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19978 # mode. It turns out that the SunPro C++ compiler does not properly
19979 # handle `-M -o', and we need to detect this.
19980 if depmode=$depmode \
19981 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19983 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19984 >/dev/null 2>conftest.err &&
19985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19987 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19989 # icc doesn't choke on unknown options, it will just issue warnings
19990 # or remarks (even with -Werror). So we grep stderr for any message
19991 # that says an option was ignored or not supported.
19992 # When given -MP, icc 7.0 and 7.1 complain thusly:
19993 # icc: Command line warning: ignoring option '-M'; no argument required
19994 # The diagnosis changed in icc 8.0:
19995 # icc: Command line remark: option '-MP' not supported
19996 if (grep 'ignoring option' conftest.err ||
19997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19998 am_cv_CXX_dependencies_compiler_type=$depmode
19999 break
20000 fi
20001 fi
20002 done
20003
20004 cd ..
20005 rm -rf conftest.dir
20006else
20007 am_cv_CXX_dependencies_compiler_type=none
20008fi
20009
20010fi
20011{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20012$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
20013CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20014
20015 if
20016 test "x$enable_dependency_tracking" != xno \
20017 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20018 am__fastdepCXX_TRUE=
20019 am__fastdepCXX_FALSE='#'
20020else
20021 am__fastdepCXX_TRUE='#'
20022 am__fastdepCXX_FALSE=
20023fi
20024
20025
20026
20027
20028{ $as_echo "$as_me:$LINENO: checking for library containing dlsym" >&5
20029$as_echo_n "checking for library containing dlsym... " >&6; }
20030if test "${ac_cv_search_dlsym+set}" = set; then
20031 $as_echo_n "(cached) " >&6
20032else
20033 ac_func_search_save_LIBS=$LIBS
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040
20041/* Override any GCC internal prototype to avoid an error.
20042 Use char because int might match the return type of a GCC
20043 builtin and then its argument prototype would still apply. */
20044#ifdef __cplusplus
20045extern "C"
20046#endif
20047char dlsym ();
20048int
20049main ()
20050{
20051return dlsym ();
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056for ac_lib in '' dl; do
20057 if test -z "$ac_lib"; then
20058 ac_res="none required"
20059 else
20060 ac_res=-l$ac_lib
20061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20062 fi
20063 rm -f conftest.$ac_objext conftest$ac_exeext
20064if { (ac_try="$ac_link"
20065case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20070$as_echo "$ac_try_echo") >&5
20071 (eval "$ac_link") 2>conftest.er1
20072 ac_status=$?
20073 grep -v '^ *+' conftest.er1 >conftest.err
20074 rm -f conftest.er1
20075 cat conftest.err >&5
20076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext && {
20081 test "$cross_compiling" = yes ||
20082 $as_test_x conftest$ac_exeext
20083 }; then
20084 ac_cv_search_dlsym=$ac_res
20085else
20086 $as_echo "$as_me: failed program was:" >&5
20087sed 's/^/| /' conftest.$ac_ext >&5
20088
20089
20090fi
20091
20092rm -rf conftest.dSYM
20093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20094 conftest$ac_exeext
20095 if test "${ac_cv_search_dlsym+set}" = set; then
20096 break
20097fi
20098done
20099if test "${ac_cv_search_dlsym+set}" = set; then
20100 :
20101else
20102 ac_cv_search_dlsym=no
20103fi
20104rm conftest.$ac_ext
20105LIBS=$ac_func_search_save_LIBS
20106fi
20107{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
20108$as_echo "$ac_cv_search_dlsym" >&6; }
20109ac_res=$ac_cv_search_dlsym
20110if test "$ac_res" != no; then
20111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20112
20113fi
20114
20115{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
20116$as_echo_n "checking for library containing clock_gettime... " >&6; }
20117if test "${ac_cv_search_clock_gettime+set}" = set; then
20118 $as_echo_n "(cached) " >&6
20119else
20120 ac_func_search_save_LIBS=$LIBS
20121cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127
20128/* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20131#ifdef __cplusplus
20132extern "C"
20133#endif
20134char clock_gettime ();
20135int
20136main ()
20137{
20138return clock_gettime ();
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143for ac_lib in '' rt; do
20144 if test -z "$ac_lib"; then
20145 ac_res="none required"
20146 else
20147 ac_res=-l$ac_lib
20148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20149 fi
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151if { (ac_try="$ac_link"
20152case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20155esac
20156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157$as_echo "$ac_try_echo") >&5
20158 (eval "$ac_link") 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest$ac_exeext && {
20168 test "$cross_compiling" = yes ||
20169 $as_test_x conftest$ac_exeext
20170 }; then
20171 ac_cv_search_clock_gettime=$ac_res
20172else
20173 $as_echo "$as_me: failed program was:" >&5
20174sed 's/^/| /' conftest.$ac_ext >&5
20175
20176
20177fi
20178
20179rm -rf conftest.dSYM
20180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20181 conftest$ac_exeext
20182 if test "${ac_cv_search_clock_gettime+set}" = set; then
20183 break
20184fi
20185done
20186if test "${ac_cv_search_clock_gettime+set}" = set; then
20187 :
20188else
20189 ac_cv_search_clock_gettime=no
20190fi
20191rm conftest.$ac_ext
20192LIBS=$ac_func_search_save_LIBS
20193fi
20194{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
20195$as_echo "$ac_cv_search_clock_gettime" >&6; }
20196ac_res=$ac_cv_search_clock_gettime
20197if test "$ac_res" != no; then
20198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20199
20200fi
20201
20202
20203# Checks for header files.
20204{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20205$as_echo_n "checking for ANSI C header files... " >&6; }
20206if test "${ac_cv_header_stdc+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20208else
20209 cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215#include <stdlib.h>
20216#include <stdarg.h>
20217#include <string.h>
20218#include <float.h>
20219
20220int
20221main ()
20222{
20223
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext
20229if { (ac_try="$ac_compile"
20230case "(($ac_try" in
20231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20232 *) ac_try_echo=$ac_try;;
20233esac
20234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20235$as_echo "$ac_try_echo") >&5
20236 (eval "$ac_compile") 2>conftest.er1
20237 ac_status=$?
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
20241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } && {
20243 test -z "$ac_c_werror_flag" ||
20244 test ! -s conftest.err
20245 } && test -s conftest.$ac_objext; then
20246 ac_cv_header_stdc=yes
20247else
20248 $as_echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ac_cv_header_stdc=no
20252fi
20253
20254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20255
20256if test $ac_cv_header_stdc = yes; then
20257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264#include <string.h>
20265
20266_ACEOF
20267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20268 $EGREP "memchr" >/dev/null 2>&1; then
20269 :
20270else
20271 ac_cv_header_stdc=no
20272fi
20273rm -f conftest*
20274
20275fi
20276
20277if test $ac_cv_header_stdc = yes; then
20278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20279 cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285#include <stdlib.h>
20286
20287_ACEOF
20288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20289 $EGREP "free" >/dev/null 2>&1; then
20290 :
20291else
20292 ac_cv_header_stdc=no
20293fi
20294rm -f conftest*
20295
20296fi
20297
20298if test $ac_cv_header_stdc = yes; then
20299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20300 if test "$cross_compiling" = yes; then
20301 :
20302else
20303 cat >conftest.$ac_ext <<_ACEOF
20304/* confdefs.h. */
20305_ACEOF
20306cat confdefs.h >>conftest.$ac_ext
20307cat >>conftest.$ac_ext <<_ACEOF
20308/* end confdefs.h. */
20309#include <ctype.h>
20310#include <stdlib.h>
20311#if ((' ' & 0x0FF) == 0x020)
20312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20314#else
20315# define ISLOWER(c) \
20316 (('a' <= (c) && (c) <= 'i') \
20317 || ('j' <= (c) && (c) <= 'r') \
20318 || ('s' <= (c) && (c) <= 'z'))
20319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20320#endif
20321
20322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20323int
20324main ()
20325{
20326 int i;
20327 for (i = 0; i < 256; i++)
20328 if (XOR (islower (i), ISLOWER (i))
20329 || toupper (i) != TOUPPER (i))
20330 return 2;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest$ac_exeext
20335if { (ac_try="$ac_link"
20336case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20339esac
20340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20341$as_echo "$ac_try_echo") >&5
20342 (eval "$ac_link") 2>&5
20343 ac_status=$?
20344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20349esac
20350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20351$as_echo "$ac_try_echo") >&5
20352 (eval "$ac_try") 2>&5
20353 ac_status=$?
20354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; }; then
20356 :
20357else
20358 $as_echo "$as_me: program exited with status $ac_status" >&5
20359$as_echo "$as_me: failed program was:" >&5
20360sed 's/^/| /' conftest.$ac_ext >&5
20361
20362( exit $ac_status )
20363ac_cv_header_stdc=no
20364fi
20365rm -rf conftest.dSYM
20366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20367fi
20368
20369
20370fi
20371fi
20372{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20373$as_echo "$ac_cv_header_stdc" >&6; }
20374if test $ac_cv_header_stdc = yes; then
20375
20376cat >>confdefs.h <<\_ACEOF
20377#define STDC_HEADERS 1
20378_ACEOF
20379
20380fi
20381
20382{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20383$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20384if test "${ac_cv_header_sys_wait_h+set}" = set; then
20385 $as_echo_n "(cached) " >&6
20386else
20387 cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
20392/* end confdefs.h. */
20393#include <sys/types.h>
20394#include <sys/wait.h>
20395#ifndef WEXITSTATUS
20396# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20397#endif
20398#ifndef WIFEXITED
20399# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20400#endif
20401
20402int
20403main ()
20404{
20405 int s;
20406 wait (&s);
20407 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20408 ;
20409 return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (ac_try="$ac_compile"
20414case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20419$as_echo "$ac_try_echo") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_cv_header_sys_wait_h=yes
20431else
20432 $as_echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_cv_header_sys_wait_h=no
20436fi
20437
20438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439fi
20440{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20441$as_echo "$ac_cv_header_sys_wait_h" >&6; }
20442if test $ac_cv_header_sys_wait_h = yes; then
20443
20444cat >>confdefs.h <<\_ACEOF
20445#define HAVE_SYS_WAIT_H 1
20446_ACEOF
20447
20448fi
20449
20450
20451
20452
20453
20454
20455for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
20456do
20457as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20460$as_echo_n "checking for $ac_header... " >&6; }
20461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462 $as_echo_n "(cached) " >&6
20463fi
20464ac_res=`eval 'as_val=${'$as_ac_Header'}
20465 $as_echo "$as_val"'`
20466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20467$as_echo "$ac_res" >&6; }
20468else
20469 # Is the header compilable?
20470{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471$as_echo_n "checking $ac_header usability... " >&6; }
20472cat >conftest.$ac_ext <<_ACEOF
20473/* confdefs.h. */
20474_ACEOF
20475cat confdefs.h >>conftest.$ac_ext
20476cat >>conftest.$ac_ext <<_ACEOF
20477/* end confdefs.h. */
20478$ac_includes_default
20479#include <$ac_header>
20480_ACEOF
20481rm -f conftest.$ac_objext
20482if { (ac_try="$ac_compile"
20483case "(($ac_try" in
20484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485 *) ac_try_echo=$ac_try;;
20486esac
20487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20488$as_echo "$ac_try_echo") >&5
20489 (eval "$ac_compile") 2>conftest.er1
20490 ac_status=$?
20491 grep -v '^ *+' conftest.er1 >conftest.err
20492 rm -f conftest.er1
20493 cat conftest.err >&5
20494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495 (exit $ac_status); } && {
20496 test -z "$ac_c_werror_flag" ||
20497 test ! -s conftest.err
20498 } && test -s conftest.$ac_objext; then
20499 ac_header_compiler=yes
20500else
20501 $as_echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504 ac_header_compiler=no
20505fi
20506
20507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20508{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20509$as_echo "$ac_header_compiler" >&6; }
20510
20511# Is the header present?
20512{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20513$as_echo_n "checking $ac_header presence... " >&6; }
20514cat >conftest.$ac_ext <<_ACEOF
20515/* confdefs.h. */
20516_ACEOF
20517cat confdefs.h >>conftest.$ac_ext
20518cat >>conftest.$ac_ext <<_ACEOF
20519/* end confdefs.h. */
20520#include <$ac_header>
20521_ACEOF
20522if { (ac_try="$ac_cpp conftest.$ac_ext"
20523case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526esac
20527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20528$as_echo "$ac_try_echo") >&5
20529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20530 ac_status=$?
20531 grep -v '^ *+' conftest.er1 >conftest.err
20532 rm -f conftest.er1
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); } >/dev/null && {
20536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 }; then
20539 ac_header_preproc=yes
20540else
20541 $as_echo "$as_me: failed program was:" >&5
20542sed 's/^/| /' conftest.$ac_ext >&5
20543
20544 ac_header_preproc=no
20545fi
20546
20547rm -f conftest.err conftest.$ac_ext
20548{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20549$as_echo "$ac_header_preproc" >&6; }
20550
20551# So? What about this header?
20552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20553 yes:no: )
20554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20555$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20557$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20558 ac_header_preproc=yes
20559 ;;
20560 no:yes:* )
20561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20562$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20564$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20566$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20568$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20570$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20572$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20573 ( cat <<\_ASBOX
20574## ----------------------------------------------- ##
20575## Report this to trustedbsd-audit@TrustesdBSD.org ##
20576## ----------------------------------------------- ##
20577_ASBOX
20578 ) | sed "s/^/$as_me: WARNING: /" >&2
20579 ;;
20580esac
20581{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20582$as_echo_n "checking for $ac_header... " >&6; }
20583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20584 $as_echo_n "(cached) " >&6
20585else
20586 eval "$as_ac_Header=\$ac_header_preproc"
20587fi
20588ac_res=`eval 'as_val=${'$as_ac_Header'}
20589 $as_echo "$as_val"'`
20590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20591$as_echo "$ac_res" >&6; }
20592
20593fi
20594if test `eval 'as_val=${'$as_ac_Header'}
20595 $as_echo "$as_val"'` = yes; then
20596 cat >>confdefs.h <<_ACEOF
20597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20598_ACEOF
20599
20600fi
20601
20602done
20603
20604
20605
20606cat >>confdefs.h <<\_ACEOF
20607#define _GNU_SOURCE /**/
20608_ACEOF
20609
20610
20611# Checks for typedefs, structures, and compiler characteristics.
20612{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20613$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20614if test "${ac_cv_c_const+set}" = set; then
20615 $as_echo_n "(cached) " >&6
20616else
20617 cat >conftest.$ac_ext <<_ACEOF
20618/* confdefs.h. */
20619_ACEOF
20620cat confdefs.h >>conftest.$ac_ext
20621cat >>conftest.$ac_ext <<_ACEOF
20622/* end confdefs.h. */
20623
20624int
20625main ()
20626{
20627/* FIXME: Include the comments suggested by Paul. */
20628#ifndef __cplusplus
20629 /* Ultrix mips cc rejects this. */
20630 typedef int charset[2];
20631 const charset cs;
20632 /* SunOS 4.1.1 cc rejects this. */
20633 char const *const *pcpcc;
20634 char **ppc;
20635 /* NEC SVR4.0.2 mips cc rejects this. */
20636 struct point {int x, y;};
20637 static struct point const zero = {0,0};
20638 /* AIX XL C 1.02.0.0 rejects this.
20639 It does not let you subtract one const X* pointer from another in
20640 an arm of an if-expression whose if-part is not a constant
20641 expression */
20642 const char *g = "string";
20643 pcpcc = &g + (g ? g-g : 0);
20644 /* HPUX 7.0 cc rejects these. */
20645 ++pcpcc;
20646 ppc = (char**) pcpcc;
20647 pcpcc = (char const *const *) ppc;
20648 { /* SCO 3.2v4 cc rejects this. */
20649 char *t;
20650 char const *s = 0 ? (char *) 0 : (char const *) 0;
20651
20652 *t++ = 0;
20653 if (s) return 0;
20654 }
20655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20656 int x[] = {25, 17};
20657 const int *foo = &x[0];
20658 ++foo;
20659 }
20660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20661 typedef const int *iptr;
20662 iptr p = 0;
20663 ++p;
20664 }
20665 { /* AIX XL C 1.02.0.0 rejects this saying
20666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20667 struct s { int j; const int *ap[3]; };
20668 struct s *b; b->j = 5;
20669 }
20670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20671 const int foo = 10;
20672 if (!foo) return 0;
20673 }
20674 return !cs[0] && !zero.x;
20675#endif
20676
20677 ;
20678 return 0;
20679}
20680_ACEOF
20681rm -f conftest.$ac_objext
20682if { (ac_try="$ac_compile"
20683case "(($ac_try" in
20684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20685 *) ac_try_echo=$ac_try;;
20686esac
20687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20688$as_echo "$ac_try_echo") >&5
20689 (eval "$ac_compile") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } && {
20696 test -z "$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 } && test -s conftest.$ac_objext; then
20699 ac_cv_c_const=yes
20700else
20701 $as_echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 ac_cv_c_const=no
20705fi
20706
20707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708fi
20709{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20710$as_echo "$ac_cv_c_const" >&6; }
20711if test $ac_cv_c_const = no; then
20712
20713cat >>confdefs.h <<\_ACEOF
20714#define const /**/
20715_ACEOF
20716
20717fi
20718
20719{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20720$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
20721if test "${ac_cv_type_uid_t+set}" = set; then
20722 $as_echo_n "(cached) " >&6
20723else
20724 cat >conftest.$ac_ext <<_ACEOF
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730#include <sys/types.h>
20731
20732_ACEOF
20733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20734 $EGREP "uid_t" >/dev/null 2>&1; then
20735 ac_cv_type_uid_t=yes
20736else
20737 ac_cv_type_uid_t=no
20738fi
20739rm -f conftest*
20740
20741fi
20742{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20743$as_echo "$ac_cv_type_uid_t" >&6; }
20744if test $ac_cv_type_uid_t = no; then
20745
20746cat >>confdefs.h <<\_ACEOF
20747#define uid_t int
20748_ACEOF
20749
20750
20751cat >>confdefs.h <<\_ACEOF
20752#define gid_t int
20753_ACEOF
20754
20755fi
20756
20757{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
20758$as_echo_n "checking for pid_t... " >&6; }
20759if test "${ac_cv_type_pid_t+set}" = set; then
20760 $as_echo_n "(cached) " >&6
20761else
20762 ac_cv_type_pid_t=no
20763cat >conftest.$ac_ext <<_ACEOF
20764/* confdefs.h. */
20765_ACEOF
20766cat confdefs.h >>conftest.$ac_ext
20767cat >>conftest.$ac_ext <<_ACEOF
20768/* end confdefs.h. */
20769$ac_includes_default
20770int
20771main ()
20772{
20773if (sizeof (pid_t))
20774 return 0;
20775 ;
20776 return 0;
20777}
20778_ACEOF
20779rm -f conftest.$ac_objext
20780if { (ac_try="$ac_compile"
20781case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784esac
20785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20786$as_echo "$ac_try_echo") >&5
20787 (eval "$ac_compile") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest.$ac_objext; then
20797 cat >conftest.$ac_ext <<_ACEOF
20798/* confdefs.h. */
20799_ACEOF
20800cat confdefs.h >>conftest.$ac_ext
20801cat >>conftest.$ac_ext <<_ACEOF
20802/* end confdefs.h. */
20803$ac_includes_default
20804int
20805main ()
20806{
20807if (sizeof ((pid_t)))
20808 return 0;
20809 ;
20810 return 0;
20811}
20812_ACEOF
20813rm -f conftest.$ac_objext
20814if { (ac_try="$ac_compile"
20815case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818esac
20819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820$as_echo "$ac_try_echo") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest.$ac_objext; then
20831 :
20832else
20833 $as_echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836 ac_cv_type_pid_t=yes
20837fi
20838
20839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840else
20841 $as_echo "$as_me: failed program was:" >&5
20842sed 's/^/| /' conftest.$ac_ext >&5
20843
20844
20845fi
20846
20847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848fi
20849{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20850$as_echo "$ac_cv_type_pid_t" >&6; }
20851if test $ac_cv_type_pid_t = yes; then
20852 :
20853else
20854
20855cat >>confdefs.h <<_ACEOF
20856#define pid_t int
20857_ACEOF
20858
20859fi
20860
20861{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
20862$as_echo_n "checking for size_t... " >&6; }
20863if test "${ac_cv_type_size_t+set}" = set; then
20864 $as_echo_n "(cached) " >&6
20865else
20866 ac_cv_type_size_t=no
20867cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873$ac_includes_default
20874int
20875main ()
20876{
20877if (sizeof (size_t))
20878 return 0;
20879 ;
20880 return 0;
20881}
20882_ACEOF
20883rm -f conftest.$ac_objext
20884if { (ac_try="$ac_compile"
20885case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20890$as_echo "$ac_try_echo") >&5
20891 (eval "$ac_compile") 2>conftest.er1
20892 ac_status=$?
20893 grep -v '^ *+' conftest.er1 >conftest.err
20894 rm -f conftest.er1
20895 cat conftest.err >&5
20896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest.$ac_objext; then
20901 cat >conftest.$ac_ext <<_ACEOF
20902/* confdefs.h. */
20903_ACEOF
20904cat confdefs.h >>conftest.$ac_ext
20905cat >>conftest.$ac_ext <<_ACEOF
20906/* end confdefs.h. */
20907$ac_includes_default
20908int
20909main ()
20910{
20911if (sizeof ((size_t)))
20912 return 0;
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest.$ac_objext
20918if { (ac_try="$ac_compile"
20919case "(($ac_try" in
20920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20921 *) ac_try_echo=$ac_try;;
20922esac
20923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20924$as_echo "$ac_try_echo") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 :
20936else
20937 $as_echo "$as_me: failed program was:" >&5
20938sed 's/^/| /' conftest.$ac_ext >&5
20939
20940 ac_cv_type_size_t=yes
20941fi
20942
20943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944else
20945 $as_echo "$as_me: failed program was:" >&5
20946sed 's/^/| /' conftest.$ac_ext >&5
20947
20948
20949fi
20950
20951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952fi
20953{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20954$as_echo "$ac_cv_type_size_t" >&6; }
20955if test $ac_cv_type_size_t = yes; then
20956 :
20957else
20958
20959cat >>confdefs.h <<_ACEOF
20960#define size_t unsigned int
20961_ACEOF
20962
20963fi
20964
20965{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20966$as_echo_n "checking for struct stat.st_rdev... " >&6; }
20967if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20968 $as_echo_n "(cached) " >&6
20969else
20970 cat >conftest.$ac_ext <<_ACEOF
20971/* confdefs.h. */
20972_ACEOF
20973cat confdefs.h >>conftest.$ac_ext
20974cat >>conftest.$ac_ext <<_ACEOF
20975/* end confdefs.h. */
20976$ac_includes_default
20977int
20978main ()
20979{
20980static struct stat ac_aggr;
20981if (ac_aggr.st_rdev)
20982return 0;
20983 ;
20984 return 0;
20985}
20986_ACEOF
20987rm -f conftest.$ac_objext
20988if { (ac_try="$ac_compile"
20989case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20992esac
20993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20994$as_echo "$ac_try_echo") >&5
20995 (eval "$ac_compile") 2>conftest.er1
20996 ac_status=$?
20997 grep -v '^ *+' conftest.er1 >conftest.err
20998 rm -f conftest.er1
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest.$ac_objext; then
21005 ac_cv_member_struct_stat_st_rdev=yes
21006else
21007 $as_echo "$as_me: failed program was:" >&5
21008sed 's/^/| /' conftest.$ac_ext >&5
21009
21010 cat >conftest.$ac_ext <<_ACEOF
21011/* confdefs.h. */
21012_ACEOF
21013cat confdefs.h >>conftest.$ac_ext
21014cat >>conftest.$ac_ext <<_ACEOF
21015/* end confdefs.h. */
21016$ac_includes_default
21017int
21018main ()
21019{
21020static struct stat ac_aggr;
21021if (sizeof ac_aggr.st_rdev)
21022return 0;
21023 ;
21024 return 0;
21025}
21026_ACEOF
21027rm -f conftest.$ac_objext
21028if { (ac_try="$ac_compile"
21029case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21032esac
21033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21034$as_echo "$ac_try_echo") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21036 ac_status=$?
21037 grep -v '^ *+' conftest.er1 >conftest.err
21038 rm -f conftest.er1
21039 cat conftest.err >&5
21040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_cv_member_struct_stat_st_rdev=yes
21046else
21047 $as_echo "$as_me: failed program was:" >&5
21048sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_member_struct_stat_st_rdev=no
21051fi
21052
21053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054fi
21055
21056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21057fi
21058{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21059$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
21060if test $ac_cv_member_struct_stat_st_rdev = yes; then
21061
21062cat >>confdefs.h <<_ACEOF
21063#define HAVE_STRUCT_STAT_ST_RDEV 1
21064_ACEOF
21065
21066
21067fi
21068
21069
21070{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
21071$as_echo_n "checking for struct ipc_perm.__key... " >&6; }
21072if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
21073 $as_echo_n "(cached) " >&6
21074else
21075 cat >conftest.$ac_ext <<_ACEOF
21076/* confdefs.h. */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h. */
21081
21082#include <sys/types.h>
21083#include <sys/ipc.h>
21084
21085
21086int
21087main ()
21088{
21089static struct ipc_perm ac_aggr;
21090if (ac_aggr.__key)
21091return 0;
21092 ;
21093 return 0;
21094}
21095_ACEOF
21096rm -f conftest.$ac_objext
21097if { (ac_try="$ac_compile"
21098case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101esac
21102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21103$as_echo "$ac_try_echo") >&5
21104 (eval "$ac_compile") 2>conftest.er1
21105 ac_status=$?
21106 grep -v '^ *+' conftest.er1 >conftest.err
21107 rm -f conftest.er1
21108 cat conftest.err >&5
21109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); } && {
21111 test -z "$ac_c_werror_flag" ||
21112 test ! -s conftest.err
21113 } && test -s conftest.$ac_objext; then
21114 ac_cv_member_struct_ipc_perm___key=yes
21115else
21116 $as_echo "$as_me: failed program was:" >&5
21117sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 cat >conftest.$ac_ext <<_ACEOF
21120/* confdefs.h. */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h. */
21125
21126#include <sys/types.h>
21127#include <sys/ipc.h>
21128
21129
21130int
21131main ()
21132{
21133static struct ipc_perm ac_aggr;
21134if (sizeof ac_aggr.__key)
21135return 0;
21136 ;
21137 return 0;
21138}
21139_ACEOF
21140rm -f conftest.$ac_objext
21141if { (ac_try="$ac_compile"
21142case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145esac
21146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21147$as_echo "$ac_try_echo") >&5
21148 (eval "$ac_compile") 2>conftest.er1
21149 ac_status=$?
21150 grep -v '^ *+' conftest.er1 >conftest.err
21151 rm -f conftest.er1
21152 cat conftest.err >&5
21153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); } && {
21155 test -z "$ac_c_werror_flag" ||
21156 test ! -s conftest.err
21157 } && test -s conftest.$ac_objext; then
21158 ac_cv_member_struct_ipc_perm___key=yes
21159else
21160 $as_echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
21163 ac_cv_member_struct_ipc_perm___key=no
21164fi
21165
21166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167fi
21168
21169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21170fi
21171{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
21172$as_echo "$ac_cv_member_struct_ipc_perm___key" >&6; }
21173if test $ac_cv_member_struct_ipc_perm___key = yes; then
21174
21175cat >>confdefs.h <<\_ACEOF
21176#define HAVE_IPC_PERM___KEY /**/
21177_ACEOF
21178
21179fi
21180
21181
21182{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
21183$as_echo_n "checking for struct ipc_perm._key... " >&6; }
21184if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
21185 $as_echo_n "(cached) " >&6
21186else
21187 cat >conftest.$ac_ext <<_ACEOF
21188/* confdefs.h. */
21189_ACEOF
21190cat confdefs.h >>conftest.$ac_ext
21191cat >>conftest.$ac_ext <<_ACEOF
21192/* end confdefs.h. */
21193
21194#include <sys/types.h>
21195#include <sys/ipc.h>
21196
21197
21198int
21199main ()
21200{
21201static struct ipc_perm ac_aggr;
21202if (ac_aggr._key)
21203return 0;
21204 ;
21205 return 0;
21206}
21207_ACEOF
21208rm -f conftest.$ac_objext
21209if { (ac_try="$ac_compile"
21210case "(($ac_try" in
21211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21212 *) ac_try_echo=$ac_try;;
21213esac
21214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21215$as_echo "$ac_try_echo") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21217 ac_status=$?
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
21221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_cv_member_struct_ipc_perm__key=yes
21227else
21228 $as_echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237
21238#include <sys/types.h>
21239#include <sys/ipc.h>
21240
21241
21242int
21243main ()
21244{
21245static struct ipc_perm ac_aggr;
21246if (sizeof ac_aggr._key)
21247return 0;
21248 ;
21249 return 0;
21250}
21251_ACEOF
21252rm -f conftest.$ac_objext
21253if { (ac_try="$ac_compile"
21254case "(($ac_try" in
21255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256 *) ac_try_echo=$ac_try;;
21257esac
21258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21259$as_echo "$ac_try_echo") >&5
21260 (eval "$ac_compile") 2>conftest.er1
21261 ac_status=$?
21262 grep -v '^ *+' conftest.er1 >conftest.err
21263 rm -f conftest.er1
21264 cat conftest.err >&5
21265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); } && {
21267 test -z "$ac_c_werror_flag" ||
21268 test ! -s conftest.err
21269 } && test -s conftest.$ac_objext; then
21270 ac_cv_member_struct_ipc_perm__key=yes
21271else
21272 $as_echo "$as_me: failed program was:" >&5
21273sed 's/^/| /' conftest.$ac_ext >&5
21274
21275 ac_cv_member_struct_ipc_perm__key=no
21276fi
21277
21278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21279fi
21280
21281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21282fi
21283{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
21284$as_echo "$ac_cv_member_struct_ipc_perm__key" >&6; }
21285if test $ac_cv_member_struct_ipc_perm__key = yes; then
21286
21287cat >>confdefs.h <<\_ACEOF
21288#define HAVE_IPC_PERM__KEY /**/
21289_ACEOF
21290
21291fi
21292
21293
21294{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
21295$as_echo_n "checking for struct ipc_perm.__seq... " >&6; }
21296if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
21297 $as_echo_n "(cached) " >&6
21298else
21299 cat >conftest.$ac_ext <<_ACEOF
21300/* confdefs.h. */
21301_ACEOF
21302cat confdefs.h >>conftest.$ac_ext
21303cat >>conftest.$ac_ext <<_ACEOF
21304/* end confdefs.h. */
21305
21306#include <sys/types.h>
21307#include <sys/ipc.h>
21308
21309
21310int
21311main ()
21312{
21313static struct ipc_perm ac_aggr;
21314if (ac_aggr.__seq)
21315return 0;
21316 ;
21317 return 0;
21318}
21319_ACEOF
21320rm -f conftest.$ac_objext
21321if { (ac_try="$ac_compile"
21322case "(($ac_try" in
21323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324 *) ac_try_echo=$ac_try;;
21325esac
21326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21327$as_echo "$ac_try_echo") >&5
21328 (eval "$ac_compile") 2>conftest.er1
21329 ac_status=$?
21330 grep -v '^ *+' conftest.er1 >conftest.err
21331 rm -f conftest.er1
21332 cat conftest.err >&5
21333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } && {
21335 test -z "$ac_c_werror_flag" ||
21336 test ! -s conftest.err
21337 } && test -s conftest.$ac_objext; then
21338 ac_cv_member_struct_ipc_perm___seq=yes
21339else
21340 $as_echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 cat >conftest.$ac_ext <<_ACEOF
21344/* confdefs.h. */
21345_ACEOF
21346cat confdefs.h >>conftest.$ac_ext
21347cat >>conftest.$ac_ext <<_ACEOF
21348/* end confdefs.h. */
21349
21350#include <sys/types.h>
21351#include <sys/ipc.h>
21352
21353
21354int
21355main ()
21356{
21357static struct ipc_perm ac_aggr;
21358if (sizeof ac_aggr.__seq)
21359return 0;
21360 ;
21361 return 0;
21362}
21363_ACEOF
21364rm -f conftest.$ac_objext
21365if { (ac_try="$ac_compile"
21366case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21369esac
21370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21371$as_echo "$ac_try_echo") >&5
21372 (eval "$ac_compile") 2>conftest.er1
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } && {
21379 test -z "$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21381 } && test -s conftest.$ac_objext; then
21382 ac_cv_member_struct_ipc_perm___seq=yes
21383else
21384 $as_echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_cv_member_struct_ipc_perm___seq=no
21388fi
21389
21390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21391fi
21392
21393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394fi
21395{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
21396$as_echo "$ac_cv_member_struct_ipc_perm___seq" >&6; }
21397if test $ac_cv_member_struct_ipc_perm___seq = yes; then
21398
21399cat >>confdefs.h <<\_ACEOF
21400#define HAVE_IPC_PERM___SEQ /**/
21401_ACEOF
21402
21403fi
21404
21405
21406{ $as_echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
21407$as_echo_n "checking for struct ipc_perm._seq... " >&6; }
21408if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
21409 $as_echo_n "(cached) " >&6
21410else
21411 cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h. */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h. */
21417
21418#include <sys/types.h>
21419#include <sys/ipc.h>
21420
21421
21422int
21423main ()
21424{
21425static struct ipc_perm ac_aggr;
21426if (ac_aggr._seq)
21427return 0;
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (ac_try="$ac_compile"
21434case "(($ac_try" in
21435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436 *) ac_try_echo=$ac_try;;
21437esac
21438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21439$as_echo "$ac_try_echo") >&5
21440 (eval "$ac_compile") 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } && {
21447 test -z "$ac_c_werror_flag" ||
21448 test ! -s conftest.err
21449 } && test -s conftest.$ac_objext; then
21450 ac_cv_member_struct_ipc_perm__seq=yes
21451else
21452 $as_echo "$as_me: failed program was:" >&5
21453sed 's/^/| /' conftest.$ac_ext >&5
21454
21455 cat >conftest.$ac_ext <<_ACEOF
21456/* confdefs.h. */
21457_ACEOF
21458cat confdefs.h >>conftest.$ac_ext
21459cat >>conftest.$ac_ext <<_ACEOF
21460/* end confdefs.h. */
21461
21462#include <sys/types.h>
21463#include <sys/ipc.h>
21464
21465
21466int
21467main ()
21468{
21469static struct ipc_perm ac_aggr;
21470if (sizeof ac_aggr._seq)
21471return 0;
21472 ;
21473 return 0;
21474}
21475_ACEOF
21476rm -f conftest.$ac_objext
21477if { (ac_try="$ac_compile"
21478case "(($ac_try" in
21479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21480 *) ac_try_echo=$ac_try;;
21481esac
21482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21483$as_echo "$ac_try_echo") >&5
21484 (eval "$ac_compile") 2>conftest.er1
21485 ac_status=$?
21486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
21489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } && {
21491 test -z "$ac_c_werror_flag" ||
21492 test ! -s conftest.err
21493 } && test -s conftest.$ac_objext; then
21494 ac_cv_member_struct_ipc_perm__seq=yes
21495else
21496 $as_echo "$as_me: failed program was:" >&5
21497sed 's/^/| /' conftest.$ac_ext >&5
21498
21499 ac_cv_member_struct_ipc_perm__seq=no
21500fi
21501
21502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21503fi
21504
21505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506fi
21507{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
21508$as_echo "$ac_cv_member_struct_ipc_perm__seq" >&6; }
21509if test $ac_cv_member_struct_ipc_perm__seq = yes; then
21510
21511cat >>confdefs.h <<\_ACEOF
21512#define HAVE_IPC_PERM__SEQ /**/
21513_ACEOF
21514
21515fi
21516
21517
21518{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21519$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21520if test "${ac_cv_header_time+set}" = set; then
21521 $as_echo_n "(cached) " >&6
21522else
21523 cat >conftest.$ac_ext <<_ACEOF
21524/* confdefs.h. */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h. */
21529#include <sys/types.h>
21530#include <sys/time.h>
21531#include <time.h>
21532
21533int
21534main ()
21535{
21536if ((struct tm *) 0)
21537return 0;
21538 ;
21539 return 0;
21540}
21541_ACEOF
21542rm -f conftest.$ac_objext
21543if { (ac_try="$ac_compile"
21544case "(($ac_try" in
21545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546 *) ac_try_echo=$ac_try;;
21547esac
21548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21549$as_echo "$ac_try_echo") >&5
21550 (eval "$ac_compile") 2>conftest.er1
21551 ac_status=$?
21552 grep -v '^ *+' conftest.er1 >conftest.err
21553 rm -f conftest.er1
21554 cat conftest.err >&5
21555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } && {
21557 test -z "$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21559 } && test -s conftest.$ac_objext; then
21560 ac_cv_header_time=yes
21561else
21562 $as_echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_header_time=no
21566fi
21567
21568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21569fi
21570{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21571$as_echo "$ac_cv_header_time" >&6; }
21572if test $ac_cv_header_time = yes; then
21573
21574cat >>confdefs.h <<\_ACEOF
21575#define TIME_WITH_SYS_TIME 1
21576_ACEOF
21577
21578fi
21579
21580{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21581$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21582if test "${ac_cv_struct_tm+set}" = set; then
21583 $as_echo_n "(cached) " >&6
21584else
21585 cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h. */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h. */
21591#include <sys/types.h>
21592#include <time.h>
21593
21594int
21595main ()
21596{
21597struct tm tm;
21598 int *p = &tm.tm_sec;
21599 return !p;
21600 ;
21601 return 0;
21602}
21603_ACEOF
21604rm -f conftest.$ac_objext
21605if { (ac_try="$ac_compile"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21611$as_echo "$ac_try_echo") >&5
21612 (eval "$ac_compile") 2>conftest.er1
21613 ac_status=$?
21614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
21617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } && {
21619 test -z "$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21621 } && test -s conftest.$ac_objext; then
21622 ac_cv_struct_tm=time.h
21623else
21624 $as_echo "$as_me: failed program was:" >&5
21625sed 's/^/| /' conftest.$ac_ext >&5
21626
21627 ac_cv_struct_tm=sys/time.h
21628fi
21629
21630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631fi
21632{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21633$as_echo "$ac_cv_struct_tm" >&6; }
21634if test $ac_cv_struct_tm = sys/time.h; then
21635
21636cat >>confdefs.h <<\_ACEOF
21637#define TM_IN_SYS_TIME 1
21638_ACEOF
21639
21640fi
21641
21642
21643# Checks for library functions.
21644
21645for ac_header in unistd.h
21646do
21647as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21650$as_echo_n "checking for $ac_header... " >&6; }
21651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21652 $as_echo_n "(cached) " >&6
21653fi
21654ac_res=`eval 'as_val=${'$as_ac_Header'}
21655 $as_echo "$as_val"'`
21656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21657$as_echo "$ac_res" >&6; }
21658else
21659 # Is the header compilable?
21660{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21661$as_echo_n "checking $ac_header usability... " >&6; }
21662cat >conftest.$ac_ext <<_ACEOF
21663/* confdefs.h. */
21664_ACEOF
21665cat confdefs.h >>conftest.$ac_ext
21666cat >>conftest.$ac_ext <<_ACEOF
21667/* end confdefs.h. */
21668$ac_includes_default
21669#include <$ac_header>
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (ac_try="$ac_compile"
21673case "(($ac_try" in
21674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21675 *) ac_try_echo=$ac_try;;
21676esac
21677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21678$as_echo "$ac_try_echo") >&5
21679 (eval "$ac_compile") 2>conftest.er1
21680 ac_status=$?
21681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
21684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } && {
21686 test -z "$ac_c_werror_flag" ||
21687 test ! -s conftest.err
21688 } && test -s conftest.$ac_objext; then
21689 ac_header_compiler=yes
21690else
21691 $as_echo "$as_me: failed program was:" >&5
21692sed 's/^/| /' conftest.$ac_ext >&5
21693
21694 ac_header_compiler=no
21695fi
21696
21697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21699$as_echo "$ac_header_compiler" >&6; }
21700
21701# Is the header present?
21702{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21703$as_echo_n "checking $ac_header presence... " >&6; }
21704cat >conftest.$ac_ext <<_ACEOF
21705/* confdefs.h. */
21706_ACEOF
21707cat confdefs.h >>conftest.$ac_ext
21708cat >>conftest.$ac_ext <<_ACEOF
21709/* end confdefs.h. */
21710#include <$ac_header>
21711_ACEOF
21712if { (ac_try="$ac_cpp conftest.$ac_ext"
21713case "(($ac_try" in
21714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21715 *) ac_try_echo=$ac_try;;
21716esac
21717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21718$as_echo "$ac_try_echo") >&5
21719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21720 ac_status=$?
21721 grep -v '^ *+' conftest.er1 >conftest.err
21722 rm -f conftest.er1
21723 cat conftest.err >&5
21724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); } >/dev/null && {
21726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21727 test ! -s conftest.err
21728 }; then
21729 ac_header_preproc=yes
21730else
21731 $as_echo "$as_me: failed program was:" >&5
21732sed 's/^/| /' conftest.$ac_ext >&5
21733
21734 ac_header_preproc=no
21735fi
21736
21737rm -f conftest.err conftest.$ac_ext
21738{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21739$as_echo "$ac_header_preproc" >&6; }
21740
21741# So? What about this header?
21742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21743 yes:no: )
21744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21745$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21747$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21748 ac_header_preproc=yes
21749 ;;
21750 no:yes:* )
21751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21752$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21754$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21756$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21758$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21760$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21762$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21763 ( cat <<\_ASBOX
21764## ----------------------------------------------- ##
21765## Report this to trustedbsd-audit@TrustesdBSD.org ##
21766## ----------------------------------------------- ##
21767_ASBOX
21768 ) | sed "s/^/$as_me: WARNING: /" >&2
21769 ;;
21770esac
21771{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21772$as_echo_n "checking for $ac_header... " >&6; }
21773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21774 $as_echo_n "(cached) " >&6
21775else
21776 eval "$as_ac_Header=\$ac_header_preproc"
21777fi
21778ac_res=`eval 'as_val=${'$as_ac_Header'}
21779 $as_echo "$as_val"'`
21780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21781$as_echo "$ac_res" >&6; }
21782
21783fi
21784if test `eval 'as_val=${'$as_ac_Header'}
21785 $as_echo "$as_val"'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21788_ACEOF
21789
21790fi
21791
21792done
21793
21794{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
21795$as_echo_n "checking for working chown... " >&6; }
21796if test "${ac_cv_func_chown_works+set}" = set; then
21797 $as_echo_n "(cached) " >&6
21798else
21799 if test "$cross_compiling" = yes; then
21800 ac_cv_func_chown_works=no
21801else
21802 cat >conftest.$ac_ext <<_ACEOF
21803/* confdefs.h. */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h. */
21808$ac_includes_default
21809#include <fcntl.h>
21810
21811int
21812main ()
21813{
21814 char *f = "conftest.chown";
21815 struct stat before, after;
21816
21817 if (creat (f, 0600) < 0)
21818 return 1;
21819 if (stat (f, &before) < 0)
21820 return 1;
21821 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21822 return 1;
21823 if (stat (f, &after) < 0)
21824 return 1;
21825 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21826
21827 ;
21828 return 0;
21829}
21830_ACEOF
21831rm -f conftest$ac_exeext
21832if { (ac_try="$ac_link"
21833case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21836esac
21837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838$as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>&5
21840 ac_status=$?
21841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21846esac
21847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21848$as_echo "$ac_try_echo") >&5
21849 (eval "$ac_try") 2>&5
21850 ac_status=$?
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_func_chown_works=yes
21854else
21855 $as_echo "$as_me: program exited with status $ac_status" >&5
21856$as_echo "$as_me: failed program was:" >&5
21857sed 's/^/| /' conftest.$ac_ext >&5
21858
21859( exit $ac_status )
21860ac_cv_func_chown_works=no
21861fi
21862rm -rf conftest.dSYM
21863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21864fi
21865
21866
21867rm -f conftest.chown
21868
21869fi
21870{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21871$as_echo "$ac_cv_func_chown_works" >&6; }
21872if test $ac_cv_func_chown_works = yes; then
21873
21874cat >>confdefs.h <<\_ACEOF
21875#define HAVE_CHOWN 1
21876_ACEOF
21877
21878fi
21879
21880
21881for ac_header in vfork.h
21882do
21883as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21886$as_echo_n "checking for $ac_header... " >&6; }
21887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21888 $as_echo_n "(cached) " >&6
21889fi
21890ac_res=`eval 'as_val=${'$as_ac_Header'}
21891 $as_echo "$as_val"'`
21892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21893$as_echo "$ac_res" >&6; }
21894else
21895 # Is the header compilable?
21896{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21897$as_echo_n "checking $ac_header usability... " >&6; }
21898cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904$ac_includes_default
21905#include <$ac_header>
21906_ACEOF
21907rm -f conftest.$ac_objext
21908if { (ac_try="$ac_compile"
21909case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912esac
21913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914$as_echo "$ac_try_echo") >&5
21915 (eval "$ac_compile") 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
21925 ac_header_compiler=yes
21926else
21927 $as_echo "$as_me: failed program was:" >&5
21928sed 's/^/| /' conftest.$ac_ext >&5
21929
21930 ac_header_compiler=no
21931fi
21932
21933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21935$as_echo "$ac_header_compiler" >&6; }
21936
21937# Is the header present?
21938{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21939$as_echo_n "checking $ac_header presence... " >&6; }
21940cat >conftest.$ac_ext <<_ACEOF
21941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
21946#include <$ac_header>
21947_ACEOF
21948if { (ac_try="$ac_cpp conftest.$ac_ext"
21949case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952esac
21953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21954$as_echo "$ac_try_echo") >&5
21955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21956 ac_status=$?
21957 grep -v '^ *+' conftest.er1 >conftest.err
21958 rm -f conftest.er1
21959 cat conftest.err >&5
21960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } >/dev/null && {
21962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21963 test ! -s conftest.err
21964 }; then
21965 ac_header_preproc=yes
21966else
21967 $as_echo "$as_me: failed program was:" >&5
21968sed 's/^/| /' conftest.$ac_ext >&5
21969
21970 ac_header_preproc=no
21971fi
21972
21973rm -f conftest.err conftest.$ac_ext
21974{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21975$as_echo "$ac_header_preproc" >&6; }
21976
21977# So? What about this header?
21978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21979 yes:no: )
21980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21981$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21983$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21984 ac_header_preproc=yes
21985 ;;
21986 no:yes:* )
21987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21988$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21990$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21992$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21994$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21996$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21998$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21999 ( cat <<\_ASBOX
22000## ----------------------------------------------- ##
22001## Report this to trustedbsd-audit@TrustesdBSD.org ##
22002## ----------------------------------------------- ##
22003_ASBOX
22004 ) | sed "s/^/$as_me: WARNING: /" >&2
22005 ;;
22006esac
22007{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22008$as_echo_n "checking for $ac_header... " >&6; }
22009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22010 $as_echo_n "(cached) " >&6
22011else
22012 eval "$as_ac_Header=\$ac_header_preproc"
22013fi
22014ac_res=`eval 'as_val=${'$as_ac_Header'}
22015 $as_echo "$as_val"'`
22016 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22017$as_echo "$ac_res" >&6; }
22018
22019fi
22020if test `eval 'as_val=${'$as_ac_Header'}
22021 $as_echo "$as_val"'` = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22024_ACEOF
22025
22026fi
22027
22028done
22029
22030
22031
22032for ac_func in fork vfork
22033do
22034as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22035{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22036$as_echo_n "checking for $ac_func... " >&6; }
22037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22038 $as_echo_n "(cached) " >&6
22039else
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22048#define $ac_func innocuous_$ac_func
22049
22050/* System header to define __stub macros and hopefully few prototypes,
22051 which can conflict with char $ac_func (); below.
22052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22053 <limits.h> exists even on freestanding compilers. */
22054
22055#ifdef __STDC__
22056# include <limits.h>
22057#else
22058# include <assert.h>
22059#endif
22060
22061#undef $ac_func
22062
22063/* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22066#ifdef __cplusplus
22067extern "C"
22068#endif
22069char $ac_func ();
22070/* The GNU C library defines this for functions which it implements
22071 to always fail with ENOSYS. Some functions are actually named
22072 something starting with __ and the normal name is an alias. */
22073#if defined __stub_$ac_func || defined __stub___$ac_func
22074choke me
22075#endif
22076
22077int
22078main ()
22079{
22080return $ac_func ();
22081 ;
22082 return 0;
22083}
22084_ACEOF
22085rm -f conftest.$ac_objext conftest$ac_exeext
22086if { (ac_try="$ac_link"
22087case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090esac
22091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22092$as_echo "$ac_try_echo") >&5
22093 (eval "$ac_link") 2>conftest.er1
22094 ac_status=$?
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
22098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } && {
22100 test -z "$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 } && test -s conftest$ac_exeext && {
22103 test "$cross_compiling" = yes ||
22104 $as_test_x conftest$ac_exeext
22105 }; then
22106 eval "$as_ac_var=yes"
22107else
22108 $as_echo "$as_me: failed program was:" >&5
22109sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 eval "$as_ac_var=no"
22112fi
22113
22114rm -rf conftest.dSYM
22115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22116 conftest$ac_exeext conftest.$ac_ext
22117fi
22118ac_res=`eval 'as_val=${'$as_ac_var'}
22119 $as_echo "$as_val"'`
22120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22121$as_echo "$ac_res" >&6; }
22122if test `eval 'as_val=${'$as_ac_var'}
22123 $as_echo "$as_val"'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22126_ACEOF
22127
22128fi
22129done
22130
22131if test "x$ac_cv_func_fork" = xyes; then
22132 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
22133$as_echo_n "checking for working fork... " >&6; }
22134if test "${ac_cv_func_fork_works+set}" = set; then
22135 $as_echo_n "(cached) " >&6
22136else
22137 if test "$cross_compiling" = yes; then
22138 ac_cv_func_fork_works=cross
22139else
22140 cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146$ac_includes_default
22147int
22148main ()
22149{
22150
22151 /* By Ruediger Kuhlmann. */
22152 return fork () < 0;
22153
22154 ;
22155 return 0;
22156}
22157_ACEOF
22158rm -f conftest$ac_exeext
22159if { (ac_try="$ac_link"
22160case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22163esac
22164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22165$as_echo "$ac_try_echo") >&5
22166 (eval "$ac_link") 2>&5
22167 ac_status=$?
22168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22170 { (case "(($ac_try" in
22171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22172 *) ac_try_echo=$ac_try;;
22173esac
22174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22175$as_echo "$ac_try_echo") >&5
22176 (eval "$ac_try") 2>&5
22177 ac_status=$?
22178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_cv_func_fork_works=yes
22181else
22182 $as_echo "$as_me: program exited with status $ac_status" >&5
22183$as_echo "$as_me: failed program was:" >&5
22184sed 's/^/| /' conftest.$ac_ext >&5
22185
22186( exit $ac_status )
22187ac_cv_func_fork_works=no
22188fi
22189rm -rf conftest.dSYM
22190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191fi
22192
22193
22194fi
22195{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22196$as_echo "$ac_cv_func_fork_works" >&6; }
22197
22198else
22199 ac_cv_func_fork_works=$ac_cv_func_fork
22200fi
22201if test "x$ac_cv_func_fork_works" = xcross; then
22202 case $host in
22203 *-*-amigaos* | *-*-msdosdjgpp*)
22204 # Override, as these systems have only a dummy fork() stub
22205 ac_cv_func_fork_works=no
22206 ;;
22207 *)
22208 ac_cv_func_fork_works=yes
22209 ;;
22210 esac
22211 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22212$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22213fi
22214ac_cv_func_vfork_works=$ac_cv_func_vfork
22215if test "x$ac_cv_func_vfork" = xyes; then
22216 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
22217$as_echo_n "checking for working vfork... " >&6; }
22218if test "${ac_cv_func_vfork_works+set}" = set; then
22219 $as_echo_n "(cached) " >&6
22220else
22221 if test "$cross_compiling" = yes; then
22222 ac_cv_func_vfork_works=cross
22223else
22224 cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h. */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h. */
22230/* Thanks to Paul Eggert for this test. */
22231$ac_includes_default
22232#include <sys/wait.h>
22233#ifdef HAVE_VFORK_H
22234# include <vfork.h>
22235#endif
22236/* On some sparc systems, changes by the child to local and incoming
22237 argument registers are propagated back to the parent. The compiler
22238 is told about this with #include <vfork.h>, but some compilers
22239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22240 static variable whose address is put into a register that is
22241 clobbered by the vfork. */
22242static void
22243#ifdef __cplusplus
22244sparc_address_test (int arg)
22245# else
22246sparc_address_test (arg) int arg;
22247#endif
22248{
22249 static pid_t child;
22250 if (!child) {
22251 child = vfork ();
22252 if (child < 0) {
22253 perror ("vfork");
22254 _exit(2);
22255 }
22256 if (!child) {
22257 arg = getpid();
22258 write(-1, "", 0);
22259 _exit (arg);
22260 }
22261 }
22262}
22263
22264int
22265main ()
22266{
22267 pid_t parent = getpid ();
22268 pid_t child;
22269
22270 sparc_address_test (0);
22271
22272 child = vfork ();
22273
22274 if (child == 0) {
22275 /* Here is another test for sparc vfork register problems. This
22276 test uses lots of local variables, at least as many local
22277 variables as main has allocated so far including compiler
22278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22280 reuse the register of parent for one of the local variables,
22281 since it will think that parent can't possibly be used any more
22282 in this routine. Assigning to the local variable will thus
22283 munge parent in the parent process. */
22284 pid_t
22285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22287 /* Convince the compiler that p..p7 are live; otherwise, it might
22288 use the same hardware register for all 8 local variables. */
22289 if (p != p1 || p != p2 || p != p3 || p != p4
22290 || p != p5 || p != p6 || p != p7)
22291 _exit(1);
22292
22293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22294 from child file descriptors. If the child closes a descriptor
22295 before it execs or exits, this munges the parent's descriptor
22296 as well. Test for this by closing stdout in the child. */
22297 _exit(close(fileno(stdout)) != 0);
22298 } else {
22299 int status;
22300 struct stat st;
22301
22302 while (wait(&status) != child)
22303 ;
22304 return (
22305 /* Was there some problem with vforking? */
22306 child < 0
22307
22308 /* Did the child fail? (This shouldn't happen.) */
22309 || status
22310
22311 /* Did the vfork/compiler bug occur? */
22312 || parent != getpid()
22313
22314 /* Did the file descriptor bug occur? */
22315 || fstat(fileno(stdout), &st) != 0
22316 );
22317 }
22318}
22319_ACEOF
22320rm -f conftest$ac_exeext
22321if { (ac_try="$ac_link"
22322case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325esac
22326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22327$as_echo "$ac_try_echo") >&5
22328 (eval "$ac_link") 2>&5
22329 ac_status=$?
22330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22332 { (case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22335esac
22336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22337$as_echo "$ac_try_echo") >&5
22338 (eval "$ac_try") 2>&5
22339 ac_status=$?
22340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ac_cv_func_vfork_works=yes
22343else
22344 $as_echo "$as_me: program exited with status $ac_status" >&5
22345$as_echo "$as_me: failed program was:" >&5
22346sed 's/^/| /' conftest.$ac_ext >&5
22347
22348( exit $ac_status )
22349ac_cv_func_vfork_works=no
22350fi
22351rm -rf conftest.dSYM
22352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22353fi
22354
22355
22356fi
22357{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22358$as_echo "$ac_cv_func_vfork_works" >&6; }
22359
22360fi;
22361if test "x$ac_cv_func_fork_works" = xcross; then
22362 ac_cv_func_vfork_works=$ac_cv_func_vfork
22363 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22364$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22365fi
22366
22367if test "x$ac_cv_func_vfork_works" = xyes; then
22368
22369cat >>confdefs.h <<\_ACEOF
22370#define HAVE_WORKING_VFORK 1
22371_ACEOF
22372
22373else
22374
22375cat >>confdefs.h <<\_ACEOF
22376#define vfork fork
22377_ACEOF
22378
22379fi
22380if test "x$ac_cv_func_fork_works" = xyes; then
22381
22382cat >>confdefs.h <<\_ACEOF
22383#define HAVE_WORKING_FORK 1
22384_ACEOF
22385
22386fi
22387
22388
22389for ac_header in stdlib.h
22390do
22391as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22394$as_echo_n "checking for $ac_header... " >&6; }
22395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22396 $as_echo_n "(cached) " >&6
22397fi
22398ac_res=`eval 'as_val=${'$as_ac_Header'}
22399 $as_echo "$as_val"'`
22400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22401$as_echo "$ac_res" >&6; }
22402else
22403 # Is the header compilable?
22404{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22405$as_echo_n "checking $ac_header usability... " >&6; }
22406cat >conftest.$ac_ext <<_ACEOF
22407/* confdefs.h. */
22408_ACEOF
22409cat confdefs.h >>conftest.$ac_ext
22410cat >>conftest.$ac_ext <<_ACEOF
22411/* end confdefs.h. */
22412$ac_includes_default
22413#include <$ac_header>
22414_ACEOF
22415rm -f conftest.$ac_objext
22416if { (ac_try="$ac_compile"
22417case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420esac
22421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22422$as_echo "$ac_try_echo") >&5
22423 (eval "$ac_compile") 2>conftest.er1
22424 ac_status=$?
22425 grep -v '^ *+' conftest.er1 >conftest.err
22426 rm -f conftest.er1
22427 cat conftest.err >&5
22428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); } && {
22430 test -z "$ac_c_werror_flag" ||
22431 test ! -s conftest.err
22432 } && test -s conftest.$ac_objext; then
22433 ac_header_compiler=yes
22434else
22435 $as_echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
22438 ac_header_compiler=no
22439fi
22440
22441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22443$as_echo "$ac_header_compiler" >&6; }
22444
22445# Is the header present?
22446{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22447$as_echo_n "checking $ac_header presence... " >&6; }
22448cat >conftest.$ac_ext <<_ACEOF
22449/* confdefs.h. */
22450_ACEOF
22451cat confdefs.h >>conftest.$ac_ext
22452cat >>conftest.$ac_ext <<_ACEOF
22453/* end confdefs.h. */
22454#include <$ac_header>
22455_ACEOF
22456if { (ac_try="$ac_cpp conftest.$ac_ext"
22457case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460esac
22461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22462$as_echo "$ac_try_echo") >&5
22463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } >/dev/null && {
22470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22471 test ! -s conftest.err
22472 }; then
22473 ac_header_preproc=yes
22474else
22475 $as_echo "$as_me: failed program was:" >&5
22476sed 's/^/| /' conftest.$ac_ext >&5
22477
22478 ac_header_preproc=no
22479fi
22480
22481rm -f conftest.err conftest.$ac_ext
22482{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22483$as_echo "$ac_header_preproc" >&6; }
22484
22485# So? What about this header?
22486case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22487 yes:no: )
22488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22489$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22491$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22492 ac_header_preproc=yes
22493 ;;
22494 no:yes:* )
22495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22496$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22497 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22498$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22500$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22502$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22504$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22506$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22507 ( cat <<\_ASBOX
22508## ----------------------------------------------- ##
22509## Report this to trustedbsd-audit@TrustesdBSD.org ##
22510## ----------------------------------------------- ##
22511_ASBOX
22512 ) | sed "s/^/$as_me: WARNING: /" >&2
22513 ;;
22514esac
22515{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22516$as_echo_n "checking for $ac_header... " >&6; }
22517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22518 $as_echo_n "(cached) " >&6
22519else
22520 eval "$as_ac_Header=\$ac_header_preproc"
22521fi
22522ac_res=`eval 'as_val=${'$as_ac_Header'}
22523 $as_echo "$as_val"'`
22524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22525$as_echo "$ac_res" >&6; }
22526
22527fi
22528if test `eval 'as_val=${'$as_ac_Header'}
22529 $as_echo "$as_val"'` = yes; then
22530 cat >>confdefs.h <<_ACEOF
22531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22532_ACEOF
22533
22534fi
22535
22536done
22537
22538{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22539$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22540if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22541 $as_echo_n "(cached) " >&6
22542else
22543 if test "$cross_compiling" = yes; then
22544 ac_cv_func_malloc_0_nonnull=no
22545else
22546 cat >conftest.$ac_ext <<_ACEOF
22547/* confdefs.h. */
22548_ACEOF
22549cat confdefs.h >>conftest.$ac_ext
22550cat >>conftest.$ac_ext <<_ACEOF
22551/* end confdefs.h. */
22552#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22553# include <stdlib.h>
22554#else
22555char *malloc ();
22556#endif
22557
22558int
22559main ()
22560{
22561return ! malloc (0);
22562 ;
22563 return 0;
22564}
22565_ACEOF
22566rm -f conftest$ac_exeext
22567if { (ac_try="$ac_link"
22568case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22571esac
22572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573$as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>&5
22575 ac_status=$?
22576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22578 { (case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581esac
22582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22583$as_echo "$ac_try_echo") >&5
22584 (eval "$ac_try") 2>&5
22585 ac_status=$?
22586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_cv_func_malloc_0_nonnull=yes
22589else
22590 $as_echo "$as_me: program exited with status $ac_status" >&5
22591$as_echo "$as_me: failed program was:" >&5
22592sed 's/^/| /' conftest.$ac_ext >&5
22593
22594( exit $ac_status )
22595ac_cv_func_malloc_0_nonnull=no
22596fi
22597rm -rf conftest.dSYM
22598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22599fi
22600
22601
22602fi
22603{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22604$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22605if test $ac_cv_func_malloc_0_nonnull = yes; then
22606
22607cat >>confdefs.h <<\_ACEOF
22608#define HAVE_MALLOC 1
22609_ACEOF
22610
22611else
22612 cat >>confdefs.h <<\_ACEOF
22613#define HAVE_MALLOC 0
22614_ACEOF
22615
22616 case " $LIBOBJS " in
22617 *" malloc.$ac_objext "* ) ;;
22618 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22619 ;;
22620esac
22621
22622
22623cat >>confdefs.h <<\_ACEOF
22624#define malloc rpl_malloc
22625_ACEOF
22626
22627fi
22628
22629
22630
22631
22632
22633
22634
22635for ac_header in $ac_header_list
22636do
22637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22639 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22640$as_echo_n "checking for $ac_header... " >&6; }
22641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22642 $as_echo_n "(cached) " >&6
22643fi
22644ac_res=`eval 'as_val=${'$as_ac_Header'}
22645 $as_echo "$as_val"'`
22646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22647$as_echo "$ac_res" >&6; }
22648else
22649 # Is the header compilable?
22650{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22651$as_echo_n "checking $ac_header usability... " >&6; }
22652cat >conftest.$ac_ext <<_ACEOF
22653/* confdefs.h. */
22654_ACEOF
22655cat confdefs.h >>conftest.$ac_ext
22656cat >>conftest.$ac_ext <<_ACEOF
22657/* end confdefs.h. */
22658$ac_includes_default
22659#include <$ac_header>
22660_ACEOF
22661rm -f conftest.$ac_objext
22662if { (ac_try="$ac_compile"
22663case "(($ac_try" in
22664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665 *) ac_try_echo=$ac_try;;
22666esac
22667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22668$as_echo "$ac_try_echo") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_header_compiler=yes
22680else
22681 $as_echo "$as_me: failed program was:" >&5
22682sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 ac_header_compiler=no
22685fi
22686
22687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22689$as_echo "$ac_header_compiler" >&6; }
22690
22691# Is the header present?
22692{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22693$as_echo_n "checking $ac_header presence... " >&6; }
22694cat >conftest.$ac_ext <<_ACEOF
22695/* confdefs.h. */
22696_ACEOF
22697cat confdefs.h >>conftest.$ac_ext
22698cat >>conftest.$ac_ext <<_ACEOF
22699/* end confdefs.h. */
22700#include <$ac_header>
22701_ACEOF
22702if { (ac_try="$ac_cpp conftest.$ac_ext"
22703case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706esac
22707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22708$as_echo "$ac_try_echo") >&5
22709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22710 ac_status=$?
22711 grep -v '^ *+' conftest.er1 >conftest.err
22712 rm -f conftest.er1
22713 cat conftest.err >&5
22714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); } >/dev/null && {
22716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22717 test ! -s conftest.err
22718 }; then
22719 ac_header_preproc=yes
22720else
22721 $as_echo "$as_me: failed program was:" >&5
22722sed 's/^/| /' conftest.$ac_ext >&5
22723
22724 ac_header_preproc=no
22725fi
22726
22727rm -f conftest.err conftest.$ac_ext
22728{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22729$as_echo "$ac_header_preproc" >&6; }
22730
22731# So? What about this header?
22732case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22733 yes:no: )
22734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22735$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22737$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22738 ac_header_preproc=yes
22739 ;;
22740 no:yes:* )
22741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22742$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22744$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22746$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22748$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22750$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22752$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22753 ( cat <<\_ASBOX
22754## ----------------------------------------------- ##
22755## Report this to trustedbsd-audit@TrustesdBSD.org ##
22756## ----------------------------------------------- ##
22757_ASBOX
22758 ) | sed "s/^/$as_me: WARNING: /" >&2
22759 ;;
22760esac
22761{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22762$as_echo_n "checking for $ac_header... " >&6; }
22763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22764 $as_echo_n "(cached) " >&6
22765else
22766 eval "$as_ac_Header=\$ac_header_preproc"
22767fi
22768ac_res=`eval 'as_val=${'$as_ac_Header'}
22769 $as_echo "$as_val"'`
22770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22771$as_echo "$ac_res" >&6; }
22772
22773fi
22774if test `eval 'as_val=${'$as_ac_Header'}
22775 $as_echo "$as_val"'` = yes; then
22776 cat >>confdefs.h <<_ACEOF
22777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22778_ACEOF
22779
22780fi
22781
22782done
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792for ac_func in $ac_func_list
22793do
22794as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22795{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22796$as_echo_n "checking for $ac_func... " >&6; }
22797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22798 $as_echo_n "(cached) " >&6
22799else
22800 cat >conftest.$ac_ext <<_ACEOF
22801/* confdefs.h. */
22802_ACEOF
22803cat confdefs.h >>conftest.$ac_ext
22804cat >>conftest.$ac_ext <<_ACEOF
22805/* end confdefs.h. */
22806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22808#define $ac_func innocuous_$ac_func
22809
22810/* System header to define __stub macros and hopefully few prototypes,
22811 which can conflict with char $ac_func (); below.
22812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22813 <limits.h> exists even on freestanding compilers. */
22814
22815#ifdef __STDC__
22816# include <limits.h>
22817#else
22818# include <assert.h>
22819#endif
22820
22821#undef $ac_func
22822
22823/* Override any GCC internal prototype to avoid an error.
22824 Use char because int might match the return type of a GCC
22825 builtin and then its argument prototype would still apply. */
22826#ifdef __cplusplus
22827extern "C"
22828#endif
22829char $ac_func ();
22830/* The GNU C library defines this for functions which it implements
22831 to always fail with ENOSYS. Some functions are actually named
22832 something starting with __ and the normal name is an alias. */
22833#if defined __stub_$ac_func || defined __stub___$ac_func
22834choke me
22835#endif
22836
22837int
22838main ()
22839{
22840return $ac_func ();
22841 ;
22842 return 0;
22843}
22844_ACEOF
22845rm -f conftest.$ac_objext conftest$ac_exeext
22846if { (ac_try="$ac_link"
22847case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850esac
22851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22852$as_echo "$ac_try_echo") >&5
22853 (eval "$ac_link") 2>conftest.er1
22854 ac_status=$?
22855 grep -v '^ *+' conftest.er1 >conftest.err
22856 rm -f conftest.er1
22857 cat conftest.err >&5
22858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); } && {
22860 test -z "$ac_c_werror_flag" ||
22861 test ! -s conftest.err
22862 } && test -s conftest$ac_exeext && {
22863 test "$cross_compiling" = yes ||
22864 $as_test_x conftest$ac_exeext
22865 }; then
22866 eval "$as_ac_var=yes"
22867else
22868 $as_echo "$as_me: failed program was:" >&5
22869sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 eval "$as_ac_var=no"
22872fi
22873
22874rm -rf conftest.dSYM
22875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22876 conftest$ac_exeext conftest.$ac_ext
22877fi
22878ac_res=`eval 'as_val=${'$as_ac_var'}
22879 $as_echo "$as_val"'`
22880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22881$as_echo "$ac_res" >&6; }
22882if test `eval 'as_val=${'$as_ac_var'}
22883 $as_echo "$as_val"'` = yes; then
22884 cat >>confdefs.h <<_ACEOF
22885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22886_ACEOF
22887
22888fi
22889done
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
22908$as_echo_n "checking for working mktime... " >&6; }
22909if test "${ac_cv_func_working_mktime+set}" = set; then
22910 $as_echo_n "(cached) " >&6
22911else
22912 if test "$cross_compiling" = yes; then
22913 ac_cv_func_working_mktime=no
22914else
22915 cat >conftest.$ac_ext <<_ACEOF
22916/* confdefs.h. */
22917_ACEOF
22918cat confdefs.h >>conftest.$ac_ext
22919cat >>conftest.$ac_ext <<_ACEOF
22920/* end confdefs.h. */
22921/* Test program from Paul Eggert and Tony Leneis. */
22922#ifdef TIME_WITH_SYS_TIME
22923# include <sys/time.h>
22924# include <time.h>
22925#else
22926# ifdef HAVE_SYS_TIME_H
22927# include <sys/time.h>
22928# else
22929# include <time.h>
22930# endif
22931#endif
22932
22933#include <limits.h>
22934#include <stdlib.h>
22935
22936#ifdef HAVE_UNISTD_H
22937# include <unistd.h>
22938#endif
22939
22940#ifndef HAVE_ALARM
22941# define alarm(X) /* empty */
22942#endif
22943
22944/* Work around redefinition to rpl_putenv by other config tests. */
22945#undef putenv
22946
22947static time_t time_t_max;
22948static time_t time_t_min;
22949
22950/* Values we'll use to set the TZ environment variable. */
22951static char *tz_strings[] = {
22952 (char *) 0, "TZ=GMT0", "TZ=JST-9",
22953 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22954};
22955#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22956
22957/* Return 0 if mktime fails to convert a date in the spring-forward gap.
22958 Based on a problem report from Andreas Jaeger. */
22959static int
22960spring_forward_gap ()
22961{
22962 /* glibc (up to about 1998-10-07) failed this test. */
22963 struct tm tm;
22964
22965 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22966 instead of "TZ=America/Vancouver" in order to detect the bug even
22967 on systems that don't support the Olson extension, or don't have the
22968 full zoneinfo tables installed. */
22969 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22970
22971 tm.tm_year = 98;
22972 tm.tm_mon = 3;
22973 tm.tm_mday = 5;
22974 tm.tm_hour = 2;
22975 tm.tm_min = 0;
22976 tm.tm_sec = 0;
22977 tm.tm_isdst = -1;
22978 return mktime (&tm) != (time_t) -1;
22979}
22980
22981static int
22982mktime_test1 (now)
22983 time_t now;
22984{
22985 struct tm *lt;
22986 return ! (lt = localtime (&now)) || mktime (lt) == now;
22987}
22988
22989static int
22990mktime_test (now)
22991 time_t now;
22992{
22993 return (mktime_test1 (now)
22994 && mktime_test1 ((time_t) (time_t_max - now))
22995 && mktime_test1 ((time_t) (time_t_min + now)));
22996}
22997
22998static int
22999irix_6_4_bug ()
23000{
23001 /* Based on code from Ariel Faigon. */
23002 struct tm tm;
23003 tm.tm_year = 96;
23004 tm.tm_mon = 3;
23005 tm.tm_mday = 0;
23006 tm.tm_hour = 0;
23007 tm.tm_min = 0;
23008 tm.tm_sec = 0;
23009 tm.tm_isdst = -1;
23010 mktime (&tm);
23011 return tm.tm_mon == 2 && tm.tm_mday == 31;
23012}
23013
23014static int
23015bigtime_test (j)
23016 int j;
23017{
23018 struct tm tm;
23019 time_t now;
23020 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
23021 now = mktime (&tm);
23022 if (now != (time_t) -1)
23023 {
23024 struct tm *lt = localtime (&now);
23025 if (! (lt
23026 && lt->tm_year == tm.tm_year
23027 && lt->tm_mon == tm.tm_mon
23028 && lt->tm_mday == tm.tm_mday
23029 && lt->tm_hour == tm.tm_hour
23030 && lt->tm_min == tm.tm_min
23031 && lt->tm_sec == tm.tm_sec
23032 && lt->tm_yday == tm.tm_yday
23033 && lt->tm_wday == tm.tm_wday
23034 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
23035 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
23036 return 0;
23037 }
23038 return 1;
23039}
23040
23041static int
23042year_2050_test ()
23043{
23044 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
23045 ignoring leap seconds. */
23046 unsigned long int answer = 2527315200UL;
23047
23048 struct tm tm;
23049 time_t t;
23050 tm.tm_year = 2050 - 1900;
23051 tm.tm_mon = 2 - 1;
23052 tm.tm_mday = 1;
23053 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
23054 tm.tm_isdst = -1;
23055
23056 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
23057 instead of "TZ=America/Vancouver" in order to detect the bug even
23058 on systems that don't support the Olson extension, or don't have the
23059 full zoneinfo tables installed. */
23060 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
23061
23062 t = mktime (&tm);
23063
23064 /* Check that the result is either a failure, or close enough
23065 to the correct answer that we can assume the discrepancy is
23066 due to leap seconds. */
23067 return (t == (time_t) -1
23068 || (0 < t && answer - 120 <= t && t <= answer + 120));
23069}
23070
23071int
23072main ()
23073{
23074 time_t t, delta;
23075 int i, j;
23076
23077 /* This test makes some buggy mktime implementations loop.
23078 Give up after 60 seconds; a mktime slower than that
23079 isn't worth using anyway. */
23080 alarm (60);
23081
23082 for (;;)
23083 {
23084 t = (time_t_max << 1) + 1;
23085 if (t <= time_t_max)
23086 break;
23087 time_t_max = t;
23088 }
23089 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
23090
23091 delta = time_t_max / 997; /* a suitable prime number */
23092 for (i = 0; i < N_STRINGS; i++)
23093 {
23094 if (tz_strings[i])
23095 putenv (tz_strings[i]);
23096
23097 for (t = 0; t <= time_t_max - delta; t += delta)
23098 if (! mktime_test (t))
23099 return 1;
23100 if (! (mktime_test ((time_t) 1)
23101 && mktime_test ((time_t) (60 * 60))
23102 && mktime_test ((time_t) (60 * 60 * 24))))
23103 return 1;
23104
23105 for (j = 1; ; j <<= 1)
23106 if (! bigtime_test (j))
23107 return 1;
23108 else if (INT_MAX / 2 < j)
23109 break;
23110 if (! bigtime_test (INT_MAX))
23111 return 1;
23112 }
23113 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
23114}
23115_ACEOF
23116rm -f conftest$ac_exeext
23117if { (ac_try="$ac_link"
23118case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23121esac
23122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123$as_echo "$ac_try_echo") >&5
23124 (eval "$ac_link") 2>&5
23125 ac_status=$?
23126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23128 { (case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23131esac
23132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23133$as_echo "$ac_try_echo") >&5
23134 (eval "$ac_try") 2>&5
23135 ac_status=$?
23136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 ac_cv_func_working_mktime=yes
23139else
23140 $as_echo "$as_me: program exited with status $ac_status" >&5
23141$as_echo "$as_me: failed program was:" >&5
23142sed 's/^/| /' conftest.$ac_ext >&5
23143
23144( exit $ac_status )
23145ac_cv_func_working_mktime=no
23146fi
23147rm -rf conftest.dSYM
23148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23149fi
23150
23151
23152fi
23153{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
23154$as_echo "$ac_cv_func_working_mktime" >&6; }
23155if test $ac_cv_func_working_mktime = no; then
23156 case " $LIBOBJS " in
23157 *" mktime.$ac_objext "* ) ;;
23158 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
23159 ;;
23160esac
23161
23162fi
23163
23164{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23165$as_echo_n "checking return type of signal handlers... " >&6; }
23166if test "${ac_cv_type_signal+set}" = set; then
23167 $as_echo_n "(cached) " >&6
23168else
23169 cat >conftest.$ac_ext <<_ACEOF
23170/* confdefs.h. */
23171_ACEOF
23172cat confdefs.h >>conftest.$ac_ext
23173cat >>conftest.$ac_ext <<_ACEOF
23174/* end confdefs.h. */
23175#include <sys/types.h>
23176#include <signal.h>
23177
23178int
23179main ()
23180{
23181return *(signal (0, 0)) (0) == 1;
23182 ;
23183 return 0;
23184}
23185_ACEOF
23186rm -f conftest.$ac_objext
23187if { (ac_try="$ac_compile"
23188case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23191esac
23192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23193$as_echo "$ac_try_echo") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23195 ac_status=$?
23196 grep -v '^ *+' conftest.er1 >conftest.err
23197 rm -f conftest.er1
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_cv_type_signal=int
23205else
23206 $as_echo "$as_me: failed program was:" >&5
23207sed 's/^/| /' conftest.$ac_ext >&5
23208
23209 ac_cv_type_signal=void
23210fi
23211
23212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213fi
23214{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23215$as_echo "$ac_cv_type_signal" >&6; }
23216
23217cat >>confdefs.h <<_ACEOF
23218#define RETSIGTYPE $ac_cv_type_signal
23219_ACEOF
23220
23221
23222{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
23223$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
23224if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
23225 $as_echo_n "(cached) " >&6
23226else
23227 rm -f conftest.sym conftest.file
23228echo >conftest.file
23229if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23230 if test "$cross_compiling" = yes; then
23231 ac_cv_func_lstat_dereferences_slashed_symlink=no
23232else
23233 cat >conftest.$ac_ext <<_ACEOF
23234/* confdefs.h. */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h. */
23239$ac_includes_default
23240int
23241main ()
23242{
23243struct stat sbuf;
23244 /* Linux will dereference the symlink and fail.
23245 That is better in the sense that it means we will not
23246 have to compile and use the lstat wrapper. */
23247 return lstat ("conftest.sym/", &sbuf) == 0;
23248 ;
23249 return 0;
23250}
23251_ACEOF
23252rm -f conftest$ac_exeext
23253if { (ac_try="$ac_link"
23254case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23257esac
23258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23259$as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>&5
23261 ac_status=$?
23262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23267esac
23268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23269$as_echo "$ac_try_echo") >&5
23270 (eval "$ac_try") 2>&5
23271 ac_status=$?
23272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23275else
23276 $as_echo "$as_me: program exited with status $ac_status" >&5
23277$as_echo "$as_me: failed program was:" >&5
23278sed 's/^/| /' conftest.$ac_ext >&5
23279
23280( exit $ac_status )
23281ac_cv_func_lstat_dereferences_slashed_symlink=no
23282fi
23283rm -rf conftest.dSYM
23284rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23285fi
23286
23287
23288else
23289 # If the `ln -s' command failed, then we probably don't even
23290 # have an lstat function.
23291 ac_cv_func_lstat_dereferences_slashed_symlink=no
23292fi
23293rm -f conftest.sym conftest.file
23294
23295fi
23296{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23297$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23298
23299test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23300
23301cat >>confdefs.h <<_ACEOF
23302#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23303_ACEOF
23304
23305
23306if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23307 case " $LIBOBJS " in
23308 *" lstat.$ac_objext "* ) ;;
23309 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
23310 ;;
23311esac
23312
23313fi
23314
23315{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
23316$as_echo_n "checking whether stat accepts an empty string... " >&6; }
23317if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
23318 $as_echo_n "(cached) " >&6
23319else
23320 if test "$cross_compiling" = yes; then
23321 ac_cv_func_stat_empty_string_bug=yes
23322else
23323 cat >conftest.$ac_ext <<_ACEOF
23324/* confdefs.h. */
23325_ACEOF
23326cat confdefs.h >>conftest.$ac_ext
23327cat >>conftest.$ac_ext <<_ACEOF
23328/* end confdefs.h. */
23329$ac_includes_default
23330int
23331main ()
23332{
23333struct stat sbuf;
23334 return stat ("", &sbuf) == 0;
23335 ;
23336 return 0;
23337}
23338_ACEOF
23339rm -f conftest$ac_exeext
23340if { (ac_try="$ac_link"
23341case "(($ac_try" in
23342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23344esac
23345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346$as_echo "$ac_try_echo") >&5
23347 (eval "$ac_link") 2>&5
23348 ac_status=$?
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23351 { (case "(($ac_try" in
23352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353 *) ac_try_echo=$ac_try;;
23354esac
23355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23356$as_echo "$ac_try_echo") >&5
23357 (eval "$ac_try") 2>&5
23358 ac_status=$?
23359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; }; then
23361 ac_cv_func_stat_empty_string_bug=no
23362else
23363 $as_echo "$as_me: program exited with status $ac_status" >&5
23364$as_echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367( exit $ac_status )
23368ac_cv_func_stat_empty_string_bug=yes
23369fi
23370rm -rf conftest.dSYM
23371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23372fi
23373
23374
23375fi
23376{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
23377$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
23378if test $ac_cv_func_stat_empty_string_bug = yes; then
23379 case " $LIBOBJS " in
23380 *" stat.$ac_objext "* ) ;;
23381 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
23382 ;;
23383esac
23384
23385
23386cat >>confdefs.h <<_ACEOF
23387#define HAVE_STAT_EMPTY_STRING_BUG 1
23388_ACEOF
23389
23390fi
23391
23392
23393for ac_func in strftime
23394do
23395as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23396{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23397$as_echo_n "checking for $ac_func... " >&6; }
23398if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23399 $as_echo_n "(cached) " >&6
23400else
23401 cat >conftest.$ac_ext <<_ACEOF
23402/* confdefs.h. */
23403_ACEOF
23404cat confdefs.h >>conftest.$ac_ext
23405cat >>conftest.$ac_ext <<_ACEOF
23406/* end confdefs.h. */
23407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23409#define $ac_func innocuous_$ac_func
23410
23411/* System header to define __stub macros and hopefully few prototypes,
23412 which can conflict with char $ac_func (); below.
23413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23414 <limits.h> exists even on freestanding compilers. */
23415
23416#ifdef __STDC__
23417# include <limits.h>
23418#else
23419# include <assert.h>
23420#endif
23421
23422#undef $ac_func
23423
23424/* Override any GCC internal prototype to avoid an error.
23425 Use char because int might match the return type of a GCC
23426 builtin and then its argument prototype would still apply. */
23427#ifdef __cplusplus
23428extern "C"
23429#endif
23430char $ac_func ();
23431/* The GNU C library defines this for functions which it implements
23432 to always fail with ENOSYS. Some functions are actually named
23433 something starting with __ and the normal name is an alias. */
23434#if defined __stub_$ac_func || defined __stub___$ac_func
23435choke me
23436#endif
23437
23438int
23439main ()
23440{
23441return $ac_func ();
23442 ;
23443 return 0;
23444}
23445_ACEOF
23446rm -f conftest.$ac_objext conftest$ac_exeext
23447if { (ac_try="$ac_link"
23448case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23451esac
23452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23453$as_echo "$ac_try_echo") >&5
23454 (eval "$ac_link") 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && {
23461 test -z "$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23463 } && test -s conftest$ac_exeext && {
23464 test "$cross_compiling" = yes ||
23465 $as_test_x conftest$ac_exeext
23466 }; then
23467 eval "$as_ac_var=yes"
23468else
23469 $as_echo "$as_me: failed program was:" >&5
23470sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 eval "$as_ac_var=no"
23473fi
23474
23475rm -rf conftest.dSYM
23476rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23477 conftest$ac_exeext conftest.$ac_ext
23478fi
23479ac_res=`eval 'as_val=${'$as_ac_var'}
23480 $as_echo "$as_val"'`
23481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23482$as_echo "$ac_res" >&6; }
23483if test `eval 'as_val=${'$as_ac_var'}
23484 $as_echo "$as_val"'` = yes; then
23485 cat >>confdefs.h <<_ACEOF
23486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23487_ACEOF
23488
23489else
23490 # strftime is in -lintl on SCO UNIX.
23491{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
23492$as_echo_n "checking for strftime in -lintl... " >&6; }
23493if test "${ac_cv_lib_intl_strftime+set}" = set; then
23494 $as_echo_n "(cached) " >&6
23495else
23496 ac_check_lib_save_LIBS=$LIBS
23497LIBS="-lintl $LIBS"
23498cat >conftest.$ac_ext <<_ACEOF
23499/* confdefs.h. */
23500_ACEOF
23501cat confdefs.h >>conftest.$ac_ext
23502cat >>conftest.$ac_ext <<_ACEOF
23503/* end confdefs.h. */
23504
23505/* Override any GCC internal prototype to avoid an error.
23506 Use char because int might match the return type of a GCC
23507 builtin and then its argument prototype would still apply. */
23508#ifdef __cplusplus
23509extern "C"
23510#endif
23511char strftime ();
23512int
23513main ()
23514{
23515return strftime ();
23516 ;
23517 return 0;
23518}
23519_ACEOF
23520rm -f conftest.$ac_objext conftest$ac_exeext
23521if { (ac_try="$ac_link"
23522case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23525esac
23526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23527$as_echo "$ac_try_echo") >&5
23528 (eval "$ac_link") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest$ac_exeext && {
23538 test "$cross_compiling" = yes ||
23539 $as_test_x conftest$ac_exeext
23540 }; then
23541 ac_cv_lib_intl_strftime=yes
23542else
23543 $as_echo "$as_me: failed program was:" >&5
23544sed 's/^/| /' conftest.$ac_ext >&5
23545
23546 ac_cv_lib_intl_strftime=no
23547fi
23548
23549rm -rf conftest.dSYM
23550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23551 conftest$ac_exeext conftest.$ac_ext
23552LIBS=$ac_check_lib_save_LIBS
23553fi
23554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
23555$as_echo "$ac_cv_lib_intl_strftime" >&6; }
23556if test $ac_cv_lib_intl_strftime = yes; then
23557 cat >>confdefs.h <<\_ACEOF
23558#define HAVE_STRFTIME 1
23559_ACEOF
23560
23561LIBS="-lintl $LIBS"
23562fi
23563
23564fi
23565done
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
23583do
23584as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23585{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23586$as_echo_n "checking for $ac_func... " >&6; }
23587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23588 $as_echo_n "(cached) " >&6
23589else
23590 cat >conftest.$ac_ext <<_ACEOF
23591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
23596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23598#define $ac_func innocuous_$ac_func
23599
23600/* System header to define __stub macros and hopefully few prototypes,
23601 which can conflict with char $ac_func (); below.
23602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23603 <limits.h> exists even on freestanding compilers. */
23604
23605#ifdef __STDC__
23606# include <limits.h>
23607#else
23608# include <assert.h>
23609#endif
23610
23611#undef $ac_func
23612
23613/* Override any GCC internal prototype to avoid an error.
23614 Use char because int might match the return type of a GCC
23615 builtin and then its argument prototype would still apply. */
23616#ifdef __cplusplus
23617extern "C"
23618#endif
23619char $ac_func ();
23620/* The GNU C library defines this for functions which it implements
23621 to always fail with ENOSYS. Some functions are actually named
23622 something starting with __ and the normal name is an alias. */
23623#if defined __stub_$ac_func || defined __stub___$ac_func
23624choke me
23625#endif
23626
23627int
23628main ()
23629{
23630return $ac_func ();
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext conftest$ac_exeext
23636if { (ac_try="$ac_link"
23637case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23640esac
23641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642$as_echo "$ac_try_echo") >&5
23643 (eval "$ac_link") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest$ac_exeext && {
23653 test "$cross_compiling" = yes ||
23654 $as_test_x conftest$ac_exeext
23655 }; then
23656 eval "$as_ac_var=yes"
23657else
23658 $as_echo "$as_me: failed program was:" >&5
23659sed 's/^/| /' conftest.$ac_ext >&5
23660
23661 eval "$as_ac_var=no"
23662fi
23663
23664rm -rf conftest.dSYM
23665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23666 conftest$ac_exeext conftest.$ac_ext
23667fi
23668ac_res=`eval 'as_val=${'$as_ac_var'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671$as_echo "$ac_res" >&6; }
23672if test `eval 'as_val=${'$as_ac_var'}
23673 $as_echo "$as_val"'` = yes; then
23674 cat >>confdefs.h <<_ACEOF
23675#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23676_ACEOF
23677
23678fi
23679done
23680
23681
23682# sys/queue.h exists on most systems, but its capabilities vary a great deal.
23683# test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
23684# all of them, and are necessary for OpenBSM.
23685cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692 #include <sys/queue.h>
23693
23694int
23695main ()
23696{
23697
23698
23699 #ifndef LIST_FIRST
23700 #error LIST_FIRST missing
23701 #endif
23702 #ifndef TAILQ_FOREACH_SAFE
23703 #error TAILQ_FOREACH_SAFE
23704 #endif
23705
23706 ;
23707 return 0;
23708}
23709_ACEOF
23710rm -f conftest.$ac_objext conftest$ac_exeext
23711if { (ac_try="$ac_link"
23712case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715esac
23716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23717$as_echo "$ac_try_echo") >&5
23718 (eval "$ac_link") 2>conftest.er1
23719 ac_status=$?
23720 grep -v '^ *+' conftest.er1 >conftest.err
23721 rm -f conftest.er1
23722 cat conftest.err >&5
23723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); } && {
23725 test -z "$ac_c_werror_flag" ||
23726 test ! -s conftest.err
23727 } && test -s conftest$ac_exeext && {
23728 test "$cross_compiling" = yes ||
23729 $as_test_x conftest$ac_exeext
23730 }; then
23731
23732
23733cat >>confdefs.h <<\_ACEOF
23734#define HAVE_FULL_QUEUE_H /**/
23735_ACEOF
23736
23737
23738else
23739 $as_echo "$as_me: failed program was:" >&5
23740sed 's/^/| /' conftest.$ac_ext >&5
23741
23742
23743fi
23744
23745rm -rf conftest.dSYM
23746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23747 conftest$ac_exeext conftest.$ac_ext
23748
23749# Systems may not define key audit system calls, in which case libbsm cannot
23750# depend on them or it will generate link-time or run-time errors. Test for
23751# just one.
23752cat >conftest.$ac_ext <<_ACEOF
23753/* confdefs.h. */
23754_ACEOF
23755cat confdefs.h >>conftest.$ac_ext
23756cat >>conftest.$ac_ext <<_ACEOF
23757/* end confdefs.h. */
23758
23759 #include <stddef.h>
23760
23761 extern int auditon(int, void *, int);
23762
23763int
23764main ()
23765{
23766
23767 int err;
23768
23769 err = auditon(0, NULL, 0);
23770
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext conftest$ac_exeext
23776if { (ac_try="$ac_link"
23777case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780esac
23781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782$as_echo "$ac_try_echo") >&5
23783 (eval "$ac_link") 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest$ac_exeext && {
23793 test "$cross_compiling" = yes ||
23794 $as_test_x conftest$ac_exeext
23795 }; then
23796
23797
23798cat >>confdefs.h <<\_ACEOF
23799#define HAVE_AUDIT_SYSCALLS /**/
23800_ACEOF
23801
23802have_audit_syscalls=true
23803
23804else
23805 $as_echo "$as_me: failed program was:" >&5
23806sed 's/^/| /' conftest.$ac_ext >&5
23807
23808
23809have_audit_syscalls=false
23810
23811fi
23812
23813rm -rf conftest.dSYM
23814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23815 conftest$ac_exeext conftest.$ac_ext
23816 if $have_audit_syscalls; then
23817 HAVE_AUDIT_SYSCALLS_TRUE=
23818 HAVE_AUDIT_SYSCALLS_FALSE='#'
23819else
23820 HAVE_AUDIT_SYSCALLS_TRUE='#'
23821 HAVE_AUDIT_SYSCALLS_FALSE=
23822fi
23823
23824
23825#
23826# There are a wide variety of endian macros and functions in the wild; we try
23827# to use the native support if it defines be32enc(), but otherwise have to
23828# use our own.
23829#
23830cat >conftest.$ac_ext <<_ACEOF
23831/* confdefs.h. */
23832_ACEOF
23833cat confdefs.h >>conftest.$ac_ext
23834cat >>conftest.$ac_ext <<_ACEOF
23835/* end confdefs.h. */
23836
23837 #include <sys/endian.h>
23838 #include <stdlib.h>
23839
23840int
23841main ()
23842{
23843
23844 be32enc(NULL, 1);
23845
23846 ;
23847 return 0;
23848}
23849_ACEOF
23850rm -f conftest.$ac_objext conftest$ac_exeext
23851if { (ac_try="$ac_link"
23852case "(($ac_try" in
23853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854 *) ac_try_echo=$ac_try;;
23855esac
23856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23857$as_echo "$ac_try_echo") >&5
23858 (eval "$ac_link") 2>conftest.er1
23859 ac_status=$?
23860 grep -v '^ *+' conftest.er1 >conftest.err
23861 rm -f conftest.er1
23862 cat conftest.err >&5
23863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest$ac_exeext && {
23868 test "$cross_compiling" = yes ||
23869 $as_test_x conftest$ac_exeext
23870 }; then
23871
23872
23873cat >>confdefs.h <<\_ACEOF
23874#define HAVE_BE32ENC /**/
23875_ACEOF
23876
23877
23878else
23879 $as_echo "$as_me: failed program was:" >&5
23880sed 's/^/| /' conftest.$ac_ext >&5
23881
23882
23883fi
23884
23885rm -rf conftest.dSYM
23886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887 conftest$ac_exeext conftest.$ac_ext
23888
23889# Check to see if Mach IPC is used for trigger messages. If so, use Mach IPC
23890# instead of the default for sending trigger messages to the audit components.
23891{ $as_echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23892$as_echo_n "checking for /usr/include/mach/audit_triggers.defs... " >&6; }
23893if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23894 $as_echo_n "(cached) " >&6
23895else
23896 test "$cross_compiling" = yes &&
23897 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23898$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23899 { (exit 1); exit 1; }; }
23900if test -r "/usr/include/mach/audit_triggers.defs"; then
23901 ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23902else
23903 ac_cv_file__usr_include_mach_audit_triggers_defs=no
23904fi
23905fi
23906{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23907$as_echo "$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23908if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23909
23910
23911cat >>confdefs.h <<\_ACEOF
23912#define USE_MACH_IPC /**/
23913_ACEOF
23914
23915use_mach_ipc=true
23916
23917else
23918
23919use_mach_ipc=false
23920
23921fi
23922
23923 if $use_mach_ipc; then
23924 USE_MACH_IPC_TRUE=
23925 USE_MACH_IPC_FALSE='#'
23926else
23927 USE_MACH_IPC_TRUE='#'
23928 USE_MACH_IPC_FALSE=
23929fi
23930
23931
23932ac_config_files="$ac_config_files Makefile bin/Makefile bin/audit/Makefile bin/auditd/Makefile bin/auditfilterd/Makefile bin/auditreduce/Makefile bin/praudit/Makefile bsm/Makefile libauditd/Makefile libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile sys/Makefile sys/bsm/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
23933
23934
23935cat >confcache <<\_ACEOF
23936# This file is a shell script that caches the results of configure
23937# tests run on this system so they can be shared between configure
23938# scripts and configure runs, see configure's option --config-cache.
23939# It is not useful on other systems. If it contains results you don't
23940# want to keep, you may remove or edit it.
23941#
23942# config.status only pays attention to the cache file if you give it
23943# the --recheck option to rerun configure.
23944#
23945# `ac_cv_env_foo' variables (set or unset) will be overridden when
23946# loading this file, other *unset* `ac_cv_foo' will be assigned the
23947# following values.
23948
23949_ACEOF
23950
23951# The following way of writing the cache mishandles newlines in values,
23952# but we know of no workaround that is simple, portable, and efficient.
23953# So, we kill variables containing newlines.
23954# Ultrix sh set writes to stderr and can't be redirected directly,
23955# and sets the high bit in the cache file unless we assign to the vars.
23956(
23957 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23958 eval ac_val=\$$ac_var
23959 case $ac_val in #(
23960 *${as_nl}*)
23961 case $ac_var in #(
23962 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23963$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23964 esac
23965 case $ac_var in #(
23966 _ | IFS | as_nl) ;; #(
23967 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23968 *) $as_unset $ac_var ;;
23969 esac ;;
23970 esac
23971 done
23972
23973 (set) 2>&1 |
23974 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23975 *${as_nl}ac_space=\ *)
23976 # `set' does not quote correctly, so add quotes (double-quote
23977 # substitution turns \\\\ into \\, and sed turns \\ into \).
23978 sed -n \
23979 "s/'/'\\\\''/g;
23980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23981 ;; #(
23982 *)
23983 # `set' quotes correctly as required by POSIX, so do not add quotes.
23984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23985 ;;
23986 esac |
23987 sort
23988) |
23989 sed '
23990 /^ac_cv_env_/b end
23991 t clear
23992 :clear
23993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23994 t end
23995 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23996 :end' >>confcache
23997if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23998 if test -w "$cache_file"; then
23999 test "x$cache_file" != "x/dev/null" &&
24000 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24001$as_echo "$as_me: updating cache $cache_file" >&6;}
24002 cat confcache >$cache_file
24003 else
24004 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24005$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24006 fi
24007fi
24008rm -f confcache
24009
24010test "x$prefix" = xNONE && prefix=$ac_default_prefix
24011# Let make expand exec_prefix.
24012test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24013
24014DEFS=-DHAVE_CONFIG_H
24015
24016ac_libobjs=
24017ac_ltlibobjs=
24018for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24019 # 1. Remove the extension, and $U if already installed.
24020 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24021 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24022 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24023 # will be set to the directory where LIBOBJS objects are built.
24024 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24025 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24026done
24027LIBOBJS=$ac_libobjs
24028
24029LTLIBOBJS=$ac_ltlibobjs
24030
24031
24032if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24033 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24034Usually this means the macro was only invoked conditionally." >&5
24035$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24036Usually this means the macro was only invoked conditionally." >&2;}
24037 { (exit 1); exit 1; }; }
24038fi
24039if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
24040 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24041Usually this means the macro was only invoked conditionally." >&5
24042$as_echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
24043Usually this means the macro was only invoked conditionally." >&2;}
24044 { (exit 1); exit 1; }; }
24045fi
24046if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24047 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24048Usually this means the macro was only invoked conditionally." >&5
24049$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24050Usually this means the macro was only invoked conditionally." >&2;}
24051 { (exit 1); exit 1; }; }
24052fi
24053if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24054 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24055Usually this means the macro was only invoked conditionally." >&5
24056$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24057Usually this means the macro was only invoked conditionally." >&2;}
24058 { (exit 1); exit 1; }; }
24059fi
24060if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24061 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24062Usually this means the macro was only invoked conditionally." >&5
24063$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24064Usually this means the macro was only invoked conditionally." >&2;}
24065 { (exit 1); exit 1; }; }
24066fi
24067if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
24068 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24069Usually this means the macro was only invoked conditionally." >&5
24070$as_echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
24071Usually this means the macro was only invoked conditionally." >&2;}
24072 { (exit 1); exit 1; }; }
24073fi
24074if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
24075 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
24076Usually this means the macro was only invoked conditionally." >&5
24077$as_echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
24078Usually this means the macro was only invoked conditionally." >&2;}
24079 { (exit 1); exit 1; }; }
24080fi
24081
24082: ${CONFIG_STATUS=./config.status}
24083ac_write_fail=0
24084ac_clean_files_save=$ac_clean_files
24085ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24086{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24087$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24088cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24089#! $SHELL
24090# Generated by $as_me.
24091# Run this file to recreate the current configuration.
24092# Compiler output produced by configure, useful for debugging
24093# configure, is in config.log if it exists.
24094
24095debug=false
24096ac_cs_recheck=false
24097ac_cs_silent=false
24098SHELL=\${CONFIG_SHELL-$SHELL}
24099_ACEOF
24100
24101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24102## --------------------- ##
24103## M4sh Initialization. ##
24104## --------------------- ##
24105
24106# Be more Bourne compatible
24107DUALCASE=1; export DUALCASE # for MKS sh
24108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24109 emulate sh
24110 NULLCMD=:
24111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24112 # is contrary to our usage. Disable this feature.
24113 alias -g '${1+"$@"}'='"$@"'
24114 setopt NO_GLOB_SUBST
24115else
24116 case `(set -o) 2>/dev/null` in
24117 *posix*) set -o posix ;;
24118esac
24119
24120fi
24121
24122
24123
24124
24125# PATH needs CR
24126# Avoid depending upon Character Ranges.
24127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24130as_cr_digits='0123456789'
24131as_cr_alnum=$as_cr_Letters$as_cr_digits
24132
24133as_nl='
24134'
24135export as_nl
24136# Printing a long string crashes Solaris 7 /usr/bin/printf.
24137as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24140if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24141 as_echo='printf %s\n'
24142 as_echo_n='printf %s'
24143else
24144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24146 as_echo_n='/usr/ucb/echo -n'
24147 else
24148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24149 as_echo_n_body='eval
24150 arg=$1;
24151 case $arg in
24152 *"$as_nl"*)
24153 expr "X$arg" : "X\\(.*\\)$as_nl";
24154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24155 esac;
24156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24157 '
24158 export as_echo_n_body
24159 as_echo_n='sh -c $as_echo_n_body as_echo'
24160 fi
24161 export as_echo_body
24162 as_echo='sh -c $as_echo_body as_echo'
24163fi
24164
24165# The user is always right.
24166if test "${PATH_SEPARATOR+set}" != set; then
24167 PATH_SEPARATOR=:
24168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24170 PATH_SEPARATOR=';'
24171 }
24172fi
24173
24174# Support unset when possible.
24175if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24176 as_unset=unset
24177else
24178 as_unset=false
24179fi
24180
24181
24182# IFS
24183# We need space, tab and new line, in precisely that order. Quoting is
24184# there to prevent editors from complaining about space-tab.
24185# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24186# splitting by setting IFS to empty value.)
24187IFS=" "" $as_nl"
24188
24189# Find who we are. Look in the path if we contain no directory separator.
24190case $0 in
24191 *[\\/]* ) as_myself=$0 ;;
24192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193for as_dir in $PATH
24194do
24195 IFS=$as_save_IFS
24196 test -z "$as_dir" && as_dir=.
24197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24198done
24199IFS=$as_save_IFS
24200
24201 ;;
24202esac
24203# We did not find ourselves, most probably we were run as `sh COMMAND'
24204# in which case we are not to be found in the path.
24205if test "x$as_myself" = x; then
24206 as_myself=$0
24207fi
24208if test ! -f "$as_myself"; then
24209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24210 { (exit 1); exit 1; }
24211fi
24212
24213# Work around bugs in pre-3.0 UWIN ksh.
24214for as_var in ENV MAIL MAILPATH
24215do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24216done
24217PS1='$ '
24218PS2='> '
24219PS4='+ '
24220
24221# NLS nuisances.
24222LC_ALL=C
24223export LC_ALL
24224LANGUAGE=C
24225export LANGUAGE
24226
24227# Required to use basename.
24228if expr a : '\(a\)' >/dev/null 2>&1 &&
24229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24230 as_expr=expr
24231else
24232 as_expr=false
24233fi
24234
24235if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24236 as_basename=basename
24237else
24238 as_basename=false
24239fi
24240
24241
24242# Name of the executable.
24243as_me=`$as_basename -- "$0" ||
24244$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24245 X"$0" : 'X\(//\)$' \| \
24246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24247$as_echo X/"$0" |
24248 sed '/^.*\/\([^/][^/]*\)\/*$/{
24249 s//\1/
24250 q
24251 }
24252 /^X\/\(\/\/\)$/{
24253 s//\1/
24254 q
24255 }
24256 /^X\/\(\/\).*/{
24257 s//\1/
24258 q
24259 }
24260 s/.*/./; q'`
24261
24262# CDPATH.
24263$as_unset CDPATH
24264
24265
24266
24267 as_lineno_1=$LINENO
24268 as_lineno_2=$LINENO
24269 test "x$as_lineno_1" != "x$as_lineno_2" &&
24270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24271
24272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24273 # uniformly replaced by the line number. The first 'sed' inserts a
24274 # line-number line after each line using $LINENO; the second 'sed'
24275 # does the real work. The second script uses 'N' to pair each
24276 # line-number line with the line containing $LINENO, and appends
24277 # trailing '-' during substitution so that $LINENO is not a special
24278 # case at line end.
24279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24280 # scripts with optimization help from Paolo Bonzini. Blame Lee
24281 # E. McMahon (1931-1989) for sed's syntax. :-)
24282 sed -n '
24283 p
24284 /[$]LINENO/=
24285 ' <$as_myself |
24286 sed '
24287 s/[$]LINENO.*/&-/
24288 t lineno
24289 b
24290 :lineno
24291 N
24292 :loop
24293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24294 t loop
24295 s/-\n.*//
24296 ' >$as_me.lineno &&
24297 chmod +x "$as_me.lineno" ||
24298 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24299 { (exit 1); exit 1; }; }
24300
24301 # Don't try to exec as it changes $[0], causing all sort of problems
24302 # (the dirname of $[0] is not the place where we might find the
24303 # original and so on. Autoconf is especially sensitive to this).
24304 . "./$as_me.lineno"
24305 # Exit status is that of the last command.
24306 exit
24307}
24308
24309
24310if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24311 as_dirname=dirname
24312else
24313 as_dirname=false
24314fi
24315
24316ECHO_C= ECHO_N= ECHO_T=
24317case `echo -n x` in
24318-n*)
24319 case `echo 'x\c'` in
24320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24321 *) ECHO_C='\c';;
24322 esac;;
24323*)
24324 ECHO_N='-n';;
24325esac
24326if expr a : '\(a\)' >/dev/null 2>&1 &&
24327 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24328 as_expr=expr
24329else
24330 as_expr=false
24331fi
24332
24333rm -f conf$$ conf$$.exe conf$$.file
24334if test -d conf$$.dir; then
24335 rm -f conf$$.dir/conf$$.file
24336else
24337 rm -f conf$$.dir
24338 mkdir conf$$.dir 2>/dev/null
24339fi
24340if (echo >conf$$.file) 2>/dev/null; then
24341 if ln -s conf$$.file conf$$ 2>/dev/null; then
24342 as_ln_s='ln -s'
24343 # ... but there are two gotchas:
24344 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24345 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24346 # In both cases, we have to default to `cp -p'.
24347 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24348 as_ln_s='cp -p'
24349 elif ln conf$$.file conf$$ 2>/dev/null; then
24350 as_ln_s=ln
24351 else
24352 as_ln_s='cp -p'
24353 fi
24354else
24355 as_ln_s='cp -p'
24356fi
24357rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24358rmdir conf$$.dir 2>/dev/null
24359
24360if mkdir -p . 2>/dev/null; then
24361 as_mkdir_p=:
24362else
24363 test -d ./-p && rmdir ./-p
24364 as_mkdir_p=false
24365fi
24366
24367if test -x / >/dev/null 2>&1; then
24368 as_test_x='test -x'
24369else
24370 if ls -dL / >/dev/null 2>&1; then
24371 as_ls_L_option=L
24372 else
24373 as_ls_L_option=
24374 fi
24375 as_test_x='
24376 eval sh -c '\''
24377 if test -d "$1"; then
24378 test -d "$1/.";
24379 else
24380 case $1 in
24381 -*)set "./$1";;
24382 esac;
24383 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24384 ???[sx]*):;;*)false;;esac;fi
24385 '\'' sh
24386 '
24387fi
24388as_executable_p=$as_test_x
24389
24390# Sed expression to map a string onto a valid CPP name.
24391as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24392
24393# Sed expression to map a string onto a valid variable name.
24394as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24395
24396
24397exec 6>&1
24398
24399# Save the log message, to keep $[0] and so on meaningful, and to
24400# report actual input values of CONFIG_FILES etc. instead of their
24401# values after options handling.
24402ac_log="
24403This file was extended by OpenBSM $as_me 1.1p1, which was
24403This file was extended by OpenBSM $as_me 1.1p2, which was
24404generated by GNU Autoconf 2.62. Invocation command line was
24405
24406 CONFIG_FILES = $CONFIG_FILES
24407 CONFIG_HEADERS = $CONFIG_HEADERS
24408 CONFIG_LINKS = $CONFIG_LINKS
24409 CONFIG_COMMANDS = $CONFIG_COMMANDS
24410 $ $0 $@
24411
24412on `(hostname || uname -n) 2>/dev/null | sed 1q`
24413"
24414
24415_ACEOF
24416
24417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24418# Files that config.status was made for.
24419config_files="$ac_config_files"
24420config_headers="$ac_config_headers"
24421config_commands="$ac_config_commands"
24422
24423_ACEOF
24424
24425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24426ac_cs_usage="\
24427\`$as_me' instantiates files from templates according to the
24428current configuration.
24429
24430Usage: $0 [OPTIONS] [FILE]...
24431
24432 -h, --help print this help, then exit
24433 -V, --version print version number and configuration settings, then exit
24434 -q, --quiet do not print progress messages
24435 -d, --debug don't remove temporary files
24436 --recheck update $as_me by reconfiguring in the same conditions
24437 --file=FILE[:TEMPLATE]
24438 instantiate the configuration file FILE
24439 --header=FILE[:TEMPLATE]
24440 instantiate the configuration header FILE
24441
24442Configuration files:
24443$config_files
24444
24445Configuration headers:
24446$config_headers
24447
24448Configuration commands:
24449$config_commands
24450
24451Report bugs to <bug-autoconf@gnu.org>."
24452
24453_ACEOF
24454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24455ac_cs_version="\\
24404generated by GNU Autoconf 2.62. Invocation command line was
24405
24406 CONFIG_FILES = $CONFIG_FILES
24407 CONFIG_HEADERS = $CONFIG_HEADERS
24408 CONFIG_LINKS = $CONFIG_LINKS
24409 CONFIG_COMMANDS = $CONFIG_COMMANDS
24410 $ $0 $@
24411
24412on `(hostname || uname -n) 2>/dev/null | sed 1q`
24413"
24414
24415_ACEOF
24416
24417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24418# Files that config.status was made for.
24419config_files="$ac_config_files"
24420config_headers="$ac_config_headers"
24421config_commands="$ac_config_commands"
24422
24423_ACEOF
24424
24425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24426ac_cs_usage="\
24427\`$as_me' instantiates files from templates according to the
24428current configuration.
24429
24430Usage: $0 [OPTIONS] [FILE]...
24431
24432 -h, --help print this help, then exit
24433 -V, --version print version number and configuration settings, then exit
24434 -q, --quiet do not print progress messages
24435 -d, --debug don't remove temporary files
24436 --recheck update $as_me by reconfiguring in the same conditions
24437 --file=FILE[:TEMPLATE]
24438 instantiate the configuration file FILE
24439 --header=FILE[:TEMPLATE]
24440 instantiate the configuration header FILE
24441
24442Configuration files:
24443$config_files
24444
24445Configuration headers:
24446$config_headers
24447
24448Configuration commands:
24449$config_commands
24450
24451Report bugs to <bug-autoconf@gnu.org>."
24452
24453_ACEOF
24454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24455ac_cs_version="\\
24456OpenBSM config.status 1.1p1
24456OpenBSM config.status 1.1p2
24457configured by $0, generated by GNU Autoconf 2.62,
24458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24459
24460Copyright (C) 2008 Free Software Foundation, Inc.
24461This config.status script is free software; the Free Software Foundation
24462gives unlimited permission to copy, distribute and modify it."
24463
24464ac_pwd='$ac_pwd'
24465srcdir='$srcdir'
24466INSTALL='$INSTALL'
24467MKDIR_P='$MKDIR_P'
24468AWK='$AWK'
24469test -n "\$AWK" || AWK=awk
24470_ACEOF
24471
24472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24473# The default lists apply if the user does not specify any file.
24474ac_need_defaults=:
24475while test $# != 0
24476do
24477 case $1 in
24478 --*=*)
24479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24481 ac_shift=:
24482 ;;
24483 *)
24484 ac_option=$1
24485 ac_optarg=$2
24486 ac_shift=shift
24487 ;;
24488 esac
24489
24490 case $ac_option in
24491 # Handling of the options.
24492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24493 ac_cs_recheck=: ;;
24494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24495 $as_echo "$ac_cs_version"; exit ;;
24496 --debug | --debu | --deb | --de | --d | -d )
24497 debug=: ;;
24498 --file | --fil | --fi | --f )
24499 $ac_shift
24500 case $ac_optarg in
24501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24502 esac
24503 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24504 ac_need_defaults=false;;
24505 --header | --heade | --head | --hea )
24506 $ac_shift
24507 case $ac_optarg in
24508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24509 esac
24510 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24511 ac_need_defaults=false;;
24512 --he | --h)
24513 # Conflict between --help and --header
24514 { $as_echo "$as_me: error: ambiguous option: $1
24515Try \`$0 --help' for more information." >&2
24516 { (exit 1); exit 1; }; };;
24517 --help | --hel | -h )
24518 $as_echo "$ac_cs_usage"; exit ;;
24519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24521 ac_cs_silent=: ;;
24522
24523 # This is an error.
24524 -*) { $as_echo "$as_me: error: unrecognized option: $1
24525Try \`$0 --help' for more information." >&2
24526 { (exit 1); exit 1; }; } ;;
24527
24528 *) ac_config_targets="$ac_config_targets $1"
24529 ac_need_defaults=false ;;
24530
24531 esac
24532 shift
24533done
24534
24535ac_configure_extra_args=
24536
24537if $ac_cs_silent; then
24538 exec 6>/dev/null
24539 ac_configure_extra_args="$ac_configure_extra_args --silent"
24540fi
24541
24542_ACEOF
24543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24544if \$ac_cs_recheck; then
24545 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24546 shift
24547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24548 CONFIG_SHELL='$SHELL'
24549 export CONFIG_SHELL
24550 exec "\$@"
24551fi
24552
24553_ACEOF
24554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24555exec 5>>config.log
24556{
24557 echo
24558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24559## Running $as_me. ##
24560_ASBOX
24561 $as_echo "$ac_log"
24562} >&5
24563
24564_ACEOF
24565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24566#
24567# INIT-COMMANDS
24568#
24569AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24570
24571_ACEOF
24572
24573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24574
24575# Handling of arguments.
24576for ac_config_target in $ac_config_targets
24577do
24578 case $ac_config_target in
24579 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
24580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24581 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24582 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
24583 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
24584 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
24585 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
24586 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
24587 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
24588 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
24589 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
24590 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
24591 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24592 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
24593 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24594 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
24595 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
24596 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24597 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
24598 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24599
24600 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24601$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24602 { (exit 1); exit 1; }; };;
24603 esac
24604done
24605
24606
24607# If the user did not use the arguments to specify the items to instantiate,
24608# then the envvar interface is used. Set only those that are not.
24609# We use the long form for the default assignment because of an extremely
24610# bizarre bug on SunOS 4.1.3.
24611if $ac_need_defaults; then
24612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24615fi
24616
24617# Have a temporary directory for convenience. Make it in the build tree
24618# simply because there is no reason against having it here, and in addition,
24619# creating and moving files from /tmp can sometimes cause problems.
24620# Hook for its removal unless debugging.
24621# Note that there is a small window in which the directory will not be cleaned:
24622# after its creation but before its name has been assigned to `$tmp'.
24623$debug ||
24624{
24625 tmp=
24626 trap 'exit_status=$?
24627 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24628' 0
24629 trap '{ (exit 1); exit 1; }' 1 2 13 15
24630}
24631# Create a (secure) tmp directory for tmp files.
24632
24633{
24634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24635 test -n "$tmp" && test -d "$tmp"
24636} ||
24637{
24638 tmp=./conf$$-$RANDOM
24639 (umask 077 && mkdir "$tmp")
24640} ||
24641{
24642 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24643 { (exit 1); exit 1; }
24644}
24645
24646# Set up the scripts for CONFIG_FILES section.
24647# No need to generate them if there are no CONFIG_FILES.
24648# This happens for instance with `./config.status config.h'.
24649if test -n "$CONFIG_FILES"; then
24650
24651
24652ac_cr='
24653'
24654ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24655if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24656 ac_cs_awk_cr='\\r'
24657else
24658 ac_cs_awk_cr=$ac_cr
24659fi
24660
24661echo 'BEGIN {' >"$tmp/subs1.awk" &&
24662_ACEOF
24663
24664
24665{
24666 echo "cat >conf$$subs.awk <<_ACEOF" &&
24667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24668 echo "_ACEOF"
24669} >conf$$subs.sh ||
24670 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24671$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24672 { (exit 1); exit 1; }; }
24673ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24674ac_delim='%!_!# '
24675for ac_last_try in false false false false false :; do
24676 . ./conf$$subs.sh ||
24677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24678$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24679 { (exit 1); exit 1; }; }
24680
24681 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
24682 break
24683 elif $ac_last_try; then
24684 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24685$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24686 { (exit 1); exit 1; }; }
24687 else
24688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24689 fi
24690done
24691rm -f conf$$subs.sh
24692
24693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24694cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24695_ACEOF
24696sed -n '
24697h
24698s/^/S["/; s/!.*/"]=/
24699p
24700g
24701s/^[^!]*!//
24702:repl
24703t repl
24704s/'"$ac_delim"'$//
24705t delim
24706:nl
24707h
24708s/\(.\{148\}\).*/\1/
24709t more1
24710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24711p
24712n
24713b repl
24714:more1
24715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24716p
24717g
24718s/.\{148\}//
24719t nl
24720:delim
24721h
24722s/\(.\{148\}\).*/\1/
24723t more2
24724s/["\\]/\\&/g; s/^/"/; s/$/"/
24725p
24726b
24727:more2
24728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24729p
24730g
24731s/.\{148\}//
24732t delim
24733' <conf$$subs.awk | sed '
24734/^[^""]/{
24735 N
24736 s/\n//
24737}
24738' >>$CONFIG_STATUS || ac_write_fail=1
24739rm -f conf$$subs.awk
24740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24741_ACAWK
24742cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24743 for (key in S) S_is_set[key] = 1
24744 FS = ""
24745
24746}
24747{
24748 line = $ 0
24749 nfields = split(line, field, "@")
24750 substed = 0
24751 len = length(field[1])
24752 for (i = 2; i < nfields; i++) {
24753 key = field[i]
24754 keylen = length(key)
24755 if (S_is_set[key]) {
24756 value = S[key]
24757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24758 len += length(value) + length(field[++i])
24759 substed = 1
24760 } else
24761 len += 1 + keylen
24762 }
24763
24764 print line
24765}
24766
24767_ACAWK
24768_ACEOF
24769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24772else
24773 cat
24774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24775 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24776$as_echo "$as_me: error: could not setup config files machinery" >&2;}
24777 { (exit 1); exit 1; }; }
24778_ACEOF
24779
24780# VPATH may cause trouble with some makes, so we remove $(srcdir),
24781# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24782# trailing colons and then remove the whole line if VPATH becomes empty
24783# (actually we leave an empty line to preserve line numbers).
24784if test "x$srcdir" = x.; then
24785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24786s/:*\$(srcdir):*/:/
24787s/:*\${srcdir}:*/:/
24788s/:*@srcdir@:*/:/
24789s/^\([^=]*=[ ]*\):*/\1/
24790s/:*$//
24791s/^[^=]*=[ ]*$//
24792}'
24793fi
24794
24795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24796fi # test -n "$CONFIG_FILES"
24797
24798# Set up the scripts for CONFIG_HEADERS section.
24799# No need to generate them if there are no CONFIG_HEADERS.
24800# This happens for instance with `./config.status Makefile'.
24801if test -n "$CONFIG_HEADERS"; then
24802cat >"$tmp/defines.awk" <<\_ACAWK ||
24803BEGIN {
24804_ACEOF
24805
24806# Transform confdefs.h into an awk script `defines.awk', embedded as
24807# here-document in config.status, that substitutes the proper values into
24808# config.h.in to produce config.h.
24809
24810# Create a delimiter string that does not exist in confdefs.h, to ease
24811# handling of long lines.
24812ac_delim='%!_!# '
24813for ac_last_try in false false :; do
24814 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24815 if test -z "$ac_t"; then
24816 break
24817 elif $ac_last_try; then
24818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24819$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24820 { (exit 1); exit 1; }; }
24821 else
24822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24823 fi
24824done
24825
24826# For the awk script, D is an array of macro values keyed by name,
24827# likewise P contains macro parameters if any. Preserve backslash
24828# newline sequences.
24829
24830ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24831sed -n '
24832s/.\{148\}/&'"$ac_delim"'/g
24833t rset
24834:rset
24835s/^[ ]*#[ ]*define[ ][ ]*/ /
24836t def
24837d
24838:def
24839s/\\$//
24840t bsnl
24841s/["\\]/\\&/g
24842s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24843D["\1"]=" \3"/p
24844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24845d
24846:bsnl
24847s/["\\]/\\&/g
24848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24849D["\1"]=" \3\\\\\\n"\\/p
24850t cont
24851s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24852t cont
24853d
24854:cont
24855n
24856s/.\{148\}/&'"$ac_delim"'/g
24857t clear
24858:clear
24859s/\\$//
24860t bsnlc
24861s/["\\]/\\&/g; s/^/"/; s/$/"/p
24862d
24863:bsnlc
24864s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24865b cont
24866' <confdefs.h | sed '
24867s/'"$ac_delim"'/"\\\
24868"/g' >>$CONFIG_STATUS || ac_write_fail=1
24869
24870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24871 for (key in D) D_is_set[key] = 1
24872 FS = ""
24873}
24874/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24875 line = \$ 0
24876 split(line, arg, " ")
24877 if (arg[1] == "#") {
24878 defundef = arg[2]
24879 mac1 = arg[3]
24880 } else {
24881 defundef = substr(arg[1], 2)
24882 mac1 = arg[2]
24883 }
24884 split(mac1, mac2, "(") #)
24885 macro = mac2[1]
24886 if (D_is_set[macro]) {
24887 # Preserve the white space surrounding the "#".
24888 prefix = substr(line, 1, index(line, defundef) - 1)
24889 print prefix "define", macro P[macro] D[macro]
24890 next
24891 } else {
24892 # Replace #undef with comments. This is necessary, for example,
24893 # in the case of _POSIX_SOURCE, which is predefined and required
24894 # on some systems where configure will not decide to define it.
24895 if (defundef == "undef") {
24896 print "/*", line, "*/"
24897 next
24898 }
24899 }
24900}
24901{ print }
24902_ACAWK
24903_ACEOF
24904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24905 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24906$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24907 { (exit 1); exit 1; }; }
24908fi # test -n "$CONFIG_HEADERS"
24909
24910
24911eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24912shift
24913for ac_tag
24914do
24915 case $ac_tag in
24916 :[FHLC]) ac_mode=$ac_tag; continue;;
24917 esac
24918 case $ac_mode$ac_tag in
24919 :[FHL]*:*);;
24920 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24921$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24922 { (exit 1); exit 1; }; };;
24923 :[FH]-) ac_tag=-:-;;
24924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24925 esac
24926 ac_save_IFS=$IFS
24927 IFS=:
24928 set x $ac_tag
24929 IFS=$ac_save_IFS
24930 shift
24931 ac_file=$1
24932 shift
24933
24934 case $ac_mode in
24935 :L) ac_source=$1;;
24936 :[FH])
24937 ac_file_inputs=
24938 for ac_f
24939 do
24940 case $ac_f in
24941 -) ac_f="$tmp/stdin";;
24942 *) # Look for the file first in the build tree, then in the source tree
24943 # (if the path is not absolute). The absolute path cannot be DOS-style,
24944 # because $ac_f cannot contain `:'.
24945 test -f "$ac_f" ||
24946 case $ac_f in
24947 [\\/$]*) false;;
24948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24949 esac ||
24950 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24951$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24952 { (exit 1); exit 1; }; };;
24953 esac
24954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24955 ac_file_inputs="$ac_file_inputs '$ac_f'"
24956 done
24957
24958 # Let's still pretend it is `configure' which instantiates (i.e., don't
24959 # use $as_me), people would be surprised to read:
24960 # /* config.h. Generated by config.status. */
24961 configure_input='Generated from '`
24962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24963 `' by configure.'
24964 if test x"$ac_file" != x-; then
24965 configure_input="$ac_file. $configure_input"
24966 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24967$as_echo "$as_me: creating $ac_file" >&6;}
24968 fi
24969 # Neutralize special characters interpreted by sed in replacement strings.
24970 case $configure_input in #(
24971 *\&* | *\|* | *\\* )
24972 ac_sed_conf_input=`$as_echo "$configure_input" |
24973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24974 *) ac_sed_conf_input=$configure_input;;
24975 esac
24976
24977 case $ac_tag in
24978 *:-:* | *:-) cat >"$tmp/stdin" \
24979 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24980$as_echo "$as_me: error: could not create $ac_file" >&2;}
24981 { (exit 1); exit 1; }; } ;;
24982 esac
24983 ;;
24984 esac
24985
24986 ac_dir=`$as_dirname -- "$ac_file" ||
24987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24988 X"$ac_file" : 'X\(//\)[^/]' \| \
24989 X"$ac_file" : 'X\(//\)$' \| \
24990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24991$as_echo X"$ac_file" |
24992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24993 s//\1/
24994 q
24995 }
24996 /^X\(\/\/\)[^/].*/{
24997 s//\1/
24998 q
24999 }
25000 /^X\(\/\/\)$/{
25001 s//\1/
25002 q
25003 }
25004 /^X\(\/\).*/{
25005 s//\1/
25006 q
25007 }
25008 s/.*/./; q'`
25009 { as_dir="$ac_dir"
25010 case $as_dir in #(
25011 -*) as_dir=./$as_dir;;
25012 esac
25013 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25014 as_dirs=
25015 while :; do
25016 case $as_dir in #(
25017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25018 *) as_qdir=$as_dir;;
25019 esac
25020 as_dirs="'$as_qdir' $as_dirs"
25021 as_dir=`$as_dirname -- "$as_dir" ||
25022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25023 X"$as_dir" : 'X\(//\)[^/]' \| \
25024 X"$as_dir" : 'X\(//\)$' \| \
25025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25026$as_echo X"$as_dir" |
25027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25028 s//\1/
25029 q
25030 }
25031 /^X\(\/\/\)[^/].*/{
25032 s//\1/
25033 q
25034 }
25035 /^X\(\/\/\)$/{
25036 s//\1/
25037 q
25038 }
25039 /^X\(\/\).*/{
25040 s//\1/
25041 q
25042 }
25043 s/.*/./; q'`
25044 test -d "$as_dir" && break
25045 done
25046 test -z "$as_dirs" || eval "mkdir $as_dirs"
25047 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25048$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25049 { (exit 1); exit 1; }; }; }
25050 ac_builddir=.
25051
25052case "$ac_dir" in
25053.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25054*)
25055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25056 # A ".." for each directory in $ac_dir_suffix.
25057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25058 case $ac_top_builddir_sub in
25059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25061 esac ;;
25062esac
25063ac_abs_top_builddir=$ac_pwd
25064ac_abs_builddir=$ac_pwd$ac_dir_suffix
25065# for backward compatibility:
25066ac_top_builddir=$ac_top_build_prefix
25067
25068case $srcdir in
25069 .) # We are building in place.
25070 ac_srcdir=.
25071 ac_top_srcdir=$ac_top_builddir_sub
25072 ac_abs_top_srcdir=$ac_pwd ;;
25073 [\\/]* | ?:[\\/]* ) # Absolute name.
25074 ac_srcdir=$srcdir$ac_dir_suffix;
25075 ac_top_srcdir=$srcdir
25076 ac_abs_top_srcdir=$srcdir ;;
25077 *) # Relative name.
25078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25079 ac_top_srcdir=$ac_top_build_prefix$srcdir
25080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25081esac
25082ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25083
25084
25085 case $ac_mode in
25086 :F)
25087 #
25088 # CONFIG_FILE
25089 #
25090
25091 case $INSTALL in
25092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25094 esac
25095 ac_MKDIR_P=$MKDIR_P
25096 case $MKDIR_P in
25097 [\\/$]* | ?:[\\/]* ) ;;
25098 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25099 esac
25100_ACEOF
25101
25102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25103# If the template does not know about datarootdir, expand it.
25104# FIXME: This hack should be removed a few years after 2.60.
25105ac_datarootdir_hack=; ac_datarootdir_seen=
25106
25107ac_sed_dataroot='
25108/datarootdir/ {
25109 p
25110 q
25111}
25112/@datadir@/p
25113/@docdir@/p
25114/@infodir@/p
25115/@localedir@/p
25116/@mandir@/p
25117'
25118case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25119*datarootdir*) ac_datarootdir_seen=yes;;
25120*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25121 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25122$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25123_ACEOF
25124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25125 ac_datarootdir_hack='
25126 s&@datadir@&$datadir&g
25127 s&@docdir@&$docdir&g
25128 s&@infodir@&$infodir&g
25129 s&@localedir@&$localedir&g
25130 s&@mandir@&$mandir&g
25131 s&\\\${datarootdir}&$datarootdir&g' ;;
25132esac
25133_ACEOF
25134
25135# Neutralize VPATH when `$srcdir' = `.'.
25136# Shell code in configure.ac might set extrasub.
25137# FIXME: do we really want to maintain this feature?
25138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25139ac_sed_extra="$ac_vpsub
25140$extrasub
25141_ACEOF
25142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25143:t
25144/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25145s|@configure_input@|$ac_sed_conf_input|;t t
25146s&@top_builddir@&$ac_top_builddir_sub&;t t
25147s&@top_build_prefix@&$ac_top_build_prefix&;t t
25148s&@srcdir@&$ac_srcdir&;t t
25149s&@abs_srcdir@&$ac_abs_srcdir&;t t
25150s&@top_srcdir@&$ac_top_srcdir&;t t
25151s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25152s&@builddir@&$ac_builddir&;t t
25153s&@abs_builddir@&$ac_abs_builddir&;t t
25154s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25155s&@INSTALL@&$ac_INSTALL&;t t
25156s&@MKDIR_P@&$ac_MKDIR_P&;t t
25157$ac_datarootdir_hack
25158"
25159eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25160 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25161$as_echo "$as_me: error: could not create $ac_file" >&2;}
25162 { (exit 1); exit 1; }; }
25163
25164test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25165 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25167 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25168which seems to be undefined. Please make sure it is defined." >&5
25169$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25170which seems to be undefined. Please make sure it is defined." >&2;}
25171
25172 rm -f "$tmp/stdin"
25173 case $ac_file in
25174 -) cat "$tmp/out" && rm -f "$tmp/out";;
25175 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25176 esac \
25177 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25178$as_echo "$as_me: error: could not create $ac_file" >&2;}
25179 { (exit 1); exit 1; }; }
25180 ;;
25181 :H)
25182 #
25183 # CONFIG_HEADER
25184 #
25185 if test x"$ac_file" != x-; then
25186 {
25187 $as_echo "/* $configure_input */" \
25188 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25189 } >"$tmp/config.h" \
25190 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25191$as_echo "$as_me: error: could not create $ac_file" >&2;}
25192 { (exit 1); exit 1; }; }
25193 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25194 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25195$as_echo "$as_me: $ac_file is unchanged" >&6;}
25196 else
25197 rm -f "$ac_file"
25198 mv "$tmp/config.h" "$ac_file" \
25199 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25200$as_echo "$as_me: error: could not create $ac_file" >&2;}
25201 { (exit 1); exit 1; }; }
25202 fi
25203 else
25204 $as_echo "/* $configure_input */" \
25205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25206 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25207$as_echo "$as_me: error: could not create -" >&2;}
25208 { (exit 1); exit 1; }; }
25209 fi
25210# Compute "$ac_file"'s index in $config_headers.
25211_am_arg="$ac_file"
25212_am_stamp_count=1
25213for _am_header in $config_headers :; do
25214 case $_am_header in
25215 $_am_arg | $_am_arg:* )
25216 break ;;
25217 * )
25218 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25219 esac
25220done
25221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25223 X"$_am_arg" : 'X\(//\)[^/]' \| \
25224 X"$_am_arg" : 'X\(//\)$' \| \
25225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25226$as_echo X"$_am_arg" |
25227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25228 s//\1/
25229 q
25230 }
25231 /^X\(\/\/\)[^/].*/{
25232 s//\1/
25233 q
25234 }
25235 /^X\(\/\/\)$/{
25236 s//\1/
25237 q
25238 }
25239 /^X\(\/\).*/{
25240 s//\1/
25241 q
25242 }
25243 s/.*/./; q'`/stamp-h$_am_stamp_count
25244 ;;
25245
25246 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25247$as_echo "$as_me: executing $ac_file commands" >&6;}
25248 ;;
25249 esac
25250
25251
25252 case $ac_file$ac_mode in
25253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25254 # Strip MF so we end up with the name of the file.
25255 mf=`echo "$mf" | sed -e 's/:.*$//'`
25256 # Check whether this is an Automake generated Makefile or not.
25257 # We used to match only the files named `Makefile.in', but
25258 # some people rename them; so instead we look at the file content.
25259 # Grep'ing the first line is not enough: some people post-process
25260 # each Makefile.in and add a new line on top of each file to say so.
25261 # Grep'ing the whole file is not good either: AIX grep has a line
25262 # limit of 2048, but all sed's we know have understand at least 4000.
25263 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25264 dirpart=`$as_dirname -- "$mf" ||
25265$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266 X"$mf" : 'X\(//\)[^/]' \| \
25267 X"$mf" : 'X\(//\)$' \| \
25268 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25269$as_echo X"$mf" |
25270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25271 s//\1/
25272 q
25273 }
25274 /^X\(\/\/\)[^/].*/{
25275 s//\1/
25276 q
25277 }
25278 /^X\(\/\/\)$/{
25279 s//\1/
25280 q
25281 }
25282 /^X\(\/\).*/{
25283 s//\1/
25284 q
25285 }
25286 s/.*/./; q'`
25287 else
25288 continue
25289 fi
25290 # Extract the definition of DEPDIR, am__include, and am__quote
25291 # from the Makefile without running `make'.
25292 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25293 test -z "$DEPDIR" && continue
25294 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25295 test -z "am__include" && continue
25296 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25297 # When using ansi2knr, U may be empty or an underscore; expand it
25298 U=`sed -n 's/^U = //p' < "$mf"`
25299 # Find all dependency output files, they are included files with
25300 # $(DEPDIR) in their names. We invoke sed twice because it is the
25301 # simplest approach to changing $(DEPDIR) to its actual value in the
25302 # expansion.
25303 for file in `sed -n "
25304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25306 # Make sure the directory exists.
25307 test -f "$dirpart/$file" && continue
25308 fdir=`$as_dirname -- "$file" ||
25309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25310 X"$file" : 'X\(//\)[^/]' \| \
25311 X"$file" : 'X\(//\)$' \| \
25312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25313$as_echo X"$file" |
25314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25315 s//\1/
25316 q
25317 }
25318 /^X\(\/\/\)[^/].*/{
25319 s//\1/
25320 q
25321 }
25322 /^X\(\/\/\)$/{
25323 s//\1/
25324 q
25325 }
25326 /^X\(\/\).*/{
25327 s//\1/
25328 q
25329 }
25330 s/.*/./; q'`
25331 { as_dir=$dirpart/$fdir
25332 case $as_dir in #(
25333 -*) as_dir=./$as_dir;;
25334 esac
25335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25336 as_dirs=
25337 while :; do
25338 case $as_dir in #(
25339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25340 *) as_qdir=$as_dir;;
25341 esac
25342 as_dirs="'$as_qdir' $as_dirs"
25343 as_dir=`$as_dirname -- "$as_dir" ||
25344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25345 X"$as_dir" : 'X\(//\)[^/]' \| \
25346 X"$as_dir" : 'X\(//\)$' \| \
25347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25348$as_echo X"$as_dir" |
25349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25350 s//\1/
25351 q
25352 }
25353 /^X\(\/\/\)[^/].*/{
25354 s//\1/
25355 q
25356 }
25357 /^X\(\/\/\)$/{
25358 s//\1/
25359 q
25360 }
25361 /^X\(\/\).*/{
25362 s//\1/
25363 q
25364 }
25365 s/.*/./; q'`
25366 test -d "$as_dir" && break
25367 done
25368 test -z "$as_dirs" || eval "mkdir $as_dirs"
25369 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25370$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25371 { (exit 1); exit 1; }; }; }
25372 # echo "creating $dirpart/$file"
25373 echo '# dummy' > "$dirpart/$file"
25374 done
25375done
25376 ;;
25377
25378 esac
25379done # for ac_tag
25380
25381
25382{ (exit 0); exit 0; }
25383_ACEOF
25384chmod +x $CONFIG_STATUS
25385ac_clean_files=$ac_clean_files_save
25386
25387test $ac_write_fail = 0 ||
25388 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25389$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25390 { (exit 1); exit 1; }; }
25391
25392
25393# configure is writing to config.log, and then calls config.status.
25394# config.status does its own redirection, appending to config.log.
25395# Unfortunately, on DOS this fails, as config.log is still kept open
25396# by configure, so config.status won't be able to write to it; its
25397# output is simply discarded. So we exec the FD to /dev/null,
25398# effectively closing config.log, so it can be properly (re)opened and
25399# appended to by config.status. When coming back to configure, we
25400# need to make the FD available again.
25401if test "$no_create" != yes; then
25402 ac_cs_success=:
25403 ac_config_status_args=
25404 test "$silent" = yes &&
25405 ac_config_status_args="$ac_config_status_args --quiet"
25406 exec 5>/dev/null
25407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25408 exec 5>>config.log
25409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25410 # would make configure fail if this is the last instruction.
25411 $ac_cs_success || { (exit 1); exit 1; }
25412fi
25413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25414 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
25415$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
25416fi
25417
24457configured by $0, generated by GNU Autoconf 2.62,
24458 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24459
24460Copyright (C) 2008 Free Software Foundation, Inc.
24461This config.status script is free software; the Free Software Foundation
24462gives unlimited permission to copy, distribute and modify it."
24463
24464ac_pwd='$ac_pwd'
24465srcdir='$srcdir'
24466INSTALL='$INSTALL'
24467MKDIR_P='$MKDIR_P'
24468AWK='$AWK'
24469test -n "\$AWK" || AWK=awk
24470_ACEOF
24471
24472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24473# The default lists apply if the user does not specify any file.
24474ac_need_defaults=:
24475while test $# != 0
24476do
24477 case $1 in
24478 --*=*)
24479 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24480 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24481 ac_shift=:
24482 ;;
24483 *)
24484 ac_option=$1
24485 ac_optarg=$2
24486 ac_shift=shift
24487 ;;
24488 esac
24489
24490 case $ac_option in
24491 # Handling of the options.
24492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24493 ac_cs_recheck=: ;;
24494 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24495 $as_echo "$ac_cs_version"; exit ;;
24496 --debug | --debu | --deb | --de | --d | -d )
24497 debug=: ;;
24498 --file | --fil | --fi | --f )
24499 $ac_shift
24500 case $ac_optarg in
24501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24502 esac
24503 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24504 ac_need_defaults=false;;
24505 --header | --heade | --head | --hea )
24506 $ac_shift
24507 case $ac_optarg in
24508 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24509 esac
24510 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24511 ac_need_defaults=false;;
24512 --he | --h)
24513 # Conflict between --help and --header
24514 { $as_echo "$as_me: error: ambiguous option: $1
24515Try \`$0 --help' for more information." >&2
24516 { (exit 1); exit 1; }; };;
24517 --help | --hel | -h )
24518 $as_echo "$ac_cs_usage"; exit ;;
24519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24521 ac_cs_silent=: ;;
24522
24523 # This is an error.
24524 -*) { $as_echo "$as_me: error: unrecognized option: $1
24525Try \`$0 --help' for more information." >&2
24526 { (exit 1); exit 1; }; } ;;
24527
24528 *) ac_config_targets="$ac_config_targets $1"
24529 ac_need_defaults=false ;;
24530
24531 esac
24532 shift
24533done
24534
24535ac_configure_extra_args=
24536
24537if $ac_cs_silent; then
24538 exec 6>/dev/null
24539 ac_configure_extra_args="$ac_configure_extra_args --silent"
24540fi
24541
24542_ACEOF
24543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24544if \$ac_cs_recheck; then
24545 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24546 shift
24547 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24548 CONFIG_SHELL='$SHELL'
24549 export CONFIG_SHELL
24550 exec "\$@"
24551fi
24552
24553_ACEOF
24554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24555exec 5>>config.log
24556{
24557 echo
24558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24559## Running $as_me. ##
24560_ASBOX
24561 $as_echo "$ac_log"
24562} >&5
24563
24564_ACEOF
24565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24566#
24567# INIT-COMMANDS
24568#
24569AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24570
24571_ACEOF
24572
24573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24574
24575# Handling of arguments.
24576for ac_config_target in $ac_config_targets
24577do
24578 case $ac_config_target in
24579 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
24580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24581 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24582 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
24583 "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
24584 "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
24585 "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
24586 "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
24587 "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
24588 "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
24589 "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
24590 "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
24591 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24592 "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
24593 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24594 "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
24595 "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
24596 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24597 "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
24598 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24599
24600 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24601$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24602 { (exit 1); exit 1; }; };;
24603 esac
24604done
24605
24606
24607# If the user did not use the arguments to specify the items to instantiate,
24608# then the envvar interface is used. Set only those that are not.
24609# We use the long form for the default assignment because of an extremely
24610# bizarre bug on SunOS 4.1.3.
24611if $ac_need_defaults; then
24612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24614 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24615fi
24616
24617# Have a temporary directory for convenience. Make it in the build tree
24618# simply because there is no reason against having it here, and in addition,
24619# creating and moving files from /tmp can sometimes cause problems.
24620# Hook for its removal unless debugging.
24621# Note that there is a small window in which the directory will not be cleaned:
24622# after its creation but before its name has been assigned to `$tmp'.
24623$debug ||
24624{
24625 tmp=
24626 trap 'exit_status=$?
24627 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24628' 0
24629 trap '{ (exit 1); exit 1; }' 1 2 13 15
24630}
24631# Create a (secure) tmp directory for tmp files.
24632
24633{
24634 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24635 test -n "$tmp" && test -d "$tmp"
24636} ||
24637{
24638 tmp=./conf$$-$RANDOM
24639 (umask 077 && mkdir "$tmp")
24640} ||
24641{
24642 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24643 { (exit 1); exit 1; }
24644}
24645
24646# Set up the scripts for CONFIG_FILES section.
24647# No need to generate them if there are no CONFIG_FILES.
24648# This happens for instance with `./config.status config.h'.
24649if test -n "$CONFIG_FILES"; then
24650
24651
24652ac_cr='
24653'
24654ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24655if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24656 ac_cs_awk_cr='\\r'
24657else
24658 ac_cs_awk_cr=$ac_cr
24659fi
24660
24661echo 'BEGIN {' >"$tmp/subs1.awk" &&
24662_ACEOF
24663
24664
24665{
24666 echo "cat >conf$$subs.awk <<_ACEOF" &&
24667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24668 echo "_ACEOF"
24669} >conf$$subs.sh ||
24670 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24671$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24672 { (exit 1); exit 1; }; }
24673ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24674ac_delim='%!_!# '
24675for ac_last_try in false false false false false :; do
24676 . ./conf$$subs.sh ||
24677 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24678$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24679 { (exit 1); exit 1; }; }
24680
24681 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
24682 break
24683 elif $ac_last_try; then
24684 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24685$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24686 { (exit 1); exit 1; }; }
24687 else
24688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24689 fi
24690done
24691rm -f conf$$subs.sh
24692
24693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24694cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24695_ACEOF
24696sed -n '
24697h
24698s/^/S["/; s/!.*/"]=/
24699p
24700g
24701s/^[^!]*!//
24702:repl
24703t repl
24704s/'"$ac_delim"'$//
24705t delim
24706:nl
24707h
24708s/\(.\{148\}\).*/\1/
24709t more1
24710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24711p
24712n
24713b repl
24714:more1
24715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24716p
24717g
24718s/.\{148\}//
24719t nl
24720:delim
24721h
24722s/\(.\{148\}\).*/\1/
24723t more2
24724s/["\\]/\\&/g; s/^/"/; s/$/"/
24725p
24726b
24727:more2
24728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24729p
24730g
24731s/.\{148\}//
24732t delim
24733' <conf$$subs.awk | sed '
24734/^[^""]/{
24735 N
24736 s/\n//
24737}
24738' >>$CONFIG_STATUS || ac_write_fail=1
24739rm -f conf$$subs.awk
24740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24741_ACAWK
24742cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24743 for (key in S) S_is_set[key] = 1
24744 FS = ""
24745
24746}
24747{
24748 line = $ 0
24749 nfields = split(line, field, "@")
24750 substed = 0
24751 len = length(field[1])
24752 for (i = 2; i < nfields; i++) {
24753 key = field[i]
24754 keylen = length(key)
24755 if (S_is_set[key]) {
24756 value = S[key]
24757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24758 len += length(value) + length(field[++i])
24759 substed = 1
24760 } else
24761 len += 1 + keylen
24762 }
24763
24764 print line
24765}
24766
24767_ACAWK
24768_ACEOF
24769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24772else
24773 cat
24774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24775 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24776$as_echo "$as_me: error: could not setup config files machinery" >&2;}
24777 { (exit 1); exit 1; }; }
24778_ACEOF
24779
24780# VPATH may cause trouble with some makes, so we remove $(srcdir),
24781# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24782# trailing colons and then remove the whole line if VPATH becomes empty
24783# (actually we leave an empty line to preserve line numbers).
24784if test "x$srcdir" = x.; then
24785 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24786s/:*\$(srcdir):*/:/
24787s/:*\${srcdir}:*/:/
24788s/:*@srcdir@:*/:/
24789s/^\([^=]*=[ ]*\):*/\1/
24790s/:*$//
24791s/^[^=]*=[ ]*$//
24792}'
24793fi
24794
24795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24796fi # test -n "$CONFIG_FILES"
24797
24798# Set up the scripts for CONFIG_HEADERS section.
24799# No need to generate them if there are no CONFIG_HEADERS.
24800# This happens for instance with `./config.status Makefile'.
24801if test -n "$CONFIG_HEADERS"; then
24802cat >"$tmp/defines.awk" <<\_ACAWK ||
24803BEGIN {
24804_ACEOF
24805
24806# Transform confdefs.h into an awk script `defines.awk', embedded as
24807# here-document in config.status, that substitutes the proper values into
24808# config.h.in to produce config.h.
24809
24810# Create a delimiter string that does not exist in confdefs.h, to ease
24811# handling of long lines.
24812ac_delim='%!_!# '
24813for ac_last_try in false false :; do
24814 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24815 if test -z "$ac_t"; then
24816 break
24817 elif $ac_last_try; then
24818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24819$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24820 { (exit 1); exit 1; }; }
24821 else
24822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24823 fi
24824done
24825
24826# For the awk script, D is an array of macro values keyed by name,
24827# likewise P contains macro parameters if any. Preserve backslash
24828# newline sequences.
24829
24830ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24831sed -n '
24832s/.\{148\}/&'"$ac_delim"'/g
24833t rset
24834:rset
24835s/^[ ]*#[ ]*define[ ][ ]*/ /
24836t def
24837d
24838:def
24839s/\\$//
24840t bsnl
24841s/["\\]/\\&/g
24842s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24843D["\1"]=" \3"/p
24844s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24845d
24846:bsnl
24847s/["\\]/\\&/g
24848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24849D["\1"]=" \3\\\\\\n"\\/p
24850t cont
24851s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24852t cont
24853d
24854:cont
24855n
24856s/.\{148\}/&'"$ac_delim"'/g
24857t clear
24858:clear
24859s/\\$//
24860t bsnlc
24861s/["\\]/\\&/g; s/^/"/; s/$/"/p
24862d
24863:bsnlc
24864s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24865b cont
24866' <confdefs.h | sed '
24867s/'"$ac_delim"'/"\\\
24868"/g' >>$CONFIG_STATUS || ac_write_fail=1
24869
24870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24871 for (key in D) D_is_set[key] = 1
24872 FS = ""
24873}
24874/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24875 line = \$ 0
24876 split(line, arg, " ")
24877 if (arg[1] == "#") {
24878 defundef = arg[2]
24879 mac1 = arg[3]
24880 } else {
24881 defundef = substr(arg[1], 2)
24882 mac1 = arg[2]
24883 }
24884 split(mac1, mac2, "(") #)
24885 macro = mac2[1]
24886 if (D_is_set[macro]) {
24887 # Preserve the white space surrounding the "#".
24888 prefix = substr(line, 1, index(line, defundef) - 1)
24889 print prefix "define", macro P[macro] D[macro]
24890 next
24891 } else {
24892 # Replace #undef with comments. This is necessary, for example,
24893 # in the case of _POSIX_SOURCE, which is predefined and required
24894 # on some systems where configure will not decide to define it.
24895 if (defundef == "undef") {
24896 print "/*", line, "*/"
24897 next
24898 }
24899 }
24900}
24901{ print }
24902_ACAWK
24903_ACEOF
24904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24905 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24906$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24907 { (exit 1); exit 1; }; }
24908fi # test -n "$CONFIG_HEADERS"
24909
24910
24911eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24912shift
24913for ac_tag
24914do
24915 case $ac_tag in
24916 :[FHLC]) ac_mode=$ac_tag; continue;;
24917 esac
24918 case $ac_mode$ac_tag in
24919 :[FHL]*:*);;
24920 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24921$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24922 { (exit 1); exit 1; }; };;
24923 :[FH]-) ac_tag=-:-;;
24924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24925 esac
24926 ac_save_IFS=$IFS
24927 IFS=:
24928 set x $ac_tag
24929 IFS=$ac_save_IFS
24930 shift
24931 ac_file=$1
24932 shift
24933
24934 case $ac_mode in
24935 :L) ac_source=$1;;
24936 :[FH])
24937 ac_file_inputs=
24938 for ac_f
24939 do
24940 case $ac_f in
24941 -) ac_f="$tmp/stdin";;
24942 *) # Look for the file first in the build tree, then in the source tree
24943 # (if the path is not absolute). The absolute path cannot be DOS-style,
24944 # because $ac_f cannot contain `:'.
24945 test -f "$ac_f" ||
24946 case $ac_f in
24947 [\\/$]*) false;;
24948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24949 esac ||
24950 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24951$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24952 { (exit 1); exit 1; }; };;
24953 esac
24954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24955 ac_file_inputs="$ac_file_inputs '$ac_f'"
24956 done
24957
24958 # Let's still pretend it is `configure' which instantiates (i.e., don't
24959 # use $as_me), people would be surprised to read:
24960 # /* config.h. Generated by config.status. */
24961 configure_input='Generated from '`
24962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24963 `' by configure.'
24964 if test x"$ac_file" != x-; then
24965 configure_input="$ac_file. $configure_input"
24966 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24967$as_echo "$as_me: creating $ac_file" >&6;}
24968 fi
24969 # Neutralize special characters interpreted by sed in replacement strings.
24970 case $configure_input in #(
24971 *\&* | *\|* | *\\* )
24972 ac_sed_conf_input=`$as_echo "$configure_input" |
24973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24974 *) ac_sed_conf_input=$configure_input;;
24975 esac
24976
24977 case $ac_tag in
24978 *:-:* | *:-) cat >"$tmp/stdin" \
24979 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24980$as_echo "$as_me: error: could not create $ac_file" >&2;}
24981 { (exit 1); exit 1; }; } ;;
24982 esac
24983 ;;
24984 esac
24985
24986 ac_dir=`$as_dirname -- "$ac_file" ||
24987$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24988 X"$ac_file" : 'X\(//\)[^/]' \| \
24989 X"$ac_file" : 'X\(//\)$' \| \
24990 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24991$as_echo X"$ac_file" |
24992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24993 s//\1/
24994 q
24995 }
24996 /^X\(\/\/\)[^/].*/{
24997 s//\1/
24998 q
24999 }
25000 /^X\(\/\/\)$/{
25001 s//\1/
25002 q
25003 }
25004 /^X\(\/\).*/{
25005 s//\1/
25006 q
25007 }
25008 s/.*/./; q'`
25009 { as_dir="$ac_dir"
25010 case $as_dir in #(
25011 -*) as_dir=./$as_dir;;
25012 esac
25013 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25014 as_dirs=
25015 while :; do
25016 case $as_dir in #(
25017 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25018 *) as_qdir=$as_dir;;
25019 esac
25020 as_dirs="'$as_qdir' $as_dirs"
25021 as_dir=`$as_dirname -- "$as_dir" ||
25022$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25023 X"$as_dir" : 'X\(//\)[^/]' \| \
25024 X"$as_dir" : 'X\(//\)$' \| \
25025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25026$as_echo X"$as_dir" |
25027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25028 s//\1/
25029 q
25030 }
25031 /^X\(\/\/\)[^/].*/{
25032 s//\1/
25033 q
25034 }
25035 /^X\(\/\/\)$/{
25036 s//\1/
25037 q
25038 }
25039 /^X\(\/\).*/{
25040 s//\1/
25041 q
25042 }
25043 s/.*/./; q'`
25044 test -d "$as_dir" && break
25045 done
25046 test -z "$as_dirs" || eval "mkdir $as_dirs"
25047 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25048$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25049 { (exit 1); exit 1; }; }; }
25050 ac_builddir=.
25051
25052case "$ac_dir" in
25053.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25054*)
25055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25056 # A ".." for each directory in $ac_dir_suffix.
25057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25058 case $ac_top_builddir_sub in
25059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25061 esac ;;
25062esac
25063ac_abs_top_builddir=$ac_pwd
25064ac_abs_builddir=$ac_pwd$ac_dir_suffix
25065# for backward compatibility:
25066ac_top_builddir=$ac_top_build_prefix
25067
25068case $srcdir in
25069 .) # We are building in place.
25070 ac_srcdir=.
25071 ac_top_srcdir=$ac_top_builddir_sub
25072 ac_abs_top_srcdir=$ac_pwd ;;
25073 [\\/]* | ?:[\\/]* ) # Absolute name.
25074 ac_srcdir=$srcdir$ac_dir_suffix;
25075 ac_top_srcdir=$srcdir
25076 ac_abs_top_srcdir=$srcdir ;;
25077 *) # Relative name.
25078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25079 ac_top_srcdir=$ac_top_build_prefix$srcdir
25080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25081esac
25082ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25083
25084
25085 case $ac_mode in
25086 :F)
25087 #
25088 # CONFIG_FILE
25089 #
25090
25091 case $INSTALL in
25092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25094 esac
25095 ac_MKDIR_P=$MKDIR_P
25096 case $MKDIR_P in
25097 [\\/$]* | ?:[\\/]* ) ;;
25098 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25099 esac
25100_ACEOF
25101
25102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25103# If the template does not know about datarootdir, expand it.
25104# FIXME: This hack should be removed a few years after 2.60.
25105ac_datarootdir_hack=; ac_datarootdir_seen=
25106
25107ac_sed_dataroot='
25108/datarootdir/ {
25109 p
25110 q
25111}
25112/@datadir@/p
25113/@docdir@/p
25114/@infodir@/p
25115/@localedir@/p
25116/@mandir@/p
25117'
25118case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25119*datarootdir*) ac_datarootdir_seen=yes;;
25120*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25121 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25122$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25123_ACEOF
25124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25125 ac_datarootdir_hack='
25126 s&@datadir@&$datadir&g
25127 s&@docdir@&$docdir&g
25128 s&@infodir@&$infodir&g
25129 s&@localedir@&$localedir&g
25130 s&@mandir@&$mandir&g
25131 s&\\\${datarootdir}&$datarootdir&g' ;;
25132esac
25133_ACEOF
25134
25135# Neutralize VPATH when `$srcdir' = `.'.
25136# Shell code in configure.ac might set extrasub.
25137# FIXME: do we really want to maintain this feature?
25138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25139ac_sed_extra="$ac_vpsub
25140$extrasub
25141_ACEOF
25142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25143:t
25144/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25145s|@configure_input@|$ac_sed_conf_input|;t t
25146s&@top_builddir@&$ac_top_builddir_sub&;t t
25147s&@top_build_prefix@&$ac_top_build_prefix&;t t
25148s&@srcdir@&$ac_srcdir&;t t
25149s&@abs_srcdir@&$ac_abs_srcdir&;t t
25150s&@top_srcdir@&$ac_top_srcdir&;t t
25151s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25152s&@builddir@&$ac_builddir&;t t
25153s&@abs_builddir@&$ac_abs_builddir&;t t
25154s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25155s&@INSTALL@&$ac_INSTALL&;t t
25156s&@MKDIR_P@&$ac_MKDIR_P&;t t
25157$ac_datarootdir_hack
25158"
25159eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
25160 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25161$as_echo "$as_me: error: could not create $ac_file" >&2;}
25162 { (exit 1); exit 1; }; }
25163
25164test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25165 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25166 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25167 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25168which seems to be undefined. Please make sure it is defined." >&5
25169$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25170which seems to be undefined. Please make sure it is defined." >&2;}
25171
25172 rm -f "$tmp/stdin"
25173 case $ac_file in
25174 -) cat "$tmp/out" && rm -f "$tmp/out";;
25175 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25176 esac \
25177 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25178$as_echo "$as_me: error: could not create $ac_file" >&2;}
25179 { (exit 1); exit 1; }; }
25180 ;;
25181 :H)
25182 #
25183 # CONFIG_HEADER
25184 #
25185 if test x"$ac_file" != x-; then
25186 {
25187 $as_echo "/* $configure_input */" \
25188 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25189 } >"$tmp/config.h" \
25190 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25191$as_echo "$as_me: error: could not create $ac_file" >&2;}
25192 { (exit 1); exit 1; }; }
25193 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25194 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25195$as_echo "$as_me: $ac_file is unchanged" >&6;}
25196 else
25197 rm -f "$ac_file"
25198 mv "$tmp/config.h" "$ac_file" \
25199 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25200$as_echo "$as_me: error: could not create $ac_file" >&2;}
25201 { (exit 1); exit 1; }; }
25202 fi
25203 else
25204 $as_echo "/* $configure_input */" \
25205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25206 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25207$as_echo "$as_me: error: could not create -" >&2;}
25208 { (exit 1); exit 1; }; }
25209 fi
25210# Compute "$ac_file"'s index in $config_headers.
25211_am_arg="$ac_file"
25212_am_stamp_count=1
25213for _am_header in $config_headers :; do
25214 case $_am_header in
25215 $_am_arg | $_am_arg:* )
25216 break ;;
25217 * )
25218 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25219 esac
25220done
25221echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25222$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25223 X"$_am_arg" : 'X\(//\)[^/]' \| \
25224 X"$_am_arg" : 'X\(//\)$' \| \
25225 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25226$as_echo X"$_am_arg" |
25227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25228 s//\1/
25229 q
25230 }
25231 /^X\(\/\/\)[^/].*/{
25232 s//\1/
25233 q
25234 }
25235 /^X\(\/\/\)$/{
25236 s//\1/
25237 q
25238 }
25239 /^X\(\/\).*/{
25240 s//\1/
25241 q
25242 }
25243 s/.*/./; q'`/stamp-h$_am_stamp_count
25244 ;;
25245
25246 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25247$as_echo "$as_me: executing $ac_file commands" >&6;}
25248 ;;
25249 esac
25250
25251
25252 case $ac_file$ac_mode in
25253 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25254 # Strip MF so we end up with the name of the file.
25255 mf=`echo "$mf" | sed -e 's/:.*$//'`
25256 # Check whether this is an Automake generated Makefile or not.
25257 # We used to match only the files named `Makefile.in', but
25258 # some people rename them; so instead we look at the file content.
25259 # Grep'ing the first line is not enough: some people post-process
25260 # each Makefile.in and add a new line on top of each file to say so.
25261 # Grep'ing the whole file is not good either: AIX grep has a line
25262 # limit of 2048, but all sed's we know have understand at least 4000.
25263 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25264 dirpart=`$as_dirname -- "$mf" ||
25265$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25266 X"$mf" : 'X\(//\)[^/]' \| \
25267 X"$mf" : 'X\(//\)$' \| \
25268 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25269$as_echo X"$mf" |
25270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25271 s//\1/
25272 q
25273 }
25274 /^X\(\/\/\)[^/].*/{
25275 s//\1/
25276 q
25277 }
25278 /^X\(\/\/\)$/{
25279 s//\1/
25280 q
25281 }
25282 /^X\(\/\).*/{
25283 s//\1/
25284 q
25285 }
25286 s/.*/./; q'`
25287 else
25288 continue
25289 fi
25290 # Extract the definition of DEPDIR, am__include, and am__quote
25291 # from the Makefile without running `make'.
25292 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25293 test -z "$DEPDIR" && continue
25294 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25295 test -z "am__include" && continue
25296 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25297 # When using ansi2knr, U may be empty or an underscore; expand it
25298 U=`sed -n 's/^U = //p' < "$mf"`
25299 # Find all dependency output files, they are included files with
25300 # $(DEPDIR) in their names. We invoke sed twice because it is the
25301 # simplest approach to changing $(DEPDIR) to its actual value in the
25302 # expansion.
25303 for file in `sed -n "
25304 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25305 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25306 # Make sure the directory exists.
25307 test -f "$dirpart/$file" && continue
25308 fdir=`$as_dirname -- "$file" ||
25309$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25310 X"$file" : 'X\(//\)[^/]' \| \
25311 X"$file" : 'X\(//\)$' \| \
25312 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25313$as_echo X"$file" |
25314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25315 s//\1/
25316 q
25317 }
25318 /^X\(\/\/\)[^/].*/{
25319 s//\1/
25320 q
25321 }
25322 /^X\(\/\/\)$/{
25323 s//\1/
25324 q
25325 }
25326 /^X\(\/\).*/{
25327 s//\1/
25328 q
25329 }
25330 s/.*/./; q'`
25331 { as_dir=$dirpart/$fdir
25332 case $as_dir in #(
25333 -*) as_dir=./$as_dir;;
25334 esac
25335 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25336 as_dirs=
25337 while :; do
25338 case $as_dir in #(
25339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25340 *) as_qdir=$as_dir;;
25341 esac
25342 as_dirs="'$as_qdir' $as_dirs"
25343 as_dir=`$as_dirname -- "$as_dir" ||
25344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25345 X"$as_dir" : 'X\(//\)[^/]' \| \
25346 X"$as_dir" : 'X\(//\)$' \| \
25347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25348$as_echo X"$as_dir" |
25349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25350 s//\1/
25351 q
25352 }
25353 /^X\(\/\/\)[^/].*/{
25354 s//\1/
25355 q
25356 }
25357 /^X\(\/\/\)$/{
25358 s//\1/
25359 q
25360 }
25361 /^X\(\/\).*/{
25362 s//\1/
25363 q
25364 }
25365 s/.*/./; q'`
25366 test -d "$as_dir" && break
25367 done
25368 test -z "$as_dirs" || eval "mkdir $as_dirs"
25369 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25370$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25371 { (exit 1); exit 1; }; }; }
25372 # echo "creating $dirpart/$file"
25373 echo '# dummy' > "$dirpart/$file"
25374 done
25375done
25376 ;;
25377
25378 esac
25379done # for ac_tag
25380
25381
25382{ (exit 0); exit 0; }
25383_ACEOF
25384chmod +x $CONFIG_STATUS
25385ac_clean_files=$ac_clean_files_save
25386
25387test $ac_write_fail = 0 ||
25388 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25389$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25390 { (exit 1); exit 1; }; }
25391
25392
25393# configure is writing to config.log, and then calls config.status.
25394# config.status does its own redirection, appending to config.log.
25395# Unfortunately, on DOS this fails, as config.log is still kept open
25396# by configure, so config.status won't be able to write to it; its
25397# output is simply discarded. So we exec the FD to /dev/null,
25398# effectively closing config.log, so it can be properly (re)opened and
25399# appended to by config.status. When coming back to configure, we
25400# need to make the FD available again.
25401if test "$no_create" != yes; then
25402 ac_cs_success=:
25403 ac_config_status_args=
25404 test "$silent" = yes &&
25405 ac_config_status_args="$ac_config_status_args --quiet"
25406 exec 5>/dev/null
25407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25408 exec 5>>config.log
25409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25410 # would make configure fail if this is the last instruction.
25411 $ac_cs_success || { (exit 1); exit 1; }
25412fi
25413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25414 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
25415$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
25416fi
25417