]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/openbsm/configure
Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both
[FreeBSD/FreeBSD.git] / contrib / openbsm / configure
1 #! /bin/sh
2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#49 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenBSM 1.1alpha5.
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 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
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556 # Check that we are running under the correct shell.
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 case X$ECHO in
560 X*--fallback-echo)
561   # Remove one level of quotation (which was required for Make).
562   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563   ;;
564 esac
565
566 echo=${ECHO-echo}
567 if test "X$1" = X--no-reexec; then
568   # Discard the --no-reexec flag, and continue.
569   shift
570 elif test "X$1" = X--fallback-echo; then
571   # Avoid inline document here, it may be left over
572   :
573 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574   # Yippee, $echo works!
575   :
576 else
577   # Restart under the correct shell.
578   exec $SHELL "$0" --no-reexec ${1+"$@"}
579 fi
580
581 if test "X$1" = X--fallback-echo; then
582   # used as fallback echo
583   shift
584   cat <<EOF
585 $*
586 EOF
587   exit 0
588 fi
589
590 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 # if CDPATH is set.
592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594 if test -z "$ECHO"; then
595 if test "X${echo_test_string+set}" != Xset; then
596 # find a string as large as possible, as long as the shell can cope with it
597   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600        echo_test_string=`eval $cmd` &&
601        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602     then
603       break
604     fi
605   done
606 fi
607
608 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610    test "X$echo_testing_string" = "X$echo_test_string"; then
611   :
612 else
613   # The Solaris, AIX, and Digital Unix default echo programs unquote
614   # backslashes.  This makes it impossible to quote backslashes using
615   #   echo "$something" | sed 's/\\/\\\\/g'
616   #
617   # So, first we look for a working echo in the user's PATH.
618
619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620   for dir in $PATH /usr/ucb; do
621     IFS="$lt_save_ifs"
622     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625        test "X$echo_testing_string" = "X$echo_test_string"; then
626       echo="$dir/echo"
627       break
628     fi
629   done
630   IFS="$lt_save_ifs"
631
632   if test "X$echo" = Xecho; then
633     # We didn't find a better echo, so look for alternatives.
634     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636        test "X$echo_testing_string" = "X$echo_test_string"; then
637       # This shell has a builtin print -r that does the trick.
638       echo='print -r'
639     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640          test "X$CONFIG_SHELL" != X/bin/ksh; then
641       # If we have ksh, try running configure again with it.
642       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643       export ORIGINAL_CONFIG_SHELL
644       CONFIG_SHELL=/bin/ksh
645       export CONFIG_SHELL
646       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647     else
648       # Try using printf.
649       echo='printf %s\n'
650       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652          test "X$echo_testing_string" = "X$echo_test_string"; then
653         # Cool, printf works
654         :
655       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656            test "X$echo_testing_string" = 'X\t' &&
657            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658            test "X$echo_testing_string" = "X$echo_test_string"; then
659         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660         export CONFIG_SHELL
661         SHELL="$CONFIG_SHELL"
662         export SHELL
663         echo="$CONFIG_SHELL $0 --fallback-echo"
664       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665            test "X$echo_testing_string" = 'X\t' &&
666            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667            test "X$echo_testing_string" = "X$echo_test_string"; then
668         echo="$CONFIG_SHELL $0 --fallback-echo"
669       else
670         # maybe with a smaller string...
671         prev=:
672
673         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675           then
676             break
677           fi
678           prev="$cmd"
679         done
680
681         if test "$prev" != 'sed 50q "$0"'; then
682           echo_test_string=`eval $prev`
683           export echo_test_string
684           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685         else
686           # Oops.  We lost completely, so just stick with echo.
687           echo=echo
688         fi
689       fi
690     fi
691   fi
692 fi
693 fi
694
695 # Copy echo and quote the copy suitably for passing to libtool from
696 # the Makefile, instead of quoting the original, which is used later.
697 ECHO=$echo
698 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700 fi
701
702
703
704
705 tagnames=${tagnames+${tagnames},}CXX
706
707 tagnames=${tagnames+${tagnames},}F77
708
709 exec 7<&0 </dev/null 6>&1
710
711 # Name of the host.
712 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713 # so uname gets run too.
714 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716 #
717 # Initializations.
718 #
719 ac_default_prefix=/usr/local
720 ac_clean_files=
721 ac_config_libobj_dir=.
722 LIBOBJS=
723 cross_compiling=no
724 subdirs=
725 MFLAGS=
726 MAKEFLAGS=
727 SHELL=${CONFIG_SHELL-/bin/sh}
728
729 # Identity of this package.
730 PACKAGE_NAME='OpenBSM'
731 PACKAGE_TARNAME='openbsm'
732 PACKAGE_VERSION='1.1alpha5'
733 PACKAGE_STRING='OpenBSM 1.1alpha5'
734 PACKAGE_BUGREPORT='trustedbsd-audit@TrustesdBSD.org'
735
736 ac_unique_file="bin/auditreduce/auditreduce.c"
737 # Factoring default headers for most tests.
738 ac_includes_default="\
739 #include <stdio.h>
740 #ifdef HAVE_SYS_TYPES_H
741 # include <sys/types.h>
742 #endif
743 #ifdef HAVE_SYS_STAT_H
744 # include <sys/stat.h>
745 #endif
746 #ifdef STDC_HEADERS
747 # include <stdlib.h>
748 # include <stddef.h>
749 #else
750 # ifdef HAVE_STDLIB_H
751 #  include <stdlib.h>
752 # endif
753 #endif
754 #ifdef HAVE_STRING_H
755 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #  include <memory.h>
757 # endif
758 # include <string.h>
759 #endif
760 #ifdef HAVE_STRINGS_H
761 # include <strings.h>
762 #endif
763 #ifdef HAVE_INTTYPES_H
764 # include <inttypes.h>
765 #endif
766 #ifdef HAVE_STDINT_H
767 # include <stdint.h>
768 #endif
769 #ifdef HAVE_UNISTD_H
770 # include <unistd.h>
771 #endif"
772
773 ac_header_list=
774 ac_func_list=
775 ac_subst_vars='SHELL
776 PATH_SEPARATOR
777 PACKAGE_NAME
778 PACKAGE_TARNAME
779 PACKAGE_VERSION
780 PACKAGE_STRING
781 PACKAGE_BUGREPORT
782 exec_prefix
783 prefix
784 program_transform_name
785 bindir
786 sbindir
787 libexecdir
788 datarootdir
789 datadir
790 sysconfdir
791 sharedstatedir
792 localstatedir
793 includedir
794 oldincludedir
795 docdir
796 infodir
797 htmldir
798 dvidir
799 pdfdir
800 psdir
801 libdir
802 localedir
803 mandir
804 DEFS
805 ECHO_C
806 ECHO_N
807 ECHO_T
808 LIBS
809 build_alias
810 host_alias
811 target_alias
812 MAINTAINER_MODE_TRUE
813 MAINTAINER_MODE_FALSE
814 MAINT
815 USE_NATIVE_INCLUDES_TRUE
816 USE_NATIVE_INCLUDES_FALSE
817 MIG
818 CC
819 CFLAGS
820 LDFLAGS
821 CPPFLAGS
822 ac_ct_CC
823 EXEEXT
824 OBJEXT
825 INSTALL_PROGRAM
826 INSTALL_SCRIPT
827 INSTALL_DATA
828 build
829 build_cpu
830 build_vendor
831 build_os
832 host
833 host_cpu
834 host_vendor
835 host_os
836 SED
837 GREP
838 EGREP
839 LN_S
840 ECHO
841 AR
842 RANLIB
843 STRIP
844 CPP
845 CXX
846 CXXFLAGS
847 ac_ct_CXX
848 CXXCPP
849 F77
850 FFLAGS
851 ac_ct_F77
852 LIBTOOL
853 am__isrc
854 CYGPATH_W
855 PACKAGE
856 VERSION
857 ACLOCAL
858 AUTOCONF
859 AUTOMAKE
860 AUTOHEADER
861 MAKEINFO
862 install_sh
863 INSTALL_STRIP_PROGRAM
864 mkdir_p
865 AWK
866 SET_MAKE
867 am__leading_dot
868 AMTAR
869 am__tar
870 am__untar
871 DEPDIR
872 am__include
873 am__quote
874 AMDEP_TRUE
875 AMDEP_FALSE
876 AMDEPBACKSLASH
877 CCDEPMODE
878 am__fastdepCC_TRUE
879 am__fastdepCC_FALSE
880 CXXDEPMODE
881 am__fastdepCXX_TRUE
882 am__fastdepCXX_FALSE
883 LIBOBJS
884 HAVE_AUDIT_SYSCALLS_TRUE
885 HAVE_AUDIT_SYSCALLS_FALSE
886 USE_MACH_IPC_TRUE
887 USE_MACH_IPC_FALSE
888 LTLIBOBJS'
889 ac_subst_files=''
890       ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 CPP
899 CXX
900 CXXFLAGS
901 CCC
902 CXXCPP
903 F77
904 FFLAGS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957   # If the previous option needs an argument, assign it.
958   if test -n "$ac_prev"; then
959     eval $ac_prev=\$ac_option
960     ac_prev=
961     continue
962   fi
963
964   case $ac_option in
965   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966   *)    ac_optarg=yes ;;
967   esac
968
969   # Accept the important Cygnus configure options, so we can diagnose typos.
970
971   case $ac_dashdash$ac_option in
972   --)
973     ac_dashdash=yes ;;
974
975   -bindir | --bindir | --bindi | --bind | --bin | --bi)
976     ac_prev=bindir ;;
977   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978     bindir=$ac_optarg ;;
979
980   -build | --build | --buil | --bui | --bu)
981     ac_prev=build_alias ;;
982   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983     build_alias=$ac_optarg ;;
984
985   -cache-file | --cache-file | --cache-fil | --cache-fi \
986   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987     ac_prev=cache_file ;;
988   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990     cache_file=$ac_optarg ;;
991
992   --config-cache | -C)
993     cache_file=config.cache ;;
994
995   -datadir | --datadir | --datadi | --datad)
996     ac_prev=datadir ;;
997   -datadir=* | --datadir=* | --datadi=* | --datad=*)
998     datadir=$ac_optarg ;;
999
1000   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001   | --dataroo | --dataro | --datar)
1002     ac_prev=datarootdir ;;
1003   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005     datarootdir=$ac_optarg ;;
1006
1007   -disable-* | --disable-*)
1008     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012    { (exit 1); exit 1; }; }
1013     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014     eval enable_$ac_feature=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033     eval enable_$ac_feature=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
1147   -program-transform-name | --program-transform-name \
1148   | --program-transform-nam | --program-transform-na \
1149   | --program-transform-n | --program-transform- \
1150   | --program-transform | --program-transfor \
1151   | --program-transfo | --program-transf \
1152   | --program-trans | --program-tran \
1153   | --progr-tra | --program-tr | --program-t)
1154     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       { echo "$as_me: error: invalid package name: $ac_package" >&2
1228    { (exit 1); exit 1; }; }
1229     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230     eval with_$ac_package=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       { echo "$as_me: error: invalid package name: $ac_package" >&2
1237    { (exit 1); exit 1; }; }
1238     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239     eval with_$ac_package=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261    { (exit 1); exit 1; }; }
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269    { (exit 1); exit 1; }; }
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   { echo "$as_me: error: missing argument to $ac_option" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 # Be sure to have absolute directory names.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   case $ac_val in
1298     [\\/$]* | ?:[\\/]* )  continue;;
1299     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300   esac
1301   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302    { (exit 1); exit 1; }; }
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317     If a cross compiler is detected then cross compile mode will be used." >&2
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   { echo "$as_me: error: Working directory cannot be determined" >&2
1333    { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335   { echo "$as_me: error: pwd does not report name of working directory" >&2
1336    { (exit 1); exit 1; }; }
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341   ac_srcdir_defaulted=yes
1342   # Try the directory containing this script, then the parent directory.
1343   ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345          X"$0" : 'X\(//\)[^/]' \| \
1346          X"$0" : 'X\(//\)$' \| \
1347          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1348 echo X"$0" |
1349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)[^/].*/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\).*/{
1362             s//\1/
1363             q
1364           }
1365           s/.*/./; q'`
1366   srcdir=$ac_confdir
1367   if test ! -r "$srcdir/$ac_unique_file"; then
1368     srcdir=..
1369   fi
1370 else
1371   ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376    { (exit 1); exit 1; }; }
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381    { (exit 1); exit 1; }; }
1382         pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385   srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_env_${ac_var}_value=\$${ac_var}
1396   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404   # Omit some internal or obsolete options to make the list less imposing.
1405   # This message is too long to be a string in the A/UX 3.1 sh.
1406   cat <<_ACEOF
1407 \`configure' configures OpenBSM 1.1alpha5 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417   -h, --help              display this help and exit
1418       --help=short        display options specific to this package
1419       --help=recursive    display the short help of all the included packages
1420   -V, --version           display version information and exit
1421   -q, --quiet, --silent   do not print \`checking...' messages
1422       --cache-file=FILE   cache test results in FILE [disabled]
1423   -C, --config-cache      alias for \`--cache-file=config.cache'
1424   -n, --no-create         do not create output files
1425       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428   --prefix=PREFIX         install architecture-independent files in PREFIX
1429                           [$ac_default_prefix]
1430   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                           [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441   --bindir=DIR           user executables [EPREFIX/bin]
1442   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1443   --libexecdir=DIR       program executables [EPREFIX/libexec]
1444   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1445   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1446   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1447   --libdir=DIR           object code libraries [EPREFIX/lib]
1448   --includedir=DIR       C header files [PREFIX/include]
1449   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1450   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1451   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1452   --infodir=DIR          info documentation [DATAROOTDIR/info]
1453   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1454   --mandir=DIR           man documentation [DATAROOTDIR/man]
1455   --docdir=DIR           documentation root [DATAROOTDIR/doc/openbsm]
1456   --htmldir=DIR          html documentation [DOCDIR]
1457   --dvidir=DIR           dvi documentation [DOCDIR]
1458   --pdfdir=DIR           pdf documentation [DOCDIR]
1459   --psdir=DIR            ps documentation [DOCDIR]
1460 _ACEOF
1461
1462   cat <<\_ACEOF
1463
1464 Program names:
1465   --program-prefix=PREFIX            prepend PREFIX to installed program names
1466   --program-suffix=SUFFIX            append SUFFIX to installed program names
1467   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1468
1469 System types:
1470   --build=BUILD     configure for building on BUILD [guessed]
1471   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476   case $ac_init_help in
1477      short | recursive ) echo "Configuration of OpenBSM 1.1alpha5:";;
1478    esac
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484   --enable-maintainer-mode  enable make rules and dependencies not useful
1485                           (and sometimes confusing) to the casual installer
1486   --enable-shared[=PKGS]  build shared libraries [default=yes]
1487   --enable-static[=PKGS]  build static libraries [default=yes]
1488   --enable-fast-install[=PKGS]
1489                           optimize for fast installation [default=yes]
1490   --disable-libtool-lock  avoid locking (might break parallel builds)
1491   --disable-dependency-tracking  speeds up one-time build
1492   --enable-dependency-tracking   do not reject slow dependency extractors
1493
1494 Optional Packages:
1495   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497   --with-native-includes  Use the system native include files instead of those
1498                           included with openbsm.
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-pic              try to use only PIC/non-PIC objects [default=use
1501                           both]
1502   --with-tags[=TAGS]      include additional configurations [automatic]
1503
1504 Some influential environment variables:
1505   CC          C compiler command
1506   CFLAGS      C compiler flags
1507   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508               nonstandard directory <lib dir>
1509   LIBS        libraries to pass to the linker, e.g. -l<library>
1510   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1511               you have headers in a nonstandard directory <include dir>
1512   CPP         C preprocessor
1513   CXX         C++ compiler command
1514   CXXFLAGS    C++ compiler flags
1515   CXXCPP      C++ preprocessor
1516   F77         Fortran 77 compiler command
1517   FFLAGS      Fortran 77 compiler flags
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 OpenBSM configure 1.1alpha5
1584 generated by GNU Autoconf 2.61
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590 _ACEOF
1591   exit
1592 fi
1593 cat >config.log <<_ACEOF
1594 This file contains any messages produced by compilers while
1595 running configure, to aid debugging if configure makes a mistake.
1596
1597 It was created by OpenBSM $as_me 1.1alpha5, which was
1598 generated by GNU Autoconf 2.61.  Invocation command line was
1599
1600   $ $0 $@
1601
1602 _ACEOF
1603 exec 5>>config.log
1604 {
1605 cat <<_ASUNAME
1606 ## --------- ##
1607 ## Platform. ##
1608 ## --------- ##
1609
1610 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1611 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1612 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1613 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1614 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1615
1616 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1617 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1618
1619 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1620 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1621 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1622 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1623 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1624 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1625 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1626
1627 _ASUNAME
1628
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
1632   IFS=$as_save_IFS
1633   test -z "$as_dir" && as_dir=.
1634   echo "PATH: $as_dir"
1635 done
1636 IFS=$as_save_IFS
1637
1638 } >&5
1639
1640 cat >&5 <<_ACEOF
1641
1642
1643 ## ----------- ##
1644 ## Core tests. ##
1645 ## ----------- ##
1646
1647 _ACEOF
1648
1649
1650 # Keep a trace of the command line.
1651 # Strip out --no-create and --no-recursion so they do not pile up.
1652 # Strip out --silent because we don't want to record it for future runs.
1653 # Also quote any args containing shell meta-characters.
1654 # Make two passes to allow for proper duplicate-argument suppression.
1655 ac_configure_args=
1656 ac_configure_args0=
1657 ac_configure_args1=
1658 ac_must_keep_next=false
1659 for ac_pass in 1 2
1660 do
1661   for ac_arg
1662   do
1663     case $ac_arg in
1664     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1665     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1666     | -silent | --silent | --silen | --sile | --sil)
1667       continue ;;
1668     *\'*)
1669       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1670     esac
1671     case $ac_pass in
1672     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1673     2)
1674       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1675       if test $ac_must_keep_next = true; then
1676         ac_must_keep_next=false # Got value, back to normal.
1677       else
1678         case $ac_arg in
1679           *=* | --config-cache | -C | -disable-* | --disable-* \
1680           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1681           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1682           | -with-* | --with-* | -without-* | --without-* | --x)
1683             case "$ac_configure_args0 " in
1684               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1685             esac
1686             ;;
1687           -* ) ac_must_keep_next=true ;;
1688         esac
1689       fi
1690       ac_configure_args="$ac_configure_args '$ac_arg'"
1691       ;;
1692     esac
1693   done
1694 done
1695 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1696 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1697
1698 # When interrupted or exit'd, cleanup temporary files, and complete
1699 # config.log.  We remove comments because anyway the quotes in there
1700 # would cause problems or look ugly.
1701 # WARNING: Use '\'' to represent an apostrophe within the trap.
1702 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1703 trap 'exit_status=$?
1704   # Save into config.log some information that might help in debugging.
1705   {
1706     echo
1707
1708     cat <<\_ASBOX
1709 ## ---------------- ##
1710 ## Cache variables. ##
1711 ## ---------------- ##
1712 _ASBOX
1713     echo
1714     # The following way of writing the cache mishandles newlines in values,
1715 (
1716   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1717     eval ac_val=\$$ac_var
1718     case $ac_val in #(
1719     *${as_nl}*)
1720       case $ac_var in #(
1721       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1722 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1723       esac
1724       case $ac_var in #(
1725       _ | IFS | as_nl) ;; #(
1726       *) $as_unset $ac_var ;;
1727       esac ;;
1728     esac
1729   done
1730   (set) 2>&1 |
1731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1732     *${as_nl}ac_space=\ *)
1733       sed -n \
1734         "s/'\''/'\''\\\\'\'''\''/g;
1735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1736       ;; #(
1737     *)
1738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1739       ;;
1740     esac |
1741     sort
1742 )
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ----------------- ##
1747 ## Output variables. ##
1748 ## ----------------- ##
1749 _ASBOX
1750     echo
1751     for ac_var in $ac_subst_vars
1752     do
1753       eval ac_val=\$$ac_var
1754       case $ac_val in
1755       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756       esac
1757       echo "$ac_var='\''$ac_val'\''"
1758     done | sort
1759     echo
1760
1761     if test -n "$ac_subst_files"; then
1762       cat <<\_ASBOX
1763 ## ------------------- ##
1764 ## File substitutions. ##
1765 ## ------------------- ##
1766 _ASBOX
1767       echo
1768       for ac_var in $ac_subst_files
1769       do
1770         eval ac_val=\$$ac_var
1771         case $ac_val in
1772         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773         esac
1774         echo "$ac_var='\''$ac_val'\''"
1775       done | sort
1776       echo
1777     fi
1778
1779     if test -s confdefs.h; then
1780       cat <<\_ASBOX
1781 ## ----------- ##
1782 ## confdefs.h. ##
1783 ## ----------- ##
1784 _ASBOX
1785       echo
1786       cat confdefs.h
1787       echo
1788     fi
1789     test "$ac_signal" != 0 &&
1790       echo "$as_me: caught signal $ac_signal"
1791     echo "$as_me: exit $exit_status"
1792   } >&5
1793   rm -f core *.core core.conftest.* &&
1794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1795     exit $exit_status
1796 ' 0
1797 for ac_signal in 1 2 13 15; do
1798   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1799 done
1800 ac_signal=0
1801
1802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1803 rm -f -r conftest* confdefs.h
1804
1805 # Predefined preprocessor variables.
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_NAME "$PACKAGE_NAME"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_STRING "$PACKAGE_STRING"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1829 _ACEOF
1830
1831
1832 # Let the site file select an alternate cache file if it wants to.
1833 # Prefer explicitly selected file to automatically selected ones.
1834 if test -n "$CONFIG_SITE"; then
1835   set x "$CONFIG_SITE"
1836 elif test "x$prefix" != xNONE; then
1837   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1838 else
1839   set x "$ac_default_prefix/share/config.site" \
1840         "$ac_default_prefix/etc/config.site"
1841 fi
1842 shift
1843 for ac_site_file
1844 do
1845   if test -r "$ac_site_file"; then
1846     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1847 echo "$as_me: loading site script $ac_site_file" >&6;}
1848     sed 's/^/| /' "$ac_site_file" >&5
1849     . "$ac_site_file"
1850   fi
1851 done
1852
1853 if test -r "$cache_file"; then
1854   # Some versions of bash will fail to source /dev/null (special
1855   # files actually), so we avoid doing that.
1856   if test -f "$cache_file"; then
1857     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1858 echo "$as_me: loading cache $cache_file" >&6;}
1859     case $cache_file in
1860       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1861       *)                      . "./$cache_file";;
1862     esac
1863   fi
1864 else
1865   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1866 echo "$as_me: creating cache $cache_file" >&6;}
1867   >$cache_file
1868 fi
1869
1870 ac_header_list="$ac_header_list sys/time.h"
1871 ac_header_list="$ac_header_list unistd.h"
1872 ac_func_list="$ac_func_list alarm"
1873 # Check that the precious variables saved in the cache have kept the same
1874 # value.
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878   eval ac_new_set=\$ac_env_${ac_var}_set
1879   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880   eval ac_new_val=\$ac_env_${ac_var}_value
1881   case $ac_old_set,$ac_new_set in
1882     set,)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,set)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,);;
1891     *)
1892       if test "x$ac_old_val" != "x$ac_new_val"; then
1893         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896 echo "$as_me:   former value:  $ac_old_val" >&2;}
1897         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898 echo "$as_me:   current value: $ac_new_val" >&2;}
1899         ac_cache_corrupted=:
1900       fi;;
1901   esac
1902   # Pass precious variables to config.status.
1903   if test "$ac_new_set" = set; then
1904     case $ac_new_val in
1905     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906     *) ac_arg=$ac_var=$ac_new_val ;;
1907     esac
1908     case " $ac_configure_args " in
1909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911     esac
1912   fi
1913 done
1914 if $ac_cache_corrupted; then
1915   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954
1955 ac_aux_dir=
1956 for ac_dir in config "$srcdir"/config; do
1957   if test -f "$ac_dir/install-sh"; then
1958     ac_aux_dir=$ac_dir
1959     ac_install_sh="$ac_aux_dir/install-sh -c"
1960     break
1961   elif test -f "$ac_dir/install.sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install.sh -c"
1964     break
1965   elif test -f "$ac_dir/shtool"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/shtool install -c"
1968     break
1969   fi
1970 done
1971 if test -z "$ac_aux_dir"; then
1972   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1973 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1974    { (exit 1); exit 1; }; }
1975 fi
1976
1977 # These three variables are undocumented and unsupported,
1978 # and are intended to be withdrawn in a future Autoconf release.
1979 # They can cause serious problems if a builder's source tree is in a directory
1980 # whose full name contains unusual characters.
1981 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986 ac_config_headers="$ac_config_headers config/config.h"
1987
1988 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1989 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1990     # Check whether --enable-maintainer-mode was given.
1991 if test "${enable_maintainer_mode+set}" = set; then
1992   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1993 else
1994   USE_MAINTAINER_MODE=no
1995 fi
1996
1997   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1998 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1999    if test $USE_MAINTAINER_MODE = yes; then
2000   MAINTAINER_MODE_TRUE=
2001   MAINTAINER_MODE_FALSE='#'
2002 else
2003   MAINTAINER_MODE_TRUE='#'
2004   MAINTAINER_MODE_FALSE=
2005 fi
2006
2007   MAINT=$MAINTAINER_MODE_TRUE
2008
2009
2010
2011 # --with-native-includes forces the use of the system bsm headers.
2012
2013 # Check whether --with-native-includes was given.
2014 if test "${with_native_includes+set}" = set; then
2015   withval=$with_native_includes;
2016
2017 cat >>confdefs.h <<\_ACEOF
2018 #define USE_NATIVE_INCLUDES
2019 _ACEOF
2020
2021 use_native_includes=true
2022
2023 else
2024   use_native_includes=false
2025 fi
2026
2027  if $use_native_includes; then
2028   USE_NATIVE_INCLUDES_TRUE=
2029   USE_NATIVE_INCLUDES_FALSE='#'
2030 else
2031   USE_NATIVE_INCLUDES_TRUE='#'
2032   USE_NATIVE_INCLUDES_FALSE=
2033 fi
2034
2035
2036 for ac_prog in mig
2037 do
2038   # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_path_MIG+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   case $MIG in
2046   [\\/]* | ?:[\\/]*)
2047   ac_cv_path_MIG="$MIG" # Let the user override the test with a path.
2048   ;;
2049   *)
2050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2057     ac_cv_path_MIG="$as_dir/$ac_word$ac_exec_ext"
2058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059     break 2
2060   fi
2061 done
2062 done
2063 IFS=$as_save_IFS
2064
2065   ;;
2066 esac
2067 fi
2068 MIG=$ac_cv_path_MIG
2069 if test -n "$MIG"; then
2070   { echo "$as_me:$LINENO: result: $MIG" >&5
2071 echo "${ECHO_T}$MIG" >&6; }
2072 else
2073   { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2075 fi
2076
2077
2078   test -n "$MIG" && break
2079 done
2080
2081
2082 # Checks for programs.
2083 ac_ext=c
2084 ac_cpp='$CPP $CPPFLAGS'
2085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088 if test -n "$ac_tool_prefix"; then
2089   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_CC+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   if test -n "$CC"; then
2097   ac_cv_prog_CC="$CC" # Let the user override the test.
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112 IFS=$as_save_IFS
2113
2114 fi
2115 fi
2116 CC=$ac_cv_prog_CC
2117 if test -n "$CC"; then
2118   { echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6; }
2120 else
2121   { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2123 fi
2124
2125
2126 fi
2127 if test -z "$ac_cv_prog_CC"; then
2128   ac_ct_CC=$CC
2129   # Extract the first word of "gcc", so it can be a program name with args.
2130 set dummy gcc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$ac_ct_CC"; then
2137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_ac_ct_CC="gcc"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165   if test "x$ac_ct_CC" = x; then
2166     CC=""
2167   else
2168     case $cross_compiling:$ac_tool_warned in
2169 yes:)
2170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet.  If you think this
2172 configuration is useful to you, please write to autoconf@gnu.org." >&5
2173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet.  If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2176 ac_tool_warned=yes ;;
2177 esac
2178     CC=$ac_ct_CC
2179   fi
2180 else
2181   CC="$ac_cv_prog_CC"
2182 fi
2183
2184 if test -z "$CC"; then
2185           if test -n "$ac_tool_prefix"; then
2186     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2187 set dummy ${ac_tool_prefix}cc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$CC"; then
2194   ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203     ac_cv_prog_CC="${ac_tool_prefix}cc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218   { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 fi
2221
2222
2223   fi
2224 fi
2225 if test -z "$CC"; then
2226   # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236   ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245        ac_prog_rejected=yes
2246        continue
2247      fi
2248     ac_cv_prog_CC="cc"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254 IFS=$as_save_IFS
2255
2256 if test $ac_prog_rejected = yes; then
2257   # We found a bogon in the path, so make sure we never use it.
2258   set dummy $ac_cv_prog_CC
2259   shift
2260   if test $# != 0; then
2261     # We chose a different compiler from the bogus one.
2262     # However, it has the same basename, so the bogon will be chosen
2263     # first if we set CC to just the basename; use the full file name.
2264     shift
2265     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2266   fi
2267 fi
2268 fi
2269 fi
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272   { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275   { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280 fi
2281 if test -z "$CC"; then
2282   if test -n "$ac_tool_prefix"; then
2283   for ac_prog in cl.exe
2284   do
2285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$CC"; then
2293   ac_cv_prog_CC="$CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 CC=$ac_cv_prog_CC
2313 if test -n "$CC"; then
2314   { echo "$as_me:$LINENO: result: $CC" >&5
2315 echo "${ECHO_T}$CC" >&6; }
2316 else
2317   { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321
2322     test -n "$CC" && break
2323   done
2324 fi
2325 if test -z "$CC"; then
2326   ac_ct_CC=$CC
2327   for ac_prog in cl.exe
2328 do
2329   # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$ac_ct_CC"; then
2337   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     ac_cv_prog_ac_ct_CC="$ac_prog"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353
2354 fi
2355 fi
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6; }
2360 else
2361   { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2363 fi
2364
2365
2366   test -n "$ac_ct_CC" && break
2367 done
2368
2369   if test "x$ac_ct_CC" = x; then
2370     CC=""
2371   else
2372     case $cross_compiling:$ac_tool_warned in
2373 yes:)
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet.  If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet.  If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2381 esac
2382     CC=$ac_ct_CC
2383   fi
2384 fi
2385
2386 fi
2387
2388
2389 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394
2395 # Provide some information about the compiler.
2396 echo "$as_me:$LINENO: checking for C compiler version" >&5
2397 ac_compiler=`set X $ac_compile; echo $2`
2398 { (ac_try="$ac_compiler --version >&5"
2399 case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_compiler --version >&5") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }
2408 { (ac_try="$ac_compiler -v >&5"
2409 case "(($ac_try" in
2410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411   *) ac_try_echo=$ac_try;;
2412 esac
2413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414   (eval "$ac_compiler -v >&5") 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }
2418 { (ac_try="$ac_compiler -V >&5"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_compiler -V >&5") 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }
2428
2429 cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 ac_clean_files_save=$ac_clean_files
2445 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2446 # Try to create an executable without -o first, disregard a.out.
2447 # It will help us diagnose broken compilers, and finding out an intuition
2448 # of exeext.
2449 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2450 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2452 #
2453 # List of possible output files, starting from the most likely.
2454 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2455 # only as a last resort.  b.out is created by i960 compilers.
2456 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2457 #
2458 # The IRIX 6 linker writes into existing files which may not be
2459 # executable, retaining their permissions.  Remove them first so a
2460 # subsequent execution test works.
2461 ac_rmfiles=
2462 for ac_file in $ac_files
2463 do
2464   case $ac_file in
2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2466     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2467   esac
2468 done
2469 rm -f $ac_rmfiles
2470
2471 if { (ac_try="$ac_link_default"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_link_default") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; then
2481   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2484 # so that the user can short-circuit this test for compilers unknown to
2485 # Autoconf.
2486 for ac_file in $ac_files ''
2487 do
2488   test -f "$ac_file" || continue
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2491         ;;
2492     [ab].out )
2493         # We found the default executable, but exeext='' is most
2494         # certainly right.
2495         break;;
2496     *.* )
2497         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2498         then :; else
2499            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500         fi
2501         # We set ac_cv_exeext here because the later test for it is not
2502         # safe: cross compilers may not add the suffix if given an `-o'
2503         # argument, so we may need to know it at that point already.
2504         # Even if this section looks crufty: it has the advantage of
2505         # actually working.
2506         break;;
2507     * )
2508         break;;
2509   esac
2510 done
2511 test "$ac_cv_exeext" = no && ac_cv_exeext=
2512
2513 else
2514   ac_file=''
2515 fi
2516
2517 { echo "$as_me:$LINENO: result: $ac_file" >&5
2518 echo "${ECHO_T}$ac_file" >&6; }
2519 if test -z "$ac_file"; then
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&2;}
2527    { (exit 77); exit 77; }; }
2528 fi
2529
2530 ac_exeext=$ac_cv_exeext
2531
2532 # Check that the compiler produces executables we can run.  If not, either
2533 # the compiler is broken, or we cross compile.
2534 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2535 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2537 # If not cross compiling, check that we can run a simple program.
2538 if test "$cross_compiling" != yes; then
2539   if { ac_try='./$ac_file'
2540   { (case "(($ac_try" in
2541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542   *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545   (eval "$ac_try") 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549     cross_compiling=no
2550   else
2551     if test "$cross_compiling" = maybe; then
2552         cross_compiling=yes
2553     else
2554         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2555 If you meant to cross compile, use \`--host'.
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot run C compiled programs.
2558 If you meant to cross compile, use \`--host'.
2559 See \`config.log' for more details." >&2;}
2560    { (exit 1); exit 1; }; }
2561     fi
2562   fi
2563 fi
2564 { echo "$as_me:$LINENO: result: yes" >&5
2565 echo "${ECHO_T}yes" >&6; }
2566
2567 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2568 ac_clean_files=$ac_clean_files_save
2569 # Check that the compiler produces executables we can run.  If not, either
2570 # the compiler is broken, or we cross compile.
2571 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2572 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2573 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2574 echo "${ECHO_T}$cross_compiling" >&6; }
2575
2576 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2577 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2578 if { (ac_try="$ac_link"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_link") 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; then
2588   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2589 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2590 # work properly (i.e., refer to `conftest.exe'), while it won't with
2591 # `rm'.
2592 for ac_file in conftest.exe conftest conftest.*; do
2593   test -f "$ac_file" || continue
2594   case $ac_file in
2595     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2596     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597           break;;
2598     * ) break;;
2599   esac
2600 done
2601 else
2602   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2603 See \`config.log' for more details." >&5
2604 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607 fi
2608
2609 rm -f conftest$ac_cv_exeext
2610 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2611 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2612
2613 rm -f conftest.$ac_ext
2614 EXEEXT=$ac_cv_exeext
2615 ac_exeext=$EXEEXT
2616 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2617 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2618 if test "${ac_cv_objext+set}" = set; then
2619   echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621   cat >conftest.$ac_ext <<_ACEOF
2622 /* confdefs.h.  */
2623 _ACEOF
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h.  */
2627
2628 int
2629 main ()
2630 {
2631
2632   ;
2633   return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.o conftest.obj
2637 if { (ac_try="$ac_compile"
2638 case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_compile") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; then
2647   for ac_file in conftest.o conftest.obj conftest.*; do
2648   test -f "$ac_file" || continue;
2649   case $ac_file in
2650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2651     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2652        break;;
2653   esac
2654 done
2655 else
2656   echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2658
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664 fi
2665
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 fi
2668 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 echo "${ECHO_T}$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2671 ac_objext=$OBJEXT
2672 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687 #ifndef __GNUC__
2688        choke me
2689 #endif
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_compiler_gnu=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717         ac_compiler_gnu=no
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2722
2723 fi
2724 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2726 GCC=`test $ac_compiler_gnu = yes && echo yes`
2727 ac_test_CFLAGS=${CFLAGS+set}
2728 ac_save_CFLAGS=$CFLAGS
2729 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2730 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_cc_g+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   ac_save_c_werror_flag=$ac_c_werror_flag
2735    ac_c_werror_flag=yes
2736    ac_cv_prog_cc_g=no
2737    CFLAGS="-g"
2738    cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h.  */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h.  */
2744
2745 int
2746 main ()
2747 {
2748
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 rm -f conftest.$ac_objext
2754 if { (ac_try="$ac_compile"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compile") 2>conftest.er1
2761   ac_status=$?
2762   grep -v '^ *+' conftest.er1 >conftest.err
2763   rm -f conftest.er1
2764   cat conftest.err >&5
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); } && {
2767          test -z "$ac_c_werror_flag" ||
2768          test ! -s conftest.err
2769        } && test -s conftest.$ac_objext; then
2770   ac_cv_prog_cc_g=yes
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775         CFLAGS=""
2776       cat >conftest.$ac_ext <<_ACEOF
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782
2783 int
2784 main ()
2785 {
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compile") 2>conftest.er1
2799   ac_status=$?
2800   grep -v '^ *+' conftest.er1 >conftest.err
2801   rm -f conftest.er1
2802   cat conftest.err >&5
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } && {
2805          test -z "$ac_c_werror_flag" ||
2806          test ! -s conftest.err
2807        } && test -s conftest.$ac_objext; then
2808   :
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813         ac_c_werror_flag=$ac_save_c_werror_flag
2814          CFLAGS="-g"
2815          cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821
2822 int
2823 main ()
2824 {
2825
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compile") 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } && {
2844          test -z "$ac_c_werror_flag" ||
2845          test ! -s conftest.err
2846        } && test -s conftest.$ac_objext; then
2847   ac_cv_prog_cc_g=yes
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852
2853 fi
2854
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 fi
2857
2858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2859 fi
2860
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862    ac_c_werror_flag=$ac_save_c_werror_flag
2863 fi
2864 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2865 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2866 if test "$ac_test_CFLAGS" = set; then
2867   CFLAGS=$ac_save_CFLAGS
2868 elif test $ac_cv_prog_cc_g = yes; then
2869   if test "$GCC" = yes; then
2870     CFLAGS="-g -O2"
2871   else
2872     CFLAGS="-g"
2873   fi
2874 else
2875   if test "$GCC" = yes; then
2876     CFLAGS="-O2"
2877   else
2878     CFLAGS=
2879   fi
2880 fi
2881 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2882 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_cc_c89+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   ac_cv_prog_cc_c89=no
2887 ac_save_CC=$CC
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894 #include <stdarg.h>
2895 #include <stdio.h>
2896 #include <sys/types.h>
2897 #include <sys/stat.h>
2898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2899 struct buf { int x; };
2900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2901 static char *e (p, i)
2902      char **p;
2903      int i;
2904 {
2905   return p[i];
2906 }
2907 static char *f (char * (*g) (char **, int), char **p, ...)
2908 {
2909   char *s;
2910   va_list v;
2911   va_start (v,p);
2912   s = g (p, va_arg (v,int));
2913   va_end (v);
2914   return s;
2915 }
2916
2917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2918    function prototypes and stuff, but not '\xHH' hex character constants.
2919    These don't provoke an error unfortunately, instead are silently treated
2920    as 'x'.  The following induces an error, until -std is added to get
2921    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2922    array size at least.  It's necessary to write '\x00'==0 to get something
2923    that's true only with -std.  */
2924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2925
2926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927    inside strings and character constants.  */
2928 #define FOO(x) 'x'
2929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2930
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2935 int argc;
2936 char **argv;
2937 int
2938 main ()
2939 {
2940 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2946         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2947 do
2948   CC="$ac_save_CC $ac_arg"
2949   rm -f conftest.$ac_objext
2950 if { (ac_try="$ac_compile"
2951 case "(($ac_try" in
2952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953   *) ac_try_echo=$ac_try;;
2954 esac
2955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956   (eval "$ac_compile") 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } && {
2963          test -z "$ac_c_werror_flag" ||
2964          test ! -s conftest.err
2965        } && test -s conftest.$ac_objext; then
2966   ac_cv_prog_cc_c89=$ac_arg
2967 else
2968   echo "$as_me: failed program was:" >&5
2969 sed 's/^/| /' conftest.$ac_ext >&5
2970
2971
2972 fi
2973
2974 rm -f core conftest.err conftest.$ac_objext
2975   test "x$ac_cv_prog_cc_c89" != "xno" && break
2976 done
2977 rm -f conftest.$ac_ext
2978 CC=$ac_save_CC
2979
2980 fi
2981 # AC_CACHE_VAL
2982 case "x$ac_cv_prog_cc_c89" in
2983   x)
2984     { echo "$as_me:$LINENO: result: none needed" >&5
2985 echo "${ECHO_T}none needed" >&6; } ;;
2986   xno)
2987     { echo "$as_me:$LINENO: result: unsupported" >&5
2988 echo "${ECHO_T}unsupported" >&6; } ;;
2989   *)
2990     CC="$CC $ac_cv_prog_cc_c89"
2991     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2992 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2993 esac
2994
2995
2996 ac_ext=c
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001
3002 # Find a good install program.  We prefer a C program (faster),
3003 # so one script is as good as another.  But avoid the broken or
3004 # incompatible versions:
3005 # SysV /etc/install, /usr/sbin/install
3006 # SunOS /usr/etc/install
3007 # IRIX /sbin/install
3008 # AIX /bin/install
3009 # AmigaOS /C/install, which installs bootblocks on floppy discs
3010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3013 # OS/2's system install, which has a completely different semantic
3014 # ./install, which can be erroneously created by make from ./install.sh.
3015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3017 if test -z "$INSTALL"; then
3018 if test "${ac_cv_path_install+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024   IFS=$as_save_IFS
3025   test -z "$as_dir" && as_dir=.
3026   # Account for people who put trailing slashes in PATH elements.
3027 case $as_dir/ in
3028   ./ | .// | /cC/* | \
3029   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3031   /usr/ucb/* ) ;;
3032   *)
3033     # OSF1 and SCO ODT 3.0 have their own names for install.
3034     # Don't use installbsd from OSF since it installs stuff as root
3035     # by default.
3036     for ac_prog in ginstall scoinst install; do
3037       for ac_exec_ext in '' $ac_executable_extensions; do
3038         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3039           if test $ac_prog = install &&
3040             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041             # AIX install.  It has an incompatible calling convention.
3042             :
3043           elif test $ac_prog = install &&
3044             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045             # program-specific install script used by HP pwplus--don't use.
3046             :
3047           else
3048             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3049             break 3
3050           fi
3051         fi
3052       done
3053     done
3054     ;;
3055 esac
3056 done
3057 IFS=$as_save_IFS
3058
3059
3060 fi
3061   if test "${ac_cv_path_install+set}" = set; then
3062     INSTALL=$ac_cv_path_install
3063   else
3064     # As a last resort, use the slow shell script.  Don't cache a
3065     # value for INSTALL within a source directory, because that will
3066     # break other packages using the cache if that directory is
3067     # removed, or if the value is a relative name.
3068     INSTALL=$ac_install_sh
3069   fi
3070 fi
3071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3072 echo "${ECHO_T}$INSTALL" >&6; }
3073
3074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3075 # It thinks the first close brace ends the variable substitution.
3076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3077
3078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3079
3080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3081
3082 # Check whether --enable-shared was given.
3083 if test "${enable_shared+set}" = set; then
3084   enableval=$enable_shared; p=${PACKAGE-default}
3085     case $enableval in
3086     yes) enable_shared=yes ;;
3087     no) enable_shared=no ;;
3088     *)
3089       enable_shared=no
3090       # Look at the argument we got.  We use all the common list separators.
3091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3092       for pkg in $enableval; do
3093         IFS="$lt_save_ifs"
3094         if test "X$pkg" = "X$p"; then
3095           enable_shared=yes
3096         fi
3097       done
3098       IFS="$lt_save_ifs"
3099       ;;
3100     esac
3101 else
3102   enable_shared=yes
3103 fi
3104
3105
3106 # Check whether --enable-static was given.
3107 if test "${enable_static+set}" = set; then
3108   enableval=$enable_static; p=${PACKAGE-default}
3109     case $enableval in
3110     yes) enable_static=yes ;;
3111     no) enable_static=no ;;
3112     *)
3113      enable_static=no
3114       # Look at the argument we got.  We use all the common list separators.
3115       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3116       for pkg in $enableval; do
3117         IFS="$lt_save_ifs"
3118         if test "X$pkg" = "X$p"; then
3119           enable_static=yes
3120         fi
3121       done
3122       IFS="$lt_save_ifs"
3123       ;;
3124     esac
3125 else
3126   enable_static=yes
3127 fi
3128
3129
3130 # Check whether --enable-fast-install was given.
3131 if test "${enable_fast_install+set}" = set; then
3132   enableval=$enable_fast_install; p=${PACKAGE-default}
3133     case $enableval in
3134     yes) enable_fast_install=yes ;;
3135     no) enable_fast_install=no ;;
3136     *)
3137       enable_fast_install=no
3138       # Look at the argument we got.  We use all the common list separators.
3139       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3140       for pkg in $enableval; do
3141         IFS="$lt_save_ifs"
3142         if test "X$pkg" = "X$p"; then
3143           enable_fast_install=yes
3144         fi
3145       done
3146       IFS="$lt_save_ifs"
3147       ;;
3148     esac
3149 else
3150   enable_fast_install=yes
3151 fi
3152
3153
3154 # Make sure we can run config.sub.
3155 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3156   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3157 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3158    { (exit 1); exit 1; }; }
3159
3160 { echo "$as_me:$LINENO: checking build system type" >&5
3161 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3162 if test "${ac_cv_build+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   ac_build_alias=$build_alias
3166 test "x$ac_build_alias" = x &&
3167   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3168 test "x$ac_build_alias" = x &&
3169   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3170 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3171    { (exit 1); exit 1; }; }
3172 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3173   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3174 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3175    { (exit 1); exit 1; }; }
3176
3177 fi
3178 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3179 echo "${ECHO_T}$ac_cv_build" >&6; }
3180 case $ac_cv_build in
3181 *-*-*) ;;
3182 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3183 echo "$as_me: error: invalid value of canonical build" >&2;}
3184    { (exit 1); exit 1; }; };;
3185 esac
3186 build=$ac_cv_build
3187 ac_save_IFS=$IFS; IFS='-'
3188 set x $ac_cv_build
3189 shift
3190 build_cpu=$1
3191 build_vendor=$2
3192 shift; shift
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3195 build_os=$*
3196 IFS=$ac_save_IFS
3197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3198
3199
3200 { echo "$as_me:$LINENO: checking host system type" >&5
3201 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3202 if test "${ac_cv_host+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   if test "x$host_alias" = x; then
3206   ac_cv_host=$ac_cv_build
3207 else
3208   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3209     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3210 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3211    { (exit 1); exit 1; }; }
3212 fi
3213
3214 fi
3215 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3216 echo "${ECHO_T}$ac_cv_host" >&6; }
3217 case $ac_cv_host in
3218 *-*-*) ;;
3219 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3220 echo "$as_me: error: invalid value of canonical host" >&2;}
3221    { (exit 1); exit 1; }; };;
3222 esac
3223 host=$ac_cv_host
3224 ac_save_IFS=$IFS; IFS='-'
3225 set x $ac_cv_host
3226 shift
3227 host_cpu=$1
3228 host_vendor=$2
3229 shift; shift
3230 # Remember, the first character of IFS is used to create $*,
3231 # except with old shells:
3232 host_os=$*
3233 IFS=$ac_save_IFS
3234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3235
3236
3237 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3238 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3239 if test "${lt_cv_path_SED+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242   # Loop through the user's path and test for sed and gsed.
3243 # Then use that list of sed's as ones to test for truncation.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249   for lt_ac_prog in sed gsed; do
3250     for ac_exec_ext in '' $ac_executable_extensions; do
3251       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3252         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3253       fi
3254     done
3255   done
3256 done
3257 IFS=$as_save_IFS
3258 lt_ac_max=0
3259 lt_ac_count=0
3260 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3261 # along with /bin/sed that truncates output.
3262 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3263   test ! -f $lt_ac_sed && continue
3264   cat /dev/null > conftest.in
3265   lt_ac_count=0
3266   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3267   # Check for GNU sed and select it if it is found.
3268   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3269     lt_cv_path_SED=$lt_ac_sed
3270     break
3271   fi
3272   while true; do
3273     cat conftest.in conftest.in >conftest.tmp
3274     mv conftest.tmp conftest.in
3275     cp conftest.in conftest.nl
3276     echo >>conftest.nl
3277     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3278     cmp -s conftest.out conftest.nl || break
3279     # 10000 chars as input seems more than enough
3280     test $lt_ac_count -gt 10 && break
3281     lt_ac_count=`expr $lt_ac_count + 1`
3282     if test $lt_ac_count -gt $lt_ac_max; then
3283       lt_ac_max=$lt_ac_count
3284       lt_cv_path_SED=$lt_ac_sed
3285     fi
3286   done
3287 done
3288
3289 fi
3290
3291 SED=$lt_cv_path_SED
3292
3293 { echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6; }
3295
3296 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3297 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3298 if test "${ac_cv_path_GREP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   # Extract the first word of "grep ggrep" to use in msg output
3302 if test -z "$GREP"; then
3303 set dummy grep ggrep; ac_prog_name=$2
3304 if test "${ac_cv_path_GREP+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   ac_path_GREP_found=false
3308 # Loop through the user's path and test for each of PROGNAME-LIST
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314   for ac_prog in grep ggrep; do
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3317     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3318     # Check for GNU ac_path_GREP and select it if it is found.
3319   # Check for GNU $ac_path_GREP
3320 case `"$ac_path_GREP" --version 2>&1` in
3321 *GNU*)
3322   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3323 *)
3324   ac_count=0
3325   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3326   while :
3327   do
3328     cat "conftest.in" "conftest.in" >"conftest.tmp"
3329     mv "conftest.tmp" "conftest.in"
3330     cp "conftest.in" "conftest.nl"
3331     echo 'GREP' >> "conftest.nl"
3332     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3334     ac_count=`expr $ac_count + 1`
3335     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3336       # Best one so far, save it but keep looking for a better one
3337       ac_cv_path_GREP="$ac_path_GREP"
3338       ac_path_GREP_max=$ac_count
3339     fi
3340     # 10*(2^10) chars as input seems more than enough
3341     test $ac_count -gt 10 && break
3342   done
3343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3344 esac
3345
3346
3347     $ac_path_GREP_found && break 3
3348   done
3349 done
3350
3351 done
3352 IFS=$as_save_IFS
3353
3354
3355 fi
3356
3357 GREP="$ac_cv_path_GREP"
3358 if test -z "$GREP"; then
3359   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3360 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3361    { (exit 1); exit 1; }; }
3362 fi
3363
3364 else
3365   ac_cv_path_GREP=$GREP
3366 fi
3367
3368
3369 fi
3370 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3371 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3372  GREP="$ac_cv_path_GREP"
3373
3374
3375 { echo "$as_me:$LINENO: checking for egrep" >&5
3376 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3377 if test "${ac_cv_path_EGREP+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3381    then ac_cv_path_EGREP="$GREP -E"
3382    else
3383      # Extract the first word of "egrep" to use in msg output
3384 if test -z "$EGREP"; then
3385 set dummy egrep; ac_prog_name=$2
3386 if test "${ac_cv_path_EGREP+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   ac_path_EGREP_found=false
3390 # Loop through the user's path and test for each of PROGNAME-LIST
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3393 do
3394   IFS=$as_save_IFS
3395   test -z "$as_dir" && as_dir=.
3396   for ac_prog in egrep; do
3397   for ac_exec_ext in '' $ac_executable_extensions; do
3398     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3399     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3400     # Check for GNU ac_path_EGREP and select it if it is found.
3401   # Check for GNU $ac_path_EGREP
3402 case `"$ac_path_EGREP" --version 2>&1` in
3403 *GNU*)
3404   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3405 *)
3406   ac_count=0
3407   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3408   while :
3409   do
3410     cat "conftest.in" "conftest.in" >"conftest.tmp"
3411     mv "conftest.tmp" "conftest.in"
3412     cp "conftest.in" "conftest.nl"
3413     echo 'EGREP' >> "conftest.nl"
3414     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3415     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3416     ac_count=`expr $ac_count + 1`
3417     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3418       # Best one so far, save it but keep looking for a better one
3419       ac_cv_path_EGREP="$ac_path_EGREP"
3420       ac_path_EGREP_max=$ac_count
3421     fi
3422     # 10*(2^10) chars as input seems more than enough
3423     test $ac_count -gt 10 && break
3424   done
3425   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3426 esac
3427
3428
3429     $ac_path_EGREP_found && break 3
3430   done
3431 done
3432
3433 done
3434 IFS=$as_save_IFS
3435
3436
3437 fi
3438
3439 EGREP="$ac_cv_path_EGREP"
3440 if test -z "$EGREP"; then
3441   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3442 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3443    { (exit 1); exit 1; }; }
3444 fi
3445
3446 else
3447   ac_cv_path_EGREP=$EGREP
3448 fi
3449
3450
3451    fi
3452 fi
3453 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3454 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3455  EGREP="$ac_cv_path_EGREP"
3456
3457
3458
3459 # Check whether --with-gnu-ld was given.
3460 if test "${with_gnu_ld+set}" = set; then
3461   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3462 else
3463   with_gnu_ld=no
3464 fi
3465
3466 ac_prog=ld
3467 if test "$GCC" = yes; then
3468   # Check if gcc -print-prog-name=ld gives a path.
3469   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3470 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3471   case $host in
3472   *-*-mingw*)
3473     # gcc leaves a trailing carriage return which upsets mingw
3474     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3475   *)
3476     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3477   esac
3478   case $ac_prog in
3479     # Accept absolute paths.
3480     [\\/]* | ?:[\\/]*)
3481       re_direlt='/[^/][^/]*/\.\./'
3482       # Canonicalize the pathname of ld
3483       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3484       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3485         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3486       done
3487       test -z "$LD" && LD="$ac_prog"
3488       ;;
3489   "")
3490     # If it fails, then pretend we aren't using GCC.
3491     ac_prog=ld
3492     ;;
3493   *)
3494     # If it is relative, then search for the first ld in PATH.
3495     with_gnu_ld=unknown
3496     ;;
3497   esac
3498 elif test "$with_gnu_ld" = yes; then
3499   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3500 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3501 else
3502   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3503 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3504 fi
3505 if test "${lt_cv_path_LD+set}" = set; then
3506   echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508   if test -z "$LD"; then
3509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3510   for ac_dir in $PATH; do
3511     IFS="$lt_save_ifs"
3512     test -z "$ac_dir" && ac_dir=.
3513     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3514       lt_cv_path_LD="$ac_dir/$ac_prog"
3515       # Check to see if the program is GNU ld.  I'd rather use --version,
3516       # but apparently some variants of GNU ld only accept -v.
3517       # Break only if it was the GNU/non-GNU ld that we prefer.
3518       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3519       *GNU* | *'with BFD'*)
3520         test "$with_gnu_ld" != no && break
3521         ;;
3522       *)
3523         test "$with_gnu_ld" != yes && break
3524         ;;
3525       esac
3526     fi
3527   done
3528   IFS="$lt_save_ifs"
3529 else
3530   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3531 fi
3532 fi
3533
3534 LD="$lt_cv_path_LD"
3535 if test -n "$LD"; then
3536   { echo "$as_me:$LINENO: result: $LD" >&5
3537 echo "${ECHO_T}$LD" >&6; }
3538 else
3539   { echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6; }
3541 fi
3542 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3543 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3544    { (exit 1); exit 1; }; }
3545 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3546 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3547 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3551 case `$LD -v 2>&1 </dev/null` in
3552 *GNU* | *'with BFD'*)
3553   lt_cv_prog_gnu_ld=yes
3554   ;;
3555 *)
3556   lt_cv_prog_gnu_ld=no
3557   ;;
3558 esac
3559 fi
3560 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3561 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3562 with_gnu_ld=$lt_cv_prog_gnu_ld
3563
3564
3565 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3566 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3567 if test "${lt_cv_ld_reload_flag+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   lt_cv_ld_reload_flag='-r'
3571 fi
3572 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3573 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3574 reload_flag=$lt_cv_ld_reload_flag
3575 case $reload_flag in
3576 "" | " "*) ;;
3577 *) reload_flag=" $reload_flag" ;;
3578 esac
3579 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3580 case $host_os in
3581   darwin*)
3582     if test "$GCC" = yes; then
3583       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3584     else
3585       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3586     fi
3587     ;;
3588 esac
3589
3590 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3591 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3592 if test "${lt_cv_path_NM+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -n "$NM"; then
3596   # Let the user override the test.
3597   lt_cv_path_NM="$NM"
3598 else
3599   lt_nm_to_check="${ac_tool_prefix}nm"
3600   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3601     lt_nm_to_check="$lt_nm_to_check nm"
3602   fi
3603   for lt_tmp_nm in $lt_nm_to_check; do
3604     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3605     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3606       IFS="$lt_save_ifs"
3607       test -z "$ac_dir" && ac_dir=.
3608       tmp_nm="$ac_dir/$lt_tmp_nm"
3609       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3610         # Check to see if the nm accepts a BSD-compat flag.
3611         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3612         #   nm: unknown option "B" ignored
3613         # Tru64's nm complains that /dev/null is an invalid object file
3614         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3615         */dev/null* | *'Invalid file or object type'*)
3616           lt_cv_path_NM="$tmp_nm -B"
3617           break
3618           ;;
3619         *)
3620           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3621           */dev/null*)
3622             lt_cv_path_NM="$tmp_nm -p"
3623             break
3624             ;;
3625           *)
3626             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3627             continue # so that we can try to find one that supports BSD flags
3628             ;;
3629           esac
3630           ;;
3631         esac
3632       fi
3633     done
3634     IFS="$lt_save_ifs"
3635   done
3636   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3637 fi
3638 fi
3639 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3640 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3641 NM="$lt_cv_path_NM"
3642
3643 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3644 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3645 LN_S=$as_ln_s
3646 if test "$LN_S" = "ln -s"; then
3647   { echo "$as_me:$LINENO: result: yes" >&5
3648 echo "${ECHO_T}yes" >&6; }
3649 else
3650   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3651 echo "${ECHO_T}no, using $LN_S" >&6; }
3652 fi
3653
3654 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3655 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3656 if test "${lt_cv_deplibs_check_method+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   lt_cv_file_magic_cmd='$MAGIC_CMD'
3660 lt_cv_file_magic_test_file=
3661 lt_cv_deplibs_check_method='unknown'
3662 # Need to set the preceding variable on all platforms that support
3663 # interlibrary dependencies.
3664 # 'none' -- dependencies not supported.
3665 # `unknown' -- same as none, but documents that we really don't know.
3666 # 'pass_all' -- all dependencies passed with no checks.
3667 # 'test_compile' -- check by making test program.
3668 # 'file_magic [[regex]]' -- check by looking for files in library path
3669 # which responds to the $file_magic_cmd with a given extended regex.
3670 # If you have `file' or equivalent on your system and you're not sure
3671 # whether `pass_all' will *always* work, you probably want this one.
3672
3673 case $host_os in
3674 aix4* | aix5*)
3675   lt_cv_deplibs_check_method=pass_all
3676   ;;
3677
3678 beos*)
3679   lt_cv_deplibs_check_method=pass_all
3680   ;;
3681
3682 bsdi[45]*)
3683   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3684   lt_cv_file_magic_cmd='/usr/bin/file -L'
3685   lt_cv_file_magic_test_file=/shlib/libc.so
3686   ;;
3687
3688 cygwin*)
3689   # func_win32_libid is a shell function defined in ltmain.sh
3690   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3691   lt_cv_file_magic_cmd='func_win32_libid'
3692   ;;
3693
3694 mingw* | pw32*)
3695   # Base MSYS/MinGW do not provide the 'file' command needed by
3696   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3697   # unless we find 'file', for example because we are cross-compiling.
3698   if ( file / ) >/dev/null 2>&1; then
3699     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3700     lt_cv_file_magic_cmd='func_win32_libid'
3701   else
3702     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3703     lt_cv_file_magic_cmd='$OBJDUMP -f'
3704   fi
3705   ;;
3706
3707 darwin* | rhapsody*)
3708   lt_cv_deplibs_check_method=pass_all
3709   ;;
3710
3711 freebsd* | dragonfly*)
3712   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3713     case $host_cpu in
3714     i*86 )
3715       # Not sure whether the presence of OpenBSD here was a mistake.
3716       # Let's accept both of them until this is cleared up.
3717       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3718       lt_cv_file_magic_cmd=/usr/bin/file
3719       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720       ;;
3721     esac
3722   else
3723     lt_cv_deplibs_check_method=pass_all
3724   fi
3725   ;;
3726
3727 gnu*)
3728   lt_cv_deplibs_check_method=pass_all
3729   ;;
3730
3731 hpux10.20* | hpux11*)
3732   lt_cv_file_magic_cmd=/usr/bin/file
3733   case $host_cpu in
3734   ia64*)
3735     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3736     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3737     ;;
3738   hppa*64*)
3739     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]'
3740     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3741     ;;
3742   *)
3743     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3744     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3745     ;;
3746   esac
3747   ;;
3748
3749 interix[3-9]*)
3750   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3751   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3752   ;;
3753
3754 irix5* | irix6* | nonstopux*)
3755   case $LD in
3756   *-32|*"-32 ") libmagic=32-bit;;
3757   *-n32|*"-n32 ") libmagic=N32;;
3758   *-64|*"-64 ") libmagic=64-bit;;
3759   *) libmagic=never-match;;
3760   esac
3761   lt_cv_deplibs_check_method=pass_all
3762   ;;
3763
3764 # This must be Linux ELF.
3765 linux* | k*bsd*-gnu)
3766   lt_cv_deplibs_check_method=pass_all
3767   ;;
3768
3769 netbsd*)
3770   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3772   else
3773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3774   fi
3775   ;;
3776
3777 newos6*)
3778   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3779   lt_cv_file_magic_cmd=/usr/bin/file
3780   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3781   ;;
3782
3783 nto-qnx*)
3784   lt_cv_deplibs_check_method=unknown
3785   ;;
3786
3787 openbsd*)
3788   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3789     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3790   else
3791     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3792   fi
3793   ;;
3794
3795 osf3* | osf4* | osf5*)
3796   lt_cv_deplibs_check_method=pass_all
3797   ;;
3798
3799 rdos*)
3800   lt_cv_deplibs_check_method=pass_all
3801   ;;
3802
3803 solaris*)
3804   lt_cv_deplibs_check_method=pass_all
3805   ;;
3806
3807 sysv4 | sysv4.3*)
3808   case $host_vendor in
3809   motorola)
3810     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]'
3811     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3812     ;;
3813   ncr)
3814     lt_cv_deplibs_check_method=pass_all
3815     ;;
3816   sequent)
3817     lt_cv_file_magic_cmd='/bin/file'
3818     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3819     ;;
3820   sni)
3821     lt_cv_file_magic_cmd='/bin/file'
3822     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3823     lt_cv_file_magic_test_file=/lib/libc.so
3824     ;;
3825   siemens)
3826     lt_cv_deplibs_check_method=pass_all
3827     ;;
3828   pc)
3829     lt_cv_deplibs_check_method=pass_all
3830     ;;
3831   esac
3832   ;;
3833
3834 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3835   lt_cv_deplibs_check_method=pass_all
3836   ;;
3837 esac
3838
3839 fi
3840 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3841 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3842 file_magic_cmd=$lt_cv_file_magic_cmd
3843 deplibs_check_method=$lt_cv_deplibs_check_method
3844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3845
3846
3847
3848
3849 # If no C compiler was specified, use CC.
3850 LTCC=${LTCC-"$CC"}
3851
3852 # If no C compiler flags were specified, use CFLAGS.
3853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3854
3855 # Allow CC to be a program name with arguments.
3856 compiler=$CC
3857
3858
3859 # Check whether --enable-libtool-lock was given.
3860 if test "${enable_libtool_lock+set}" = set; then
3861   enableval=$enable_libtool_lock;
3862 fi
3863
3864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3865
3866 # Some flags need to be propagated to the compiler or linker for good
3867 # libtool support.
3868 case $host in
3869 ia64-*-hpux*)
3870   # Find out which ABI we are using.
3871   echo 'int i;' > conftest.$ac_ext
3872   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3873   (eval $ac_compile) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; then
3877     case `/usr/bin/file conftest.$ac_objext` in
3878     *ELF-32*)
3879       HPUX_IA64_MODE="32"
3880       ;;
3881     *ELF-64*)
3882       HPUX_IA64_MODE="64"
3883       ;;
3884     esac
3885   fi
3886   rm -rf conftest*
3887   ;;
3888 *-*-irix6*)
3889   # Find out which ABI we are using.
3890   echo '#line 3890 "configure"' > conftest.$ac_ext
3891   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892   (eval $ac_compile) 2>&5
3893   ac_status=$?
3894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895   (exit $ac_status); }; then
3896    if test "$lt_cv_prog_gnu_ld" = yes; then
3897     case `/usr/bin/file conftest.$ac_objext` in
3898     *32-bit*)
3899       LD="${LD-ld} -melf32bsmip"
3900       ;;
3901     *N32*)
3902       LD="${LD-ld} -melf32bmipn32"
3903       ;;
3904     *64-bit*)
3905       LD="${LD-ld} -melf64bmip"
3906       ;;
3907     esac
3908    else
3909     case `/usr/bin/file conftest.$ac_objext` in
3910     *32-bit*)
3911       LD="${LD-ld} -32"
3912       ;;
3913     *N32*)
3914       LD="${LD-ld} -n32"
3915       ;;
3916     *64-bit*)
3917       LD="${LD-ld} -64"
3918       ;;
3919     esac
3920    fi
3921   fi
3922   rm -rf conftest*
3923   ;;
3924
3925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3926 s390*-*linux*|sparc*-*linux*)
3927   # Find out which ABI we are using.
3928   echo 'int i;' > conftest.$ac_ext
3929   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930   (eval $ac_compile) 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }; then
3934     case `/usr/bin/file conftest.o` in
3935     *32-bit*)
3936       case $host in
3937         x86_64-*kfreebsd*-gnu)
3938           LD="${LD-ld} -m elf_i386_fbsd"
3939           ;;
3940         x86_64-*linux*)
3941           LD="${LD-ld} -m elf_i386"
3942           ;;
3943         ppc64-*linux*|powerpc64-*linux*)
3944           LD="${LD-ld} -m elf32ppclinux"
3945           ;;
3946         s390x-*linux*)
3947           LD="${LD-ld} -m elf_s390"
3948           ;;
3949         sparc64-*linux*)
3950           LD="${LD-ld} -m elf32_sparc"
3951           ;;
3952       esac
3953       ;;
3954     *64-bit*)
3955       case $host in
3956         x86_64-*kfreebsd*-gnu)
3957           LD="${LD-ld} -m elf_x86_64_fbsd"
3958           ;;
3959         x86_64-*linux*)
3960           LD="${LD-ld} -m elf_x86_64"
3961           ;;
3962         ppc*-*linux*|powerpc*-*linux*)
3963           LD="${LD-ld} -m elf64ppc"
3964           ;;
3965         s390*-*linux*)
3966           LD="${LD-ld} -m elf64_s390"
3967           ;;
3968         sparc*-*linux*)
3969           LD="${LD-ld} -m elf64_sparc"
3970           ;;
3971       esac
3972       ;;
3973     esac
3974   fi
3975   rm -rf conftest*
3976   ;;
3977
3978 *-*-sco3.2v5*)
3979   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3980   SAVE_CFLAGS="$CFLAGS"
3981   CFLAGS="$CFLAGS -belf"
3982   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3983 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3984 if test "${lt_cv_cc_needs_belf+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_ext=c
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3992
3993      cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h.  */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h.  */
3999
4000 int
4001 main ()
4002 {
4003
4004   ;
4005   return 0;
4006 }
4007 _ACEOF
4008 rm -f conftest.$ac_objext conftest$ac_exeext
4009 if { (ac_try="$ac_link"
4010 case "(($ac_try" in
4011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012   *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015   (eval "$ac_link") 2>conftest.er1
4016   ac_status=$?
4017   grep -v '^ *+' conftest.er1 >conftest.err
4018   rm -f conftest.er1
4019   cat conftest.err >&5
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } && {
4022          test -z "$ac_c_werror_flag" ||
4023          test ! -s conftest.err
4024        } && test -s conftest$ac_exeext &&
4025        $as_test_x conftest$ac_exeext; then
4026   lt_cv_cc_needs_belf=yes
4027 else
4028   echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031         lt_cv_cc_needs_belf=no
4032 fi
4033
4034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4035       conftest$ac_exeext conftest.$ac_ext
4036      ac_ext=c
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041
4042 fi
4043 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4044 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4045   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4046     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4047     CFLAGS="$SAVE_CFLAGS"
4048   fi
4049   ;;
4050 sparc*-*solaris*)
4051   # Find out which ABI we are using.
4052   echo 'int i;' > conftest.$ac_ext
4053   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054   (eval $ac_compile) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; then
4058     case `/usr/bin/file conftest.o` in
4059     *64-bit*)
4060       case $lt_cv_prog_gnu_ld in
4061       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4062       *)    LD="${LD-ld} -64" ;;
4063       esac
4064       ;;
4065     esac
4066   fi
4067   rm -rf conftest*
4068   ;;
4069
4070
4071 esac
4072
4073 need_locks="$enable_libtool_lock"
4074
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4082 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4083 # On Suns, sometimes $CPP names a directory.
4084 if test -n "$CPP" && test -d "$CPP"; then
4085   CPP=
4086 fi
4087 if test -z "$CPP"; then
4088   if test "${ac_cv_prog_CPP+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091       # Double quotes because CPP needs to be expanded
4092     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4093     do
4094       ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4096 do
4097   # Use a header file that comes with gcc, so configuring glibc
4098   # with a fresh cross-compiler works.
4099   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100   # <limits.h> exists even on freestanding compilers.
4101   # On the NeXT, cc -E runs the code through the compiler's parser,
4102   # not just through cpp. "Syntax error" is here to catch this case.
4103   cat >conftest.$ac_ext <<_ACEOF
4104 /* confdefs.h.  */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h.  */
4109 #ifdef __STDC__
4110 # include <limits.h>
4111 #else
4112 # include <assert.h>
4113 #endif
4114                      Syntax error
4115 _ACEOF
4116 if { (ac_try="$ac_cpp conftest.$ac_ext"
4117 case "(($ac_try" in
4118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119   *) ac_try_echo=$ac_try;;
4120 esac
4121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4122   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } >/dev/null && {
4129          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4130          test ! -s conftest.err
4131        }; then
4132   :
4133 else
4134   echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137   # Broken: fails on valid input.
4138 continue
4139 fi
4140
4141 rm -f conftest.err conftest.$ac_ext
4142
4143   # OK, works on sane cases.  Now check whether nonexistent headers
4144   # can be detected and how.
4145   cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h.  */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h.  */
4151 #include <ac_nonexistent.h>
4152 _ACEOF
4153 if { (ac_try="$ac_cpp conftest.$ac_ext"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } >/dev/null && {
4166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        }; then
4169   # Broken: success on invalid input.
4170 continue
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175   # Passes both tests.
4176 ac_preproc_ok=:
4177 break
4178 fi
4179
4180 rm -f conftest.err conftest.$ac_ext
4181
4182 done
4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4184 rm -f conftest.err conftest.$ac_ext
4185 if $ac_preproc_ok; then
4186   break
4187 fi
4188
4189     done
4190     ac_cv_prog_CPP=$CPP
4191
4192 fi
4193   CPP=$ac_cv_prog_CPP
4194 else
4195   ac_cv_prog_CPP=$CPP
4196 fi
4197 { echo "$as_me:$LINENO: result: $CPP" >&5
4198 echo "${ECHO_T}$CPP" >&6; }
4199 ac_preproc_ok=false
4200 for ac_c_preproc_warn_flag in '' yes
4201 do
4202   # Use a header file that comes with gcc, so configuring glibc
4203   # with a fresh cross-compiler works.
4204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205   # <limits.h> exists even on freestanding compilers.
4206   # On the NeXT, cc -E runs the code through the compiler's parser,
4207   # not just through cpp. "Syntax error" is here to catch this case.
4208   cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h.  */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h.  */
4214 #ifdef __STDC__
4215 # include <limits.h>
4216 #else
4217 # include <assert.h>
4218 #endif
4219                      Syntax error
4220 _ACEOF
4221 if { (ac_try="$ac_cpp conftest.$ac_ext"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } >/dev/null && {
4234          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235          test ! -s conftest.err
4236        }; then
4237   :
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242   # Broken: fails on valid input.
4243 continue
4244 fi
4245
4246 rm -f conftest.err conftest.$ac_ext
4247
4248   # OK, works on sane cases.  Now check whether nonexistent headers
4249   # can be detected and how.
4250   cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h.  */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h.  */
4256 #include <ac_nonexistent.h>
4257 _ACEOF
4258 if { (ac_try="$ac_cpp conftest.$ac_ext"
4259 case "(($ac_try" in
4260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261   *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } >/dev/null && {
4271          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4272          test ! -s conftest.err
4273        }; then
4274   # Broken: success on invalid input.
4275 continue
4276 else
4277   echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4279
4280   # Passes both tests.
4281 ac_preproc_ok=:
4282 break
4283 fi
4284
4285 rm -f conftest.err conftest.$ac_ext
4286
4287 done
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.err conftest.$ac_ext
4290 if $ac_preproc_ok; then
4291   :
4292 else
4293   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4294 See \`config.log' for more details." >&5
4295 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details." >&2;}
4297    { (exit 1); exit 1; }; }
4298 fi
4299
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306
4307 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4309 if test "${ac_cv_header_stdc+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318 #include <stdlib.h>
4319 #include <stdarg.h>
4320 #include <string.h>
4321 #include <float.h>
4322
4323 int
4324 main ()
4325 {
4326
4327   ;
4328   return 0;
4329 }
4330 _ACEOF
4331 rm -f conftest.$ac_objext
4332 if { (ac_try="$ac_compile"
4333 case "(($ac_try" in
4334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335   *) ac_try_echo=$ac_try;;
4336 esac
4337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4338   (eval "$ac_compile") 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } && {
4345          test -z "$ac_c_werror_flag" ||
4346          test ! -s conftest.err
4347        } && test -s conftest.$ac_objext; then
4348   ac_cv_header_stdc=yes
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4352
4353         ac_cv_header_stdc=no
4354 fi
4355
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
4358 if test $ac_cv_header_stdc = yes; then
4359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360   cat >conftest.$ac_ext <<_ACEOF
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #include <string.h>
4367
4368 _ACEOF
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370   $EGREP "memchr" >/dev/null 2>&1; then
4371   :
4372 else
4373   ac_cv_header_stdc=no
4374 fi
4375 rm -f conftest*
4376
4377 fi
4378
4379 if test $ac_cv_header_stdc = yes; then
4380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4381   cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387 #include <stdlib.h>
4388
4389 _ACEOF
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391   $EGREP "free" >/dev/null 2>&1; then
4392   :
4393 else
4394   ac_cv_header_stdc=no
4395 fi
4396 rm -f conftest*
4397
4398 fi
4399
4400 if test $ac_cv_header_stdc = yes; then
4401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4402   if test "$cross_compiling" = yes; then
4403   :
4404 else
4405   cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h.  */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h.  */
4411 #include <ctype.h>
4412 #include <stdlib.h>
4413 #if ((' ' & 0x0FF) == 0x020)
4414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4416 #else
4417 # define ISLOWER(c) \
4418                    (('a' <= (c) && (c) <= 'i') \
4419                      || ('j' <= (c) && (c) <= 'r') \
4420                      || ('s' <= (c) && (c) <= 'z'))
4421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4422 #endif
4423
4424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4425 int
4426 main ()
4427 {
4428   int i;
4429   for (i = 0; i < 256; i++)
4430     if (XOR (islower (i), ISLOWER (i))
4431         || toupper (i) != TOUPPER (i))
4432       return 2;
4433   return 0;
4434 }
4435 _ACEOF
4436 rm -f conftest$ac_exeext
4437 if { (ac_try="$ac_link"
4438 case "(($ac_try" in
4439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440   *) ac_try_echo=$ac_try;;
4441 esac
4442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443   (eval "$ac_link") 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447   { (case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452   (eval "$ac_try") 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   :
4457 else
4458   echo "$as_me: program exited with status $ac_status" >&5
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4461
4462 ( exit $ac_status )
4463 ac_cv_header_stdc=no
4464 fi
4465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4466 fi
4467
4468
4469 fi
4470 fi
4471 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4472 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4473 if test $ac_cv_header_stdc = yes; then
4474
4475 cat >>confdefs.h <<\_ACEOF
4476 #define STDC_HEADERS 1
4477 _ACEOF
4478
4479 fi
4480
4481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4492                   inttypes.h stdint.h unistd.h
4493 do
4494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498   echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 $ac_includes_default
4507
4508 #include <$ac_header>
4509 _ACEOF
4510 rm -f conftest.$ac_objext
4511 if { (ac_try="$ac_compile"
4512 case "(($ac_try" in
4513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514   *) ac_try_echo=$ac_try;;
4515 esac
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517   (eval "$ac_compile") 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } && {
4524          test -z "$ac_c_werror_flag" ||
4525          test ! -s conftest.err
4526        } && test -s conftest.$ac_objext; then
4527   eval "$as_ac_Header=yes"
4528 else
4529   echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532         eval "$as_ac_Header=no"
4533 fi
4534
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 fi
4537 ac_res=`eval echo '${'$as_ac_Header'}'`
4538                { echo "$as_me:$LINENO: result: $ac_res" >&5
4539 echo "${ECHO_T}$ac_res" >&6; }
4540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4541   cat >>confdefs.h <<_ACEOF
4542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4543 _ACEOF
4544
4545 fi
4546
4547 done
4548
4549
4550
4551 for ac_header in dlfcn.h
4552 do
4553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4555   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 fi
4560 ac_res=`eval echo '${'$as_ac_Header'}'`
4561                { echo "$as_me:$LINENO: result: $ac_res" >&5
4562 echo "${ECHO_T}$ac_res" >&6; }
4563 else
4564   # Is the header compilable?
4565 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4567 cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 $ac_includes_default
4574 #include <$ac_header>
4575 _ACEOF
4576 rm -f conftest.$ac_objext
4577 if { (ac_try="$ac_compile"
4578 case "(($ac_try" in
4579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580   *) ac_try_echo=$ac_try;;
4581 esac
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583   (eval "$ac_compile") 2>conftest.er1
4584   ac_status=$?
4585   grep -v '^ *+' conftest.er1 >conftest.err
4586   rm -f conftest.er1
4587   cat conftest.err >&5
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); } && {
4590          test -z "$ac_c_werror_flag" ||
4591          test ! -s conftest.err
4592        } && test -s conftest.$ac_objext; then
4593   ac_header_compiler=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598         ac_header_compiler=no
4599 fi
4600
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4603 echo "${ECHO_T}$ac_header_compiler" >&6; }
4604
4605 # Is the header present?
4606 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4608 cat >conftest.$ac_ext <<_ACEOF
4609 /* confdefs.h.  */
4610 _ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h.  */
4614 #include <$ac_header>
4615 _ACEOF
4616 if { (ac_try="$ac_cpp conftest.$ac_ext"
4617 case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4623   ac_status=$?
4624   grep -v '^ *+' conftest.er1 >conftest.err
4625   rm -f conftest.er1
4626   cat conftest.err >&5
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); } >/dev/null && {
4629          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4630          test ! -s conftest.err
4631        }; then
4632   ac_header_preproc=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637   ac_header_preproc=no
4638 fi
4639
4640 rm -f conftest.err conftest.$ac_ext
4641 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4642 echo "${ECHO_T}$ac_header_preproc" >&6; }
4643
4644 # So?  What about this header?
4645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4646   yes:no: )
4647     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4648 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4651     ac_header_preproc=yes
4652     ;;
4653   no:yes:* )
4654     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4655 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4656     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4657 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4658     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4659 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4660     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4661 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4664     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4665 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4666     ( cat <<\_ASBOX
4667 ## ----------------------------------------------- ##
4668 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
4669 ## ----------------------------------------------- ##
4670 _ASBOX
4671      ) | sed "s/^/$as_me: WARNING:     /" >&2
4672     ;;
4673 esac
4674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4677   echo $ECHO_N "(cached) $ECHO_C" >&6
4678 else
4679   eval "$as_ac_Header=\$ac_header_preproc"
4680 fi
4681 ac_res=`eval echo '${'$as_ac_Header'}'`
4682                { echo "$as_me:$LINENO: result: $ac_res" >&5
4683 echo "${ECHO_T}$ac_res" >&6; }
4684
4685 fi
4686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4687   cat >>confdefs.h <<_ACEOF
4688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4689 _ACEOF
4690
4691 fi
4692
4693 done
4694
4695 ac_ext=cpp
4696 ac_cpp='$CXXCPP $CPPFLAGS'
4697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4700 if test -z "$CXX"; then
4701   if test -n "$CCC"; then
4702     CXX=$CCC
4703   else
4704     if test -n "$ac_tool_prefix"; then
4705   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4706   do
4707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_prog_CXX+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   if test -n "$CXX"; then
4715   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4716 else
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732 fi
4733 fi
4734 CXX=$ac_cv_prog_CXX
4735 if test -n "$CXX"; then
4736   { echo "$as_me:$LINENO: result: $CXX" >&5
4737 echo "${ECHO_T}$CXX" >&6; }
4738 else
4739   { echo "$as_me:$LINENO: result: no" >&5
4740 echo "${ECHO_T}no" >&6; }
4741 fi
4742
4743
4744     test -n "$CXX" && break
4745   done
4746 fi
4747 if test -z "$CXX"; then
4748   ac_ct_CXX=$CXX
4749   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4750 do
4751   # Extract the first word of "$ac_prog", so it can be a program name with args.
4752 set dummy $ac_prog; ac_word=$2
4753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4755 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   if test -n "$ac_ct_CXX"; then
4759   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766   for ac_exec_ext in '' $ac_executable_extensions; do
4767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768     ac_cv_prog_ac_ct_CXX="$ac_prog"
4769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4779 if test -n "$ac_ct_CXX"; then
4780   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4781 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4782 else
4783   { echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6; }
4785 fi
4786
4787
4788   test -n "$ac_ct_CXX" && break
4789 done
4790
4791   if test "x$ac_ct_CXX" = x; then
4792     CXX="g++"
4793   else
4794     case $cross_compiling:$ac_tool_warned in
4795 yes:)
4796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4797 whose name does not start with the host triplet.  If you think this
4798 configuration is useful to you, please write to autoconf@gnu.org." >&5
4799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4800 whose name does not start with the host triplet.  If you think this
4801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4802 ac_tool_warned=yes ;;
4803 esac
4804     CXX=$ac_ct_CXX
4805   fi
4806 fi
4807
4808   fi
4809 fi
4810 # Provide some information about the compiler.
4811 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4812 ac_compiler=`set X $ac_compile; echo $2`
4813 { (ac_try="$ac_compiler --version >&5"
4814 case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819   (eval "$ac_compiler --version >&5") 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }
4823 { (ac_try="$ac_compiler -v >&5"
4824 case "(($ac_try" in
4825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826   *) ac_try_echo=$ac_try;;
4827 esac
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829   (eval "$ac_compiler -v >&5") 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }
4833 { (ac_try="$ac_compiler -V >&5"
4834 case "(($ac_try" in
4835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836   *) ac_try_echo=$ac_try;;
4837 esac
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839   (eval "$ac_compiler -V >&5") 2>&5
4840   ac_status=$?
4841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842   (exit $ac_status); }
4843
4844 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4845 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h.  */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h.  */
4855
4856 int
4857 main ()
4858 {
4859 #ifndef __GNUC__
4860        choke me
4861 #endif
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (ac_try="$ac_compile"
4869 case "(($ac_try" in
4870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871   *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874   (eval "$ac_compile") 2>conftest.er1
4875   ac_status=$?
4876   grep -v '^ *+' conftest.er1 >conftest.err
4877   rm -f conftest.er1
4878   cat conftest.err >&5
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); } && {
4881          test -z "$ac_cxx_werror_flag" ||
4882          test ! -s conftest.err
4883        } && test -s conftest.$ac_objext; then
4884   ac_compiler_gnu=yes
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889         ac_compiler_gnu=no
4890 fi
4891
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4894
4895 fi
4896 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4897 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4898 GXX=`test $ac_compiler_gnu = yes && echo yes`
4899 ac_test_CXXFLAGS=${CXXFLAGS+set}
4900 ac_save_CXXFLAGS=$CXXFLAGS
4901 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4902 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_cxx_g+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4907    ac_cxx_werror_flag=yes
4908    ac_cv_prog_cxx_g=no
4909    CXXFLAGS="-g"
4910    cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916
4917 int
4918 main ()
4919 {
4920
4921   ;
4922   return 0;
4923 }
4924 _ACEOF
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929   *) ac_try_echo=$ac_try;;
4930 esac
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932   (eval "$ac_compile") 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } && {
4939          test -z "$ac_cxx_werror_flag" ||
4940          test ! -s conftest.err
4941        } && test -s conftest.$ac_objext; then
4942   ac_cv_prog_cxx_g=yes
4943 else
4944   echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4946
4947         CXXFLAGS=""
4948       cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h.  */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h.  */
4954
4955 int
4956 main ()
4957 {
4958
4959   ;
4960   return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967   *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970   (eval "$ac_compile") 2>conftest.er1
4971   ac_status=$?
4972   grep -v '^ *+' conftest.er1 >conftest.err
4973   rm -f conftest.er1
4974   cat conftest.err >&5
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); } && {
4977          test -z "$ac_cxx_werror_flag" ||
4978          test ! -s conftest.err
4979        } && test -s conftest.$ac_objext; then
4980   :
4981 else
4982   echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4986          CXXFLAGS="-g"
4987          cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h.  */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h.  */
4993
4994 int
4995 main ()
4996 {
4997
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_compile") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } && {
5016          test -z "$ac_cxx_werror_flag" ||
5017          test ! -s conftest.err
5018        } && test -s conftest.$ac_objext; then
5019   ac_cv_prog_cxx_g=yes
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024
5025 fi
5026
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 fi
5029
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 fi
5032
5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5035 fi
5036 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5037 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5038 if test "$ac_test_CXXFLAGS" = set; then
5039   CXXFLAGS=$ac_save_CXXFLAGS
5040 elif test $ac_cv_prog_cxx_g = yes; then
5041   if test "$GXX" = yes; then
5042     CXXFLAGS="-g -O2"
5043   else
5044     CXXFLAGS="-g"
5045   fi
5046 else
5047   if test "$GXX" = yes; then
5048     CXXFLAGS="-O2"
5049   else
5050     CXXFLAGS=
5051   fi
5052 fi
5053 ac_ext=cpp
5054 ac_cpp='$CXXCPP $CPPFLAGS'
5055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058
5059
5060
5061 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5062     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5063     (test "X$CXX" != "Xg++"))) ; then
5064   ac_ext=cpp
5065 ac_cpp='$CXXCPP $CPPFLAGS'
5066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5069 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5070 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5071 if test -z "$CXXCPP"; then
5072   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5073   echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075       # Double quotes because CXXCPP needs to be expanded
5076     for CXXCPP in "$CXX -E" "/lib/cpp"
5077     do
5078       ac_preproc_ok=false
5079 for ac_cxx_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5101 case "(($ac_try" in
5102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103   *) ac_try_echo=$ac_try;;
5104 esac
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5107   ac_status=$?
5108   grep -v '^ *+' conftest.er1 >conftest.err
5109   rm -f conftest.er1
5110   cat conftest.err >&5
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); } >/dev/null && {
5113          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5114          test ! -s conftest.err
5115        }; then
5116   :
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5120
5121   # Broken: fails on valid input.
5122 continue
5123 fi
5124
5125 rm -f conftest.err conftest.$ac_ext
5126
5127   # OK, works on sane cases.  Now check whether nonexistent headers
5128   # can be detected and how.
5129   cat >conftest.$ac_ext <<_ACEOF
5130 /* confdefs.h.  */
5131 _ACEOF
5132 cat confdefs.h >>conftest.$ac_ext
5133 cat >>conftest.$ac_ext <<_ACEOF
5134 /* end confdefs.h.  */
5135 #include <ac_nonexistent.h>
5136 _ACEOF
5137 if { (ac_try="$ac_cpp conftest.$ac_ext"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5144   ac_status=$?
5145   grep -v '^ *+' conftest.er1 >conftest.err
5146   rm -f conftest.er1
5147   cat conftest.err >&5
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } >/dev/null && {
5150          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5151          test ! -s conftest.err
5152        }; then
5153   # Broken: success on invalid input.
5154 continue
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159   # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5162 fi
5163
5164 rm -f conftest.err conftest.$ac_ext
5165
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then
5170   break
5171 fi
5172
5173     done
5174     ac_cv_prog_CXXCPP=$CXXCPP
5175
5176 fi
5177   CXXCPP=$ac_cv_prog_CXXCPP
5178 else
5179   ac_cv_prog_CXXCPP=$CXXCPP
5180 fi
5181 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5182 echo "${ECHO_T}$CXXCPP" >&6; }
5183 ac_preproc_ok=false
5184 for ac_cxx_preproc_warn_flag in '' yes
5185 do
5186   # Use a header file that comes with gcc, so configuring glibc
5187   # with a fresh cross-compiler works.
5188   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189   # <limits.h> exists even on freestanding compilers.
5190   # On the NeXT, cc -E runs the code through the compiler's parser,
5191   # not just through cpp. "Syntax error" is here to catch this case.
5192   cat >conftest.$ac_ext <<_ACEOF
5193 /* confdefs.h.  */
5194 _ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h.  */
5198 #ifdef __STDC__
5199 # include <limits.h>
5200 #else
5201 # include <assert.h>
5202 #endif
5203                      Syntax error
5204 _ACEOF
5205 if { (ac_try="$ac_cpp conftest.$ac_ext"
5206 case "(($ac_try" in
5207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208   *) ac_try_echo=$ac_try;;
5209 esac
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } >/dev/null && {
5218          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5219          test ! -s conftest.err
5220        }; then
5221   :
5222 else
5223   echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226   # Broken: fails on valid input.
5227 continue
5228 fi
5229
5230 rm -f conftest.err conftest.$ac_ext
5231
5232   # OK, works on sane cases.  Now check whether nonexistent headers
5233   # can be detected and how.
5234   cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h.  */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h.  */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if { (ac_try="$ac_cpp conftest.$ac_ext"
5243 case "(($ac_try" in
5244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245   *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null && {
5255          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5256          test ! -s conftest.err
5257        }; then
5258   # Broken: success on invalid input.
5259 continue
5260 else
5261   echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5263
5264   # Passes both tests.
5265 ac_preproc_ok=:
5266 break
5267 fi
5268
5269 rm -f conftest.err conftest.$ac_ext
5270
5271 done
5272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5273 rm -f conftest.err conftest.$ac_ext
5274 if $ac_preproc_ok; then
5275   :
5276 else
5277   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5278 See \`config.log' for more details." >&5
5279 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5280 See \`config.log' for more details." >&2;}
5281    { (exit 1); exit 1; }; }
5282 fi
5283
5284 ac_ext=cpp
5285 ac_cpp='$CXXCPP $CPPFLAGS'
5286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5289
5290 fi
5291
5292
5293 ac_ext=f
5294 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5295 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5296 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5297 if test -n "$ac_tool_prefix"; then
5298   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
5299   do
5300     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5304 if test "${ac_cv_prog_F77+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -n "$F77"; then
5308   ac_cv_prog_F77="$F77" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 F77=$ac_cv_prog_F77
5328 if test -n "$F77"; then
5329   { echo "$as_me:$LINENO: result: $F77" >&5
5330 echo "${ECHO_T}$F77" >&6; }
5331 else
5332   { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5334 fi
5335
5336
5337     test -n "$F77" && break
5338   done
5339 fi
5340 if test -z "$F77"; then
5341   ac_ct_F77=$F77
5342   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
5343 do
5344   # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5348 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -n "$ac_ct_F77"; then
5352   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359   for ac_exec_ext in '' $ac_executable_extensions; do
5360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361     ac_cv_prog_ac_ct_F77="$ac_prog"
5362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366 done
5367 IFS=$as_save_IFS
5368
5369 fi
5370 fi
5371 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5372 if test -n "$ac_ct_F77"; then
5373   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5374 echo "${ECHO_T}$ac_ct_F77" >&6; }
5375 else
5376   { echo "$as_me:$LINENO: result: no" >&5
5377 echo "${ECHO_T}no" >&6; }
5378 fi
5379
5380
5381   test -n "$ac_ct_F77" && break
5382 done
5383
5384   if test "x$ac_ct_F77" = x; then
5385     F77=""
5386   else
5387     case $cross_compiling:$ac_tool_warned in
5388 yes:)
5389 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5390 whose name does not start with the host triplet.  If you think this
5391 configuration is useful to you, please write to autoconf@gnu.org." >&5
5392 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5393 whose name does not start with the host triplet.  If you think this
5394 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5395 ac_tool_warned=yes ;;
5396 esac
5397     F77=$ac_ct_F77
5398   fi
5399 fi
5400
5401
5402 # Provide some information about the compiler.
5403 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5404 ac_compiler=`set X $ac_compile; echo $2`
5405 { (ac_try="$ac_compiler --version >&5"
5406 case "(($ac_try" in
5407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408   *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411   (eval "$ac_compiler --version >&5") 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }
5415 { (ac_try="$ac_compiler -v >&5"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421   (eval "$ac_compiler -v >&5") 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }
5425 { (ac_try="$ac_compiler -V >&5"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compiler -V >&5") 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }
5435 rm -f a.out
5436
5437 # If we don't use `.F' as extension, the preprocessor is not run on the
5438 # input file.  (Note that this only needs to work for GNU compilers.)
5439 ac_save_ext=$ac_ext
5440 ac_ext=F
5441 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5442 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5443 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5444   echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446   cat >conftest.$ac_ext <<_ACEOF
5447       program main
5448 #ifndef __GNUC__
5449        choke me
5450 #endif
5451
5452       end
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5456 case "(($ac_try" in
5457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458   *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461   (eval "$ac_compile") 2>conftest.er1
5462   ac_status=$?
5463   grep -v '^ *+' conftest.er1 >conftest.err
5464   rm -f conftest.er1
5465   cat conftest.err >&5
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); } && {
5468          test -z "$ac_f77_werror_flag" ||
5469          test ! -s conftest.err
5470        } && test -s conftest.$ac_objext; then
5471   ac_compiler_gnu=yes
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476         ac_compiler_gnu=no
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5481
5482 fi
5483 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5484 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5485 ac_ext=$ac_save_ext
5486 ac_test_FFLAGS=${FFLAGS+set}
5487 ac_save_FFLAGS=$FFLAGS
5488 FFLAGS=
5489 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5490 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5491 if test "${ac_cv_prog_f77_g+set}" = set; then
5492   echo $ECHO_N "(cached) $ECHO_C" >&6
5493 else
5494   FFLAGS=-g
5495 cat >conftest.$ac_ext <<_ACEOF
5496       program main
5497
5498       end
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (ac_try="$ac_compile"
5502 case "(($ac_try" in
5503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504   *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507   (eval "$ac_compile") 2>conftest.er1
5508   ac_status=$?
5509   grep -v '^ *+' conftest.er1 >conftest.err
5510   rm -f conftest.er1
5511   cat conftest.err >&5
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); } && {
5514          test -z "$ac_f77_werror_flag" ||
5515          test ! -s conftest.err
5516        } && test -s conftest.$ac_objext; then
5517   ac_cv_prog_f77_g=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522         ac_cv_prog_f77_g=no
5523 fi
5524
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526
5527 fi
5528 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5529 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5530 if test "$ac_test_FFLAGS" = set; then
5531   FFLAGS=$ac_save_FFLAGS
5532 elif test $ac_cv_prog_f77_g = yes; then
5533   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5534     FFLAGS="-g -O2"
5535   else
5536     FFLAGS="-g"
5537   fi
5538 else
5539   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5540     FFLAGS="-O2"
5541   else
5542     FFLAGS=
5543   fi
5544 fi
5545
5546 G77=`test $ac_compiler_gnu = yes && echo yes`
5547 ac_ext=c
5548 ac_cpp='$CPP $CPPFLAGS'
5549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5552
5553
5554
5555 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5556
5557 # find the maximum length of command line arguments
5558 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5559 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5560 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563     i=0
5564   teststring="ABCD"
5565
5566   case $build_os in
5567   msdosdjgpp*)
5568     # On DJGPP, this test can blow up pretty badly due to problems in libc
5569     # (any single argument exceeding 2000 bytes causes a buffer overrun
5570     # during glob expansion).  Even if it were fixed, the result of this
5571     # check would be larger than it should be.
5572     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5573     ;;
5574
5575   gnu*)
5576     # Under GNU Hurd, this test is not required because there is
5577     # no limit to the length of command line arguments.
5578     # Libtool will interpret -1 as no limit whatsoever
5579     lt_cv_sys_max_cmd_len=-1;
5580     ;;
5581
5582   cygwin* | mingw*)
5583     # On Win9x/ME, this test blows up -- it succeeds, but takes
5584     # about 5 minutes as the teststring grows exponentially.
5585     # Worse, since 9x/ME are not pre-emptively multitasking,
5586     # you end up with a "frozen" computer, even though with patience
5587     # the test eventually succeeds (with a max line length of 256k).
5588     # Instead, let's just punt: use the minimum linelength reported by
5589     # all of the supported platforms: 8192 (on NT/2K/XP).
5590     lt_cv_sys_max_cmd_len=8192;
5591     ;;
5592
5593   amigaos*)
5594     # On AmigaOS with pdksh, this test takes hours, literally.
5595     # So we just punt and use a minimum line length of 8192.
5596     lt_cv_sys_max_cmd_len=8192;
5597     ;;
5598
5599   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5600     # This has been around since 386BSD, at least.  Likely further.
5601     if test -x /sbin/sysctl; then
5602       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5603     elif test -x /usr/sbin/sysctl; then
5604       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5605     else
5606       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5607     fi
5608     # And add a safety zone
5609     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5610     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5611     ;;
5612
5613   interix*)
5614     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5615     lt_cv_sys_max_cmd_len=196608
5616     ;;
5617
5618   osf*)
5619     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5620     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5621     # nice to cause kernel panics so lets avoid the loop below.
5622     # First set a reasonable default.
5623     lt_cv_sys_max_cmd_len=16384
5624     #
5625     if test -x /sbin/sysconfig; then
5626       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5627         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5628       esac
5629     fi
5630     ;;
5631   sco3.2v5*)
5632     lt_cv_sys_max_cmd_len=102400
5633     ;;
5634   sysv5* | sco5v6* | sysv4.2uw2*)
5635     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5636     if test -n "$kargmax"; then
5637       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5638     else
5639       lt_cv_sys_max_cmd_len=32768
5640     fi
5641     ;;
5642   *)
5643     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5644     if test -n "$lt_cv_sys_max_cmd_len"; then
5645       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5646       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5647     else
5648       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5649       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5650                = "XX$teststring") >/dev/null 2>&1 &&
5651               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5652               lt_cv_sys_max_cmd_len=$new_result &&
5653               test $i != 17 # 1/2 MB should be enough
5654       do
5655         i=`expr $i + 1`
5656         teststring=$teststring$teststring
5657       done
5658       teststring=
5659       # Add a significant safety factor because C++ compilers can tack on massive
5660       # amounts of additional arguments before passing them to the linker.
5661       # It appears as though 1/2 is a usable value.
5662       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5663     fi
5664     ;;
5665   esac
5666
5667 fi
5668
5669 if test -n $lt_cv_sys_max_cmd_len ; then
5670   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5671 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5672 else
5673   { echo "$as_me:$LINENO: result: none" >&5
5674 echo "${ECHO_T}none" >&6; }
5675 fi
5676
5677
5678
5679
5680
5681 # Check for command to grab the raw symbol name followed by C symbol from nm.
5682 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5683 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5684 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5685   echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687
5688 # These are sane defaults that work on at least a few old systems.
5689 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5690
5691 # Character class describing NM global symbol codes.
5692 symcode='[BCDEGRST]'
5693
5694 # Regexp to match symbols that can be accessed directly from C.
5695 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5696
5697 # Transform an extracted symbol line into a proper C declaration
5698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5699
5700 # Transform an extracted symbol line into symbol name and symbol address
5701 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'"
5702
5703 # Define system-specific variables.
5704 case $host_os in
5705 aix*)
5706   symcode='[BCDT]'
5707   ;;
5708 cygwin* | mingw* | pw32*)
5709   symcode='[ABCDGISTW]'
5710   ;;
5711 hpux*) # Its linker distinguishes data from code symbols
5712   if test "$host_cpu" = ia64; then
5713     symcode='[ABCDEGRST]'
5714   fi
5715   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5716   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'"
5717   ;;
5718 linux* | k*bsd*-gnu)
5719   if test "$host_cpu" = ia64; then
5720     symcode='[ABCDGIRSTW]'
5721     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5722     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'"
5723   fi
5724   ;;
5725 irix* | nonstopux*)
5726   symcode='[BCDEGRST]'
5727   ;;
5728 osf*)
5729   symcode='[BCDEGQRST]'
5730   ;;
5731 solaris*)
5732   symcode='[BDRT]'
5733   ;;
5734 sco3.2v5*)
5735   symcode='[DT]'
5736   ;;
5737 sysv4.2uw2*)
5738   symcode='[DT]'
5739   ;;
5740 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5741   symcode='[ABDT]'
5742   ;;
5743 sysv4)
5744   symcode='[DFNSTU]'
5745   ;;
5746 esac
5747
5748 # Handle CRLF in mingw tool chain
5749 opt_cr=
5750 case $build_os in
5751 mingw*)
5752   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5753   ;;
5754 esac
5755
5756 # If we're using GNU nm, then use its standard symbol codes.
5757 case `$NM -V 2>&1` in
5758 *GNU* | *'with BFD'*)
5759   symcode='[ABCDGIRSTW]' ;;
5760 esac
5761
5762 # Try without a prefix undercore, then with it.
5763 for ac_symprfx in "" "_"; do
5764
5765   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5766   symxfrm="\\1 $ac_symprfx\\2 \\2"
5767
5768   # Write the raw and C identifiers.
5769   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5770
5771   # Check to see that the pipe works correctly.
5772   pipe_works=no
5773
5774   rm -f conftest*
5775   cat > conftest.$ac_ext <<EOF
5776 #ifdef __cplusplus
5777 extern "C" {
5778 #endif
5779 char nm_test_var;
5780 void nm_test_func(){}
5781 #ifdef __cplusplus
5782 }
5783 #endif
5784 int main(){nm_test_var='a';nm_test_func();return(0);}
5785 EOF
5786
5787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5788   (eval $ac_compile) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; then
5792     # Now try to grab the symbols.
5793     nlist=conftest.nm
5794     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5795   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); } && test -s "$nlist"; then
5799       # Try sorting and uniquifying the output.
5800       if sort "$nlist" | uniq > "$nlist"T; then
5801         mv -f "$nlist"T "$nlist"
5802       else
5803         rm -f "$nlist"T
5804       fi
5805
5806       # Make sure that we snagged all the symbols we need.
5807       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5808         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5809           cat <<EOF > conftest.$ac_ext
5810 #ifdef __cplusplus
5811 extern "C" {
5812 #endif
5813
5814 EOF
5815           # Now generate the symbol file.
5816           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5817
5818           cat <<EOF >> conftest.$ac_ext
5819 #if defined (__STDC__) && __STDC__
5820 # define lt_ptr_t void *
5821 #else
5822 # define lt_ptr_t char *
5823 # define const
5824 #endif
5825
5826 /* The mapping between symbol names and symbols. */
5827 const struct {
5828   const char *name;
5829   lt_ptr_t address;
5830 }
5831 lt_preloaded_symbols[] =
5832 {
5833 EOF
5834           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5835           cat <<\EOF >> conftest.$ac_ext
5836   {0, (lt_ptr_t) 0}
5837 };
5838
5839 #ifdef __cplusplus
5840 }
5841 #endif
5842 EOF
5843           # Now try linking the two files.
5844           mv conftest.$ac_objext conftstm.$ac_objext
5845           lt_save_LIBS="$LIBS"
5846           lt_save_CFLAGS="$CFLAGS"
5847           LIBS="conftstm.$ac_objext"
5848           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5849           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5850   (eval $ac_link) 2>&5
5851   ac_status=$?
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5854             pipe_works=yes
5855           fi
5856           LIBS="$lt_save_LIBS"
5857           CFLAGS="$lt_save_CFLAGS"
5858         else
5859           echo "cannot find nm_test_func in $nlist" >&5
5860         fi
5861       else
5862         echo "cannot find nm_test_var in $nlist" >&5
5863       fi
5864     else
5865       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5866     fi
5867   else
5868     echo "$progname: failed program was:" >&5
5869     cat conftest.$ac_ext >&5
5870   fi
5871   rm -f conftest* conftst*
5872
5873   # Do not use the global_symbol_pipe unless it works.
5874   if test "$pipe_works" = yes; then
5875     break
5876   else
5877     lt_cv_sys_global_symbol_pipe=
5878   fi
5879 done
5880
5881 fi
5882
5883 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5884   lt_cv_sys_global_symbol_to_cdecl=
5885 fi
5886 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5887   { echo "$as_me:$LINENO: result: failed" >&5
5888 echo "${ECHO_T}failed" >&6; }
5889 else
5890   { echo "$as_me:$LINENO: result: ok" >&5
5891 echo "${ECHO_T}ok" >&6; }
5892 fi
5893
5894 { echo "$as_me:$LINENO: checking for objdir" >&5
5895 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5896 if test "${lt_cv_objdir+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   rm -f .libs 2>/dev/null
5900 mkdir .libs 2>/dev/null
5901 if test -d .libs; then
5902   lt_cv_objdir=.libs
5903 else
5904   # MS-DOS does not allow filenames that begin with a dot.
5905   lt_cv_objdir=_libs
5906 fi
5907 rmdir .libs 2>/dev/null
5908 fi
5909 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5910 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5911 objdir=$lt_cv_objdir
5912
5913
5914
5915
5916
5917 case $host_os in
5918 aix3*)
5919   # AIX sometimes has problems with the GCC collect2 program.  For some
5920   # reason, if we set the COLLECT_NAMES environment variable, the problems
5921   # vanish in a puff of smoke.
5922   if test "X${COLLECT_NAMES+set}" != Xset; then
5923     COLLECT_NAMES=
5924     export COLLECT_NAMES
5925   fi
5926   ;;
5927 esac
5928
5929 # Sed substitution that helps us do robust quoting.  It backslashifies
5930 # metacharacters that are still active within double-quoted strings.
5931 Xsed='sed -e 1s/^X//'
5932 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5933
5934 # Same as above, but do not quote variable references.
5935 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5936
5937 # Sed substitution to delay expansion of an escaped shell variable in a
5938 # double_quote_subst'ed string.
5939 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5940
5941 # Sed substitution to avoid accidental globbing in evaled expressions
5942 no_glob_subst='s/\*/\\\*/g'
5943
5944 # Constants:
5945 rm="rm -f"
5946
5947 # Global variables:
5948 default_ofile=libtool
5949 can_build_shared=yes
5950
5951 # All known linkers require a `.a' archive for static linking (except MSVC,
5952 # which needs '.lib').
5953 libext=a
5954 ltmain="$ac_aux_dir/ltmain.sh"
5955 ofile="$default_ofile"
5956 with_gnu_ld="$lt_cv_prog_gnu_ld"
5957
5958 if test -n "$ac_tool_prefix"; then
5959   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}ar; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_AR+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   if test -n "$AR"; then
5967   ac_cv_prog_AR="$AR" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976     ac_cv_prog_AR="${ac_tool_prefix}ar"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 AR=$ac_cv_prog_AR
5987 if test -n "$AR"; then
5988   { echo "$as_me:$LINENO: result: $AR" >&5
5989 echo "${ECHO_T}$AR" >&6; }
5990 else
5991   { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5993 fi
5994
5995
5996 fi
5997 if test -z "$ac_cv_prog_AR"; then
5998   ac_ct_AR=$AR
5999   # Extract the first word of "ar", so it can be a program name with args.
6000 set dummy ar; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$ac_ct_AR"; then
6007   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_ac_ct_AR="ar"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6027 if test -n "$ac_ct_AR"; then
6028   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6029 echo "${ECHO_T}$ac_ct_AR" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035   if test "x$ac_ct_AR" = x; then
6036     AR="false"
6037   else
6038     case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet.  If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet.  If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     AR=$ac_ct_AR
6049   fi
6050 else
6051   AR="$ac_cv_prog_AR"
6052 fi
6053
6054 if test -n "$ac_tool_prefix"; then
6055   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6059 if test "${ac_cv_prog_RANLIB+set}" = set; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062   if test -n "$RANLIB"; then
6063   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 RANLIB=$ac_cv_prog_RANLIB
6083 if test -n "$RANLIB"; then
6084   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6085 echo "${ECHO_T}$RANLIB" >&6; }
6086 else
6087   { echo "$as_me:$LINENO: result: no" >&5
6088 echo "${ECHO_T}no" >&6; }
6089 fi
6090
6091
6092 fi
6093 if test -z "$ac_cv_prog_RANLIB"; then
6094   ac_ct_RANLIB=$RANLIB
6095   # Extract the first word of "ranlib", so it can be a program name with args.
6096 set dummy ranlib; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6100   echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102   if test -n "$ac_ct_RANLIB"; then
6103   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6104 else
6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6106 for as_dir in $PATH
6107 do
6108   IFS=$as_save_IFS
6109   test -z "$as_dir" && as_dir=.
6110   for ac_exec_ext in '' $ac_executable_extensions; do
6111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6112     ac_cv_prog_ac_ct_RANLIB="ranlib"
6113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114     break 2
6115   fi
6116 done
6117 done
6118 IFS=$as_save_IFS
6119
6120 fi
6121 fi
6122 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6123 if test -n "$ac_ct_RANLIB"; then
6124   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6125 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6126 else
6127   { echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6; }
6129 fi
6130
6131   if test "x$ac_ct_RANLIB" = x; then
6132     RANLIB=":"
6133   else
6134     case $cross_compiling:$ac_tool_warned in
6135 yes:)
6136 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6137 whose name does not start with the host triplet.  If you think this
6138 configuration is useful to you, please write to autoconf@gnu.org." >&5
6139 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6140 whose name does not start with the host triplet.  If you think this
6141 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6142 ac_tool_warned=yes ;;
6143 esac
6144     RANLIB=$ac_ct_RANLIB
6145   fi
6146 else
6147   RANLIB="$ac_cv_prog_RANLIB"
6148 fi
6149
6150 if test -n "$ac_tool_prefix"; then
6151   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6155 if test "${ac_cv_prog_STRIP+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   if test -n "$STRIP"; then
6159   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164   IFS=$as_save_IFS
6165   test -z "$as_dir" && as_dir=.
6166   for ac_exec_ext in '' $ac_executable_extensions; do
6167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6170     break 2
6171   fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180   { echo "$as_me:$LINENO: result: $STRIP" >&5
6181 echo "${ECHO_T}$STRIP" >&6; }
6182 else
6183   { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6185 fi
6186
6187
6188 fi
6189 if test -z "$ac_cv_prog_STRIP"; then
6190   ac_ct_STRIP=$STRIP
6191   # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   if test -n "$ac_ct_STRIP"; then
6199   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208     ac_cv_prog_ac_ct_STRIP="strip"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214 IFS=$as_save_IFS
6215
6216 fi
6217 fi
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6221 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227   if test "x$ac_ct_STRIP" = x; then
6228     STRIP=":"
6229   else
6230     case $cross_compiling:$ac_tool_warned in
6231 yes:)
6232 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6233 whose name does not start with the host triplet.  If you think this
6234 configuration is useful to you, please write to autoconf@gnu.org." >&5
6235 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6236 whose name does not start with the host triplet.  If you think this
6237 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6238 ac_tool_warned=yes ;;
6239 esac
6240     STRIP=$ac_ct_STRIP
6241   fi
6242 else
6243   STRIP="$ac_cv_prog_STRIP"
6244 fi
6245
6246
6247 old_CC="$CC"
6248 old_CFLAGS="$CFLAGS"
6249
6250 # Set sane defaults for various variables
6251 test -z "$AR" && AR=ar
6252 test -z "$AR_FLAGS" && AR_FLAGS=cru
6253 test -z "$AS" && AS=as
6254 test -z "$CC" && CC=cc
6255 test -z "$LTCC" && LTCC=$CC
6256 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6257 test -z "$DLLTOOL" && DLLTOOL=dlltool
6258 test -z "$LD" && LD=ld
6259 test -z "$LN_S" && LN_S="ln -s"
6260 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6261 test -z "$NM" && NM=nm
6262 test -z "$SED" && SED=sed
6263 test -z "$OBJDUMP" && OBJDUMP=objdump
6264 test -z "$RANLIB" && RANLIB=:
6265 test -z "$STRIP" && STRIP=:
6266 test -z "$ac_objext" && ac_objext=o
6267
6268 # Determine commands to create old-style static archives.
6269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6270 old_postinstall_cmds='chmod 644 $oldlib'
6271 old_postuninstall_cmds=
6272
6273 if test -n "$RANLIB"; then
6274   case $host_os in
6275   openbsd*)
6276     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6277     ;;
6278   *)
6279     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6280     ;;
6281   esac
6282   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6283 fi
6284
6285 for cc_temp in $compiler""; do
6286   case $cc_temp in
6287     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6288     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6289     \-*) ;;
6290     *) break;;
6291   esac
6292 done
6293 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6294
6295
6296 # Only perform the check for file, if the check method requires it
6297 case $deplibs_check_method in
6298 file_magic*)
6299   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6300     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6301 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6302 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6303   echo $ECHO_N "(cached) $ECHO_C" >&6
6304 else
6305   case $MAGIC_CMD in
6306 [\\/*] |  ?:[\\/]*)
6307   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6308   ;;
6309 *)
6310   lt_save_MAGIC_CMD="$MAGIC_CMD"
6311   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6312   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6313   for ac_dir in $ac_dummy; do
6314     IFS="$lt_save_ifs"
6315     test -z "$ac_dir" && ac_dir=.
6316     if test -f $ac_dir/${ac_tool_prefix}file; then
6317       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6318       if test -n "$file_magic_test_file"; then
6319         case $deplibs_check_method in
6320         "file_magic "*)
6321           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6322           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6323           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6324             $EGREP "$file_magic_regex" > /dev/null; then
6325             :
6326           else
6327             cat <<EOF 1>&2
6328
6329 *** Warning: the command libtool uses to detect shared libraries,
6330 *** $file_magic_cmd, produces output that libtool cannot recognize.
6331 *** The result is that libtool may fail to recognize shared libraries
6332 *** as such.  This will affect the creation of libtool libraries that
6333 *** depend on shared libraries, but programs linked with such libtool
6334 *** libraries will work regardless of this problem.  Nevertheless, you
6335 *** may want to report the problem to your system manager and/or to
6336 *** bug-libtool@gnu.org
6337
6338 EOF
6339           fi ;;
6340         esac
6341       fi
6342       break
6343     fi
6344   done
6345   IFS="$lt_save_ifs"
6346   MAGIC_CMD="$lt_save_MAGIC_CMD"
6347   ;;
6348 esac
6349 fi
6350
6351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6352 if test -n "$MAGIC_CMD"; then
6353   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6354 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6355 else
6356   { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6358 fi
6359
6360 if test -z "$lt_cv_path_MAGIC_CMD"; then
6361   if test -n "$ac_tool_prefix"; then
6362     { echo "$as_me:$LINENO: checking for file" >&5
6363 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6364 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $MAGIC_CMD in
6368 [\\/*] |  ?:[\\/]*)
6369   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6370   ;;
6371 *)
6372   lt_save_MAGIC_CMD="$MAGIC_CMD"
6373   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6374   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6375   for ac_dir in $ac_dummy; do
6376     IFS="$lt_save_ifs"
6377     test -z "$ac_dir" && ac_dir=.
6378     if test -f $ac_dir/file; then
6379       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6380       if test -n "$file_magic_test_file"; then
6381         case $deplibs_check_method in
6382         "file_magic "*)
6383           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6384           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6385           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6386             $EGREP "$file_magic_regex" > /dev/null; then
6387             :
6388           else
6389             cat <<EOF 1>&2
6390
6391 *** Warning: the command libtool uses to detect shared libraries,
6392 *** $file_magic_cmd, produces output that libtool cannot recognize.
6393 *** The result is that libtool may fail to recognize shared libraries
6394 *** as such.  This will affect the creation of libtool libraries that
6395 *** depend on shared libraries, but programs linked with such libtool
6396 *** libraries will work regardless of this problem.  Nevertheless, you
6397 *** may want to report the problem to your system manager and/or to
6398 *** bug-libtool@gnu.org
6399
6400 EOF
6401           fi ;;
6402         esac
6403       fi
6404       break
6405     fi
6406   done
6407   IFS="$lt_save_ifs"
6408   MAGIC_CMD="$lt_save_MAGIC_CMD"
6409   ;;
6410 esac
6411 fi
6412
6413 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6414 if test -n "$MAGIC_CMD"; then
6415   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6416 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6417 else
6418   { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6420 fi
6421
6422   else
6423     MAGIC_CMD=:
6424   fi
6425 fi
6426
6427   fi
6428   ;;
6429 esac
6430
6431 enable_dlopen=no
6432 enable_win32_dll=no
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436   enableval=$enable_libtool_lock;
6437 fi
6438
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441
6442 # Check whether --with-pic was given.
6443 if test "${with_pic+set}" = set; then
6444   withval=$with_pic; pic_mode="$withval"
6445 else
6446   pic_mode=default
6447 fi
6448
6449 test -z "$pic_mode" && pic_mode=default
6450
6451 # Use C for the default configuration in the libtool script
6452 tagname=
6453 lt_save_CC="$CC"
6454 ac_ext=c
6455 ac_cpp='$CPP $CPPFLAGS'
6456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6459
6460
6461 # Source file extension for C test sources.
6462 ac_ext=c
6463
6464 # Object file extension for compiled C test sources.
6465 objext=o
6466 objext=$objext
6467
6468 # Code to be used in simple compile tests
6469 lt_simple_compile_test_code="int some_variable = 0;"
6470
6471 # Code to be used in simple link tests
6472 lt_simple_link_test_code='int main(){return(0);}'
6473
6474
6475 # If no C compiler was specified, use CC.
6476 LTCC=${LTCC-"$CC"}
6477
6478 # If no C compiler flags were specified, use CFLAGS.
6479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6480
6481 # Allow CC to be a program name with arguments.
6482 compiler=$CC
6483
6484
6485 # save warnings/boilerplate of simple test code
6486 ac_outfile=conftest.$ac_objext
6487 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6489 _lt_compiler_boilerplate=`cat conftest.err`
6490 $rm conftest*
6491
6492 ac_outfile=conftest.$ac_objext
6493 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6495 _lt_linker_boilerplate=`cat conftest.err`
6496 $rm conftest*
6497
6498
6499
6500 lt_prog_compiler_no_builtin_flag=
6501
6502 if test "$GCC" = yes; then
6503   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6504
6505
6506 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6507 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6508 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6509   echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511   lt_cv_prog_compiler_rtti_exceptions=no
6512   ac_outfile=conftest.$ac_objext
6513    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6514    lt_compiler_flag="-fno-rtti -fno-exceptions"
6515    # Insert the option either (1) after the last *FLAGS variable, or
6516    # (2) before a word containing "conftest.", or (3) at the end.
6517    # Note that $ac_compile itself does not contain backslashes and begins
6518    # with a dollar sign (not a hyphen), so the echo should work correctly.
6519    # The option is referenced via a variable to avoid confusing sed.
6520    lt_compile=`echo "$ac_compile" | $SED \
6521    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6522    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6523    -e 's:$: $lt_compiler_flag:'`
6524    (eval echo "\"\$as_me:6524: $lt_compile\"" >&5)
6525    (eval "$lt_compile" 2>conftest.err)
6526    ac_status=$?
6527    cat conftest.err >&5
6528    echo "$as_me:6528: \$? = $ac_status" >&5
6529    if (exit $ac_status) && test -s "$ac_outfile"; then
6530      # The compiler can only warn and ignore the option if not recognized
6531      # So say no if there are warnings other than the usual output.
6532      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6533      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6534      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6535        lt_cv_prog_compiler_rtti_exceptions=yes
6536      fi
6537    fi
6538    $rm conftest*
6539
6540 fi
6541 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6542 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6543
6544 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6545     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6546 else
6547     :
6548 fi
6549
6550 fi
6551
6552 lt_prog_compiler_wl=
6553 lt_prog_compiler_pic=
6554 lt_prog_compiler_static=
6555
6556 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6557 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6558
6559   if test "$GCC" = yes; then
6560     lt_prog_compiler_wl='-Wl,'
6561     lt_prog_compiler_static='-static'
6562
6563     case $host_os in
6564       aix*)
6565       # All AIX code is PIC.
6566       if test "$host_cpu" = ia64; then
6567         # AIX 5 now supports IA64 processor
6568         lt_prog_compiler_static='-Bstatic'
6569       fi
6570       ;;
6571
6572     amigaos*)
6573       # FIXME: we need at least 68020 code to build shared libraries, but
6574       # adding the `-m68020' flag to GCC prevents building anything better,
6575       # like `-m68040'.
6576       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6577       ;;
6578
6579     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6580       # PIC is the default for these OSes.
6581       ;;
6582
6583     mingw* | cygwin* | pw32* | os2*)
6584       # This hack is so that the source file can tell whether it is being
6585       # built for inclusion in a dll (and should export symbols for example).
6586       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6587       # (--disable-auto-import) libraries
6588       lt_prog_compiler_pic='-DDLL_EXPORT'
6589       ;;
6590
6591     darwin* | rhapsody*)
6592       # PIC is the default on this platform
6593       # Common symbols not allowed in MH_DYLIB files
6594       lt_prog_compiler_pic='-fno-common'
6595       ;;
6596
6597     interix[3-9]*)
6598       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6599       # Instead, we relocate shared libraries at runtime.
6600       ;;
6601
6602     msdosdjgpp*)
6603       # Just because we use GCC doesn't mean we suddenly get shared libraries
6604       # on systems that don't support them.
6605       lt_prog_compiler_can_build_shared=no
6606       enable_shared=no
6607       ;;
6608
6609     sysv4*MP*)
6610       if test -d /usr/nec; then
6611         lt_prog_compiler_pic=-Kconform_pic
6612       fi
6613       ;;
6614
6615     hpux*)
6616       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6617       # not for PA HP-UX.
6618       case $host_cpu in
6619       hppa*64*|ia64*)
6620         # +Z the default
6621         ;;
6622       *)
6623         lt_prog_compiler_pic='-fPIC'
6624         ;;
6625       esac
6626       ;;
6627
6628     *)
6629       lt_prog_compiler_pic='-fPIC'
6630       ;;
6631     esac
6632   else
6633     # PORTME Check for flag to pass linker flags through the system compiler.
6634     case $host_os in
6635     aix*)
6636       lt_prog_compiler_wl='-Wl,'
6637       if test "$host_cpu" = ia64; then
6638         # AIX 5 now supports IA64 processor
6639         lt_prog_compiler_static='-Bstatic'
6640       else
6641         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6642       fi
6643       ;;
6644       darwin*)
6645         # PIC is the default on this platform
6646         # Common symbols not allowed in MH_DYLIB files
6647        case $cc_basename in
6648          xlc*)
6649          lt_prog_compiler_pic='-qnocommon'
6650          lt_prog_compiler_wl='-Wl,'
6651          ;;
6652        esac
6653        ;;
6654
6655     mingw* | cygwin* | pw32* | os2*)
6656       # This hack is so that the source file can tell whether it is being
6657       # built for inclusion in a dll (and should export symbols for example).
6658       lt_prog_compiler_pic='-DDLL_EXPORT'
6659       ;;
6660
6661     hpux9* | hpux10* | hpux11*)
6662       lt_prog_compiler_wl='-Wl,'
6663       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6664       # not for PA HP-UX.
6665       case $host_cpu in
6666       hppa*64*|ia64*)
6667         # +Z the default
6668         ;;
6669       *)
6670         lt_prog_compiler_pic='+Z'
6671         ;;
6672       esac
6673       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6674       lt_prog_compiler_static='${wl}-a ${wl}archive'
6675       ;;
6676
6677     irix5* | irix6* | nonstopux*)
6678       lt_prog_compiler_wl='-Wl,'
6679       # PIC (with -KPIC) is the default.
6680       lt_prog_compiler_static='-non_shared'
6681       ;;
6682
6683     newsos6)
6684       lt_prog_compiler_pic='-KPIC'
6685       lt_prog_compiler_static='-Bstatic'
6686       ;;
6687
6688     linux* | k*bsd*-gnu)
6689       case $cc_basename in
6690       icc* | ecc*)
6691         lt_prog_compiler_wl='-Wl,'
6692         lt_prog_compiler_pic='-KPIC'
6693         lt_prog_compiler_static='-static'
6694         ;;
6695       pgcc* | pgf77* | pgf90* | pgf95*)
6696         # Portland Group compilers (*not* the Pentium gcc compiler,
6697         # which looks to be a dead project)
6698         lt_prog_compiler_wl='-Wl,'
6699         lt_prog_compiler_pic='-fpic'
6700         lt_prog_compiler_static='-Bstatic'
6701         ;;
6702       ccc*)
6703         lt_prog_compiler_wl='-Wl,'
6704         # All Alpha code is PIC.
6705         lt_prog_compiler_static='-non_shared'
6706         ;;
6707       *)
6708         case `$CC -V 2>&1 | sed 5q` in
6709         *Sun\ C*)
6710           # Sun C 5.9
6711           lt_prog_compiler_pic='-KPIC'
6712           lt_prog_compiler_static='-Bstatic'
6713           lt_prog_compiler_wl='-Wl,'
6714           ;;
6715         *Sun\ F*)
6716           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6717           lt_prog_compiler_pic='-KPIC'
6718           lt_prog_compiler_static='-Bstatic'
6719           lt_prog_compiler_wl=''
6720           ;;
6721         esac
6722         ;;
6723       esac
6724       ;;
6725
6726     osf3* | osf4* | osf5*)
6727       lt_prog_compiler_wl='-Wl,'
6728       # All OSF/1 code is PIC.
6729       lt_prog_compiler_static='-non_shared'
6730       ;;
6731
6732     rdos*)
6733       lt_prog_compiler_static='-non_shared'
6734       ;;
6735
6736     solaris*)
6737       lt_prog_compiler_pic='-KPIC'
6738       lt_prog_compiler_static='-Bstatic'
6739       case $cc_basename in
6740       f77* | f90* | f95*)
6741         lt_prog_compiler_wl='-Qoption ld ';;
6742       *)
6743         lt_prog_compiler_wl='-Wl,';;
6744       esac
6745       ;;
6746
6747     sunos4*)
6748       lt_prog_compiler_wl='-Qoption ld '
6749       lt_prog_compiler_pic='-PIC'
6750       lt_prog_compiler_static='-Bstatic'
6751       ;;
6752
6753     sysv4 | sysv4.2uw2* | sysv4.3*)
6754       lt_prog_compiler_wl='-Wl,'
6755       lt_prog_compiler_pic='-KPIC'
6756       lt_prog_compiler_static='-Bstatic'
6757       ;;
6758
6759     sysv4*MP*)
6760       if test -d /usr/nec ;then
6761         lt_prog_compiler_pic='-Kconform_pic'
6762         lt_prog_compiler_static='-Bstatic'
6763       fi
6764       ;;
6765
6766     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6767       lt_prog_compiler_wl='-Wl,'
6768       lt_prog_compiler_pic='-KPIC'
6769       lt_prog_compiler_static='-Bstatic'
6770       ;;
6771
6772     unicos*)
6773       lt_prog_compiler_wl='-Wl,'
6774       lt_prog_compiler_can_build_shared=no
6775       ;;
6776
6777     uts4*)
6778       lt_prog_compiler_pic='-pic'
6779       lt_prog_compiler_static='-Bstatic'
6780       ;;
6781
6782     *)
6783       lt_prog_compiler_can_build_shared=no
6784       ;;
6785     esac
6786   fi
6787
6788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6789 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6790
6791 #
6792 # Check to make sure the PIC flag actually works.
6793 #
6794 if test -n "$lt_prog_compiler_pic"; then
6795
6796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6798 if test "${lt_prog_compiler_pic_works+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   lt_prog_compiler_pic_works=no
6802   ac_outfile=conftest.$ac_objext
6803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6804    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6805    # Insert the option either (1) after the last *FLAGS variable, or
6806    # (2) before a word containing "conftest.", or (3) at the end.
6807    # Note that $ac_compile itself does not contain backslashes and begins
6808    # with a dollar sign (not a hyphen), so the echo should work correctly.
6809    # The option is referenced via a variable to avoid confusing sed.
6810    lt_compile=`echo "$ac_compile" | $SED \
6811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813    -e 's:$: $lt_compiler_flag:'`
6814    (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815    (eval "$lt_compile" 2>conftest.err)
6816    ac_status=$?
6817    cat conftest.err >&5
6818    echo "$as_me:6818: \$? = $ac_status" >&5
6819    if (exit $ac_status) && test -s "$ac_outfile"; then
6820      # The compiler can only warn and ignore the option if not recognized
6821      # So say no if there are warnings other than the usual output.
6822      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6823      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6824      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6825        lt_prog_compiler_pic_works=yes
6826      fi
6827    fi
6828    $rm conftest*
6829
6830 fi
6831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6832 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6833
6834 if test x"$lt_prog_compiler_pic_works" = xyes; then
6835     case $lt_prog_compiler_pic in
6836      "" | " "*) ;;
6837      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6838      esac
6839 else
6840     lt_prog_compiler_pic=
6841      lt_prog_compiler_can_build_shared=no
6842 fi
6843
6844 fi
6845 case $host_os in
6846   # For platforms which do not support PIC, -DPIC is meaningless:
6847   *djgpp*)
6848     lt_prog_compiler_pic=
6849     ;;
6850   *)
6851     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6852     ;;
6853 esac
6854
6855 #
6856 # Check to make sure the static flag actually works.
6857 #
6858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6861 if test "${lt_prog_compiler_static_works+set}" = set; then
6862   echo $ECHO_N "(cached) $ECHO_C" >&6
6863 else
6864   lt_prog_compiler_static_works=no
6865    save_LDFLAGS="$LDFLAGS"
6866    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6867    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6868    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6869      # The linker can only warn and ignore the option if not recognized
6870      # So say no if there are warnings
6871      if test -s conftest.err; then
6872        # Append any errors to the config.log.
6873        cat conftest.err 1>&5
6874        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6875        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6876        if diff conftest.exp conftest.er2 >/dev/null; then
6877          lt_prog_compiler_static_works=yes
6878        fi
6879      else
6880        lt_prog_compiler_static_works=yes
6881      fi
6882    fi
6883    $rm conftest*
6884    LDFLAGS="$save_LDFLAGS"
6885
6886 fi
6887 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6888 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6889
6890 if test x"$lt_prog_compiler_static_works" = xyes; then
6891     :
6892 else
6893     lt_prog_compiler_static=
6894 fi
6895
6896
6897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   lt_cv_prog_compiler_c_o=no
6903    $rm -r conftest 2>/dev/null
6904    mkdir conftest
6905    cd conftest
6906    mkdir out
6907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6908
6909    lt_compiler_flag="-o out/conftest2.$ac_objext"
6910    # Insert the option either (1) after the last *FLAGS variable, or
6911    # (2) before a word containing "conftest.", or (3) at the end.
6912    # Note that $ac_compile itself does not contain backslashes and begins
6913    # with a dollar sign (not a hyphen), so the echo should work correctly.
6914    lt_compile=`echo "$ac_compile" | $SED \
6915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6917    -e 's:$: $lt_compiler_flag:'`
6918    (eval echo "\"\$as_me:6918: $lt_compile\"" >&5)
6919    (eval "$lt_compile" 2>out/conftest.err)
6920    ac_status=$?
6921    cat out/conftest.err >&5
6922    echo "$as_me:6922: \$? = $ac_status" >&5
6923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6924    then
6925      # The compiler can only warn and ignore the option if not recognized
6926      # So say no if there are warnings
6927      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6930        lt_cv_prog_compiler_c_o=yes
6931      fi
6932    fi
6933    chmod u+w . 2>&5
6934    $rm conftest*
6935    # SGI C++ compiler will create directory out/ii_files/ for
6936    # template instantiation
6937    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6938    $rm out/* && rmdir out
6939    cd ..
6940    rmdir conftest
6941    $rm conftest*
6942
6943 fi
6944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6946
6947
6948 hard_links="nottested"
6949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6950   # do not overwrite the value of need_locks provided by the user
6951   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6953   hard_links=yes
6954   $rm conftest*
6955   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6956   touch conftest.a
6957   ln conftest.a conftest.b 2>&5 || hard_links=no
6958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6959   { echo "$as_me:$LINENO: result: $hard_links" >&5
6960 echo "${ECHO_T}$hard_links" >&6; }
6961   if test "$hard_links" = no; then
6962     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6964     need_locks=warn
6965   fi
6966 else
6967   need_locks=no
6968 fi
6969
6970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6972
6973   runpath_var=
6974   allow_undefined_flag=
6975   enable_shared_with_static_runtimes=no
6976   archive_cmds=
6977   archive_expsym_cmds=
6978   old_archive_From_new_cmds=
6979   old_archive_from_expsyms_cmds=
6980   export_dynamic_flag_spec=
6981   whole_archive_flag_spec=
6982   thread_safe_flag_spec=
6983   hardcode_libdir_flag_spec=
6984   hardcode_libdir_flag_spec_ld=
6985   hardcode_libdir_separator=
6986   hardcode_direct=no
6987   hardcode_minus_L=no
6988   hardcode_shlibpath_var=unsupported
6989   link_all_deplibs=unknown
6990   hardcode_automatic=no
6991   module_cmds=
6992   module_expsym_cmds=
6993   always_export_symbols=no
6994   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6995   # include_expsyms should be a list of space-separated symbols to be *always*
6996   # included in the symbol list
6997   include_expsyms=
6998   # exclude_expsyms can be an extended regexp of symbols to exclude
6999   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7000   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7001   # as well as any symbol that contains `d'.
7002   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7003   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7004   # platforms (ab)use it in PIC code, but their linkers get confused if
7005   # the symbol is explicitly referenced.  Since portable code cannot
7006   # rely on this symbol name, it's probably fine to never include it in
7007   # preloaded symbol tables.
7008   extract_expsyms_cmds=
7009   # Just being paranoid about ensuring that cc_basename is set.
7010   for cc_temp in $compiler""; do
7011   case $cc_temp in
7012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7014     \-*) ;;
7015     *) break;;
7016   esac
7017 done
7018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7019
7020   case $host_os in
7021   cygwin* | mingw* | pw32*)
7022     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7023     # When not using gcc, we currently assume that we are using
7024     # Microsoft Visual C++.
7025     if test "$GCC" != yes; then
7026       with_gnu_ld=no
7027     fi
7028     ;;
7029   interix*)
7030     # we just hope/assume this is gcc and not c89 (= MSVC++)
7031     with_gnu_ld=yes
7032     ;;
7033   openbsd*)
7034     with_gnu_ld=no
7035     ;;
7036   esac
7037
7038   ld_shlibs=yes
7039   if test "$with_gnu_ld" = yes; then
7040     # If archive_cmds runs LD, not CC, wlarc should be empty
7041     wlarc='${wl}'
7042
7043     # Set some defaults for GNU ld with shared library support. These
7044     # are reset later if shared libraries are not supported. Putting them
7045     # here allows them to be overridden if necessary.
7046     runpath_var=LD_RUN_PATH
7047     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7048     export_dynamic_flag_spec='${wl}--export-dynamic'
7049     # ancient GNU ld didn't support --whole-archive et. al.
7050     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7051         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7052       else
7053         whole_archive_flag_spec=
7054     fi
7055     supports_anon_versioning=no
7056     case `$LD -v 2>/dev/null` in
7057       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7058       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7059       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7060       *\ 2.11.*) ;; # other 2.11 versions
7061       *) supports_anon_versioning=yes ;;
7062     esac
7063
7064     # See if GNU ld supports shared libraries.
7065     case $host_os in
7066     aix3* | aix4* | aix5*)
7067       # On AIX/PPC, the GNU linker is very broken
7068       if test "$host_cpu" != ia64; then
7069         ld_shlibs=no
7070         cat <<EOF 1>&2
7071
7072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7073 *** to be unable to reliably create shared libraries on AIX.
7074 *** Therefore, libtool is disabling shared libraries support.  If you
7075 *** really care for shared libraries, you may want to modify your PATH
7076 *** so that a non-GNU linker is found, and then restart.
7077
7078 EOF
7079       fi
7080       ;;
7081
7082     amigaos*)
7083       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)'
7084       hardcode_libdir_flag_spec='-L$libdir'
7085       hardcode_minus_L=yes
7086
7087       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7088       # that the semantics of dynamic libraries on AmigaOS, at least up
7089       # to version 4, is to share data among multiple programs linked
7090       # with the same dynamic library.  Since this doesn't match the
7091       # behavior of shared libraries on other platforms, we can't use
7092       # them.
7093       ld_shlibs=no
7094       ;;
7095
7096     beos*)
7097       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098         allow_undefined_flag=unsupported
7099         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7100         # support --undefined.  This deserves some investigation.  FIXME
7101         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7102       else
7103         ld_shlibs=no
7104       fi
7105       ;;
7106
7107     cygwin* | mingw* | pw32*)
7108       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7109       # as there is no search path for DLLs.
7110       hardcode_libdir_flag_spec='-L$libdir'
7111       allow_undefined_flag=unsupported
7112       always_export_symbols=no
7113       enable_shared_with_static_runtimes=yes
7114       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7115
7116       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7117         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7118         # If the export-symbols file already is a .def file (1st line
7119         # is EXPORTS), use it as is; otherwise, prepend...
7120         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7121           cp $export_symbols $output_objdir/$soname.def;
7122         else
7123           echo EXPORTS > $output_objdir/$soname.def;
7124           cat $export_symbols >> $output_objdir/$soname.def;
7125         fi~
7126         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7127       else
7128         ld_shlibs=no
7129       fi
7130       ;;
7131
7132     interix[3-9]*)
7133       hardcode_direct=no
7134       hardcode_shlibpath_var=no
7135       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7136       export_dynamic_flag_spec='${wl}-E'
7137       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7138       # Instead, shared libraries are loaded at an image base (0x10000000 by
7139       # default) and relocated if they conflict, which is a slow very memory
7140       # consuming and fragmenting process.  To avoid this, we pick a random,
7141       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7142       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7143       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7144       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'
7145       ;;
7146
7147     gnu* | linux* | k*bsd*-gnu)
7148       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7149         tmp_addflag=
7150         case $cc_basename,$host_cpu in
7151         pgcc*)                          # Portland Group C compiler
7152           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'
7153           tmp_addflag=' $pic_flag'
7154           ;;
7155         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7156           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'
7157           tmp_addflag=' $pic_flag -Mnomain' ;;
7158         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7159           tmp_addflag=' -i_dynamic' ;;
7160         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7161           tmp_addflag=' -i_dynamic -nofor_main' ;;
7162         ifc* | ifort*)                  # Intel Fortran compiler
7163           tmp_addflag=' -nofor_main' ;;
7164         esac
7165         case `$CC -V 2>&1 | sed 5q` in
7166         *Sun\ C*)                       # Sun C 5.9
7167           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'
7168           tmp_sharedflag='-G' ;;
7169         *Sun\ F*)                       # Sun Fortran 8.3
7170           tmp_sharedflag='-G' ;;
7171         *)
7172           tmp_sharedflag='-shared' ;;
7173         esac
7174         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7175
7176         if test $supports_anon_versioning = yes; then
7177           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7178   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7179   $echo "local: *; };" >> $output_objdir/$libname.ver~
7180           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7181         fi
7182       else
7183         ld_shlibs=no
7184       fi
7185       ;;
7186
7187     netbsd*)
7188       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7189         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7190         wlarc=
7191       else
7192         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7193         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7194       fi
7195       ;;
7196
7197     solaris*)
7198       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7199         ld_shlibs=no
7200         cat <<EOF 1>&2
7201
7202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7203 *** create shared libraries on Solaris systems.  Therefore, libtool
7204 *** is disabling shared libraries support.  We urge you to upgrade GNU
7205 *** binutils to release 2.9.1 or newer.  Another option is to modify
7206 *** your PATH or compiler configuration so that the native linker is
7207 *** used, and then restart.
7208
7209 EOF
7210       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7211         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7212         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7213       else
7214         ld_shlibs=no
7215       fi
7216       ;;
7217
7218     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7219       case `$LD -v 2>&1` in
7220         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7221         ld_shlibs=no
7222         cat <<_LT_EOF 1>&2
7223
7224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7225 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7226 *** is disabling shared libraries support.  We urge you to upgrade GNU
7227 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7228 *** your PATH or compiler configuration so that the native linker is
7229 *** used, and then restart.
7230
7231 _LT_EOF
7232         ;;
7233         *)
7234           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7235             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7236             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7237             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7238           else
7239             ld_shlibs=no
7240           fi
7241         ;;
7242       esac
7243       ;;
7244
7245     sunos4*)
7246       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7247       wlarc=
7248       hardcode_direct=yes
7249       hardcode_shlibpath_var=no
7250       ;;
7251
7252     *)
7253       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7254         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7255         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7256       else
7257         ld_shlibs=no
7258       fi
7259       ;;
7260     esac
7261
7262     if test "$ld_shlibs" = no; then
7263       runpath_var=
7264       hardcode_libdir_flag_spec=
7265       export_dynamic_flag_spec=
7266       whole_archive_flag_spec=
7267     fi
7268   else
7269     # PORTME fill in a description of your system's linker (not GNU ld)
7270     case $host_os in
7271     aix3*)
7272       allow_undefined_flag=unsupported
7273       always_export_symbols=yes
7274       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'
7275       # Note: this linker hardcodes the directories in LIBPATH if there
7276       # are no directories specified by -L.
7277       hardcode_minus_L=yes
7278       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7279         # Neither direct hardcoding nor static linking is supported with a
7280         # broken collect2.
7281         hardcode_direct=unsupported
7282       fi
7283       ;;
7284
7285     aix4* | aix5*)
7286       if test "$host_cpu" = ia64; then
7287         # On IA64, the linker does run time linking by default, so we don't
7288         # have to do anything special.
7289         aix_use_runtimelinking=no
7290         exp_sym_flag='-Bexport'
7291         no_entry_flag=""
7292       else
7293         # If we're using GNU nm, then we don't want the "-C" option.
7294         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7295         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296           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'
7297         else
7298           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'
7299         fi
7300         aix_use_runtimelinking=no
7301
7302         # Test if we are trying to use run time linking or normal
7303         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7304         # need to do runtime linking.
7305         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7306           for ld_flag in $LDFLAGS; do
7307           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7308             aix_use_runtimelinking=yes
7309             break
7310           fi
7311           done
7312           ;;
7313         esac
7314
7315         exp_sym_flag='-bexport'
7316         no_entry_flag='-bnoentry'
7317       fi
7318
7319       # When large executables or shared objects are built, AIX ld can
7320       # have problems creating the table of contents.  If linking a library
7321       # or program results in "error TOC overflow" add -mminimal-toc to
7322       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7323       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7324
7325       archive_cmds=''
7326       hardcode_direct=yes
7327       hardcode_libdir_separator=':'
7328       link_all_deplibs=yes
7329
7330       if test "$GCC" = yes; then
7331         case $host_os in aix4.[012]|aix4.[012].*)
7332         # We only want to do this on AIX 4.2 and lower, the check
7333         # below for broken collect2 doesn't work under 4.3+
7334           collect2name=`${CC} -print-prog-name=collect2`
7335           if test -f "$collect2name" && \
7336            strings "$collect2name" | grep resolve_lib_name >/dev/null
7337           then
7338           # We have reworked collect2
7339           :
7340           else
7341           # We have old collect2
7342           hardcode_direct=unsupported
7343           # It fails to find uninstalled libraries when the uninstalled
7344           # path is not listed in the libpath.  Setting hardcode_minus_L
7345           # to unsupported forces relinking
7346           hardcode_minus_L=yes
7347           hardcode_libdir_flag_spec='-L$libdir'
7348           hardcode_libdir_separator=
7349           fi
7350           ;;
7351         esac
7352         shared_flag='-shared'
7353         if test "$aix_use_runtimelinking" = yes; then
7354           shared_flag="$shared_flag "'${wl}-G'
7355         fi
7356       else
7357         # not using gcc
7358         if test "$host_cpu" = ia64; then
7359         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7360         # chokes on -Wl,-G. The following line is correct:
7361           shared_flag='-G'
7362         else
7363           if test "$aix_use_runtimelinking" = yes; then
7364             shared_flag='${wl}-G'
7365           else
7366             shared_flag='${wl}-bM:SRE'
7367           fi
7368         fi
7369       fi
7370
7371       # It seems that -bexpall does not export symbols beginning with
7372       # underscore (_), so it is better to generate a list of symbols to export.
7373       always_export_symbols=yes
7374       if test "$aix_use_runtimelinking" = yes; then
7375         # Warning - without using the other runtime loading flags (-brtl),
7376         # -berok will link without error, but may produce a broken library.
7377         allow_undefined_flag='-berok'
7378        # Determine the default libpath from the value encoded in an empty executable.
7379        cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385
7386 int
7387 main ()
7388 {
7389
7390   ;
7391   return 0;
7392 }
7393 _ACEOF
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7396 case "(($ac_try" in
7397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398   *) ac_try_echo=$ac_try;;
7399 esac
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401   (eval "$ac_link") 2>conftest.er1
7402   ac_status=$?
7403   grep -v '^ *+' conftest.er1 >conftest.err
7404   rm -f conftest.er1
7405   cat conftest.err >&5
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } && {
7408          test -z "$ac_c_werror_flag" ||
7409          test ! -s conftest.err
7410        } && test -s conftest$ac_exeext &&
7411        $as_test_x conftest$ac_exeext; then
7412
7413 lt_aix_libpath_sed='
7414     /Import File Strings/,/^$/ {
7415         /^0/ {
7416             s/^0  *\(.*\)$/\1/
7417             p
7418         }
7419     }'
7420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7421 # Check for a 64-bit object if we didn't find anything.
7422 if test -z "$aix_libpath"; then
7423   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7424 fi
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429
7430 fi
7431
7432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7433       conftest$ac_exeext conftest.$ac_ext
7434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7435
7436        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7437         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"
7438        else
7439         if test "$host_cpu" = ia64; then
7440           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7441           allow_undefined_flag="-z nodefs"
7442           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"
7443         else
7444          # Determine the default libpath from the value encoded in an empty executable.
7445          cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h.  */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h.  */
7451
7452 int
7453 main ()
7454 {
7455
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_link") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest$ac_exeext &&
7477        $as_test_x conftest$ac_exeext; then
7478
7479 lt_aix_libpath_sed='
7480     /Import File Strings/,/^$/ {
7481         /^0/ {
7482             s/^0  *\(.*\)$/\1/
7483             p
7484         }
7485     }'
7486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7487 # Check for a 64-bit object if we didn't find anything.
7488 if test -z "$aix_libpath"; then
7489   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7490 fi
7491 else
7492   echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7494
7495
7496 fi
7497
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499       conftest$ac_exeext conftest.$ac_ext
7500 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7501
7502          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7503           # Warning - without using the other run time loading flags,
7504           # -berok will link without error, but may produce a broken library.
7505           no_undefined_flag=' ${wl}-bernotok'
7506           allow_undefined_flag=' ${wl}-berok'
7507           # Exported symbols can be pulled into shared objects from archives
7508           whole_archive_flag_spec='$convenience'
7509           archive_cmds_need_lc=yes
7510           # This is similar to how AIX traditionally builds its shared libraries.
7511           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'
7512         fi
7513       fi
7514       ;;
7515
7516     amigaos*)
7517       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)'
7518       hardcode_libdir_flag_spec='-L$libdir'
7519       hardcode_minus_L=yes
7520       # see comment about different semantics on the GNU ld section
7521       ld_shlibs=no
7522       ;;
7523
7524     bsdi[45]*)
7525       export_dynamic_flag_spec=-rdynamic
7526       ;;
7527
7528     cygwin* | mingw* | pw32*)
7529       # When not using gcc, we currently assume that we are using
7530       # Microsoft Visual C++.
7531       # hardcode_libdir_flag_spec is actually meaningless, as there is
7532       # no search path for DLLs.
7533       hardcode_libdir_flag_spec=' '
7534       allow_undefined_flag=unsupported
7535       # Tell ltmain to make .lib files, not .a files.
7536       libext=lib
7537       # Tell ltmain to make .dll files, not .so files.
7538       shrext_cmds=".dll"
7539       # FIXME: Setting linknames here is a bad hack.
7540       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7541       # The linker will automatically build a .lib file if we build a DLL.
7542       old_archive_From_new_cmds='true'
7543       # FIXME: Should let the user specify the lib program.
7544       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7545       fix_srcfile_path='`cygpath -w "$srcfile"`'
7546       enable_shared_with_static_runtimes=yes
7547       ;;
7548
7549     darwin* | rhapsody*)
7550       case $host_os in
7551         rhapsody* | darwin1.[012])
7552          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7553          ;;
7554        *) # Darwin 1.3 on
7555          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7556            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7557          else
7558            case ${MACOSX_DEPLOYMENT_TARGET} in
7559              10.[012])
7560                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7561                ;;
7562              10.*)
7563                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7564                ;;
7565            esac
7566          fi
7567          ;;
7568       esac
7569       archive_cmds_need_lc=no
7570       hardcode_direct=no
7571       hardcode_automatic=yes
7572       hardcode_shlibpath_var=unsupported
7573       whole_archive_flag_spec=''
7574       link_all_deplibs=yes
7575     if test "$GCC" = yes ; then
7576         output_verbose_link_cmd='echo'
7577         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7578       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7579       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7580       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7581       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}'
7582     else
7583       case $cc_basename in
7584         xlc*)
7585          output_verbose_link_cmd='echo'
7586          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7587          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7588           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7589          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}'
7590           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}'
7591           ;;
7592        *)
7593          ld_shlibs=no
7594           ;;
7595       esac
7596     fi
7597       ;;
7598
7599     dgux*)
7600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601       hardcode_libdir_flag_spec='-L$libdir'
7602       hardcode_shlibpath_var=no
7603       ;;
7604
7605     freebsd1*)
7606       ld_shlibs=no
7607       ;;
7608
7609     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7610     # support.  Future versions do this automatically, but an explicit c++rt0.o
7611     # does not break anything, and helps significantly (at the cost of a little
7612     # extra space).
7613     freebsd2.2*)
7614       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7615       hardcode_libdir_flag_spec='-R$libdir'
7616       hardcode_direct=yes
7617       hardcode_shlibpath_var=no
7618       ;;
7619
7620     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7621     freebsd2*)
7622       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7623       hardcode_direct=yes
7624       hardcode_minus_L=yes
7625       hardcode_shlibpath_var=no
7626       ;;
7627
7628     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7629     freebsd* | dragonfly*)
7630       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7631       hardcode_libdir_flag_spec='-R$libdir'
7632       hardcode_direct=yes
7633       hardcode_shlibpath_var=no
7634       ;;
7635
7636     hpux9*)
7637       if test "$GCC" = yes; then
7638         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'
7639       else
7640         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'
7641       fi
7642       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7643       hardcode_libdir_separator=:
7644       hardcode_direct=yes
7645
7646       # hardcode_minus_L: Not really in the search PATH,
7647       # but as the default location of the library.
7648       hardcode_minus_L=yes
7649       export_dynamic_flag_spec='${wl}-E'
7650       ;;
7651
7652     hpux10*)
7653       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7654         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7655       else
7656         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7657       fi
7658       if test "$with_gnu_ld" = no; then
7659         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7660         hardcode_libdir_separator=:
7661
7662         hardcode_direct=yes
7663         export_dynamic_flag_spec='${wl}-E'
7664
7665         # hardcode_minus_L: Not really in the search PATH,
7666         # but as the default location of the library.
7667         hardcode_minus_L=yes
7668       fi
7669       ;;
7670
7671     hpux11*)
7672       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7673         case $host_cpu in
7674         hppa*64*)
7675           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7676           ;;
7677         ia64*)
7678           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7679           ;;
7680         *)
7681           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7682           ;;
7683         esac
7684       else
7685         case $host_cpu in
7686         hppa*64*)
7687           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7688           ;;
7689         ia64*)
7690           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7691           ;;
7692         *)
7693           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7694           ;;
7695         esac
7696       fi
7697       if test "$with_gnu_ld" = no; then
7698         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7699         hardcode_libdir_separator=:
7700
7701         case $host_cpu in
7702         hppa*64*|ia64*)
7703           hardcode_libdir_flag_spec_ld='+b $libdir'
7704           hardcode_direct=no
7705           hardcode_shlibpath_var=no
7706           ;;
7707         *)
7708           hardcode_direct=yes
7709           export_dynamic_flag_spec='${wl}-E'
7710
7711           # hardcode_minus_L: Not really in the search PATH,
7712           # but as the default location of the library.
7713           hardcode_minus_L=yes
7714           ;;
7715         esac
7716       fi
7717       ;;
7718
7719     irix5* | irix6* | nonstopux*)
7720       if test "$GCC" = yes; then
7721         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'
7722       else
7723         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'
7724         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7725       fi
7726       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7727       hardcode_libdir_separator=:
7728       link_all_deplibs=yes
7729       ;;
7730
7731     netbsd*)
7732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7734       else
7735         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7736       fi
7737       hardcode_libdir_flag_spec='-R$libdir'
7738       hardcode_direct=yes
7739       hardcode_shlibpath_var=no
7740       ;;
7741
7742     newsos6)
7743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7744       hardcode_direct=yes
7745       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7746       hardcode_libdir_separator=:
7747       hardcode_shlibpath_var=no
7748       ;;
7749
7750     openbsd*)
7751       if test -f /usr/libexec/ld.so; then
7752         hardcode_direct=yes
7753         hardcode_shlibpath_var=no
7754         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7755           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7756           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7757           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7758           export_dynamic_flag_spec='${wl}-E'
7759         else
7760           case $host_os in
7761            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7762              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7763              hardcode_libdir_flag_spec='-R$libdir'
7764              ;;
7765            *)
7766              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7767              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7768              ;;
7769           esac
7770         fi
7771       else
7772         ld_shlibs=no
7773       fi
7774       ;;
7775
7776     os2*)
7777       hardcode_libdir_flag_spec='-L$libdir'
7778       hardcode_minus_L=yes
7779       allow_undefined_flag=unsupported
7780       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'
7781       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7782       ;;
7783
7784     osf3*)
7785       if test "$GCC" = yes; then
7786         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7787         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'
7788       else
7789         allow_undefined_flag=' -expect_unresolved \*'
7790         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'
7791       fi
7792       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7793       hardcode_libdir_separator=:
7794       ;;
7795
7796     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7797       if test "$GCC" = yes; then
7798         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7799         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'
7800         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7801       else
7802         allow_undefined_flag=' -expect_unresolved \*'
7803         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'
7804         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7805         $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'
7806
7807         # Both c and cxx compiler support -rpath directly
7808         hardcode_libdir_flag_spec='-rpath $libdir'
7809       fi
7810       hardcode_libdir_separator=:
7811       ;;
7812
7813     solaris*)
7814       no_undefined_flag=' -z text'
7815       if test "$GCC" = yes; then
7816         wlarc='${wl}'
7817         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7818         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7819           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7820       else
7821         wlarc=''
7822         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7823         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7824         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7825       fi
7826       hardcode_libdir_flag_spec='-R$libdir'
7827       hardcode_shlibpath_var=no
7828       case $host_os in
7829       solaris2.[0-5] | solaris2.[0-5].*) ;;
7830       *)
7831         # The compiler driver will combine and reorder linker options,
7832         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7833         # but is careful enough not to reorder.
7834         # Supported since Solaris 2.6 (maybe 2.5.1?)
7835         if test "$GCC" = yes; then
7836           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7837         else
7838           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7839         fi
7840         ;;
7841       esac
7842       link_all_deplibs=yes
7843       ;;
7844
7845     sunos4*)
7846       if test "x$host_vendor" = xsequent; then
7847         # Use $CC to link under sequent, because it throws in some extra .o
7848         # files that make .init and .fini sections work.
7849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7850       else
7851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7852       fi
7853       hardcode_libdir_flag_spec='-L$libdir'
7854       hardcode_direct=yes
7855       hardcode_minus_L=yes
7856       hardcode_shlibpath_var=no
7857       ;;
7858
7859     sysv4)
7860       case $host_vendor in
7861         sni)
7862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7863           hardcode_direct=yes # is this really true???
7864         ;;
7865         siemens)
7866           ## LD is ld it makes a PLAMLIB
7867           ## CC just makes a GrossModule.
7868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7869           reload_cmds='$CC -r -o $output$reload_objs'
7870           hardcode_direct=no
7871         ;;
7872         motorola)
7873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7875         ;;
7876       esac
7877       runpath_var='LD_RUN_PATH'
7878       hardcode_shlibpath_var=no
7879       ;;
7880
7881     sysv4.3*)
7882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7883       hardcode_shlibpath_var=no
7884       export_dynamic_flag_spec='-Bexport'
7885       ;;
7886
7887     sysv4*MP*)
7888       if test -d /usr/nec; then
7889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890         hardcode_shlibpath_var=no
7891         runpath_var=LD_RUN_PATH
7892         hardcode_runpath_var=yes
7893         ld_shlibs=yes
7894       fi
7895       ;;
7896
7897     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7898       no_undefined_flag='${wl}-z,text'
7899       archive_cmds_need_lc=no
7900       hardcode_shlibpath_var=no
7901       runpath_var='LD_RUN_PATH'
7902
7903       if test "$GCC" = yes; then
7904         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7905         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7906       else
7907         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7908         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7909       fi
7910       ;;
7911
7912     sysv5* | sco3.2v5* | sco5v6*)
7913       # Note: We can NOT use -z defs as we might desire, because we do not
7914       # link with -lc, and that would cause any symbols used from libc to
7915       # always be unresolved, which means just about no library would
7916       # ever link correctly.  If we're not using GNU ld we use -z text
7917       # though, which does catch some bad symbols but isn't as heavy-handed
7918       # as -z defs.
7919       no_undefined_flag='${wl}-z,text'
7920       allow_undefined_flag='${wl}-z,nodefs'
7921       archive_cmds_need_lc=no
7922       hardcode_shlibpath_var=no
7923       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7924       hardcode_libdir_separator=':'
7925       link_all_deplibs=yes
7926       export_dynamic_flag_spec='${wl}-Bexport'
7927       runpath_var='LD_RUN_PATH'
7928
7929       if test "$GCC" = yes; then
7930         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7931         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7932       else
7933         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7934         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7935       fi
7936       ;;
7937
7938     uts4*)
7939       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940       hardcode_libdir_flag_spec='-L$libdir'
7941       hardcode_shlibpath_var=no
7942       ;;
7943
7944     *)
7945       ld_shlibs=no
7946       ;;
7947     esac
7948   fi
7949
7950 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7951 echo "${ECHO_T}$ld_shlibs" >&6; }
7952 test "$ld_shlibs" = no && can_build_shared=no
7953
7954 #
7955 # Do we need to explicitly link libc?
7956 #
7957 case "x$archive_cmds_need_lc" in
7958 x|xyes)
7959   # Assume -lc should be added
7960   archive_cmds_need_lc=yes
7961
7962   if test "$enable_shared" = yes && test "$GCC" = yes; then
7963     case $archive_cmds in
7964     *'~'*)
7965       # FIXME: we may have to deal with multi-command sequences.
7966       ;;
7967     '$CC '*)
7968       # Test whether the compiler implicitly links with -lc since on some
7969       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7970       # to ld, don't add -lc before -lgcc.
7971       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7972 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7973       $rm conftest*
7974       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7975
7976       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977   (eval $ac_compile) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } 2>conftest.err; then
7981         soname=conftest
7982         lib=conftest
7983         libobjs=conftest.$ac_objext
7984         deplibs=
7985         wl=$lt_prog_compiler_wl
7986         pic_flag=$lt_prog_compiler_pic
7987         compiler_flags=-v
7988         linker_flags=-v
7989         verstring=
7990         output_objdir=.
7991         libname=conftest
7992         lt_save_allow_undefined_flag=$allow_undefined_flag
7993         allow_undefined_flag=
7994         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7995   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }
7999         then
8000           archive_cmds_need_lc=no
8001         else
8002           archive_cmds_need_lc=yes
8003         fi
8004         allow_undefined_flag=$lt_save_allow_undefined_flag
8005       else
8006         cat conftest.err 1>&5
8007       fi
8008       $rm conftest*
8009       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8010 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8011       ;;
8012     esac
8013   fi
8014   ;;
8015 esac
8016
8017 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8018 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8019 library_names_spec=
8020 libname_spec='lib$name'
8021 soname_spec=
8022 shrext_cmds=".so"
8023 postinstall_cmds=
8024 postuninstall_cmds=
8025 finish_cmds=
8026 finish_eval=
8027 shlibpath_var=
8028 shlibpath_overrides_runpath=unknown
8029 version_type=none
8030 dynamic_linker="$host_os ld.so"
8031 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8032
8033 if test "$GCC" = yes; then
8034   case $host_os in
8035     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8036     *) lt_awk_arg="/^libraries:/" ;;
8037   esac
8038   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8039   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8040     # if the path contains ";" then we assume it to be the separator
8041     # otherwise default to the standard path separator (i.e. ":") - it is
8042     # assumed that no part of a normal pathname contains ";" but that should
8043     # okay in the real world where ";" in dirpaths is itself problematic.
8044     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8045   else
8046     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8047   fi
8048   # Ok, now we have the path, separated by spaces, we can step through it
8049   # and add multilib dir if necessary.
8050   lt_tmp_lt_search_path_spec=
8051   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8052   for lt_sys_path in $lt_search_path_spec; do
8053     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8054       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8055     else
8056       test -d "$lt_sys_path" && \
8057         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8058     fi
8059   done
8060   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8061 BEGIN {RS=" "; FS="/|\n";} {
8062   lt_foo="";
8063   lt_count=0;
8064   for (lt_i = NF; lt_i > 0; lt_i--) {
8065     if ($lt_i != "" && $lt_i != ".") {
8066       if ($lt_i == "..") {
8067         lt_count++;
8068       } else {
8069         if (lt_count == 0) {
8070           lt_foo="/" $lt_i lt_foo;
8071         } else {
8072           lt_count--;
8073         }
8074       }
8075     }
8076   }
8077   if (lt_foo != "") { lt_freq[lt_foo]++; }
8078   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8079 }'`
8080   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8081 else
8082   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8083 fi
8084 need_lib_prefix=unknown
8085 hardcode_into_libs=no
8086
8087 # when you set need_version to no, make sure it does not cause -set_version
8088 # flags to be left without arguments
8089 need_version=unknown
8090
8091 case $host_os in
8092 aix3*)
8093   version_type=linux
8094   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8095   shlibpath_var=LIBPATH
8096
8097   # AIX 3 has no versioning support, so we append a major version to the name.
8098   soname_spec='${libname}${release}${shared_ext}$major'
8099   ;;
8100
8101 aix4* | aix5*)
8102   version_type=linux
8103   need_lib_prefix=no
8104   need_version=no
8105   hardcode_into_libs=yes
8106   if test "$host_cpu" = ia64; then
8107     # AIX 5 supports IA64
8108     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8109     shlibpath_var=LD_LIBRARY_PATH
8110   else
8111     # With GCC up to 2.95.x, collect2 would create an import file
8112     # for dependence libraries.  The import file would start with
8113     # the line `#! .'.  This would cause the generated library to
8114     # depend on `.', always an invalid library.  This was fixed in
8115     # development snapshots of GCC prior to 3.0.
8116     case $host_os in
8117       aix4 | aix4.[01] | aix4.[01].*)
8118       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8119            echo ' yes '
8120            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8121         :
8122       else
8123         can_build_shared=no
8124       fi
8125       ;;
8126     esac
8127     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8128     # soname into executable. Probably we can add versioning support to
8129     # collect2, so additional links can be useful in future.
8130     if test "$aix_use_runtimelinking" = yes; then
8131       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8132       # instead of lib<name>.a to let people know that these are not
8133       # typical AIX shared libraries.
8134       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8135     else
8136       # We preserve .a as extension for shared libraries through AIX4.2
8137       # and later when we are not doing run time linking.
8138       library_names_spec='${libname}${release}.a $libname.a'
8139       soname_spec='${libname}${release}${shared_ext}$major'
8140     fi
8141     shlibpath_var=LIBPATH
8142   fi
8143   ;;
8144
8145 amigaos*)
8146   library_names_spec='$libname.ixlibrary $libname.a'
8147   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8148   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'
8149   ;;
8150
8151 beos*)
8152   library_names_spec='${libname}${shared_ext}'
8153   dynamic_linker="$host_os ld.so"
8154   shlibpath_var=LIBRARY_PATH
8155   ;;
8156
8157 bsdi[45]*)
8158   version_type=linux
8159   need_version=no
8160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8161   soname_spec='${libname}${release}${shared_ext}$major'
8162   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8163   shlibpath_var=LD_LIBRARY_PATH
8164   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8165   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8166   # the default ld.so.conf also contains /usr/contrib/lib and
8167   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8168   # libtool to hard-code these into programs
8169   ;;
8170
8171 cygwin* | mingw* | pw32*)
8172   version_type=windows
8173   shrext_cmds=".dll"
8174   need_version=no
8175   need_lib_prefix=no
8176
8177   case $GCC,$host_os in
8178   yes,cygwin* | yes,mingw* | yes,pw32*)
8179     library_names_spec='$libname.dll.a'
8180     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8181     postinstall_cmds='base_file=`basename \${file}`~
8182       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8183       dldir=$destdir/`dirname \$dlpath`~
8184       test -d \$dldir || mkdir -p \$dldir~
8185       $install_prog $dir/$dlname \$dldir/$dlname~
8186       chmod a+x \$dldir/$dlname'
8187     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8188       dlpath=$dir/\$dldll~
8189        $rm \$dlpath'
8190     shlibpath_overrides_runpath=yes
8191
8192     case $host_os in
8193     cygwin*)
8194       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8195       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8196       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8197       ;;
8198     mingw*)
8199       # MinGW DLLs use traditional 'lib' prefix
8200       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8201       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8202       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8203         # It is most probably a Windows format PATH printed by
8204         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8205         # path with ; separators, and with drive letters. We can handle the
8206         # drive letters (cygwin fileutils understands them), so leave them,
8207         # especially as we might pass files found there to a mingw objdump,
8208         # which wouldn't understand a cygwinified path. Ahh.
8209         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8210       else
8211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8212       fi
8213       ;;
8214     pw32*)
8215       # pw32 DLLs use 'pw' prefix rather than 'lib'
8216       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8217       ;;
8218     esac
8219     ;;
8220
8221   *)
8222     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8223     ;;
8224   esac
8225   dynamic_linker='Win32 ld.exe'
8226   # FIXME: first we should search . and the directory the executable is in
8227   shlibpath_var=PATH
8228   ;;
8229
8230 darwin* | rhapsody*)
8231   dynamic_linker="$host_os dyld"
8232   version_type=darwin
8233   need_lib_prefix=no
8234   need_version=no
8235   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8236   soname_spec='${libname}${release}${major}$shared_ext'
8237   shlibpath_overrides_runpath=yes
8238   shlibpath_var=DYLD_LIBRARY_PATH
8239   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8240
8241   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8242   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8243   ;;
8244
8245 dgux*)
8246   version_type=linux
8247   need_lib_prefix=no
8248   need_version=no
8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8250   soname_spec='${libname}${release}${shared_ext}$major'
8251   shlibpath_var=LD_LIBRARY_PATH
8252   ;;
8253
8254 freebsd1*)
8255   dynamic_linker=no
8256   ;;
8257
8258 freebsd* | dragonfly*)
8259   # DragonFly does not have aout.  When/if they implement a new
8260   # versioning mechanism, adjust this.
8261   if test -x /usr/bin/objformat; then
8262     objformat=`/usr/bin/objformat`
8263   else
8264     case $host_os in
8265     freebsd[123]*) objformat=aout ;;
8266     *) objformat=elf ;;
8267     esac
8268   fi
8269   version_type=freebsd-$objformat
8270   case $version_type in
8271     freebsd-elf*)
8272       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8273       need_version=no
8274       need_lib_prefix=no
8275       ;;
8276     freebsd-*)
8277       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8278       need_version=yes
8279       ;;
8280   esac
8281   shlibpath_var=LD_LIBRARY_PATH
8282   case $host_os in
8283   freebsd2*)
8284     shlibpath_overrides_runpath=yes
8285     ;;
8286   freebsd3.[01]* | freebsdelf3.[01]*)
8287     shlibpath_overrides_runpath=yes
8288     hardcode_into_libs=yes
8289     ;;
8290   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8291   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8292     shlibpath_overrides_runpath=no
8293     hardcode_into_libs=yes
8294     ;;
8295   *) # from 4.6 on, and DragonFly
8296     shlibpath_overrides_runpath=yes
8297     hardcode_into_libs=yes
8298     ;;
8299   esac
8300   ;;
8301
8302 gnu*)
8303   version_type=linux
8304   need_lib_prefix=no
8305   need_version=no
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8307   soname_spec='${libname}${release}${shared_ext}$major'
8308   shlibpath_var=LD_LIBRARY_PATH
8309   hardcode_into_libs=yes
8310   ;;
8311
8312 hpux9* | hpux10* | hpux11*)
8313   # Give a soname corresponding to the major version so that dld.sl refuses to
8314   # link against other versions.
8315   version_type=sunos
8316   need_lib_prefix=no
8317   need_version=no
8318   case $host_cpu in
8319   ia64*)
8320     shrext_cmds='.so'
8321     hardcode_into_libs=yes
8322     dynamic_linker="$host_os dld.so"
8323     shlibpath_var=LD_LIBRARY_PATH
8324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326     soname_spec='${libname}${release}${shared_ext}$major'
8327     if test "X$HPUX_IA64_MODE" = X32; then
8328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8329     else
8330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8331     fi
8332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8333     ;;
8334    hppa*64*)
8335      shrext_cmds='.sl'
8336      hardcode_into_libs=yes
8337      dynamic_linker="$host_os dld.sl"
8338      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8339      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8340      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341      soname_spec='${libname}${release}${shared_ext}$major'
8342      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8343      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8344      ;;
8345    *)
8346     shrext_cmds='.sl'
8347     dynamic_linker="$host_os dld.sl"
8348     shlibpath_var=SHLIB_PATH
8349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351     soname_spec='${libname}${release}${shared_ext}$major'
8352     ;;
8353   esac
8354   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8355   postinstall_cmds='chmod 555 $lib'
8356   ;;
8357
8358 interix[3-9]*)
8359   version_type=linux
8360   need_lib_prefix=no
8361   need_version=no
8362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8363   soname_spec='${libname}${release}${shared_ext}$major'
8364   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8365   shlibpath_var=LD_LIBRARY_PATH
8366   shlibpath_overrides_runpath=no
8367   hardcode_into_libs=yes
8368   ;;
8369
8370 irix5* | irix6* | nonstopux*)
8371   case $host_os in
8372     nonstopux*) version_type=nonstopux ;;
8373     *)
8374         if test "$lt_cv_prog_gnu_ld" = yes; then
8375                 version_type=linux
8376         else
8377                 version_type=irix
8378         fi ;;
8379   esac
8380   need_lib_prefix=no
8381   need_version=no
8382   soname_spec='${libname}${release}${shared_ext}$major'
8383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8384   case $host_os in
8385   irix5* | nonstopux*)
8386     libsuff= shlibsuff=
8387     ;;
8388   *)
8389     case $LD in # libtool.m4 will add one of these switches to LD
8390     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8391       libsuff= shlibsuff= libmagic=32-bit;;
8392     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8393       libsuff=32 shlibsuff=N32 libmagic=N32;;
8394     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8395       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8396     *) libsuff= shlibsuff= libmagic=never-match;;
8397     esac
8398     ;;
8399   esac
8400   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8401   shlibpath_overrides_runpath=no
8402   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8403   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8404   hardcode_into_libs=yes
8405   ;;
8406
8407 # No shared lib support for Linux oldld, aout, or coff.
8408 linux*oldld* | linux*aout* | linux*coff*)
8409   dynamic_linker=no
8410   ;;
8411
8412 # This must be Linux ELF.
8413 linux* | k*bsd*-gnu)
8414   version_type=linux
8415   need_lib_prefix=no
8416   need_version=no
8417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8418   soname_spec='${libname}${release}${shared_ext}$major'
8419   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8420   shlibpath_var=LD_LIBRARY_PATH
8421   shlibpath_overrides_runpath=no
8422   # This implies no fast_install, which is unacceptable.
8423   # Some rework will be needed to allow for fast_install
8424   # before this can be enabled.
8425   hardcode_into_libs=yes
8426
8427   # Append ld.so.conf contents to the search path
8428   if test -f /etc/ld.so.conf; then
8429     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' ' '`
8430     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8431   fi
8432
8433   # We used to test for /lib/ld.so.1 and disable shared libraries on
8434   # powerpc, because MkLinux only supported shared libraries with the
8435   # GNU dynamic linker.  Since this was broken with cross compilers,
8436   # most powerpc-linux boxes support dynamic linking these days and
8437   # people can always --disable-shared, the test was removed, and we
8438   # assume the GNU/Linux dynamic linker is in use.
8439   dynamic_linker='GNU/Linux ld.so'
8440   ;;
8441
8442 netbsd*)
8443   version_type=sunos
8444   need_lib_prefix=no
8445   need_version=no
8446   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8448     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8449     dynamic_linker='NetBSD (a.out) ld.so'
8450   else
8451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452     soname_spec='${libname}${release}${shared_ext}$major'
8453     dynamic_linker='NetBSD ld.elf_so'
8454   fi
8455   shlibpath_var=LD_LIBRARY_PATH
8456   shlibpath_overrides_runpath=yes
8457   hardcode_into_libs=yes
8458   ;;
8459
8460 newsos6)
8461   version_type=linux
8462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8463   shlibpath_var=LD_LIBRARY_PATH
8464   shlibpath_overrides_runpath=yes
8465   ;;
8466
8467 nto-qnx*)
8468   version_type=linux
8469   need_lib_prefix=no
8470   need_version=no
8471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8472   soname_spec='${libname}${release}${shared_ext}$major'
8473   shlibpath_var=LD_LIBRARY_PATH
8474   shlibpath_overrides_runpath=yes
8475   ;;
8476
8477 openbsd*)
8478   version_type=sunos
8479   sys_lib_dlsearch_path_spec="/usr/lib"
8480   need_lib_prefix=no
8481   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8482   case $host_os in
8483     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8484     *)                         need_version=no  ;;
8485   esac
8486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8487   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8488   shlibpath_var=LD_LIBRARY_PATH
8489   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8490     case $host_os in
8491       openbsd2.[89] | openbsd2.[89].*)
8492         shlibpath_overrides_runpath=no
8493         ;;
8494       *)
8495         shlibpath_overrides_runpath=yes
8496         ;;
8497       esac
8498   else
8499     shlibpath_overrides_runpath=yes
8500   fi
8501   ;;
8502
8503 os2*)
8504   libname_spec='$name'
8505   shrext_cmds=".dll"
8506   need_lib_prefix=no
8507   library_names_spec='$libname${shared_ext} $libname.a'
8508   dynamic_linker='OS/2 ld.exe'
8509   shlibpath_var=LIBPATH
8510   ;;
8511
8512 osf3* | osf4* | osf5*)
8513   version_type=osf
8514   need_lib_prefix=no
8515   need_version=no
8516   soname_spec='${libname}${release}${shared_ext}$major'
8517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8518   shlibpath_var=LD_LIBRARY_PATH
8519   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8520   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8521   ;;
8522
8523 rdos*)
8524   dynamic_linker=no
8525   ;;
8526
8527 solaris*)
8528   version_type=linux
8529   need_lib_prefix=no
8530   need_version=no
8531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532   soname_spec='${libname}${release}${shared_ext}$major'
8533   shlibpath_var=LD_LIBRARY_PATH
8534   shlibpath_overrides_runpath=yes
8535   hardcode_into_libs=yes
8536   # ldd complains unless libraries are executable
8537   postinstall_cmds='chmod +x $lib'
8538   ;;
8539
8540 sunos4*)
8541   version_type=sunos
8542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8543   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8544   shlibpath_var=LD_LIBRARY_PATH
8545   shlibpath_overrides_runpath=yes
8546   if test "$with_gnu_ld" = yes; then
8547     need_lib_prefix=no
8548   fi
8549   need_version=yes
8550   ;;
8551
8552 sysv4 | sysv4.3*)
8553   version_type=linux
8554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8555   soname_spec='${libname}${release}${shared_ext}$major'
8556   shlibpath_var=LD_LIBRARY_PATH
8557   case $host_vendor in
8558     sni)
8559       shlibpath_overrides_runpath=no
8560       need_lib_prefix=no
8561       export_dynamic_flag_spec='${wl}-Blargedynsym'
8562       runpath_var=LD_RUN_PATH
8563       ;;
8564     siemens)
8565       need_lib_prefix=no
8566       ;;
8567     motorola)
8568       need_lib_prefix=no
8569       need_version=no
8570       shlibpath_overrides_runpath=no
8571       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8572       ;;
8573   esac
8574   ;;
8575
8576 sysv4*MP*)
8577   if test -d /usr/nec ;then
8578     version_type=linux
8579     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8580     soname_spec='$libname${shared_ext}.$major'
8581     shlibpath_var=LD_LIBRARY_PATH
8582   fi
8583   ;;
8584
8585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8586   version_type=freebsd-elf
8587   need_lib_prefix=no
8588   need_version=no
8589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8590   soname_spec='${libname}${release}${shared_ext}$major'
8591   shlibpath_var=LD_LIBRARY_PATH
8592   hardcode_into_libs=yes
8593   if test "$with_gnu_ld" = yes; then
8594     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8595     shlibpath_overrides_runpath=no
8596   else
8597     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8598     shlibpath_overrides_runpath=yes
8599     case $host_os in
8600       sco3.2v5*)
8601         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8602         ;;
8603     esac
8604   fi
8605   sys_lib_dlsearch_path_spec='/usr/lib'
8606   ;;
8607
8608 uts4*)
8609   version_type=linux
8610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611   soname_spec='${libname}${release}${shared_ext}$major'
8612   shlibpath_var=LD_LIBRARY_PATH
8613   ;;
8614
8615 *)
8616   dynamic_linker=no
8617   ;;
8618 esac
8619 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8620 echo "${ECHO_T}$dynamic_linker" >&6; }
8621 test "$dynamic_linker" = no && can_build_shared=no
8622
8623 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8624 if test "$GCC" = yes; then
8625   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8626 fi
8627
8628 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8629 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8630 hardcode_action=
8631 if test -n "$hardcode_libdir_flag_spec" || \
8632    test -n "$runpath_var" || \
8633    test "X$hardcode_automatic" = "Xyes" ; then
8634
8635   # We can hardcode non-existant directories.
8636   if test "$hardcode_direct" != no &&
8637      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8638      # have to relink, otherwise we might link with an installed library
8639      # when we should be linking with a yet-to-be-installed one
8640      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8641      test "$hardcode_minus_L" != no; then
8642     # Linking always hardcodes the temporary library directory.
8643     hardcode_action=relink
8644   else
8645     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8646     hardcode_action=immediate
8647   fi
8648 else
8649   # We cannot hardcode anything, or else we can only hardcode existing
8650   # directories.
8651   hardcode_action=unsupported
8652 fi
8653 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8654 echo "${ECHO_T}$hardcode_action" >&6; }
8655
8656 if test "$hardcode_action" = relink; then
8657   # Fast installation is not supported
8658   enable_fast_install=no
8659 elif test "$shlibpath_overrides_runpath" = yes ||
8660      test "$enable_shared" = no; then
8661   # Fast installation is not necessary
8662   enable_fast_install=needless
8663 fi
8664
8665 striplib=
8666 old_striplib=
8667 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8668 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8669 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8670   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8671   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8672   { echo "$as_me:$LINENO: result: yes" >&5
8673 echo "${ECHO_T}yes" >&6; }
8674 else
8675 # FIXME - insert some real tests, host_os isn't really good enough
8676   case $host_os in
8677    darwin*)
8678        if test -n "$STRIP" ; then
8679          striplib="$STRIP -x"
8680          old_striplib="$STRIP -S"
8681          { echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6; }
8683        else
8684   { echo "$as_me:$LINENO: result: no" >&5
8685 echo "${ECHO_T}no" >&6; }
8686 fi
8687        ;;
8688    *)
8689   { echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6; }
8691     ;;
8692   esac
8693 fi
8694
8695 if test "x$enable_dlopen" != xyes; then
8696   enable_dlopen=unknown
8697   enable_dlopen_self=unknown
8698   enable_dlopen_self_static=unknown
8699 else
8700   lt_cv_dlopen=no
8701   lt_cv_dlopen_libs=
8702
8703   case $host_os in
8704   beos*)
8705     lt_cv_dlopen="load_add_on"
8706     lt_cv_dlopen_libs=
8707     lt_cv_dlopen_self=yes
8708     ;;
8709
8710   mingw* | pw32*)
8711     lt_cv_dlopen="LoadLibrary"
8712     lt_cv_dlopen_libs=
8713    ;;
8714
8715   cygwin*)
8716     lt_cv_dlopen="dlopen"
8717     lt_cv_dlopen_libs=
8718    ;;
8719
8720   darwin*)
8721   # if libdl is installed we need to link against it
8722     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8723 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8724 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8725   echo $ECHO_N "(cached) $ECHO_C" >&6
8726 else
8727   ac_check_lib_save_LIBS=$LIBS
8728 LIBS="-ldl  $LIBS"
8729 cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735
8736 /* Override any GCC internal prototype to avoid an error.
8737    Use char because int might match the return type of a GCC
8738    builtin and then its argument prototype would still apply.  */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 char dlopen ();
8743 int
8744 main ()
8745 {
8746 return dlopen ();
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758   (eval "$ac_link") 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } && {
8765          test -z "$ac_c_werror_flag" ||
8766          test ! -s conftest.err
8767        } && test -s conftest$ac_exeext &&
8768        $as_test_x conftest$ac_exeext; then
8769   ac_cv_lib_dl_dlopen=yes
8770 else
8771   echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8773
8774         ac_cv_lib_dl_dlopen=no
8775 fi
8776
8777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8778       conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8780 fi
8781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8782 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8783 if test $ac_cv_lib_dl_dlopen = yes; then
8784   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8785 else
8786
8787     lt_cv_dlopen="dyld"
8788     lt_cv_dlopen_libs=
8789     lt_cv_dlopen_self=yes
8790
8791 fi
8792
8793    ;;
8794
8795   *)
8796     { echo "$as_me:$LINENO: checking for shl_load" >&5
8797 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8798 if test "${ac_cv_func_shl_load+set}" = set; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8809 #define shl_load innocuous_shl_load
8810
8811 /* System header to define __stub macros and hopefully few prototypes,
8812     which can conflict with char shl_load (); below.
8813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814     <limits.h> exists even on freestanding compilers.  */
8815
8816 #ifdef __STDC__
8817 # include <limits.h>
8818 #else
8819 # include <assert.h>
8820 #endif
8821
8822 #undef shl_load
8823
8824 /* Override any GCC internal prototype to avoid an error.
8825    Use char because int might match the return type of a GCC
8826    builtin and then its argument prototype would still apply.  */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 char shl_load ();
8831 /* The GNU C library defines this for functions which it implements
8832     to always fail with ENOSYS.  Some functions are actually named
8833     something starting with __ and the normal name is an alias.  */
8834 #if defined __stub_shl_load || defined __stub___shl_load
8835 choke me
8836 #endif
8837
8838 int
8839 main ()
8840 {
8841 return shl_load ();
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853   (eval "$ac_link") 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } && {
8860          test -z "$ac_c_werror_flag" ||
8861          test ! -s conftest.err
8862        } && test -s conftest$ac_exeext &&
8863        $as_test_x conftest$ac_exeext; then
8864   ac_cv_func_shl_load=yes
8865 else
8866   echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8868
8869         ac_cv_func_shl_load=no
8870 fi
8871
8872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8873       conftest$ac_exeext conftest.$ac_ext
8874 fi
8875 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8876 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8877 if test $ac_cv_func_shl_load = yes; then
8878   lt_cv_dlopen="shl_load"
8879 else
8880   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8881 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8882 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8883   echo $ECHO_N "(cached) $ECHO_C" >&6
8884 else
8885   ac_check_lib_save_LIBS=$LIBS
8886 LIBS="-ldld  $LIBS"
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 /* Override any GCC internal prototype to avoid an error.
8895    Use char because int might match the return type of a GCC
8896    builtin and then its argument prototype would still apply.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 char shl_load ();
8901 int
8902 main ()
8903 {
8904 return shl_load ();
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext conftest$ac_exeext
8910 if { (ac_try="$ac_link"
8911 case "(($ac_try" in
8912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913   *) ac_try_echo=$ac_try;;
8914 esac
8915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916   (eval "$ac_link") 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } && {
8923          test -z "$ac_c_werror_flag" ||
8924          test ! -s conftest.err
8925        } && test -s conftest$ac_exeext &&
8926        $as_test_x conftest$ac_exeext; then
8927   ac_cv_lib_dld_shl_load=yes
8928 else
8929   echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932         ac_cv_lib_dld_shl_load=no
8933 fi
8934
8935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8936       conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8938 fi
8939 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8940 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8941 if test $ac_cv_lib_dld_shl_load = yes; then
8942   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8943 else
8944   { echo "$as_me:$LINENO: checking for dlopen" >&5
8945 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8946 if test "${ac_cv_func_dlopen+set}" = set; then
8947   echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949   cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8957 #define dlopen innocuous_dlopen
8958
8959 /* System header to define __stub macros and hopefully few prototypes,
8960     which can conflict with char dlopen (); below.
8961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962     <limits.h> exists even on freestanding compilers.  */
8963
8964 #ifdef __STDC__
8965 # include <limits.h>
8966 #else
8967 # include <assert.h>
8968 #endif
8969
8970 #undef dlopen
8971
8972 /* Override any GCC internal prototype to avoid an error.
8973    Use char because int might match the return type of a GCC
8974    builtin and then its argument prototype would still apply.  */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 char dlopen ();
8979 /* The GNU C library defines this for functions which it implements
8980     to always fail with ENOSYS.  Some functions are actually named
8981     something starting with __ and the normal name is an alias.  */
8982 #if defined __stub_dlopen || defined __stub___dlopen
8983 choke me
8984 #endif
8985
8986 int
8987 main ()
8988 {
8989 return dlopen ();
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (ac_try="$ac_link"
8996 case "(($ac_try" in
8997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998   *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001   (eval "$ac_link") 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } && {
9008          test -z "$ac_c_werror_flag" ||
9009          test ! -s conftest.err
9010        } && test -s conftest$ac_exeext &&
9011        $as_test_x conftest$ac_exeext; then
9012   ac_cv_func_dlopen=yes
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017         ac_cv_func_dlopen=no
9018 fi
9019
9020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9021       conftest$ac_exeext conftest.$ac_ext
9022 fi
9023 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9024 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9025 if test $ac_cv_func_dlopen = yes; then
9026   lt_cv_dlopen="dlopen"
9027 else
9028   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9029 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9030 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9031   echo $ECHO_N "(cached) $ECHO_C" >&6
9032 else
9033   ac_check_lib_save_LIBS=$LIBS
9034 LIBS="-ldl  $LIBS"
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 /* Override any GCC internal prototype to avoid an error.
9043    Use char because int might match the return type of a GCC
9044    builtin and then its argument prototype would still apply.  */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 char dlopen ();
9049 int
9050 main ()
9051 {
9052 return dlopen ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9059 case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_link") 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } && {
9071          test -z "$ac_c_werror_flag" ||
9072          test ! -s conftest.err
9073        } && test -s conftest$ac_exeext &&
9074        $as_test_x conftest$ac_exeext; then
9075   ac_cv_lib_dl_dlopen=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080         ac_cv_lib_dl_dlopen=no
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084       conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9086 fi
9087 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9088 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9089 if test $ac_cv_lib_dl_dlopen = yes; then
9090   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9091 else
9092   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9093 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9094 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   ac_check_lib_save_LIBS=$LIBS
9098 LIBS="-lsvld  $LIBS"
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105
9106 /* Override any GCC internal prototype to avoid an error.
9107    Use char because int might match the return type of a GCC
9108    builtin and then its argument prototype would still apply.  */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 char dlopen ();
9113 int
9114 main ()
9115 {
9116 return dlopen ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (ac_try="$ac_link"
9123 case "(($ac_try" in
9124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125   *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128   (eval "$ac_link") 2>conftest.er1
9129   ac_status=$?
9130   grep -v '^ *+' conftest.er1 >conftest.err
9131   rm -f conftest.er1
9132   cat conftest.err >&5
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } && {
9135          test -z "$ac_c_werror_flag" ||
9136          test ! -s conftest.err
9137        } && test -s conftest$ac_exeext &&
9138        $as_test_x conftest$ac_exeext; then
9139   ac_cv_lib_svld_dlopen=yes
9140 else
9141   echo "$as_me: failed program was:" >&5
9142 sed 's/^/| /' conftest.$ac_ext >&5
9143
9144         ac_cv_lib_svld_dlopen=no
9145 fi
9146
9147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9148       conftest$ac_exeext conftest.$ac_ext
9149 LIBS=$ac_check_lib_save_LIBS
9150 fi
9151 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9152 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9153 if test $ac_cv_lib_svld_dlopen = yes; then
9154   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9155 else
9156   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9157 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9159   echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161   ac_check_lib_save_LIBS=$LIBS
9162 LIBS="-ldld  $LIBS"
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169
9170 /* Override any GCC internal prototype to avoid an error.
9171    Use char because int might match the return type of a GCC
9172    builtin and then its argument prototype would still apply.  */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 char dld_link ();
9177 int
9178 main ()
9179 {
9180 return dld_link ();
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_link") 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } && {
9199          test -z "$ac_c_werror_flag" ||
9200          test ! -s conftest.err
9201        } && test -s conftest$ac_exeext &&
9202        $as_test_x conftest$ac_exeext; then
9203   ac_cv_lib_dld_dld_link=yes
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208         ac_cv_lib_dld_dld_link=no
9209 fi
9210
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212       conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_lib_save_LIBS
9214 fi
9215 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9216 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9217 if test $ac_cv_lib_dld_dld_link = yes; then
9218   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9219 fi
9220
9221
9222 fi
9223
9224
9225 fi
9226
9227
9228 fi
9229
9230
9231 fi
9232
9233
9234 fi
9235
9236     ;;
9237   esac
9238
9239   if test "x$lt_cv_dlopen" != xno; then
9240     enable_dlopen=yes
9241   else
9242     enable_dlopen=no
9243   fi
9244
9245   case $lt_cv_dlopen in
9246   dlopen)
9247     save_CPPFLAGS="$CPPFLAGS"
9248     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9249
9250     save_LDFLAGS="$LDFLAGS"
9251     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9252
9253     save_LIBS="$LIBS"
9254     LIBS="$lt_cv_dlopen_libs $LIBS"
9255
9256     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9257 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9258 if test "${lt_cv_dlopen_self+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261           if test "$cross_compiling" = yes; then :
9262   lt_cv_dlopen_self=cross
9263 else
9264   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9265   lt_status=$lt_dlunknown
9266   cat > conftest.$ac_ext <<EOF
9267 #line 9267 "configure"
9268 #include "confdefs.h"
9269
9270 #if HAVE_DLFCN_H
9271 #include <dlfcn.h>
9272 #endif
9273
9274 #include <stdio.h>
9275
9276 #ifdef RTLD_GLOBAL
9277 #  define LT_DLGLOBAL           RTLD_GLOBAL
9278 #else
9279 #  ifdef DL_GLOBAL
9280 #    define LT_DLGLOBAL         DL_GLOBAL
9281 #  else
9282 #    define LT_DLGLOBAL         0
9283 #  endif
9284 #endif
9285
9286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9287    find out it does not work in some platform. */
9288 #ifndef LT_DLLAZY_OR_NOW
9289 #  ifdef RTLD_LAZY
9290 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9291 #  else
9292 #    ifdef DL_LAZY
9293 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9294 #    else
9295 #      ifdef RTLD_NOW
9296 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9297 #      else
9298 #        ifdef DL_NOW
9299 #          define LT_DLLAZY_OR_NOW      DL_NOW
9300 #        else
9301 #          define LT_DLLAZY_OR_NOW      0
9302 #        endif
9303 #      endif
9304 #    endif
9305 #  endif
9306 #endif
9307
9308 #ifdef __cplusplus
9309 extern "C" void exit (int);
9310 #endif
9311
9312 void fnord() { int i=42;}
9313 int main ()
9314 {
9315   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9316   int status = $lt_dlunknown;
9317
9318   if (self)
9319     {
9320       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9321       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9322       /* dlclose (self); */
9323     }
9324   else
9325     puts (dlerror ());
9326
9327     exit (status);
9328 }
9329 EOF
9330   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331   (eval $ac_link) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9335     (./conftest; exit; ) >&5 2>/dev/null
9336     lt_status=$?
9337     case x$lt_status in
9338       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9339       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9340       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9341     esac
9342   else :
9343     # compilation failed
9344     lt_cv_dlopen_self=no
9345   fi
9346 fi
9347 rm -fr conftest*
9348
9349
9350 fi
9351 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9352 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9353
9354     if test "x$lt_cv_dlopen_self" = xyes; then
9355       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9356       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9357 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9358 if test "${lt_cv_dlopen_self_static+set}" = set; then
9359   echo $ECHO_N "(cached) $ECHO_C" >&6
9360 else
9361           if test "$cross_compiling" = yes; then :
9362   lt_cv_dlopen_self_static=cross
9363 else
9364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9365   lt_status=$lt_dlunknown
9366   cat > conftest.$ac_ext <<EOF
9367 #line 9367 "configure"
9368 #include "confdefs.h"
9369
9370 #if HAVE_DLFCN_H
9371 #include <dlfcn.h>
9372 #endif
9373
9374 #include <stdio.h>
9375
9376 #ifdef RTLD_GLOBAL
9377 #  define LT_DLGLOBAL           RTLD_GLOBAL
9378 #else
9379 #  ifdef DL_GLOBAL
9380 #    define LT_DLGLOBAL         DL_GLOBAL
9381 #  else
9382 #    define LT_DLGLOBAL         0
9383 #  endif
9384 #endif
9385
9386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9387    find out it does not work in some platform. */
9388 #ifndef LT_DLLAZY_OR_NOW
9389 #  ifdef RTLD_LAZY
9390 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9391 #  else
9392 #    ifdef DL_LAZY
9393 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9394 #    else
9395 #      ifdef RTLD_NOW
9396 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9397 #      else
9398 #        ifdef DL_NOW
9399 #          define LT_DLLAZY_OR_NOW      DL_NOW
9400 #        else
9401 #          define LT_DLLAZY_OR_NOW      0
9402 #        endif
9403 #      endif
9404 #    endif
9405 #  endif
9406 #endif
9407
9408 #ifdef __cplusplus
9409 extern "C" void exit (int);
9410 #endif
9411
9412 void fnord() { int i=42;}
9413 int main ()
9414 {
9415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9416   int status = $lt_dlunknown;
9417
9418   if (self)
9419     {
9420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9422       /* dlclose (self); */
9423     }
9424   else
9425     puts (dlerror ());
9426
9427     exit (status);
9428 }
9429 EOF
9430   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431   (eval $ac_link) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9435     (./conftest; exit; ) >&5 2>/dev/null
9436     lt_status=$?
9437     case x$lt_status in
9438       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9439       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9440       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9441     esac
9442   else :
9443     # compilation failed
9444     lt_cv_dlopen_self_static=no
9445   fi
9446 fi
9447 rm -fr conftest*
9448
9449
9450 fi
9451 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9452 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9453     fi
9454
9455     CPPFLAGS="$save_CPPFLAGS"
9456     LDFLAGS="$save_LDFLAGS"
9457     LIBS="$save_LIBS"
9458     ;;
9459   esac
9460
9461   case $lt_cv_dlopen_self in
9462   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9463   *) enable_dlopen_self=unknown ;;
9464   esac
9465
9466   case $lt_cv_dlopen_self_static in
9467   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9468   *) enable_dlopen_self_static=unknown ;;
9469   esac
9470 fi
9471
9472
9473 # Report which library types will actually be built
9474 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9475 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9476 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9477 echo "${ECHO_T}$can_build_shared" >&6; }
9478
9479 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9480 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9481 test "$can_build_shared" = "no" && enable_shared=no
9482
9483 # On AIX, shared libraries and static libraries use the same namespace, and
9484 # are all built from PIC.
9485 case $host_os in
9486 aix3*)
9487   test "$enable_shared" = yes && enable_static=no
9488   if test -n "$RANLIB"; then
9489     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9490     postinstall_cmds='$RANLIB $lib'
9491   fi
9492   ;;
9493
9494 aix4* | aix5*)
9495   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9496     test "$enable_shared" = yes && enable_static=no
9497   fi
9498     ;;
9499 esac
9500 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9501 echo "${ECHO_T}$enable_shared" >&6; }
9502
9503 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9504 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9505 # Make sure either enable_shared or enable_static is yes.
9506 test "$enable_shared" = yes || enable_static=yes
9507 { echo "$as_me:$LINENO: result: $enable_static" >&5
9508 echo "${ECHO_T}$enable_static" >&6; }
9509
9510 # The else clause should only fire when bootstrapping the
9511 # libtool distribution, otherwise you forgot to ship ltmain.sh
9512 # with your package, and you will get complaints that there are
9513 # no rules to generate ltmain.sh.
9514 if test -f "$ltmain"; then
9515   # See if we are running on zsh, and set the options which allow our commands through
9516   # without removal of \ escapes.
9517   if test -n "${ZSH_VERSION+set}" ; then
9518     setopt NO_GLOB_SUBST
9519   fi
9520   # Now quote all the things that may contain metacharacters while being
9521   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9522   # variables and quote the copies for generation of the libtool script.
9523   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9524     SED SHELL STRIP \
9525     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9526     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9527     deplibs_check_method reload_flag reload_cmds need_locks \
9528     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9529     lt_cv_sys_global_symbol_to_c_name_address \
9530     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9531     old_postinstall_cmds old_postuninstall_cmds \
9532     compiler \
9533     CC \
9534     LD \
9535     lt_prog_compiler_wl \
9536     lt_prog_compiler_pic \
9537     lt_prog_compiler_static \
9538     lt_prog_compiler_no_builtin_flag \
9539     export_dynamic_flag_spec \
9540     thread_safe_flag_spec \
9541     whole_archive_flag_spec \
9542     enable_shared_with_static_runtimes \
9543     old_archive_cmds \
9544     old_archive_from_new_cmds \
9545     predep_objects \
9546     postdep_objects \
9547     predeps \
9548     postdeps \
9549     compiler_lib_search_path \
9550     archive_cmds \
9551     archive_expsym_cmds \
9552     postinstall_cmds \
9553     postuninstall_cmds \
9554     old_archive_from_expsyms_cmds \
9555     allow_undefined_flag \
9556     no_undefined_flag \
9557     export_symbols_cmds \
9558     hardcode_libdir_flag_spec \
9559     hardcode_libdir_flag_spec_ld \
9560     hardcode_libdir_separator \
9561     hardcode_automatic \
9562     module_cmds \
9563     module_expsym_cmds \
9564     lt_cv_prog_compiler_c_o \
9565     fix_srcfile_path \
9566     exclude_expsyms \
9567     include_expsyms; do
9568
9569     case $var in
9570     old_archive_cmds | \
9571     old_archive_from_new_cmds | \
9572     archive_cmds | \
9573     archive_expsym_cmds | \
9574     module_cmds | \
9575     module_expsym_cmds | \
9576     old_archive_from_expsyms_cmds | \
9577     export_symbols_cmds | \
9578     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9579     postinstall_cmds | postuninstall_cmds | \
9580     old_postinstall_cmds | old_postuninstall_cmds | \
9581     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9582       # Double-quote double-evaled strings.
9583       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9584       ;;
9585     *)
9586       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9587       ;;
9588     esac
9589   done
9590
9591   case $lt_echo in
9592   *'\$0 --fallback-echo"')
9593     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9594     ;;
9595   esac
9596
9597 cfgfile="${ofile}T"
9598   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9599   $rm -f "$cfgfile"
9600   { echo "$as_me:$LINENO: creating $ofile" >&5
9601 echo "$as_me: creating $ofile" >&6;}
9602
9603   cat <<__EOF__ >> "$cfgfile"
9604 #! $SHELL
9605
9606 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9607 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9608 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9609 #
9610 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9611 # Free Software Foundation, Inc.
9612 #
9613 # This file is part of GNU Libtool:
9614 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9615 #
9616 # This program is free software; you can redistribute it and/or modify
9617 # it under the terms of the GNU General Public License as published by
9618 # the Free Software Foundation; either version 2 of the License, or
9619 # (at your option) any later version.
9620 #
9621 # This program is distributed in the hope that it will be useful, but
9622 # WITHOUT ANY WARRANTY; without even the implied warranty of
9623 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9624 # General Public License for more details.
9625 #
9626 # You should have received a copy of the GNU General Public License
9627 # along with this program; if not, write to the Free Software
9628 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9629 #
9630 # As a special exception to the GNU General Public License, if you
9631 # distribute this file as part of a program that contains a
9632 # configuration script generated by Autoconf, you may include it under
9633 # the same distribution terms that you use for the rest of that program.
9634
9635 # A sed program that does not truncate output.
9636 SED=$lt_SED
9637
9638 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9639 Xsed="$SED -e 1s/^X//"
9640
9641 # The HP-UX ksh and POSIX shell print the target directory to stdout
9642 # if CDPATH is set.
9643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9644
9645 # The names of the tagged configurations supported by this script.
9646 available_tags=
9647
9648 # ### BEGIN LIBTOOL CONFIG
9649
9650 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9651
9652 # Shell to use when invoking shell scripts.
9653 SHELL=$lt_SHELL
9654
9655 # Whether or not to build shared libraries.
9656 build_libtool_libs=$enable_shared
9657
9658 # Whether or not to build static libraries.
9659 build_old_libs=$enable_static
9660
9661 # Whether or not to add -lc for building shared libraries.
9662 build_libtool_need_lc=$archive_cmds_need_lc
9663
9664 # Whether or not to disallow shared libs when runtime libs are static
9665 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9666
9667 # Whether or not to optimize for fast installation.
9668 fast_install=$enable_fast_install
9669
9670 # The host system.
9671 host_alias=$host_alias
9672 host=$host
9673 host_os=$host_os
9674
9675 # The build system.
9676 build_alias=$build_alias
9677 build=$build
9678 build_os=$build_os
9679
9680 # An echo program that does not interpret backslashes.
9681 echo=$lt_echo
9682
9683 # The archiver.
9684 AR=$lt_AR
9685 AR_FLAGS=$lt_AR_FLAGS
9686
9687 # A C compiler.
9688 LTCC=$lt_LTCC
9689
9690 # LTCC compiler flags.
9691 LTCFLAGS=$lt_LTCFLAGS
9692
9693 # A language-specific compiler.
9694 CC=$lt_compiler
9695
9696 # Is the compiler the GNU C compiler?
9697 with_gcc=$GCC
9698
9699 # An ERE matcher.
9700 EGREP=$lt_EGREP
9701
9702 # The linker used to build libraries.
9703 LD=$lt_LD
9704
9705 # Whether we need hard or soft links.
9706 LN_S=$lt_LN_S
9707
9708 # A BSD-compatible nm program.
9709 NM=$lt_NM
9710
9711 # A symbol stripping program
9712 STRIP=$lt_STRIP
9713
9714 # Used to examine libraries when file_magic_cmd begins "file"
9715 MAGIC_CMD=$MAGIC_CMD
9716
9717 # Used on cygwin: DLL creation program.
9718 DLLTOOL="$DLLTOOL"
9719
9720 # Used on cygwin: object dumper.
9721 OBJDUMP="$OBJDUMP"
9722
9723 # Used on cygwin: assembler.
9724 AS="$AS"
9725
9726 # The name of the directory that contains temporary libtool files.
9727 objdir=$objdir
9728
9729 # How to create reloadable object files.
9730 reload_flag=$lt_reload_flag
9731 reload_cmds=$lt_reload_cmds
9732
9733 # How to pass a linker flag through the compiler.
9734 wl=$lt_lt_prog_compiler_wl
9735
9736 # Object file suffix (normally "o").
9737 objext="$ac_objext"
9738
9739 # Old archive suffix (normally "a").
9740 libext="$libext"
9741
9742 # Shared library suffix (normally ".so").
9743 shrext_cmds='$shrext_cmds'
9744
9745 # Executable file suffix (normally "").
9746 exeext="$exeext"
9747
9748 # Additional compiler flags for building library objects.
9749 pic_flag=$lt_lt_prog_compiler_pic
9750 pic_mode=$pic_mode
9751
9752 # What is the maximum length of a command?
9753 max_cmd_len=$lt_cv_sys_max_cmd_len
9754
9755 # Does compiler simultaneously support -c and -o options?
9756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9757
9758 # Must we lock files when doing compilation?
9759 need_locks=$lt_need_locks
9760
9761 # Do we need the lib prefix for modules?
9762 need_lib_prefix=$need_lib_prefix
9763
9764 # Do we need a version for libraries?
9765 need_version=$need_version
9766
9767 # Whether dlopen is supported.
9768 dlopen_support=$enable_dlopen
9769
9770 # Whether dlopen of programs is supported.
9771 dlopen_self=$enable_dlopen_self
9772
9773 # Whether dlopen of statically linked programs is supported.
9774 dlopen_self_static=$enable_dlopen_self_static
9775
9776 # Compiler flag to prevent dynamic linking.
9777 link_static_flag=$lt_lt_prog_compiler_static
9778
9779 # Compiler flag to turn off builtin functions.
9780 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9781
9782 # Compiler flag to allow reflexive dlopens.
9783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9784
9785 # Compiler flag to generate shared objects directly from archives.
9786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9787
9788 # Compiler flag to generate thread-safe objects.
9789 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9790
9791 # Library versioning type.
9792 version_type=$version_type
9793
9794 # Format of library name prefix.
9795 libname_spec=$lt_libname_spec
9796
9797 # List of archive names.  First name is the real one, the rest are links.
9798 # The last name is the one that the linker finds with -lNAME.
9799 library_names_spec=$lt_library_names_spec
9800
9801 # The coded name of the library, if different from the real name.
9802 soname_spec=$lt_soname_spec
9803
9804 # Commands used to build and install an old-style archive.
9805 RANLIB=$lt_RANLIB
9806 old_archive_cmds=$lt_old_archive_cmds
9807 old_postinstall_cmds=$lt_old_postinstall_cmds
9808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9809
9810 # Create an old-style archive from a shared archive.
9811 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9812
9813 # Create a temporary old-style archive to link instead of a shared archive.
9814 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9815
9816 # Commands used to build and install a shared archive.
9817 archive_cmds=$lt_archive_cmds
9818 archive_expsym_cmds=$lt_archive_expsym_cmds
9819 postinstall_cmds=$lt_postinstall_cmds
9820 postuninstall_cmds=$lt_postuninstall_cmds
9821
9822 # Commands used to build a loadable module (assumed same as above if empty)
9823 module_cmds=$lt_module_cmds
9824 module_expsym_cmds=$lt_module_expsym_cmds
9825
9826 # Commands to strip libraries.
9827 old_striplib=$lt_old_striplib
9828 striplib=$lt_striplib
9829
9830 # Dependencies to place before the objects being linked to create a
9831 # shared library.
9832 predep_objects=$lt_predep_objects
9833
9834 # Dependencies to place after the objects being linked to create a
9835 # shared library.
9836 postdep_objects=$lt_postdep_objects
9837
9838 # Dependencies to place before the objects being linked to create a
9839 # shared library.
9840 predeps=$lt_predeps
9841
9842 # Dependencies to place after the objects being linked to create a
9843 # shared library.
9844 postdeps=$lt_postdeps
9845
9846 # The library search path used internally by the compiler when linking
9847 # a shared library.
9848 compiler_lib_search_path=$lt_compiler_lib_search_path
9849
9850 # Method to check whether dependent libraries are shared objects.
9851 deplibs_check_method=$lt_deplibs_check_method
9852
9853 # Command to use when deplibs_check_method == file_magic.
9854 file_magic_cmd=$lt_file_magic_cmd
9855
9856 # Flag that allows shared libraries with undefined symbols to be built.
9857 allow_undefined_flag=$lt_allow_undefined_flag
9858
9859 # Flag that forces no undefined symbols.
9860 no_undefined_flag=$lt_no_undefined_flag
9861
9862 # Commands used to finish a libtool library installation in a directory.
9863 finish_cmds=$lt_finish_cmds
9864
9865 # Same as above, but a single script fragment to be evaled but not shown.
9866 finish_eval=$lt_finish_eval
9867
9868 # Take the output of nm and produce a listing of raw symbols and C names.
9869 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9870
9871 # Transform the output of nm in a proper C declaration
9872 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9873
9874 # Transform the output of nm in a C name address pair
9875 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9876
9877 # This is the shared library runtime path variable.
9878 runpath_var=$runpath_var
9879
9880 # This is the shared library path variable.
9881 shlibpath_var=$shlibpath_var
9882
9883 # Is shlibpath searched before the hard-coded library search path?
9884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9885
9886 # How to hardcode a shared library path into an executable.
9887 hardcode_action=$hardcode_action
9888
9889 # Whether we should hardcode library paths into libraries.
9890 hardcode_into_libs=$hardcode_into_libs
9891
9892 # Flag to hardcode \$libdir into a binary during linking.
9893 # This must work even if \$libdir does not exist.
9894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9895
9896 # If ld is used when linking, flag to hardcode \$libdir into
9897 # a binary during linking. This must work even if \$libdir does
9898 # not exist.
9899 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9900
9901 # Whether we need a single -rpath flag with a separated argument.
9902 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9903
9904 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9905 # resulting binary.
9906 hardcode_direct=$hardcode_direct
9907
9908 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9909 # resulting binary.
9910 hardcode_minus_L=$hardcode_minus_L
9911
9912 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9913 # the resulting binary.
9914 hardcode_shlibpath_var=$hardcode_shlibpath_var
9915
9916 # Set to yes if building a shared library automatically hardcodes DIR into the library
9917 # and all subsequent libraries and executables linked against it.
9918 hardcode_automatic=$hardcode_automatic
9919
9920 # Variables whose values should be saved in libtool wrapper scripts and
9921 # restored at relink time.
9922 variables_saved_for_relink="$variables_saved_for_relink"
9923
9924 # Whether libtool must link a program against all its dependency libraries.
9925 link_all_deplibs=$link_all_deplibs
9926
9927 # Compile-time system search path for libraries
9928 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9929
9930 # Run-time system search path for libraries
9931 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9932
9933 # Fix the shell variable \$srcfile for the compiler.
9934 fix_srcfile_path=$lt_fix_srcfile_path
9935
9936 # Set to yes if exported symbols are required.
9937 always_export_symbols=$always_export_symbols
9938
9939 # The commands to list exported symbols.
9940 export_symbols_cmds=$lt_export_symbols_cmds
9941
9942 # The commands to extract the exported symbol list from a shared archive.
9943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9944
9945 # Symbols that should not be listed in the preloaded symbols.
9946 exclude_expsyms=$lt_exclude_expsyms
9947
9948 # Symbols that must always be exported.
9949 include_expsyms=$lt_include_expsyms
9950
9951 # ### END LIBTOOL CONFIG
9952
9953 __EOF__
9954
9955
9956   case $host_os in
9957   aix3*)
9958     cat <<\EOF >> "$cfgfile"
9959
9960 # AIX sometimes has problems with the GCC collect2 program.  For some
9961 # reason, if we set the COLLECT_NAMES environment variable, the problems
9962 # vanish in a puff of smoke.
9963 if test "X${COLLECT_NAMES+set}" != Xset; then
9964   COLLECT_NAMES=
9965   export COLLECT_NAMES
9966 fi
9967 EOF
9968     ;;
9969   esac
9970
9971   # We use sed instead of cat because bash on DJGPP gets confused if
9972   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9973   # text mode, it properly converts lines to CR/LF.  This bash problem
9974   # is reportedly fixed, but why not run on old versions too?
9975   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9976
9977   mv -f "$cfgfile" "$ofile" || \
9978     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9979   chmod +x "$ofile"
9980
9981 else
9982   # If there is no Makefile yet, we rely on a make rule to execute
9983   # `config.status --recheck' to rerun these tests and create the
9984   # libtool script then.
9985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9986   if test -f "$ltmain_in"; then
9987     test -f Makefile && make "$ltmain"
9988   fi
9989 fi
9990
9991
9992 ac_ext=c
9993 ac_cpp='$CPP $CPPFLAGS'
9994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9997
9998 CC="$lt_save_CC"
9999
10000
10001 # Check whether --with-tags was given.
10002 if test "${with_tags+set}" = set; then
10003   withval=$with_tags; tagnames="$withval"
10004 fi
10005
10006
10007 if test -f "$ltmain" && test -n "$tagnames"; then
10008   if test ! -f "${ofile}"; then
10009     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10010 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10011   fi
10012
10013   if test -z "$LTCC"; then
10014     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10015     if test -z "$LTCC"; then
10016       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10017 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10018     else
10019       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10020 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10021     fi
10022   fi
10023   if test -z "$LTCFLAGS"; then
10024     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10025   fi
10026
10027   # Extract list of available tagged configurations in $ofile.
10028   # Note that this assumes the entire list is on one line.
10029   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10030
10031   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10032   for tagname in $tagnames; do
10033     IFS="$lt_save_ifs"
10034     # Check whether tagname contains only valid characters
10035     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10036     "") ;;
10037     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10038 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10039    { (exit 1); exit 1; }; }
10040         ;;
10041     esac
10042
10043     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10044     then
10045       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10046 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10047    { (exit 1); exit 1; }; }
10048     fi
10049
10050     # Update the list of available tags.
10051     if test -n "$tagname"; then
10052       echo appending configuration tag \"$tagname\" to $ofile
10053
10054       case $tagname in
10055       CXX)
10056         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10057             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10058             (test "X$CXX" != "Xg++"))) ; then
10059           ac_ext=cpp
10060 ac_cpp='$CXXCPP $CPPFLAGS'
10061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10064
10065
10066
10067
10068 archive_cmds_need_lc_CXX=no
10069 allow_undefined_flag_CXX=
10070 always_export_symbols_CXX=no
10071 archive_expsym_cmds_CXX=
10072 export_dynamic_flag_spec_CXX=
10073 hardcode_direct_CXX=no
10074 hardcode_libdir_flag_spec_CXX=
10075 hardcode_libdir_flag_spec_ld_CXX=
10076 hardcode_libdir_separator_CXX=
10077 hardcode_minus_L_CXX=no
10078 hardcode_shlibpath_var_CXX=unsupported
10079 hardcode_automatic_CXX=no
10080 module_cmds_CXX=
10081 module_expsym_cmds_CXX=
10082 link_all_deplibs_CXX=unknown
10083 old_archive_cmds_CXX=$old_archive_cmds
10084 no_undefined_flag_CXX=
10085 whole_archive_flag_spec_CXX=
10086 enable_shared_with_static_runtimes_CXX=no
10087
10088 # Dependencies to place before and after the object being linked:
10089 predep_objects_CXX=
10090 postdep_objects_CXX=
10091 predeps_CXX=
10092 postdeps_CXX=
10093 compiler_lib_search_path_CXX=
10094
10095 # Source file extension for C++ test sources.
10096 ac_ext=cpp
10097
10098 # Object file extension for compiled C++ test sources.
10099 objext=o
10100 objext_CXX=$objext
10101
10102 # Code to be used in simple compile tests
10103 lt_simple_compile_test_code="int some_variable = 0;"
10104
10105 # Code to be used in simple link tests
10106 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10107
10108 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10109
10110 # If no C compiler was specified, use CC.
10111 LTCC=${LTCC-"$CC"}
10112
10113 # If no C compiler flags were specified, use CFLAGS.
10114 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10115
10116 # Allow CC to be a program name with arguments.
10117 compiler=$CC
10118
10119
10120 # save warnings/boilerplate of simple test code
10121 ac_outfile=conftest.$ac_objext
10122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10124 _lt_compiler_boilerplate=`cat conftest.err`
10125 $rm conftest*
10126
10127 ac_outfile=conftest.$ac_objext
10128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10130 _lt_linker_boilerplate=`cat conftest.err`
10131 $rm conftest*
10132
10133
10134 # Allow CC to be a program name with arguments.
10135 lt_save_CC=$CC
10136 lt_save_LD=$LD
10137 lt_save_GCC=$GCC
10138 GCC=$GXX
10139 lt_save_with_gnu_ld=$with_gnu_ld
10140 lt_save_path_LD=$lt_cv_path_LD
10141 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10142   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10143 else
10144   $as_unset lt_cv_prog_gnu_ld
10145 fi
10146 if test -n "${lt_cv_path_LDCXX+set}"; then
10147   lt_cv_path_LD=$lt_cv_path_LDCXX
10148 else
10149   $as_unset lt_cv_path_LD
10150 fi
10151 test -z "${LDCXX+set}" || LD=$LDCXX
10152 CC=${CXX-"c++"}
10153 compiler=$CC
10154 compiler_CXX=$CC
10155 for cc_temp in $compiler""; do
10156   case $cc_temp in
10157     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10158     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10159     \-*) ;;
10160     *) break;;
10161   esac
10162 done
10163 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10164
10165
10166 # We don't want -fno-exception wen compiling C++ code, so set the
10167 # no_builtin_flag separately
10168 if test "$GXX" = yes; then
10169   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10170 else
10171   lt_prog_compiler_no_builtin_flag_CXX=
10172 fi
10173
10174 if test "$GXX" = yes; then
10175   # Set up default GNU C++ configuration
10176
10177
10178 # Check whether --with-gnu-ld was given.
10179 if test "${with_gnu_ld+set}" = set; then
10180   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10181 else
10182   with_gnu_ld=no
10183 fi
10184
10185 ac_prog=ld
10186 if test "$GCC" = yes; then
10187   # Check if gcc -print-prog-name=ld gives a path.
10188   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10189 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10190   case $host in
10191   *-*-mingw*)
10192     # gcc leaves a trailing carriage return which upsets mingw
10193     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10194   *)
10195     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10196   esac
10197   case $ac_prog in
10198     # Accept absolute paths.
10199     [\\/]* | ?:[\\/]*)
10200       re_direlt='/[^/][^/]*/\.\./'
10201       # Canonicalize the pathname of ld
10202       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10203       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10204         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10205       done
10206       test -z "$LD" && LD="$ac_prog"
10207       ;;
10208   "")
10209     # If it fails, then pretend we aren't using GCC.
10210     ac_prog=ld
10211     ;;
10212   *)
10213     # If it is relative, then search for the first ld in PATH.
10214     with_gnu_ld=unknown
10215     ;;
10216   esac
10217 elif test "$with_gnu_ld" = yes; then
10218   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10219 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10220 else
10221   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10222 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10223 fi
10224 if test "${lt_cv_path_LD+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227   if test -z "$LD"; then
10228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10229   for ac_dir in $PATH; do
10230     IFS="$lt_save_ifs"
10231     test -z "$ac_dir" && ac_dir=.
10232     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10233       lt_cv_path_LD="$ac_dir/$ac_prog"
10234       # Check to see if the program is GNU ld.  I'd rather use --version,
10235       # but apparently some variants of GNU ld only accept -v.
10236       # Break only if it was the GNU/non-GNU ld that we prefer.
10237       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10238       *GNU* | *'with BFD'*)
10239         test "$with_gnu_ld" != no && break
10240         ;;
10241       *)
10242         test "$with_gnu_ld" != yes && break
10243         ;;
10244       esac
10245     fi
10246   done
10247   IFS="$lt_save_ifs"
10248 else
10249   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10250 fi
10251 fi
10252
10253 LD="$lt_cv_path_LD"
10254 if test -n "$LD"; then
10255   { echo "$as_me:$LINENO: result: $LD" >&5
10256 echo "${ECHO_T}$LD" >&6; }
10257 else
10258   { echo "$as_me:$LINENO: result: no" >&5
10259 echo "${ECHO_T}no" >&6; }
10260 fi
10261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10263    { (exit 1); exit 1; }; }
10264 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10266 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10267   echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10270 case `$LD -v 2>&1 </dev/null` in
10271 *GNU* | *'with BFD'*)
10272   lt_cv_prog_gnu_ld=yes
10273   ;;
10274 *)
10275   lt_cv_prog_gnu_ld=no
10276   ;;
10277 esac
10278 fi
10279 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10280 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10281 with_gnu_ld=$lt_cv_prog_gnu_ld
10282
10283
10284
10285   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10286   # archiving commands below assume that GNU ld is being used.
10287   if test "$with_gnu_ld" = yes; then
10288     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10289     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'
10290
10291     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10292     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10293
10294     # If archive_cmds runs LD, not CC, wlarc should be empty
10295     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10296     #     investigate it a little bit more. (MM)
10297     wlarc='${wl}'
10298
10299     # ancient GNU ld didn't support --whole-archive et. al.
10300     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10301         grep 'no-whole-archive' > /dev/null; then
10302       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10303     else
10304       whole_archive_flag_spec_CXX=
10305     fi
10306   else
10307     with_gnu_ld=no
10308     wlarc=
10309
10310     # A generic and very simple default shared library creation
10311     # command for GNU C++ for the case where it uses the native
10312     # linker, instead of GNU ld.  If possible, this setting should
10313     # overridden to take advantage of the native linker features on
10314     # the platform it is being used on.
10315     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10316   fi
10317
10318   # Commands to make compiler produce verbose output that lists
10319   # what "hidden" libraries, object files and flags are used when
10320   # linking a shared library.
10321   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10322
10323 else
10324   GXX=no
10325   with_gnu_ld=no
10326   wlarc=
10327 fi
10328
10329 # PORTME: fill in a description of your system's C++ link characteristics
10330 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10331 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10332 ld_shlibs_CXX=yes
10333 case $host_os in
10334   aix3*)
10335     # FIXME: insert proper C++ library support
10336     ld_shlibs_CXX=no
10337     ;;
10338   aix4* | aix5*)
10339     if test "$host_cpu" = ia64; then
10340       # On IA64, the linker does run time linking by default, so we don't
10341       # have to do anything special.
10342       aix_use_runtimelinking=no
10343       exp_sym_flag='-Bexport'
10344       no_entry_flag=""
10345     else
10346       aix_use_runtimelinking=no
10347
10348       # Test if we are trying to use run time linking or normal
10349       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10350       # need to do runtime linking.
10351       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10352         for ld_flag in $LDFLAGS; do
10353           case $ld_flag in
10354           *-brtl*)
10355             aix_use_runtimelinking=yes
10356             break
10357             ;;
10358           esac
10359         done
10360         ;;
10361       esac
10362
10363       exp_sym_flag='-bexport'
10364       no_entry_flag='-bnoentry'
10365     fi
10366
10367     # When large executables or shared objects are built, AIX ld can
10368     # have problems creating the table of contents.  If linking a library
10369     # or program results in "error TOC overflow" add -mminimal-toc to
10370     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10371     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10372
10373     archive_cmds_CXX=''
10374     hardcode_direct_CXX=yes
10375     hardcode_libdir_separator_CXX=':'
10376     link_all_deplibs_CXX=yes
10377
10378     if test "$GXX" = yes; then
10379       case $host_os in aix4.[012]|aix4.[012].*)
10380       # We only want to do this on AIX 4.2 and lower, the check
10381       # below for broken collect2 doesn't work under 4.3+
10382         collect2name=`${CC} -print-prog-name=collect2`
10383         if test -f "$collect2name" && \
10384            strings "$collect2name" | grep resolve_lib_name >/dev/null
10385         then
10386           # We have reworked collect2
10387           :
10388         else
10389           # We have old collect2
10390           hardcode_direct_CXX=unsupported
10391           # It fails to find uninstalled libraries when the uninstalled
10392           # path is not listed in the libpath.  Setting hardcode_minus_L
10393           # to unsupported forces relinking
10394           hardcode_minus_L_CXX=yes
10395           hardcode_libdir_flag_spec_CXX='-L$libdir'
10396           hardcode_libdir_separator_CXX=
10397         fi
10398         ;;
10399       esac
10400       shared_flag='-shared'
10401       if test "$aix_use_runtimelinking" = yes; then
10402         shared_flag="$shared_flag "'${wl}-G'
10403       fi
10404     else
10405       # not using gcc
10406       if test "$host_cpu" = ia64; then
10407         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10408         # chokes on -Wl,-G. The following line is correct:
10409         shared_flag='-G'
10410       else
10411         if test "$aix_use_runtimelinking" = yes; then
10412           shared_flag='${wl}-G'
10413         else
10414           shared_flag='${wl}-bM:SRE'
10415         fi
10416       fi
10417     fi
10418
10419     # It seems that -bexpall does not export symbols beginning with
10420     # underscore (_), so it is better to generate a list of symbols to export.
10421     always_export_symbols_CXX=yes
10422     if test "$aix_use_runtimelinking" = yes; then
10423       # Warning - without using the other runtime loading flags (-brtl),
10424       # -berok will link without error, but may produce a broken library.
10425       allow_undefined_flag_CXX='-berok'
10426       # Determine the default libpath from the value encoded in an empty executable.
10427       cat >conftest.$ac_ext <<_ACEOF
10428 /* confdefs.h.  */
10429 _ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h.  */
10433
10434 int
10435 main ()
10436 {
10437
10438   ;
10439   return 0;
10440 }
10441 _ACEOF
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (ac_try="$ac_link"
10444 case "(($ac_try" in
10445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446   *) ac_try_echo=$ac_try;;
10447 esac
10448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449   (eval "$ac_link") 2>conftest.er1
10450   ac_status=$?
10451   grep -v '^ *+' conftest.er1 >conftest.err
10452   rm -f conftest.er1
10453   cat conftest.err >&5
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } && {
10456          test -z "$ac_cxx_werror_flag" ||
10457          test ! -s conftest.err
10458        } && test -s conftest$ac_exeext &&
10459        $as_test_x conftest$ac_exeext; then
10460
10461 lt_aix_libpath_sed='
10462     /Import File Strings/,/^$/ {
10463         /^0/ {
10464             s/^0  *\(.*\)$/\1/
10465             p
10466         }
10467     }'
10468 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 # Check for a 64-bit object if we didn't find anything.
10470 if test -z "$aix_libpath"; then
10471   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10472 fi
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477
10478 fi
10479
10480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10481       conftest$ac_exeext conftest.$ac_ext
10482 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10483
10484       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10485
10486       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"
10487      else
10488       if test "$host_cpu" = ia64; then
10489         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10490         allow_undefined_flag_CXX="-z nodefs"
10491         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"
10492       else
10493         # Determine the default libpath from the value encoded in an empty executable.
10494         cat >conftest.$ac_ext <<_ACEOF
10495 /* confdefs.h.  */
10496 _ACEOF
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h.  */
10500
10501 int
10502 main ()
10503 {
10504
10505   ;
10506   return 0;
10507 }
10508 _ACEOF
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (ac_try="$ac_link"
10511 case "(($ac_try" in
10512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513   *) ac_try_echo=$ac_try;;
10514 esac
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516   (eval "$ac_link") 2>conftest.er1
10517   ac_status=$?
10518   grep -v '^ *+' conftest.er1 >conftest.err
10519   rm -f conftest.er1
10520   cat conftest.err >&5
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); } && {
10523          test -z "$ac_cxx_werror_flag" ||
10524          test ! -s conftest.err
10525        } && test -s conftest$ac_exeext &&
10526        $as_test_x conftest$ac_exeext; then
10527
10528 lt_aix_libpath_sed='
10529     /Import File Strings/,/^$/ {
10530         /^0/ {
10531             s/^0  *\(.*\)$/\1/
10532             p
10533         }
10534     }'
10535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10536 # Check for a 64-bit object if we didn't find anything.
10537 if test -z "$aix_libpath"; then
10538   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10539 fi
10540 else
10541   echo "$as_me: failed program was:" >&5
10542 sed 's/^/| /' conftest.$ac_ext >&5
10543
10544
10545 fi
10546
10547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10548       conftest$ac_exeext conftest.$ac_ext
10549 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10550
10551         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10552         # Warning - without using the other run time loading flags,
10553         # -berok will link without error, but may produce a broken library.
10554         no_undefined_flag_CXX=' ${wl}-bernotok'
10555         allow_undefined_flag_CXX=' ${wl}-berok'
10556         # Exported symbols can be pulled into shared objects from archives
10557         whole_archive_flag_spec_CXX='$convenience'
10558         archive_cmds_need_lc_CXX=yes
10559         # This is similar to how AIX traditionally builds its shared libraries.
10560         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'
10561       fi
10562     fi
10563     ;;
10564
10565   beos*)
10566     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10567       allow_undefined_flag_CXX=unsupported
10568       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10569       # support --undefined.  This deserves some investigation.  FIXME
10570       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10571     else
10572       ld_shlibs_CXX=no
10573     fi
10574     ;;
10575
10576   chorus*)
10577     case $cc_basename in
10578       *)
10579         # FIXME: insert proper C++ library support
10580         ld_shlibs_CXX=no
10581         ;;
10582     esac
10583     ;;
10584
10585   cygwin* | mingw* | pw32*)
10586     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10587     # as there is no search path for DLLs.
10588     hardcode_libdir_flag_spec_CXX='-L$libdir'
10589     allow_undefined_flag_CXX=unsupported
10590     always_export_symbols_CXX=no
10591     enable_shared_with_static_runtimes_CXX=yes
10592
10593     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10594       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'
10595       # If the export-symbols file already is a .def file (1st line
10596       # is EXPORTS), use it as is; otherwise, prepend...
10597       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10598         cp $export_symbols $output_objdir/$soname.def;
10599       else
10600         echo EXPORTS > $output_objdir/$soname.def;
10601         cat $export_symbols >> $output_objdir/$soname.def;
10602       fi~
10603       $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'
10604     else
10605       ld_shlibs_CXX=no
10606     fi
10607   ;;
10608       darwin* | rhapsody*)
10609         case $host_os in
10610         rhapsody* | darwin1.[012])
10611          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10612          ;;
10613        *) # Darwin 1.3 on
10614          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10615            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10616          else
10617            case ${MACOSX_DEPLOYMENT_TARGET} in
10618              10.[012])
10619                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10620                ;;
10621              10.*)
10622                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10623                ;;
10624            esac
10625          fi
10626          ;;
10627         esac
10628       archive_cmds_need_lc_CXX=no
10629       hardcode_direct_CXX=no
10630       hardcode_automatic_CXX=yes
10631       hardcode_shlibpath_var_CXX=unsupported
10632       whole_archive_flag_spec_CXX=''
10633       link_all_deplibs_CXX=yes
10634
10635     if test "$GXX" = yes ; then
10636       lt_int_apple_cc_single_mod=no
10637       output_verbose_link_cmd='echo'
10638       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10639        lt_int_apple_cc_single_mod=yes
10640       fi
10641       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10642        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10643       else
10644           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'
10645         fi
10646         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10647         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10648           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10649             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10650           else
10651             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10652           fi
10653             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}'
10654       else
10655       case $cc_basename in
10656         xlc*)
10657          output_verbose_link_cmd='echo'
10658           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'
10659           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10660           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10661           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}'
10662           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}'
10663           ;;
10664        *)
10665          ld_shlibs_CXX=no
10666           ;;
10667       esac
10668       fi
10669         ;;
10670
10671   dgux*)
10672     case $cc_basename in
10673       ec++*)
10674         # FIXME: insert proper C++ library support
10675         ld_shlibs_CXX=no
10676         ;;
10677       ghcx*)
10678         # Green Hills C++ Compiler
10679         # FIXME: insert proper C++ library support
10680         ld_shlibs_CXX=no
10681         ;;
10682       *)
10683         # FIXME: insert proper C++ library support
10684         ld_shlibs_CXX=no
10685         ;;
10686     esac
10687     ;;
10688   freebsd[12]*)
10689     # C++ shared libraries reported to be fairly broken before switch to ELF
10690     ld_shlibs_CXX=no
10691     ;;
10692   freebsd-elf*)
10693     archive_cmds_need_lc_CXX=no
10694     ;;
10695   freebsd* | dragonfly*)
10696     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10697     # conventions
10698     ld_shlibs_CXX=yes
10699     ;;
10700   gnu*)
10701     ;;
10702   hpux9*)
10703     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10704     hardcode_libdir_separator_CXX=:
10705     export_dynamic_flag_spec_CXX='${wl}-E'
10706     hardcode_direct_CXX=yes
10707     hardcode_minus_L_CXX=yes # Not in the search PATH,
10708                                 # but as the default
10709                                 # location of the library.
10710
10711     case $cc_basename in
10712     CC*)
10713       # FIXME: insert proper C++ library support
10714       ld_shlibs_CXX=no
10715       ;;
10716     aCC*)
10717       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'
10718       # Commands to make compiler produce verbose output that lists
10719       # what "hidden" libraries, object files and flags are used when
10720       # linking a shared library.
10721       #
10722       # There doesn't appear to be a way to prevent this compiler from
10723       # explicitly linking system object files so we need to strip them
10724       # from the output so that they don't get included in the library
10725       # dependencies.
10726       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'
10727       ;;
10728     *)
10729       if test "$GXX" = yes; then
10730         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'
10731       else
10732         # FIXME: insert proper C++ library support
10733         ld_shlibs_CXX=no
10734       fi
10735       ;;
10736     esac
10737     ;;
10738   hpux10*|hpux11*)
10739     if test $with_gnu_ld = no; then
10740       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10741       hardcode_libdir_separator_CXX=:
10742
10743       case $host_cpu in
10744       hppa*64*|ia64*) ;;
10745       *)
10746         export_dynamic_flag_spec_CXX='${wl}-E'
10747         ;;
10748       esac
10749     fi
10750     case $host_cpu in
10751     hppa*64*|ia64*)
10752       hardcode_direct_CXX=no
10753       hardcode_shlibpath_var_CXX=no
10754       ;;
10755     *)
10756       hardcode_direct_CXX=yes
10757       hardcode_minus_L_CXX=yes # Not in the search PATH,
10758                                               # but as the default
10759                                               # location of the library.
10760       ;;
10761     esac
10762
10763     case $cc_basename in
10764       CC*)
10765         # FIXME: insert proper C++ library support
10766         ld_shlibs_CXX=no
10767         ;;
10768       aCC*)
10769         case $host_cpu in
10770         hppa*64*)
10771           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10772           ;;
10773         ia64*)
10774           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10775           ;;
10776         *)
10777           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10778           ;;
10779         esac
10780         # Commands to make compiler produce verbose output that lists
10781         # what "hidden" libraries, object files and flags are used when
10782         # linking a shared library.
10783         #
10784         # There doesn't appear to be a way to prevent this compiler from
10785         # explicitly linking system object files so we need to strip them
10786         # from the output so that they don't get included in the library
10787         # dependencies.
10788         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'
10789         ;;
10790       *)
10791         if test "$GXX" = yes; then
10792           if test $with_gnu_ld = no; then
10793             case $host_cpu in
10794             hppa*64*)
10795               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10796               ;;
10797             ia64*)
10798               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10799               ;;
10800             *)
10801               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'
10802               ;;
10803             esac
10804           fi
10805         else
10806           # FIXME: insert proper C++ library support
10807           ld_shlibs_CXX=no
10808         fi
10809         ;;
10810     esac
10811     ;;
10812   interix[3-9]*)
10813     hardcode_direct_CXX=no
10814     hardcode_shlibpath_var_CXX=no
10815     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10816     export_dynamic_flag_spec_CXX='${wl}-E'
10817     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10818     # Instead, shared libraries are loaded at an image base (0x10000000 by
10819     # default) and relocated if they conflict, which is a slow very memory
10820     # consuming and fragmenting process.  To avoid this, we pick a random,
10821     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10822     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10823     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'
10824     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'
10825     ;;
10826   irix5* | irix6*)
10827     case $cc_basename in
10828       CC*)
10829         # SGI C++
10830         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'
10831
10832         # Archives containing C++ object files must be created using
10833         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10834         # necessary to make sure instantiated templates are included
10835         # in the archive.
10836         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10837         ;;
10838       *)
10839         if test "$GXX" = yes; then
10840           if test "$with_gnu_ld" = no; then
10841             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'
10842           else
10843             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'
10844           fi
10845         fi
10846         link_all_deplibs_CXX=yes
10847         ;;
10848     esac
10849     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10850     hardcode_libdir_separator_CXX=:
10851     ;;
10852   linux* | k*bsd*-gnu)
10853     case $cc_basename in
10854       KCC*)
10855         # Kuck and Associates, Inc. (KAI) C++ Compiler
10856
10857         # KCC will only create a shared library if the output file
10858         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10859         # to its proper name (with version) after linking.
10860         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'
10861         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'
10862         # Commands to make compiler produce verbose output that lists
10863         # what "hidden" libraries, object files and flags are used when
10864         # linking a shared library.
10865         #
10866         # There doesn't appear to be a way to prevent this compiler from
10867         # explicitly linking system object files so we need to strip them
10868         # from the output so that they don't get included in the library
10869         # dependencies.
10870         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'
10871
10872         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10873         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10874
10875         # Archives containing C++ object files must be created using
10876         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10877         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10878         ;;
10879       icpc*)
10880         # Intel C++
10881         with_gnu_ld=yes
10882         # version 8.0 and above of icpc choke on multiply defined symbols
10883         # if we add $predep_objects and $postdep_objects, however 7.1 and
10884         # earlier do not add the objects themselves.
10885         case `$CC -V 2>&1` in
10886         *"Version 7."*)
10887           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888           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'
10889           ;;
10890         *)  # Version 8.0 or newer
10891           tmp_idyn=
10892           case $host_cpu in
10893             ia64*) tmp_idyn=' -i_dynamic';;
10894           esac
10895           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10896           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'
10897           ;;
10898         esac
10899         archive_cmds_need_lc_CXX=no
10900         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10901         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10902         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10903         ;;
10904       pgCC*)
10905         # Portland Group C++ compiler
10906         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10907         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'
10908
10909         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10910         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10911         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'
10912         ;;
10913       cxx*)
10914         # Compaq C++
10915         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10916         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'
10917
10918         runpath_var=LD_RUN_PATH
10919         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10920         hardcode_libdir_separator_CXX=:
10921
10922         # Commands to make compiler produce verbose output that lists
10923         # what "hidden" libraries, object files and flags are used when
10924         # linking a shared library.
10925         #
10926         # There doesn't appear to be a way to prevent this compiler from
10927         # explicitly linking system object files so we need to strip them
10928         # from the output so that they don't get included in the library
10929         # dependencies.
10930         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'
10931         ;;
10932       *)
10933         case `$CC -V 2>&1 | sed 5q` in
10934         *Sun\ C*)
10935           # Sun C++ 5.9
10936           no_undefined_flag_CXX=' -zdefs'
10937           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10938           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'
10939           hardcode_libdir_flag_spec_CXX='-R$libdir'
10940           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'
10941
10942           # Not sure whether something based on
10943           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10944           # would be better.
10945           output_verbose_link_cmd='echo'
10946
10947           # Archives containing C++ object files must be created using
10948           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10949           # necessary to make sure instantiated templates are included
10950           # in the archive.
10951           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10952           ;;
10953         esac
10954         ;;
10955     esac
10956     ;;
10957   lynxos*)
10958     # FIXME: insert proper C++ library support
10959     ld_shlibs_CXX=no
10960     ;;
10961   m88k*)
10962     # FIXME: insert proper C++ library support
10963     ld_shlibs_CXX=no
10964     ;;
10965   mvs*)
10966     case $cc_basename in
10967       cxx*)
10968         # FIXME: insert proper C++ library support
10969         ld_shlibs_CXX=no
10970         ;;
10971       *)
10972         # FIXME: insert proper C++ library support
10973         ld_shlibs_CXX=no
10974         ;;
10975     esac
10976     ;;
10977   netbsd*)
10978     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10979       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10980       wlarc=
10981       hardcode_libdir_flag_spec_CXX='-R$libdir'
10982       hardcode_direct_CXX=yes
10983       hardcode_shlibpath_var_CXX=no
10984     fi
10985     # Workaround some broken pre-1.5 toolchains
10986     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10987     ;;
10988   openbsd2*)
10989     # C++ shared libraries are fairly broken
10990     ld_shlibs_CXX=no
10991     ;;
10992   openbsd*)
10993     if test -f /usr/libexec/ld.so; then
10994       hardcode_direct_CXX=yes
10995       hardcode_shlibpath_var_CXX=no
10996       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10997       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10998       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10999         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11000         export_dynamic_flag_spec_CXX='${wl}-E'
11001         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11002       fi
11003       output_verbose_link_cmd='echo'
11004     else
11005       ld_shlibs_CXX=no
11006     fi
11007     ;;
11008   osf3*)
11009     case $cc_basename in
11010       KCC*)
11011         # Kuck and Associates, Inc. (KAI) C++ Compiler
11012
11013         # KCC will only create a shared library if the output file
11014         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11015         # to its proper name (with version) after linking.
11016         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'
11017
11018         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11019         hardcode_libdir_separator_CXX=:
11020
11021         # Archives containing C++ object files must be created using
11022         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11023         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11024
11025         ;;
11026       RCC*)
11027         # Rational C++ 2.4.1
11028         # FIXME: insert proper C++ library support
11029         ld_shlibs_CXX=no
11030         ;;
11031       cxx*)
11032         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11033         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'
11034
11035         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11036         hardcode_libdir_separator_CXX=:
11037
11038         # Commands to make compiler produce verbose output that lists
11039         # what "hidden" libraries, object files and flags are used when
11040         # linking a shared library.
11041         #
11042         # There doesn't appear to be a way to prevent this compiler from
11043         # explicitly linking system object files so we need to strip them
11044         # from the output so that they don't get included in the library
11045         # dependencies.
11046         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'
11047         ;;
11048       *)
11049         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11050           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11051           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'
11052
11053           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11054           hardcode_libdir_separator_CXX=:
11055
11056           # Commands to make compiler produce verbose output that lists
11057           # what "hidden" libraries, object files and flags are used when
11058           # linking a shared library.
11059           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11060
11061         else
11062           # FIXME: insert proper C++ library support
11063           ld_shlibs_CXX=no
11064         fi
11065         ;;
11066     esac
11067     ;;
11068   osf4* | osf5*)
11069     case $cc_basename in
11070       KCC*)
11071         # Kuck and Associates, Inc. (KAI) C++ Compiler
11072
11073         # KCC will only create a shared library if the output file
11074         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11075         # to its proper name (with version) after linking.
11076         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'
11077
11078         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11079         hardcode_libdir_separator_CXX=:
11080
11081         # Archives containing C++ object files must be created using
11082         # the KAI C++ compiler.
11083         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11084         ;;
11085       RCC*)
11086         # Rational C++ 2.4.1
11087         # FIXME: insert proper C++ library support
11088         ld_shlibs_CXX=no
11089         ;;
11090       cxx*)
11091         allow_undefined_flag_CXX=' -expect_unresolved \*'
11092         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'
11093         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11094           echo "-hidden">> $lib.exp~
11095           $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~
11096           $rm $lib.exp'
11097
11098         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11099         hardcode_libdir_separator_CXX=:
11100
11101         # Commands to make compiler produce verbose output that lists
11102         # what "hidden" libraries, object files and flags are used when
11103         # linking a shared library.
11104         #
11105         # There doesn't appear to be a way to prevent this compiler from
11106         # explicitly linking system object files so we need to strip them
11107         # from the output so that they don't get included in the library
11108         # dependencies.
11109         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'
11110         ;;
11111       *)
11112         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11113           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11114          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'
11115
11116           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11117           hardcode_libdir_separator_CXX=:
11118
11119           # Commands to make compiler produce verbose output that lists
11120           # what "hidden" libraries, object files and flags are used when
11121           # linking a shared library.
11122           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11123
11124         else
11125           # FIXME: insert proper C++ library support
11126           ld_shlibs_CXX=no
11127         fi
11128         ;;
11129     esac
11130     ;;
11131   psos*)
11132     # FIXME: insert proper C++ library support
11133     ld_shlibs_CXX=no
11134     ;;
11135   sunos4*)
11136     case $cc_basename in
11137       CC*)
11138         # Sun C++ 4.x
11139         # FIXME: insert proper C++ library support
11140         ld_shlibs_CXX=no
11141         ;;
11142       lcc*)
11143         # Lucid
11144         # FIXME: insert proper C++ library support
11145         ld_shlibs_CXX=no
11146         ;;
11147       *)
11148         # FIXME: insert proper C++ library support
11149         ld_shlibs_CXX=no
11150         ;;
11151     esac
11152     ;;
11153   solaris*)
11154     case $cc_basename in
11155       CC*)
11156         # Sun C++ 4.2, 5.x and Centerline C++
11157         archive_cmds_need_lc_CXX=yes
11158         no_undefined_flag_CXX=' -zdefs'
11159         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11160         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11161         $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'
11162
11163         hardcode_libdir_flag_spec_CXX='-R$libdir'
11164         hardcode_shlibpath_var_CXX=no
11165         case $host_os in
11166           solaris2.[0-5] | solaris2.[0-5].*) ;;
11167           *)
11168             # The compiler driver will combine and reorder linker options,
11169             # but understands `-z linker_flag'.
11170             # Supported since Solaris 2.6 (maybe 2.5.1?)
11171             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11172             ;;
11173         esac
11174         link_all_deplibs_CXX=yes
11175
11176         output_verbose_link_cmd='echo'
11177
11178         # Archives containing C++ object files must be created using
11179         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11180         # necessary to make sure instantiated templates are included
11181         # in the archive.
11182         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11183         ;;
11184       gcx*)
11185         # Green Hills C++ Compiler
11186         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11187
11188         # The C++ compiler must be used to create the archive.
11189         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11190         ;;
11191       *)
11192         # GNU C++ compiler with Solaris linker
11193         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11194           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11195           if $CC --version | grep -v '^2\.7' > /dev/null; then
11196             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11197             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11198                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11199
11200             # Commands to make compiler produce verbose output that lists
11201             # what "hidden" libraries, object files and flags are used when
11202             # linking a shared library.
11203             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11204           else
11205             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11206             # platform.
11207             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11208             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11209                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11210
11211             # Commands to make compiler produce verbose output that lists
11212             # what "hidden" libraries, object files and flags are used when
11213             # linking a shared library.
11214             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11215           fi
11216
11217           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11218           case $host_os in
11219           solaris2.[0-5] | solaris2.[0-5].*) ;;
11220           *)
11221             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11222             ;;
11223           esac
11224         fi
11225         ;;
11226     esac
11227     ;;
11228   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11229     no_undefined_flag_CXX='${wl}-z,text'
11230     archive_cmds_need_lc_CXX=no
11231     hardcode_shlibpath_var_CXX=no
11232     runpath_var='LD_RUN_PATH'
11233
11234     case $cc_basename in
11235       CC*)
11236         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11237         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11238         ;;
11239       *)
11240         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11241         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11242         ;;
11243     esac
11244     ;;
11245   sysv5* | sco3.2v5* | sco5v6*)
11246     # Note: We can NOT use -z defs as we might desire, because we do not
11247     # link with -lc, and that would cause any symbols used from libc to
11248     # always be unresolved, which means just about no library would
11249     # ever link correctly.  If we're not using GNU ld we use -z text
11250     # though, which does catch some bad symbols but isn't as heavy-handed
11251     # as -z defs.
11252     # For security reasons, it is highly recommended that you always
11253     # use absolute paths for naming shared libraries, and exclude the
11254     # DT_RUNPATH tag from executables and libraries.  But doing so
11255     # requires that you compile everything twice, which is a pain.
11256     # So that behaviour is only enabled if SCOABSPATH is set to a
11257     # non-empty value in the environment.  Most likely only useful for
11258     # creating official distributions of packages.
11259     # This is a hack until libtool officially supports absolute path
11260     # names for shared libraries.
11261     no_undefined_flag_CXX='${wl}-z,text'
11262     allow_undefined_flag_CXX='${wl}-z,nodefs'
11263     archive_cmds_need_lc_CXX=no
11264     hardcode_shlibpath_var_CXX=no
11265     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11266     hardcode_libdir_separator_CXX=':'
11267     link_all_deplibs_CXX=yes
11268     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11269     runpath_var='LD_RUN_PATH'
11270
11271     case $cc_basename in
11272       CC*)
11273         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11274         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11275         ;;
11276       *)
11277         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11278         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11279         ;;
11280     esac
11281     ;;
11282   tandem*)
11283     case $cc_basename in
11284       NCC*)
11285         # NonStop-UX NCC 3.20
11286         # FIXME: insert proper C++ library support
11287         ld_shlibs_CXX=no
11288         ;;
11289       *)
11290         # FIXME: insert proper C++ library support
11291         ld_shlibs_CXX=no
11292         ;;
11293     esac
11294     ;;
11295   vxworks*)
11296     # FIXME: insert proper C++ library support
11297     ld_shlibs_CXX=no
11298     ;;
11299   *)
11300     # FIXME: insert proper C++ library support
11301     ld_shlibs_CXX=no
11302     ;;
11303 esac
11304 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11305 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11306 test "$ld_shlibs_CXX" = no && can_build_shared=no
11307
11308 GCC_CXX="$GXX"
11309 LD_CXX="$LD"
11310
11311
11312 cat > conftest.$ac_ext <<EOF
11313 class Foo
11314 {
11315 public:
11316   Foo (void) { a = 0; }
11317 private:
11318   int a;
11319 };
11320 EOF
11321
11322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11323   (eval $ac_compile) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; then
11327   # Parse the compiler output and extract the necessary
11328   # objects, libraries and library flags.
11329
11330   # Sentinel used to keep track of whether or not we are before
11331   # the conftest object file.
11332   pre_test_object_deps_done=no
11333
11334   # The `*' in the case matches for architectures that use `case' in
11335   # $output_verbose_cmd can trigger glob expansion during the loop
11336   # eval without this substitution.
11337   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11338
11339   for p in `eval $output_verbose_link_cmd`; do
11340     case $p in
11341
11342     -L* | -R* | -l*)
11343        # Some compilers place space between "-{L,R}" and the path.
11344        # Remove the space.
11345        if test $p = "-L" \
11346           || test $p = "-R"; then
11347          prev=$p
11348          continue
11349        else
11350          prev=
11351        fi
11352
11353        if test "$pre_test_object_deps_done" = no; then
11354          case $p in
11355          -L* | -R*)
11356            # Internal compiler library paths should come after those
11357            # provided the user.  The postdeps already come after the
11358            # user supplied libs so there is no need to process them.
11359            if test -z "$compiler_lib_search_path_CXX"; then
11360              compiler_lib_search_path_CXX="${prev}${p}"
11361            else
11362              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11363            fi
11364            ;;
11365          # The "-l" case would never come before the object being
11366          # linked, so don't bother handling this case.
11367          esac
11368        else
11369          if test -z "$postdeps_CXX"; then
11370            postdeps_CXX="${prev}${p}"
11371          else
11372            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11373          fi
11374        fi
11375        ;;
11376
11377     *.$objext)
11378        # This assumes that the test object file only shows up
11379        # once in the compiler output.
11380        if test "$p" = "conftest.$objext"; then
11381          pre_test_object_deps_done=yes
11382          continue
11383        fi
11384
11385        if test "$pre_test_object_deps_done" = no; then
11386          if test -z "$predep_objects_CXX"; then
11387            predep_objects_CXX="$p"
11388          else
11389            predep_objects_CXX="$predep_objects_CXX $p"
11390          fi
11391        else
11392          if test -z "$postdep_objects_CXX"; then
11393            postdep_objects_CXX="$p"
11394          else
11395            postdep_objects_CXX="$postdep_objects_CXX $p"
11396          fi
11397        fi
11398        ;;
11399
11400     *) ;; # Ignore the rest.
11401
11402     esac
11403   done
11404
11405   # Clean up.
11406   rm -f a.out a.exe
11407 else
11408   echo "libtool.m4: error: problem compiling CXX test program"
11409 fi
11410
11411 $rm -f confest.$objext
11412
11413 # PORTME: override above test on systems where it is broken
11414 case $host_os in
11415 interix[3-9]*)
11416   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11417   # hack all around it, let's just trust "g++" to DTRT.
11418   predep_objects_CXX=
11419   postdep_objects_CXX=
11420   postdeps_CXX=
11421   ;;
11422
11423 linux*)
11424   case `$CC -V 2>&1 | sed 5q` in
11425   *Sun\ C*)
11426     # Sun C++ 5.9
11427     #
11428     # The more standards-conforming stlport4 library is
11429     # incompatible with the Cstd library. Avoid specifying
11430     # it if it's in CXXFLAGS. Ignore libCrun as
11431     # -library=stlport4 depends on it.
11432     case " $CXX $CXXFLAGS " in
11433     *" -library=stlport4 "*)
11434       solaris_use_stlport4=yes
11435       ;;
11436     esac
11437     if test "$solaris_use_stlport4" != yes; then
11438       postdeps_CXX='-library=Cstd -library=Crun'
11439     fi
11440     ;;
11441   esac
11442   ;;
11443
11444 solaris*)
11445   case $cc_basename in
11446   CC*)
11447     # The more standards-conforming stlport4 library is
11448     # incompatible with the Cstd library. Avoid specifying
11449     # it if it's in CXXFLAGS. Ignore libCrun as
11450     # -library=stlport4 depends on it.
11451     case " $CXX $CXXFLAGS " in
11452     *" -library=stlport4 "*)
11453       solaris_use_stlport4=yes
11454       ;;
11455     esac
11456
11457     # Adding this requires a known-good setup of shared libraries for
11458     # Sun compiler versions before 5.6, else PIC objects from an old
11459     # archive will be linked into the output, leading to subtle bugs.
11460     if test "$solaris_use_stlport4" != yes; then
11461       postdeps_CXX='-library=Cstd -library=Crun'
11462     fi
11463     ;;
11464   esac
11465   ;;
11466 esac
11467
11468
11469 case " $postdeps_CXX " in
11470 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11471 esac
11472
11473 lt_prog_compiler_wl_CXX=
11474 lt_prog_compiler_pic_CXX=
11475 lt_prog_compiler_static_CXX=
11476
11477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11479
11480   # C++ specific cases for pic, static, wl, etc.
11481   if test "$GXX" = yes; then
11482     lt_prog_compiler_wl_CXX='-Wl,'
11483     lt_prog_compiler_static_CXX='-static'
11484
11485     case $host_os in
11486     aix*)
11487       # All AIX code is PIC.
11488       if test "$host_cpu" = ia64; then
11489         # AIX 5 now supports IA64 processor
11490         lt_prog_compiler_static_CXX='-Bstatic'
11491       fi
11492       ;;
11493     amigaos*)
11494       # FIXME: we need at least 68020 code to build shared libraries, but
11495       # adding the `-m68020' flag to GCC prevents building anything better,
11496       # like `-m68040'.
11497       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11498       ;;
11499     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11500       # PIC is the default for these OSes.
11501       ;;
11502     mingw* | cygwin* | os2* | pw32*)
11503       # This hack is so that the source file can tell whether it is being
11504       # built for inclusion in a dll (and should export symbols for example).
11505       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11506       # (--disable-auto-import) libraries
11507       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11508       ;;
11509     darwin* | rhapsody*)
11510       # PIC is the default on this platform
11511       # Common symbols not allowed in MH_DYLIB files
11512       lt_prog_compiler_pic_CXX='-fno-common'
11513       ;;
11514     *djgpp*)
11515       # DJGPP does not support shared libraries at all
11516       lt_prog_compiler_pic_CXX=
11517       ;;
11518     interix[3-9]*)
11519       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11520       # Instead, we relocate shared libraries at runtime.
11521       ;;
11522     sysv4*MP*)
11523       if test -d /usr/nec; then
11524         lt_prog_compiler_pic_CXX=-Kconform_pic
11525       fi
11526       ;;
11527     hpux*)
11528       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11529       # not for PA HP-UX.
11530       case $host_cpu in
11531       hppa*64*|ia64*)
11532         ;;
11533       *)
11534         lt_prog_compiler_pic_CXX='-fPIC'
11535         ;;
11536       esac
11537       ;;
11538     *)
11539       lt_prog_compiler_pic_CXX='-fPIC'
11540       ;;
11541     esac
11542   else
11543     case $host_os in
11544       aix4* | aix5*)
11545         # All AIX code is PIC.
11546         if test "$host_cpu" = ia64; then
11547           # AIX 5 now supports IA64 processor
11548           lt_prog_compiler_static_CXX='-Bstatic'
11549         else
11550           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11551         fi
11552         ;;
11553       chorus*)
11554         case $cc_basename in
11555         cxch68*)
11556           # Green Hills C++ Compiler
11557           # _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"
11558           ;;
11559         esac
11560         ;;
11561        darwin*)
11562          # PIC is the default on this platform
11563          # Common symbols not allowed in MH_DYLIB files
11564          case $cc_basename in
11565            xlc*)
11566            lt_prog_compiler_pic_CXX='-qnocommon'
11567            lt_prog_compiler_wl_CXX='-Wl,'
11568            ;;
11569          esac
11570        ;;
11571       dgux*)
11572         case $cc_basename in
11573           ec++*)
11574             lt_prog_compiler_pic_CXX='-KPIC'
11575             ;;
11576           ghcx*)
11577             # Green Hills C++ Compiler
11578             lt_prog_compiler_pic_CXX='-pic'
11579             ;;
11580           *)
11581             ;;
11582         esac
11583         ;;
11584       freebsd* | dragonfly*)
11585         # FreeBSD uses GNU C++
11586         ;;
11587       hpux9* | hpux10* | hpux11*)
11588         case $cc_basename in
11589           CC*)
11590             lt_prog_compiler_wl_CXX='-Wl,'
11591             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11592             if test "$host_cpu" != ia64; then
11593               lt_prog_compiler_pic_CXX='+Z'
11594             fi
11595             ;;
11596           aCC*)
11597             lt_prog_compiler_wl_CXX='-Wl,'
11598             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11599             case $host_cpu in
11600             hppa*64*|ia64*)
11601               # +Z the default
11602               ;;
11603             *)
11604               lt_prog_compiler_pic_CXX='+Z'
11605               ;;
11606             esac
11607             ;;
11608           *)
11609             ;;
11610         esac
11611         ;;
11612       interix*)
11613         # This is c89, which is MS Visual C++ (no shared libs)
11614         # Anyone wants to do a port?
11615         ;;
11616       irix5* | irix6* | nonstopux*)
11617         case $cc_basename in
11618           CC*)
11619             lt_prog_compiler_wl_CXX='-Wl,'
11620             lt_prog_compiler_static_CXX='-non_shared'
11621             # CC pic flag -KPIC is the default.
11622             ;;
11623           *)
11624             ;;
11625         esac
11626         ;;
11627       linux* | k*bsd*-gnu)
11628         case $cc_basename in
11629           KCC*)
11630             # KAI C++ Compiler
11631             lt_prog_compiler_wl_CXX='--backend -Wl,'
11632             lt_prog_compiler_pic_CXX='-fPIC'
11633             ;;
11634           icpc* | ecpc*)
11635             # Intel C++
11636             lt_prog_compiler_wl_CXX='-Wl,'
11637             lt_prog_compiler_pic_CXX='-KPIC'
11638             lt_prog_compiler_static_CXX='-static'
11639             ;;
11640           pgCC*)
11641             # Portland Group C++ compiler.
11642             lt_prog_compiler_wl_CXX='-Wl,'
11643             lt_prog_compiler_pic_CXX='-fpic'
11644             lt_prog_compiler_static_CXX='-Bstatic'
11645             ;;
11646           cxx*)
11647             # Compaq C++
11648             # Make sure the PIC flag is empty.  It appears that all Alpha
11649             # Linux and Compaq Tru64 Unix objects are PIC.
11650             lt_prog_compiler_pic_CXX=
11651             lt_prog_compiler_static_CXX='-non_shared'
11652             ;;
11653           *)
11654             case `$CC -V 2>&1 | sed 5q` in
11655             *Sun\ C*)
11656               # Sun C++ 5.9
11657               lt_prog_compiler_pic_CXX='-KPIC'
11658               lt_prog_compiler_static_CXX='-Bstatic'
11659               lt_prog_compiler_wl_CXX='-Qoption ld '
11660               ;;
11661             esac
11662             ;;
11663         esac
11664         ;;
11665       lynxos*)
11666         ;;
11667       m88k*)
11668         ;;
11669       mvs*)
11670         case $cc_basename in
11671           cxx*)
11672             lt_prog_compiler_pic_CXX='-W c,exportall'
11673             ;;
11674           *)
11675             ;;
11676         esac
11677         ;;
11678       netbsd*)
11679         ;;
11680       osf3* | osf4* | osf5*)
11681         case $cc_basename in
11682           KCC*)
11683             lt_prog_compiler_wl_CXX='--backend -Wl,'
11684             ;;
11685           RCC*)
11686             # Rational C++ 2.4.1
11687             lt_prog_compiler_pic_CXX='-pic'
11688             ;;
11689           cxx*)
11690             # Digital/Compaq C++
11691             lt_prog_compiler_wl_CXX='-Wl,'
11692             # Make sure the PIC flag is empty.  It appears that all Alpha
11693             # Linux and Compaq Tru64 Unix objects are PIC.
11694             lt_prog_compiler_pic_CXX=
11695             lt_prog_compiler_static_CXX='-non_shared'
11696             ;;
11697           *)
11698             ;;
11699         esac
11700         ;;
11701       psos*)
11702         ;;
11703       solaris*)
11704         case $cc_basename in
11705           CC*)
11706             # Sun C++ 4.2, 5.x and Centerline C++
11707             lt_prog_compiler_pic_CXX='-KPIC'
11708             lt_prog_compiler_static_CXX='-Bstatic'
11709             lt_prog_compiler_wl_CXX='-Qoption ld '
11710             ;;
11711           gcx*)
11712             # Green Hills C++ Compiler
11713             lt_prog_compiler_pic_CXX='-PIC'
11714             ;;
11715           *)
11716             ;;
11717         esac
11718         ;;
11719       sunos4*)
11720         case $cc_basename in
11721           CC*)
11722             # Sun C++ 4.x
11723             lt_prog_compiler_pic_CXX='-pic'
11724             lt_prog_compiler_static_CXX='-Bstatic'
11725             ;;
11726           lcc*)
11727             # Lucid
11728             lt_prog_compiler_pic_CXX='-pic'
11729             ;;
11730           *)
11731             ;;
11732         esac
11733         ;;
11734       tandem*)
11735         case $cc_basename in
11736           NCC*)
11737             # NonStop-UX NCC 3.20
11738             lt_prog_compiler_pic_CXX='-KPIC'
11739             ;;
11740           *)
11741             ;;
11742         esac
11743         ;;
11744       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11745         case $cc_basename in
11746           CC*)
11747             lt_prog_compiler_wl_CXX='-Wl,'
11748             lt_prog_compiler_pic_CXX='-KPIC'
11749             lt_prog_compiler_static_CXX='-Bstatic'
11750             ;;
11751         esac
11752         ;;
11753       vxworks*)
11754         ;;
11755       *)
11756         lt_prog_compiler_can_build_shared_CXX=no
11757         ;;
11758     esac
11759   fi
11760
11761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11762 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11763
11764 #
11765 # Check to make sure the PIC flag actually works.
11766 #
11767 if test -n "$lt_prog_compiler_pic_CXX"; then
11768
11769 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11770 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11771 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11772   echo $ECHO_N "(cached) $ECHO_C" >&6
11773 else
11774   lt_prog_compiler_pic_works_CXX=no
11775   ac_outfile=conftest.$ac_objext
11776    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11777    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11778    # Insert the option either (1) after the last *FLAGS variable, or
11779    # (2) before a word containing "conftest.", or (3) at the end.
11780    # Note that $ac_compile itself does not contain backslashes and begins
11781    # with a dollar sign (not a hyphen), so the echo should work correctly.
11782    # The option is referenced via a variable to avoid confusing sed.
11783    lt_compile=`echo "$ac_compile" | $SED \
11784    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11785    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11786    -e 's:$: $lt_compiler_flag:'`
11787    (eval echo "\"\$as_me:11787: $lt_compile\"" >&5)
11788    (eval "$lt_compile" 2>conftest.err)
11789    ac_status=$?
11790    cat conftest.err >&5
11791    echo "$as_me:11791: \$? = $ac_status" >&5
11792    if (exit $ac_status) && test -s "$ac_outfile"; then
11793      # The compiler can only warn and ignore the option if not recognized
11794      # So say no if there are warnings other than the usual output.
11795      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11796      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11797      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11798        lt_prog_compiler_pic_works_CXX=yes
11799      fi
11800    fi
11801    $rm conftest*
11802
11803 fi
11804 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11805 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11806
11807 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11808     case $lt_prog_compiler_pic_CXX in
11809      "" | " "*) ;;
11810      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11811      esac
11812 else
11813     lt_prog_compiler_pic_CXX=
11814      lt_prog_compiler_can_build_shared_CXX=no
11815 fi
11816
11817 fi
11818 case $host_os in
11819   # For platforms which do not support PIC, -DPIC is meaningless:
11820   *djgpp*)
11821     lt_prog_compiler_pic_CXX=
11822     ;;
11823   *)
11824     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11825     ;;
11826 esac
11827
11828 #
11829 # Check to make sure the static flag actually works.
11830 #
11831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11834 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 else
11837   lt_prog_compiler_static_works_CXX=no
11838    save_LDFLAGS="$LDFLAGS"
11839    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11840    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11841    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11842      # The linker can only warn and ignore the option if not recognized
11843      # So say no if there are warnings
11844      if test -s conftest.err; then
11845        # Append any errors to the config.log.
11846        cat conftest.err 1>&5
11847        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11848        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11849        if diff conftest.exp conftest.er2 >/dev/null; then
11850          lt_prog_compiler_static_works_CXX=yes
11851        fi
11852      else
11853        lt_prog_compiler_static_works_CXX=yes
11854      fi
11855    fi
11856    $rm conftest*
11857    LDFLAGS="$save_LDFLAGS"
11858
11859 fi
11860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11861 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11862
11863 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11864     :
11865 else
11866     lt_prog_compiler_static_CXX=
11867 fi
11868
11869
11870 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11871 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11872 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875   lt_cv_prog_compiler_c_o_CXX=no
11876    $rm -r conftest 2>/dev/null
11877    mkdir conftest
11878    cd conftest
11879    mkdir out
11880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11881
11882    lt_compiler_flag="-o out/conftest2.$ac_objext"
11883    # Insert the option either (1) after the last *FLAGS variable, or
11884    # (2) before a word containing "conftest.", or (3) at the end.
11885    # Note that $ac_compile itself does not contain backslashes and begins
11886    # with a dollar sign (not a hyphen), so the echo should work correctly.
11887    lt_compile=`echo "$ac_compile" | $SED \
11888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11890    -e 's:$: $lt_compiler_flag:'`
11891    (eval echo "\"\$as_me:11891: $lt_compile\"" >&5)
11892    (eval "$lt_compile" 2>out/conftest.err)
11893    ac_status=$?
11894    cat out/conftest.err >&5
11895    echo "$as_me:11895: \$? = $ac_status" >&5
11896    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11897    then
11898      # The compiler can only warn and ignore the option if not recognized
11899      # So say no if there are warnings
11900      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11901      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11902      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11903        lt_cv_prog_compiler_c_o_CXX=yes
11904      fi
11905    fi
11906    chmod u+w . 2>&5
11907    $rm conftest*
11908    # SGI C++ compiler will create directory out/ii_files/ for
11909    # template instantiation
11910    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11911    $rm out/* && rmdir out
11912    cd ..
11913    rmdir conftest
11914    $rm conftest*
11915
11916 fi
11917 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11918 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11919
11920
11921 hard_links="nottested"
11922 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11923   # do not overwrite the value of need_locks provided by the user
11924   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11925 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11926   hard_links=yes
11927   $rm conftest*
11928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11929   touch conftest.a
11930   ln conftest.a conftest.b 2>&5 || hard_links=no
11931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11932   { echo "$as_me:$LINENO: result: $hard_links" >&5
11933 echo "${ECHO_T}$hard_links" >&6; }
11934   if test "$hard_links" = no; then
11935     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11936 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11937     need_locks=warn
11938   fi
11939 else
11940   need_locks=no
11941 fi
11942
11943 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11945
11946   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11947   case $host_os in
11948   aix4* | aix5*)
11949     # If we're using GNU nm, then we don't want the "-C" option.
11950     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11951     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11952       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'
11953     else
11954       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'
11955     fi
11956     ;;
11957   pw32*)
11958     export_symbols_cmds_CXX="$ltdll_cmds"
11959   ;;
11960   cygwin* | mingw*)
11961     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'
11962   ;;
11963   *)
11964     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11965   ;;
11966   esac
11967
11968 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11970 test "$ld_shlibs_CXX" = no && can_build_shared=no
11971
11972 #
11973 # Do we need to explicitly link libc?
11974 #
11975 case "x$archive_cmds_need_lc_CXX" in
11976 x|xyes)
11977   # Assume -lc should be added
11978   archive_cmds_need_lc_CXX=yes
11979
11980   if test "$enable_shared" = yes && test "$GCC" = yes; then
11981     case $archive_cmds_CXX in
11982     *'~'*)
11983       # FIXME: we may have to deal with multi-command sequences.
11984       ;;
11985     '$CC '*)
11986       # Test whether the compiler implicitly links with -lc since on some
11987       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11988       # to ld, don't add -lc before -lgcc.
11989       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11991       $rm conftest*
11992       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995   (eval $ac_compile) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } 2>conftest.err; then
11999         soname=conftest
12000         lib=conftest
12001         libobjs=conftest.$ac_objext
12002         deplibs=
12003         wl=$lt_prog_compiler_wl_CXX
12004         pic_flag=$lt_prog_compiler_pic_CXX
12005         compiler_flags=-v
12006         linker_flags=-v
12007         verstring=
12008         output_objdir=.
12009         libname=conftest
12010         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12011         allow_undefined_flag_CXX=
12012         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12013   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }
12017         then
12018           archive_cmds_need_lc_CXX=no
12019         else
12020           archive_cmds_need_lc_CXX=yes
12021         fi
12022         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12023       else
12024         cat conftest.err 1>&5
12025       fi
12026       $rm conftest*
12027       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12028 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12029       ;;
12030     esac
12031   fi
12032   ;;
12033 esac
12034
12035 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12037 library_names_spec=
12038 libname_spec='lib$name'
12039 soname_spec=
12040 shrext_cmds=".so"
12041 postinstall_cmds=
12042 postuninstall_cmds=
12043 finish_cmds=
12044 finish_eval=
12045 shlibpath_var=
12046 shlibpath_overrides_runpath=unknown
12047 version_type=none
12048 dynamic_linker="$host_os ld.so"
12049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12050
12051 need_lib_prefix=unknown
12052 hardcode_into_libs=no
12053
12054 # when you set need_version to no, make sure it does not cause -set_version
12055 # flags to be left without arguments
12056 need_version=unknown
12057
12058 case $host_os in
12059 aix3*)
12060   version_type=linux
12061   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12062   shlibpath_var=LIBPATH
12063
12064   # AIX 3 has no versioning support, so we append a major version to the name.
12065   soname_spec='${libname}${release}${shared_ext}$major'
12066   ;;
12067
12068 aix4* | aix5*)
12069   version_type=linux
12070   need_lib_prefix=no
12071   need_version=no
12072   hardcode_into_libs=yes
12073   if test "$host_cpu" = ia64; then
12074     # AIX 5 supports IA64
12075     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12076     shlibpath_var=LD_LIBRARY_PATH
12077   else
12078     # With GCC up to 2.95.x, collect2 would create an import file
12079     # for dependence libraries.  The import file would start with
12080     # the line `#! .'.  This would cause the generated library to
12081     # depend on `.', always an invalid library.  This was fixed in
12082     # development snapshots of GCC prior to 3.0.
12083     case $host_os in
12084       aix4 | aix4.[01] | aix4.[01].*)
12085       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12086            echo ' yes '
12087            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12088         :
12089       else
12090         can_build_shared=no
12091       fi
12092       ;;
12093     esac
12094     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12095     # soname into executable. Probably we can add versioning support to
12096     # collect2, so additional links can be useful in future.
12097     if test "$aix_use_runtimelinking" = yes; then
12098       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12099       # instead of lib<name>.a to let people know that these are not
12100       # typical AIX shared libraries.
12101       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12102     else
12103       # We preserve .a as extension for shared libraries through AIX4.2
12104       # and later when we are not doing run time linking.
12105       library_names_spec='${libname}${release}.a $libname.a'
12106       soname_spec='${libname}${release}${shared_ext}$major'
12107     fi
12108     shlibpath_var=LIBPATH
12109   fi
12110   ;;
12111
12112 amigaos*)
12113   library_names_spec='$libname.ixlibrary $libname.a'
12114   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12115   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'
12116   ;;
12117
12118 beos*)
12119   library_names_spec='${libname}${shared_ext}'
12120   dynamic_linker="$host_os ld.so"
12121   shlibpath_var=LIBRARY_PATH
12122   ;;
12123
12124 bsdi[45]*)
12125   version_type=linux
12126   need_version=no
12127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128   soname_spec='${libname}${release}${shared_ext}$major'
12129   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12130   shlibpath_var=LD_LIBRARY_PATH
12131   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12132   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12133   # the default ld.so.conf also contains /usr/contrib/lib and
12134   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12135   # libtool to hard-code these into programs
12136   ;;
12137
12138 cygwin* | mingw* | pw32*)
12139   version_type=windows
12140   shrext_cmds=".dll"
12141   need_version=no
12142   need_lib_prefix=no
12143
12144   case $GCC,$host_os in
12145   yes,cygwin* | yes,mingw* | yes,pw32*)
12146     library_names_spec='$libname.dll.a'
12147     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12148     postinstall_cmds='base_file=`basename \${file}`~
12149       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12150       dldir=$destdir/`dirname \$dlpath`~
12151       test -d \$dldir || mkdir -p \$dldir~
12152       $install_prog $dir/$dlname \$dldir/$dlname~
12153       chmod a+x \$dldir/$dlname'
12154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12155       dlpath=$dir/\$dldll~
12156        $rm \$dlpath'
12157     shlibpath_overrides_runpath=yes
12158
12159     case $host_os in
12160     cygwin*)
12161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12164       ;;
12165     mingw*)
12166       # MinGW DLLs use traditional 'lib' prefix
12167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12168       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12169       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12170         # It is most probably a Windows format PATH printed by
12171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12172         # path with ; separators, and with drive letters. We can handle the
12173         # drive letters (cygwin fileutils understands them), so leave them,
12174         # especially as we might pass files found there to a mingw objdump,
12175         # which wouldn't understand a cygwinified path. Ahh.
12176         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12177       else
12178         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12179       fi
12180       ;;
12181     pw32*)
12182       # pw32 DLLs use 'pw' prefix rather than 'lib'
12183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12184       ;;
12185     esac
12186     ;;
12187
12188   *)
12189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12190     ;;
12191   esac
12192   dynamic_linker='Win32 ld.exe'
12193   # FIXME: first we should search . and the directory the executable is in
12194   shlibpath_var=PATH
12195   ;;
12196
12197 darwin* | rhapsody*)
12198   dynamic_linker="$host_os dyld"
12199   version_type=darwin
12200   need_lib_prefix=no
12201   need_version=no
12202   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12203   soname_spec='${libname}${release}${major}$shared_ext'
12204   shlibpath_overrides_runpath=yes
12205   shlibpath_var=DYLD_LIBRARY_PATH
12206   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12207
12208   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12209   ;;
12210
12211 dgux*)
12212   version_type=linux
12213   need_lib_prefix=no
12214   need_version=no
12215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12216   soname_spec='${libname}${release}${shared_ext}$major'
12217   shlibpath_var=LD_LIBRARY_PATH
12218   ;;
12219
12220 freebsd1*)
12221   dynamic_linker=no
12222   ;;
12223
12224 freebsd* | dragonfly*)
12225   # DragonFly does not have aout.  When/if they implement a new
12226   # versioning mechanism, adjust this.
12227   if test -x /usr/bin/objformat; then
12228     objformat=`/usr/bin/objformat`
12229   else
12230     case $host_os in
12231     freebsd[123]*) objformat=aout ;;
12232     *) objformat=elf ;;
12233     esac
12234   fi
12235   version_type=freebsd-$objformat
12236   case $version_type in
12237     freebsd-elf*)
12238       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12239       need_version=no
12240       need_lib_prefix=no
12241       ;;
12242     freebsd-*)
12243       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12244       need_version=yes
12245       ;;
12246   esac
12247   shlibpath_var=LD_LIBRARY_PATH
12248   case $host_os in
12249   freebsd2*)
12250     shlibpath_overrides_runpath=yes
12251     ;;
12252   freebsd3.[01]* | freebsdelf3.[01]*)
12253     shlibpath_overrides_runpath=yes
12254     hardcode_into_libs=yes
12255     ;;
12256   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12257   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12258     shlibpath_overrides_runpath=no
12259     hardcode_into_libs=yes
12260     ;;
12261   *) # from 4.6 on, and DragonFly
12262     shlibpath_overrides_runpath=yes
12263     hardcode_into_libs=yes
12264     ;;
12265   esac
12266   ;;
12267
12268 gnu*)
12269   version_type=linux
12270   need_lib_prefix=no
12271   need_version=no
12272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12273   soname_spec='${libname}${release}${shared_ext}$major'
12274   shlibpath_var=LD_LIBRARY_PATH
12275   hardcode_into_libs=yes
12276   ;;
12277
12278 hpux9* | hpux10* | hpux11*)
12279   # Give a soname corresponding to the major version so that dld.sl refuses to
12280   # link against other versions.
12281   version_type=sunos
12282   need_lib_prefix=no
12283   need_version=no
12284   case $host_cpu in
12285   ia64*)
12286     shrext_cmds='.so'
12287     hardcode_into_libs=yes
12288     dynamic_linker="$host_os dld.so"
12289     shlibpath_var=LD_LIBRARY_PATH
12290     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12292     soname_spec='${libname}${release}${shared_ext}$major'
12293     if test "X$HPUX_IA64_MODE" = X32; then
12294       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12295     else
12296       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12297     fi
12298     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12299     ;;
12300    hppa*64*)
12301      shrext_cmds='.sl'
12302      hardcode_into_libs=yes
12303      dynamic_linker="$host_os dld.sl"
12304      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12305      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307      soname_spec='${libname}${release}${shared_ext}$major'
12308      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12309      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12310      ;;
12311    *)
12312     shrext_cmds='.sl'
12313     dynamic_linker="$host_os dld.sl"
12314     shlibpath_var=SHLIB_PATH
12315     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12317     soname_spec='${libname}${release}${shared_ext}$major'
12318     ;;
12319   esac
12320   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12321   postinstall_cmds='chmod 555 $lib'
12322   ;;
12323
12324 interix[3-9]*)
12325   version_type=linux
12326   need_lib_prefix=no
12327   need_version=no
12328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12329   soname_spec='${libname}${release}${shared_ext}$major'
12330   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12331   shlibpath_var=LD_LIBRARY_PATH
12332   shlibpath_overrides_runpath=no
12333   hardcode_into_libs=yes
12334   ;;
12335
12336 irix5* | irix6* | nonstopux*)
12337   case $host_os in
12338     nonstopux*) version_type=nonstopux ;;
12339     *)
12340         if test "$lt_cv_prog_gnu_ld" = yes; then
12341                 version_type=linux
12342         else
12343                 version_type=irix
12344         fi ;;
12345   esac
12346   need_lib_prefix=no
12347   need_version=no
12348   soname_spec='${libname}${release}${shared_ext}$major'
12349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12350   case $host_os in
12351   irix5* | nonstopux*)
12352     libsuff= shlibsuff=
12353     ;;
12354   *)
12355     case $LD in # libtool.m4 will add one of these switches to LD
12356     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12357       libsuff= shlibsuff= libmagic=32-bit;;
12358     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12359       libsuff=32 shlibsuff=N32 libmagic=N32;;
12360     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12361       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12362     *) libsuff= shlibsuff= libmagic=never-match;;
12363     esac
12364     ;;
12365   esac
12366   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12367   shlibpath_overrides_runpath=no
12368   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12369   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12370   hardcode_into_libs=yes
12371   ;;
12372
12373 # No shared lib support for Linux oldld, aout, or coff.
12374 linux*oldld* | linux*aout* | linux*coff*)
12375   dynamic_linker=no
12376   ;;
12377
12378 # This must be Linux ELF.
12379 linux* | k*bsd*-gnu)
12380   version_type=linux
12381   need_lib_prefix=no
12382   need_version=no
12383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384   soname_spec='${libname}${release}${shared_ext}$major'
12385   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12386   shlibpath_var=LD_LIBRARY_PATH
12387   shlibpath_overrides_runpath=no
12388   # This implies no fast_install, which is unacceptable.
12389   # Some rework will be needed to allow for fast_install
12390   # before this can be enabled.
12391   hardcode_into_libs=yes
12392
12393   # Append ld.so.conf contents to the search path
12394   if test -f /etc/ld.so.conf; then
12395     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' ' '`
12396     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12397   fi
12398
12399   # We used to test for /lib/ld.so.1 and disable shared libraries on
12400   # powerpc, because MkLinux only supported shared libraries with the
12401   # GNU dynamic linker.  Since this was broken with cross compilers,
12402   # most powerpc-linux boxes support dynamic linking these days and
12403   # people can always --disable-shared, the test was removed, and we
12404   # assume the GNU/Linux dynamic linker is in use.
12405   dynamic_linker='GNU/Linux ld.so'
12406   ;;
12407
12408 netbsd*)
12409   version_type=sunos
12410   need_lib_prefix=no
12411   need_version=no
12412   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12414     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12415     dynamic_linker='NetBSD (a.out) ld.so'
12416   else
12417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12418     soname_spec='${libname}${release}${shared_ext}$major'
12419     dynamic_linker='NetBSD ld.elf_so'
12420   fi
12421   shlibpath_var=LD_LIBRARY_PATH
12422   shlibpath_overrides_runpath=yes
12423   hardcode_into_libs=yes
12424   ;;
12425
12426 newsos6)
12427   version_type=linux
12428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429   shlibpath_var=LD_LIBRARY_PATH
12430   shlibpath_overrides_runpath=yes
12431   ;;
12432
12433 nto-qnx*)
12434   version_type=linux
12435   need_lib_prefix=no
12436   need_version=no
12437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12438   soname_spec='${libname}${release}${shared_ext}$major'
12439   shlibpath_var=LD_LIBRARY_PATH
12440   shlibpath_overrides_runpath=yes
12441   ;;
12442
12443 openbsd*)
12444   version_type=sunos
12445   sys_lib_dlsearch_path_spec="/usr/lib"
12446   need_lib_prefix=no
12447   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12448   case $host_os in
12449     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12450     *)                         need_version=no  ;;
12451   esac
12452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12454   shlibpath_var=LD_LIBRARY_PATH
12455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12456     case $host_os in
12457       openbsd2.[89] | openbsd2.[89].*)
12458         shlibpath_overrides_runpath=no
12459         ;;
12460       *)
12461         shlibpath_overrides_runpath=yes
12462         ;;
12463       esac
12464   else
12465     shlibpath_overrides_runpath=yes
12466   fi
12467   ;;
12468
12469 os2*)
12470   libname_spec='$name'
12471   shrext_cmds=".dll"
12472   need_lib_prefix=no
12473   library_names_spec='$libname${shared_ext} $libname.a'
12474   dynamic_linker='OS/2 ld.exe'
12475   shlibpath_var=LIBPATH
12476   ;;
12477
12478 osf3* | osf4* | osf5*)
12479   version_type=osf
12480   need_lib_prefix=no
12481   need_version=no
12482   soname_spec='${libname}${release}${shared_ext}$major'
12483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12484   shlibpath_var=LD_LIBRARY_PATH
12485   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12486   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12487   ;;
12488
12489 rdos*)
12490   dynamic_linker=no
12491   ;;
12492
12493 solaris*)
12494   version_type=linux
12495   need_lib_prefix=no
12496   need_version=no
12497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498   soname_spec='${libname}${release}${shared_ext}$major'
12499   shlibpath_var=LD_LIBRARY_PATH
12500   shlibpath_overrides_runpath=yes
12501   hardcode_into_libs=yes
12502   # ldd complains unless libraries are executable
12503   postinstall_cmds='chmod +x $lib'
12504   ;;
12505
12506 sunos4*)
12507   version_type=sunos
12508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12509   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12510   shlibpath_var=LD_LIBRARY_PATH
12511   shlibpath_overrides_runpath=yes
12512   if test "$with_gnu_ld" = yes; then
12513     need_lib_prefix=no
12514   fi
12515   need_version=yes
12516   ;;
12517
12518 sysv4 | sysv4.3*)
12519   version_type=linux
12520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12521   soname_spec='${libname}${release}${shared_ext}$major'
12522   shlibpath_var=LD_LIBRARY_PATH
12523   case $host_vendor in
12524     sni)
12525       shlibpath_overrides_runpath=no
12526       need_lib_prefix=no
12527       export_dynamic_flag_spec='${wl}-Blargedynsym'
12528       runpath_var=LD_RUN_PATH
12529       ;;
12530     siemens)
12531       need_lib_prefix=no
12532       ;;
12533     motorola)
12534       need_lib_prefix=no
12535       need_version=no
12536       shlibpath_overrides_runpath=no
12537       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12538       ;;
12539   esac
12540   ;;
12541
12542 sysv4*MP*)
12543   if test -d /usr/nec ;then
12544     version_type=linux
12545     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12546     soname_spec='$libname${shared_ext}.$major'
12547     shlibpath_var=LD_LIBRARY_PATH
12548   fi
12549   ;;
12550
12551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12552   version_type=freebsd-elf
12553   need_lib_prefix=no
12554   need_version=no
12555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12556   soname_spec='${libname}${release}${shared_ext}$major'
12557   shlibpath_var=LD_LIBRARY_PATH
12558   hardcode_into_libs=yes
12559   if test "$with_gnu_ld" = yes; then
12560     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12561     shlibpath_overrides_runpath=no
12562   else
12563     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12564     shlibpath_overrides_runpath=yes
12565     case $host_os in
12566       sco3.2v5*)
12567         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12568         ;;
12569     esac
12570   fi
12571   sys_lib_dlsearch_path_spec='/usr/lib'
12572   ;;
12573
12574 uts4*)
12575   version_type=linux
12576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12577   soname_spec='${libname}${release}${shared_ext}$major'
12578   shlibpath_var=LD_LIBRARY_PATH
12579   ;;
12580
12581 *)
12582   dynamic_linker=no
12583   ;;
12584 esac
12585 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12586 echo "${ECHO_T}$dynamic_linker" >&6; }
12587 test "$dynamic_linker" = no && can_build_shared=no
12588
12589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12590 if test "$GCC" = yes; then
12591   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12592 fi
12593
12594 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12595 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12596 hardcode_action_CXX=
12597 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12598    test -n "$runpath_var_CXX" || \
12599    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12600
12601   # We can hardcode non-existant directories.
12602   if test "$hardcode_direct_CXX" != no &&
12603      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12604      # have to relink, otherwise we might link with an installed library
12605      # when we should be linking with a yet-to-be-installed one
12606      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12607      test "$hardcode_minus_L_CXX" != no; then
12608     # Linking always hardcodes the temporary library directory.
12609     hardcode_action_CXX=relink
12610   else
12611     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12612     hardcode_action_CXX=immediate
12613   fi
12614 else
12615   # We cannot hardcode anything, or else we can only hardcode existing
12616   # directories.
12617   hardcode_action_CXX=unsupported
12618 fi
12619 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12620 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12621
12622 if test "$hardcode_action_CXX" = relink; then
12623   # Fast installation is not supported
12624   enable_fast_install=no
12625 elif test "$shlibpath_overrides_runpath" = yes ||
12626      test "$enable_shared" = no; then
12627   # Fast installation is not necessary
12628   enable_fast_install=needless
12629 fi
12630
12631
12632 # The else clause should only fire when bootstrapping the
12633 # libtool distribution, otherwise you forgot to ship ltmain.sh
12634 # with your package, and you will get complaints that there are
12635 # no rules to generate ltmain.sh.
12636 if test -f "$ltmain"; then
12637   # See if we are running on zsh, and set the options which allow our commands through
12638   # without removal of \ escapes.
12639   if test -n "${ZSH_VERSION+set}" ; then
12640     setopt NO_GLOB_SUBST
12641   fi
12642   # Now quote all the things that may contain metacharacters while being
12643   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12644   # variables and quote the copies for generation of the libtool script.
12645   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12646     SED SHELL STRIP \
12647     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12648     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12649     deplibs_check_method reload_flag reload_cmds need_locks \
12650     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12651     lt_cv_sys_global_symbol_to_c_name_address \
12652     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12653     old_postinstall_cmds old_postuninstall_cmds \
12654     compiler_CXX \
12655     CC_CXX \
12656     LD_CXX \
12657     lt_prog_compiler_wl_CXX \
12658     lt_prog_compiler_pic_CXX \
12659     lt_prog_compiler_static_CXX \
12660     lt_prog_compiler_no_builtin_flag_CXX \
12661     export_dynamic_flag_spec_CXX \
12662     thread_safe_flag_spec_CXX \
12663     whole_archive_flag_spec_CXX \
12664     enable_shared_with_static_runtimes_CXX \
12665     old_archive_cmds_CXX \
12666     old_archive_from_new_cmds_CXX \
12667     predep_objects_CXX \
12668     postdep_objects_CXX \
12669     predeps_CXX \
12670     postdeps_CXX \
12671     compiler_lib_search_path_CXX \
12672     archive_cmds_CXX \
12673     archive_expsym_cmds_CXX \
12674     postinstall_cmds_CXX \
12675     postuninstall_cmds_CXX \
12676     old_archive_from_expsyms_cmds_CXX \
12677     allow_undefined_flag_CXX \
12678     no_undefined_flag_CXX \
12679     export_symbols_cmds_CXX \
12680     hardcode_libdir_flag_spec_CXX \
12681     hardcode_libdir_flag_spec_ld_CXX \
12682     hardcode_libdir_separator_CXX \
12683     hardcode_automatic_CXX \
12684     module_cmds_CXX \
12685     module_expsym_cmds_CXX \
12686     lt_cv_prog_compiler_c_o_CXX \
12687     fix_srcfile_path_CXX \
12688     exclude_expsyms_CXX \
12689     include_expsyms_CXX; do
12690
12691     case $var in
12692     old_archive_cmds_CXX | \
12693     old_archive_from_new_cmds_CXX | \
12694     archive_cmds_CXX | \
12695     archive_expsym_cmds_CXX | \
12696     module_cmds_CXX | \
12697     module_expsym_cmds_CXX | \
12698     old_archive_from_expsyms_cmds_CXX | \
12699     export_symbols_cmds_CXX | \
12700     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12701     postinstall_cmds | postuninstall_cmds | \
12702     old_postinstall_cmds | old_postuninstall_cmds | \
12703     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12704       # Double-quote double-evaled strings.
12705       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12706       ;;
12707     *)
12708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12709       ;;
12710     esac
12711   done
12712
12713   case $lt_echo in
12714   *'\$0 --fallback-echo"')
12715     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12716     ;;
12717   esac
12718
12719 cfgfile="$ofile"
12720
12721   cat <<__EOF__ >> "$cfgfile"
12722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12723
12724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12725
12726 # Shell to use when invoking shell scripts.
12727 SHELL=$lt_SHELL
12728
12729 # Whether or not to build shared libraries.
12730 build_libtool_libs=$enable_shared
12731
12732 # Whether or not to build static libraries.
12733 build_old_libs=$enable_static
12734
12735 # Whether or not to add -lc for building shared libraries.
12736 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12737
12738 # Whether or not to disallow shared libs when runtime libs are static
12739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12740
12741 # Whether or not to optimize for fast installation.
12742 fast_install=$enable_fast_install
12743
12744 # The host system.
12745 host_alias=$host_alias
12746 host=$host
12747 host_os=$host_os
12748
12749 # The build system.
12750 build_alias=$build_alias
12751 build=$build
12752 build_os=$build_os
12753
12754 # An echo program that does not interpret backslashes.
12755 echo=$lt_echo
12756
12757 # The archiver.
12758 AR=$lt_AR
12759 AR_FLAGS=$lt_AR_FLAGS
12760
12761 # A C compiler.
12762 LTCC=$lt_LTCC
12763
12764 # LTCC compiler flags.
12765 LTCFLAGS=$lt_LTCFLAGS
12766
12767 # A language-specific compiler.
12768 CC=$lt_compiler_CXX
12769
12770 # Is the compiler the GNU C compiler?
12771 with_gcc=$GCC_CXX
12772
12773 # An ERE matcher.
12774 EGREP=$lt_EGREP
12775
12776 # The linker used to build libraries.
12777 LD=$lt_LD_CXX
12778
12779 # Whether we need hard or soft links.
12780 LN_S=$lt_LN_S
12781
12782 # A BSD-compatible nm program.
12783 NM=$lt_NM
12784
12785 # A symbol stripping program
12786 STRIP=$lt_STRIP
12787
12788 # Used to examine libraries when file_magic_cmd begins "file"
12789 MAGIC_CMD=$MAGIC_CMD
12790
12791 # Used on cygwin: DLL creation program.
12792 DLLTOOL="$DLLTOOL"
12793
12794 # Used on cygwin: object dumper.
12795 OBJDUMP="$OBJDUMP"
12796
12797 # Used on cygwin: assembler.
12798 AS="$AS"
12799
12800 # The name of the directory that contains temporary libtool files.
12801 objdir=$objdir
12802
12803 # How to create reloadable object files.
12804 reload_flag=$lt_reload_flag
12805 reload_cmds=$lt_reload_cmds
12806
12807 # How to pass a linker flag through the compiler.
12808 wl=$lt_lt_prog_compiler_wl_CXX
12809
12810 # Object file suffix (normally "o").
12811 objext="$ac_objext"
12812
12813 # Old archive suffix (normally "a").
12814 libext="$libext"
12815
12816 # Shared library suffix (normally ".so").
12817 shrext_cmds='$shrext_cmds'
12818
12819 # Executable file suffix (normally "").
12820 exeext="$exeext"
12821
12822 # Additional compiler flags for building library objects.
12823 pic_flag=$lt_lt_prog_compiler_pic_CXX
12824 pic_mode=$pic_mode
12825
12826 # What is the maximum length of a command?
12827 max_cmd_len=$lt_cv_sys_max_cmd_len
12828
12829 # Does compiler simultaneously support -c and -o options?
12830 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12831
12832 # Must we lock files when doing compilation?
12833 need_locks=$lt_need_locks
12834
12835 # Do we need the lib prefix for modules?
12836 need_lib_prefix=$need_lib_prefix
12837
12838 # Do we need a version for libraries?
12839 need_version=$need_version
12840
12841 # Whether dlopen is supported.
12842 dlopen_support=$enable_dlopen
12843
12844 # Whether dlopen of programs is supported.
12845 dlopen_self=$enable_dlopen_self
12846
12847 # Whether dlopen of statically linked programs is supported.
12848 dlopen_self_static=$enable_dlopen_self_static
12849
12850 # Compiler flag to prevent dynamic linking.
12851 link_static_flag=$lt_lt_prog_compiler_static_CXX
12852
12853 # Compiler flag to turn off builtin functions.
12854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12855
12856 # Compiler flag to allow reflexive dlopens.
12857 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12858
12859 # Compiler flag to generate shared objects directly from archives.
12860 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12861
12862 # Compiler flag to generate thread-safe objects.
12863 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12864
12865 # Library versioning type.
12866 version_type=$version_type
12867
12868 # Format of library name prefix.
12869 libname_spec=$lt_libname_spec
12870
12871 # List of archive names.  First name is the real one, the rest are links.
12872 # The last name is the one that the linker finds with -lNAME.
12873 library_names_spec=$lt_library_names_spec
12874
12875 # The coded name of the library, if different from the real name.
12876 soname_spec=$lt_soname_spec
12877
12878 # Commands used to build and install an old-style archive.
12879 RANLIB=$lt_RANLIB
12880 old_archive_cmds=$lt_old_archive_cmds_CXX
12881 old_postinstall_cmds=$lt_old_postinstall_cmds
12882 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12883
12884 # Create an old-style archive from a shared archive.
12885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12886
12887 # Create a temporary old-style archive to link instead of a shared archive.
12888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12889
12890 # Commands used to build and install a shared archive.
12891 archive_cmds=$lt_archive_cmds_CXX
12892 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12893 postinstall_cmds=$lt_postinstall_cmds
12894 postuninstall_cmds=$lt_postuninstall_cmds
12895
12896 # Commands used to build a loadable module (assumed same as above if empty)
12897 module_cmds=$lt_module_cmds_CXX
12898 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12899
12900 # Commands to strip libraries.
12901 old_striplib=$lt_old_striplib
12902 striplib=$lt_striplib
12903
12904 # Dependencies to place before the objects being linked to create a
12905 # shared library.
12906 predep_objects=$lt_predep_objects_CXX
12907
12908 # Dependencies to place after the objects being linked to create a
12909 # shared library.
12910 postdep_objects=$lt_postdep_objects_CXX
12911
12912 # Dependencies to place before the objects being linked to create a
12913 # shared library.
12914 predeps=$lt_predeps_CXX
12915
12916 # Dependencies to place after the objects being linked to create a
12917 # shared library.
12918 postdeps=$lt_postdeps_CXX
12919
12920 # The library search path used internally by the compiler when linking
12921 # a shared library.
12922 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12923
12924 # Method to check whether dependent libraries are shared objects.
12925 deplibs_check_method=$lt_deplibs_check_method
12926
12927 # Command to use when deplibs_check_method == file_magic.
12928 file_magic_cmd=$lt_file_magic_cmd
12929
12930 # Flag that allows shared libraries with undefined symbols to be built.
12931 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12932
12933 # Flag that forces no undefined symbols.
12934 no_undefined_flag=$lt_no_undefined_flag_CXX
12935
12936 # Commands used to finish a libtool library installation in a directory.
12937 finish_cmds=$lt_finish_cmds
12938
12939 # Same as above, but a single script fragment to be evaled but not shown.
12940 finish_eval=$lt_finish_eval
12941
12942 # Take the output of nm and produce a listing of raw symbols and C names.
12943 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12944
12945 # Transform the output of nm in a proper C declaration
12946 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12947
12948 # Transform the output of nm in a C name address pair
12949 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12950
12951 # This is the shared library runtime path variable.
12952 runpath_var=$runpath_var
12953
12954 # This is the shared library path variable.
12955 shlibpath_var=$shlibpath_var
12956
12957 # Is shlibpath searched before the hard-coded library search path?
12958 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12959
12960 # How to hardcode a shared library path into an executable.
12961 hardcode_action=$hardcode_action_CXX
12962
12963 # Whether we should hardcode library paths into libraries.
12964 hardcode_into_libs=$hardcode_into_libs
12965
12966 # Flag to hardcode \$libdir into a binary during linking.
12967 # This must work even if \$libdir does not exist.
12968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12969
12970 # If ld is used when linking, flag to hardcode \$libdir into
12971 # a binary during linking. This must work even if \$libdir does
12972 # not exist.
12973 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12974
12975 # Whether we need a single -rpath flag with a separated argument.
12976 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12977
12978 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12979 # resulting binary.
12980 hardcode_direct=$hardcode_direct_CXX
12981
12982 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12983 # resulting binary.
12984 hardcode_minus_L=$hardcode_minus_L_CXX
12985
12986 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12987 # the resulting binary.
12988 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12989
12990 # Set to yes if building a shared library automatically hardcodes DIR into the library
12991 # and all subsequent libraries and executables linked against it.
12992 hardcode_automatic=$hardcode_automatic_CXX
12993
12994 # Variables whose values should be saved in libtool wrapper scripts and
12995 # restored at relink time.
12996 variables_saved_for_relink="$variables_saved_for_relink"
12997
12998 # Whether libtool must link a program against all its dependency libraries.
12999 link_all_deplibs=$link_all_deplibs_CXX
13000
13001 # Compile-time system search path for libraries
13002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13003
13004 # Run-time system search path for libraries
13005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13006
13007 # Fix the shell variable \$srcfile for the compiler.
13008 fix_srcfile_path=$lt_fix_srcfile_path
13009
13010 # Set to yes if exported symbols are required.
13011 always_export_symbols=$always_export_symbols_CXX
13012
13013 # The commands to list exported symbols.
13014 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13015
13016 # The commands to extract the exported symbol list from a shared archive.
13017 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13018
13019 # Symbols that should not be listed in the preloaded symbols.
13020 exclude_expsyms=$lt_exclude_expsyms_CXX
13021
13022 # Symbols that must always be exported.
13023 include_expsyms=$lt_include_expsyms_CXX
13024
13025 # ### END LIBTOOL TAG CONFIG: $tagname
13026
13027 __EOF__
13028
13029
13030 else
13031   # If there is no Makefile yet, we rely on a make rule to execute
13032   # `config.status --recheck' to rerun these tests and create the
13033   # libtool script then.
13034   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13035   if test -f "$ltmain_in"; then
13036     test -f Makefile && make "$ltmain"
13037   fi
13038 fi
13039
13040
13041 ac_ext=c
13042 ac_cpp='$CPP $CPPFLAGS'
13043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046
13047 CC=$lt_save_CC
13048 LDCXX=$LD
13049 LD=$lt_save_LD
13050 GCC=$lt_save_GCC
13051 with_gnu_ldcxx=$with_gnu_ld
13052 with_gnu_ld=$lt_save_with_gnu_ld
13053 lt_cv_path_LDCXX=$lt_cv_path_LD
13054 lt_cv_path_LD=$lt_save_path_LD
13055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13057
13058         else
13059           tagname=""
13060         fi
13061         ;;
13062
13063       F77)
13064         if test -n "$F77" && test "X$F77" != "Xno"; then
13065
13066 ac_ext=f
13067 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13068 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13069 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13070
13071
13072 archive_cmds_need_lc_F77=no
13073 allow_undefined_flag_F77=
13074 always_export_symbols_F77=no
13075 archive_expsym_cmds_F77=
13076 export_dynamic_flag_spec_F77=
13077 hardcode_direct_F77=no
13078 hardcode_libdir_flag_spec_F77=
13079 hardcode_libdir_flag_spec_ld_F77=
13080 hardcode_libdir_separator_F77=
13081 hardcode_minus_L_F77=no
13082 hardcode_automatic_F77=no
13083 module_cmds_F77=
13084 module_expsym_cmds_F77=
13085 link_all_deplibs_F77=unknown
13086 old_archive_cmds_F77=$old_archive_cmds
13087 no_undefined_flag_F77=
13088 whole_archive_flag_spec_F77=
13089 enable_shared_with_static_runtimes_F77=no
13090
13091 # Source file extension for f77 test sources.
13092 ac_ext=f
13093
13094 # Object file extension for compiled f77 test sources.
13095 objext=o
13096 objext_F77=$objext
13097
13098 # Code to be used in simple compile tests
13099 lt_simple_compile_test_code="\
13100       subroutine t
13101       return
13102       end
13103 "
13104
13105 # Code to be used in simple link tests
13106 lt_simple_link_test_code="\
13107       program t
13108       end
13109 "
13110
13111 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13112
13113 # If no C compiler was specified, use CC.
13114 LTCC=${LTCC-"$CC"}
13115
13116 # If no C compiler flags were specified, use CFLAGS.
13117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13118
13119 # Allow CC to be a program name with arguments.
13120 compiler=$CC
13121
13122
13123 # save warnings/boilerplate of simple test code
13124 ac_outfile=conftest.$ac_objext
13125 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13127 _lt_compiler_boilerplate=`cat conftest.err`
13128 $rm conftest*
13129
13130 ac_outfile=conftest.$ac_objext
13131 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13133 _lt_linker_boilerplate=`cat conftest.err`
13134 $rm conftest*
13135
13136
13137 # Allow CC to be a program name with arguments.
13138 lt_save_CC="$CC"
13139 CC=${F77-"f77"}
13140 compiler=$CC
13141 compiler_F77=$CC
13142 for cc_temp in $compiler""; do
13143   case $cc_temp in
13144     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13145     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13146     \-*) ;;
13147     *) break;;
13148   esac
13149 done
13150 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13151
13152
13153 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13154 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13155 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13156 echo "${ECHO_T}$can_build_shared" >&6; }
13157
13158 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13159 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13160 test "$can_build_shared" = "no" && enable_shared=no
13161
13162 # On AIX, shared libraries and static libraries use the same namespace, and
13163 # are all built from PIC.
13164 case $host_os in
13165 aix3*)
13166   test "$enable_shared" = yes && enable_static=no
13167   if test -n "$RANLIB"; then
13168     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13169     postinstall_cmds='$RANLIB $lib'
13170   fi
13171   ;;
13172 aix4* | aix5*)
13173   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13174     test "$enable_shared" = yes && enable_static=no
13175   fi
13176   ;;
13177 esac
13178 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13179 echo "${ECHO_T}$enable_shared" >&6; }
13180
13181 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13183 # Make sure either enable_shared or enable_static is yes.
13184 test "$enable_shared" = yes || enable_static=yes
13185 { echo "$as_me:$LINENO: result: $enable_static" >&5
13186 echo "${ECHO_T}$enable_static" >&6; }
13187
13188 GCC_F77="$G77"
13189 LD_F77="$LD"
13190
13191 lt_prog_compiler_wl_F77=
13192 lt_prog_compiler_pic_F77=
13193 lt_prog_compiler_static_F77=
13194
13195 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13197
13198   if test "$GCC" = yes; then
13199     lt_prog_compiler_wl_F77='-Wl,'
13200     lt_prog_compiler_static_F77='-static'
13201
13202     case $host_os in
13203       aix*)
13204       # All AIX code is PIC.
13205       if test "$host_cpu" = ia64; then
13206         # AIX 5 now supports IA64 processor
13207         lt_prog_compiler_static_F77='-Bstatic'
13208       fi
13209       ;;
13210
13211     amigaos*)
13212       # FIXME: we need at least 68020 code to build shared libraries, but
13213       # adding the `-m68020' flag to GCC prevents building anything better,
13214       # like `-m68040'.
13215       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13216       ;;
13217
13218     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13219       # PIC is the default for these OSes.
13220       ;;
13221
13222     mingw* | cygwin* | pw32* | os2*)
13223       # This hack is so that the source file can tell whether it is being
13224       # built for inclusion in a dll (and should export symbols for example).
13225       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13226       # (--disable-auto-import) libraries
13227       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13228       ;;
13229
13230     darwin* | rhapsody*)
13231       # PIC is the default on this platform
13232       # Common symbols not allowed in MH_DYLIB files
13233       lt_prog_compiler_pic_F77='-fno-common'
13234       ;;
13235
13236     interix[3-9]*)
13237       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13238       # Instead, we relocate shared libraries at runtime.
13239       ;;
13240
13241     msdosdjgpp*)
13242       # Just because we use GCC doesn't mean we suddenly get shared libraries
13243       # on systems that don't support them.
13244       lt_prog_compiler_can_build_shared_F77=no
13245       enable_shared=no
13246       ;;
13247
13248     sysv4*MP*)
13249       if test -d /usr/nec; then
13250         lt_prog_compiler_pic_F77=-Kconform_pic
13251       fi
13252       ;;
13253
13254     hpux*)
13255       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13256       # not for PA HP-UX.
13257       case $host_cpu in
13258       hppa*64*|ia64*)
13259         # +Z the default
13260         ;;
13261       *)
13262         lt_prog_compiler_pic_F77='-fPIC'
13263         ;;
13264       esac
13265       ;;
13266
13267     *)
13268       lt_prog_compiler_pic_F77='-fPIC'
13269       ;;
13270     esac
13271   else
13272     # PORTME Check for flag to pass linker flags through the system compiler.
13273     case $host_os in
13274     aix*)
13275       lt_prog_compiler_wl_F77='-Wl,'
13276       if test "$host_cpu" = ia64; then
13277         # AIX 5 now supports IA64 processor
13278         lt_prog_compiler_static_F77='-Bstatic'
13279       else
13280         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13281       fi
13282       ;;
13283       darwin*)
13284         # PIC is the default on this platform
13285         # Common symbols not allowed in MH_DYLIB files
13286        case $cc_basename in
13287          xlc*)
13288          lt_prog_compiler_pic_F77='-qnocommon'
13289          lt_prog_compiler_wl_F77='-Wl,'
13290          ;;
13291        esac
13292        ;;
13293
13294     mingw* | cygwin* | pw32* | os2*)
13295       # This hack is so that the source file can tell whether it is being
13296       # built for inclusion in a dll (and should export symbols for example).
13297       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13298       ;;
13299
13300     hpux9* | hpux10* | hpux11*)
13301       lt_prog_compiler_wl_F77='-Wl,'
13302       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13303       # not for PA HP-UX.
13304       case $host_cpu in
13305       hppa*64*|ia64*)
13306         # +Z the default
13307         ;;
13308       *)
13309         lt_prog_compiler_pic_F77='+Z'
13310         ;;
13311       esac
13312       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13313       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13314       ;;
13315
13316     irix5* | irix6* | nonstopux*)
13317       lt_prog_compiler_wl_F77='-Wl,'
13318       # PIC (with -KPIC) is the default.
13319       lt_prog_compiler_static_F77='-non_shared'
13320       ;;
13321
13322     newsos6)
13323       lt_prog_compiler_pic_F77='-KPIC'
13324       lt_prog_compiler_static_F77='-Bstatic'
13325       ;;
13326
13327     linux* | k*bsd*-gnu)
13328       case $cc_basename in
13329       icc* | ecc*)
13330         lt_prog_compiler_wl_F77='-Wl,'
13331         lt_prog_compiler_pic_F77='-KPIC'
13332         lt_prog_compiler_static_F77='-static'
13333         ;;
13334       pgcc* | pgf77* | pgf90* | pgf95*)
13335         # Portland Group compilers (*not* the Pentium gcc compiler,
13336         # which looks to be a dead project)
13337         lt_prog_compiler_wl_F77='-Wl,'
13338         lt_prog_compiler_pic_F77='-fpic'
13339         lt_prog_compiler_static_F77='-Bstatic'
13340         ;;
13341       ccc*)
13342         lt_prog_compiler_wl_F77='-Wl,'
13343         # All Alpha code is PIC.
13344         lt_prog_compiler_static_F77='-non_shared'
13345         ;;
13346       *)
13347         case `$CC -V 2>&1 | sed 5q` in
13348         *Sun\ C*)
13349           # Sun C 5.9
13350           lt_prog_compiler_pic_F77='-KPIC'
13351           lt_prog_compiler_static_F77='-Bstatic'
13352           lt_prog_compiler_wl_F77='-Wl,'
13353           ;;
13354         *Sun\ F*)
13355           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13356           lt_prog_compiler_pic_F77='-KPIC'
13357           lt_prog_compiler_static_F77='-Bstatic'
13358           lt_prog_compiler_wl_F77=''
13359           ;;
13360         esac
13361         ;;
13362       esac
13363       ;;
13364
13365     osf3* | osf4* | osf5*)
13366       lt_prog_compiler_wl_F77='-Wl,'
13367       # All OSF/1 code is PIC.
13368       lt_prog_compiler_static_F77='-non_shared'
13369       ;;
13370
13371     rdos*)
13372       lt_prog_compiler_static_F77='-non_shared'
13373       ;;
13374
13375     solaris*)
13376       lt_prog_compiler_pic_F77='-KPIC'
13377       lt_prog_compiler_static_F77='-Bstatic'
13378       case $cc_basename in
13379       f77* | f90* | f95*)
13380         lt_prog_compiler_wl_F77='-Qoption ld ';;
13381       *)
13382         lt_prog_compiler_wl_F77='-Wl,';;
13383       esac
13384       ;;
13385
13386     sunos4*)
13387       lt_prog_compiler_wl_F77='-Qoption ld '
13388       lt_prog_compiler_pic_F77='-PIC'
13389       lt_prog_compiler_static_F77='-Bstatic'
13390       ;;
13391
13392     sysv4 | sysv4.2uw2* | sysv4.3*)
13393       lt_prog_compiler_wl_F77='-Wl,'
13394       lt_prog_compiler_pic_F77='-KPIC'
13395       lt_prog_compiler_static_F77='-Bstatic'
13396       ;;
13397
13398     sysv4*MP*)
13399       if test -d /usr/nec ;then
13400         lt_prog_compiler_pic_F77='-Kconform_pic'
13401         lt_prog_compiler_static_F77='-Bstatic'
13402       fi
13403       ;;
13404
13405     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13406       lt_prog_compiler_wl_F77='-Wl,'
13407       lt_prog_compiler_pic_F77='-KPIC'
13408       lt_prog_compiler_static_F77='-Bstatic'
13409       ;;
13410
13411     unicos*)
13412       lt_prog_compiler_wl_F77='-Wl,'
13413       lt_prog_compiler_can_build_shared_F77=no
13414       ;;
13415
13416     uts4*)
13417       lt_prog_compiler_pic_F77='-pic'
13418       lt_prog_compiler_static_F77='-Bstatic'
13419       ;;
13420
13421     *)
13422       lt_prog_compiler_can_build_shared_F77=no
13423       ;;
13424     esac
13425   fi
13426
13427 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13428 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13429
13430 #
13431 # Check to make sure the PIC flag actually works.
13432 #
13433 if test -n "$lt_prog_compiler_pic_F77"; then
13434
13435 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13436 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13437 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13438   echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440   lt_prog_compiler_pic_works_F77=no
13441   ac_outfile=conftest.$ac_objext
13442    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13444    # Insert the option either (1) after the last *FLAGS variable, or
13445    # (2) before a word containing "conftest.", or (3) at the end.
13446    # Note that $ac_compile itself does not contain backslashes and begins
13447    # with a dollar sign (not a hyphen), so the echo should work correctly.
13448    # The option is referenced via a variable to avoid confusing sed.
13449    lt_compile=`echo "$ac_compile" | $SED \
13450    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452    -e 's:$: $lt_compiler_flag:'`
13453    (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
13454    (eval "$lt_compile" 2>conftest.err)
13455    ac_status=$?
13456    cat conftest.err >&5
13457    echo "$as_me:13457: \$? = $ac_status" >&5
13458    if (exit $ac_status) && test -s "$ac_outfile"; then
13459      # The compiler can only warn and ignore the option if not recognized
13460      # So say no if there are warnings other than the usual output.
13461      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13462      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13463      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13464        lt_prog_compiler_pic_works_F77=yes
13465      fi
13466    fi
13467    $rm conftest*
13468
13469 fi
13470 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13471 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13472
13473 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13474     case $lt_prog_compiler_pic_F77 in
13475      "" | " "*) ;;
13476      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13477      esac
13478 else
13479     lt_prog_compiler_pic_F77=
13480      lt_prog_compiler_can_build_shared_F77=no
13481 fi
13482
13483 fi
13484 case $host_os in
13485   # For platforms which do not support PIC, -DPIC is meaningless:
13486   *djgpp*)
13487     lt_prog_compiler_pic_F77=
13488     ;;
13489   *)
13490     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13491     ;;
13492 esac
13493
13494 #
13495 # Check to make sure the static flag actually works.
13496 #
13497 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13498 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13499 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13500 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13501   echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503   lt_prog_compiler_static_works_F77=no
13504    save_LDFLAGS="$LDFLAGS"
13505    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13506    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13507    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13508      # The linker can only warn and ignore the option if not recognized
13509      # So say no if there are warnings
13510      if test -s conftest.err; then
13511        # Append any errors to the config.log.
13512        cat conftest.err 1>&5
13513        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13514        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13515        if diff conftest.exp conftest.er2 >/dev/null; then
13516          lt_prog_compiler_static_works_F77=yes
13517        fi
13518      else
13519        lt_prog_compiler_static_works_F77=yes
13520      fi
13521    fi
13522    $rm conftest*
13523    LDFLAGS="$save_LDFLAGS"
13524
13525 fi
13526 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13527 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13528
13529 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13530     :
13531 else
13532     lt_prog_compiler_static_F77=
13533 fi
13534
13535
13536 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13537 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13538 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   lt_cv_prog_compiler_c_o_F77=no
13542    $rm -r conftest 2>/dev/null
13543    mkdir conftest
13544    cd conftest
13545    mkdir out
13546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13547
13548    lt_compiler_flag="-o out/conftest2.$ac_objext"
13549    # Insert the option either (1) after the last *FLAGS variable, or
13550    # (2) before a word containing "conftest.", or (3) at the end.
13551    # Note that $ac_compile itself does not contain backslashes and begins
13552    # with a dollar sign (not a hyphen), so the echo should work correctly.
13553    lt_compile=`echo "$ac_compile" | $SED \
13554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13556    -e 's:$: $lt_compiler_flag:'`
13557    (eval echo "\"\$as_me:13557: $lt_compile\"" >&5)
13558    (eval "$lt_compile" 2>out/conftest.err)
13559    ac_status=$?
13560    cat out/conftest.err >&5
13561    echo "$as_me:13561: \$? = $ac_status" >&5
13562    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13563    then
13564      # The compiler can only warn and ignore the option if not recognized
13565      # So say no if there are warnings
13566      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13567      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13568      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13569        lt_cv_prog_compiler_c_o_F77=yes
13570      fi
13571    fi
13572    chmod u+w . 2>&5
13573    $rm conftest*
13574    # SGI C++ compiler will create directory out/ii_files/ for
13575    # template instantiation
13576    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13577    $rm out/* && rmdir out
13578    cd ..
13579    rmdir conftest
13580    $rm conftest*
13581
13582 fi
13583 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13584 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13585
13586
13587 hard_links="nottested"
13588 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13589   # do not overwrite the value of need_locks provided by the user
13590   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13591 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13592   hard_links=yes
13593   $rm conftest*
13594   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13595   touch conftest.a
13596   ln conftest.a conftest.b 2>&5 || hard_links=no
13597   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13598   { echo "$as_me:$LINENO: result: $hard_links" >&5
13599 echo "${ECHO_T}$hard_links" >&6; }
13600   if test "$hard_links" = no; then
13601     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13602 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13603     need_locks=warn
13604   fi
13605 else
13606   need_locks=no
13607 fi
13608
13609 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13610 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13611
13612   runpath_var=
13613   allow_undefined_flag_F77=
13614   enable_shared_with_static_runtimes_F77=no
13615   archive_cmds_F77=
13616   archive_expsym_cmds_F77=
13617   old_archive_From_new_cmds_F77=
13618   old_archive_from_expsyms_cmds_F77=
13619   export_dynamic_flag_spec_F77=
13620   whole_archive_flag_spec_F77=
13621   thread_safe_flag_spec_F77=
13622   hardcode_libdir_flag_spec_F77=
13623   hardcode_libdir_flag_spec_ld_F77=
13624   hardcode_libdir_separator_F77=
13625   hardcode_direct_F77=no
13626   hardcode_minus_L_F77=no
13627   hardcode_shlibpath_var_F77=unsupported
13628   link_all_deplibs_F77=unknown
13629   hardcode_automatic_F77=no
13630   module_cmds_F77=
13631   module_expsym_cmds_F77=
13632   always_export_symbols_F77=no
13633   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13634   # include_expsyms should be a list of space-separated symbols to be *always*
13635   # included in the symbol list
13636   include_expsyms_F77=
13637   # exclude_expsyms can be an extended regexp of symbols to exclude
13638   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13639   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13640   # as well as any symbol that contains `d'.
13641   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13642   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13643   # platforms (ab)use it in PIC code, but their linkers get confused if
13644   # the symbol is explicitly referenced.  Since portable code cannot
13645   # rely on this symbol name, it's probably fine to never include it in
13646   # preloaded symbol tables.
13647   extract_expsyms_cmds=
13648   # Just being paranoid about ensuring that cc_basename is set.
13649   for cc_temp in $compiler""; do
13650   case $cc_temp in
13651     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13652     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13653     \-*) ;;
13654     *) break;;
13655   esac
13656 done
13657 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13658
13659   case $host_os in
13660   cygwin* | mingw* | pw32*)
13661     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13662     # When not using gcc, we currently assume that we are using
13663     # Microsoft Visual C++.
13664     if test "$GCC" != yes; then
13665       with_gnu_ld=no
13666     fi
13667     ;;
13668   interix*)
13669     # we just hope/assume this is gcc and not c89 (= MSVC++)
13670     with_gnu_ld=yes
13671     ;;
13672   openbsd*)
13673     with_gnu_ld=no
13674     ;;
13675   esac
13676
13677   ld_shlibs_F77=yes
13678   if test "$with_gnu_ld" = yes; then
13679     # If archive_cmds runs LD, not CC, wlarc should be empty
13680     wlarc='${wl}'
13681
13682     # Set some defaults for GNU ld with shared library support. These
13683     # are reset later if shared libraries are not supported. Putting them
13684     # here allows them to be overridden if necessary.
13685     runpath_var=LD_RUN_PATH
13686     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13687     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13688     # ancient GNU ld didn't support --whole-archive et. al.
13689     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13690         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13691       else
13692         whole_archive_flag_spec_F77=
13693     fi
13694     supports_anon_versioning=no
13695     case `$LD -v 2>/dev/null` in
13696       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13697       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13698       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13699       *\ 2.11.*) ;; # other 2.11 versions
13700       *) supports_anon_versioning=yes ;;
13701     esac
13702
13703     # See if GNU ld supports shared libraries.
13704     case $host_os in
13705     aix3* | aix4* | aix5*)
13706       # On AIX/PPC, the GNU linker is very broken
13707       if test "$host_cpu" != ia64; then
13708         ld_shlibs_F77=no
13709         cat <<EOF 1>&2
13710
13711 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13712 *** to be unable to reliably create shared libraries on AIX.
13713 *** Therefore, libtool is disabling shared libraries support.  If you
13714 *** really care for shared libraries, you may want to modify your PATH
13715 *** so that a non-GNU linker is found, and then restart.
13716
13717 EOF
13718       fi
13719       ;;
13720
13721     amigaos*)
13722       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)'
13723       hardcode_libdir_flag_spec_F77='-L$libdir'
13724       hardcode_minus_L_F77=yes
13725
13726       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13727       # that the semantics of dynamic libraries on AmigaOS, at least up
13728       # to version 4, is to share data among multiple programs linked
13729       # with the same dynamic library.  Since this doesn't match the
13730       # behavior of shared libraries on other platforms, we can't use
13731       # them.
13732       ld_shlibs_F77=no
13733       ;;
13734
13735     beos*)
13736       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13737         allow_undefined_flag_F77=unsupported
13738         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13739         # support --undefined.  This deserves some investigation.  FIXME
13740         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741       else
13742         ld_shlibs_F77=no
13743       fi
13744       ;;
13745
13746     cygwin* | mingw* | pw32*)
13747       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13748       # as there is no search path for DLLs.
13749       hardcode_libdir_flag_spec_F77='-L$libdir'
13750       allow_undefined_flag_F77=unsupported
13751       always_export_symbols_F77=no
13752       enable_shared_with_static_runtimes_F77=yes
13753       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13754
13755       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13756         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13757         # If the export-symbols file already is a .def file (1st line
13758         # is EXPORTS), use it as is; otherwise, prepend...
13759         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13760           cp $export_symbols $output_objdir/$soname.def;
13761         else
13762           echo EXPORTS > $output_objdir/$soname.def;
13763           cat $export_symbols >> $output_objdir/$soname.def;
13764         fi~
13765         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13766       else
13767         ld_shlibs_F77=no
13768       fi
13769       ;;
13770
13771     interix[3-9]*)
13772       hardcode_direct_F77=no
13773       hardcode_shlibpath_var_F77=no
13774       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13775       export_dynamic_flag_spec_F77='${wl}-E'
13776       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13777       # Instead, shared libraries are loaded at an image base (0x10000000 by
13778       # default) and relocated if they conflict, which is a slow very memory
13779       # consuming and fragmenting process.  To avoid this, we pick a random,
13780       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13781       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13782       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'
13783       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'
13784       ;;
13785
13786     gnu* | linux* | k*bsd*-gnu)
13787       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13788         tmp_addflag=
13789         case $cc_basename,$host_cpu in
13790         pgcc*)                          # Portland Group C compiler
13791           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'
13792           tmp_addflag=' $pic_flag'
13793           ;;
13794         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13795           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'
13796           tmp_addflag=' $pic_flag -Mnomain' ;;
13797         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13798           tmp_addflag=' -i_dynamic' ;;
13799         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13800           tmp_addflag=' -i_dynamic -nofor_main' ;;
13801         ifc* | ifort*)                  # Intel Fortran compiler
13802           tmp_addflag=' -nofor_main' ;;
13803         esac
13804         case `$CC -V 2>&1 | sed 5q` in
13805         *Sun\ C*)                       # Sun C 5.9
13806           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'
13807           tmp_sharedflag='-G' ;;
13808         *Sun\ F*)                       # Sun Fortran 8.3
13809           tmp_sharedflag='-G' ;;
13810         *)
13811           tmp_sharedflag='-shared' ;;
13812         esac
13813         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814
13815         if test $supports_anon_versioning = yes; then
13816           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13817   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13818   $echo "local: *; };" >> $output_objdir/$libname.ver~
13819           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13820         fi
13821       else
13822         ld_shlibs_F77=no
13823       fi
13824       ;;
13825
13826     netbsd*)
13827       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13828         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13829         wlarc=
13830       else
13831         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833       fi
13834       ;;
13835
13836     solaris*)
13837       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13838         ld_shlibs_F77=no
13839         cat <<EOF 1>&2
13840
13841 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13842 *** create shared libraries on Solaris systems.  Therefore, libtool
13843 *** is disabling shared libraries support.  We urge you to upgrade GNU
13844 *** binutils to release 2.9.1 or newer.  Another option is to modify
13845 *** your PATH or compiler configuration so that the native linker is
13846 *** used, and then restart.
13847
13848 EOF
13849       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13850         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13851         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13852       else
13853         ld_shlibs_F77=no
13854       fi
13855       ;;
13856
13857     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13858       case `$LD -v 2>&1` in
13859         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13860         ld_shlibs_F77=no
13861         cat <<_LT_EOF 1>&2
13862
13863 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13864 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13865 *** is disabling shared libraries support.  We urge you to upgrade GNU
13866 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13867 *** your PATH or compiler configuration so that the native linker is
13868 *** used, and then restart.
13869
13870 _LT_EOF
13871         ;;
13872         *)
13873           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13874             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13875             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13876             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13877           else
13878             ld_shlibs_F77=no
13879           fi
13880         ;;
13881       esac
13882       ;;
13883
13884     sunos4*)
13885       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13886       wlarc=
13887       hardcode_direct_F77=yes
13888       hardcode_shlibpath_var_F77=no
13889       ;;
13890
13891     *)
13892       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13893         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13894         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13895       else
13896         ld_shlibs_F77=no
13897       fi
13898       ;;
13899     esac
13900
13901     if test "$ld_shlibs_F77" = no; then
13902       runpath_var=
13903       hardcode_libdir_flag_spec_F77=
13904       export_dynamic_flag_spec_F77=
13905       whole_archive_flag_spec_F77=
13906     fi
13907   else
13908     # PORTME fill in a description of your system's linker (not GNU ld)
13909     case $host_os in
13910     aix3*)
13911       allow_undefined_flag_F77=unsupported
13912       always_export_symbols_F77=yes
13913       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'
13914       # Note: this linker hardcodes the directories in LIBPATH if there
13915       # are no directories specified by -L.
13916       hardcode_minus_L_F77=yes
13917       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13918         # Neither direct hardcoding nor static linking is supported with a
13919         # broken collect2.
13920         hardcode_direct_F77=unsupported
13921       fi
13922       ;;
13923
13924     aix4* | aix5*)
13925       if test "$host_cpu" = ia64; then
13926         # On IA64, the linker does run time linking by default, so we don't
13927         # have to do anything special.
13928         aix_use_runtimelinking=no
13929         exp_sym_flag='-Bexport'
13930         no_entry_flag=""
13931       else
13932         # If we're using GNU nm, then we don't want the "-C" option.
13933         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13935           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'
13936         else
13937           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'
13938         fi
13939         aix_use_runtimelinking=no
13940
13941         # Test if we are trying to use run time linking or normal
13942         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13943         # need to do runtime linking.
13944         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13945           for ld_flag in $LDFLAGS; do
13946           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13947             aix_use_runtimelinking=yes
13948             break
13949           fi
13950           done
13951           ;;
13952         esac
13953
13954         exp_sym_flag='-bexport'
13955         no_entry_flag='-bnoentry'
13956       fi
13957
13958       # When large executables or shared objects are built, AIX ld can
13959       # have problems creating the table of contents.  If linking a library
13960       # or program results in "error TOC overflow" add -mminimal-toc to
13961       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13962       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13963
13964       archive_cmds_F77=''
13965       hardcode_direct_F77=yes
13966       hardcode_libdir_separator_F77=':'
13967       link_all_deplibs_F77=yes
13968
13969       if test "$GCC" = yes; then
13970         case $host_os in aix4.[012]|aix4.[012].*)
13971         # We only want to do this on AIX 4.2 and lower, the check
13972         # below for broken collect2 doesn't work under 4.3+
13973           collect2name=`${CC} -print-prog-name=collect2`
13974           if test -f "$collect2name" && \
13975            strings "$collect2name" | grep resolve_lib_name >/dev/null
13976           then
13977           # We have reworked collect2
13978           :
13979           else
13980           # We have old collect2
13981           hardcode_direct_F77=unsupported
13982           # It fails to find uninstalled libraries when the uninstalled
13983           # path is not listed in the libpath.  Setting hardcode_minus_L
13984           # to unsupported forces relinking
13985           hardcode_minus_L_F77=yes
13986           hardcode_libdir_flag_spec_F77='-L$libdir'
13987           hardcode_libdir_separator_F77=
13988           fi
13989           ;;
13990         esac
13991         shared_flag='-shared'
13992         if test "$aix_use_runtimelinking" = yes; then
13993           shared_flag="$shared_flag "'${wl}-G'
13994         fi
13995       else
13996         # not using gcc
13997         if test "$host_cpu" = ia64; then
13998         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13999         # chokes on -Wl,-G. The following line is correct:
14000           shared_flag='-G'
14001         else
14002           if test "$aix_use_runtimelinking" = yes; then
14003             shared_flag='${wl}-G'
14004           else
14005             shared_flag='${wl}-bM:SRE'
14006           fi
14007         fi
14008       fi
14009
14010       # It seems that -bexpall does not export symbols beginning with
14011       # underscore (_), so it is better to generate a list of symbols to export.
14012       always_export_symbols_F77=yes
14013       if test "$aix_use_runtimelinking" = yes; then
14014         # Warning - without using the other runtime loading flags (-brtl),
14015         # -berok will link without error, but may produce a broken library.
14016         allow_undefined_flag_F77='-berok'
14017        # Determine the default libpath from the value encoded in an empty executable.
14018        cat >conftest.$ac_ext <<_ACEOF
14019       program main
14020
14021       end
14022 _ACEOF
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (ac_try="$ac_link"
14025 case "(($ac_try" in
14026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027   *) ac_try_echo=$ac_try;;
14028 esac
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030   (eval "$ac_link") 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } && {
14037          test -z "$ac_f77_werror_flag" ||
14038          test ! -s conftest.err
14039        } && test -s conftest$ac_exeext &&
14040        $as_test_x conftest$ac_exeext; then
14041
14042 lt_aix_libpath_sed='
14043     /Import File Strings/,/^$/ {
14044         /^0/ {
14045             s/^0  *\(.*\)$/\1/
14046             p
14047         }
14048     }'
14049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14050 # Check for a 64-bit object if we didn't find anything.
14051 if test -z "$aix_libpath"; then
14052   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14053 fi
14054 else
14055   echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.$ac_ext >&5
14057
14058
14059 fi
14060
14061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14062       conftest$ac_exeext conftest.$ac_ext
14063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14064
14065        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14066         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"
14067        else
14068         if test "$host_cpu" = ia64; then
14069           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14070           allow_undefined_flag_F77="-z nodefs"
14071           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"
14072         else
14073          # Determine the default libpath from the value encoded in an empty executable.
14074          cat >conftest.$ac_ext <<_ACEOF
14075       program main
14076
14077       end
14078 _ACEOF
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_link") 2>conftest.er1
14087   ac_status=$?
14088   grep -v '^ *+' conftest.er1 >conftest.err
14089   rm -f conftest.er1
14090   cat conftest.err >&5
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); } && {
14093          test -z "$ac_f77_werror_flag" ||
14094          test ! -s conftest.err
14095        } && test -s conftest$ac_exeext &&
14096        $as_test_x conftest$ac_exeext; then
14097
14098 lt_aix_libpath_sed='
14099     /Import File Strings/,/^$/ {
14100         /^0/ {
14101             s/^0  *\(.*\)$/\1/
14102             p
14103         }
14104     }'
14105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14106 # Check for a 64-bit object if we didn't find anything.
14107 if test -z "$aix_libpath"; then
14108   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14109 fi
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114
14115 fi
14116
14117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14118       conftest$ac_exeext conftest.$ac_ext
14119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14120
14121          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14122           # Warning - without using the other run time loading flags,
14123           # -berok will link without error, but may produce a broken library.
14124           no_undefined_flag_F77=' ${wl}-bernotok'
14125           allow_undefined_flag_F77=' ${wl}-berok'
14126           # Exported symbols can be pulled into shared objects from archives
14127           whole_archive_flag_spec_F77='$convenience'
14128           archive_cmds_need_lc_F77=yes
14129           # This is similar to how AIX traditionally builds its shared libraries.
14130           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'
14131         fi
14132       fi
14133       ;;
14134
14135     amigaos*)
14136       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)'
14137       hardcode_libdir_flag_spec_F77='-L$libdir'
14138       hardcode_minus_L_F77=yes
14139       # see comment about different semantics on the GNU ld section
14140       ld_shlibs_F77=no
14141       ;;
14142
14143     bsdi[45]*)
14144       export_dynamic_flag_spec_F77=-rdynamic
14145       ;;
14146
14147     cygwin* | mingw* | pw32*)
14148       # When not using gcc, we currently assume that we are using
14149       # Microsoft Visual C++.
14150       # hardcode_libdir_flag_spec is actually meaningless, as there is
14151       # no search path for DLLs.
14152       hardcode_libdir_flag_spec_F77=' '
14153       allow_undefined_flag_F77=unsupported
14154       # Tell ltmain to make .lib files, not .a files.
14155       libext=lib
14156       # Tell ltmain to make .dll files, not .so files.
14157       shrext_cmds=".dll"
14158       # FIXME: Setting linknames here is a bad hack.
14159       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14160       # The linker will automatically build a .lib file if we build a DLL.
14161       old_archive_From_new_cmds_F77='true'
14162       # FIXME: Should let the user specify the lib program.
14163       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14164       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14165       enable_shared_with_static_runtimes_F77=yes
14166       ;;
14167
14168     darwin* | rhapsody*)
14169       case $host_os in
14170         rhapsody* | darwin1.[012])
14171          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14172          ;;
14173        *) # Darwin 1.3 on
14174          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14175            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14176          else
14177            case ${MACOSX_DEPLOYMENT_TARGET} in
14178              10.[012])
14179                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14180                ;;
14181              10.*)
14182                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14183                ;;
14184            esac
14185          fi
14186          ;;
14187       esac
14188       archive_cmds_need_lc_F77=no
14189       hardcode_direct_F77=no
14190       hardcode_automatic_F77=yes
14191       hardcode_shlibpath_var_F77=unsupported
14192       whole_archive_flag_spec_F77=''
14193       link_all_deplibs_F77=yes
14194     if test "$GCC" = yes ; then
14195         output_verbose_link_cmd='echo'
14196         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14197       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14198       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14199       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14200       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}'
14201     else
14202       case $cc_basename in
14203         xlc*)
14204          output_verbose_link_cmd='echo'
14205          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14206          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14207           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14208          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}'
14209           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}'
14210           ;;
14211        *)
14212          ld_shlibs_F77=no
14213           ;;
14214       esac
14215     fi
14216       ;;
14217
14218     dgux*)
14219       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220       hardcode_libdir_flag_spec_F77='-L$libdir'
14221       hardcode_shlibpath_var_F77=no
14222       ;;
14223
14224     freebsd1*)
14225       ld_shlibs_F77=no
14226       ;;
14227
14228     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14229     # support.  Future versions do this automatically, but an explicit c++rt0.o
14230     # does not break anything, and helps significantly (at the cost of a little
14231     # extra space).
14232     freebsd2.2*)
14233       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14234       hardcode_libdir_flag_spec_F77='-R$libdir'
14235       hardcode_direct_F77=yes
14236       hardcode_shlibpath_var_F77=no
14237       ;;
14238
14239     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14240     freebsd2*)
14241       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14242       hardcode_direct_F77=yes
14243       hardcode_minus_L_F77=yes
14244       hardcode_shlibpath_var_F77=no
14245       ;;
14246
14247     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14248     freebsd* | dragonfly*)
14249       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14250       hardcode_libdir_flag_spec_F77='-R$libdir'
14251       hardcode_direct_F77=yes
14252       hardcode_shlibpath_var_F77=no
14253       ;;
14254
14255     hpux9*)
14256       if test "$GCC" = yes; then
14257         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'
14258       else
14259         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'
14260       fi
14261       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14262       hardcode_libdir_separator_F77=:
14263       hardcode_direct_F77=yes
14264
14265       # hardcode_minus_L: Not really in the search PATH,
14266       # but as the default location of the library.
14267       hardcode_minus_L_F77=yes
14268       export_dynamic_flag_spec_F77='${wl}-E'
14269       ;;
14270
14271     hpux10*)
14272       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14273         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14274       else
14275         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14276       fi
14277       if test "$with_gnu_ld" = no; then
14278         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14279         hardcode_libdir_separator_F77=:
14280
14281         hardcode_direct_F77=yes
14282         export_dynamic_flag_spec_F77='${wl}-E'
14283
14284         # hardcode_minus_L: Not really in the search PATH,
14285         # but as the default location of the library.
14286         hardcode_minus_L_F77=yes
14287       fi
14288       ;;
14289
14290     hpux11*)
14291       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14292         case $host_cpu in
14293         hppa*64*)
14294           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14295           ;;
14296         ia64*)
14297           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14298           ;;
14299         *)
14300           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14301           ;;
14302         esac
14303       else
14304         case $host_cpu in
14305         hppa*64*)
14306           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307           ;;
14308         ia64*)
14309           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14310           ;;
14311         *)
14312           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14313           ;;
14314         esac
14315       fi
14316       if test "$with_gnu_ld" = no; then
14317         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14318         hardcode_libdir_separator_F77=:
14319
14320         case $host_cpu in
14321         hppa*64*|ia64*)
14322           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14323           hardcode_direct_F77=no
14324           hardcode_shlibpath_var_F77=no
14325           ;;
14326         *)
14327           hardcode_direct_F77=yes
14328           export_dynamic_flag_spec_F77='${wl}-E'
14329
14330           # hardcode_minus_L: Not really in the search PATH,
14331           # but as the default location of the library.
14332           hardcode_minus_L_F77=yes
14333           ;;
14334         esac
14335       fi
14336       ;;
14337
14338     irix5* | irix6* | nonstopux*)
14339       if test "$GCC" = yes; then
14340         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'
14341       else
14342         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'
14343         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14344       fi
14345       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14346       hardcode_libdir_separator_F77=:
14347       link_all_deplibs_F77=yes
14348       ;;
14349
14350     netbsd*)
14351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14352         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14353       else
14354         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14355       fi
14356       hardcode_libdir_flag_spec_F77='-R$libdir'
14357       hardcode_direct_F77=yes
14358       hardcode_shlibpath_var_F77=no
14359       ;;
14360
14361     newsos6)
14362       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14363       hardcode_direct_F77=yes
14364       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14365       hardcode_libdir_separator_F77=:
14366       hardcode_shlibpath_var_F77=no
14367       ;;
14368
14369     openbsd*)
14370       if test -f /usr/libexec/ld.so; then
14371         hardcode_direct_F77=yes
14372         hardcode_shlibpath_var_F77=no
14373         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14374           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14375           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14376           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14377           export_dynamic_flag_spec_F77='${wl}-E'
14378         else
14379           case $host_os in
14380            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14381              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14382              hardcode_libdir_flag_spec_F77='-R$libdir'
14383              ;;
14384            *)
14385              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14386              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14387              ;;
14388           esac
14389         fi
14390       else
14391         ld_shlibs_F77=no
14392       fi
14393       ;;
14394
14395     os2*)
14396       hardcode_libdir_flag_spec_F77='-L$libdir'
14397       hardcode_minus_L_F77=yes
14398       allow_undefined_flag_F77=unsupported
14399       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'
14400       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14401       ;;
14402
14403     osf3*)
14404       if test "$GCC" = yes; then
14405         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14406         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'
14407       else
14408         allow_undefined_flag_F77=' -expect_unresolved \*'
14409         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'
14410       fi
14411       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14412       hardcode_libdir_separator_F77=:
14413       ;;
14414
14415     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14416       if test "$GCC" = yes; then
14417         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14418         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'
14419         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14420       else
14421         allow_undefined_flag_F77=' -expect_unresolved \*'
14422         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'
14423         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~
14424         $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'
14425
14426         # Both c and cxx compiler support -rpath directly
14427         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14428       fi
14429       hardcode_libdir_separator_F77=:
14430       ;;
14431
14432     solaris*)
14433       no_undefined_flag_F77=' -z text'
14434       if test "$GCC" = yes; then
14435         wlarc='${wl}'
14436         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14437         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14438           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14439       else
14440         wlarc=''
14441         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14443         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14444       fi
14445       hardcode_libdir_flag_spec_F77='-R$libdir'
14446       hardcode_shlibpath_var_F77=no
14447       case $host_os in
14448       solaris2.[0-5] | solaris2.[0-5].*) ;;
14449       *)
14450         # The compiler driver will combine and reorder linker options,
14451         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14452         # but is careful enough not to reorder.
14453         # Supported since Solaris 2.6 (maybe 2.5.1?)
14454         if test "$GCC" = yes; then
14455           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14456         else
14457           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14458         fi
14459         ;;
14460       esac
14461       link_all_deplibs_F77=yes
14462       ;;
14463
14464     sunos4*)
14465       if test "x$host_vendor" = xsequent; then
14466         # Use $CC to link under sequent, because it throws in some extra .o
14467         # files that make .init and .fini sections work.
14468         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14469       else
14470         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14471       fi
14472       hardcode_libdir_flag_spec_F77='-L$libdir'
14473       hardcode_direct_F77=yes
14474       hardcode_minus_L_F77=yes
14475       hardcode_shlibpath_var_F77=no
14476       ;;
14477
14478     sysv4)
14479       case $host_vendor in
14480         sni)
14481           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482           hardcode_direct_F77=yes # is this really true???
14483         ;;
14484         siemens)
14485           ## LD is ld it makes a PLAMLIB
14486           ## CC just makes a GrossModule.
14487           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14488           reload_cmds_F77='$CC -r -o $output$reload_objs'
14489           hardcode_direct_F77=no
14490         ;;
14491         motorola)
14492           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14493           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14494         ;;
14495       esac
14496       runpath_var='LD_RUN_PATH'
14497       hardcode_shlibpath_var_F77=no
14498       ;;
14499
14500     sysv4.3*)
14501       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14502       hardcode_shlibpath_var_F77=no
14503       export_dynamic_flag_spec_F77='-Bexport'
14504       ;;
14505
14506     sysv4*MP*)
14507       if test -d /usr/nec; then
14508         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509         hardcode_shlibpath_var_F77=no
14510         runpath_var=LD_RUN_PATH
14511         hardcode_runpath_var=yes
14512         ld_shlibs_F77=yes
14513       fi
14514       ;;
14515
14516     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14517       no_undefined_flag_F77='${wl}-z,text'
14518       archive_cmds_need_lc_F77=no
14519       hardcode_shlibpath_var_F77=no
14520       runpath_var='LD_RUN_PATH'
14521
14522       if test "$GCC" = yes; then
14523         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14524         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525       else
14526         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528       fi
14529       ;;
14530
14531     sysv5* | sco3.2v5* | sco5v6*)
14532       # Note: We can NOT use -z defs as we might desire, because we do not
14533       # link with -lc, and that would cause any symbols used from libc to
14534       # always be unresolved, which means just about no library would
14535       # ever link correctly.  If we're not using GNU ld we use -z text
14536       # though, which does catch some bad symbols but isn't as heavy-handed
14537       # as -z defs.
14538       no_undefined_flag_F77='${wl}-z,text'
14539       allow_undefined_flag_F77='${wl}-z,nodefs'
14540       archive_cmds_need_lc_F77=no
14541       hardcode_shlibpath_var_F77=no
14542       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14543       hardcode_libdir_separator_F77=':'
14544       link_all_deplibs_F77=yes
14545       export_dynamic_flag_spec_F77='${wl}-Bexport'
14546       runpath_var='LD_RUN_PATH'
14547
14548       if test "$GCC" = yes; then
14549         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14550         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14551       else
14552         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14553         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554       fi
14555       ;;
14556
14557     uts4*)
14558       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14559       hardcode_libdir_flag_spec_F77='-L$libdir'
14560       hardcode_shlibpath_var_F77=no
14561       ;;
14562
14563     *)
14564       ld_shlibs_F77=no
14565       ;;
14566     esac
14567   fi
14568
14569 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14570 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14571 test "$ld_shlibs_F77" = no && can_build_shared=no
14572
14573 #
14574 # Do we need to explicitly link libc?
14575 #
14576 case "x$archive_cmds_need_lc_F77" in
14577 x|xyes)
14578   # Assume -lc should be added
14579   archive_cmds_need_lc_F77=yes
14580
14581   if test "$enable_shared" = yes && test "$GCC" = yes; then
14582     case $archive_cmds_F77 in
14583     *'~'*)
14584       # FIXME: we may have to deal with multi-command sequences.
14585       ;;
14586     '$CC '*)
14587       # Test whether the compiler implicitly links with -lc since on some
14588       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589       # to ld, don't add -lc before -lgcc.
14590       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14592       $rm conftest*
14593       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594
14595       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14596   (eval $ac_compile) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } 2>conftest.err; then
14600         soname=conftest
14601         lib=conftest
14602         libobjs=conftest.$ac_objext
14603         deplibs=
14604         wl=$lt_prog_compiler_wl_F77
14605         pic_flag=$lt_prog_compiler_pic_F77
14606         compiler_flags=-v
14607         linker_flags=-v
14608         verstring=
14609         output_objdir=.
14610         libname=conftest
14611         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14612         allow_undefined_flag_F77=
14613         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14614   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }
14618         then
14619           archive_cmds_need_lc_F77=no
14620         else
14621           archive_cmds_need_lc_F77=yes
14622         fi
14623         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14624       else
14625         cat conftest.err 1>&5
14626       fi
14627       $rm conftest*
14628       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14629 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14630       ;;
14631     esac
14632   fi
14633   ;;
14634 esac
14635
14636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14638 library_names_spec=
14639 libname_spec='lib$name'
14640 soname_spec=
14641 shrext_cmds=".so"
14642 postinstall_cmds=
14643 postuninstall_cmds=
14644 finish_cmds=
14645 finish_eval=
14646 shlibpath_var=
14647 shlibpath_overrides_runpath=unknown
14648 version_type=none
14649 dynamic_linker="$host_os ld.so"
14650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14651
14652 need_lib_prefix=unknown
14653 hardcode_into_libs=no
14654
14655 # when you set need_version to no, make sure it does not cause -set_version
14656 # flags to be left without arguments
14657 need_version=unknown
14658
14659 case $host_os in
14660 aix3*)
14661   version_type=linux
14662   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14663   shlibpath_var=LIBPATH
14664
14665   # AIX 3 has no versioning support, so we append a major version to the name.
14666   soname_spec='${libname}${release}${shared_ext}$major'
14667   ;;
14668
14669 aix4* | aix5*)
14670   version_type=linux
14671   need_lib_prefix=no
14672   need_version=no
14673   hardcode_into_libs=yes
14674   if test "$host_cpu" = ia64; then
14675     # AIX 5 supports IA64
14676     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14677     shlibpath_var=LD_LIBRARY_PATH
14678   else
14679     # With GCC up to 2.95.x, collect2 would create an import file
14680     # for dependence libraries.  The import file would start with
14681     # the line `#! .'.  This would cause the generated library to
14682     # depend on `.', always an invalid library.  This was fixed in
14683     # development snapshots of GCC prior to 3.0.
14684     case $host_os in
14685       aix4 | aix4.[01] | aix4.[01].*)
14686       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14687            echo ' yes '
14688            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14689         :
14690       else
14691         can_build_shared=no
14692       fi
14693       ;;
14694     esac
14695     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14696     # soname into executable. Probably we can add versioning support to
14697     # collect2, so additional links can be useful in future.
14698     if test "$aix_use_runtimelinking" = yes; then
14699       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14700       # instead of lib<name>.a to let people know that these are not
14701       # typical AIX shared libraries.
14702       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703     else
14704       # We preserve .a as extension for shared libraries through AIX4.2
14705       # and later when we are not doing run time linking.
14706       library_names_spec='${libname}${release}.a $libname.a'
14707       soname_spec='${libname}${release}${shared_ext}$major'
14708     fi
14709     shlibpath_var=LIBPATH
14710   fi
14711   ;;
14712
14713 amigaos*)
14714   library_names_spec='$libname.ixlibrary $libname.a'
14715   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14716   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'
14717   ;;
14718
14719 beos*)
14720   library_names_spec='${libname}${shared_ext}'
14721   dynamic_linker="$host_os ld.so"
14722   shlibpath_var=LIBRARY_PATH
14723   ;;
14724
14725 bsdi[45]*)
14726   version_type=linux
14727   need_version=no
14728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729   soname_spec='${libname}${release}${shared_ext}$major'
14730   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14731   shlibpath_var=LD_LIBRARY_PATH
14732   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14733   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14734   # the default ld.so.conf also contains /usr/contrib/lib and
14735   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14736   # libtool to hard-code these into programs
14737   ;;
14738
14739 cygwin* | mingw* | pw32*)
14740   version_type=windows
14741   shrext_cmds=".dll"
14742   need_version=no
14743   need_lib_prefix=no
14744
14745   case $GCC,$host_os in
14746   yes,cygwin* | yes,mingw* | yes,pw32*)
14747     library_names_spec='$libname.dll.a'
14748     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14749     postinstall_cmds='base_file=`basename \${file}`~
14750       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14751       dldir=$destdir/`dirname \$dlpath`~
14752       test -d \$dldir || mkdir -p \$dldir~
14753       $install_prog $dir/$dlname \$dldir/$dlname~
14754       chmod a+x \$dldir/$dlname'
14755     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14756       dlpath=$dir/\$dldll~
14757        $rm \$dlpath'
14758     shlibpath_overrides_runpath=yes
14759
14760     case $host_os in
14761     cygwin*)
14762       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14763       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14764       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14765       ;;
14766     mingw*)
14767       # MinGW DLLs use traditional 'lib' prefix
14768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14769       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14770       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14771         # It is most probably a Windows format PATH printed by
14772         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14773         # path with ; separators, and with drive letters. We can handle the
14774         # drive letters (cygwin fileutils understands them), so leave them,
14775         # especially as we might pass files found there to a mingw objdump,
14776         # which wouldn't understand a cygwinified path. Ahh.
14777         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14778       else
14779         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14780       fi
14781       ;;
14782     pw32*)
14783       # pw32 DLLs use 'pw' prefix rather than 'lib'
14784       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14785       ;;
14786     esac
14787     ;;
14788
14789   *)
14790     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14791     ;;
14792   esac
14793   dynamic_linker='Win32 ld.exe'
14794   # FIXME: first we should search . and the directory the executable is in
14795   shlibpath_var=PATH
14796   ;;
14797
14798 darwin* | rhapsody*)
14799   dynamic_linker="$host_os dyld"
14800   version_type=darwin
14801   need_lib_prefix=no
14802   need_version=no
14803   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14804   soname_spec='${libname}${release}${major}$shared_ext'
14805   shlibpath_overrides_runpath=yes
14806   shlibpath_var=DYLD_LIBRARY_PATH
14807   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14808
14809   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14810   ;;
14811
14812 dgux*)
14813   version_type=linux
14814   need_lib_prefix=no
14815   need_version=no
14816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14817   soname_spec='${libname}${release}${shared_ext}$major'
14818   shlibpath_var=LD_LIBRARY_PATH
14819   ;;
14820
14821 freebsd1*)
14822   dynamic_linker=no
14823   ;;
14824
14825 freebsd* | dragonfly*)
14826   # DragonFly does not have aout.  When/if they implement a new
14827   # versioning mechanism, adjust this.
14828   if test -x /usr/bin/objformat; then
14829     objformat=`/usr/bin/objformat`
14830   else
14831     case $host_os in
14832     freebsd[123]*) objformat=aout ;;
14833     *) objformat=elf ;;
14834     esac
14835   fi
14836   version_type=freebsd-$objformat
14837   case $version_type in
14838     freebsd-elf*)
14839       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840       need_version=no
14841       need_lib_prefix=no
14842       ;;
14843     freebsd-*)
14844       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14845       need_version=yes
14846       ;;
14847   esac
14848   shlibpath_var=LD_LIBRARY_PATH
14849   case $host_os in
14850   freebsd2*)
14851     shlibpath_overrides_runpath=yes
14852     ;;
14853   freebsd3.[01]* | freebsdelf3.[01]*)
14854     shlibpath_overrides_runpath=yes
14855     hardcode_into_libs=yes
14856     ;;
14857   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14858   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14859     shlibpath_overrides_runpath=no
14860     hardcode_into_libs=yes
14861     ;;
14862   *) # from 4.6 on, and DragonFly
14863     shlibpath_overrides_runpath=yes
14864     hardcode_into_libs=yes
14865     ;;
14866   esac
14867   ;;
14868
14869 gnu*)
14870   version_type=linux
14871   need_lib_prefix=no
14872   need_version=no
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14874   soname_spec='${libname}${release}${shared_ext}$major'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   hardcode_into_libs=yes
14877   ;;
14878
14879 hpux9* | hpux10* | hpux11*)
14880   # Give a soname corresponding to the major version so that dld.sl refuses to
14881   # link against other versions.
14882   version_type=sunos
14883   need_lib_prefix=no
14884   need_version=no
14885   case $host_cpu in
14886   ia64*)
14887     shrext_cmds='.so'
14888     hardcode_into_libs=yes
14889     dynamic_linker="$host_os dld.so"
14890     shlibpath_var=LD_LIBRARY_PATH
14891     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14893     soname_spec='${libname}${release}${shared_ext}$major'
14894     if test "X$HPUX_IA64_MODE" = X32; then
14895       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14896     else
14897       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14898     fi
14899     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14900     ;;
14901    hppa*64*)
14902      shrext_cmds='.sl'
14903      hardcode_into_libs=yes
14904      dynamic_linker="$host_os dld.sl"
14905      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14906      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908      soname_spec='${libname}${release}${shared_ext}$major'
14909      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14910      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14911      ;;
14912    *)
14913     shrext_cmds='.sl'
14914     dynamic_linker="$host_os dld.sl"
14915     shlibpath_var=SHLIB_PATH
14916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14918     soname_spec='${libname}${release}${shared_ext}$major'
14919     ;;
14920   esac
14921   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14922   postinstall_cmds='chmod 555 $lib'
14923   ;;
14924
14925 interix[3-9]*)
14926   version_type=linux
14927   need_lib_prefix=no
14928   need_version=no
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14932   shlibpath_var=LD_LIBRARY_PATH
14933   shlibpath_overrides_runpath=no
14934   hardcode_into_libs=yes
14935   ;;
14936
14937 irix5* | irix6* | nonstopux*)
14938   case $host_os in
14939     nonstopux*) version_type=nonstopux ;;
14940     *)
14941         if test "$lt_cv_prog_gnu_ld" = yes; then
14942                 version_type=linux
14943         else
14944                 version_type=irix
14945         fi ;;
14946   esac
14947   need_lib_prefix=no
14948   need_version=no
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14951   case $host_os in
14952   irix5* | nonstopux*)
14953     libsuff= shlibsuff=
14954     ;;
14955   *)
14956     case $LD in # libtool.m4 will add one of these switches to LD
14957     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14958       libsuff= shlibsuff= libmagic=32-bit;;
14959     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14960       libsuff=32 shlibsuff=N32 libmagic=N32;;
14961     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14962       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14963     *) libsuff= shlibsuff= libmagic=never-match;;
14964     esac
14965     ;;
14966   esac
14967   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14968   shlibpath_overrides_runpath=no
14969   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14970   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14971   hardcode_into_libs=yes
14972   ;;
14973
14974 # No shared lib support for Linux oldld, aout, or coff.
14975 linux*oldld* | linux*aout* | linux*coff*)
14976   dynamic_linker=no
14977   ;;
14978
14979 # This must be Linux ELF.
14980 linux* | k*bsd*-gnu)
14981   version_type=linux
14982   need_lib_prefix=no
14983   need_version=no
14984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985   soname_spec='${libname}${release}${shared_ext}$major'
14986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14987   shlibpath_var=LD_LIBRARY_PATH
14988   shlibpath_overrides_runpath=no
14989   # This implies no fast_install, which is unacceptable.
14990   # Some rework will be needed to allow for fast_install
14991   # before this can be enabled.
14992   hardcode_into_libs=yes
14993
14994   # Append ld.so.conf contents to the search path
14995   if test -f /etc/ld.so.conf; then
14996     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' ' '`
14997     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14998   fi
14999
15000   # We used to test for /lib/ld.so.1 and disable shared libraries on
15001   # powerpc, because MkLinux only supported shared libraries with the
15002   # GNU dynamic linker.  Since this was broken with cross compilers,
15003   # most powerpc-linux boxes support dynamic linking these days and
15004   # people can always --disable-shared, the test was removed, and we
15005   # assume the GNU/Linux dynamic linker is in use.
15006   dynamic_linker='GNU/Linux ld.so'
15007   ;;
15008
15009 netbsd*)
15010   version_type=sunos
15011   need_lib_prefix=no
15012   need_version=no
15013   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15014     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15015     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15016     dynamic_linker='NetBSD (a.out) ld.so'
15017   else
15018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15019     soname_spec='${libname}${release}${shared_ext}$major'
15020     dynamic_linker='NetBSD ld.elf_so'
15021   fi
15022   shlibpath_var=LD_LIBRARY_PATH
15023   shlibpath_overrides_runpath=yes
15024   hardcode_into_libs=yes
15025   ;;
15026
15027 newsos6)
15028   version_type=linux
15029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   shlibpath_overrides_runpath=yes
15032   ;;
15033
15034 nto-qnx*)
15035   version_type=linux
15036   need_lib_prefix=no
15037   need_version=no
15038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039   soname_spec='${libname}${release}${shared_ext}$major'
15040   shlibpath_var=LD_LIBRARY_PATH
15041   shlibpath_overrides_runpath=yes
15042   ;;
15043
15044 openbsd*)
15045   version_type=sunos
15046   sys_lib_dlsearch_path_spec="/usr/lib"
15047   need_lib_prefix=no
15048   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15049   case $host_os in
15050     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15051     *)                         need_version=no  ;;
15052   esac
15053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15054   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15055   shlibpath_var=LD_LIBRARY_PATH
15056   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15057     case $host_os in
15058       openbsd2.[89] | openbsd2.[89].*)
15059         shlibpath_overrides_runpath=no
15060         ;;
15061       *)
15062         shlibpath_overrides_runpath=yes
15063         ;;
15064       esac
15065   else
15066     shlibpath_overrides_runpath=yes
15067   fi
15068   ;;
15069
15070 os2*)
15071   libname_spec='$name'
15072   shrext_cmds=".dll"
15073   need_lib_prefix=no
15074   library_names_spec='$libname${shared_ext} $libname.a'
15075   dynamic_linker='OS/2 ld.exe'
15076   shlibpath_var=LIBPATH
15077   ;;
15078
15079 osf3* | osf4* | osf5*)
15080   version_type=osf
15081   need_lib_prefix=no
15082   need_version=no
15083   soname_spec='${libname}${release}${shared_ext}$major'
15084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15085   shlibpath_var=LD_LIBRARY_PATH
15086   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15087   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15088   ;;
15089
15090 rdos*)
15091   dynamic_linker=no
15092   ;;
15093
15094 solaris*)
15095   version_type=linux
15096   need_lib_prefix=no
15097   need_version=no
15098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15099   soname_spec='${libname}${release}${shared_ext}$major'
15100   shlibpath_var=LD_LIBRARY_PATH
15101   shlibpath_overrides_runpath=yes
15102   hardcode_into_libs=yes
15103   # ldd complains unless libraries are executable
15104   postinstall_cmds='chmod +x $lib'
15105   ;;
15106
15107 sunos4*)
15108   version_type=sunos
15109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15110   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15111   shlibpath_var=LD_LIBRARY_PATH
15112   shlibpath_overrides_runpath=yes
15113   if test "$with_gnu_ld" = yes; then
15114     need_lib_prefix=no
15115   fi
15116   need_version=yes
15117   ;;
15118
15119 sysv4 | sysv4.3*)
15120   version_type=linux
15121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122   soname_spec='${libname}${release}${shared_ext}$major'
15123   shlibpath_var=LD_LIBRARY_PATH
15124   case $host_vendor in
15125     sni)
15126       shlibpath_overrides_runpath=no
15127       need_lib_prefix=no
15128       export_dynamic_flag_spec='${wl}-Blargedynsym'
15129       runpath_var=LD_RUN_PATH
15130       ;;
15131     siemens)
15132       need_lib_prefix=no
15133       ;;
15134     motorola)
15135       need_lib_prefix=no
15136       need_version=no
15137       shlibpath_overrides_runpath=no
15138       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15139       ;;
15140   esac
15141   ;;
15142
15143 sysv4*MP*)
15144   if test -d /usr/nec ;then
15145     version_type=linux
15146     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15147     soname_spec='$libname${shared_ext}.$major'
15148     shlibpath_var=LD_LIBRARY_PATH
15149   fi
15150   ;;
15151
15152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15153   version_type=freebsd-elf
15154   need_lib_prefix=no
15155   need_version=no
15156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157   soname_spec='${libname}${release}${shared_ext}$major'
15158   shlibpath_var=LD_LIBRARY_PATH
15159   hardcode_into_libs=yes
15160   if test "$with_gnu_ld" = yes; then
15161     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15162     shlibpath_overrides_runpath=no
15163   else
15164     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15165     shlibpath_overrides_runpath=yes
15166     case $host_os in
15167       sco3.2v5*)
15168         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15169         ;;
15170     esac
15171   fi
15172   sys_lib_dlsearch_path_spec='/usr/lib'
15173   ;;
15174
15175 uts4*)
15176   version_type=linux
15177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15178   soname_spec='${libname}${release}${shared_ext}$major'
15179   shlibpath_var=LD_LIBRARY_PATH
15180   ;;
15181
15182 *)
15183   dynamic_linker=no
15184   ;;
15185 esac
15186 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15187 echo "${ECHO_T}$dynamic_linker" >&6; }
15188 test "$dynamic_linker" = no && can_build_shared=no
15189
15190 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15191 if test "$GCC" = yes; then
15192   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15193 fi
15194
15195 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15196 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15197 hardcode_action_F77=
15198 if test -n "$hardcode_libdir_flag_spec_F77" || \
15199    test -n "$runpath_var_F77" || \
15200    test "X$hardcode_automatic_F77" = "Xyes" ; then
15201
15202   # We can hardcode non-existant directories.
15203   if test "$hardcode_direct_F77" != no &&
15204      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15205      # have to relink, otherwise we might link with an installed library
15206      # when we should be linking with a yet-to-be-installed one
15207      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15208      test "$hardcode_minus_L_F77" != no; then
15209     # Linking always hardcodes the temporary library directory.
15210     hardcode_action_F77=relink
15211   else
15212     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15213     hardcode_action_F77=immediate
15214   fi
15215 else
15216   # We cannot hardcode anything, or else we can only hardcode existing
15217   # directories.
15218   hardcode_action_F77=unsupported
15219 fi
15220 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15221 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15222
15223 if test "$hardcode_action_F77" = relink; then
15224   # Fast installation is not supported
15225   enable_fast_install=no
15226 elif test "$shlibpath_overrides_runpath" = yes ||
15227      test "$enable_shared" = no; then
15228   # Fast installation is not necessary
15229   enable_fast_install=needless
15230 fi
15231
15232
15233 # The else clause should only fire when bootstrapping the
15234 # libtool distribution, otherwise you forgot to ship ltmain.sh
15235 # with your package, and you will get complaints that there are
15236 # no rules to generate ltmain.sh.
15237 if test -f "$ltmain"; then
15238   # See if we are running on zsh, and set the options which allow our commands through
15239   # without removal of \ escapes.
15240   if test -n "${ZSH_VERSION+set}" ; then
15241     setopt NO_GLOB_SUBST
15242   fi
15243   # Now quote all the things that may contain metacharacters while being
15244   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15245   # variables and quote the copies for generation of the libtool script.
15246   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15247     SED SHELL STRIP \
15248     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15249     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15250     deplibs_check_method reload_flag reload_cmds need_locks \
15251     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15252     lt_cv_sys_global_symbol_to_c_name_address \
15253     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15254     old_postinstall_cmds old_postuninstall_cmds \
15255     compiler_F77 \
15256     CC_F77 \
15257     LD_F77 \
15258     lt_prog_compiler_wl_F77 \
15259     lt_prog_compiler_pic_F77 \
15260     lt_prog_compiler_static_F77 \
15261     lt_prog_compiler_no_builtin_flag_F77 \
15262     export_dynamic_flag_spec_F77 \
15263     thread_safe_flag_spec_F77 \
15264     whole_archive_flag_spec_F77 \
15265     enable_shared_with_static_runtimes_F77 \
15266     old_archive_cmds_F77 \
15267     old_archive_from_new_cmds_F77 \
15268     predep_objects_F77 \
15269     postdep_objects_F77 \
15270     predeps_F77 \
15271     postdeps_F77 \
15272     compiler_lib_search_path_F77 \
15273     archive_cmds_F77 \
15274     archive_expsym_cmds_F77 \
15275     postinstall_cmds_F77 \
15276     postuninstall_cmds_F77 \
15277     old_archive_from_expsyms_cmds_F77 \
15278     allow_undefined_flag_F77 \
15279     no_undefined_flag_F77 \
15280     export_symbols_cmds_F77 \
15281     hardcode_libdir_flag_spec_F77 \
15282     hardcode_libdir_flag_spec_ld_F77 \
15283     hardcode_libdir_separator_F77 \
15284     hardcode_automatic_F77 \
15285     module_cmds_F77 \
15286     module_expsym_cmds_F77 \
15287     lt_cv_prog_compiler_c_o_F77 \
15288     fix_srcfile_path_F77 \
15289     exclude_expsyms_F77 \
15290     include_expsyms_F77; do
15291
15292     case $var in
15293     old_archive_cmds_F77 | \
15294     old_archive_from_new_cmds_F77 | \
15295     archive_cmds_F77 | \
15296     archive_expsym_cmds_F77 | \
15297     module_cmds_F77 | \
15298     module_expsym_cmds_F77 | \
15299     old_archive_from_expsyms_cmds_F77 | \
15300     export_symbols_cmds_F77 | \
15301     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15302     postinstall_cmds | postuninstall_cmds | \
15303     old_postinstall_cmds | old_postuninstall_cmds | \
15304     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15305       # Double-quote double-evaled strings.
15306       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15307       ;;
15308     *)
15309       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15310       ;;
15311     esac
15312   done
15313
15314   case $lt_echo in
15315   *'\$0 --fallback-echo"')
15316     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15317     ;;
15318   esac
15319
15320 cfgfile="$ofile"
15321
15322   cat <<__EOF__ >> "$cfgfile"
15323 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15324
15325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15326
15327 # Shell to use when invoking shell scripts.
15328 SHELL=$lt_SHELL
15329
15330 # Whether or not to build shared libraries.
15331 build_libtool_libs=$enable_shared
15332
15333 # Whether or not to build static libraries.
15334 build_old_libs=$enable_static
15335
15336 # Whether or not to add -lc for building shared libraries.
15337 build_libtool_need_lc=$archive_cmds_need_lc_F77
15338
15339 # Whether or not to disallow shared libs when runtime libs are static
15340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15341
15342 # Whether or not to optimize for fast installation.
15343 fast_install=$enable_fast_install
15344
15345 # The host system.
15346 host_alias=$host_alias
15347 host=$host
15348 host_os=$host_os
15349
15350 # The build system.
15351 build_alias=$build_alias
15352 build=$build
15353 build_os=$build_os
15354
15355 # An echo program that does not interpret backslashes.
15356 echo=$lt_echo
15357
15358 # The archiver.
15359 AR=$lt_AR
15360 AR_FLAGS=$lt_AR_FLAGS
15361
15362 # A C compiler.
15363 LTCC=$lt_LTCC
15364
15365 # LTCC compiler flags.
15366 LTCFLAGS=$lt_LTCFLAGS
15367
15368 # A language-specific compiler.
15369 CC=$lt_compiler_F77
15370
15371 # Is the compiler the GNU C compiler?
15372 with_gcc=$GCC_F77
15373
15374 # An ERE matcher.
15375 EGREP=$lt_EGREP
15376
15377 # The linker used to build libraries.
15378 LD=$lt_LD_F77
15379
15380 # Whether we need hard or soft links.
15381 LN_S=$lt_LN_S
15382
15383 # A BSD-compatible nm program.
15384 NM=$lt_NM
15385
15386 # A symbol stripping program
15387 STRIP=$lt_STRIP
15388
15389 # Used to examine libraries when file_magic_cmd begins "file"
15390 MAGIC_CMD=$MAGIC_CMD
15391
15392 # Used on cygwin: DLL creation program.
15393 DLLTOOL="$DLLTOOL"
15394
15395 # Used on cygwin: object dumper.
15396 OBJDUMP="$OBJDUMP"
15397
15398 # Used on cygwin: assembler.
15399 AS="$AS"
15400
15401 # The name of the directory that contains temporary libtool files.
15402 objdir=$objdir
15403
15404 # How to create reloadable object files.
15405 reload_flag=$lt_reload_flag
15406 reload_cmds=$lt_reload_cmds
15407
15408 # How to pass a linker flag through the compiler.
15409 wl=$lt_lt_prog_compiler_wl_F77
15410
15411 # Object file suffix (normally "o").
15412 objext="$ac_objext"
15413
15414 # Old archive suffix (normally "a").
15415 libext="$libext"
15416
15417 # Shared library suffix (normally ".so").
15418 shrext_cmds='$shrext_cmds'
15419
15420 # Executable file suffix (normally "").
15421 exeext="$exeext"
15422
15423 # Additional compiler flags for building library objects.
15424 pic_flag=$lt_lt_prog_compiler_pic_F77
15425 pic_mode=$pic_mode
15426
15427 # What is the maximum length of a command?
15428 max_cmd_len=$lt_cv_sys_max_cmd_len
15429
15430 # Does compiler simultaneously support -c and -o options?
15431 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15432
15433 # Must we lock files when doing compilation?
15434 need_locks=$lt_need_locks
15435
15436 # Do we need the lib prefix for modules?
15437 need_lib_prefix=$need_lib_prefix
15438
15439 # Do we need a version for libraries?
15440 need_version=$need_version
15441
15442 # Whether dlopen is supported.
15443 dlopen_support=$enable_dlopen
15444
15445 # Whether dlopen of programs is supported.
15446 dlopen_self=$enable_dlopen_self
15447
15448 # Whether dlopen of statically linked programs is supported.
15449 dlopen_self_static=$enable_dlopen_self_static
15450
15451 # Compiler flag to prevent dynamic linking.
15452 link_static_flag=$lt_lt_prog_compiler_static_F77
15453
15454 # Compiler flag to turn off builtin functions.
15455 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15456
15457 # Compiler flag to allow reflexive dlopens.
15458 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15459
15460 # Compiler flag to generate shared objects directly from archives.
15461 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15462
15463 # Compiler flag to generate thread-safe objects.
15464 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15465
15466 # Library versioning type.
15467 version_type=$version_type
15468
15469 # Format of library name prefix.
15470 libname_spec=$lt_libname_spec
15471
15472 # List of archive names.  First name is the real one, the rest are links.
15473 # The last name is the one that the linker finds with -lNAME.
15474 library_names_spec=$lt_library_names_spec
15475
15476 # The coded name of the library, if different from the real name.
15477 soname_spec=$lt_soname_spec
15478
15479 # Commands used to build and install an old-style archive.
15480 RANLIB=$lt_RANLIB
15481 old_archive_cmds=$lt_old_archive_cmds_F77
15482 old_postinstall_cmds=$lt_old_postinstall_cmds
15483 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15484
15485 # Create an old-style archive from a shared archive.
15486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15487
15488 # Create a temporary old-style archive to link instead of a shared archive.
15489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15490
15491 # Commands used to build and install a shared archive.
15492 archive_cmds=$lt_archive_cmds_F77
15493 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15494 postinstall_cmds=$lt_postinstall_cmds
15495 postuninstall_cmds=$lt_postuninstall_cmds
15496
15497 # Commands used to build a loadable module (assumed same as above if empty)
15498 module_cmds=$lt_module_cmds_F77
15499 module_expsym_cmds=$lt_module_expsym_cmds_F77
15500
15501 # Commands to strip libraries.
15502 old_striplib=$lt_old_striplib
15503 striplib=$lt_striplib
15504
15505 # Dependencies to place before the objects being linked to create a
15506 # shared library.
15507 predep_objects=$lt_predep_objects_F77
15508
15509 # Dependencies to place after the objects being linked to create a
15510 # shared library.
15511 postdep_objects=$lt_postdep_objects_F77
15512
15513 # Dependencies to place before the objects being linked to create a
15514 # shared library.
15515 predeps=$lt_predeps_F77
15516
15517 # Dependencies to place after the objects being linked to create a
15518 # shared library.
15519 postdeps=$lt_postdeps_F77
15520
15521 # The library search path used internally by the compiler when linking
15522 # a shared library.
15523 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15524
15525 # Method to check whether dependent libraries are shared objects.
15526 deplibs_check_method=$lt_deplibs_check_method
15527
15528 # Command to use when deplibs_check_method == file_magic.
15529 file_magic_cmd=$lt_file_magic_cmd
15530
15531 # Flag that allows shared libraries with undefined symbols to be built.
15532 allow_undefined_flag=$lt_allow_undefined_flag_F77
15533
15534 # Flag that forces no undefined symbols.
15535 no_undefined_flag=$lt_no_undefined_flag_F77
15536
15537 # Commands used to finish a libtool library installation in a directory.
15538 finish_cmds=$lt_finish_cmds
15539
15540 # Same as above, but a single script fragment to be evaled but not shown.
15541 finish_eval=$lt_finish_eval
15542
15543 # Take the output of nm and produce a listing of raw symbols and C names.
15544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15545
15546 # Transform the output of nm in a proper C declaration
15547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15548
15549 # Transform the output of nm in a C name address pair
15550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15551
15552 # This is the shared library runtime path variable.
15553 runpath_var=$runpath_var
15554
15555 # This is the shared library path variable.
15556 shlibpath_var=$shlibpath_var
15557
15558 # Is shlibpath searched before the hard-coded library search path?
15559 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15560
15561 # How to hardcode a shared library path into an executable.
15562 hardcode_action=$hardcode_action_F77
15563
15564 # Whether we should hardcode library paths into libraries.
15565 hardcode_into_libs=$hardcode_into_libs
15566
15567 # Flag to hardcode \$libdir into a binary during linking.
15568 # This must work even if \$libdir does not exist.
15569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15570
15571 # If ld is used when linking, flag to hardcode \$libdir into
15572 # a binary during linking. This must work even if \$libdir does
15573 # not exist.
15574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15575
15576 # Whether we need a single -rpath flag with a separated argument.
15577 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15578
15579 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15580 # resulting binary.
15581 hardcode_direct=$hardcode_direct_F77
15582
15583 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15584 # resulting binary.
15585 hardcode_minus_L=$hardcode_minus_L_F77
15586
15587 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15588 # the resulting binary.
15589 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15590
15591 # Set to yes if building a shared library automatically hardcodes DIR into the library
15592 # and all subsequent libraries and executables linked against it.
15593 hardcode_automatic=$hardcode_automatic_F77
15594
15595 # Variables whose values should be saved in libtool wrapper scripts and
15596 # restored at relink time.
15597 variables_saved_for_relink="$variables_saved_for_relink"
15598
15599 # Whether libtool must link a program against all its dependency libraries.
15600 link_all_deplibs=$link_all_deplibs_F77
15601
15602 # Compile-time system search path for libraries
15603 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15604
15605 # Run-time system search path for libraries
15606 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15607
15608 # Fix the shell variable \$srcfile for the compiler.
15609 fix_srcfile_path=$lt_fix_srcfile_path
15610
15611 # Set to yes if exported symbols are required.
15612 always_export_symbols=$always_export_symbols_F77
15613
15614 # The commands to list exported symbols.
15615 export_symbols_cmds=$lt_export_symbols_cmds_F77
15616
15617 # The commands to extract the exported symbol list from a shared archive.
15618 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15619
15620 # Symbols that should not be listed in the preloaded symbols.
15621 exclude_expsyms=$lt_exclude_expsyms_F77
15622
15623 # Symbols that must always be exported.
15624 include_expsyms=$lt_include_expsyms_F77
15625
15626 # ### END LIBTOOL TAG CONFIG: $tagname
15627
15628 __EOF__
15629
15630
15631 else
15632   # If there is no Makefile yet, we rely on a make rule to execute
15633   # `config.status --recheck' to rerun these tests and create the
15634   # libtool script then.
15635   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15636   if test -f "$ltmain_in"; then
15637     test -f Makefile && make "$ltmain"
15638   fi
15639 fi
15640
15641
15642 ac_ext=c
15643 ac_cpp='$CPP $CPPFLAGS'
15644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15647
15648 CC="$lt_save_CC"
15649
15650         else
15651           tagname=""
15652         fi
15653         ;;
15654
15655       GCJ)
15656         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15657
15658
15659 # Source file extension for Java test sources.
15660 ac_ext=java
15661
15662 # Object file extension for compiled Java test sources.
15663 objext=o
15664 objext_GCJ=$objext
15665
15666 # Code to be used in simple compile tests
15667 lt_simple_compile_test_code="class foo {}"
15668
15669 # Code to be used in simple link tests
15670 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15671
15672 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15673
15674 # If no C compiler was specified, use CC.
15675 LTCC=${LTCC-"$CC"}
15676
15677 # If no C compiler flags were specified, use CFLAGS.
15678 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15679
15680 # Allow CC to be a program name with arguments.
15681 compiler=$CC
15682
15683
15684 # save warnings/boilerplate of simple test code
15685 ac_outfile=conftest.$ac_objext
15686 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15687 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15688 _lt_compiler_boilerplate=`cat conftest.err`
15689 $rm conftest*
15690
15691 ac_outfile=conftest.$ac_objext
15692 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15693 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15694 _lt_linker_boilerplate=`cat conftest.err`
15695 $rm conftest*
15696
15697
15698 # Allow CC to be a program name with arguments.
15699 lt_save_CC="$CC"
15700 CC=${GCJ-"gcj"}
15701 compiler=$CC
15702 compiler_GCJ=$CC
15703 for cc_temp in $compiler""; do
15704   case $cc_temp in
15705     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15706     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15707     \-*) ;;
15708     *) break;;
15709   esac
15710 done
15711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15712
15713
15714 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15715 archive_cmds_need_lc_GCJ=no
15716
15717 old_archive_cmds_GCJ=$old_archive_cmds
15718
15719
15720 lt_prog_compiler_no_builtin_flag_GCJ=
15721
15722 if test "$GCC" = yes; then
15723   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15724
15725
15726 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15727 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15728 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   lt_cv_prog_compiler_rtti_exceptions=no
15732   ac_outfile=conftest.$ac_objext
15733    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15734    lt_compiler_flag="-fno-rtti -fno-exceptions"
15735    # Insert the option either (1) after the last *FLAGS variable, or
15736    # (2) before a word containing "conftest.", or (3) at the end.
15737    # Note that $ac_compile itself does not contain backslashes and begins
15738    # with a dollar sign (not a hyphen), so the echo should work correctly.
15739    # The option is referenced via a variable to avoid confusing sed.
15740    lt_compile=`echo "$ac_compile" | $SED \
15741    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15743    -e 's:$: $lt_compiler_flag:'`
15744    (eval echo "\"\$as_me:15744: $lt_compile\"" >&5)
15745    (eval "$lt_compile" 2>conftest.err)
15746    ac_status=$?
15747    cat conftest.err >&5
15748    echo "$as_me:15748: \$? = $ac_status" >&5
15749    if (exit $ac_status) && test -s "$ac_outfile"; then
15750      # The compiler can only warn and ignore the option if not recognized
15751      # So say no if there are warnings other than the usual output.
15752      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15753      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15754      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15755        lt_cv_prog_compiler_rtti_exceptions=yes
15756      fi
15757    fi
15758    $rm conftest*
15759
15760 fi
15761 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15762 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15763
15764 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15765     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15766 else
15767     :
15768 fi
15769
15770 fi
15771
15772 lt_prog_compiler_wl_GCJ=
15773 lt_prog_compiler_pic_GCJ=
15774 lt_prog_compiler_static_GCJ=
15775
15776 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15778
15779   if test "$GCC" = yes; then
15780     lt_prog_compiler_wl_GCJ='-Wl,'
15781     lt_prog_compiler_static_GCJ='-static'
15782
15783     case $host_os in
15784       aix*)
15785       # All AIX code is PIC.
15786       if test "$host_cpu" = ia64; then
15787         # AIX 5 now supports IA64 processor
15788         lt_prog_compiler_static_GCJ='-Bstatic'
15789       fi
15790       ;;
15791
15792     amigaos*)
15793       # FIXME: we need at least 68020 code to build shared libraries, but
15794       # adding the `-m68020' flag to GCC prevents building anything better,
15795       # like `-m68040'.
15796       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15797       ;;
15798
15799     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15800       # PIC is the default for these OSes.
15801       ;;
15802
15803     mingw* | cygwin* | pw32* | os2*)
15804       # This hack is so that the source file can tell whether it is being
15805       # built for inclusion in a dll (and should export symbols for example).
15806       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15807       # (--disable-auto-import) libraries
15808       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15809       ;;
15810
15811     darwin* | rhapsody*)
15812       # PIC is the default on this platform
15813       # Common symbols not allowed in MH_DYLIB files
15814       lt_prog_compiler_pic_GCJ='-fno-common'
15815       ;;
15816
15817     interix[3-9]*)
15818       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15819       # Instead, we relocate shared libraries at runtime.
15820       ;;
15821
15822     msdosdjgpp*)
15823       # Just because we use GCC doesn't mean we suddenly get shared libraries
15824       # on systems that don't support them.
15825       lt_prog_compiler_can_build_shared_GCJ=no
15826       enable_shared=no
15827       ;;
15828
15829     sysv4*MP*)
15830       if test -d /usr/nec; then
15831         lt_prog_compiler_pic_GCJ=-Kconform_pic
15832       fi
15833       ;;
15834
15835     hpux*)
15836       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15837       # not for PA HP-UX.
15838       case $host_cpu in
15839       hppa*64*|ia64*)
15840         # +Z the default
15841         ;;
15842       *)
15843         lt_prog_compiler_pic_GCJ='-fPIC'
15844         ;;
15845       esac
15846       ;;
15847
15848     *)
15849       lt_prog_compiler_pic_GCJ='-fPIC'
15850       ;;
15851     esac
15852   else
15853     # PORTME Check for flag to pass linker flags through the system compiler.
15854     case $host_os in
15855     aix*)
15856       lt_prog_compiler_wl_GCJ='-Wl,'
15857       if test "$host_cpu" = ia64; then
15858         # AIX 5 now supports IA64 processor
15859         lt_prog_compiler_static_GCJ='-Bstatic'
15860       else
15861         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15862       fi
15863       ;;
15864       darwin*)
15865         # PIC is the default on this platform
15866         # Common symbols not allowed in MH_DYLIB files
15867        case $cc_basename in
15868          xlc*)
15869          lt_prog_compiler_pic_GCJ='-qnocommon'
15870          lt_prog_compiler_wl_GCJ='-Wl,'
15871          ;;
15872        esac
15873        ;;
15874
15875     mingw* | cygwin* | pw32* | os2*)
15876       # This hack is so that the source file can tell whether it is being
15877       # built for inclusion in a dll (and should export symbols for example).
15878       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15879       ;;
15880
15881     hpux9* | hpux10* | hpux11*)
15882       lt_prog_compiler_wl_GCJ='-Wl,'
15883       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15884       # not for PA HP-UX.
15885       case $host_cpu in
15886       hppa*64*|ia64*)
15887         # +Z the default
15888         ;;
15889       *)
15890         lt_prog_compiler_pic_GCJ='+Z'
15891         ;;
15892       esac
15893       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15894       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15895       ;;
15896
15897     irix5* | irix6* | nonstopux*)
15898       lt_prog_compiler_wl_GCJ='-Wl,'
15899       # PIC (with -KPIC) is the default.
15900       lt_prog_compiler_static_GCJ='-non_shared'
15901       ;;
15902
15903     newsos6)
15904       lt_prog_compiler_pic_GCJ='-KPIC'
15905       lt_prog_compiler_static_GCJ='-Bstatic'
15906       ;;
15907
15908     linux* | k*bsd*-gnu)
15909       case $cc_basename in
15910       icc* | ecc*)
15911         lt_prog_compiler_wl_GCJ='-Wl,'
15912         lt_prog_compiler_pic_GCJ='-KPIC'
15913         lt_prog_compiler_static_GCJ='-static'
15914         ;;
15915       pgcc* | pgf77* | pgf90* | pgf95*)
15916         # Portland Group compilers (*not* the Pentium gcc compiler,
15917         # which looks to be a dead project)
15918         lt_prog_compiler_wl_GCJ='-Wl,'
15919         lt_prog_compiler_pic_GCJ='-fpic'
15920         lt_prog_compiler_static_GCJ='-Bstatic'
15921         ;;
15922       ccc*)
15923         lt_prog_compiler_wl_GCJ='-Wl,'
15924         # All Alpha code is PIC.
15925         lt_prog_compiler_static_GCJ='-non_shared'
15926         ;;
15927       *)
15928         case `$CC -V 2>&1 | sed 5q` in
15929         *Sun\ C*)
15930           # Sun C 5.9
15931           lt_prog_compiler_pic_GCJ='-KPIC'
15932           lt_prog_compiler_static_GCJ='-Bstatic'
15933           lt_prog_compiler_wl_GCJ='-Wl,'
15934           ;;
15935         *Sun\ F*)
15936           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15937           lt_prog_compiler_pic_GCJ='-KPIC'
15938           lt_prog_compiler_static_GCJ='-Bstatic'
15939           lt_prog_compiler_wl_GCJ=''
15940           ;;
15941         esac
15942         ;;
15943       esac
15944       ;;
15945
15946     osf3* | osf4* | osf5*)
15947       lt_prog_compiler_wl_GCJ='-Wl,'
15948       # All OSF/1 code is PIC.
15949       lt_prog_compiler_static_GCJ='-non_shared'
15950       ;;
15951
15952     rdos*)
15953       lt_prog_compiler_static_GCJ='-non_shared'
15954       ;;
15955
15956     solaris*)
15957       lt_prog_compiler_pic_GCJ='-KPIC'
15958       lt_prog_compiler_static_GCJ='-Bstatic'
15959       case $cc_basename in
15960       f77* | f90* | f95*)
15961         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15962       *)
15963         lt_prog_compiler_wl_GCJ='-Wl,';;
15964       esac
15965       ;;
15966
15967     sunos4*)
15968       lt_prog_compiler_wl_GCJ='-Qoption ld '
15969       lt_prog_compiler_pic_GCJ='-PIC'
15970       lt_prog_compiler_static_GCJ='-Bstatic'
15971       ;;
15972
15973     sysv4 | sysv4.2uw2* | sysv4.3*)
15974       lt_prog_compiler_wl_GCJ='-Wl,'
15975       lt_prog_compiler_pic_GCJ='-KPIC'
15976       lt_prog_compiler_static_GCJ='-Bstatic'
15977       ;;
15978
15979     sysv4*MP*)
15980       if test -d /usr/nec ;then
15981         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15982         lt_prog_compiler_static_GCJ='-Bstatic'
15983       fi
15984       ;;
15985
15986     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15987       lt_prog_compiler_wl_GCJ='-Wl,'
15988       lt_prog_compiler_pic_GCJ='-KPIC'
15989       lt_prog_compiler_static_GCJ='-Bstatic'
15990       ;;
15991
15992     unicos*)
15993       lt_prog_compiler_wl_GCJ='-Wl,'
15994       lt_prog_compiler_can_build_shared_GCJ=no
15995       ;;
15996
15997     uts4*)
15998       lt_prog_compiler_pic_GCJ='-pic'
15999       lt_prog_compiler_static_GCJ='-Bstatic'
16000       ;;
16001
16002     *)
16003       lt_prog_compiler_can_build_shared_GCJ=no
16004       ;;
16005     esac
16006   fi
16007
16008 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16009 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16010
16011 #
16012 # Check to make sure the PIC flag actually works.
16013 #
16014 if test -n "$lt_prog_compiler_pic_GCJ"; then
16015
16016 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16017 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16018 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   lt_prog_compiler_pic_works_GCJ=no
16022   ac_outfile=conftest.$ac_objext
16023    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16024    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16025    # Insert the option either (1) after the last *FLAGS variable, or
16026    # (2) before a word containing "conftest.", or (3) at the end.
16027    # Note that $ac_compile itself does not contain backslashes and begins
16028    # with a dollar sign (not a hyphen), so the echo should work correctly.
16029    # The option is referenced via a variable to avoid confusing sed.
16030    lt_compile=`echo "$ac_compile" | $SED \
16031    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16032    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16033    -e 's:$: $lt_compiler_flag:'`
16034    (eval echo "\"\$as_me:16034: $lt_compile\"" >&5)
16035    (eval "$lt_compile" 2>conftest.err)
16036    ac_status=$?
16037    cat conftest.err >&5
16038    echo "$as_me:16038: \$? = $ac_status" >&5
16039    if (exit $ac_status) && test -s "$ac_outfile"; then
16040      # The compiler can only warn and ignore the option if not recognized
16041      # So say no if there are warnings other than the usual output.
16042      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16043      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16044      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16045        lt_prog_compiler_pic_works_GCJ=yes
16046      fi
16047    fi
16048    $rm conftest*
16049
16050 fi
16051 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16052 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16053
16054 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16055     case $lt_prog_compiler_pic_GCJ in
16056      "" | " "*) ;;
16057      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16058      esac
16059 else
16060     lt_prog_compiler_pic_GCJ=
16061      lt_prog_compiler_can_build_shared_GCJ=no
16062 fi
16063
16064 fi
16065 case $host_os in
16066   # For platforms which do not support PIC, -DPIC is meaningless:
16067   *djgpp*)
16068     lt_prog_compiler_pic_GCJ=
16069     ;;
16070   *)
16071     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16072     ;;
16073 esac
16074
16075 #
16076 # Check to make sure the static flag actually works.
16077 #
16078 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16079 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16080 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16081 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16082   echo $ECHO_N "(cached) $ECHO_C" >&6
16083 else
16084   lt_prog_compiler_static_works_GCJ=no
16085    save_LDFLAGS="$LDFLAGS"
16086    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16087    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16088    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16089      # The linker can only warn and ignore the option if not recognized
16090      # So say no if there are warnings
16091      if test -s conftest.err; then
16092        # Append any errors to the config.log.
16093        cat conftest.err 1>&5
16094        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16095        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16096        if diff conftest.exp conftest.er2 >/dev/null; then
16097          lt_prog_compiler_static_works_GCJ=yes
16098        fi
16099      else
16100        lt_prog_compiler_static_works_GCJ=yes
16101      fi
16102    fi
16103    $rm conftest*
16104    LDFLAGS="$save_LDFLAGS"
16105
16106 fi
16107 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16108 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16109
16110 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16111     :
16112 else
16113     lt_prog_compiler_static_GCJ=
16114 fi
16115
16116
16117 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16118 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16119 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16120   echo $ECHO_N "(cached) $ECHO_C" >&6
16121 else
16122   lt_cv_prog_compiler_c_o_GCJ=no
16123    $rm -r conftest 2>/dev/null
16124    mkdir conftest
16125    cd conftest
16126    mkdir out
16127    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16128
16129    lt_compiler_flag="-o out/conftest2.$ac_objext"
16130    # Insert the option either (1) after the last *FLAGS variable, or
16131    # (2) before a word containing "conftest.", or (3) at the end.
16132    # Note that $ac_compile itself does not contain backslashes and begins
16133    # with a dollar sign (not a hyphen), so the echo should work correctly.
16134    lt_compile=`echo "$ac_compile" | $SED \
16135    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16136    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16137    -e 's:$: $lt_compiler_flag:'`
16138    (eval echo "\"\$as_me:16138: $lt_compile\"" >&5)
16139    (eval "$lt_compile" 2>out/conftest.err)
16140    ac_status=$?
16141    cat out/conftest.err >&5
16142    echo "$as_me:16142: \$? = $ac_status" >&5
16143    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16144    then
16145      # The compiler can only warn and ignore the option if not recognized
16146      # So say no if there are warnings
16147      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16148      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16149      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16150        lt_cv_prog_compiler_c_o_GCJ=yes
16151      fi
16152    fi
16153    chmod u+w . 2>&5
16154    $rm conftest*
16155    # SGI C++ compiler will create directory out/ii_files/ for
16156    # template instantiation
16157    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16158    $rm out/* && rmdir out
16159    cd ..
16160    rmdir conftest
16161    $rm conftest*
16162
16163 fi
16164 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16165 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16166
16167
16168 hard_links="nottested"
16169 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16170   # do not overwrite the value of need_locks provided by the user
16171   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16172 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16173   hard_links=yes
16174   $rm conftest*
16175   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16176   touch conftest.a
16177   ln conftest.a conftest.b 2>&5 || hard_links=no
16178   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16179   { echo "$as_me:$LINENO: result: $hard_links" >&5
16180 echo "${ECHO_T}$hard_links" >&6; }
16181   if test "$hard_links" = no; then
16182     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16183 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16184     need_locks=warn
16185   fi
16186 else
16187   need_locks=no
16188 fi
16189
16190 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16191 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16192
16193   runpath_var=
16194   allow_undefined_flag_GCJ=
16195   enable_shared_with_static_runtimes_GCJ=no
16196   archive_cmds_GCJ=
16197   archive_expsym_cmds_GCJ=
16198   old_archive_From_new_cmds_GCJ=
16199   old_archive_from_expsyms_cmds_GCJ=
16200   export_dynamic_flag_spec_GCJ=
16201   whole_archive_flag_spec_GCJ=
16202   thread_safe_flag_spec_GCJ=
16203   hardcode_libdir_flag_spec_GCJ=
16204   hardcode_libdir_flag_spec_ld_GCJ=
16205   hardcode_libdir_separator_GCJ=
16206   hardcode_direct_GCJ=no
16207   hardcode_minus_L_GCJ=no
16208   hardcode_shlibpath_var_GCJ=unsupported
16209   link_all_deplibs_GCJ=unknown
16210   hardcode_automatic_GCJ=no
16211   module_cmds_GCJ=
16212   module_expsym_cmds_GCJ=
16213   always_export_symbols_GCJ=no
16214   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16215   # include_expsyms should be a list of space-separated symbols to be *always*
16216   # included in the symbol list
16217   include_expsyms_GCJ=
16218   # exclude_expsyms can be an extended regexp of symbols to exclude
16219   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16220   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16221   # as well as any symbol that contains `d'.
16222   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16223   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16224   # platforms (ab)use it in PIC code, but their linkers get confused if
16225   # the symbol is explicitly referenced.  Since portable code cannot
16226   # rely on this symbol name, it's probably fine to never include it in
16227   # preloaded symbol tables.
16228   extract_expsyms_cmds=
16229   # Just being paranoid about ensuring that cc_basename is set.
16230   for cc_temp in $compiler""; do
16231   case $cc_temp in
16232     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16233     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16234     \-*) ;;
16235     *) break;;
16236   esac
16237 done
16238 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16239
16240   case $host_os in
16241   cygwin* | mingw* | pw32*)
16242     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16243     # When not using gcc, we currently assume that we are using
16244     # Microsoft Visual C++.
16245     if test "$GCC" != yes; then
16246       with_gnu_ld=no
16247     fi
16248     ;;
16249   interix*)
16250     # we just hope/assume this is gcc and not c89 (= MSVC++)
16251     with_gnu_ld=yes
16252     ;;
16253   openbsd*)
16254     with_gnu_ld=no
16255     ;;
16256   esac
16257
16258   ld_shlibs_GCJ=yes
16259   if test "$with_gnu_ld" = yes; then
16260     # If archive_cmds runs LD, not CC, wlarc should be empty
16261     wlarc='${wl}'
16262
16263     # Set some defaults for GNU ld with shared library support. These
16264     # are reset later if shared libraries are not supported. Putting them
16265     # here allows them to be overridden if necessary.
16266     runpath_var=LD_RUN_PATH
16267     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16268     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16269     # ancient GNU ld didn't support --whole-archive et. al.
16270     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16271         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16272       else
16273         whole_archive_flag_spec_GCJ=
16274     fi
16275     supports_anon_versioning=no
16276     case `$LD -v 2>/dev/null` in
16277       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16278       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16279       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16280       *\ 2.11.*) ;; # other 2.11 versions
16281       *) supports_anon_versioning=yes ;;
16282     esac
16283
16284     # See if GNU ld supports shared libraries.
16285     case $host_os in
16286     aix3* | aix4* | aix5*)
16287       # On AIX/PPC, the GNU linker is very broken
16288       if test "$host_cpu" != ia64; then
16289         ld_shlibs_GCJ=no
16290         cat <<EOF 1>&2
16291
16292 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16293 *** to be unable to reliably create shared libraries on AIX.
16294 *** Therefore, libtool is disabling shared libraries support.  If you
16295 *** really care for shared libraries, you may want to modify your PATH
16296 *** so that a non-GNU linker is found, and then restart.
16297
16298 EOF
16299       fi
16300       ;;
16301
16302     amigaos*)
16303       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)'
16304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16305       hardcode_minus_L_GCJ=yes
16306
16307       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16308       # that the semantics of dynamic libraries on AmigaOS, at least up
16309       # to version 4, is to share data among multiple programs linked
16310       # with the same dynamic library.  Since this doesn't match the
16311       # behavior of shared libraries on other platforms, we can't use
16312       # them.
16313       ld_shlibs_GCJ=no
16314       ;;
16315
16316     beos*)
16317       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16318         allow_undefined_flag_GCJ=unsupported
16319         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16320         # support --undefined.  This deserves some investigation.  FIXME
16321         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16322       else
16323         ld_shlibs_GCJ=no
16324       fi
16325       ;;
16326
16327     cygwin* | mingw* | pw32*)
16328       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16329       # as there is no search path for DLLs.
16330       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16331       allow_undefined_flag_GCJ=unsupported
16332       always_export_symbols_GCJ=no
16333       enable_shared_with_static_runtimes_GCJ=yes
16334       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16335
16336       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16337         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16338         # If the export-symbols file already is a .def file (1st line
16339         # is EXPORTS), use it as is; otherwise, prepend...
16340         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16341           cp $export_symbols $output_objdir/$soname.def;
16342         else
16343           echo EXPORTS > $output_objdir/$soname.def;
16344           cat $export_symbols >> $output_objdir/$soname.def;
16345         fi~
16346         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16347       else
16348         ld_shlibs_GCJ=no
16349       fi
16350       ;;
16351
16352     interix[3-9]*)
16353       hardcode_direct_GCJ=no
16354       hardcode_shlibpath_var_GCJ=no
16355       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16356       export_dynamic_flag_spec_GCJ='${wl}-E'
16357       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16358       # Instead, shared libraries are loaded at an image base (0x10000000 by
16359       # default) and relocated if they conflict, which is a slow very memory
16360       # consuming and fragmenting process.  To avoid this, we pick a random,
16361       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16362       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16363       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'
16364       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'
16365       ;;
16366
16367     gnu* | linux* | k*bsd*-gnu)
16368       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16369         tmp_addflag=
16370         case $cc_basename,$host_cpu in
16371         pgcc*)                          # Portland Group C compiler
16372           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'
16373           tmp_addflag=' $pic_flag'
16374           ;;
16375         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16376           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'
16377           tmp_addflag=' $pic_flag -Mnomain' ;;
16378         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16379           tmp_addflag=' -i_dynamic' ;;
16380         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16381           tmp_addflag=' -i_dynamic -nofor_main' ;;
16382         ifc* | ifort*)                  # Intel Fortran compiler
16383           tmp_addflag=' -nofor_main' ;;
16384         esac
16385         case `$CC -V 2>&1 | sed 5q` in
16386         *Sun\ C*)                       # Sun C 5.9
16387           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'
16388           tmp_sharedflag='-G' ;;
16389         *Sun\ F*)                       # Sun Fortran 8.3
16390           tmp_sharedflag='-G' ;;
16391         *)
16392           tmp_sharedflag='-shared' ;;
16393         esac
16394         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16395
16396         if test $supports_anon_versioning = yes; then
16397           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16398   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16399   $echo "local: *; };" >> $output_objdir/$libname.ver~
16400           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16401         fi
16402       else
16403         ld_shlibs_GCJ=no
16404       fi
16405       ;;
16406
16407     netbsd*)
16408       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16409         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16410         wlarc=
16411       else
16412         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16413         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16414       fi
16415       ;;
16416
16417     solaris*)
16418       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16419         ld_shlibs_GCJ=no
16420         cat <<EOF 1>&2
16421
16422 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16423 *** create shared libraries on Solaris systems.  Therefore, libtool
16424 *** is disabling shared libraries support.  We urge you to upgrade GNU
16425 *** binutils to release 2.9.1 or newer.  Another option is to modify
16426 *** your PATH or compiler configuration so that the native linker is
16427 *** used, and then restart.
16428
16429 EOF
16430       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16431         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16432         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16433       else
16434         ld_shlibs_GCJ=no
16435       fi
16436       ;;
16437
16438     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16439       case `$LD -v 2>&1` in
16440         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16441         ld_shlibs_GCJ=no
16442         cat <<_LT_EOF 1>&2
16443
16444 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16445 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16446 *** is disabling shared libraries support.  We urge you to upgrade GNU
16447 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16448 *** your PATH or compiler configuration so that the native linker is
16449 *** used, and then restart.
16450
16451 _LT_EOF
16452         ;;
16453         *)
16454           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16455             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16456             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16457             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16458           else
16459             ld_shlibs_GCJ=no
16460           fi
16461         ;;
16462       esac
16463       ;;
16464
16465     sunos4*)
16466       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16467       wlarc=
16468       hardcode_direct_GCJ=yes
16469       hardcode_shlibpath_var_GCJ=no
16470       ;;
16471
16472     *)
16473       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16476       else
16477         ld_shlibs_GCJ=no
16478       fi
16479       ;;
16480     esac
16481
16482     if test "$ld_shlibs_GCJ" = no; then
16483       runpath_var=
16484       hardcode_libdir_flag_spec_GCJ=
16485       export_dynamic_flag_spec_GCJ=
16486       whole_archive_flag_spec_GCJ=
16487     fi
16488   else
16489     # PORTME fill in a description of your system's linker (not GNU ld)
16490     case $host_os in
16491     aix3*)
16492       allow_undefined_flag_GCJ=unsupported
16493       always_export_symbols_GCJ=yes
16494       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'
16495       # Note: this linker hardcodes the directories in LIBPATH if there
16496       # are no directories specified by -L.
16497       hardcode_minus_L_GCJ=yes
16498       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16499         # Neither direct hardcoding nor static linking is supported with a
16500         # broken collect2.
16501         hardcode_direct_GCJ=unsupported
16502       fi
16503       ;;
16504
16505     aix4* | aix5*)
16506       if test "$host_cpu" = ia64; then
16507         # On IA64, the linker does run time linking by default, so we don't
16508         # have to do anything special.
16509         aix_use_runtimelinking=no
16510         exp_sym_flag='-Bexport'
16511         no_entry_flag=""
16512       else
16513         # If we're using GNU nm, then we don't want the "-C" option.
16514         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16515         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16516           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'
16517         else
16518           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'
16519         fi
16520         aix_use_runtimelinking=no
16521
16522         # Test if we are trying to use run time linking or normal
16523         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16524         # need to do runtime linking.
16525         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16526           for ld_flag in $LDFLAGS; do
16527           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16528             aix_use_runtimelinking=yes
16529             break
16530           fi
16531           done
16532           ;;
16533         esac
16534
16535         exp_sym_flag='-bexport'
16536         no_entry_flag='-bnoentry'
16537       fi
16538
16539       # When large executables or shared objects are built, AIX ld can
16540       # have problems creating the table of contents.  If linking a library
16541       # or program results in "error TOC overflow" add -mminimal-toc to
16542       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16543       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16544
16545       archive_cmds_GCJ=''
16546       hardcode_direct_GCJ=yes
16547       hardcode_libdir_separator_GCJ=':'
16548       link_all_deplibs_GCJ=yes
16549
16550       if test "$GCC" = yes; then
16551         case $host_os in aix4.[012]|aix4.[012].*)
16552         # We only want to do this on AIX 4.2 and lower, the check
16553         # below for broken collect2 doesn't work under 4.3+
16554           collect2name=`${CC} -print-prog-name=collect2`
16555           if test -f "$collect2name" && \
16556            strings "$collect2name" | grep resolve_lib_name >/dev/null
16557           then
16558           # We have reworked collect2
16559           :
16560           else
16561           # We have old collect2
16562           hardcode_direct_GCJ=unsupported
16563           # It fails to find uninstalled libraries when the uninstalled
16564           # path is not listed in the libpath.  Setting hardcode_minus_L
16565           # to unsupported forces relinking
16566           hardcode_minus_L_GCJ=yes
16567           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16568           hardcode_libdir_separator_GCJ=
16569           fi
16570           ;;
16571         esac
16572         shared_flag='-shared'
16573         if test "$aix_use_runtimelinking" = yes; then
16574           shared_flag="$shared_flag "'${wl}-G'
16575         fi
16576       else
16577         # not using gcc
16578         if test "$host_cpu" = ia64; then
16579         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16580         # chokes on -Wl,-G. The following line is correct:
16581           shared_flag='-G'
16582         else
16583           if test "$aix_use_runtimelinking" = yes; then
16584             shared_flag='${wl}-G'
16585           else
16586             shared_flag='${wl}-bM:SRE'
16587           fi
16588         fi
16589       fi
16590
16591       # It seems that -bexpall does not export symbols beginning with
16592       # underscore (_), so it is better to generate a list of symbols to export.
16593       always_export_symbols_GCJ=yes
16594       if test "$aix_use_runtimelinking" = yes; then
16595         # Warning - without using the other runtime loading flags (-brtl),
16596         # -berok will link without error, but may produce a broken library.
16597         allow_undefined_flag_GCJ='-berok'
16598        # Determine the default libpath from the value encoded in an empty executable.
16599        cat >conftest.$ac_ext <<_ACEOF
16600 /* confdefs.h.  */
16601 _ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h.  */
16605
16606 int
16607 main ()
16608 {
16609
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext conftest$ac_exeext
16615 if { (ac_try="$ac_link"
16616 case "(($ac_try" in
16617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16618   *) ac_try_echo=$ac_try;;
16619 esac
16620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16621   (eval "$ac_link") 2>conftest.er1
16622   ac_status=$?
16623   grep -v '^ *+' conftest.er1 >conftest.err
16624   rm -f conftest.er1
16625   cat conftest.err >&5
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } && {
16628          test -z "$ac_c_werror_flag" ||
16629          test ! -s conftest.err
16630        } && test -s conftest$ac_exeext &&
16631        $as_test_x conftest$ac_exeext; then
16632
16633 lt_aix_libpath_sed='
16634     /Import File Strings/,/^$/ {
16635         /^0/ {
16636             s/^0  *\(.*\)$/\1/
16637             p
16638         }
16639     }'
16640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16641 # Check for a 64-bit object if we didn't find anything.
16642 if test -z "$aix_libpath"; then
16643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16644 fi
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649
16650 fi
16651
16652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16653       conftest$ac_exeext conftest.$ac_ext
16654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16655
16656        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16657         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"
16658        else
16659         if test "$host_cpu" = ia64; then
16660           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16661           allow_undefined_flag_GCJ="-z nodefs"
16662           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"
16663         else
16664          # Determine the default libpath from the value encoded in an empty executable.
16665          cat >conftest.$ac_ext <<_ACEOF
16666 /* confdefs.h.  */
16667 _ACEOF
16668 cat confdefs.h >>conftest.$ac_ext
16669 cat >>conftest.$ac_ext <<_ACEOF
16670 /* end confdefs.h.  */
16671
16672 int
16673 main ()
16674 {
16675
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_link") 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } && {
16694          test -z "$ac_c_werror_flag" ||
16695          test ! -s conftest.err
16696        } && test -s conftest$ac_exeext &&
16697        $as_test_x conftest$ac_exeext; then
16698
16699 lt_aix_libpath_sed='
16700     /Import File Strings/,/^$/ {
16701         /^0/ {
16702             s/^0  *\(.*\)$/\1/
16703             p
16704         }
16705     }'
16706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16707 # Check for a 64-bit object if we didn't find anything.
16708 if test -z "$aix_libpath"; then
16709   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16710 fi
16711 else
16712   echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16714
16715
16716 fi
16717
16718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719       conftest$ac_exeext conftest.$ac_ext
16720 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16721
16722          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16723           # Warning - without using the other run time loading flags,
16724           # -berok will link without error, but may produce a broken library.
16725           no_undefined_flag_GCJ=' ${wl}-bernotok'
16726           allow_undefined_flag_GCJ=' ${wl}-berok'
16727           # Exported symbols can be pulled into shared objects from archives
16728           whole_archive_flag_spec_GCJ='$convenience'
16729           archive_cmds_need_lc_GCJ=yes
16730           # This is similar to how AIX traditionally builds its shared libraries.
16731           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'
16732         fi
16733       fi
16734       ;;
16735
16736     amigaos*)
16737       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)'
16738       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16739       hardcode_minus_L_GCJ=yes
16740       # see comment about different semantics on the GNU ld section
16741       ld_shlibs_GCJ=no
16742       ;;
16743
16744     bsdi[45]*)
16745       export_dynamic_flag_spec_GCJ=-rdynamic
16746       ;;
16747
16748     cygwin* | mingw* | pw32*)
16749       # When not using gcc, we currently assume that we are using
16750       # Microsoft Visual C++.
16751       # hardcode_libdir_flag_spec is actually meaningless, as there is
16752       # no search path for DLLs.
16753       hardcode_libdir_flag_spec_GCJ=' '
16754       allow_undefined_flag_GCJ=unsupported
16755       # Tell ltmain to make .lib files, not .a files.
16756       libext=lib
16757       # Tell ltmain to make .dll files, not .so files.
16758       shrext_cmds=".dll"
16759       # FIXME: Setting linknames here is a bad hack.
16760       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16761       # The linker will automatically build a .lib file if we build a DLL.
16762       old_archive_From_new_cmds_GCJ='true'
16763       # FIXME: Should let the user specify the lib program.
16764       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16765       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16766       enable_shared_with_static_runtimes_GCJ=yes
16767       ;;
16768
16769     darwin* | rhapsody*)
16770       case $host_os in
16771         rhapsody* | darwin1.[012])
16772          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16773          ;;
16774        *) # Darwin 1.3 on
16775          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16776            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16777          else
16778            case ${MACOSX_DEPLOYMENT_TARGET} in
16779              10.[012])
16780                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16781                ;;
16782              10.*)
16783                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16784                ;;
16785            esac
16786          fi
16787          ;;
16788       esac
16789       archive_cmds_need_lc_GCJ=no
16790       hardcode_direct_GCJ=no
16791       hardcode_automatic_GCJ=yes
16792       hardcode_shlibpath_var_GCJ=unsupported
16793       whole_archive_flag_spec_GCJ=''
16794       link_all_deplibs_GCJ=yes
16795     if test "$GCC" = yes ; then
16796         output_verbose_link_cmd='echo'
16797         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16798       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16799       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16800       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16801       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}'
16802     else
16803       case $cc_basename in
16804         xlc*)
16805          output_verbose_link_cmd='echo'
16806          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16807          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16808           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16809          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}'
16810           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}'
16811           ;;
16812        *)
16813          ld_shlibs_GCJ=no
16814           ;;
16815       esac
16816     fi
16817       ;;
16818
16819     dgux*)
16820       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822       hardcode_shlibpath_var_GCJ=no
16823       ;;
16824
16825     freebsd1*)
16826       ld_shlibs_GCJ=no
16827       ;;
16828
16829     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16830     # support.  Future versions do this automatically, but an explicit c++rt0.o
16831     # does not break anything, and helps significantly (at the cost of a little
16832     # extra space).
16833     freebsd2.2*)
16834       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16835       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16836       hardcode_direct_GCJ=yes
16837       hardcode_shlibpath_var_GCJ=no
16838       ;;
16839
16840     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16841     freebsd2*)
16842       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16843       hardcode_direct_GCJ=yes
16844       hardcode_minus_L_GCJ=yes
16845       hardcode_shlibpath_var_GCJ=no
16846       ;;
16847
16848     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16849     freebsd* | dragonfly*)
16850       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16851       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16852       hardcode_direct_GCJ=yes
16853       hardcode_shlibpath_var_GCJ=no
16854       ;;
16855
16856     hpux9*)
16857       if test "$GCC" = yes; then
16858         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'
16859       else
16860         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'
16861       fi
16862       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16863       hardcode_libdir_separator_GCJ=:
16864       hardcode_direct_GCJ=yes
16865
16866       # hardcode_minus_L: Not really in the search PATH,
16867       # but as the default location of the library.
16868       hardcode_minus_L_GCJ=yes
16869       export_dynamic_flag_spec_GCJ='${wl}-E'
16870       ;;
16871
16872     hpux10*)
16873       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16874         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16875       else
16876         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16877       fi
16878       if test "$with_gnu_ld" = no; then
16879         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16880         hardcode_libdir_separator_GCJ=:
16881
16882         hardcode_direct_GCJ=yes
16883         export_dynamic_flag_spec_GCJ='${wl}-E'
16884
16885         # hardcode_minus_L: Not really in the search PATH,
16886         # but as the default location of the library.
16887         hardcode_minus_L_GCJ=yes
16888       fi
16889       ;;
16890
16891     hpux11*)
16892       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16893         case $host_cpu in
16894         hppa*64*)
16895           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16896           ;;
16897         ia64*)
16898           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16899           ;;
16900         *)
16901           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16902           ;;
16903         esac
16904       else
16905         case $host_cpu in
16906         hppa*64*)
16907           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16908           ;;
16909         ia64*)
16910           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16911           ;;
16912         *)
16913           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16914           ;;
16915         esac
16916       fi
16917       if test "$with_gnu_ld" = no; then
16918         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16919         hardcode_libdir_separator_GCJ=:
16920
16921         case $host_cpu in
16922         hppa*64*|ia64*)
16923           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16924           hardcode_direct_GCJ=no
16925           hardcode_shlibpath_var_GCJ=no
16926           ;;
16927         *)
16928           hardcode_direct_GCJ=yes
16929           export_dynamic_flag_spec_GCJ='${wl}-E'
16930
16931           # hardcode_minus_L: Not really in the search PATH,
16932           # but as the default location of the library.
16933           hardcode_minus_L_GCJ=yes
16934           ;;
16935         esac
16936       fi
16937       ;;
16938
16939     irix5* | irix6* | nonstopux*)
16940       if test "$GCC" = yes; then
16941         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'
16942       else
16943         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'
16944         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16945       fi
16946       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16947       hardcode_libdir_separator_GCJ=:
16948       link_all_deplibs_GCJ=yes
16949       ;;
16950
16951     netbsd*)
16952       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16953         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16954       else
16955         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16956       fi
16957       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16958       hardcode_direct_GCJ=yes
16959       hardcode_shlibpath_var_GCJ=no
16960       ;;
16961
16962     newsos6)
16963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16964       hardcode_direct_GCJ=yes
16965       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16966       hardcode_libdir_separator_GCJ=:
16967       hardcode_shlibpath_var_GCJ=no
16968       ;;
16969
16970     openbsd*)
16971       if test -f /usr/libexec/ld.so; then
16972         hardcode_direct_GCJ=yes
16973         hardcode_shlibpath_var_GCJ=no
16974         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16975           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16976           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16977           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16978           export_dynamic_flag_spec_GCJ='${wl}-E'
16979         else
16980           case $host_os in
16981            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16982              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16983              hardcode_libdir_flag_spec_GCJ='-R$libdir'
16984              ;;
16985            *)
16986              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16987              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16988              ;;
16989           esac
16990         fi
16991       else
16992         ld_shlibs_GCJ=no
16993       fi
16994       ;;
16995
16996     os2*)
16997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998       hardcode_minus_L_GCJ=yes
16999       allow_undefined_flag_GCJ=unsupported
17000       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'
17001       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17002       ;;
17003
17004     osf3*)
17005       if test "$GCC" = yes; then
17006         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17007         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'
17008       else
17009         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17010         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'
17011       fi
17012       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17013       hardcode_libdir_separator_GCJ=:
17014       ;;
17015
17016     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17017       if test "$GCC" = yes; then
17018         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17019         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'
17020         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17021       else
17022         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17023         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'
17024         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~
17025         $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'
17026
17027         # Both c and cxx compiler support -rpath directly
17028         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17029       fi
17030       hardcode_libdir_separator_GCJ=:
17031       ;;
17032
17033     solaris*)
17034       no_undefined_flag_GCJ=' -z text'
17035       if test "$GCC" = yes; then
17036         wlarc='${wl}'
17037         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17038         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17039           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17040       else
17041         wlarc=''
17042         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17043         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17044         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17045       fi
17046       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17047       hardcode_shlibpath_var_GCJ=no
17048       case $host_os in
17049       solaris2.[0-5] | solaris2.[0-5].*) ;;
17050       *)
17051         # The compiler driver will combine and reorder linker options,
17052         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17053         # but is careful enough not to reorder.
17054         # Supported since Solaris 2.6 (maybe 2.5.1?)
17055         if test "$GCC" = yes; then
17056           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17057         else
17058           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17059         fi
17060         ;;
17061       esac
17062       link_all_deplibs_GCJ=yes
17063       ;;
17064
17065     sunos4*)
17066       if test "x$host_vendor" = xsequent; then
17067         # Use $CC to link under sequent, because it throws in some extra .o
17068         # files that make .init and .fini sections work.
17069         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17070       else
17071         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17072       fi
17073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17074       hardcode_direct_GCJ=yes
17075       hardcode_minus_L_GCJ=yes
17076       hardcode_shlibpath_var_GCJ=no
17077       ;;
17078
17079     sysv4)
17080       case $host_vendor in
17081         sni)
17082           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17083           hardcode_direct_GCJ=yes # is this really true???
17084         ;;
17085         siemens)
17086           ## LD is ld it makes a PLAMLIB
17087           ## CC just makes a GrossModule.
17088           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17089           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17090           hardcode_direct_GCJ=no
17091         ;;
17092         motorola)
17093           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17094           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17095         ;;
17096       esac
17097       runpath_var='LD_RUN_PATH'
17098       hardcode_shlibpath_var_GCJ=no
17099       ;;
17100
17101     sysv4.3*)
17102       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103       hardcode_shlibpath_var_GCJ=no
17104       export_dynamic_flag_spec_GCJ='-Bexport'
17105       ;;
17106
17107     sysv4*MP*)
17108       if test -d /usr/nec; then
17109         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17110         hardcode_shlibpath_var_GCJ=no
17111         runpath_var=LD_RUN_PATH
17112         hardcode_runpath_var=yes
17113         ld_shlibs_GCJ=yes
17114       fi
17115       ;;
17116
17117     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17118       no_undefined_flag_GCJ='${wl}-z,text'
17119       archive_cmds_need_lc_GCJ=no
17120       hardcode_shlibpath_var_GCJ=no
17121       runpath_var='LD_RUN_PATH'
17122
17123       if test "$GCC" = yes; then
17124         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17125         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17126       else
17127         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17128         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17129       fi
17130       ;;
17131
17132     sysv5* | sco3.2v5* | sco5v6*)
17133       # Note: We can NOT use -z defs as we might desire, because we do not
17134       # link with -lc, and that would cause any symbols used from libc to
17135       # always be unresolved, which means just about no library would
17136       # ever link correctly.  If we're not using GNU ld we use -z text
17137       # though, which does catch some bad symbols but isn't as heavy-handed
17138       # as -z defs.
17139       no_undefined_flag_GCJ='${wl}-z,text'
17140       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17141       archive_cmds_need_lc_GCJ=no
17142       hardcode_shlibpath_var_GCJ=no
17143       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17144       hardcode_libdir_separator_GCJ=':'
17145       link_all_deplibs_GCJ=yes
17146       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17147       runpath_var='LD_RUN_PATH'
17148
17149       if test "$GCC" = yes; then
17150         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17151         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17152       else
17153         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17154         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17155       fi
17156       ;;
17157
17158     uts4*)
17159       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17161       hardcode_shlibpath_var_GCJ=no
17162       ;;
17163
17164     *)
17165       ld_shlibs_GCJ=no
17166       ;;
17167     esac
17168   fi
17169
17170 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17171 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17172 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17173
17174 #
17175 # Do we need to explicitly link libc?
17176 #
17177 case "x$archive_cmds_need_lc_GCJ" in
17178 x|xyes)
17179   # Assume -lc should be added
17180   archive_cmds_need_lc_GCJ=yes
17181
17182   if test "$enable_shared" = yes && test "$GCC" = yes; then
17183     case $archive_cmds_GCJ in
17184     *'~'*)
17185       # FIXME: we may have to deal with multi-command sequences.
17186       ;;
17187     '$CC '*)
17188       # Test whether the compiler implicitly links with -lc since on some
17189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17190       # to ld, don't add -lc before -lgcc.
17191       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17193       $rm conftest*
17194       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17195
17196       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197   (eval $ac_compile) 2>&5
17198   ac_status=$?
17199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200   (exit $ac_status); } 2>conftest.err; then
17201         soname=conftest
17202         lib=conftest
17203         libobjs=conftest.$ac_objext
17204         deplibs=
17205         wl=$lt_prog_compiler_wl_GCJ
17206         pic_flag=$lt_prog_compiler_pic_GCJ
17207         compiler_flags=-v
17208         linker_flags=-v
17209         verstring=
17210         output_objdir=.
17211         libname=conftest
17212         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17213         allow_undefined_flag_GCJ=
17214         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17215   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }
17219         then
17220           archive_cmds_need_lc_GCJ=no
17221         else
17222           archive_cmds_need_lc_GCJ=yes
17223         fi
17224         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17225       else
17226         cat conftest.err 1>&5
17227       fi
17228       $rm conftest*
17229       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17230 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17231       ;;
17232     esac
17233   fi
17234   ;;
17235 esac
17236
17237 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17238 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17239 library_names_spec=
17240 libname_spec='lib$name'
17241 soname_spec=
17242 shrext_cmds=".so"
17243 postinstall_cmds=
17244 postuninstall_cmds=
17245 finish_cmds=
17246 finish_eval=
17247 shlibpath_var=
17248 shlibpath_overrides_runpath=unknown
17249 version_type=none
17250 dynamic_linker="$host_os ld.so"
17251 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17252
17253 need_lib_prefix=unknown
17254 hardcode_into_libs=no
17255
17256 # when you set need_version to no, make sure it does not cause -set_version
17257 # flags to be left without arguments
17258 need_version=unknown
17259
17260 case $host_os in
17261 aix3*)
17262   version_type=linux
17263   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17264   shlibpath_var=LIBPATH
17265
17266   # AIX 3 has no versioning support, so we append a major version to the name.
17267   soname_spec='${libname}${release}${shared_ext}$major'
17268   ;;
17269
17270 aix4* | aix5*)
17271   version_type=linux
17272   need_lib_prefix=no
17273   need_version=no
17274   hardcode_into_libs=yes
17275   if test "$host_cpu" = ia64; then
17276     # AIX 5 supports IA64
17277     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17278     shlibpath_var=LD_LIBRARY_PATH
17279   else
17280     # With GCC up to 2.95.x, collect2 would create an import file
17281     # for dependence libraries.  The import file would start with
17282     # the line `#! .'.  This would cause the generated library to
17283     # depend on `.', always an invalid library.  This was fixed in
17284     # development snapshots of GCC prior to 3.0.
17285     case $host_os in
17286       aix4 | aix4.[01] | aix4.[01].*)
17287       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17288            echo ' yes '
17289            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17290         :
17291       else
17292         can_build_shared=no
17293       fi
17294       ;;
17295     esac
17296     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17297     # soname into executable. Probably we can add versioning support to
17298     # collect2, so additional links can be useful in future.
17299     if test "$aix_use_runtimelinking" = yes; then
17300       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17301       # instead of lib<name>.a to let people know that these are not
17302       # typical AIX shared libraries.
17303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17304     else
17305       # We preserve .a as extension for shared libraries through AIX4.2
17306       # and later when we are not doing run time linking.
17307       library_names_spec='${libname}${release}.a $libname.a'
17308       soname_spec='${libname}${release}${shared_ext}$major'
17309     fi
17310     shlibpath_var=LIBPATH
17311   fi
17312   ;;
17313
17314 amigaos*)
17315   library_names_spec='$libname.ixlibrary $libname.a'
17316   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17317   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'
17318   ;;
17319
17320 beos*)
17321   library_names_spec='${libname}${shared_ext}'
17322   dynamic_linker="$host_os ld.so"
17323   shlibpath_var=LIBRARY_PATH
17324   ;;
17325
17326 bsdi[45]*)
17327   version_type=linux
17328   need_version=no
17329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17330   soname_spec='${libname}${release}${shared_ext}$major'
17331   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17332   shlibpath_var=LD_LIBRARY_PATH
17333   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17334   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17335   # the default ld.so.conf also contains /usr/contrib/lib and
17336   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17337   # libtool to hard-code these into programs
17338   ;;
17339
17340 cygwin* | mingw* | pw32*)
17341   version_type=windows
17342   shrext_cmds=".dll"
17343   need_version=no
17344   need_lib_prefix=no
17345
17346   case $GCC,$host_os in
17347   yes,cygwin* | yes,mingw* | yes,pw32*)
17348     library_names_spec='$libname.dll.a'
17349     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17350     postinstall_cmds='base_file=`basename \${file}`~
17351       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17352       dldir=$destdir/`dirname \$dlpath`~
17353       test -d \$dldir || mkdir -p \$dldir~
17354       $install_prog $dir/$dlname \$dldir/$dlname~
17355       chmod a+x \$dldir/$dlname'
17356     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17357       dlpath=$dir/\$dldll~
17358        $rm \$dlpath'
17359     shlibpath_overrides_runpath=yes
17360
17361     case $host_os in
17362     cygwin*)
17363       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17364       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17365       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17366       ;;
17367     mingw*)
17368       # MinGW DLLs use traditional 'lib' prefix
17369       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17370       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17371       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17372         # It is most probably a Windows format PATH printed by
17373         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17374         # path with ; separators, and with drive letters. We can handle the
17375         # drive letters (cygwin fileutils understands them), so leave them,
17376         # especially as we might pass files found there to a mingw objdump,
17377         # which wouldn't understand a cygwinified path. Ahh.
17378         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17379       else
17380         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17381       fi
17382       ;;
17383     pw32*)
17384       # pw32 DLLs use 'pw' prefix rather than 'lib'
17385       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17386       ;;
17387     esac
17388     ;;
17389
17390   *)
17391     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17392     ;;
17393   esac
17394   dynamic_linker='Win32 ld.exe'
17395   # FIXME: first we should search . and the directory the executable is in
17396   shlibpath_var=PATH
17397   ;;
17398
17399 darwin* | rhapsody*)
17400   dynamic_linker="$host_os dyld"
17401   version_type=darwin
17402   need_lib_prefix=no
17403   need_version=no
17404   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17405   soname_spec='${libname}${release}${major}$shared_ext'
17406   shlibpath_overrides_runpath=yes
17407   shlibpath_var=DYLD_LIBRARY_PATH
17408   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17409
17410   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17411   ;;
17412
17413 dgux*)
17414   version_type=linux
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   ;;
17421
17422 freebsd1*)
17423   dynamic_linker=no
17424   ;;
17425
17426 freebsd* | dragonfly*)
17427   # DragonFly does not have aout.  When/if they implement a new
17428   # versioning mechanism, adjust this.
17429   if test -x /usr/bin/objformat; then
17430     objformat=`/usr/bin/objformat`
17431   else
17432     case $host_os in
17433     freebsd[123]*) objformat=aout ;;
17434     *) objformat=elf ;;
17435     esac
17436   fi
17437   version_type=freebsd-$objformat
17438   case $version_type in
17439     freebsd-elf*)
17440       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17441       need_version=no
17442       need_lib_prefix=no
17443       ;;
17444     freebsd-*)
17445       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17446       need_version=yes
17447       ;;
17448   esac
17449   shlibpath_var=LD_LIBRARY_PATH
17450   case $host_os in
17451   freebsd2*)
17452     shlibpath_overrides_runpath=yes
17453     ;;
17454   freebsd3.[01]* | freebsdelf3.[01]*)
17455     shlibpath_overrides_runpath=yes
17456     hardcode_into_libs=yes
17457     ;;
17458   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17459   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17460     shlibpath_overrides_runpath=no
17461     hardcode_into_libs=yes
17462     ;;
17463   *) # from 4.6 on, and DragonFly
17464     shlibpath_overrides_runpath=yes
17465     hardcode_into_libs=yes
17466     ;;
17467   esac
17468   ;;
17469
17470 gnu*)
17471   version_type=linux
17472   need_lib_prefix=no
17473   need_version=no
17474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   shlibpath_var=LD_LIBRARY_PATH
17477   hardcode_into_libs=yes
17478   ;;
17479
17480 hpux9* | hpux10* | hpux11*)
17481   # Give a soname corresponding to the major version so that dld.sl refuses to
17482   # link against other versions.
17483   version_type=sunos
17484   need_lib_prefix=no
17485   need_version=no
17486   case $host_cpu in
17487   ia64*)
17488     shrext_cmds='.so'
17489     hardcode_into_libs=yes
17490     dynamic_linker="$host_os dld.so"
17491     shlibpath_var=LD_LIBRARY_PATH
17492     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494     soname_spec='${libname}${release}${shared_ext}$major'
17495     if test "X$HPUX_IA64_MODE" = X32; then
17496       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17497     else
17498       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17499     fi
17500     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17501     ;;
17502    hppa*64*)
17503      shrext_cmds='.sl'
17504      hardcode_into_libs=yes
17505      dynamic_linker="$host_os dld.sl"
17506      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17507      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17508      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17509      soname_spec='${libname}${release}${shared_ext}$major'
17510      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17511      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17512      ;;
17513    *)
17514     shrext_cmds='.sl'
17515     dynamic_linker="$host_os dld.sl"
17516     shlibpath_var=SHLIB_PATH
17517     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17518     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17519     soname_spec='${libname}${release}${shared_ext}$major'
17520     ;;
17521   esac
17522   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17523   postinstall_cmds='chmod 555 $lib'
17524   ;;
17525
17526 interix[3-9]*)
17527   version_type=linux
17528   need_lib_prefix=no
17529   need_version=no
17530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17531   soname_spec='${libname}${release}${shared_ext}$major'
17532   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17533   shlibpath_var=LD_LIBRARY_PATH
17534   shlibpath_overrides_runpath=no
17535   hardcode_into_libs=yes
17536   ;;
17537
17538 irix5* | irix6* | nonstopux*)
17539   case $host_os in
17540     nonstopux*) version_type=nonstopux ;;
17541     *)
17542         if test "$lt_cv_prog_gnu_ld" = yes; then
17543                 version_type=linux
17544         else
17545                 version_type=irix
17546         fi ;;
17547   esac
17548   need_lib_prefix=no
17549   need_version=no
17550   soname_spec='${libname}${release}${shared_ext}$major'
17551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17552   case $host_os in
17553   irix5* | nonstopux*)
17554     libsuff= shlibsuff=
17555     ;;
17556   *)
17557     case $LD in # libtool.m4 will add one of these switches to LD
17558     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17559       libsuff= shlibsuff= libmagic=32-bit;;
17560     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17561       libsuff=32 shlibsuff=N32 libmagic=N32;;
17562     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17563       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17564     *) libsuff= shlibsuff= libmagic=never-match;;
17565     esac
17566     ;;
17567   esac
17568   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17569   shlibpath_overrides_runpath=no
17570   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17571   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17572   hardcode_into_libs=yes
17573   ;;
17574
17575 # No shared lib support for Linux oldld, aout, or coff.
17576 linux*oldld* | linux*aout* | linux*coff*)
17577   dynamic_linker=no
17578   ;;
17579
17580 # This must be Linux ELF.
17581 linux* | k*bsd*-gnu)
17582   version_type=linux
17583   need_lib_prefix=no
17584   need_version=no
17585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17588   shlibpath_var=LD_LIBRARY_PATH
17589   shlibpath_overrides_runpath=no
17590   # This implies no fast_install, which is unacceptable.
17591   # Some rework will be needed to allow for fast_install
17592   # before this can be enabled.
17593   hardcode_into_libs=yes
17594
17595   # Append ld.so.conf contents to the search path
17596   if test -f /etc/ld.so.conf; then
17597     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' ' '`
17598     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17599   fi
17600
17601   # We used to test for /lib/ld.so.1 and disable shared libraries on
17602   # powerpc, because MkLinux only supported shared libraries with the
17603   # GNU dynamic linker.  Since this was broken with cross compilers,
17604   # most powerpc-linux boxes support dynamic linking these days and
17605   # people can always --disable-shared, the test was removed, and we
17606   # assume the GNU/Linux dynamic linker is in use.
17607   dynamic_linker='GNU/Linux ld.so'
17608   ;;
17609
17610 netbsd*)
17611   version_type=sunos
17612   need_lib_prefix=no
17613   need_version=no
17614   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17616     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17617     dynamic_linker='NetBSD (a.out) ld.so'
17618   else
17619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17620     soname_spec='${libname}${release}${shared_ext}$major'
17621     dynamic_linker='NetBSD ld.elf_so'
17622   fi
17623   shlibpath_var=LD_LIBRARY_PATH
17624   shlibpath_overrides_runpath=yes
17625   hardcode_into_libs=yes
17626   ;;
17627
17628 newsos6)
17629   version_type=linux
17630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   shlibpath_overrides_runpath=yes
17633   ;;
17634
17635 nto-qnx*)
17636   version_type=linux
17637   need_lib_prefix=no
17638   need_version=no
17639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17640   soname_spec='${libname}${release}${shared_ext}$major'
17641   shlibpath_var=LD_LIBRARY_PATH
17642   shlibpath_overrides_runpath=yes
17643   ;;
17644
17645 openbsd*)
17646   version_type=sunos
17647   sys_lib_dlsearch_path_spec="/usr/lib"
17648   need_lib_prefix=no
17649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17650   case $host_os in
17651     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17652     *)                         need_version=no  ;;
17653   esac
17654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17656   shlibpath_var=LD_LIBRARY_PATH
17657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17658     case $host_os in
17659       openbsd2.[89] | openbsd2.[89].*)
17660         shlibpath_overrides_runpath=no
17661         ;;
17662       *)
17663         shlibpath_overrides_runpath=yes
17664         ;;
17665       esac
17666   else
17667     shlibpath_overrides_runpath=yes
17668   fi
17669   ;;
17670
17671 os2*)
17672   libname_spec='$name'
17673   shrext_cmds=".dll"
17674   need_lib_prefix=no
17675   library_names_spec='$libname${shared_ext} $libname.a'
17676   dynamic_linker='OS/2 ld.exe'
17677   shlibpath_var=LIBPATH
17678   ;;
17679
17680 osf3* | osf4* | osf5*)
17681   version_type=osf
17682   need_lib_prefix=no
17683   need_version=no
17684   soname_spec='${libname}${release}${shared_ext}$major'
17685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17686   shlibpath_var=LD_LIBRARY_PATH
17687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17689   ;;
17690
17691 rdos*)
17692   dynamic_linker=no
17693   ;;
17694
17695 solaris*)
17696   version_type=linux
17697   need_lib_prefix=no
17698   need_version=no
17699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17700   soname_spec='${libname}${release}${shared_ext}$major'
17701   shlibpath_var=LD_LIBRARY_PATH
17702   shlibpath_overrides_runpath=yes
17703   hardcode_into_libs=yes
17704   # ldd complains unless libraries are executable
17705   postinstall_cmds='chmod +x $lib'
17706   ;;
17707
17708 sunos4*)
17709   version_type=sunos
17710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17712   shlibpath_var=LD_LIBRARY_PATH
17713   shlibpath_overrides_runpath=yes
17714   if test "$with_gnu_ld" = yes; then
17715     need_lib_prefix=no
17716   fi
17717   need_version=yes
17718   ;;
17719
17720 sysv4 | sysv4.3*)
17721   version_type=linux
17722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17723   soname_spec='${libname}${release}${shared_ext}$major'
17724   shlibpath_var=LD_LIBRARY_PATH
17725   case $host_vendor in
17726     sni)
17727       shlibpath_overrides_runpath=no
17728       need_lib_prefix=no
17729       export_dynamic_flag_spec='${wl}-Blargedynsym'
17730       runpath_var=LD_RUN_PATH
17731       ;;
17732     siemens)
17733       need_lib_prefix=no
17734       ;;
17735     motorola)
17736       need_lib_prefix=no
17737       need_version=no
17738       shlibpath_overrides_runpath=no
17739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17740       ;;
17741   esac
17742   ;;
17743
17744 sysv4*MP*)
17745   if test -d /usr/nec ;then
17746     version_type=linux
17747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17748     soname_spec='$libname${shared_ext}.$major'
17749     shlibpath_var=LD_LIBRARY_PATH
17750   fi
17751   ;;
17752
17753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17754   version_type=freebsd-elf
17755   need_lib_prefix=no
17756   need_version=no
17757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17758   soname_spec='${libname}${release}${shared_ext}$major'
17759   shlibpath_var=LD_LIBRARY_PATH
17760   hardcode_into_libs=yes
17761   if test "$with_gnu_ld" = yes; then
17762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17763     shlibpath_overrides_runpath=no
17764   else
17765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17766     shlibpath_overrides_runpath=yes
17767     case $host_os in
17768       sco3.2v5*)
17769         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17770         ;;
17771     esac
17772   fi
17773   sys_lib_dlsearch_path_spec='/usr/lib'
17774   ;;
17775
17776 uts4*)
17777   version_type=linux
17778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779   soname_spec='${libname}${release}${shared_ext}$major'
17780   shlibpath_var=LD_LIBRARY_PATH
17781   ;;
17782
17783 *)
17784   dynamic_linker=no
17785   ;;
17786 esac
17787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17788 echo "${ECHO_T}$dynamic_linker" >&6; }
17789 test "$dynamic_linker" = no && can_build_shared=no
17790
17791 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17792 if test "$GCC" = yes; then
17793   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17794 fi
17795
17796 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17797 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17798 hardcode_action_GCJ=
17799 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17800    test -n "$runpath_var_GCJ" || \
17801    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17802
17803   # We can hardcode non-existant directories.
17804   if test "$hardcode_direct_GCJ" != no &&
17805      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17806      # have to relink, otherwise we might link with an installed library
17807      # when we should be linking with a yet-to-be-installed one
17808      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17809      test "$hardcode_minus_L_GCJ" != no; then
17810     # Linking always hardcodes the temporary library directory.
17811     hardcode_action_GCJ=relink
17812   else
17813     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17814     hardcode_action_GCJ=immediate
17815   fi
17816 else
17817   # We cannot hardcode anything, or else we can only hardcode existing
17818   # directories.
17819   hardcode_action_GCJ=unsupported
17820 fi
17821 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17822 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17823
17824 if test "$hardcode_action_GCJ" = relink; then
17825   # Fast installation is not supported
17826   enable_fast_install=no
17827 elif test "$shlibpath_overrides_runpath" = yes ||
17828      test "$enable_shared" = no; then
17829   # Fast installation is not necessary
17830   enable_fast_install=needless
17831 fi
17832
17833
17834 # The else clause should only fire when bootstrapping the
17835 # libtool distribution, otherwise you forgot to ship ltmain.sh
17836 # with your package, and you will get complaints that there are
17837 # no rules to generate ltmain.sh.
17838 if test -f "$ltmain"; then
17839   # See if we are running on zsh, and set the options which allow our commands through
17840   # without removal of \ escapes.
17841   if test -n "${ZSH_VERSION+set}" ; then
17842     setopt NO_GLOB_SUBST
17843   fi
17844   # Now quote all the things that may contain metacharacters while being
17845   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17846   # variables and quote the copies for generation of the libtool script.
17847   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17848     SED SHELL STRIP \
17849     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17850     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17851     deplibs_check_method reload_flag reload_cmds need_locks \
17852     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17853     lt_cv_sys_global_symbol_to_c_name_address \
17854     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17855     old_postinstall_cmds old_postuninstall_cmds \
17856     compiler_GCJ \
17857     CC_GCJ \
17858     LD_GCJ \
17859     lt_prog_compiler_wl_GCJ \
17860     lt_prog_compiler_pic_GCJ \
17861     lt_prog_compiler_static_GCJ \
17862     lt_prog_compiler_no_builtin_flag_GCJ \
17863     export_dynamic_flag_spec_GCJ \
17864     thread_safe_flag_spec_GCJ \
17865     whole_archive_flag_spec_GCJ \
17866     enable_shared_with_static_runtimes_GCJ \
17867     old_archive_cmds_GCJ \
17868     old_archive_from_new_cmds_GCJ \
17869     predep_objects_GCJ \
17870     postdep_objects_GCJ \
17871     predeps_GCJ \
17872     postdeps_GCJ \
17873     compiler_lib_search_path_GCJ \
17874     archive_cmds_GCJ \
17875     archive_expsym_cmds_GCJ \
17876     postinstall_cmds_GCJ \
17877     postuninstall_cmds_GCJ \
17878     old_archive_from_expsyms_cmds_GCJ \
17879     allow_undefined_flag_GCJ \
17880     no_undefined_flag_GCJ \
17881     export_symbols_cmds_GCJ \
17882     hardcode_libdir_flag_spec_GCJ \
17883     hardcode_libdir_flag_spec_ld_GCJ \
17884     hardcode_libdir_separator_GCJ \
17885     hardcode_automatic_GCJ \
17886     module_cmds_GCJ \
17887     module_expsym_cmds_GCJ \
17888     lt_cv_prog_compiler_c_o_GCJ \
17889     fix_srcfile_path_GCJ \
17890     exclude_expsyms_GCJ \
17891     include_expsyms_GCJ; do
17892
17893     case $var in
17894     old_archive_cmds_GCJ | \
17895     old_archive_from_new_cmds_GCJ | \
17896     archive_cmds_GCJ | \
17897     archive_expsym_cmds_GCJ | \
17898     module_cmds_GCJ | \
17899     module_expsym_cmds_GCJ | \
17900     old_archive_from_expsyms_cmds_GCJ | \
17901     export_symbols_cmds_GCJ | \
17902     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17903     postinstall_cmds | postuninstall_cmds | \
17904     old_postinstall_cmds | old_postuninstall_cmds | \
17905     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17906       # Double-quote double-evaled strings.
17907       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17908       ;;
17909     *)
17910       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17911       ;;
17912     esac
17913   done
17914
17915   case $lt_echo in
17916   *'\$0 --fallback-echo"')
17917     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17918     ;;
17919   esac
17920
17921 cfgfile="$ofile"
17922
17923   cat <<__EOF__ >> "$cfgfile"
17924 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17925
17926 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17927
17928 # Shell to use when invoking shell scripts.
17929 SHELL=$lt_SHELL
17930
17931 # Whether or not to build shared libraries.
17932 build_libtool_libs=$enable_shared
17933
17934 # Whether or not to build static libraries.
17935 build_old_libs=$enable_static
17936
17937 # Whether or not to add -lc for building shared libraries.
17938 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17939
17940 # Whether or not to disallow shared libs when runtime libs are static
17941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17942
17943 # Whether or not to optimize for fast installation.
17944 fast_install=$enable_fast_install
17945
17946 # The host system.
17947 host_alias=$host_alias
17948 host=$host
17949 host_os=$host_os
17950
17951 # The build system.
17952 build_alias=$build_alias
17953 build=$build
17954 build_os=$build_os
17955
17956 # An echo program that does not interpret backslashes.
17957 echo=$lt_echo
17958
17959 # The archiver.
17960 AR=$lt_AR
17961 AR_FLAGS=$lt_AR_FLAGS
17962
17963 # A C compiler.
17964 LTCC=$lt_LTCC
17965
17966 # LTCC compiler flags.
17967 LTCFLAGS=$lt_LTCFLAGS
17968
17969 # A language-specific compiler.
17970 CC=$lt_compiler_GCJ
17971
17972 # Is the compiler the GNU C compiler?
17973 with_gcc=$GCC_GCJ
17974
17975 # An ERE matcher.
17976 EGREP=$lt_EGREP
17977
17978 # The linker used to build libraries.
17979 LD=$lt_LD_GCJ
17980
17981 # Whether we need hard or soft links.
17982 LN_S=$lt_LN_S
17983
17984 # A BSD-compatible nm program.
17985 NM=$lt_NM
17986
17987 # A symbol stripping program
17988 STRIP=$lt_STRIP
17989
17990 # Used to examine libraries when file_magic_cmd begins "file"
17991 MAGIC_CMD=$MAGIC_CMD
17992
17993 # Used on cygwin: DLL creation program.
17994 DLLTOOL="$DLLTOOL"
17995
17996 # Used on cygwin: object dumper.
17997 OBJDUMP="$OBJDUMP"
17998
17999 # Used on cygwin: assembler.
18000 AS="$AS"
18001
18002 # The name of the directory that contains temporary libtool files.
18003 objdir=$objdir
18004
18005 # How to create reloadable object files.
18006 reload_flag=$lt_reload_flag
18007 reload_cmds=$lt_reload_cmds
18008
18009 # How to pass a linker flag through the compiler.
18010 wl=$lt_lt_prog_compiler_wl_GCJ
18011
18012 # Object file suffix (normally "o").
18013 objext="$ac_objext"
18014
18015 # Old archive suffix (normally "a").
18016 libext="$libext"
18017
18018 # Shared library suffix (normally ".so").
18019 shrext_cmds='$shrext_cmds'
18020
18021 # Executable file suffix (normally "").
18022 exeext="$exeext"
18023
18024 # Additional compiler flags for building library objects.
18025 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18026 pic_mode=$pic_mode
18027
18028 # What is the maximum length of a command?
18029 max_cmd_len=$lt_cv_sys_max_cmd_len
18030
18031 # Does compiler simultaneously support -c and -o options?
18032 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18033
18034 # Must we lock files when doing compilation?
18035 need_locks=$lt_need_locks
18036
18037 # Do we need the lib prefix for modules?
18038 need_lib_prefix=$need_lib_prefix
18039
18040 # Do we need a version for libraries?
18041 need_version=$need_version
18042
18043 # Whether dlopen is supported.
18044 dlopen_support=$enable_dlopen
18045
18046 # Whether dlopen of programs is supported.
18047 dlopen_self=$enable_dlopen_self
18048
18049 # Whether dlopen of statically linked programs is supported.
18050 dlopen_self_static=$enable_dlopen_self_static
18051
18052 # Compiler flag to prevent dynamic linking.
18053 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18054
18055 # Compiler flag to turn off builtin functions.
18056 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18057
18058 # Compiler flag to allow reflexive dlopens.
18059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18060
18061 # Compiler flag to generate shared objects directly from archives.
18062 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18063
18064 # Compiler flag to generate thread-safe objects.
18065 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18066
18067 # Library versioning type.
18068 version_type=$version_type
18069
18070 # Format of library name prefix.
18071 libname_spec=$lt_libname_spec
18072
18073 # List of archive names.  First name is the real one, the rest are links.
18074 # The last name is the one that the linker finds with -lNAME.
18075 library_names_spec=$lt_library_names_spec
18076
18077 # The coded name of the library, if different from the real name.
18078 soname_spec=$lt_soname_spec
18079
18080 # Commands used to build and install an old-style archive.
18081 RANLIB=$lt_RANLIB
18082 old_archive_cmds=$lt_old_archive_cmds_GCJ
18083 old_postinstall_cmds=$lt_old_postinstall_cmds
18084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18085
18086 # Create an old-style archive from a shared archive.
18087 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18088
18089 # Create a temporary old-style archive to link instead of a shared archive.
18090 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18091
18092 # Commands used to build and install a shared archive.
18093 archive_cmds=$lt_archive_cmds_GCJ
18094 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18095 postinstall_cmds=$lt_postinstall_cmds
18096 postuninstall_cmds=$lt_postuninstall_cmds
18097
18098 # Commands used to build a loadable module (assumed same as above if empty)
18099 module_cmds=$lt_module_cmds_GCJ
18100 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18101
18102 # Commands to strip libraries.
18103 old_striplib=$lt_old_striplib
18104 striplib=$lt_striplib
18105
18106 # Dependencies to place before the objects being linked to create a
18107 # shared library.
18108 predep_objects=$lt_predep_objects_GCJ
18109
18110 # Dependencies to place after the objects being linked to create a
18111 # shared library.
18112 postdep_objects=$lt_postdep_objects_GCJ
18113
18114 # Dependencies to place before the objects being linked to create a
18115 # shared library.
18116 predeps=$lt_predeps_GCJ
18117
18118 # Dependencies to place after the objects being linked to create a
18119 # shared library.
18120 postdeps=$lt_postdeps_GCJ
18121
18122 # The library search path used internally by the compiler when linking
18123 # a shared library.
18124 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18125
18126 # Method to check whether dependent libraries are shared objects.
18127 deplibs_check_method=$lt_deplibs_check_method
18128
18129 # Command to use when deplibs_check_method == file_magic.
18130 file_magic_cmd=$lt_file_magic_cmd
18131
18132 # Flag that allows shared libraries with undefined symbols to be built.
18133 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18134
18135 # Flag that forces no undefined symbols.
18136 no_undefined_flag=$lt_no_undefined_flag_GCJ
18137
18138 # Commands used to finish a libtool library installation in a directory.
18139 finish_cmds=$lt_finish_cmds
18140
18141 # Same as above, but a single script fragment to be evaled but not shown.
18142 finish_eval=$lt_finish_eval
18143
18144 # Take the output of nm and produce a listing of raw symbols and C names.
18145 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18146
18147 # Transform the output of nm in a proper C declaration
18148 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18149
18150 # Transform the output of nm in a C name address pair
18151 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18152
18153 # This is the shared library runtime path variable.
18154 runpath_var=$runpath_var
18155
18156 # This is the shared library path variable.
18157 shlibpath_var=$shlibpath_var
18158
18159 # Is shlibpath searched before the hard-coded library search path?
18160 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18161
18162 # How to hardcode a shared library path into an executable.
18163 hardcode_action=$hardcode_action_GCJ
18164
18165 # Whether we should hardcode library paths into libraries.
18166 hardcode_into_libs=$hardcode_into_libs
18167
18168 # Flag to hardcode \$libdir into a binary during linking.
18169 # This must work even if \$libdir does not exist.
18170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18171
18172 # If ld is used when linking, flag to hardcode \$libdir into
18173 # a binary during linking. This must work even if \$libdir does
18174 # not exist.
18175 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18176
18177 # Whether we need a single -rpath flag with a separated argument.
18178 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18179
18180 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18181 # resulting binary.
18182 hardcode_direct=$hardcode_direct_GCJ
18183
18184 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18185 # resulting binary.
18186 hardcode_minus_L=$hardcode_minus_L_GCJ
18187
18188 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18189 # the resulting binary.
18190 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18191
18192 # Set to yes if building a shared library automatically hardcodes DIR into the library
18193 # and all subsequent libraries and executables linked against it.
18194 hardcode_automatic=$hardcode_automatic_GCJ
18195
18196 # Variables whose values should be saved in libtool wrapper scripts and
18197 # restored at relink time.
18198 variables_saved_for_relink="$variables_saved_for_relink"
18199
18200 # Whether libtool must link a program against all its dependency libraries.
18201 link_all_deplibs=$link_all_deplibs_GCJ
18202
18203 # Compile-time system search path for libraries
18204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18205
18206 # Run-time system search path for libraries
18207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18208
18209 # Fix the shell variable \$srcfile for the compiler.
18210 fix_srcfile_path=$lt_fix_srcfile_path
18211
18212 # Set to yes if exported symbols are required.
18213 always_export_symbols=$always_export_symbols_GCJ
18214
18215 # The commands to list exported symbols.
18216 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18217
18218 # The commands to extract the exported symbol list from a shared archive.
18219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18220
18221 # Symbols that should not be listed in the preloaded symbols.
18222 exclude_expsyms=$lt_exclude_expsyms_GCJ
18223
18224 # Symbols that must always be exported.
18225 include_expsyms=$lt_include_expsyms_GCJ
18226
18227 # ### END LIBTOOL TAG CONFIG: $tagname
18228
18229 __EOF__
18230
18231
18232 else
18233   # If there is no Makefile yet, we rely on a make rule to execute
18234   # `config.status --recheck' to rerun these tests and create the
18235   # libtool script then.
18236   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18237   if test -f "$ltmain_in"; then
18238     test -f Makefile && make "$ltmain"
18239   fi
18240 fi
18241
18242
18243 ac_ext=c
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249 CC="$lt_save_CC"
18250
18251         else
18252           tagname=""
18253         fi
18254         ;;
18255
18256       RC)
18257
18258
18259 # Source file extension for RC test sources.
18260 ac_ext=rc
18261
18262 # Object file extension for compiled RC test sources.
18263 objext=o
18264 objext_RC=$objext
18265
18266 # Code to be used in simple compile tests
18267 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18268
18269 # Code to be used in simple link tests
18270 lt_simple_link_test_code="$lt_simple_compile_test_code"
18271
18272 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18273
18274 # If no C compiler was specified, use CC.
18275 LTCC=${LTCC-"$CC"}
18276
18277 # If no C compiler flags were specified, use CFLAGS.
18278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18279
18280 # Allow CC to be a program name with arguments.
18281 compiler=$CC
18282
18283
18284 # save warnings/boilerplate of simple test code
18285 ac_outfile=conftest.$ac_objext
18286 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18287 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18288 _lt_compiler_boilerplate=`cat conftest.err`
18289 $rm conftest*
18290
18291 ac_outfile=conftest.$ac_objext
18292 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18293 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18294 _lt_linker_boilerplate=`cat conftest.err`
18295 $rm conftest*
18296
18297
18298 # Allow CC to be a program name with arguments.
18299 lt_save_CC="$CC"
18300 CC=${RC-"windres"}
18301 compiler=$CC
18302 compiler_RC=$CC
18303 for cc_temp in $compiler""; do
18304   case $cc_temp in
18305     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18306     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18307     \-*) ;;
18308     *) break;;
18309   esac
18310 done
18311 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18312
18313 lt_cv_prog_compiler_c_o_RC=yes
18314
18315 # The else clause should only fire when bootstrapping the
18316 # libtool distribution, otherwise you forgot to ship ltmain.sh
18317 # with your package, and you will get complaints that there are
18318 # no rules to generate ltmain.sh.
18319 if test -f "$ltmain"; then
18320   # See if we are running on zsh, and set the options which allow our commands through
18321   # without removal of \ escapes.
18322   if test -n "${ZSH_VERSION+set}" ; then
18323     setopt NO_GLOB_SUBST
18324   fi
18325   # Now quote all the things that may contain metacharacters while being
18326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18327   # variables and quote the copies for generation of the libtool script.
18328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18329     SED SHELL STRIP \
18330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332     deplibs_check_method reload_flag reload_cmds need_locks \
18333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334     lt_cv_sys_global_symbol_to_c_name_address \
18335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336     old_postinstall_cmds old_postuninstall_cmds \
18337     compiler_RC \
18338     CC_RC \
18339     LD_RC \
18340     lt_prog_compiler_wl_RC \
18341     lt_prog_compiler_pic_RC \
18342     lt_prog_compiler_static_RC \
18343     lt_prog_compiler_no_builtin_flag_RC \
18344     export_dynamic_flag_spec_RC \
18345     thread_safe_flag_spec_RC \
18346     whole_archive_flag_spec_RC \
18347     enable_shared_with_static_runtimes_RC \
18348     old_archive_cmds_RC \
18349     old_archive_from_new_cmds_RC \
18350     predep_objects_RC \
18351     postdep_objects_RC \
18352     predeps_RC \
18353     postdeps_RC \
18354     compiler_lib_search_path_RC \
18355     archive_cmds_RC \
18356     archive_expsym_cmds_RC \
18357     postinstall_cmds_RC \
18358     postuninstall_cmds_RC \
18359     old_archive_from_expsyms_cmds_RC \
18360     allow_undefined_flag_RC \
18361     no_undefined_flag_RC \
18362     export_symbols_cmds_RC \
18363     hardcode_libdir_flag_spec_RC \
18364     hardcode_libdir_flag_spec_ld_RC \
18365     hardcode_libdir_separator_RC \
18366     hardcode_automatic_RC \
18367     module_cmds_RC \
18368     module_expsym_cmds_RC \
18369     lt_cv_prog_compiler_c_o_RC \
18370     fix_srcfile_path_RC \
18371     exclude_expsyms_RC \
18372     include_expsyms_RC; do
18373
18374     case $var in
18375     old_archive_cmds_RC | \
18376     old_archive_from_new_cmds_RC | \
18377     archive_cmds_RC | \
18378     archive_expsym_cmds_RC | \
18379     module_cmds_RC | \
18380     module_expsym_cmds_RC | \
18381     old_archive_from_expsyms_cmds_RC | \
18382     export_symbols_cmds_RC | \
18383     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18384     postinstall_cmds | postuninstall_cmds | \
18385     old_postinstall_cmds | old_postuninstall_cmds | \
18386     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18387       # Double-quote double-evaled strings.
18388       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18389       ;;
18390     *)
18391       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18392       ;;
18393     esac
18394   done
18395
18396   case $lt_echo in
18397   *'\$0 --fallback-echo"')
18398     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18399     ;;
18400   esac
18401
18402 cfgfile="$ofile"
18403
18404   cat <<__EOF__ >> "$cfgfile"
18405 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18406
18407 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18408
18409 # Shell to use when invoking shell scripts.
18410 SHELL=$lt_SHELL
18411
18412 # Whether or not to build shared libraries.
18413 build_libtool_libs=$enable_shared
18414
18415 # Whether or not to build static libraries.
18416 build_old_libs=$enable_static
18417
18418 # Whether or not to add -lc for building shared libraries.
18419 build_libtool_need_lc=$archive_cmds_need_lc_RC
18420
18421 # Whether or not to disallow shared libs when runtime libs are static
18422 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18423
18424 # Whether or not to optimize for fast installation.
18425 fast_install=$enable_fast_install
18426
18427 # The host system.
18428 host_alias=$host_alias
18429 host=$host
18430 host_os=$host_os
18431
18432 # The build system.
18433 build_alias=$build_alias
18434 build=$build
18435 build_os=$build_os
18436
18437 # An echo program that does not interpret backslashes.
18438 echo=$lt_echo
18439
18440 # The archiver.
18441 AR=$lt_AR
18442 AR_FLAGS=$lt_AR_FLAGS
18443
18444 # A C compiler.
18445 LTCC=$lt_LTCC
18446
18447 # LTCC compiler flags.
18448 LTCFLAGS=$lt_LTCFLAGS
18449
18450 # A language-specific compiler.
18451 CC=$lt_compiler_RC
18452
18453 # Is the compiler the GNU C compiler?
18454 with_gcc=$GCC_RC
18455
18456 # An ERE matcher.
18457 EGREP=$lt_EGREP
18458
18459 # The linker used to build libraries.
18460 LD=$lt_LD_RC
18461
18462 # Whether we need hard or soft links.
18463 LN_S=$lt_LN_S
18464
18465 # A BSD-compatible nm program.
18466 NM=$lt_NM
18467
18468 # A symbol stripping program
18469 STRIP=$lt_STRIP
18470
18471 # Used to examine libraries when file_magic_cmd begins "file"
18472 MAGIC_CMD=$MAGIC_CMD
18473
18474 # Used on cygwin: DLL creation program.
18475 DLLTOOL="$DLLTOOL"
18476
18477 # Used on cygwin: object dumper.
18478 OBJDUMP="$OBJDUMP"
18479
18480 # Used on cygwin: assembler.
18481 AS="$AS"
18482
18483 # The name of the directory that contains temporary libtool files.
18484 objdir=$objdir
18485
18486 # How to create reloadable object files.
18487 reload_flag=$lt_reload_flag
18488 reload_cmds=$lt_reload_cmds
18489
18490 # How to pass a linker flag through the compiler.
18491 wl=$lt_lt_prog_compiler_wl_RC
18492
18493 # Object file suffix (normally "o").
18494 objext="$ac_objext"
18495
18496 # Old archive suffix (normally "a").
18497 libext="$libext"
18498
18499 # Shared library suffix (normally ".so").
18500 shrext_cmds='$shrext_cmds'
18501
18502 # Executable file suffix (normally "").
18503 exeext="$exeext"
18504
18505 # Additional compiler flags for building library objects.
18506 pic_flag=$lt_lt_prog_compiler_pic_RC
18507 pic_mode=$pic_mode
18508
18509 # What is the maximum length of a command?
18510 max_cmd_len=$lt_cv_sys_max_cmd_len
18511
18512 # Does compiler simultaneously support -c and -o options?
18513 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18514
18515 # Must we lock files when doing compilation?
18516 need_locks=$lt_need_locks
18517
18518 # Do we need the lib prefix for modules?
18519 need_lib_prefix=$need_lib_prefix
18520
18521 # Do we need a version for libraries?
18522 need_version=$need_version
18523
18524 # Whether dlopen is supported.
18525 dlopen_support=$enable_dlopen
18526
18527 # Whether dlopen of programs is supported.
18528 dlopen_self=$enable_dlopen_self
18529
18530 # Whether dlopen of statically linked programs is supported.
18531 dlopen_self_static=$enable_dlopen_self_static
18532
18533 # Compiler flag to prevent dynamic linking.
18534 link_static_flag=$lt_lt_prog_compiler_static_RC
18535
18536 # Compiler flag to turn off builtin functions.
18537 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18538
18539 # Compiler flag to allow reflexive dlopens.
18540 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18541
18542 # Compiler flag to generate shared objects directly from archives.
18543 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18544
18545 # Compiler flag to generate thread-safe objects.
18546 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18547
18548 # Library versioning type.
18549 version_type=$version_type
18550
18551 # Format of library name prefix.
18552 libname_spec=$lt_libname_spec
18553
18554 # List of archive names.  First name is the real one, the rest are links.
18555 # The last name is the one that the linker finds with -lNAME.
18556 library_names_spec=$lt_library_names_spec
18557
18558 # The coded name of the library, if different from the real name.
18559 soname_spec=$lt_soname_spec
18560
18561 # Commands used to build and install an old-style archive.
18562 RANLIB=$lt_RANLIB
18563 old_archive_cmds=$lt_old_archive_cmds_RC
18564 old_postinstall_cmds=$lt_old_postinstall_cmds
18565 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18566
18567 # Create an old-style archive from a shared archive.
18568 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18569
18570 # Create a temporary old-style archive to link instead of a shared archive.
18571 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18572
18573 # Commands used to build and install a shared archive.
18574 archive_cmds=$lt_archive_cmds_RC
18575 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18576 postinstall_cmds=$lt_postinstall_cmds
18577 postuninstall_cmds=$lt_postuninstall_cmds
18578
18579 # Commands used to build a loadable module (assumed same as above if empty)
18580 module_cmds=$lt_module_cmds_RC
18581 module_expsym_cmds=$lt_module_expsym_cmds_RC
18582
18583 # Commands to strip libraries.
18584 old_striplib=$lt_old_striplib
18585 striplib=$lt_striplib
18586
18587 # Dependencies to place before the objects being linked to create a
18588 # shared library.
18589 predep_objects=$lt_predep_objects_RC
18590
18591 # Dependencies to place after the objects being linked to create a
18592 # shared library.
18593 postdep_objects=$lt_postdep_objects_RC
18594
18595 # Dependencies to place before the objects being linked to create a
18596 # shared library.
18597 predeps=$lt_predeps_RC
18598
18599 # Dependencies to place after the objects being linked to create a
18600 # shared library.
18601 postdeps=$lt_postdeps_RC
18602
18603 # The library search path used internally by the compiler when linking
18604 # a shared library.
18605 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18606
18607 # Method to check whether dependent libraries are shared objects.
18608 deplibs_check_method=$lt_deplibs_check_method
18609
18610 # Command to use when deplibs_check_method == file_magic.
18611 file_magic_cmd=$lt_file_magic_cmd
18612
18613 # Flag that allows shared libraries with undefined symbols to be built.
18614 allow_undefined_flag=$lt_allow_undefined_flag_RC
18615
18616 # Flag that forces no undefined symbols.
18617 no_undefined_flag=$lt_no_undefined_flag_RC
18618
18619 # Commands used to finish a libtool library installation in a directory.
18620 finish_cmds=$lt_finish_cmds
18621
18622 # Same as above, but a single script fragment to be evaled but not shown.
18623 finish_eval=$lt_finish_eval
18624
18625 # Take the output of nm and produce a listing of raw symbols and C names.
18626 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18627
18628 # Transform the output of nm in a proper C declaration
18629 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18630
18631 # Transform the output of nm in a C name address pair
18632 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18633
18634 # This is the shared library runtime path variable.
18635 runpath_var=$runpath_var
18636
18637 # This is the shared library path variable.
18638 shlibpath_var=$shlibpath_var
18639
18640 # Is shlibpath searched before the hard-coded library search path?
18641 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18642
18643 # How to hardcode a shared library path into an executable.
18644 hardcode_action=$hardcode_action_RC
18645
18646 # Whether we should hardcode library paths into libraries.
18647 hardcode_into_libs=$hardcode_into_libs
18648
18649 # Flag to hardcode \$libdir into a binary during linking.
18650 # This must work even if \$libdir does not exist.
18651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18652
18653 # If ld is used when linking, flag to hardcode \$libdir into
18654 # a binary during linking. This must work even if \$libdir does
18655 # not exist.
18656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18657
18658 # Whether we need a single -rpath flag with a separated argument.
18659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18660
18661 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18662 # resulting binary.
18663 hardcode_direct=$hardcode_direct_RC
18664
18665 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18666 # resulting binary.
18667 hardcode_minus_L=$hardcode_minus_L_RC
18668
18669 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18670 # the resulting binary.
18671 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18672
18673 # Set to yes if building a shared library automatically hardcodes DIR into the library
18674 # and all subsequent libraries and executables linked against it.
18675 hardcode_automatic=$hardcode_automatic_RC
18676
18677 # Variables whose values should be saved in libtool wrapper scripts and
18678 # restored at relink time.
18679 variables_saved_for_relink="$variables_saved_for_relink"
18680
18681 # Whether libtool must link a program against all its dependency libraries.
18682 link_all_deplibs=$link_all_deplibs_RC
18683
18684 # Compile-time system search path for libraries
18685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18686
18687 # Run-time system search path for libraries
18688 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18689
18690 # Fix the shell variable \$srcfile for the compiler.
18691 fix_srcfile_path=$lt_fix_srcfile_path
18692
18693 # Set to yes if exported symbols are required.
18694 always_export_symbols=$always_export_symbols_RC
18695
18696 # The commands to list exported symbols.
18697 export_symbols_cmds=$lt_export_symbols_cmds_RC
18698
18699 # The commands to extract the exported symbol list from a shared archive.
18700 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18701
18702 # Symbols that should not be listed in the preloaded symbols.
18703 exclude_expsyms=$lt_exclude_expsyms_RC
18704
18705 # Symbols that must always be exported.
18706 include_expsyms=$lt_include_expsyms_RC
18707
18708 # ### END LIBTOOL TAG CONFIG: $tagname
18709
18710 __EOF__
18711
18712
18713 else
18714   # If there is no Makefile yet, we rely on a make rule to execute
18715   # `config.status --recheck' to rerun these tests and create the
18716   # libtool script then.
18717   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18718   if test -f "$ltmain_in"; then
18719     test -f Makefile && make "$ltmain"
18720   fi
18721 fi
18722
18723
18724 ac_ext=c
18725 ac_cpp='$CPP $CPPFLAGS'
18726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18729
18730 CC="$lt_save_CC"
18731
18732         ;;
18733
18734       *)
18735         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18736 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18737    { (exit 1); exit 1; }; }
18738         ;;
18739       esac
18740
18741       # Append the new tag name to the list of available tags.
18742       if test -n "$tagname" ; then
18743       available_tags="$available_tags $tagname"
18744     fi
18745     fi
18746   done
18747   IFS="$lt_save_ifs"
18748
18749   # Now substitute the updated list of available tags.
18750   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18751     mv "${ofile}T" "$ofile"
18752     chmod +x "$ofile"
18753   else
18754     rm -f "${ofile}T"
18755     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18756 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18757    { (exit 1); exit 1; }; }
18758   fi
18759 fi
18760
18761
18762
18763 # This can be used to rebuild libtool when needed
18764 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18765
18766 # Always use our own libtool.
18767 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18768
18769 # Prevent multiple expansion
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791 am__api_version='1.10'
18792
18793 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18794 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18795 # Just in case
18796 sleep 1
18797 echo timestamp > conftest.file
18798 # Do `set' in a subshell so we don't clobber the current shell's
18799 # arguments.  Must try -L first in case configure is actually a
18800 # symlink; some systems play weird games with the mod time of symlinks
18801 # (eg FreeBSD returns the mod time of the symlink's containing
18802 # directory).
18803 if (
18804    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18805    if test "$*" = "X"; then
18806       # -L didn't work.
18807       set X `ls -t $srcdir/configure conftest.file`
18808    fi
18809    rm -f conftest.file
18810    if test "$*" != "X $srcdir/configure conftest.file" \
18811       && test "$*" != "X conftest.file $srcdir/configure"; then
18812
18813       # If neither matched, then we have a broken ls.  This can happen
18814       # if, for instance, CONFIG_SHELL is bash and it inherits a
18815       # broken ls alias from the environment.  This has actually
18816       # happened.  Such a system could not be considered "sane".
18817       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18818 alias in your environment" >&5
18819 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18820 alias in your environment" >&2;}
18821    { (exit 1); exit 1; }; }
18822    fi
18823
18824    test "$2" = conftest.file
18825    )
18826 then
18827    # Ok.
18828    :
18829 else
18830    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18831 Check your system clock" >&5
18832 echo "$as_me: error: newly created file is older than distributed files!
18833 Check your system clock" >&2;}
18834    { (exit 1); exit 1; }; }
18835 fi
18836 { echo "$as_me:$LINENO: result: yes" >&5
18837 echo "${ECHO_T}yes" >&6; }
18838 test "$program_prefix" != NONE &&
18839   program_transform_name="s&^&$program_prefix&;$program_transform_name"
18840 # Use a double $ so make ignores it.
18841 test "$program_suffix" != NONE &&
18842   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18843 # Double any \ or $.  echo might interpret backslashes.
18844 # By default was `s,x,x', remove it if useless.
18845 cat <<\_ACEOF >conftest.sed
18846 s/[\\$]/&&/g;s/;s,x,x,$//
18847 _ACEOF
18848 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18849 rm -f conftest.sed
18850
18851 # expand $ac_aux_dir to an absolute path
18852 am_aux_dir=`cd $ac_aux_dir && pwd`
18853
18854 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18855 # Use eval to expand $SHELL
18856 if eval "$MISSING --run true"; then
18857   am_missing_run="$MISSING --run "
18858 else
18859   am_missing_run=
18860   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18861 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18862 fi
18863
18864 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18865 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18866 if test -z "$MKDIR_P"; then
18867   if test "${ac_cv_path_mkdir+set}" = set; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18871 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18872 do
18873   IFS=$as_save_IFS
18874   test -z "$as_dir" && as_dir=.
18875   for ac_prog in mkdir gmkdir; do
18876          for ac_exec_ext in '' $ac_executable_extensions; do
18877            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18878            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18879              'mkdir (GNU coreutils) '* | \
18880              'mkdir (coreutils) '* | \
18881              'mkdir (fileutils) '4.1*)
18882                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18883                break 3;;
18884            esac
18885          done
18886        done
18887 done
18888 IFS=$as_save_IFS
18889
18890 fi
18891
18892   if test "${ac_cv_path_mkdir+set}" = set; then
18893     MKDIR_P="$ac_cv_path_mkdir -p"
18894   else
18895     # As a last resort, use the slow shell script.  Don't cache a
18896     # value for MKDIR_P within a source directory, because that will
18897     # break other packages using the cache if that directory is
18898     # removed, or if the value is a relative name.
18899     test -d ./--version && rmdir ./--version
18900     MKDIR_P="$ac_install_sh -d"
18901   fi
18902 fi
18903 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18904 echo "${ECHO_T}$MKDIR_P" >&6; }
18905
18906 mkdir_p="$MKDIR_P"
18907 case $mkdir_p in
18908   [\\/$]* | ?:[\\/]*) ;;
18909   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18910 esac
18911
18912 for ac_prog in gawk mawk nawk awk
18913 do
18914   # Extract the first word of "$ac_prog", so it can be a program name with args.
18915 set dummy $ac_prog; ac_word=$2
18916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18918 if test "${ac_cv_prog_AWK+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   if test -n "$AWK"; then
18922   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18923 else
18924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18925 for as_dir in $PATH
18926 do
18927   IFS=$as_save_IFS
18928   test -z "$as_dir" && as_dir=.
18929   for ac_exec_ext in '' $ac_executable_extensions; do
18930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18931     ac_cv_prog_AWK="$ac_prog"
18932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18933     break 2
18934   fi
18935 done
18936 done
18937 IFS=$as_save_IFS
18938
18939 fi
18940 fi
18941 AWK=$ac_cv_prog_AWK
18942 if test -n "$AWK"; then
18943   { echo "$as_me:$LINENO: result: $AWK" >&5
18944 echo "${ECHO_T}$AWK" >&6; }
18945 else
18946   { echo "$as_me:$LINENO: result: no" >&5
18947 echo "${ECHO_T}no" >&6; }
18948 fi
18949
18950
18951   test -n "$AWK" && break
18952 done
18953
18954 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18955 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18956 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18958   echo $ECHO_N "(cached) $ECHO_C" >&6
18959 else
18960   cat >conftest.make <<\_ACEOF
18961 SHELL = /bin/sh
18962 all:
18963         @echo '@@@%%%=$(MAKE)=@@@%%%'
18964 _ACEOF
18965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967   *@@@%%%=?*=@@@%%%*)
18968     eval ac_cv_prog_make_${ac_make}_set=yes;;
18969   *)
18970     eval ac_cv_prog_make_${ac_make}_set=no;;
18971 esac
18972 rm -f conftest.make
18973 fi
18974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18975   { echo "$as_me:$LINENO: result: yes" >&5
18976 echo "${ECHO_T}yes" >&6; }
18977   SET_MAKE=
18978 else
18979   { echo "$as_me:$LINENO: result: no" >&5
18980 echo "${ECHO_T}no" >&6; }
18981   SET_MAKE="MAKE=${MAKE-make}"
18982 fi
18983
18984 rm -rf .tst 2>/dev/null
18985 mkdir .tst 2>/dev/null
18986 if test -d .tst; then
18987   am__leading_dot=.
18988 else
18989   am__leading_dot=_
18990 fi
18991 rmdir .tst 2>/dev/null
18992
18993 DEPDIR="${am__leading_dot}deps"
18994
18995 ac_config_commands="$ac_config_commands depfiles"
18996
18997
18998 am_make=${MAKE-make}
18999 cat > confinc << 'END'
19000 am__doit:
19001         @echo done
19002 .PHONY: am__doit
19003 END
19004 # If we don't find an include directive, just comment out the code.
19005 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
19006 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
19007 am__include="#"
19008 am__quote=
19009 _am_result=none
19010 # First try GNU make style include.
19011 echo "include confinc" > confmf
19012 # We grep out `Entering directory' and `Leaving directory'
19013 # messages which can occur if `w' ends up in MAKEFLAGS.
19014 # In particular we don't look at `^make:' because GNU make might
19015 # be invoked under some other name (usually "gmake"), in which
19016 # case it prints its new name instead of `make'.
19017 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
19018    am__include=include
19019    am__quote=
19020    _am_result=GNU
19021 fi
19022 # Now try BSD make style include.
19023 if test "$am__include" = "#"; then
19024    echo '.include "confinc"' > confmf
19025    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
19026       am__include=.include
19027       am__quote="\""
19028       _am_result=BSD
19029    fi
19030 fi
19031
19032
19033 { echo "$as_me:$LINENO: result: $_am_result" >&5
19034 echo "${ECHO_T}$_am_result" >&6; }
19035 rm -f confinc confmf
19036
19037 # Check whether --enable-dependency-tracking was given.
19038 if test "${enable_dependency_tracking+set}" = set; then
19039   enableval=$enable_dependency_tracking;
19040 fi
19041
19042 if test "x$enable_dependency_tracking" != xno; then
19043   am_depcomp="$ac_aux_dir/depcomp"
19044   AMDEPBACKSLASH='\'
19045 fi
19046  if test "x$enable_dependency_tracking" != xno; then
19047   AMDEP_TRUE=
19048   AMDEP_FALSE='#'
19049 else
19050   AMDEP_TRUE='#'
19051   AMDEP_FALSE=
19052 fi
19053
19054
19055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057   # is not polluted with repeated "-I."
19058   am__isrc=' -I$(srcdir)'
19059   # test to see if srcdir already configured
19060   if test -f $srcdir/config.status; then
19061     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
19062 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
19063    { (exit 1); exit 1; }; }
19064   fi
19065 fi
19066
19067 # test whether we have cygpath
19068 if test -z "$CYGPATH_W"; then
19069   if (cygpath --version) >/dev/null 2>/dev/null; then
19070     CYGPATH_W='cygpath -w'
19071   else
19072     CYGPATH_W=echo
19073   fi
19074 fi
19075
19076
19077 # Define the identity of the package.
19078  PACKAGE=OpenBSM
19079  VERSION=1.1alpha5
19080
19081
19082 cat >>confdefs.h <<_ACEOF
19083 #define PACKAGE "$PACKAGE"
19084 _ACEOF
19085
19086
19087 cat >>confdefs.h <<_ACEOF
19088 #define VERSION "$VERSION"
19089 _ACEOF
19090
19091 # Some tools Automake needs.
19092
19093 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19094
19095
19096 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19097
19098
19099 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19100
19101
19102 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19103
19104
19105 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19106
19107 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19108
19109 # Installed binaries are usually stripped using `strip' when the user
19110 # run `make install-strip'.  However `strip' might not be the right
19111 # tool to use in cross-compilation environments, therefore Automake
19112 # will honor the `STRIP' environment variable to overrule this program.
19113 if test "$cross_compiling" != no; then
19114   if test -n "$ac_tool_prefix"; then
19115   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19116 set dummy ${ac_tool_prefix}strip; ac_word=$2
19117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19119 if test "${ac_cv_prog_STRIP+set}" = set; then
19120   echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122   if test -n "$STRIP"; then
19123   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19124 else
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19127 do
19128   IFS=$as_save_IFS
19129   test -z "$as_dir" && as_dir=.
19130   for ac_exec_ext in '' $ac_executable_extensions; do
19131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19132     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19134     break 2
19135   fi
19136 done
19137 done
19138 IFS=$as_save_IFS
19139
19140 fi
19141 fi
19142 STRIP=$ac_cv_prog_STRIP
19143 if test -n "$STRIP"; then
19144   { echo "$as_me:$LINENO: result: $STRIP" >&5
19145 echo "${ECHO_T}$STRIP" >&6; }
19146 else
19147   { echo "$as_me:$LINENO: result: no" >&5
19148 echo "${ECHO_T}no" >&6; }
19149 fi
19150
19151
19152 fi
19153 if test -z "$ac_cv_prog_STRIP"; then
19154   ac_ct_STRIP=$STRIP
19155   # Extract the first word of "strip", so it can be a program name with args.
19156 set dummy strip; ac_word=$2
19157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19160   echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162   if test -n "$ac_ct_STRIP"; then
19163   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19164 else
19165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19166 for as_dir in $PATH
19167 do
19168   IFS=$as_save_IFS
19169   test -z "$as_dir" && as_dir=.
19170   for ac_exec_ext in '' $ac_executable_extensions; do
19171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19172     ac_cv_prog_ac_ct_STRIP="strip"
19173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19174     break 2
19175   fi
19176 done
19177 done
19178 IFS=$as_save_IFS
19179
19180 fi
19181 fi
19182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19183 if test -n "$ac_ct_STRIP"; then
19184   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19185 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19186 else
19187   { echo "$as_me:$LINENO: result: no" >&5
19188 echo "${ECHO_T}no" >&6; }
19189 fi
19190
19191   if test "x$ac_ct_STRIP" = x; then
19192     STRIP=":"
19193   else
19194     case $cross_compiling:$ac_tool_warned in
19195 yes:)
19196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19197 whose name does not start with the host triplet.  If you think this
19198 configuration is useful to you, please write to autoconf@gnu.org." >&5
19199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19200 whose name does not start with the host triplet.  If you think this
19201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19202 ac_tool_warned=yes ;;
19203 esac
19204     STRIP=$ac_ct_STRIP
19205   fi
19206 else
19207   STRIP="$ac_cv_prog_STRIP"
19208 fi
19209
19210 fi
19211 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19212
19213 # We need awk for the "check" target.  The system "awk" is bad on
19214 # some platforms.
19215 # Always define AMTAR for backward compatibility.
19216
19217 AMTAR=${AMTAR-"${am_missing_run}tar"}
19218
19219 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19220
19221
19222
19223
19224 depcc="$CC"   am_compiler_list=
19225
19226 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19227 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19228 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19232   # We make a subdir and do the tests there.  Otherwise we can end up
19233   # making bogus files that we don't know about and never remove.  For
19234   # instance it was reported that on HP-UX the gcc test will end up
19235   # making a dummy file named `D' -- because `-MD' means `put the output
19236   # in D'.
19237   mkdir conftest.dir
19238   # Copy depcomp to subdir because otherwise we won't find it if we're
19239   # using a relative directory.
19240   cp "$am_depcomp" conftest.dir
19241   cd conftest.dir
19242   # We will build objects and dependencies in a subdirectory because
19243   # it helps to detect inapplicable dependency modes.  For instance
19244   # both Tru64's cc and ICC support -MD to output dependencies as a
19245   # side effect of compilation, but ICC will put the dependencies in
19246   # the current directory while Tru64 will put them in the object
19247   # directory.
19248   mkdir sub
19249
19250   am_cv_CC_dependencies_compiler_type=none
19251   if test "$am_compiler_list" = ""; then
19252      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19253   fi
19254   for depmode in $am_compiler_list; do
19255     # Setup a source with many dependencies, because some compilers
19256     # like to wrap large dependency lists on column 80 (with \), and
19257     # we should not choose a depcomp mode which is confused by this.
19258     #
19259     # We need to recreate these files for each test, as the compiler may
19260     # overwrite some of them when testing with obscure command lines.
19261     # This happens at least with the AIX C compiler.
19262     : > sub/conftest.c
19263     for i in 1 2 3 4 5 6; do
19264       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19265       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19266       # Solaris 8's {/usr,}/bin/sh.
19267       touch sub/conftst$i.h
19268     done
19269     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19270
19271     case $depmode in
19272     nosideeffect)
19273       # after this tag, mechanisms are not by side-effect, so they'll
19274       # only be used when explicitly requested
19275       if test "x$enable_dependency_tracking" = xyes; then
19276         continue
19277       else
19278         break
19279       fi
19280       ;;
19281     none) break ;;
19282     esac
19283     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19284     # mode.  It turns out that the SunPro C++ compiler does not properly
19285     # handle `-M -o', and we need to detect this.
19286     if depmode=$depmode \
19287        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19288        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19289        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19290          >/dev/null 2>conftest.err &&
19291        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19292        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19293        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19294        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19295       # icc doesn't choke on unknown options, it will just issue warnings
19296       # or remarks (even with -Werror).  So we grep stderr for any message
19297       # that says an option was ignored or not supported.
19298       # When given -MP, icc 7.0 and 7.1 complain thusly:
19299       #   icc: Command line warning: ignoring option '-M'; no argument required
19300       # The diagnosis changed in icc 8.0:
19301       #   icc: Command line remark: option '-MP' not supported
19302       if (grep 'ignoring option' conftest.err ||
19303           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19304         am_cv_CC_dependencies_compiler_type=$depmode
19305         break
19306       fi
19307     fi
19308   done
19309
19310   cd ..
19311   rm -rf conftest.dir
19312 else
19313   am_cv_CC_dependencies_compiler_type=none
19314 fi
19315
19316 fi
19317 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19318 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19320
19321  if
19322   test "x$enable_dependency_tracking" != xno \
19323   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19324   am__fastdepCC_TRUE=
19325   am__fastdepCC_FALSE='#'
19326 else
19327   am__fastdepCC_TRUE='#'
19328   am__fastdepCC_FALSE=
19329 fi
19330
19331
19332 depcc="$CXX"  am_compiler_list=
19333
19334 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19335 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19336 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19340   # We make a subdir and do the tests there.  Otherwise we can end up
19341   # making bogus files that we don't know about and never remove.  For
19342   # instance it was reported that on HP-UX the gcc test will end up
19343   # making a dummy file named `D' -- because `-MD' means `put the output
19344   # in D'.
19345   mkdir conftest.dir
19346   # Copy depcomp to subdir because otherwise we won't find it if we're
19347   # using a relative directory.
19348   cp "$am_depcomp" conftest.dir
19349   cd conftest.dir
19350   # We will build objects and dependencies in a subdirectory because
19351   # it helps to detect inapplicable dependency modes.  For instance
19352   # both Tru64's cc and ICC support -MD to output dependencies as a
19353   # side effect of compilation, but ICC will put the dependencies in
19354   # the current directory while Tru64 will put them in the object
19355   # directory.
19356   mkdir sub
19357
19358   am_cv_CXX_dependencies_compiler_type=none
19359   if test "$am_compiler_list" = ""; then
19360      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19361   fi
19362   for depmode in $am_compiler_list; do
19363     # Setup a source with many dependencies, because some compilers
19364     # like to wrap large dependency lists on column 80 (with \), and
19365     # we should not choose a depcomp mode which is confused by this.
19366     #
19367     # We need to recreate these files for each test, as the compiler may
19368     # overwrite some of them when testing with obscure command lines.
19369     # This happens at least with the AIX C compiler.
19370     : > sub/conftest.c
19371     for i in 1 2 3 4 5 6; do
19372       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19373       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19374       # Solaris 8's {/usr,}/bin/sh.
19375       touch sub/conftst$i.h
19376     done
19377     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19378
19379     case $depmode in
19380     nosideeffect)
19381       # after this tag, mechanisms are not by side-effect, so they'll
19382       # only be used when explicitly requested
19383       if test "x$enable_dependency_tracking" = xyes; then
19384         continue
19385       else
19386         break
19387       fi
19388       ;;
19389     none) break ;;
19390     esac
19391     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19392     # mode.  It turns out that the SunPro C++ compiler does not properly
19393     # handle `-M -o', and we need to detect this.
19394     if depmode=$depmode \
19395        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19396        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19397        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19398          >/dev/null 2>conftest.err &&
19399        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19400        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19401        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19402        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19403       # icc doesn't choke on unknown options, it will just issue warnings
19404       # or remarks (even with -Werror).  So we grep stderr for any message
19405       # that says an option was ignored or not supported.
19406       # When given -MP, icc 7.0 and 7.1 complain thusly:
19407       #   icc: Command line warning: ignoring option '-M'; no argument required
19408       # The diagnosis changed in icc 8.0:
19409       #   icc: Command line remark: option '-MP' not supported
19410       if (grep 'ignoring option' conftest.err ||
19411           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19412         am_cv_CXX_dependencies_compiler_type=$depmode
19413         break
19414       fi
19415     fi
19416   done
19417
19418   cd ..
19419   rm -rf conftest.dir
19420 else
19421   am_cv_CXX_dependencies_compiler_type=none
19422 fi
19423
19424 fi
19425 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19426 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19427 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19428
19429  if
19430   test "x$enable_dependency_tracking" != xno \
19431   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19432   am__fastdepCXX_TRUE=
19433   am__fastdepCXX_FALSE='#'
19434 else
19435   am__fastdepCXX_TRUE='#'
19436   am__fastdepCXX_FALSE=
19437 fi
19438
19439
19440
19441
19442 { echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19443 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19444 if test "${ac_cv_search_dlsym+set}" = set; then
19445   echo $ECHO_N "(cached) $ECHO_C" >&6
19446 else
19447   ac_func_search_save_LIBS=$LIBS
19448 cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 /* Override any GCC internal prototype to avoid an error.
19456    Use char because int might match the return type of a GCC
19457    builtin and then its argument prototype would still apply.  */
19458 #ifdef __cplusplus
19459 extern "C"
19460 #endif
19461 char dlsym ();
19462 int
19463 main ()
19464 {
19465 return dlsym ();
19466   ;
19467   return 0;
19468 }
19469 _ACEOF
19470 for ac_lib in '' dl; do
19471   if test -z "$ac_lib"; then
19472     ac_res="none required"
19473   else
19474     ac_res=-l$ac_lib
19475     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19476   fi
19477   rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481   *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484   (eval "$ac_link") 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } && {
19491          test -z "$ac_c_werror_flag" ||
19492          test ! -s conftest.err
19493        } && test -s conftest$ac_exeext &&
19494        $as_test_x conftest$ac_exeext; then
19495   ac_cv_search_dlsym=$ac_res
19496 else
19497   echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19499
19500
19501 fi
19502
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504       conftest$ac_exeext
19505   if test "${ac_cv_search_dlsym+set}" = set; then
19506   break
19507 fi
19508 done
19509 if test "${ac_cv_search_dlsym+set}" = set; then
19510   :
19511 else
19512   ac_cv_search_dlsym=no
19513 fi
19514 rm conftest.$ac_ext
19515 LIBS=$ac_func_search_save_LIBS
19516 fi
19517 { echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19518 echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19519 ac_res=$ac_cv_search_dlsym
19520 if test "$ac_res" != no; then
19521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19522
19523 fi
19524
19525 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19526 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19527 if test "${ac_cv_search_clock_gettime+set}" = set; then
19528   echo $ECHO_N "(cached) $ECHO_C" >&6
19529 else
19530   ac_func_search_save_LIBS=$LIBS
19531 cat >conftest.$ac_ext <<_ACEOF
19532 /* confdefs.h.  */
19533 _ACEOF
19534 cat confdefs.h >>conftest.$ac_ext
19535 cat >>conftest.$ac_ext <<_ACEOF
19536 /* end confdefs.h.  */
19537
19538 /* Override any GCC internal prototype to avoid an error.
19539    Use char because int might match the return type of a GCC
19540    builtin and then its argument prototype would still apply.  */
19541 #ifdef __cplusplus
19542 extern "C"
19543 #endif
19544 char clock_gettime ();
19545 int
19546 main ()
19547 {
19548 return clock_gettime ();
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 for ac_lib in '' rt; do
19554   if test -z "$ac_lib"; then
19555     ac_res="none required"
19556   else
19557     ac_res=-l$ac_lib
19558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19559   fi
19560   rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (ac_try="$ac_link"
19562 case "(($ac_try" in
19563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564   *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567   (eval "$ac_link") 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } && {
19574          test -z "$ac_c_werror_flag" ||
19575          test ! -s conftest.err
19576        } && test -s conftest$ac_exeext &&
19577        $as_test_x conftest$ac_exeext; then
19578   ac_cv_search_clock_gettime=$ac_res
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583
19584 fi
19585
19586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19587       conftest$ac_exeext
19588   if test "${ac_cv_search_clock_gettime+set}" = set; then
19589   break
19590 fi
19591 done
19592 if test "${ac_cv_search_clock_gettime+set}" = set; then
19593   :
19594 else
19595   ac_cv_search_clock_gettime=no
19596 fi
19597 rm conftest.$ac_ext
19598 LIBS=$ac_func_search_save_LIBS
19599 fi
19600 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19601 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19602 ac_res=$ac_cv_search_clock_gettime
19603 if test "$ac_res" != no; then
19604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19605
19606 fi
19607
19608
19609 # Checks for header files.
19610 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19612 if test "${ac_cv_header_stdc+set}" = set; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 else
19615   cat >conftest.$ac_ext <<_ACEOF
19616 /* confdefs.h.  */
19617 _ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h.  */
19621 #include <stdlib.h>
19622 #include <stdarg.h>
19623 #include <string.h>
19624 #include <float.h>
19625
19626 int
19627 main ()
19628 {
19629
19630   ;
19631   return 0;
19632 }
19633 _ACEOF
19634 rm -f conftest.$ac_objext
19635 if { (ac_try="$ac_compile"
19636 case "(($ac_try" in
19637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638   *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641   (eval "$ac_compile") 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } && {
19648          test -z "$ac_c_werror_flag" ||
19649          test ! -s conftest.err
19650        } && test -s conftest.$ac_objext; then
19651   ac_cv_header_stdc=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656         ac_cv_header_stdc=no
19657 fi
19658
19659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19660
19661 if test $ac_cv_header_stdc = yes; then
19662   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19663   cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h.  */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h.  */
19669 #include <string.h>
19670
19671 _ACEOF
19672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19673   $EGREP "memchr" >/dev/null 2>&1; then
19674   :
19675 else
19676   ac_cv_header_stdc=no
19677 fi
19678 rm -f conftest*
19679
19680 fi
19681
19682 if test $ac_cv_header_stdc = yes; then
19683   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19684   cat >conftest.$ac_ext <<_ACEOF
19685 /* confdefs.h.  */
19686 _ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h.  */
19690 #include <stdlib.h>
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "free" >/dev/null 2>&1; then
19695   :
19696 else
19697   ac_cv_header_stdc=no
19698 fi
19699 rm -f conftest*
19700
19701 fi
19702
19703 if test $ac_cv_header_stdc = yes; then
19704   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19705   if test "$cross_compiling" = yes; then
19706   :
19707 else
19708   cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 #include <ctype.h>
19715 #include <stdlib.h>
19716 #if ((' ' & 0x0FF) == 0x020)
19717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19719 #else
19720 # define ISLOWER(c) \
19721                    (('a' <= (c) && (c) <= 'i') \
19722                      || ('j' <= (c) && (c) <= 'r') \
19723                      || ('s' <= (c) && (c) <= 'z'))
19724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19725 #endif
19726
19727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19728 int
19729 main ()
19730 {
19731   int i;
19732   for (i = 0; i < 256; i++)
19733     if (XOR (islower (i), ISLOWER (i))
19734         || toupper (i) != TOUPPER (i))
19735       return 2;
19736   return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743   *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746   (eval "$ac_link") 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19750   { (case "(($ac_try" in
19751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752   *) ac_try_echo=$ac_try;;
19753 esac
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755   (eval "$ac_try") 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   :
19760 else
19761   echo "$as_me: program exited with status $ac_status" >&5
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ( exit $ac_status )
19766 ac_cv_header_stdc=no
19767 fi
19768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19769 fi
19770
19771
19772 fi
19773 fi
19774 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19775 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19776 if test $ac_cv_header_stdc = yes; then
19777
19778 cat >>confdefs.h <<\_ACEOF
19779 #define STDC_HEADERS 1
19780 _ACEOF
19781
19782 fi
19783
19784 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19785 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19786 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h.  */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h.  */
19795 #include <sys/types.h>
19796 #include <sys/wait.h>
19797 #ifndef WEXITSTATUS
19798 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19799 #endif
19800 #ifndef WIFEXITED
19801 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19802 #endif
19803
19804 int
19805 main ()
19806 {
19807   int s;
19808   wait (&s);
19809   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818   *) ac_try_echo=$ac_try;;
19819 esac
19820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821   (eval "$ac_compile") 2>conftest.er1
19822   ac_status=$?
19823   grep -v '^ *+' conftest.er1 >conftest.err
19824   rm -f conftest.er1
19825   cat conftest.err >&5
19826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827   (exit $ac_status); } && {
19828          test -z "$ac_c_werror_flag" ||
19829          test ! -s conftest.err
19830        } && test -s conftest.$ac_objext; then
19831   ac_cv_header_sys_wait_h=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836         ac_cv_header_sys_wait_h=no
19837 fi
19838
19839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 fi
19841 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19842 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19843 if test $ac_cv_header_sys_wait_h = yes; then
19844
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_SYS_WAIT_H 1
19847 _ACEOF
19848
19849 fi
19850
19851
19852
19853
19854
19855
19856 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h stdint.h
19857 do
19858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19860   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 fi
19865 ac_res=`eval echo '${'$as_ac_Header'}'`
19866                { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868 else
19869   # Is the header compilable?
19870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878 $ac_includes_default
19879 #include <$ac_header>
19880 _ACEOF
19881 rm -f conftest.$ac_objext
19882 if { (ac_try="$ac_compile"
19883 case "(($ac_try" in
19884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885   *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888   (eval "$ac_compile") 2>conftest.er1
19889   ac_status=$?
19890   grep -v '^ *+' conftest.er1 >conftest.err
19891   rm -f conftest.er1
19892   cat conftest.err >&5
19893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894   (exit $ac_status); } && {
19895          test -z "$ac_c_werror_flag" ||
19896          test ! -s conftest.err
19897        } && test -s conftest.$ac_objext; then
19898   ac_header_compiler=yes
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19902
19903         ac_header_compiler=no
19904 fi
19905
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19908 echo "${ECHO_T}$ac_header_compiler" >&6; }
19909
19910 # Is the header present?
19911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 #include <$ac_header>
19920 _ACEOF
19921 if { (ac_try="$ac_cpp conftest.$ac_ext"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19928   ac_status=$?
19929   grep -v '^ *+' conftest.er1 >conftest.err
19930   rm -f conftest.er1
19931   cat conftest.err >&5
19932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933   (exit $ac_status); } >/dev/null && {
19934          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19935          test ! -s conftest.err
19936        }; then
19937   ac_header_preproc=yes
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942   ac_header_preproc=no
19943 fi
19944
19945 rm -f conftest.err conftest.$ac_ext
19946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19947 echo "${ECHO_T}$ac_header_preproc" >&6; }
19948
19949 # So?  What about this header?
19950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19951   yes:no: )
19952     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19954     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19956     ac_header_preproc=yes
19957     ;;
19958   no:yes:* )
19959     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19961     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19962 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19963     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19965     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19966 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19969     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19971     ( cat <<\_ASBOX
19972 ## ----------------------------------------------- ##
19973 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
19974 ## ----------------------------------------------- ##
19975 _ASBOX
19976      ) | sed "s/^/$as_me: WARNING:     /" >&2
19977     ;;
19978 esac
19979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   eval "$as_ac_Header=\$ac_header_preproc"
19985 fi
19986 ac_res=`eval echo '${'$as_ac_Header'}'`
19987                { echo "$as_me:$LINENO: result: $ac_res" >&5
19988 echo "${ECHO_T}$ac_res" >&6; }
19989
19990 fi
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992   cat >>confdefs.h <<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994 _ACEOF
19995
19996 fi
19997
19998 done
19999
20000
20001 # Checks for typedefs, structures, and compiler characteristics.
20002 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20003 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20004 if test "${ac_cv_c_const+set}" = set; then
20005   echo $ECHO_N "(cached) $ECHO_C" >&6
20006 else
20007   cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013
20014 int
20015 main ()
20016 {
20017 /* FIXME: Include the comments suggested by Paul. */
20018 #ifndef __cplusplus
20019   /* Ultrix mips cc rejects this.  */
20020   typedef int charset[2];
20021   const charset cs;
20022   /* SunOS 4.1.1 cc rejects this.  */
20023   char const *const *pcpcc;
20024   char **ppc;
20025   /* NEC SVR4.0.2 mips cc rejects this.  */
20026   struct point {int x, y;};
20027   static struct point const zero = {0,0};
20028   /* AIX XL C 1.02.0.0 rejects this.
20029      It does not let you subtract one const X* pointer from another in
20030      an arm of an if-expression whose if-part is not a constant
20031      expression */
20032   const char *g = "string";
20033   pcpcc = &g + (g ? g-g : 0);
20034   /* HPUX 7.0 cc rejects these. */
20035   ++pcpcc;
20036   ppc = (char**) pcpcc;
20037   pcpcc = (char const *const *) ppc;
20038   { /* SCO 3.2v4 cc rejects this.  */
20039     char *t;
20040     char const *s = 0 ? (char *) 0 : (char const *) 0;
20041
20042     *t++ = 0;
20043     if (s) return 0;
20044   }
20045   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20046     int x[] = {25, 17};
20047     const int *foo = &x[0];
20048     ++foo;
20049   }
20050   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20051     typedef const int *iptr;
20052     iptr p = 0;
20053     ++p;
20054   }
20055   { /* AIX XL C 1.02.0.0 rejects this saying
20056        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20057     struct s { int j; const int *ap[3]; };
20058     struct s *b; b->j = 5;
20059   }
20060   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20061     const int foo = 10;
20062     if (!foo) return 0;
20063   }
20064   return !cs[0] && !zero.x;
20065 #endif
20066
20067   ;
20068   return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075   *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078   (eval "$ac_compile") 2>conftest.er1
20079   ac_status=$?
20080   grep -v '^ *+' conftest.er1 >conftest.err
20081   rm -f conftest.er1
20082   cat conftest.err >&5
20083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084   (exit $ac_status); } && {
20085          test -z "$ac_c_werror_flag" ||
20086          test ! -s conftest.err
20087        } && test -s conftest.$ac_objext; then
20088   ac_cv_c_const=yes
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093         ac_cv_c_const=no
20094 fi
20095
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 fi
20098 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20099 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20100 if test $ac_cv_c_const = no; then
20101
20102 cat >>confdefs.h <<\_ACEOF
20103 #define const
20104 _ACEOF
20105
20106 fi
20107
20108 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20109 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20110 if test "${ac_cv_type_uid_t+set}" = set; then
20111   echo $ECHO_N "(cached) $ECHO_C" >&6
20112 else
20113   cat >conftest.$ac_ext <<_ACEOF
20114 /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119 #include <sys/types.h>
20120
20121 _ACEOF
20122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20123   $EGREP "uid_t" >/dev/null 2>&1; then
20124   ac_cv_type_uid_t=yes
20125 else
20126   ac_cv_type_uid_t=no
20127 fi
20128 rm -f conftest*
20129
20130 fi
20131 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20132 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20133 if test $ac_cv_type_uid_t = no; then
20134
20135 cat >>confdefs.h <<\_ACEOF
20136 #define uid_t int
20137 _ACEOF
20138
20139
20140 cat >>confdefs.h <<\_ACEOF
20141 #define gid_t int
20142 _ACEOF
20143
20144 fi
20145
20146 { echo "$as_me:$LINENO: checking for pid_t" >&5
20147 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20148 if test "${ac_cv_type_pid_t+set}" = set; then
20149   echo $ECHO_N "(cached) $ECHO_C" >&6
20150 else
20151   cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h.  */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h.  */
20157 $ac_includes_default
20158 typedef pid_t ac__type_new_;
20159 int
20160 main ()
20161 {
20162 if ((ac__type_new_ *) 0)
20163   return 0;
20164 if (sizeof (ac__type_new_))
20165   return 0;
20166   ;
20167   return 0;
20168 }
20169 _ACEOF
20170 rm -f conftest.$ac_objext
20171 if { (ac_try="$ac_compile"
20172 case "(($ac_try" in
20173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174   *) ac_try_echo=$ac_try;;
20175 esac
20176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177   (eval "$ac_compile") 2>conftest.er1
20178   ac_status=$?
20179   grep -v '^ *+' conftest.er1 >conftest.err
20180   rm -f conftest.er1
20181   cat conftest.err >&5
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); } && {
20184          test -z "$ac_c_werror_flag" ||
20185          test ! -s conftest.err
20186        } && test -s conftest.$ac_objext; then
20187   ac_cv_type_pid_t=yes
20188 else
20189   echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192         ac_cv_type_pid_t=no
20193 fi
20194
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 fi
20197 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20199 if test $ac_cv_type_pid_t = yes; then
20200   :
20201 else
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define pid_t int
20205 _ACEOF
20206
20207 fi
20208
20209 { echo "$as_me:$LINENO: checking for size_t" >&5
20210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20211 if test "${ac_cv_type_size_t+set}" = set; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214   cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 $ac_includes_default
20221 typedef size_t ac__type_new_;
20222 int
20223 main ()
20224 {
20225 if ((ac__type_new_ *) 0)
20226   return 0;
20227 if (sizeof (ac__type_new_))
20228   return 0;
20229   ;
20230   return 0;
20231 }
20232 _ACEOF
20233 rm -f conftest.$ac_objext
20234 if { (ac_try="$ac_compile"
20235 case "(($ac_try" in
20236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237   *) ac_try_echo=$ac_try;;
20238 esac
20239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240   (eval "$ac_compile") 2>conftest.er1
20241   ac_status=$?
20242   grep -v '^ *+' conftest.er1 >conftest.err
20243   rm -f conftest.er1
20244   cat conftest.err >&5
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } && {
20247          test -z "$ac_c_werror_flag" ||
20248          test ! -s conftest.err
20249        } && test -s conftest.$ac_objext; then
20250   ac_cv_type_size_t=yes
20251 else
20252   echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20254
20255         ac_cv_type_size_t=no
20256 fi
20257
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 fi
20260 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20261 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20262 if test $ac_cv_type_size_t = yes; then
20263   :
20264 else
20265
20266 cat >>confdefs.h <<_ACEOF
20267 #define size_t unsigned int
20268 _ACEOF
20269
20270 fi
20271
20272 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20273 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20274 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 $ac_includes_default
20284 int
20285 main ()
20286 {
20287 static struct stat ac_aggr;
20288 if (ac_aggr.st_rdev)
20289 return 0;
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && {
20308          test -z "$ac_c_werror_flag" ||
20309          test ! -s conftest.err
20310        } && test -s conftest.$ac_objext; then
20311   ac_cv_member_struct_stat_st_rdev=yes
20312 else
20313   echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316         cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h.  */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h.  */
20322 $ac_includes_default
20323 int
20324 main ()
20325 {
20326 static struct stat ac_aggr;
20327 if (sizeof ac_aggr.st_rdev)
20328 return 0;
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (ac_try="$ac_compile"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_compile") 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } && {
20347          test -z "$ac_c_werror_flag" ||
20348          test ! -s conftest.err
20349        } && test -s conftest.$ac_objext; then
20350   ac_cv_member_struct_stat_st_rdev=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355         ac_cv_member_struct_stat_st_rdev=no
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359 fi
20360
20361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362 fi
20363 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20364 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20365 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20366
20367 cat >>confdefs.h <<_ACEOF
20368 #define HAVE_STRUCT_STAT_ST_RDEV 1
20369 _ACEOF
20370
20371
20372 fi
20373
20374
20375 { echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20376 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20377 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 #include <sys/types.h>
20388 #include <sys/ipc.h>
20389
20390
20391 int
20392 main ()
20393 {
20394 static struct ipc_perm ac_aggr;
20395 if (ac_aggr.__key)
20396 return 0;
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (ac_try="$ac_compile"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_compile") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest.$ac_objext; then
20418   ac_cv_member_struct_ipc_perm___key=yes
20419 else
20420   echo "$as_me: failed program was:" >&5
20421 sed 's/^/| /' conftest.$ac_ext >&5
20422
20423         cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h.  */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h.  */
20429
20430 #include <sys/types.h>
20431 #include <sys/ipc.h>
20432
20433
20434 int
20435 main ()
20436 {
20437 static struct ipc_perm ac_aggr;
20438 if (sizeof ac_aggr.__key)
20439 return 0;
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (ac_try="$ac_compile"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_compile") 2>conftest.er1
20452   ac_status=$?
20453   grep -v '^ *+' conftest.er1 >conftest.err
20454   rm -f conftest.er1
20455   cat conftest.err >&5
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); } && {
20458          test -z "$ac_c_werror_flag" ||
20459          test ! -s conftest.err
20460        } && test -s conftest.$ac_objext; then
20461   ac_cv_member_struct_ipc_perm___key=yes
20462 else
20463   echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466         ac_cv_member_struct_ipc_perm___key=no
20467 fi
20468
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 fi
20471
20472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 fi
20474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20475 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20476 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20477
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE_IPC_PERM___KEY
20480 _ACEOF
20481
20482 fi
20483
20484
20485 { echo "$as_me:$LINENO: checking for struct ipc_perm._key" >&5
20486 echo $ECHO_N "checking for struct ipc_perm._key... $ECHO_C" >&6; }
20487 if test "${ac_cv_member_struct_ipc_perm__key+set}" = set; then
20488   echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490   cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496
20497 #include <sys/types.h>
20498 #include <sys/ipc.h>
20499
20500
20501 int
20502 main ()
20503 {
20504 static struct ipc_perm ac_aggr;
20505 if (ac_aggr._key)
20506 return 0;
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (ac_try="$ac_compile"
20513 case "(($ac_try" in
20514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515   *) ac_try_echo=$ac_try;;
20516 esac
20517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518   (eval "$ac_compile") 2>conftest.er1
20519   ac_status=$?
20520   grep -v '^ *+' conftest.er1 >conftest.err
20521   rm -f conftest.er1
20522   cat conftest.err >&5
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); } && {
20525          test -z "$ac_c_werror_flag" ||
20526          test ! -s conftest.err
20527        } && test -s conftest.$ac_objext; then
20528   ac_cv_member_struct_ipc_perm__key=yes
20529 else
20530   echo "$as_me: failed program was:" >&5
20531 sed 's/^/| /' conftest.$ac_ext >&5
20532
20533         cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539
20540 #include <sys/types.h>
20541 #include <sys/ipc.h>
20542
20543
20544 int
20545 main ()
20546 {
20547 static struct ipc_perm ac_aggr;
20548 if (sizeof ac_aggr._key)
20549 return 0;
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 rm -f conftest.$ac_objext
20555 if { (ac_try="$ac_compile"
20556 case "(($ac_try" in
20557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558   *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561   (eval "$ac_compile") 2>conftest.er1
20562   ac_status=$?
20563   grep -v '^ *+' conftest.er1 >conftest.err
20564   rm -f conftest.er1
20565   cat conftest.err >&5
20566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567   (exit $ac_status); } && {
20568          test -z "$ac_c_werror_flag" ||
20569          test ! -s conftest.err
20570        } && test -s conftest.$ac_objext; then
20571   ac_cv_member_struct_ipc_perm__key=yes
20572 else
20573   echo "$as_me: failed program was:" >&5
20574 sed 's/^/| /' conftest.$ac_ext >&5
20575
20576         ac_cv_member_struct_ipc_perm__key=no
20577 fi
20578
20579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 fi
20584 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__key" >&5
20585 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__key" >&6; }
20586 if test $ac_cv_member_struct_ipc_perm__key = yes; then
20587
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_IPC_PERM__KEY
20590 _ACEOF
20591
20592 fi
20593
20594
20595 { echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20596 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20597 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20598   echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600   cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h.  */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h.  */
20606
20607 #include <sys/types.h>
20608 #include <sys/ipc.h>
20609
20610
20611 int
20612 main ()
20613 {
20614 static struct ipc_perm ac_aggr;
20615 if (ac_aggr.__seq)
20616 return 0;
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext
20622 if { (ac_try="$ac_compile"
20623 case "(($ac_try" in
20624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625   *) ac_try_echo=$ac_try;;
20626 esac
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628   (eval "$ac_compile") 2>conftest.er1
20629   ac_status=$?
20630   grep -v '^ *+' conftest.er1 >conftest.err
20631   rm -f conftest.er1
20632   cat conftest.err >&5
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); } && {
20635          test -z "$ac_c_werror_flag" ||
20636          test ! -s conftest.err
20637        } && test -s conftest.$ac_objext; then
20638   ac_cv_member_struct_ipc_perm___seq=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         cat >conftest.$ac_ext <<_ACEOF
20644 /* confdefs.h.  */
20645 _ACEOF
20646 cat confdefs.h >>conftest.$ac_ext
20647 cat >>conftest.$ac_ext <<_ACEOF
20648 /* end confdefs.h.  */
20649
20650 #include <sys/types.h>
20651 #include <sys/ipc.h>
20652
20653
20654 int
20655 main ()
20656 {
20657 static struct ipc_perm ac_aggr;
20658 if (sizeof ac_aggr.__seq)
20659 return 0;
20660   ;
20661   return 0;
20662 }
20663 _ACEOF
20664 rm -f conftest.$ac_objext
20665 if { (ac_try="$ac_compile"
20666 case "(($ac_try" in
20667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668   *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671   (eval "$ac_compile") 2>conftest.er1
20672   ac_status=$?
20673   grep -v '^ *+' conftest.er1 >conftest.err
20674   rm -f conftest.er1
20675   cat conftest.err >&5
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); } && {
20678          test -z "$ac_c_werror_flag" ||
20679          test ! -s conftest.err
20680        } && test -s conftest.$ac_objext; then
20681   ac_cv_member_struct_ipc_perm___seq=yes
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686         ac_cv_member_struct_ipc_perm___seq=no
20687 fi
20688
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691
20692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20693 fi
20694 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20695 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20696 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define HAVE_IPC_PERM___SEQ
20700 _ACEOF
20701
20702 fi
20703
20704
20705 { echo "$as_me:$LINENO: checking for struct ipc_perm._seq" >&5
20706 echo $ECHO_N "checking for struct ipc_perm._seq... $ECHO_C" >&6; }
20707 if test "${ac_cv_member_struct_ipc_perm__seq+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710   cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716
20717 #include <sys/types.h>
20718 #include <sys/ipc.h>
20719
20720
20721 int
20722 main ()
20723 {
20724 static struct ipc_perm ac_aggr;
20725 if (ac_aggr._seq)
20726 return 0;
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_compile") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && {
20745          test -z "$ac_c_werror_flag" ||
20746          test ! -s conftest.err
20747        } && test -s conftest.$ac_objext; then
20748   ac_cv_member_struct_ipc_perm__seq=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753         cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h.  */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h.  */
20759
20760 #include <sys/types.h>
20761 #include <sys/ipc.h>
20762
20763
20764 int
20765 main ()
20766 {
20767 static struct ipc_perm ac_aggr;
20768 if (sizeof ac_aggr._seq)
20769 return 0;
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_compile") 2>conftest.er1
20782   ac_status=$?
20783   grep -v '^ *+' conftest.er1 >conftest.err
20784   rm -f conftest.er1
20785   cat conftest.err >&5
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); } && {
20788          test -z "$ac_c_werror_flag" ||
20789          test ! -s conftest.err
20790        } && test -s conftest.$ac_objext; then
20791   ac_cv_member_struct_ipc_perm__seq=yes
20792 else
20793   echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20795
20796         ac_cv_member_struct_ipc_perm__seq=no
20797 fi
20798
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20803 fi
20804 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm__seq" >&5
20805 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm__seq" >&6; }
20806 if test $ac_cv_member_struct_ipc_perm__seq = yes; then
20807
20808 cat >>confdefs.h <<\_ACEOF
20809 #define HAVE_IPC_PERM__SEQ
20810 _ACEOF
20811
20812 fi
20813
20814
20815 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20816 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20817 if test "${ac_cv_header_time+set}" = set; then
20818   echo $ECHO_N "(cached) $ECHO_C" >&6
20819 else
20820   cat >conftest.$ac_ext <<_ACEOF
20821 /* confdefs.h.  */
20822 _ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h.  */
20826 #include <sys/types.h>
20827 #include <sys/time.h>
20828 #include <time.h>
20829
20830 int
20831 main ()
20832 {
20833 if ((struct tm *) 0)
20834 return 0;
20835   ;
20836   return 0;
20837 }
20838 _ACEOF
20839 rm -f conftest.$ac_objext
20840 if { (ac_try="$ac_compile"
20841 case "(($ac_try" in
20842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843   *) ac_try_echo=$ac_try;;
20844 esac
20845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20846   (eval "$ac_compile") 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } && {
20853          test -z "$ac_c_werror_flag" ||
20854          test ! -s conftest.err
20855        } && test -s conftest.$ac_objext; then
20856   ac_cv_header_time=yes
20857 else
20858   echo "$as_me: failed program was:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20860
20861         ac_cv_header_time=no
20862 fi
20863
20864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20867 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20868 if test $ac_cv_header_time = yes; then
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define TIME_WITH_SYS_TIME 1
20872 _ACEOF
20873
20874 fi
20875
20876 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20878 if test "${ac_cv_struct_tm+set}" = set; then
20879   echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881   cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 #include <sys/types.h>
20888 #include <time.h>
20889
20890 int
20891 main ()
20892 {
20893 struct tm tm;
20894                                      int *p = &tm.tm_sec;
20895                                      return !p;
20896   ;
20897   return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904   *) ac_try_echo=$ac_try;;
20905 esac
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907   (eval "$ac_compile") 2>conftest.er1
20908   ac_status=$?
20909   grep -v '^ *+' conftest.er1 >conftest.err
20910   rm -f conftest.er1
20911   cat conftest.err >&5
20912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913   (exit $ac_status); } && {
20914          test -z "$ac_c_werror_flag" ||
20915          test ! -s conftest.err
20916        } && test -s conftest.$ac_objext; then
20917   ac_cv_struct_tm=time.h
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922         ac_cv_struct_tm=sys/time.h
20923 fi
20924
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926 fi
20927 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20928 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20929 if test $ac_cv_struct_tm = sys/time.h; then
20930
20931 cat >>confdefs.h <<\_ACEOF
20932 #define TM_IN_SYS_TIME 1
20933 _ACEOF
20934
20935 fi
20936
20937
20938 # Checks for library functions.
20939
20940 for ac_header in unistd.h
20941 do
20942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20944   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20947   echo $ECHO_N "(cached) $ECHO_C" >&6
20948 fi
20949 ac_res=`eval echo '${'$as_ac_Header'}'`
20950                { echo "$as_me:$LINENO: result: $ac_res" >&5
20951 echo "${ECHO_T}$ac_res" >&6; }
20952 else
20953   # Is the header compilable?
20954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h.  */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h.  */
20962 $ac_includes_default
20963 #include <$ac_header>
20964 _ACEOF
20965 rm -f conftest.$ac_objext
20966 if { (ac_try="$ac_compile"
20967 case "(($ac_try" in
20968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20969   *) ac_try_echo=$ac_try;;
20970 esac
20971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20972   (eval "$ac_compile") 2>conftest.er1
20973   ac_status=$?
20974   grep -v '^ *+' conftest.er1 >conftest.err
20975   rm -f conftest.er1
20976   cat conftest.err >&5
20977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978   (exit $ac_status); } && {
20979          test -z "$ac_c_werror_flag" ||
20980          test ! -s conftest.err
20981        } && test -s conftest.$ac_objext; then
20982   ac_header_compiler=yes
20983 else
20984   echo "$as_me: failed program was:" >&5
20985 sed 's/^/| /' conftest.$ac_ext >&5
20986
20987         ac_header_compiler=no
20988 fi
20989
20990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20992 echo "${ECHO_T}$ac_header_compiler" >&6; }
20993
20994 # Is the header present?
20995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 #include <$ac_header>
21004 _ACEOF
21005 if { (ac_try="$ac_cpp conftest.$ac_ext"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } >/dev/null && {
21018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        }; then
21021   ac_header_preproc=yes
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026   ac_header_preproc=no
21027 fi
21028
21029 rm -f conftest.err conftest.$ac_ext
21030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21031 echo "${ECHO_T}$ac_header_preproc" >&6; }
21032
21033 # So?  What about this header?
21034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21035   yes:no: )
21036     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21040     ac_header_preproc=yes
21041     ;;
21042   no:yes:* )
21043     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21045     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21046 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21047     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21049     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21050 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21053     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21055     ( cat <<\_ASBOX
21056 ## ----------------------------------------------- ##
21057 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21058 ## ----------------------------------------------- ##
21059 _ASBOX
21060      ) | sed "s/^/$as_me: WARNING:     /" >&2
21061     ;;
21062 esac
21063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   eval "$as_ac_Header=\$ac_header_preproc"
21069 fi
21070 ac_res=`eval echo '${'$as_ac_Header'}'`
21071                { echo "$as_me:$LINENO: result: $ac_res" >&5
21072 echo "${ECHO_T}$ac_res" >&6; }
21073
21074 fi
21075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21076   cat >>confdefs.h <<_ACEOF
21077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21078 _ACEOF
21079
21080 fi
21081
21082 done
21083
21084 { echo "$as_me:$LINENO: checking for working chown" >&5
21085 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
21086 if test "${ac_cv_func_chown_works+set}" = set; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089   if test "$cross_compiling" = yes; then
21090   ac_cv_func_chown_works=no
21091 else
21092   cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 $ac_includes_default
21099 #include <fcntl.h>
21100
21101 int
21102 main ()
21103 {
21104   char *f = "conftest.chown";
21105   struct stat before, after;
21106
21107   if (creat (f, 0600) < 0)
21108     return 1;
21109   if (stat (f, &before) < 0)
21110     return 1;
21111   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21112     return 1;
21113   if (stat (f, &after) < 0)
21114     return 1;
21115   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
21116
21117   ;
21118   return 0;
21119 }
21120 _ACEOF
21121 rm -f conftest$ac_exeext
21122 if { (ac_try="$ac_link"
21123 case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_link") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21132   { (case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_try") 2>&5
21138   ac_status=$?
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); }; }; then
21141   ac_cv_func_chown_works=yes
21142 else
21143   echo "$as_me: program exited with status $ac_status" >&5
21144 echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21146
21147 ( exit $ac_status )
21148 ac_cv_func_chown_works=no
21149 fi
21150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151 fi
21152
21153
21154 rm -f conftest.chown
21155
21156 fi
21157 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
21158 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
21159 if test $ac_cv_func_chown_works = yes; then
21160
21161 cat >>confdefs.h <<\_ACEOF
21162 #define HAVE_CHOWN 1
21163 _ACEOF
21164
21165 fi
21166
21167
21168 for ac_header in vfork.h
21169 do
21170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21175   echo $ECHO_N "(cached) $ECHO_C" >&6
21176 fi
21177 ac_res=`eval echo '${'$as_ac_Header'}'`
21178                { echo "$as_me:$LINENO: result: $ac_res" >&5
21179 echo "${ECHO_T}$ac_res" >&6; }
21180 else
21181   # Is the header compilable?
21182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21184 cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h.  */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h.  */
21190 $ac_includes_default
21191 #include <$ac_header>
21192 _ACEOF
21193 rm -f conftest.$ac_objext
21194 if { (ac_try="$ac_compile"
21195 case "(($ac_try" in
21196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197   *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200   (eval "$ac_compile") 2>conftest.er1
21201   ac_status=$?
21202   grep -v '^ *+' conftest.er1 >conftest.err
21203   rm -f conftest.er1
21204   cat conftest.err >&5
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); } && {
21207          test -z "$ac_c_werror_flag" ||
21208          test ! -s conftest.err
21209        } && test -s conftest.$ac_objext; then
21210   ac_header_compiler=yes
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215         ac_header_compiler=no
21216 fi
21217
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220 echo "${ECHO_T}$ac_header_compiler" >&6; }
21221
21222 # Is the header present?
21223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21225 cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h.  */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h.  */
21231 #include <$ac_header>
21232 _ACEOF
21233 if { (ac_try="$ac_cpp conftest.$ac_ext"
21234 case "(($ac_try" in
21235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236   *) ac_try_echo=$ac_try;;
21237 esac
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21240   ac_status=$?
21241   grep -v '^ *+' conftest.er1 >conftest.err
21242   rm -f conftest.er1
21243   cat conftest.err >&5
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } >/dev/null && {
21246          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21247          test ! -s conftest.err
21248        }; then
21249   ac_header_preproc=yes
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254   ac_header_preproc=no
21255 fi
21256
21257 rm -f conftest.err conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259 echo "${ECHO_T}$ac_header_preproc" >&6; }
21260
21261 # So?  What about this header?
21262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21263   yes:no: )
21264     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21266     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21268     ac_header_preproc=yes
21269     ;;
21270   no:yes:* )
21271     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21273     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21274 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21275     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21277     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21278 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21281     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21283     ( cat <<\_ASBOX
21284 ## ----------------------------------------------- ##
21285 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21286 ## ----------------------------------------------- ##
21287 _ASBOX
21288      ) | sed "s/^/$as_me: WARNING:     /" >&2
21289     ;;
21290 esac
21291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21294   echo $ECHO_N "(cached) $ECHO_C" >&6
21295 else
21296   eval "$as_ac_Header=\$ac_header_preproc"
21297 fi
21298 ac_res=`eval echo '${'$as_ac_Header'}'`
21299                { echo "$as_me:$LINENO: result: $ac_res" >&5
21300 echo "${ECHO_T}$ac_res" >&6; }
21301
21302 fi
21303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21304   cat >>confdefs.h <<_ACEOF
21305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21306 _ACEOF
21307
21308 fi
21309
21310 done
21311
21312
21313
21314 for ac_func in fork vfork
21315 do
21316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21320   echo $ECHO_N "(cached) $ECHO_C" >&6
21321 else
21322   cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h.  */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h.  */
21328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21330 #define $ac_func innocuous_$ac_func
21331
21332 /* System header to define __stub macros and hopefully few prototypes,
21333     which can conflict with char $ac_func (); below.
21334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21335     <limits.h> exists even on freestanding compilers.  */
21336
21337 #ifdef __STDC__
21338 # include <limits.h>
21339 #else
21340 # include <assert.h>
21341 #endif
21342
21343 #undef $ac_func
21344
21345 /* Override any GCC internal prototype to avoid an error.
21346    Use char because int might match the return type of a GCC
21347    builtin and then its argument prototype would still apply.  */
21348 #ifdef __cplusplus
21349 extern "C"
21350 #endif
21351 char $ac_func ();
21352 /* The GNU C library defines this for functions which it implements
21353     to always fail with ENOSYS.  Some functions are actually named
21354     something starting with __ and the normal name is an alias.  */
21355 #if defined __stub_$ac_func || defined __stub___$ac_func
21356 choke me
21357 #endif
21358
21359 int
21360 main ()
21361 {
21362 return $ac_func ();
21363   ;
21364   return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_link") 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } && {
21381          test -z "$ac_c_werror_flag" ||
21382          test ! -s conftest.err
21383        } && test -s conftest$ac_exeext &&
21384        $as_test_x conftest$ac_exeext; then
21385   eval "$as_ac_var=yes"
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390         eval "$as_ac_var=no"
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394       conftest$ac_exeext conftest.$ac_ext
21395 fi
21396 ac_res=`eval echo '${'$as_ac_var'}'`
21397                { echo "$as_me:$LINENO: result: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_var'}'` = yes; then
21400   cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21402 _ACEOF
21403
21404 fi
21405 done
21406
21407 if test "x$ac_cv_func_fork" = xyes; then
21408   { echo "$as_me:$LINENO: checking for working fork" >&5
21409 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21410 if test "${ac_cv_func_fork_works+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   if test "$cross_compiling" = yes; then
21414   ac_cv_func_fork_works=cross
21415 else
21416   cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 $ac_includes_default
21423 int
21424 main ()
21425 {
21426
21427           /* By Ruediger Kuhlmann. */
21428           return fork () < 0;
21429
21430   ;
21431   return 0;
21432 }
21433 _ACEOF
21434 rm -f conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438   *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441   (eval "$ac_link") 2>&5
21442   ac_status=$?
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445   { (case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450   (eval "$ac_try") 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   ac_cv_func_fork_works=yes
21455 else
21456   echo "$as_me: program exited with status $ac_status" >&5
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21459
21460 ( exit $ac_status )
21461 ac_cv_func_fork_works=no
21462 fi
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21464 fi
21465
21466
21467 fi
21468 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21469 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21470
21471 else
21472   ac_cv_func_fork_works=$ac_cv_func_fork
21473 fi
21474 if test "x$ac_cv_func_fork_works" = xcross; then
21475   case $host in
21476     *-*-amigaos* | *-*-msdosdjgpp*)
21477       # Override, as these systems have only a dummy fork() stub
21478       ac_cv_func_fork_works=no
21479       ;;
21480     *)
21481       ac_cv_func_fork_works=yes
21482       ;;
21483   esac
21484   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21485 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21486 fi
21487 ac_cv_func_vfork_works=$ac_cv_func_vfork
21488 if test "x$ac_cv_func_vfork" = xyes; then
21489   { echo "$as_me:$LINENO: checking for working vfork" >&5
21490 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21491 if test "${ac_cv_func_vfork_works+set}" = set; then
21492   echo $ECHO_N "(cached) $ECHO_C" >&6
21493 else
21494   if test "$cross_compiling" = yes; then
21495   ac_cv_func_vfork_works=cross
21496 else
21497   cat >conftest.$ac_ext <<_ACEOF
21498 /* confdefs.h.  */
21499 _ACEOF
21500 cat confdefs.h >>conftest.$ac_ext
21501 cat >>conftest.$ac_ext <<_ACEOF
21502 /* end confdefs.h.  */
21503 /* Thanks to Paul Eggert for this test.  */
21504 $ac_includes_default
21505 #include <sys/wait.h>
21506 #ifdef HAVE_VFORK_H
21507 # include <vfork.h>
21508 #endif
21509 /* On some sparc systems, changes by the child to local and incoming
21510    argument registers are propagated back to the parent.  The compiler
21511    is told about this with #include <vfork.h>, but some compilers
21512    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21513    static variable whose address is put into a register that is
21514    clobbered by the vfork.  */
21515 static void
21516 #ifdef __cplusplus
21517 sparc_address_test (int arg)
21518 # else
21519 sparc_address_test (arg) int arg;
21520 #endif
21521 {
21522   static pid_t child;
21523   if (!child) {
21524     child = vfork ();
21525     if (child < 0) {
21526       perror ("vfork");
21527       _exit(2);
21528     }
21529     if (!child) {
21530       arg = getpid();
21531       write(-1, "", 0);
21532       _exit (arg);
21533     }
21534   }
21535 }
21536
21537 int
21538 main ()
21539 {
21540   pid_t parent = getpid ();
21541   pid_t child;
21542
21543   sparc_address_test (0);
21544
21545   child = vfork ();
21546
21547   if (child == 0) {
21548     /* Here is another test for sparc vfork register problems.  This
21549        test uses lots of local variables, at least as many local
21550        variables as main has allocated so far including compiler
21551        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21552        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21553        reuse the register of parent for one of the local variables,
21554        since it will think that parent can't possibly be used any more
21555        in this routine.  Assigning to the local variable will thus
21556        munge parent in the parent process.  */
21557     pid_t
21558       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21559       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21560     /* Convince the compiler that p..p7 are live; otherwise, it might
21561        use the same hardware register for all 8 local variables.  */
21562     if (p != p1 || p != p2 || p != p3 || p != p4
21563         || p != p5 || p != p6 || p != p7)
21564       _exit(1);
21565
21566     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21567        from child file descriptors.  If the child closes a descriptor
21568        before it execs or exits, this munges the parent's descriptor
21569        as well.  Test for this by closing stdout in the child.  */
21570     _exit(close(fileno(stdout)) != 0);
21571   } else {
21572     int status;
21573     struct stat st;
21574
21575     while (wait(&status) != child)
21576       ;
21577     return (
21578          /* Was there some problem with vforking?  */
21579          child < 0
21580
21581          /* Did the child fail?  (This shouldn't happen.)  */
21582          || status
21583
21584          /* Did the vfork/compiler bug occur?  */
21585          || parent != getpid()
21586
21587          /* Did the file descriptor bug occur?  */
21588          || fstat(fileno(stdout), &st) != 0
21589          );
21590   }
21591 }
21592 _ACEOF
21593 rm -f conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597   *) ac_try_echo=$ac_try;;
21598 esac
21599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21600   (eval "$ac_link") 2>&5
21601   ac_status=$?
21602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21604   { (case "(($ac_try" in
21605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606   *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609   (eval "$ac_try") 2>&5
21610   ac_status=$?
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); }; }; then
21613   ac_cv_func_vfork_works=yes
21614 else
21615   echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 ( exit $ac_status )
21620 ac_cv_func_vfork_works=no
21621 fi
21622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21623 fi
21624
21625
21626 fi
21627 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21628 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21629
21630 fi;
21631 if test "x$ac_cv_func_fork_works" = xcross; then
21632   ac_cv_func_vfork_works=$ac_cv_func_vfork
21633   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21634 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21635 fi
21636
21637 if test "x$ac_cv_func_vfork_works" = xyes; then
21638
21639 cat >>confdefs.h <<\_ACEOF
21640 #define HAVE_WORKING_VFORK 1
21641 _ACEOF
21642
21643 else
21644
21645 cat >>confdefs.h <<\_ACEOF
21646 #define vfork fork
21647 _ACEOF
21648
21649 fi
21650 if test "x$ac_cv_func_fork_works" = xyes; then
21651
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_WORKING_FORK 1
21654 _ACEOF
21655
21656 fi
21657
21658
21659 for ac_header in stdlib.h
21660 do
21661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21663   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 fi
21668 ac_res=`eval echo '${'$as_ac_Header'}'`
21669                { echo "$as_me:$LINENO: result: $ac_res" >&5
21670 echo "${ECHO_T}$ac_res" >&6; }
21671 else
21672   # Is the header compilable?
21673 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21675 cat >conftest.$ac_ext <<_ACEOF
21676 /* confdefs.h.  */
21677 _ACEOF
21678 cat confdefs.h >>conftest.$ac_ext
21679 cat >>conftest.$ac_ext <<_ACEOF
21680 /* end confdefs.h.  */
21681 $ac_includes_default
21682 #include <$ac_header>
21683 _ACEOF
21684 rm -f conftest.$ac_objext
21685 if { (ac_try="$ac_compile"
21686 case "(($ac_try" in
21687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688   *) ac_try_echo=$ac_try;;
21689 esac
21690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691   (eval "$ac_compile") 2>conftest.er1
21692   ac_status=$?
21693   grep -v '^ *+' conftest.er1 >conftest.err
21694   rm -f conftest.er1
21695   cat conftest.err >&5
21696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697   (exit $ac_status); } && {
21698          test -z "$ac_c_werror_flag" ||
21699          test ! -s conftest.err
21700        } && test -s conftest.$ac_objext; then
21701   ac_header_compiler=yes
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706         ac_header_compiler=no
21707 fi
21708
21709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21711 echo "${ECHO_T}$ac_header_compiler" >&6; }
21712
21713 # Is the header present?
21714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722 #include <$ac_header>
21723 _ACEOF
21724 if { (ac_try="$ac_cpp conftest.$ac_ext"
21725 case "(($ac_try" in
21726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21727   *) ac_try_echo=$ac_try;;
21728 esac
21729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21731   ac_status=$?
21732   grep -v '^ *+' conftest.er1 >conftest.err
21733   rm -f conftest.er1
21734   cat conftest.err >&5
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); } >/dev/null && {
21737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21738          test ! -s conftest.err
21739        }; then
21740   ac_header_preproc=yes
21741 else
21742   echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745   ac_header_preproc=no
21746 fi
21747
21748 rm -f conftest.err conftest.$ac_ext
21749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21750 echo "${ECHO_T}$ac_header_preproc" >&6; }
21751
21752 # So?  What about this header?
21753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754   yes:no: )
21755     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21759     ac_header_preproc=yes
21760     ;;
21761   no:yes:* )
21762     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21764     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21765 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21766     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21768     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21769 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21772     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21774     ( cat <<\_ASBOX
21775 ## ----------------------------------------------- ##
21776 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21777 ## ----------------------------------------------- ##
21778 _ASBOX
21779      ) | sed "s/^/$as_me: WARNING:     /" >&2
21780     ;;
21781 esac
21782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   eval "$as_ac_Header=\$ac_header_preproc"
21788 fi
21789 ac_res=`eval echo '${'$as_ac_Header'}'`
21790                { echo "$as_me:$LINENO: result: $ac_res" >&5
21791 echo "${ECHO_T}$ac_res" >&6; }
21792
21793 fi
21794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21795   cat >>confdefs.h <<_ACEOF
21796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21797 _ACEOF
21798
21799 fi
21800
21801 done
21802
21803 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21804 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21805 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21806   echo $ECHO_N "(cached) $ECHO_C" >&6
21807 else
21808   if test "$cross_compiling" = yes; then
21809   ac_cv_func_malloc_0_nonnull=no
21810 else
21811   cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21818 # include <stdlib.h>
21819 #else
21820 char *malloc ();
21821 #endif
21822
21823 int
21824 main ()
21825 {
21826 return ! malloc (0);
21827   ;
21828   return 0;
21829 }
21830 _ACEOF
21831 rm -f conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835   *) ac_try_echo=$ac_try;;
21836 esac
21837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21838   (eval "$ac_link") 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842   { (case "(($ac_try" in
21843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844   *) ac_try_echo=$ac_try;;
21845 esac
21846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21847   (eval "$ac_try") 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_cv_func_malloc_0_nonnull=yes
21852 else
21853   echo "$as_me: program exited with status $ac_status" >&5
21854 echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857 ( exit $ac_status )
21858 ac_cv_func_malloc_0_nonnull=no
21859 fi
21860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21861 fi
21862
21863
21864 fi
21865 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21866 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21867 if test $ac_cv_func_malloc_0_nonnull = yes; then
21868
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_MALLOC 1
21871 _ACEOF
21872
21873 else
21874   cat >>confdefs.h <<\_ACEOF
21875 #define HAVE_MALLOC 0
21876 _ACEOF
21877
21878    case " $LIBOBJS " in
21879   *" malloc.$ac_objext "* ) ;;
21880   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21881  ;;
21882 esac
21883
21884
21885 cat >>confdefs.h <<\_ACEOF
21886 #define malloc rpl_malloc
21887 _ACEOF
21888
21889 fi
21890
21891
21892
21893
21894
21895
21896
21897 for ac_header in $ac_header_list
21898 do
21899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21901   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21904   echo $ECHO_N "(cached) $ECHO_C" >&6
21905 fi
21906 ac_res=`eval echo '${'$as_ac_Header'}'`
21907                { echo "$as_me:$LINENO: result: $ac_res" >&5
21908 echo "${ECHO_T}$ac_res" >&6; }
21909 else
21910   # Is the header compilable?
21911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h.  */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h.  */
21919 $ac_includes_default
21920 #include <$ac_header>
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926   *) ac_try_echo=$ac_try;;
21927 esac
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929   (eval "$ac_compile") 2>conftest.er1
21930   ac_status=$?
21931   grep -v '^ *+' conftest.er1 >conftest.err
21932   rm -f conftest.er1
21933   cat conftest.err >&5
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); } && {
21936          test -z "$ac_c_werror_flag" ||
21937          test ! -s conftest.err
21938        } && test -s conftest.$ac_objext; then
21939   ac_header_compiler=yes
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944         ac_header_compiler=no
21945 fi
21946
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21949 echo "${ECHO_T}$ac_header_compiler" >&6; }
21950
21951 # Is the header present?
21952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h.  */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h.  */
21960 #include <$ac_header>
21961 _ACEOF
21962 if { (ac_try="$ac_cpp conftest.$ac_ext"
21963 case "(($ac_try" in
21964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965   *) ac_try_echo=$ac_try;;
21966 esac
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } >/dev/null && {
21975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21976          test ! -s conftest.err
21977        }; then
21978   ac_header_preproc=yes
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983   ac_header_preproc=no
21984 fi
21985
21986 rm -f conftest.err conftest.$ac_ext
21987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21988 echo "${ECHO_T}$ac_header_preproc" >&6; }
21989
21990 # So?  What about this header?
21991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992   yes:no: )
21993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21997     ac_header_preproc=yes
21998     ;;
21999   no:yes:* )
22000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22012     ( cat <<\_ASBOX
22013 ## ----------------------------------------------- ##
22014 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
22015 ## ----------------------------------------------- ##
22016 _ASBOX
22017      ) | sed "s/^/$as_me: WARNING:     /" >&2
22018     ;;
22019 esac
22020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   eval "$as_ac_Header=\$ac_header_preproc"
22026 fi
22027 ac_res=`eval echo '${'$as_ac_Header'}'`
22028                { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030
22031 fi
22032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22033   cat >>confdefs.h <<_ACEOF
22034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22035 _ACEOF
22036
22037 fi
22038
22039 done
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049 for ac_func in $ac_func_list
22050 do
22051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22055   echo $ECHO_N "(cached) $ECHO_C" >&6
22056 else
22057   cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h.  */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h.  */
22063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22065 #define $ac_func innocuous_$ac_func
22066
22067 /* System header to define __stub macros and hopefully few prototypes,
22068     which can conflict with char $ac_func (); below.
22069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22070     <limits.h> exists even on freestanding compilers.  */
22071
22072 #ifdef __STDC__
22073 # include <limits.h>
22074 #else
22075 # include <assert.h>
22076 #endif
22077
22078 #undef $ac_func
22079
22080 /* Override any GCC internal prototype to avoid an error.
22081    Use char because int might match the return type of a GCC
22082    builtin and then its argument prototype would still apply.  */
22083 #ifdef __cplusplus
22084 extern "C"
22085 #endif
22086 char $ac_func ();
22087 /* The GNU C library defines this for functions which it implements
22088     to always fail with ENOSYS.  Some functions are actually named
22089     something starting with __ and the normal name is an alias.  */
22090 #if defined __stub_$ac_func || defined __stub___$ac_func
22091 choke me
22092 #endif
22093
22094 int
22095 main ()
22096 {
22097 return $ac_func ();
22098   ;
22099   return 0;
22100 }
22101 _ACEOF
22102 rm -f conftest.$ac_objext conftest$ac_exeext
22103 if { (ac_try="$ac_link"
22104 case "(($ac_try" in
22105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106   *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109   (eval "$ac_link") 2>conftest.er1
22110   ac_status=$?
22111   grep -v '^ *+' conftest.er1 >conftest.err
22112   rm -f conftest.er1
22113   cat conftest.err >&5
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); } && {
22116          test -z "$ac_c_werror_flag" ||
22117          test ! -s conftest.err
22118        } && test -s conftest$ac_exeext &&
22119        $as_test_x conftest$ac_exeext; then
22120   eval "$as_ac_var=yes"
22121 else
22122   echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125         eval "$as_ac_var=no"
22126 fi
22127
22128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22129       conftest$ac_exeext conftest.$ac_ext
22130 fi
22131 ac_res=`eval echo '${'$as_ac_var'}'`
22132                { echo "$as_me:$LINENO: result: $ac_res" >&5
22133 echo "${ECHO_T}$ac_res" >&6; }
22134 if test `eval echo '${'$as_ac_var'}'` = yes; then
22135   cat >>confdefs.h <<_ACEOF
22136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22137 _ACEOF
22138
22139 fi
22140 done
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158 { echo "$as_me:$LINENO: checking for working mktime" >&5
22159 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
22160 if test "${ac_cv_func_working_mktime+set}" = set; then
22161   echo $ECHO_N "(cached) $ECHO_C" >&6
22162 else
22163   if test "$cross_compiling" = yes; then
22164   ac_cv_func_working_mktime=no
22165 else
22166   cat >conftest.$ac_ext <<_ACEOF
22167 /* confdefs.h.  */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h.  */
22172 /* Test program from Paul Eggert and Tony Leneis.  */
22173 #ifdef TIME_WITH_SYS_TIME
22174 # include <sys/time.h>
22175 # include <time.h>
22176 #else
22177 # ifdef HAVE_SYS_TIME_H
22178 #  include <sys/time.h>
22179 # else
22180 #  include <time.h>
22181 # endif
22182 #endif
22183
22184 #include <stdlib.h>
22185
22186 #ifdef HAVE_UNISTD_H
22187 # include <unistd.h>
22188 #endif
22189
22190 #ifndef HAVE_ALARM
22191 # define alarm(X) /* empty */
22192 #endif
22193
22194 /* Work around redefinition to rpl_putenv by other config tests.  */
22195 #undef putenv
22196
22197 static time_t time_t_max;
22198 static time_t time_t_min;
22199
22200 /* Values we'll use to set the TZ environment variable.  */
22201 static char *tz_strings[] = {
22202   (char *) 0, "TZ=GMT0", "TZ=JST-9",
22203   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22204 };
22205 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22206
22207 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
22208    Based on a problem report from Andreas Jaeger.  */
22209 static int
22210 spring_forward_gap ()
22211 {
22212   /* glibc (up to about 1998-10-07) failed this test. */
22213   struct tm tm;
22214
22215   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22216      instead of "TZ=America/Vancouver" in order to detect the bug even
22217      on systems that don't support the Olson extension, or don't have the
22218      full zoneinfo tables installed.  */
22219   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22220
22221   tm.tm_year = 98;
22222   tm.tm_mon = 3;
22223   tm.tm_mday = 5;
22224   tm.tm_hour = 2;
22225   tm.tm_min = 0;
22226   tm.tm_sec = 0;
22227   tm.tm_isdst = -1;
22228   return mktime (&tm) != (time_t) -1;
22229 }
22230
22231 static int
22232 mktime_test1 (now)
22233      time_t now;
22234 {
22235   struct tm *lt;
22236   return ! (lt = localtime (&now)) || mktime (lt) == now;
22237 }
22238
22239 static int
22240 mktime_test (now)
22241      time_t now;
22242 {
22243   return (mktime_test1 (now)
22244           && mktime_test1 ((time_t) (time_t_max - now))
22245           && mktime_test1 ((time_t) (time_t_min + now)));
22246 }
22247
22248 static int
22249 irix_6_4_bug ()
22250 {
22251   /* Based on code from Ariel Faigon.  */
22252   struct tm tm;
22253   tm.tm_year = 96;
22254   tm.tm_mon = 3;
22255   tm.tm_mday = 0;
22256   tm.tm_hour = 0;
22257   tm.tm_min = 0;
22258   tm.tm_sec = 0;
22259   tm.tm_isdst = -1;
22260   mktime (&tm);
22261   return tm.tm_mon == 2 && tm.tm_mday == 31;
22262 }
22263
22264 static int
22265 bigtime_test (j)
22266      int j;
22267 {
22268   struct tm tm;
22269   time_t now;
22270   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22271   now = mktime (&tm);
22272   if (now != (time_t) -1)
22273     {
22274       struct tm *lt = localtime (&now);
22275       if (! (lt
22276              && lt->tm_year == tm.tm_year
22277              && lt->tm_mon == tm.tm_mon
22278              && lt->tm_mday == tm.tm_mday
22279              && lt->tm_hour == tm.tm_hour
22280              && lt->tm_min == tm.tm_min
22281              && lt->tm_sec == tm.tm_sec
22282              && lt->tm_yday == tm.tm_yday
22283              && lt->tm_wday == tm.tm_wday
22284              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22285                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22286         return 0;
22287     }
22288   return 1;
22289 }
22290
22291 static int
22292 year_2050_test ()
22293 {
22294   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
22295      ignoring leap seconds.  */
22296   unsigned long int answer = 2527315200UL;
22297
22298   struct tm tm;
22299   time_t t;
22300   tm.tm_year = 2050 - 1900;
22301   tm.tm_mon = 2 - 1;
22302   tm.tm_mday = 1;
22303   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22304   tm.tm_isdst = -1;
22305
22306   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22307      instead of "TZ=America/Vancouver" in order to detect the bug even
22308      on systems that don't support the Olson extension, or don't have the
22309      full zoneinfo tables installed.  */
22310   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22311
22312   t = mktime (&tm);
22313
22314   /* Check that the result is either a failure, or close enough
22315      to the correct answer that we can assume the discrepancy is
22316      due to leap seconds.  */
22317   return (t == (time_t) -1
22318           || (0 < t && answer - 120 <= t && t <= answer + 120));
22319 }
22320
22321 int
22322 main ()
22323 {
22324   time_t t, delta;
22325   int i, j;
22326
22327   /* This test makes some buggy mktime implementations loop.
22328      Give up after 60 seconds; a mktime slower than that
22329      isn't worth using anyway.  */
22330   alarm (60);
22331
22332   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22333     continue;
22334   time_t_max--;
22335   if ((time_t) -1 < 0)
22336     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22337       continue;
22338   delta = time_t_max / 997; /* a suitable prime number */
22339   for (i = 0; i < N_STRINGS; i++)
22340     {
22341       if (tz_strings[i])
22342         putenv (tz_strings[i]);
22343
22344       for (t = 0; t <= time_t_max - delta; t += delta)
22345         if (! mktime_test (t))
22346           return 1;
22347       if (! (mktime_test ((time_t) 1)
22348              && mktime_test ((time_t) (60 * 60))
22349              && mktime_test ((time_t) (60 * 60 * 24))))
22350         return 1;
22351
22352       for (j = 1; 0 < j; j *= 2)
22353         if (! bigtime_test (j))
22354           return 1;
22355       if (! bigtime_test (j - 1))
22356         return 1;
22357     }
22358   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22359 }
22360 _ACEOF
22361 rm -f conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365   *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368   (eval "$ac_link") 2>&5
22369   ac_status=$?
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22372   { (case "(($ac_try" in
22373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374   *) ac_try_echo=$ac_try;;
22375 esac
22376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377   (eval "$ac_try") 2>&5
22378   ac_status=$?
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); }; }; then
22381   ac_cv_func_working_mktime=yes
22382 else
22383   echo "$as_me: program exited with status $ac_status" >&5
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ( exit $ac_status )
22388 ac_cv_func_working_mktime=no
22389 fi
22390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22391 fi
22392
22393
22394 fi
22395 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22396 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22397 if test $ac_cv_func_working_mktime = no; then
22398   case " $LIBOBJS " in
22399   *" mktime.$ac_objext "* ) ;;
22400   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22401  ;;
22402 esac
22403
22404 fi
22405
22406 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22407 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22408 if test "${ac_cv_type_signal+set}" = set; then
22409   echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411   cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417 #include <sys/types.h>
22418 #include <signal.h>
22419
22420 int
22421 main ()
22422 {
22423 return *(signal (0, 0)) (0) == 1;
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext
22429 if { (ac_try="$ac_compile"
22430 case "(($ac_try" in
22431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432   *) ac_try_echo=$ac_try;;
22433 esac
22434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22435   (eval "$ac_compile") 2>conftest.er1
22436   ac_status=$?
22437   grep -v '^ *+' conftest.er1 >conftest.err
22438   rm -f conftest.er1
22439   cat conftest.err >&5
22440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441   (exit $ac_status); } && {
22442          test -z "$ac_c_werror_flag" ||
22443          test ! -s conftest.err
22444        } && test -s conftest.$ac_objext; then
22445   ac_cv_type_signal=int
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450         ac_cv_type_signal=void
22451 fi
22452
22453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22454 fi
22455 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22456 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define RETSIGTYPE $ac_cv_type_signal
22460 _ACEOF
22461
22462
22463 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22464 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22465 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22466   echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468   rm -f conftest.sym conftest.file
22469 echo >conftest.file
22470 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22471   if test "$cross_compiling" = yes; then
22472   ac_cv_func_lstat_dereferences_slashed_symlink=no
22473 else
22474   cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h.  */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h.  */
22480 $ac_includes_default
22481 int
22482 main ()
22483 {
22484 struct stat sbuf;
22485      /* Linux will dereference the symlink and fail.
22486         That is better in the sense that it means we will not
22487         have to compile and use the lstat wrapper.  */
22488      return lstat ("conftest.sym/", &sbuf) == 0;
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest$ac_exeext
22494 if { (ac_try="$ac_link"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_link") 2>&5
22501   ac_status=$?
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22504   { (case "(($ac_try" in
22505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506   *) ac_try_echo=$ac_try;;
22507 esac
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509   (eval "$ac_try") 2>&5
22510   ac_status=$?
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); }; }; then
22513   ac_cv_func_lstat_dereferences_slashed_symlink=yes
22514 else
22515   echo "$as_me: program exited with status $ac_status" >&5
22516 echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519 ( exit $ac_status )
22520 ac_cv_func_lstat_dereferences_slashed_symlink=no
22521 fi
22522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22523 fi
22524
22525
22526 else
22527   # If the `ln -s' command failed, then we probably don't even
22528   # have an lstat function.
22529   ac_cv_func_lstat_dereferences_slashed_symlink=no
22530 fi
22531 rm -f conftest.sym conftest.file
22532
22533 fi
22534 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22535 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22536
22537 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22538
22539 cat >>confdefs.h <<_ACEOF
22540 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22541 _ACEOF
22542
22543
22544 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22545   case " $LIBOBJS " in
22546   *" lstat.$ac_objext "* ) ;;
22547   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22548  ;;
22549 esac
22550
22551 fi
22552
22553 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22554 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22555 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22556   echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558   if test "$cross_compiling" = yes; then
22559   ac_cv_func_stat_empty_string_bug=yes
22560 else
22561   cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h.  */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h.  */
22567 $ac_includes_default
22568 int
22569 main ()
22570 {
22571 struct stat sbuf;
22572   return stat ("", &sbuf) == 0;
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest$ac_exeext
22578 if { (ac_try="$ac_link"
22579 case "(($ac_try" in
22580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581   *) ac_try_echo=$ac_try;;
22582 esac
22583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584   (eval "$ac_link") 2>&5
22585   ac_status=$?
22586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22588   { (case "(($ac_try" in
22589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22590   *) ac_try_echo=$ac_try;;
22591 esac
22592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22593   (eval "$ac_try") 2>&5
22594   ac_status=$?
22595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596   (exit $ac_status); }; }; then
22597   ac_cv_func_stat_empty_string_bug=no
22598 else
22599   echo "$as_me: program exited with status $ac_status" >&5
22600 echo "$as_me: failed program was:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22602
22603 ( exit $ac_status )
22604 ac_cv_func_stat_empty_string_bug=yes
22605 fi
22606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22607 fi
22608
22609
22610 fi
22611 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22612 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22613 if test $ac_cv_func_stat_empty_string_bug = yes; then
22614   case " $LIBOBJS " in
22615   *" stat.$ac_objext "* ) ;;
22616   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22617  ;;
22618 esac
22619
22620
22621 cat >>confdefs.h <<_ACEOF
22622 #define HAVE_STAT_EMPTY_STRING_BUG 1
22623 _ACEOF
22624
22625 fi
22626
22627
22628 for ac_func in strftime
22629 do
22630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22634   echo $ECHO_N "(cached) $ECHO_C" >&6
22635 else
22636   cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22644 #define $ac_func innocuous_$ac_func
22645
22646 /* System header to define __stub macros and hopefully few prototypes,
22647     which can conflict with char $ac_func (); below.
22648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22649     <limits.h> exists even on freestanding compilers.  */
22650
22651 #ifdef __STDC__
22652 # include <limits.h>
22653 #else
22654 # include <assert.h>
22655 #endif
22656
22657 #undef $ac_func
22658
22659 /* Override any GCC internal prototype to avoid an error.
22660    Use char because int might match the return type of a GCC
22661    builtin and then its argument prototype would still apply.  */
22662 #ifdef __cplusplus
22663 extern "C"
22664 #endif
22665 char $ac_func ();
22666 /* The GNU C library defines this for functions which it implements
22667     to always fail with ENOSYS.  Some functions are actually named
22668     something starting with __ and the normal name is an alias.  */
22669 #if defined __stub_$ac_func || defined __stub___$ac_func
22670 choke me
22671 #endif
22672
22673 int
22674 main ()
22675 {
22676 return $ac_func ();
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_link") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest$ac_exeext &&
22698        $as_test_x conftest$ac_exeext; then
22699   eval "$as_ac_var=yes"
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704         eval "$as_ac_var=no"
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708       conftest$ac_exeext conftest.$ac_ext
22709 fi
22710 ac_res=`eval echo '${'$as_ac_var'}'`
22711                { echo "$as_me:$LINENO: result: $ac_res" >&5
22712 echo "${ECHO_T}$ac_res" >&6; }
22713 if test `eval echo '${'$as_ac_var'}'` = yes; then
22714   cat >>confdefs.h <<_ACEOF
22715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22716 _ACEOF
22717
22718 else
22719   # strftime is in -lintl on SCO UNIX.
22720 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22721 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22722 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22723   echo $ECHO_N "(cached) $ECHO_C" >&6
22724 else
22725   ac_check_lib_save_LIBS=$LIBS
22726 LIBS="-lintl  $LIBS"
22727 cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733
22734 /* Override any GCC internal prototype to avoid an error.
22735    Use char because int might match the return type of a GCC
22736    builtin and then its argument prototype would still apply.  */
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char strftime ();
22741 int
22742 main ()
22743 {
22744 return strftime ();
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 rm -f conftest.$ac_objext conftest$ac_exeext
22750 if { (ac_try="$ac_link"
22751 case "(($ac_try" in
22752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753   *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756   (eval "$ac_link") 2>conftest.er1
22757   ac_status=$?
22758   grep -v '^ *+' conftest.er1 >conftest.err
22759   rm -f conftest.er1
22760   cat conftest.err >&5
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); } && {
22763          test -z "$ac_c_werror_flag" ||
22764          test ! -s conftest.err
22765        } && test -s conftest$ac_exeext &&
22766        $as_test_x conftest$ac_exeext; then
22767   ac_cv_lib_intl_strftime=yes
22768 else
22769   echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22771
22772         ac_cv_lib_intl_strftime=no
22773 fi
22774
22775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22776       conftest$ac_exeext conftest.$ac_ext
22777 LIBS=$ac_check_lib_save_LIBS
22778 fi
22779 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22780 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22781 if test $ac_cv_lib_intl_strftime = yes; then
22782   cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_STRFTIME 1
22784 _ACEOF
22785
22786 LIBS="-lintl $LIBS"
22787 fi
22788
22789 fi
22790 done
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strlcpy strrchr strstr strtol strtoul pthread_mutex_lock
22808 do
22809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22813   echo $ECHO_N "(cached) $ECHO_C" >&6
22814 else
22815   cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h.  */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h.  */
22821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22823 #define $ac_func innocuous_$ac_func
22824
22825 /* System header to define __stub macros and hopefully few prototypes,
22826     which can conflict with char $ac_func (); below.
22827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22828     <limits.h> exists even on freestanding compilers.  */
22829
22830 #ifdef __STDC__
22831 # include <limits.h>
22832 #else
22833 # include <assert.h>
22834 #endif
22835
22836 #undef $ac_func
22837
22838 /* Override any GCC internal prototype to avoid an error.
22839    Use char because int might match the return type of a GCC
22840    builtin and then its argument prototype would still apply.  */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char $ac_func ();
22845 /* The GNU C library defines this for functions which it implements
22846     to always fail with ENOSYS.  Some functions are actually named
22847     something starting with __ and the normal name is an alias.  */
22848 #if defined __stub_$ac_func || defined __stub___$ac_func
22849 choke me
22850 #endif
22851
22852 int
22853 main ()
22854 {
22855 return $ac_func ();
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext conftest$ac_exeext
22861 if { (ac_try="$ac_link"
22862 case "(($ac_try" in
22863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864   *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867   (eval "$ac_link") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest$ac_exeext &&
22877        $as_test_x conftest$ac_exeext; then
22878   eval "$as_ac_var=yes"
22879 else
22880   echo "$as_me: failed program was:" >&5
22881 sed 's/^/| /' conftest.$ac_ext >&5
22882
22883         eval "$as_ac_var=no"
22884 fi
22885
22886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22887       conftest$ac_exeext conftest.$ac_ext
22888 fi
22889 ac_res=`eval echo '${'$as_ac_var'}'`
22890                { echo "$as_me:$LINENO: result: $ac_res" >&5
22891 echo "${ECHO_T}$ac_res" >&6; }
22892 if test `eval echo '${'$as_ac_var'}'` = yes; then
22893   cat >>confdefs.h <<_ACEOF
22894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22895 _ACEOF
22896
22897 fi
22898 done
22899
22900
22901 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22902 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22903 # all of them, and are necessary for OpenBSM.
22904 cat >conftest.$ac_ext <<_ACEOF
22905 /* confdefs.h.  */
22906 _ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h.  */
22910
22911         #include <sys/queue.h>
22912
22913 int
22914 main ()
22915 {
22916
22917
22918         #ifndef LIST_FIRST
22919         #error LIST_FIRST missing
22920         #endif
22921         #ifndef TAILQ_FOREACH_SAFE
22922         #error TAILQ_FOREACH_SAFE
22923         #endif
22924
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (ac_try="$ac_link"
22931 case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936   (eval "$ac_link") 2>conftest.er1
22937   ac_status=$?
22938   grep -v '^ *+' conftest.er1 >conftest.err
22939   rm -f conftest.er1
22940   cat conftest.err >&5
22941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942   (exit $ac_status); } && {
22943          test -z "$ac_c_werror_flag" ||
22944          test ! -s conftest.err
22945        } && test -s conftest$ac_exeext &&
22946        $as_test_x conftest$ac_exeext; then
22947
22948
22949 cat >>confdefs.h <<\_ACEOF
22950 #define HAVE_FULL_QUEUE_H
22951 _ACEOF
22952
22953
22954 else
22955   echo "$as_me: failed program was:" >&5
22956 sed 's/^/| /' conftest.$ac_ext >&5
22957
22958
22959 fi
22960
22961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22962       conftest$ac_exeext conftest.$ac_ext
22963
22964 # Systems may not define key audit system calls, in which case libbsm cannot
22965 # depend on them or it will generate link-time or run-time errors.  Test for
22966 # just one.
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h.  */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h.  */
22973
22974         #include <stddef.h>
22975
22976         extern int auditon(int, void *, int);
22977
22978 int
22979 main ()
22980 {
22981
22982         int err;
22983
22984         err = auditon(0, NULL, 0);
22985
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_link") 2>conftest.er1
22998   ac_status=$?
22999   grep -v '^ *+' conftest.er1 >conftest.err
23000   rm -f conftest.er1
23001   cat conftest.err >&5
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } && {
23004          test -z "$ac_c_werror_flag" ||
23005          test ! -s conftest.err
23006        } && test -s conftest$ac_exeext &&
23007        $as_test_x conftest$ac_exeext; then
23008
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define HAVE_AUDIT_SYSCALLS
23012 _ACEOF
23013
23014 have_audit_syscalls=true
23015
23016 else
23017   echo "$as_me: failed program was:" >&5
23018 sed 's/^/| /' conftest.$ac_ext >&5
23019
23020
23021 have_audit_syscalls=false
23022
23023 fi
23024
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026       conftest$ac_exeext conftest.$ac_ext
23027  if $have_audit_syscalls; then
23028   HAVE_AUDIT_SYSCALLS_TRUE=
23029   HAVE_AUDIT_SYSCALLS_FALSE='#'
23030 else
23031   HAVE_AUDIT_SYSCALLS_TRUE='#'
23032   HAVE_AUDIT_SYSCALLS_FALSE=
23033 fi
23034
23035
23036 #
23037 # There are a wide variety of endian macros and functions in the wild; we try
23038 # to use the native support if it defines be32enc(), but otherwise have to
23039 # use our own.
23040 #
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h.  */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h.  */
23047
23048         #include <sys/endian.h>
23049         #include <stdlib.h>
23050
23051 int
23052 main ()
23053 {
23054
23055         be32enc(NULL, 1);
23056
23057   ;
23058   return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (ac_try="$ac_link"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_link") 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } && {
23075          test -z "$ac_c_werror_flag" ||
23076          test ! -s conftest.err
23077        } && test -s conftest$ac_exeext &&
23078        $as_test_x conftest$ac_exeext; then
23079
23080
23081 cat >>confdefs.h <<\_ACEOF
23082 #define HAVE_BE32ENC
23083 _ACEOF
23084
23085
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094       conftest$ac_exeext conftest.$ac_ext
23095
23096 # Check to see if Mach IPC is used for trigger messages.  If so, use Mach IPC
23097 # instead of the default for sending trigger messages to the audit components.
23098 { echo "$as_me:$LINENO: checking for /usr/include/mach/audit_triggers.defs" >&5
23099 echo $ECHO_N "checking for /usr/include/mach/audit_triggers.defs... $ECHO_C" >&6; }
23100 if test "${ac_cv_file__usr_include_mach_audit_triggers_defs+set}" = set; then
23101   echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103   test "$cross_compiling" = yes &&
23104   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23105 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23106    { (exit 1); exit 1; }; }
23107 if test -r "/usr/include/mach/audit_triggers.defs"; then
23108   ac_cv_file__usr_include_mach_audit_triggers_defs=yes
23109 else
23110   ac_cv_file__usr_include_mach_audit_triggers_defs=no
23111 fi
23112 fi
23113 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_mach_audit_triggers_defs" >&5
23114 echo "${ECHO_T}$ac_cv_file__usr_include_mach_audit_triggers_defs" >&6; }
23115 if test $ac_cv_file__usr_include_mach_audit_triggers_defs = yes; then
23116
23117
23118 cat >>confdefs.h <<\_ACEOF
23119 #define USE_MACH_IPC
23120 _ACEOF
23121
23122 use_mach_ipc=true
23123
23124 else
23125
23126 use_mach_ipc=false
23127
23128 fi
23129
23130  if $use_mach_ipc; then
23131   USE_MACH_IPC_TRUE=
23132   USE_MACH_IPC_FALSE='#'
23133 else
23134   USE_MACH_IPC_TRUE='#'
23135   USE_MACH_IPC_FALSE=
23136 fi
23137
23138
23139 ac_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"
23140
23141
23142 cat >confcache <<\_ACEOF
23143 # This file is a shell script that caches the results of configure
23144 # tests run on this system so they can be shared between configure
23145 # scripts and configure runs, see configure's option --config-cache.
23146 # It is not useful on other systems.  If it contains results you don't
23147 # want to keep, you may remove or edit it.
23148 #
23149 # config.status only pays attention to the cache file if you give it
23150 # the --recheck option to rerun configure.
23151 #
23152 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23153 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23154 # following values.
23155
23156 _ACEOF
23157
23158 # The following way of writing the cache mishandles newlines in values,
23159 # but we know of no workaround that is simple, portable, and efficient.
23160 # So, we kill variables containing newlines.
23161 # Ultrix sh set writes to stderr and can't be redirected directly,
23162 # and sets the high bit in the cache file unless we assign to the vars.
23163 (
23164   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23165     eval ac_val=\$$ac_var
23166     case $ac_val in #(
23167     *${as_nl}*)
23168       case $ac_var in #(
23169       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23170 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23171       esac
23172       case $ac_var in #(
23173       _ | IFS | as_nl) ;; #(
23174       *) $as_unset $ac_var ;;
23175       esac ;;
23176     esac
23177   done
23178
23179   (set) 2>&1 |
23180     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23181     *${as_nl}ac_space=\ *)
23182       # `set' does not quote correctly, so add quotes (double-quote
23183       # substitution turns \\\\ into \\, and sed turns \\ into \).
23184       sed -n \
23185         "s/'/'\\\\''/g;
23186           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23187       ;; #(
23188     *)
23189       # `set' quotes correctly as required by POSIX, so do not add quotes.
23190       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23191       ;;
23192     esac |
23193     sort
23194 ) |
23195   sed '
23196      /^ac_cv_env_/b end
23197      t clear
23198      :clear
23199      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23200      t end
23201      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23202      :end' >>confcache
23203 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23204   if test -w "$cache_file"; then
23205     test "x$cache_file" != "x/dev/null" &&
23206       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23207 echo "$as_me: updating cache $cache_file" >&6;}
23208     cat confcache >$cache_file
23209   else
23210     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23211 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23212   fi
23213 fi
23214 rm -f confcache
23215
23216 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23217 # Let make expand exec_prefix.
23218 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23219
23220 DEFS=-DHAVE_CONFIG_H
23221
23222 ac_libobjs=
23223 ac_ltlibobjs=
23224 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23225   # 1. Remove the extension, and $U if already installed.
23226   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23227   ac_i=`echo "$ac_i" | sed "$ac_script"`
23228   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23229   #    will be set to the directory where LIBOBJS objects are built.
23230   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23231   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23232 done
23233 LIBOBJS=$ac_libobjs
23234
23235 LTLIBOBJS=$ac_ltlibobjs
23236
23237
23238 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23239   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23240 Usually this means the macro was only invoked conditionally." >&5
23241 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23242 Usually this means the macro was only invoked conditionally." >&2;}
23243    { (exit 1); exit 1; }; }
23244 fi
23245 if test -z "${USE_NATIVE_INCLUDES_TRUE}" && test -z "${USE_NATIVE_INCLUDES_FALSE}"; then
23246   { { echo "$as_me:$LINENO: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23247 Usually this means the macro was only invoked conditionally." >&5
23248 echo "$as_me: error: conditional \"USE_NATIVE_INCLUDES\" was never defined.
23249 Usually this means the macro was only invoked conditionally." >&2;}
23250    { (exit 1); exit 1; }; }
23251 fi
23252 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23253   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23254 Usually this means the macro was only invoked conditionally." >&5
23255 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23256 Usually this means the macro was only invoked conditionally." >&2;}
23257    { (exit 1); exit 1; }; }
23258 fi
23259 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23260   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23261 Usually this means the macro was only invoked conditionally." >&5
23262 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23263 Usually this means the macro was only invoked conditionally." >&2;}
23264    { (exit 1); exit 1; }; }
23265 fi
23266 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23267   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23268 Usually this means the macro was only invoked conditionally." >&5
23269 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23270 Usually this means the macro was only invoked conditionally." >&2;}
23271    { (exit 1); exit 1; }; }
23272 fi
23273 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
23274   { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23275 Usually this means the macro was only invoked conditionally." >&5
23276 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
23277 Usually this means the macro was only invoked conditionally." >&2;}
23278    { (exit 1); exit 1; }; }
23279 fi
23280 if test -z "${USE_MACH_IPC_TRUE}" && test -z "${USE_MACH_IPC_FALSE}"; then
23281   { { echo "$as_me:$LINENO: error: conditional \"USE_MACH_IPC\" was never defined.
23282 Usually this means the macro was only invoked conditionally." >&5
23283 echo "$as_me: error: conditional \"USE_MACH_IPC\" was never defined.
23284 Usually this means the macro was only invoked conditionally." >&2;}
23285    { (exit 1); exit 1; }; }
23286 fi
23287
23288 : ${CONFIG_STATUS=./config.status}
23289 ac_clean_files_save=$ac_clean_files
23290 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23291 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23292 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23293 cat >$CONFIG_STATUS <<_ACEOF
23294 #! $SHELL
23295 # Generated by $as_me.
23296 # Run this file to recreate the current configuration.
23297 # Compiler output produced by configure, useful for debugging
23298 # configure, is in config.log if it exists.
23299
23300 debug=false
23301 ac_cs_recheck=false
23302 ac_cs_silent=false
23303 SHELL=\${CONFIG_SHELL-$SHELL}
23304 _ACEOF
23305
23306 cat >>$CONFIG_STATUS <<\_ACEOF
23307 ## --------------------- ##
23308 ## M4sh Initialization.  ##
23309 ## --------------------- ##
23310
23311 # Be more Bourne compatible
23312 DUALCASE=1; export DUALCASE # for MKS sh
23313 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23314   emulate sh
23315   NULLCMD=:
23316   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23317   # is contrary to our usage.  Disable this feature.
23318   alias -g '${1+"$@"}'='"$@"'
23319   setopt NO_GLOB_SUBST
23320 else
23321   case `(set -o) 2>/dev/null` in
23322   *posix*) set -o posix ;;
23323 esac
23324
23325 fi
23326
23327
23328
23329
23330 # PATH needs CR
23331 # Avoid depending upon Character Ranges.
23332 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23333 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23334 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23335 as_cr_digits='0123456789'
23336 as_cr_alnum=$as_cr_Letters$as_cr_digits
23337
23338 # The user is always right.
23339 if test "${PATH_SEPARATOR+set}" != set; then
23340   echo "#! /bin/sh" >conf$$.sh
23341   echo  "exit 0"   >>conf$$.sh
23342   chmod +x conf$$.sh
23343   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23344     PATH_SEPARATOR=';'
23345   else
23346     PATH_SEPARATOR=:
23347   fi
23348   rm -f conf$$.sh
23349 fi
23350
23351 # Support unset when possible.
23352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23353   as_unset=unset
23354 else
23355   as_unset=false
23356 fi
23357
23358
23359 # IFS
23360 # We need space, tab and new line, in precisely that order.  Quoting is
23361 # there to prevent editors from complaining about space-tab.
23362 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23363 # splitting by setting IFS to empty value.)
23364 as_nl='
23365 '
23366 IFS=" ""        $as_nl"
23367
23368 # Find who we are.  Look in the path if we contain no directory separator.
23369 case $0 in
23370   *[\\/]* ) as_myself=$0 ;;
23371   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23372 for as_dir in $PATH
23373 do
23374   IFS=$as_save_IFS
23375   test -z "$as_dir" && as_dir=.
23376   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23377 done
23378 IFS=$as_save_IFS
23379
23380      ;;
23381 esac
23382 # We did not find ourselves, most probably we were run as `sh COMMAND'
23383 # in which case we are not to be found in the path.
23384 if test "x$as_myself" = x; then
23385   as_myself=$0
23386 fi
23387 if test ! -f "$as_myself"; then
23388   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23389   { (exit 1); exit 1; }
23390 fi
23391
23392 # Work around bugs in pre-3.0 UWIN ksh.
23393 for as_var in ENV MAIL MAILPATH
23394 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23395 done
23396 PS1='$ '
23397 PS2='> '
23398 PS4='+ '
23399
23400 # NLS nuisances.
23401 for as_var in \
23402   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23403   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23404   LC_TELEPHONE LC_TIME
23405 do
23406   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23407     eval $as_var=C; export $as_var
23408   else
23409     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23410   fi
23411 done
23412
23413 # Required to use basename.
23414 if expr a : '\(a\)' >/dev/null 2>&1 &&
23415    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23416   as_expr=expr
23417 else
23418   as_expr=false
23419 fi
23420
23421 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23422   as_basename=basename
23423 else
23424   as_basename=false
23425 fi
23426
23427
23428 # Name of the executable.
23429 as_me=`$as_basename -- "$0" ||
23430 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23431          X"$0" : 'X\(//\)$' \| \
23432          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23433 echo X/"$0" |
23434     sed '/^.*\/\([^/][^/]*\)\/*$/{
23435             s//\1/
23436             q
23437           }
23438           /^X\/\(\/\/\)$/{
23439             s//\1/
23440             q
23441           }
23442           /^X\/\(\/\).*/{
23443             s//\1/
23444             q
23445           }
23446           s/.*/./; q'`
23447
23448 # CDPATH.
23449 $as_unset CDPATH
23450
23451
23452
23453   as_lineno_1=$LINENO
23454   as_lineno_2=$LINENO
23455   test "x$as_lineno_1" != "x$as_lineno_2" &&
23456   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23457
23458   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23459   # uniformly replaced by the line number.  The first 'sed' inserts a
23460   # line-number line after each line using $LINENO; the second 'sed'
23461   # does the real work.  The second script uses 'N' to pair each
23462   # line-number line with the line containing $LINENO, and appends
23463   # trailing '-' during substitution so that $LINENO is not a special
23464   # case at line end.
23465   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23466   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23467   # E. McMahon (1931-1989) for sed's syntax.  :-)
23468   sed -n '
23469     p
23470     /[$]LINENO/=
23471   ' <$as_myself |
23472     sed '
23473       s/[$]LINENO.*/&-/
23474       t lineno
23475       b
23476       :lineno
23477       N
23478       :loop
23479       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23480       t loop
23481       s/-\n.*//
23482     ' >$as_me.lineno &&
23483   chmod +x "$as_me.lineno" ||
23484     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23485    { (exit 1); exit 1; }; }
23486
23487   # Don't try to exec as it changes $[0], causing all sort of problems
23488   # (the dirname of $[0] is not the place where we might find the
23489   # original and so on.  Autoconf is especially sensitive to this).
23490   . "./$as_me.lineno"
23491   # Exit status is that of the last command.
23492   exit
23493 }
23494
23495
23496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23497   as_dirname=dirname
23498 else
23499   as_dirname=false
23500 fi
23501
23502 ECHO_C= ECHO_N= ECHO_T=
23503 case `echo -n x` in
23504 -n*)
23505   case `echo 'x\c'` in
23506   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23507   *)   ECHO_C='\c';;
23508   esac;;
23509 *)
23510   ECHO_N='-n';;
23511 esac
23512
23513 if expr a : '\(a\)' >/dev/null 2>&1 &&
23514    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23515   as_expr=expr
23516 else
23517   as_expr=false
23518 fi
23519
23520 rm -f conf$$ conf$$.exe conf$$.file
23521 if test -d conf$$.dir; then
23522   rm -f conf$$.dir/conf$$.file
23523 else
23524   rm -f conf$$.dir
23525   mkdir conf$$.dir
23526 fi
23527 echo >conf$$.file
23528 if ln -s conf$$.file conf$$ 2>/dev/null; then
23529   as_ln_s='ln -s'
23530   # ... but there are two gotchas:
23531   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23532   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23533   # In both cases, we have to default to `cp -p'.
23534   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23535     as_ln_s='cp -p'
23536 elif ln conf$$.file conf$$ 2>/dev/null; then
23537   as_ln_s=ln
23538 else
23539   as_ln_s='cp -p'
23540 fi
23541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23542 rmdir conf$$.dir 2>/dev/null
23543
23544 if mkdir -p . 2>/dev/null; then
23545   as_mkdir_p=:
23546 else
23547   test -d ./-p && rmdir ./-p
23548   as_mkdir_p=false
23549 fi
23550
23551 if test -x / >/dev/null 2>&1; then
23552   as_test_x='test -x'
23553 else
23554   if ls -dL / >/dev/null 2>&1; then
23555     as_ls_L_option=L
23556   else
23557     as_ls_L_option=
23558   fi
23559   as_test_x='
23560     eval sh -c '\''
23561       if test -d "$1"; then
23562         test -d "$1/.";
23563       else
23564         case $1 in
23565         -*)set "./$1";;
23566         esac;
23567         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23568         ???[sx]*):;;*)false;;esac;fi
23569     '\'' sh
23570   '
23571 fi
23572 as_executable_p=$as_test_x
23573
23574 # Sed expression to map a string onto a valid CPP name.
23575 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23576
23577 # Sed expression to map a string onto a valid variable name.
23578 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23579
23580
23581 exec 6>&1
23582
23583 # Save the log message, to keep $[0] and so on meaningful, and to
23584 # report actual input values of CONFIG_FILES etc. instead of their
23585 # values after options handling.
23586 ac_log="
23587 This file was extended by OpenBSM $as_me 1.1alpha5, which was
23588 generated by GNU Autoconf 2.61.  Invocation command line was
23589
23590   CONFIG_FILES    = $CONFIG_FILES
23591   CONFIG_HEADERS  = $CONFIG_HEADERS
23592   CONFIG_LINKS    = $CONFIG_LINKS
23593   CONFIG_COMMANDS = $CONFIG_COMMANDS
23594   $ $0 $@
23595
23596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23597 "
23598
23599 _ACEOF
23600
23601 cat >>$CONFIG_STATUS <<_ACEOF
23602 # Files that config.status was made for.
23603 config_files="$ac_config_files"
23604 config_headers="$ac_config_headers"
23605 config_commands="$ac_config_commands"
23606
23607 _ACEOF
23608
23609 cat >>$CONFIG_STATUS <<\_ACEOF
23610 ac_cs_usage="\
23611 \`$as_me' instantiates files from templates according to the
23612 current configuration.
23613
23614 Usage: $0 [OPTIONS] [FILE]...
23615
23616   -h, --help       print this help, then exit
23617   -V, --version    print version number and configuration settings, then exit
23618   -q, --quiet      do not print progress messages
23619   -d, --debug      don't remove temporary files
23620       --recheck    update $as_me by reconfiguring in the same conditions
23621   --file=FILE[:TEMPLATE]
23622                    instantiate the configuration file FILE
23623   --header=FILE[:TEMPLATE]
23624                    instantiate the configuration header FILE
23625
23626 Configuration files:
23627 $config_files
23628
23629 Configuration headers:
23630 $config_headers
23631
23632 Configuration commands:
23633 $config_commands
23634
23635 Report bugs to <bug-autoconf@gnu.org>."
23636
23637 _ACEOF
23638 cat >>$CONFIG_STATUS <<_ACEOF
23639 ac_cs_version="\\
23640 OpenBSM config.status 1.1alpha5
23641 configured by $0, generated by GNU Autoconf 2.61,
23642   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23643
23644 Copyright (C) 2006 Free Software Foundation, Inc.
23645 This config.status script is free software; the Free Software Foundation
23646 gives unlimited permission to copy, distribute and modify it."
23647
23648 ac_pwd='$ac_pwd'
23649 srcdir='$srcdir'
23650 INSTALL='$INSTALL'
23651 MKDIR_P='$MKDIR_P'
23652 _ACEOF
23653
23654 cat >>$CONFIG_STATUS <<\_ACEOF
23655 # If no file are specified by the user, then we need to provide default
23656 # value.  By we need to know if files were specified by the user.
23657 ac_need_defaults=:
23658 while test $# != 0
23659 do
23660   case $1 in
23661   --*=*)
23662     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23663     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23664     ac_shift=:
23665     ;;
23666   *)
23667     ac_option=$1
23668     ac_optarg=$2
23669     ac_shift=shift
23670     ;;
23671   esac
23672
23673   case $ac_option in
23674   # Handling of the options.
23675   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23676     ac_cs_recheck=: ;;
23677   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23678     echo "$ac_cs_version"; exit ;;
23679   --debug | --debu | --deb | --de | --d | -d )
23680     debug=: ;;
23681   --file | --fil | --fi | --f )
23682     $ac_shift
23683     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23684     ac_need_defaults=false;;
23685   --header | --heade | --head | --hea )
23686     $ac_shift
23687     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23688     ac_need_defaults=false;;
23689   --he | --h)
23690     # Conflict between --help and --header
23691     { echo "$as_me: error: ambiguous option: $1
23692 Try \`$0 --help' for more information." >&2
23693    { (exit 1); exit 1; }; };;
23694   --help | --hel | -h )
23695     echo "$ac_cs_usage"; exit ;;
23696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23697   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23698     ac_cs_silent=: ;;
23699
23700   # This is an error.
23701   -*) { echo "$as_me: error: unrecognized option: $1
23702 Try \`$0 --help' for more information." >&2
23703    { (exit 1); exit 1; }; } ;;
23704
23705   *) ac_config_targets="$ac_config_targets $1"
23706      ac_need_defaults=false ;;
23707
23708   esac
23709   shift
23710 done
23711
23712 ac_configure_extra_args=
23713
23714 if $ac_cs_silent; then
23715   exec 6>/dev/null
23716   ac_configure_extra_args="$ac_configure_extra_args --silent"
23717 fi
23718
23719 _ACEOF
23720 cat >>$CONFIG_STATUS <<_ACEOF
23721 if \$ac_cs_recheck; then
23722   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23723   CONFIG_SHELL=$SHELL
23724   export CONFIG_SHELL
23725   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23726 fi
23727
23728 _ACEOF
23729 cat >>$CONFIG_STATUS <<\_ACEOF
23730 exec 5>>config.log
23731 {
23732   echo
23733   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23734 ## Running $as_me. ##
23735 _ASBOX
23736   echo "$ac_log"
23737 } >&5
23738
23739 _ACEOF
23740 cat >>$CONFIG_STATUS <<_ACEOF
23741 #
23742 # INIT-COMMANDS
23743 #
23744 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23745
23746 _ACEOF
23747
23748 cat >>$CONFIG_STATUS <<\_ACEOF
23749
23750 # Handling of arguments.
23751 for ac_config_target in $ac_config_targets
23752 do
23753   case $ac_config_target in
23754     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23755     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23756     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23757     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23758     "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23759     "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23760     "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23761     "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23762     "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23763     "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23764     "libauditd/Makefile") CONFIG_FILES="$CONFIG_FILES libauditd/Makefile" ;;
23765     "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23766     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23767     "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23768     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23769     "sys/Makefile") CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
23770     "sys/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES sys/bsm/Makefile" ;;
23771     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23772     "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23773     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23774
23775   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23777    { (exit 1); exit 1; }; };;
23778   esac
23779 done
23780
23781
23782 # If the user did not use the arguments to specify the items to instantiate,
23783 # then the envvar interface is used.  Set only those that are not.
23784 # We use the long form for the default assignment because of an extremely
23785 # bizarre bug on SunOS 4.1.3.
23786 if $ac_need_defaults; then
23787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23790 fi
23791
23792 # Have a temporary directory for convenience.  Make it in the build tree
23793 # simply because there is no reason against having it here, and in addition,
23794 # creating and moving files from /tmp can sometimes cause problems.
23795 # Hook for its removal unless debugging.
23796 # Note that there is a small window in which the directory will not be cleaned:
23797 # after its creation but before its name has been assigned to `$tmp'.
23798 $debug ||
23799 {
23800   tmp=
23801   trap 'exit_status=$?
23802   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23803 ' 0
23804   trap '{ (exit 1); exit 1; }' 1 2 13 15
23805 }
23806 # Create a (secure) tmp directory for tmp files.
23807
23808 {
23809   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23810   test -n "$tmp" && test -d "$tmp"
23811 }  ||
23812 {
23813   tmp=./conf$$-$RANDOM
23814   (umask 077 && mkdir "$tmp")
23815 } ||
23816 {
23817    echo "$me: cannot create a temporary directory in ." >&2
23818    { (exit 1); exit 1; }
23819 }
23820
23821 #
23822 # Set up the sed scripts for CONFIG_FILES section.
23823 #
23824
23825 # No need to generate the scripts if there are no CONFIG_FILES.
23826 # This happens for instance when ./config.status config.h
23827 if test -n "$CONFIG_FILES"; then
23828
23829 _ACEOF
23830
23831
23832
23833 ac_delim='%!_!# '
23834 for ac_last_try in false false false false false :; do
23835   cat >conf$$subs.sed <<_ACEOF
23836 SHELL!$SHELL$ac_delim
23837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23843 exec_prefix!$exec_prefix$ac_delim
23844 prefix!$prefix$ac_delim
23845 program_transform_name!$program_transform_name$ac_delim
23846 bindir!$bindir$ac_delim
23847 sbindir!$sbindir$ac_delim
23848 libexecdir!$libexecdir$ac_delim
23849 datarootdir!$datarootdir$ac_delim
23850 datadir!$datadir$ac_delim
23851 sysconfdir!$sysconfdir$ac_delim
23852 sharedstatedir!$sharedstatedir$ac_delim
23853 localstatedir!$localstatedir$ac_delim
23854 includedir!$includedir$ac_delim
23855 oldincludedir!$oldincludedir$ac_delim
23856 docdir!$docdir$ac_delim
23857 infodir!$infodir$ac_delim
23858 htmldir!$htmldir$ac_delim
23859 dvidir!$dvidir$ac_delim
23860 pdfdir!$pdfdir$ac_delim
23861 psdir!$psdir$ac_delim
23862 libdir!$libdir$ac_delim
23863 localedir!$localedir$ac_delim
23864 mandir!$mandir$ac_delim
23865 DEFS!$DEFS$ac_delim
23866 ECHO_C!$ECHO_C$ac_delim
23867 ECHO_N!$ECHO_N$ac_delim
23868 ECHO_T!$ECHO_T$ac_delim
23869 LIBS!$LIBS$ac_delim
23870 build_alias!$build_alias$ac_delim
23871 host_alias!$host_alias$ac_delim
23872 target_alias!$target_alias$ac_delim
23873 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23874 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23875 MAINT!$MAINT$ac_delim
23876 USE_NATIVE_INCLUDES_TRUE!$USE_NATIVE_INCLUDES_TRUE$ac_delim
23877 USE_NATIVE_INCLUDES_FALSE!$USE_NATIVE_INCLUDES_FALSE$ac_delim
23878 MIG!$MIG$ac_delim
23879 CC!$CC$ac_delim
23880 CFLAGS!$CFLAGS$ac_delim
23881 LDFLAGS!$LDFLAGS$ac_delim
23882 CPPFLAGS!$CPPFLAGS$ac_delim
23883 ac_ct_CC!$ac_ct_CC$ac_delim
23884 EXEEXT!$EXEEXT$ac_delim
23885 OBJEXT!$OBJEXT$ac_delim
23886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23888 INSTALL_DATA!$INSTALL_DATA$ac_delim
23889 build!$build$ac_delim
23890 build_cpu!$build_cpu$ac_delim
23891 build_vendor!$build_vendor$ac_delim
23892 build_os!$build_os$ac_delim
23893 host!$host$ac_delim
23894 host_cpu!$host_cpu$ac_delim
23895 host_vendor!$host_vendor$ac_delim
23896 host_os!$host_os$ac_delim
23897 SED!$SED$ac_delim
23898 GREP!$GREP$ac_delim
23899 EGREP!$EGREP$ac_delim
23900 LN_S!$LN_S$ac_delim
23901 ECHO!$ECHO$ac_delim
23902 AR!$AR$ac_delim
23903 RANLIB!$RANLIB$ac_delim
23904 STRIP!$STRIP$ac_delim
23905 CPP!$CPP$ac_delim
23906 CXX!$CXX$ac_delim
23907 CXXFLAGS!$CXXFLAGS$ac_delim
23908 ac_ct_CXX!$ac_ct_CXX$ac_delim
23909 CXXCPP!$CXXCPP$ac_delim
23910 F77!$F77$ac_delim
23911 FFLAGS!$FFLAGS$ac_delim
23912 ac_ct_F77!$ac_ct_F77$ac_delim
23913 LIBTOOL!$LIBTOOL$ac_delim
23914 am__isrc!$am__isrc$ac_delim
23915 CYGPATH_W!$CYGPATH_W$ac_delim
23916 PACKAGE!$PACKAGE$ac_delim
23917 VERSION!$VERSION$ac_delim
23918 ACLOCAL!$ACLOCAL$ac_delim
23919 AUTOCONF!$AUTOCONF$ac_delim
23920 AUTOMAKE!$AUTOMAKE$ac_delim
23921 AUTOHEADER!$AUTOHEADER$ac_delim
23922 MAKEINFO!$MAKEINFO$ac_delim
23923 install_sh!$install_sh$ac_delim
23924 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23925 mkdir_p!$mkdir_p$ac_delim
23926 AWK!$AWK$ac_delim
23927 SET_MAKE!$SET_MAKE$ac_delim
23928 am__leading_dot!$am__leading_dot$ac_delim
23929 AMTAR!$AMTAR$ac_delim
23930 am__tar!$am__tar$ac_delim
23931 am__untar!$am__untar$ac_delim
23932 DEPDIR!$DEPDIR$ac_delim
23933 _ACEOF
23934
23935   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23936     break
23937   elif $ac_last_try; then
23938     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23940    { (exit 1); exit 1; }; }
23941   else
23942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23943   fi
23944 done
23945
23946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23947 if test -n "$ac_eof"; then
23948   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23949   ac_eof=`expr $ac_eof + 1`
23950 fi
23951
23952 cat >>$CONFIG_STATUS <<_ACEOF
23953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23955 _ACEOF
23956 sed '
23957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23958 s/^/s,@/; s/!/@,|#_!!_#|/
23959 :n
23960 t n
23961 s/'"$ac_delim"'$/,g/; t
23962 s/$/\\/; p
23963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23964 ' >>$CONFIG_STATUS <conf$$subs.sed
23965 rm -f conf$$subs.sed
23966 cat >>$CONFIG_STATUS <<_ACEOF
23967 CEOF$ac_eof
23968 _ACEOF
23969
23970
23971 ac_delim='%!_!# '
23972 for ac_last_try in false false false false false :; do
23973   cat >conf$$subs.sed <<_ACEOF
23974 am__include!$am__include$ac_delim
23975 am__quote!$am__quote$ac_delim
23976 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23977 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23978 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23979 CCDEPMODE!$CCDEPMODE$ac_delim
23980 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23981 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23982 CXXDEPMODE!$CXXDEPMODE$ac_delim
23983 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23984 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23985 LIBOBJS!$LIBOBJS$ac_delim
23986 HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23987 HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23988 USE_MACH_IPC_TRUE!$USE_MACH_IPC_TRUE$ac_delim
23989 USE_MACH_IPC_FALSE!$USE_MACH_IPC_FALSE$ac_delim
23990 LTLIBOBJS!$LTLIBOBJS$ac_delim
23991 _ACEOF
23992
23993   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
23994     break
23995   elif $ac_last_try; then
23996     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23998    { (exit 1); exit 1; }; }
23999   else
24000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24001   fi
24002 done
24003
24004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24005 if test -n "$ac_eof"; then
24006   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24007   ac_eof=`expr $ac_eof + 1`
24008 fi
24009
24010 cat >>$CONFIG_STATUS <<_ACEOF
24011 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24013 _ACEOF
24014 sed '
24015 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24016 s/^/s,@/; s/!/@,|#_!!_#|/
24017 :n
24018 t n
24019 s/'"$ac_delim"'$/,g/; t
24020 s/$/\\/; p
24021 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24022 ' >>$CONFIG_STATUS <conf$$subs.sed
24023 rm -f conf$$subs.sed
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 :end
24026 s/|#_!!_#|//g
24027 CEOF$ac_eof
24028 _ACEOF
24029
24030
24031 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24032 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24033 # trailing colons and then remove the whole line if VPATH becomes empty
24034 # (actually we leave an empty line to preserve line numbers).
24035 if test "x$srcdir" = x.; then
24036   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24037 s/:*\$(srcdir):*/:/
24038 s/:*\${srcdir}:*/:/
24039 s/:*@srcdir@:*/:/
24040 s/^\([^=]*=[     ]*\):*/\1/
24041 s/:*$//
24042 s/^[^=]*=[       ]*$//
24043 }'
24044 fi
24045
24046 cat >>$CONFIG_STATUS <<\_ACEOF
24047 fi # test -n "$CONFIG_FILES"
24048
24049
24050 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24051 do
24052   case $ac_tag in
24053   :[FHLC]) ac_mode=$ac_tag; continue;;
24054   esac
24055   case $ac_mode$ac_tag in
24056   :[FHL]*:*);;
24057   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24058 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24059    { (exit 1); exit 1; }; };;
24060   :[FH]-) ac_tag=-:-;;
24061   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24062   esac
24063   ac_save_IFS=$IFS
24064   IFS=:
24065   set x $ac_tag
24066   IFS=$ac_save_IFS
24067   shift
24068   ac_file=$1
24069   shift
24070
24071   case $ac_mode in
24072   :L) ac_source=$1;;
24073   :[FH])
24074     ac_file_inputs=
24075     for ac_f
24076     do
24077       case $ac_f in
24078       -) ac_f="$tmp/stdin";;
24079       *) # Look for the file first in the build tree, then in the source tree
24080          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24081          # because $ac_f cannot contain `:'.
24082          test -f "$ac_f" ||
24083            case $ac_f in
24084            [\\/$]*) false;;
24085            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24086            esac ||
24087            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24088 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24089    { (exit 1); exit 1; }; };;
24090       esac
24091       ac_file_inputs="$ac_file_inputs $ac_f"
24092     done
24093
24094     # Let's still pretend it is `configure' which instantiates (i.e., don't
24095     # use $as_me), people would be surprised to read:
24096     #    /* config.h.  Generated by config.status.  */
24097     configure_input="Generated from "`IFS=:
24098           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24099     if test x"$ac_file" != x-; then
24100       configure_input="$ac_file.  $configure_input"
24101       { echo "$as_me:$LINENO: creating $ac_file" >&5
24102 echo "$as_me: creating $ac_file" >&6;}
24103     fi
24104
24105     case $ac_tag in
24106     *:-:* | *:-) cat >"$tmp/stdin";;
24107     esac
24108     ;;
24109   esac
24110
24111   ac_dir=`$as_dirname -- "$ac_file" ||
24112 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24113          X"$ac_file" : 'X\(//\)[^/]' \| \
24114          X"$ac_file" : 'X\(//\)$' \| \
24115          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24116 echo X"$ac_file" |
24117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24118             s//\1/
24119             q
24120           }
24121           /^X\(\/\/\)[^/].*/{
24122             s//\1/
24123             q
24124           }
24125           /^X\(\/\/\)$/{
24126             s//\1/
24127             q
24128           }
24129           /^X\(\/\).*/{
24130             s//\1/
24131             q
24132           }
24133           s/.*/./; q'`
24134   { as_dir="$ac_dir"
24135   case $as_dir in #(
24136   -*) as_dir=./$as_dir;;
24137   esac
24138   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24139     as_dirs=
24140     while :; do
24141       case $as_dir in #(
24142       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24143       *) as_qdir=$as_dir;;
24144       esac
24145       as_dirs="'$as_qdir' $as_dirs"
24146       as_dir=`$as_dirname -- "$as_dir" ||
24147 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24148          X"$as_dir" : 'X\(//\)[^/]' \| \
24149          X"$as_dir" : 'X\(//\)$' \| \
24150          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24151 echo X"$as_dir" |
24152     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24153             s//\1/
24154             q
24155           }
24156           /^X\(\/\/\)[^/].*/{
24157             s//\1/
24158             q
24159           }
24160           /^X\(\/\/\)$/{
24161             s//\1/
24162             q
24163           }
24164           /^X\(\/\).*/{
24165             s//\1/
24166             q
24167           }
24168           s/.*/./; q'`
24169       test -d "$as_dir" && break
24170     done
24171     test -z "$as_dirs" || eval "mkdir $as_dirs"
24172   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24173 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24174    { (exit 1); exit 1; }; }; }
24175   ac_builddir=.
24176
24177 case "$ac_dir" in
24178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24179 *)
24180   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24181   # A ".." for each directory in $ac_dir_suffix.
24182   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24183   case $ac_top_builddir_sub in
24184   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24185   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24186   esac ;;
24187 esac
24188 ac_abs_top_builddir=$ac_pwd
24189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24190 # for backward compatibility:
24191 ac_top_builddir=$ac_top_build_prefix
24192
24193 case $srcdir in
24194   .)  # We are building in place.
24195     ac_srcdir=.
24196     ac_top_srcdir=$ac_top_builddir_sub
24197     ac_abs_top_srcdir=$ac_pwd ;;
24198   [\\/]* | ?:[\\/]* )  # Absolute name.
24199     ac_srcdir=$srcdir$ac_dir_suffix;
24200     ac_top_srcdir=$srcdir
24201     ac_abs_top_srcdir=$srcdir ;;
24202   *) # Relative name.
24203     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24204     ac_top_srcdir=$ac_top_build_prefix$srcdir
24205     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24206 esac
24207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24208
24209
24210   case $ac_mode in
24211   :F)
24212   #
24213   # CONFIG_FILE
24214   #
24215
24216   case $INSTALL in
24217   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24218   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24219   esac
24220   ac_MKDIR_P=$MKDIR_P
24221   case $MKDIR_P in
24222   [\\/$]* | ?:[\\/]* ) ;;
24223   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24224   esac
24225 _ACEOF
24226
24227 cat >>$CONFIG_STATUS <<\_ACEOF
24228 # If the template does not know about datarootdir, expand it.
24229 # FIXME: This hack should be removed a few years after 2.60.
24230 ac_datarootdir_hack=; ac_datarootdir_seen=
24231
24232 case `sed -n '/datarootdir/ {
24233   p
24234   q
24235 }
24236 /@datadir@/p
24237 /@docdir@/p
24238 /@infodir@/p
24239 /@localedir@/p
24240 /@mandir@/p
24241 ' $ac_file_inputs` in
24242 *datarootdir*) ac_datarootdir_seen=yes;;
24243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24244   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24245 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24246 _ACEOF
24247 cat >>$CONFIG_STATUS <<_ACEOF
24248   ac_datarootdir_hack='
24249   s&@datadir@&$datadir&g
24250   s&@docdir@&$docdir&g
24251   s&@infodir@&$infodir&g
24252   s&@localedir@&$localedir&g
24253   s&@mandir@&$mandir&g
24254     s&\\\${datarootdir}&$datarootdir&g' ;;
24255 esac
24256 _ACEOF
24257
24258 # Neutralize VPATH when `$srcdir' = `.'.
24259 # Shell code in configure.ac might set extrasub.
24260 # FIXME: do we really want to maintain this feature?
24261 cat >>$CONFIG_STATUS <<_ACEOF
24262   sed "$ac_vpsub
24263 $extrasub
24264 _ACEOF
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24266 :t
24267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24268 s&@configure_input@&$configure_input&;t t
24269 s&@top_builddir@&$ac_top_builddir_sub&;t t
24270 s&@srcdir@&$ac_srcdir&;t t
24271 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24272 s&@top_srcdir@&$ac_top_srcdir&;t t
24273 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24274 s&@builddir@&$ac_builddir&;t t
24275 s&@abs_builddir@&$ac_abs_builddir&;t t
24276 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24277 s&@INSTALL@&$ac_INSTALL&;t t
24278 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24279 $ac_datarootdir_hack
24280 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24281
24282 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24283   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24284   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24285   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24286 which seems to be undefined.  Please make sure it is defined." >&5
24287 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24288 which seems to be undefined.  Please make sure it is defined." >&2;}
24289
24290   rm -f "$tmp/stdin"
24291   case $ac_file in
24292   -) cat "$tmp/out"; rm -f "$tmp/out";;
24293   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24294   esac
24295  ;;
24296   :H)
24297   #
24298   # CONFIG_HEADER
24299   #
24300 _ACEOF
24301
24302 # Transform confdefs.h into a sed script `conftest.defines', that
24303 # substitutes the proper values into config.h.in to produce config.h.
24304 rm -f conftest.defines conftest.tail
24305 # First, append a space to every undef/define line, to ease matching.
24306 echo 's/$/ /' >conftest.defines
24307 # Then, protect against being on the right side of a sed subst, or in
24308 # an unquoted here document, in config.status.  If some macros were
24309 # called several times there might be several #defines for the same
24310 # symbol, which is useless.  But do not sort them, since the last
24311 # AC_DEFINE must be honored.
24312 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24313 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24314 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24315 # PARAMS is the parameter list in the macro definition--in most cases, it's
24316 # just an empty string.
24317 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24318 ac_dB='\\)[      (].*,\\1define\\2'
24319 ac_dC=' '
24320 ac_dD=' ,'
24321
24322 uniq confdefs.h |
24323   sed -n '
24324         t rset
24325         :rset
24326         s/^[     ]*#[    ]*define[       ][      ]*//
24327         t ok
24328         d
24329         :ok
24330         s/[\\&,]/\\&/g
24331         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24332         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24333   ' >>conftest.defines
24334
24335 # Remove the space that was appended to ease matching.
24336 # Then replace #undef with comments.  This is necessary, for
24337 # example, in the case of _POSIX_SOURCE, which is predefined and required
24338 # on some systems where configure will not decide to define it.
24339 # (The regexp can be short, since the line contains either #define or #undef.)
24340 echo 's/ $//
24341 s,^[     #]*u.*,/* & */,' >>conftest.defines
24342
24343 # Break up conftest.defines:
24344 ac_max_sed_lines=50
24345
24346 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24347 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24348 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24349 # et cetera.
24350 ac_in='$ac_file_inputs'
24351 ac_out='"$tmp/out1"'
24352 ac_nxt='"$tmp/out2"'
24353
24354 while :
24355 do
24356   # Write a here document:
24357     cat >>$CONFIG_STATUS <<_ACEOF
24358     # First, check the format of the line:
24359     cat >"\$tmp/defines.sed" <<\\CEOF
24360 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24361 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24362 b
24363 :def
24364 _ACEOF
24365   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24366   echo 'CEOF
24367     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24368   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24369   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24370   grep . conftest.tail >/dev/null || break
24371   rm -f conftest.defines
24372   mv conftest.tail conftest.defines
24373 done
24374 rm -f conftest.defines conftest.tail
24375
24376 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24377 cat >>$CONFIG_STATUS <<\_ACEOF
24378   if test x"$ac_file" != x-; then
24379     echo "/* $configure_input  */" >"$tmp/config.h"
24380     cat "$ac_result" >>"$tmp/config.h"
24381     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24382       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24383 echo "$as_me: $ac_file is unchanged" >&6;}
24384     else
24385       rm -f $ac_file
24386       mv "$tmp/config.h" $ac_file
24387     fi
24388   else
24389     echo "/* $configure_input  */"
24390     cat "$ac_result"
24391   fi
24392   rm -f "$tmp/out12"
24393 # Compute $ac_file's index in $config_headers.
24394 _am_stamp_count=1
24395 for _am_header in $config_headers :; do
24396   case $_am_header in
24397     $ac_file | $ac_file:* )
24398       break ;;
24399     * )
24400       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24401   esac
24402 done
24403 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24404 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405          X$ac_file : 'X\(//\)[^/]' \| \
24406          X$ac_file : 'X\(//\)$' \| \
24407          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24408 echo X$ac_file |
24409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24410             s//\1/
24411             q
24412           }
24413           /^X\(\/\/\)[^/].*/{
24414             s//\1/
24415             q
24416           }
24417           /^X\(\/\/\)$/{
24418             s//\1/
24419             q
24420           }
24421           /^X\(\/\).*/{
24422             s//\1/
24423             q
24424           }
24425           s/.*/./; q'`/stamp-h$_am_stamp_count
24426  ;;
24427
24428   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24429 echo "$as_me: executing $ac_file commands" >&6;}
24430  ;;
24431   esac
24432
24433
24434   case $ac_file$ac_mode in
24435     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24436   # Strip MF so we end up with the name of the file.
24437   mf=`echo "$mf" | sed -e 's/:.*$//'`
24438   # Check whether this is an Automake generated Makefile or not.
24439   # We used to match only the files named `Makefile.in', but
24440   # some people rename them; so instead we look at the file content.
24441   # Grep'ing the first line is not enough: some people post-process
24442   # each Makefile.in and add a new line on top of each file to say so.
24443   # Grep'ing the whole file is not good either: AIX grep has a line
24444   # limit of 2048, but all sed's we know have understand at least 4000.
24445   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24446     dirpart=`$as_dirname -- "$mf" ||
24447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24448          X"$mf" : 'X\(//\)[^/]' \| \
24449          X"$mf" : 'X\(//\)$' \| \
24450          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24451 echo X"$mf" |
24452     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24453             s//\1/
24454             q
24455           }
24456           /^X\(\/\/\)[^/].*/{
24457             s//\1/
24458             q
24459           }
24460           /^X\(\/\/\)$/{
24461             s//\1/
24462             q
24463           }
24464           /^X\(\/\).*/{
24465             s//\1/
24466             q
24467           }
24468           s/.*/./; q'`
24469   else
24470     continue
24471   fi
24472   # Extract the definition of DEPDIR, am__include, and am__quote
24473   # from the Makefile without running `make'.
24474   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24475   test -z "$DEPDIR" && continue
24476   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24477   test -z "am__include" && continue
24478   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24479   # When using ansi2knr, U may be empty or an underscore; expand it
24480   U=`sed -n 's/^U = //p' < "$mf"`
24481   # Find all dependency output files, they are included files with
24482   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24483   # simplest approach to changing $(DEPDIR) to its actual value in the
24484   # expansion.
24485   for file in `sed -n "
24486     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24487        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24488     # Make sure the directory exists.
24489     test -f "$dirpart/$file" && continue
24490     fdir=`$as_dirname -- "$file" ||
24491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24492          X"$file" : 'X\(//\)[^/]' \| \
24493          X"$file" : 'X\(//\)$' \| \
24494          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24495 echo X"$file" |
24496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24497             s//\1/
24498             q
24499           }
24500           /^X\(\/\/\)[^/].*/{
24501             s//\1/
24502             q
24503           }
24504           /^X\(\/\/\)$/{
24505             s//\1/
24506             q
24507           }
24508           /^X\(\/\).*/{
24509             s//\1/
24510             q
24511           }
24512           s/.*/./; q'`
24513     { as_dir=$dirpart/$fdir
24514   case $as_dir in #(
24515   -*) as_dir=./$as_dir;;
24516   esac
24517   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24518     as_dirs=
24519     while :; do
24520       case $as_dir in #(
24521       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24522       *) as_qdir=$as_dir;;
24523       esac
24524       as_dirs="'$as_qdir' $as_dirs"
24525       as_dir=`$as_dirname -- "$as_dir" ||
24526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24527          X"$as_dir" : 'X\(//\)[^/]' \| \
24528          X"$as_dir" : 'X\(//\)$' \| \
24529          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24530 echo X"$as_dir" |
24531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24532             s//\1/
24533             q
24534           }
24535           /^X\(\/\/\)[^/].*/{
24536             s//\1/
24537             q
24538           }
24539           /^X\(\/\/\)$/{
24540             s//\1/
24541             q
24542           }
24543           /^X\(\/\).*/{
24544             s//\1/
24545             q
24546           }
24547           s/.*/./; q'`
24548       test -d "$as_dir" && break
24549     done
24550     test -z "$as_dirs" || eval "mkdir $as_dirs"
24551   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24553    { (exit 1); exit 1; }; }; }
24554     # echo "creating $dirpart/$file"
24555     echo '# dummy' > "$dirpart/$file"
24556   done
24557 done
24558  ;;
24559
24560   esac
24561 done # for ac_tag
24562
24563
24564 { (exit 0); exit 0; }
24565 _ACEOF
24566 chmod +x $CONFIG_STATUS
24567 ac_clean_files=$ac_clean_files_save
24568
24569
24570 # configure is writing to config.log, and then calls config.status.
24571 # config.status does its own redirection, appending to config.log.
24572 # Unfortunately, on DOS this fails, as config.log is still kept open
24573 # by configure, so config.status won't be able to write to it; its
24574 # output is simply discarded.  So we exec the FD to /dev/null,
24575 # effectively closing config.log, so it can be properly (re)opened and
24576 # appended to by config.status.  When coming back to configure, we
24577 # need to make the FD available again.
24578 if test "$no_create" != yes; then
24579   ac_cs_success=:
24580   ac_config_status_args=
24581   test "$silent" = yes &&
24582     ac_config_status_args="$ac_config_status_args --quiet"
24583   exec 5>/dev/null
24584   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24585   exec 5>>config.log
24586   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24587   # would make configure fail if this is the last instruction.
24588   $ac_cs_success || { (exit 1); exit 1; }
24589 fi
24590