]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/openbsm/configure
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / openbsm / configure
1 #! /bin/sh
2 # From configure.ac P4: //depot/projects/trustedbsd/openbsm/configure.ac#35 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for OpenBSM 1.0.
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.0'
733 PACKAGE_STRING='OpenBSM 1.0'
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 CC
816 CFLAGS
817 LDFLAGS
818 CPPFLAGS
819 ac_ct_CC
820 EXEEXT
821 OBJEXT
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 build
826 build_cpu
827 build_vendor
828 build_os
829 host
830 host_cpu
831 host_vendor
832 host_os
833 SED
834 GREP
835 EGREP
836 LN_S
837 ECHO
838 AR
839 RANLIB
840 STRIP
841 CPP
842 CXX
843 CXXFLAGS
844 ac_ct_CXX
845 CXXCPP
846 F77
847 FFLAGS
848 ac_ct_F77
849 LIBTOOL
850 am__isrc
851 CYGPATH_W
852 PACKAGE
853 VERSION
854 ACLOCAL
855 AUTOCONF
856 AUTOMAKE
857 AUTOHEADER
858 MAKEINFO
859 install_sh
860 INSTALL_STRIP_PROGRAM
861 mkdir_p
862 AWK
863 SET_MAKE
864 am__leading_dot
865 AMTAR
866 am__tar
867 am__untar
868 DEPDIR
869 am__include
870 am__quote
871 AMDEP_TRUE
872 AMDEP_FALSE
873 AMDEPBACKSLASH
874 CCDEPMODE
875 am__fastdepCC_TRUE
876 am__fastdepCC_FALSE
877 CXXDEPMODE
878 am__fastdepCXX_TRUE
879 am__fastdepCXX_FALSE
880 LIBOBJS
881 HAVE_AUDIT_SYSCALLS_TRUE
882 HAVE_AUDIT_SYSCALLS_FALSE
883 LTLIBOBJS'
884 ac_subst_files=''
885       ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
893 CPP
894 CXX
895 CXXFLAGS
896 CCC
897 CXXCPP
898 F77
899 FFLAGS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952   # If the previous option needs an argument, assign it.
953   if test -n "$ac_prev"; then
954     eval $ac_prev=\$ac_option
955     ac_prev=
956     continue
957   fi
958
959   case $ac_option in
960   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961   *)    ac_optarg=yes ;;
962   esac
963
964   # Accept the important Cygnus configure options, so we can diagnose typos.
965
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
969
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
974
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
979
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
986
987   --config-cache | -C)
988     cache_file=config.cache ;;
989
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
994
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1001
1002   -disable-* | --disable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=no ;;
1010
1011   -docdir | --docdir | --docdi | --doc | --do)
1012     ac_prev=docdir ;;
1013   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014     docdir=$ac_optarg ;;
1015
1016   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017     ac_prev=dvidir ;;
1018   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019     dvidir=$ac_optarg ;;
1020
1021   -enable-* | --enable-*)
1022     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023     # Reject names that are not valid shell variable names.
1024     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026    { (exit 1); exit 1; }; }
1027     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028     eval enable_$ac_feature=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=\$ac_optarg ;;
1226
1227   -without-* | --without-*)
1228     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229     # Reject names that are not valid shell variable names.
1230     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231       { echo "$as_me: error: invalid package name: $ac_package" >&2
1232    { (exit 1); exit 1; }; }
1233     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234     eval with_$ac_package=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) { echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256    { (exit 1); exit 1; }; }
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264    { (exit 1); exit 1; }; }
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   { echo "$as_me: error: missing argument to $ac_option" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 # Be sure to have absolute directory names.
1286 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287                 datadir sysconfdir sharedstatedir localstatedir includedir \
1288                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289                 libdir localedir mandir
1290 do
1291   eval ac_val=\$$ac_var
1292   case $ac_val in
1293     [\\/$]* | ?:[\\/]* )  continue;;
1294     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295   esac
1296   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297    { (exit 1); exit 1; }; }
1298 done
1299
1300 # There might be people who depend on the old broken behavior: `$host'
1301 # used to hold the argument of --host etc.
1302 # FIXME: To remove some day.
1303 build=$build_alias
1304 host=$host_alias
1305 target=$target_alias
1306
1307 # FIXME: To remove some day.
1308 if test "x$host_alias" != x; then
1309   if test "x$build_alias" = x; then
1310     cross_compiling=maybe
1311     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312     If a cross compiler is detected then cross compile mode will be used." >&2
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   { echo "$as_me: error: Working directory cannot be determined" >&2
1328    { (exit 1); exit 1; }; }
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330   { echo "$as_me: error: pwd does not report name of working directory" >&2
1331    { (exit 1); exit 1; }; }
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336   ac_srcdir_defaulted=yes
1337   # Try the directory containing this script, then the parent directory.
1338   ac_confdir=`$as_dirname -- "$0" ||
1339 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340          X"$0" : 'X\(//\)[^/]' \| \
1341          X"$0" : 'X\(//\)$' \| \
1342          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343 echo X"$0" |
1344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345             s//\1/
1346             q
1347           }
1348           /^X\(\/\/\)[^/].*/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\).*/{
1357             s//\1/
1358             q
1359           }
1360           s/.*/./; q'`
1361   srcdir=$ac_confdir
1362   if test ! -r "$srcdir/$ac_unique_file"; then
1363     srcdir=..
1364   fi
1365 else
1366   ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371    { (exit 1); exit 1; }; }
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376    { (exit 1); exit 1; }; }
1377         pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380   srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_env_${ac_var}_value=\$${ac_var}
1391   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399   # Omit some internal or obsolete options to make the list less imposing.
1400   # This message is too long to be a string in the A/UX 3.1 sh.
1401   cat <<_ACEOF
1402 \`configure' configures OpenBSM 1.0 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412   -h, --help              display this help and exit
1413       --help=short        display options specific to this package
1414       --help=recursive    display the short help of all the included packages
1415   -V, --version           display version information and exit
1416   -q, --quiet, --silent   do not print \`checking...' messages
1417       --cache-file=FILE   cache test results in FILE [disabled]
1418   -C, --config-cache      alias for \`--cache-file=config.cache'
1419   -n, --no-create         do not create output files
1420       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422 Installation directories:
1423   --prefix=PREFIX         install architecture-independent files in PREFIX
1424                           [$ac_default_prefix]
1425   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426                           [PREFIX]
1427
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436   --bindir=DIR           user executables [EPREFIX/bin]
1437   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438   --libexecdir=DIR       program executables [EPREFIX/libexec]
1439   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442   --libdir=DIR           object code libraries [EPREFIX/lib]
1443   --includedir=DIR       C header files [PREFIX/include]
1444   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447   --infodir=DIR          info documentation [DATAROOTDIR/info]
1448   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449   --mandir=DIR           man documentation [DATAROOTDIR/man]
1450   --docdir=DIR           documentation root [DATAROOTDIR/doc/openbsm]
1451   --htmldir=DIR          html documentation [DOCDIR]
1452   --dvidir=DIR           dvi documentation [DOCDIR]
1453   --pdfdir=DIR           pdf documentation [DOCDIR]
1454   --psdir=DIR            ps documentation [DOCDIR]
1455 _ACEOF
1456
1457   cat <<\_ACEOF
1458
1459 Program names:
1460   --program-prefix=PREFIX            prepend PREFIX to installed program names
1461   --program-suffix=SUFFIX            append SUFFIX to installed program names
1462   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471   case $ac_init_help in
1472      short | recursive ) echo "Configuration of OpenBSM 1.0:";;
1473    esac
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479   --enable-maintainer-mode  enable make rules and dependencies not useful
1480                           (and sometimes confusing) to the casual installer
1481   --enable-shared[=PKGS]  build shared libraries [default=yes]
1482   --enable-static[=PKGS]  build static libraries [default=yes]
1483   --enable-fast-install[=PKGS]
1484                           optimize for fast installation [default=yes]
1485   --disable-libtool-lock  avoid locking (might break parallel builds)
1486   --disable-dependency-tracking  speeds up one-time build
1487   --enable-dependency-tracking   do not reject slow dependency extractors
1488
1489 Optional Packages:
1490   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1491   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1492   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1493   --with-pic              try to use only PIC/non-PIC objects [default=use
1494                           both]
1495   --with-tags[=TAGS]      include additional configurations [automatic]
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   CXXCPP      C++ preprocessor
1509   F77         Fortran 77 compiler command
1510   FFLAGS      Fortran 77 compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <trustedbsd-audit@TrustesdBSD.org>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" || continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 OpenBSM configure 1.0
1577 generated by GNU Autoconf 2.61
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584   exit
1585 fi
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1589
1590 It was created by OpenBSM $as_me 1.0, which was
1591 generated by GNU Autoconf 2.61.  Invocation command line was
1592
1593   $ $0 $@
1594
1595 _ACEOF
1596 exec 5>>config.log
1597 {
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1602
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1611
1612 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1613 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1616 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1617 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1618 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1619
1620 _ASUNAME
1621
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625   IFS=$as_save_IFS
1626   test -z "$as_dir" && as_dir=.
1627   echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1630
1631 } >&5
1632
1633 cat >&5 <<_ACEOF
1634
1635
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1639
1640 _ACEOF
1641
1642
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1653 do
1654   for ac_arg
1655   do
1656     case $ac_arg in
1657     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659     | -silent | --silent | --silen | --sile | --sil)
1660       continue ;;
1661     *\'*)
1662       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663     esac
1664     case $ac_pass in
1665     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666     2)
1667       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668       if test $ac_must_keep_next = true; then
1669         ac_must_keep_next=false # Got value, back to normal.
1670       else
1671         case $ac_arg in
1672           *=* | --config-cache | -C | -disable-* | --disable-* \
1673           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675           | -with-* | --with-* | -without-* | --without-* | --x)
1676             case "$ac_configure_args0 " in
1677               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678             esac
1679             ;;
1680           -* ) ac_must_keep_next=true ;;
1681         esac
1682       fi
1683       ac_configure_args="$ac_configure_args '$ac_arg'"
1684       ;;
1685     esac
1686   done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log.  We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697   # Save into config.log some information that might help in debugging.
1698   {
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706     echo
1707     # The following way of writing the cache mishandles newlines in values,
1708 (
1709   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710     eval ac_val=\$$ac_var
1711     case $ac_val in #(
1712     *${as_nl}*)
1713       case $ac_var in #(
1714       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716       esac
1717       case $ac_var in #(
1718       _ | IFS | as_nl) ;; #(
1719       *) $as_unset $ac_var ;;
1720       esac ;;
1721     esac
1722   done
1723   (set) 2>&1 |
1724     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725     *${as_nl}ac_space=\ *)
1726       sed -n \
1727         "s/'\''/'\''\\\\'\'''\''/g;
1728           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729       ;; #(
1730     *)
1731       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732       ;;
1733     esac |
1734     sort
1735 )
1736     echo
1737
1738     cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743     echo
1744     for ac_var in $ac_subst_vars
1745     do
1746       eval ac_val=\$$ac_var
1747       case $ac_val in
1748       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749       esac
1750       echo "$ac_var='\''$ac_val'\''"
1751     done | sort
1752     echo
1753
1754     if test -n "$ac_subst_files"; then
1755       cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760       echo
1761       for ac_var in $ac_subst_files
1762       do
1763         eval ac_val=\$$ac_var
1764         case $ac_val in
1765         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766         esac
1767         echo "$ac_var='\''$ac_val'\''"
1768       done | sort
1769       echo
1770     fi
1771
1772     if test -s confdefs.h; then
1773       cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778       echo
1779       cat confdefs.h
1780       echo
1781     fi
1782     test "$ac_signal" != 0 &&
1783       echo "$as_me: caught signal $ac_signal"
1784     echo "$as_me: exit $exit_status"
1785   } >&5
1786   rm -f core *.core core.conftest.* &&
1787     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788     exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828   set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832   set x "$ac_default_prefix/share/config.site" \
1833         "$ac_default_prefix/etc/config.site"
1834 fi
1835 shift
1836 for ac_site_file
1837 do
1838   if test -r "$ac_site_file"; then
1839     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841     sed 's/^/| /' "$ac_site_file" >&5
1842     . "$ac_site_file"
1843   fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847   # Some versions of bash will fail to source /dev/null (special
1848   # files actually), so we avoid doing that.
1849   if test -f "$cache_file"; then
1850     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852     case $cache_file in
1853       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854       *)                      . "./$cache_file";;
1855     esac
1856   fi
1857 else
1858   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860   >$cache_file
1861 fi
1862
1863 ac_header_list="$ac_header_list sys/time.h"
1864 ac_header_list="$ac_header_list unistd.h"
1865 ac_func_list="$ac_func_list alarm"
1866 # Check that the precious variables saved in the cache have kept the same
1867 # value.
1868 ac_cache_corrupted=false
1869 for ac_var in $ac_precious_vars; do
1870   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871   eval ac_new_set=\$ac_env_${ac_var}_set
1872   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873   eval ac_new_val=\$ac_env_${ac_var}_value
1874   case $ac_old_set,$ac_new_set in
1875     set,)
1876       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878       ac_cache_corrupted=: ;;
1879     ,set)
1880       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882       ac_cache_corrupted=: ;;
1883     ,);;
1884     *)
1885       if test "x$ac_old_val" != "x$ac_new_val"; then
1886         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1889 echo "$as_me:   former value:  $ac_old_val" >&2;}
1890         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1891 echo "$as_me:   current value: $ac_new_val" >&2;}
1892         ac_cache_corrupted=:
1893       fi;;
1894   esac
1895   # Pass precious variables to config.status.
1896   if test "$ac_new_set" = set; then
1897     case $ac_new_val in
1898     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899     *) ac_arg=$ac_var=$ac_new_val ;;
1900     esac
1901     case " $ac_configure_args " in
1902       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1903       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904     esac
1905   fi
1906 done
1907 if $ac_cache_corrupted; then
1908   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912    { (exit 1); exit 1; }; }
1913 fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946
1947
1948 ac_aux_dir=
1949 for ac_dir in config "$srcdir"/config; do
1950   if test -f "$ac_dir/install-sh"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/install-sh -c"
1953     break
1954   elif test -f "$ac_dir/install.sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install.sh -c"
1957     break
1958   elif test -f "$ac_dir/shtool"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/shtool install -c"
1961     break
1962   fi
1963 done
1964 if test -z "$ac_aux_dir"; then
1965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1967    { (exit 1); exit 1; }; }
1968 fi
1969
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1977
1978
1979 ac_config_headers="$ac_config_headers config/config.h"
1980
1981 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1982 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
1983     # Check whether --enable-maintainer-mode was given.
1984 if test "${enable_maintainer_mode+set}" = set; then
1985   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1986 else
1987   USE_MAINTAINER_MODE=no
1988 fi
1989
1990   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1991 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
1992    if test $USE_MAINTAINER_MODE = yes; then
1993   MAINTAINER_MODE_TRUE=
1994   MAINTAINER_MODE_FALSE='#'
1995 else
1996   MAINTAINER_MODE_TRUE='#'
1997   MAINTAINER_MODE_FALSE=
1998 fi
1999
2000   MAINT=$MAINTAINER_MODE_TRUE
2001
2002
2003
2004 # Checks for programs.
2005 ac_ext=c
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 if test -n "$ac_tool_prefix"; then
2011   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$CC"; then
2019   ac_cv_prog_CC="$CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 CC=$ac_cv_prog_CC
2039 if test -n "$CC"; then
2040   { echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047
2048 fi
2049 if test -z "$ac_cv_prog_CC"; then
2050   ac_ct_CC=$CC
2051   # Extract the first word of "gcc", so it can be a program name with args.
2052 set dummy gcc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_ac_ct_CC="gcc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079 if test -n "$ac_ct_CC"; then
2080   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081 echo "${ECHO_T}$ac_ct_CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087   if test "x$ac_ct_CC" = x; then
2088     CC=""
2089   else
2090     case $cross_compiling:$ac_tool_warned in
2091 yes:)
2092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2093 whose name does not start with the host triplet.  If you think this
2094 configuration is useful to you, please write to autoconf@gnu.org." >&5
2095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2098 ac_tool_warned=yes ;;
2099 esac
2100     CC=$ac_ct_CC
2101   fi
2102 else
2103   CC="$ac_cv_prog_CC"
2104 fi
2105
2106 if test -z "$CC"; then
2107           if test -n "$ac_tool_prefix"; then
2108     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125     ac_cv_prog_CC="${ac_tool_prefix}cc"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131 IFS=$as_save_IFS
2132
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137   { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145   fi
2146 fi
2147 if test -z "$CC"; then
2148   # Extract the first word of "cc", so it can be a program name with args.
2149 set dummy cc; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158   ac_prog_rejected=no
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 for as_dir in $PATH
2161 do
2162   IFS=$as_save_IFS
2163   test -z "$as_dir" && as_dir=.
2164   for ac_exec_ext in '' $ac_executable_extensions; do
2165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2167        ac_prog_rejected=yes
2168        continue
2169      fi
2170     ac_cv_prog_CC="cc"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 if test $ac_prog_rejected = yes; then
2179   # We found a bogon in the path, so make sure we never use it.
2180   set dummy $ac_cv_prog_CC
2181   shift
2182   if test $# != 0; then
2183     # We chose a different compiler from the bogus one.
2184     # However, it has the same basename, so the bogon will be chosen
2185     # first if we set CC to just the basename; use the full file name.
2186     shift
2187     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188   fi
2189 fi
2190 fi
2191 fi
2192 CC=$ac_cv_prog_CC
2193 if test -n "$CC"; then
2194   { echo "$as_me:$LINENO: result: $CC" >&5
2195 echo "${ECHO_T}$CC" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202 fi
2203 if test -z "$CC"; then
2204   if test -n "$ac_tool_prefix"; then
2205   for ac_prog in cl.exe
2206   do
2207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_CC+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   if test -n "$CC"; then
2215   ac_cv_prog_CC="$CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220   IFS=$as_save_IFS
2221   test -z "$as_dir" && as_dir=.
2222   for ac_exec_ext in '' $ac_executable_extensions; do
2223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226     break 2
2227   fi
2228 done
2229 done
2230 IFS=$as_save_IFS
2231
2232 fi
2233 fi
2234 CC=$ac_cv_prog_CC
2235 if test -n "$CC"; then
2236   { echo "$as_me:$LINENO: result: $CC" >&5
2237 echo "${ECHO_T}$CC" >&6; }
2238 else
2239   { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 fi
2242
2243
2244     test -n "$CC" && break
2245   done
2246 fi
2247 if test -z "$CC"; then
2248   ac_ct_CC=$CC
2249   for ac_prog in cl.exe
2250 do
2251   # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$ac_ct_CC"; then
2259   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268     ac_cv_prog_ac_ct_CC="$ac_prog"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274 IFS=$as_save_IFS
2275
2276 fi
2277 fi
2278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2279 if test -n "$ac_ct_CC"; then
2280   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2281 echo "${ECHO_T}$ac_ct_CC" >&6; }
2282 else
2283   { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 fi
2286
2287
2288   test -n "$ac_ct_CC" && break
2289 done
2290
2291   if test "x$ac_ct_CC" = x; then
2292     CC=""
2293   else
2294     case $cross_compiling:$ac_tool_warned in
2295 yes:)
2296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2297 whose name does not start with the host triplet.  If you think this
2298 configuration is useful to you, please write to autoconf@gnu.org." >&5
2299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet.  If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2302 ac_tool_warned=yes ;;
2303 esac
2304     CC=$ac_ct_CC
2305   fi
2306 fi
2307
2308 fi
2309
2310
2311 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: no acceptable C compiler found in \$PATH
2314 See \`config.log' for more details." >&2;}
2315    { (exit 1); exit 1; }; }
2316
2317 # Provide some information about the compiler.
2318 echo "$as_me:$LINENO: checking for C compiler version" >&5
2319 ac_compiler=`set X $ac_compile; echo $2`
2320 { (ac_try="$ac_compiler --version >&5"
2321 case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326   (eval "$ac_compiler --version >&5") 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }
2330 { (ac_try="$ac_compiler -v >&5"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_compiler -v >&5") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }
2340 { (ac_try="$ac_compiler -V >&5"
2341 case "(($ac_try" in
2342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343   *) ac_try_echo=$ac_try;;
2344 esac
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346   (eval "$ac_compiler -V >&5") 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }
2350
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 ac_clean_files_save=$ac_clean_files
2367 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2368 # Try to create an executable without -o first, disregard a.out.
2369 # It will help us diagnose broken compilers, and finding out an intuition
2370 # of exeext.
2371 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2372 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2373 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2374 #
2375 # List of possible output files, starting from the most likely.
2376 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2377 # only as a last resort.  b.out is created by i960 compilers.
2378 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2379 #
2380 # The IRIX 6 linker writes into existing files which may not be
2381 # executable, retaining their permissions.  Remove them first so a
2382 # subsequent execution test works.
2383 ac_rmfiles=
2384 for ac_file in $ac_files
2385 do
2386   case $ac_file in
2387     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2388     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2389   esac
2390 done
2391 rm -f $ac_rmfiles
2392
2393 if { (ac_try="$ac_link_default"
2394 case "(($ac_try" in
2395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396   *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399   (eval "$ac_link_default") 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; then
2403   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2404 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2405 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2406 # so that the user can short-circuit this test for compilers unknown to
2407 # Autoconf.
2408 for ac_file in $ac_files ''
2409 do
2410   test -f "$ac_file" || continue
2411   case $ac_file in
2412     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2413         ;;
2414     [ab].out )
2415         # We found the default executable, but exeext='' is most
2416         # certainly right.
2417         break;;
2418     *.* )
2419         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2420         then :; else
2421            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2422         fi
2423         # We set ac_cv_exeext here because the later test for it is not
2424         # safe: cross compilers may not add the suffix if given an `-o'
2425         # argument, so we may need to know it at that point already.
2426         # Even if this section looks crufty: it has the advantage of
2427         # actually working.
2428         break;;
2429     * )
2430         break;;
2431   esac
2432 done
2433 test "$ac_cv_exeext" = no && ac_cv_exeext=
2434
2435 else
2436   ac_file=''
2437 fi
2438
2439 { echo "$as_me:$LINENO: result: $ac_file" >&5
2440 echo "${ECHO_T}$ac_file" >&6; }
2441 if test -z "$ac_file"; then
2442   echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2444
2445 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2446 See \`config.log' for more details." >&5
2447 echo "$as_me: error: C compiler cannot create executables
2448 See \`config.log' for more details." >&2;}
2449    { (exit 77); exit 77; }; }
2450 fi
2451
2452 ac_exeext=$ac_cv_exeext
2453
2454 # Check that the compiler produces executables we can run.  If not, either
2455 # the compiler is broken, or we cross compile.
2456 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2457 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2458 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2459 # If not cross compiling, check that we can run a simple program.
2460 if test "$cross_compiling" != yes; then
2461   if { ac_try='./$ac_file'
2462   { (case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_try") 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; }; then
2471     cross_compiling=no
2472   else
2473     if test "$cross_compiling" = maybe; then
2474         cross_compiling=yes
2475     else
2476         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2477 If you meant to cross compile, use \`--host'.
2478 See \`config.log' for more details." >&5
2479 echo "$as_me: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&2;}
2482    { (exit 1); exit 1; }; }
2483     fi
2484   fi
2485 fi
2486 { echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6; }
2488
2489 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2490 ac_clean_files=$ac_clean_files_save
2491 # Check that the compiler produces executables we can run.  If not, either
2492 # the compiler is broken, or we cross compile.
2493 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2494 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2495 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2496 echo "${ECHO_T}$cross_compiling" >&6; }
2497
2498 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2499 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2500 if { (ac_try="$ac_link"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506   (eval "$ac_link") 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; then
2510   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2511 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2512 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 # `rm'.
2514 for ac_file in conftest.exe conftest conftest.*; do
2515   test -f "$ac_file" || continue
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2518     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519           break;;
2520     * ) break;;
2521   esac
2522 done
2523 else
2524   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest$ac_cv_exeext
2532 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2533 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2534
2535 rm -f conftest.$ac_ext
2536 EXEEXT=$ac_cv_exeext
2537 ac_exeext=$EXEEXT
2538 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2539 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2540 if test "${ac_cv_objext+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 rm -f conftest.o conftest.obj
2559 if { (ac_try="$ac_compile"
2560 case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_compile") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; then
2569   for ac_file in conftest.o conftest.obj conftest.*; do
2570   test -f "$ac_file" || continue;
2571   case $ac_file in
2572     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2573     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2574        break;;
2575   esac
2576 done
2577 else
2578   echo "$as_me: failed program was:" >&5
2579 sed 's/^/| /' conftest.$ac_ext >&5
2580
2581 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&5
2583 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2584 See \`config.log' for more details." >&2;}
2585    { (exit 1); exit 1; }; }
2586 fi
2587
2588 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2591 echo "${ECHO_T}$ac_cv_objext" >&6; }
2592 OBJEXT=$ac_cv_objext
2593 ac_objext=$OBJEXT
2594 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2596 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609 #ifndef __GNUC__
2610        choke me
2611 #endif
2612
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (ac_try="$ac_compile"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_compile") 2>conftest.er1
2625   ac_status=$?
2626   grep -v '^ *+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } && {
2631          test -z "$ac_c_werror_flag" ||
2632          test ! -s conftest.err
2633        } && test -s conftest.$ac_objext; then
2634   ac_compiler_gnu=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639         ac_compiler_gnu=no
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644
2645 fi
2646 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2648 GCC=`test $ac_compiler_gnu = yes && echo yes`
2649 ac_test_CFLAGS=${CFLAGS+set}
2650 ac_save_CFLAGS=$CFLAGS
2651 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_cc_g+set}" = set; then
2654   echo $ECHO_N "(cached) $ECHO_C" >&6
2655 else
2656   ac_save_c_werror_flag=$ac_c_werror_flag
2657    ac_c_werror_flag=yes
2658    ac_cv_prog_cc_g=no
2659    CFLAGS="-g"
2660    cat >conftest.$ac_ext <<_ACEOF
2661 /* confdefs.h.  */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h.  */
2666
2667 int
2668 main ()
2669 {
2670
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (ac_try="$ac_compile"
2677 case "(($ac_try" in
2678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679   *) ac_try_echo=$ac_try;;
2680 esac
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682   (eval "$ac_compile") 2>conftest.er1
2683   ac_status=$?
2684   grep -v '^ *+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } && {
2689          test -z "$ac_c_werror_flag" ||
2690          test ! -s conftest.err
2691        } && test -s conftest.$ac_objext; then
2692   ac_cv_prog_cc_g=yes
2693 else
2694   echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2696
2697         CFLAGS=""
2698       cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compile") 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } && {
2727          test -z "$ac_c_werror_flag" ||
2728          test ! -s conftest.err
2729        } && test -s conftest.$ac_objext; then
2730   :
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735         ac_c_werror_flag=$ac_save_c_werror_flag
2736          CFLAGS="-g"
2737          cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743
2744 int
2745 main ()
2746 {
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_compile") 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } && {
2766          test -z "$ac_c_werror_flag" ||
2767          test ! -s conftest.err
2768        } && test -s conftest.$ac_objext; then
2769   ac_cv_prog_cc_g=yes
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774
2775 fi
2776
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 fi
2779
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 fi
2782
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784    ac_c_werror_flag=$ac_save_c_werror_flag
2785 fi
2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2787 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2788 if test "$ac_test_CFLAGS" = set; then
2789   CFLAGS=$ac_save_CFLAGS
2790 elif test $ac_cv_prog_cc_g = yes; then
2791   if test "$GCC" = yes; then
2792     CFLAGS="-g -O2"
2793   else
2794     CFLAGS="-g"
2795   fi
2796 else
2797   if test "$GCC" = yes; then
2798     CFLAGS="-O2"
2799   else
2800     CFLAGS=
2801   fi
2802 fi
2803 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2804 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2805 if test "${ac_cv_prog_cc_c89+set}" = set; then
2806   echo $ECHO_N "(cached) $ECHO_C" >&6
2807 else
2808   ac_cv_prog_cc_c89=no
2809 ac_save_CC=$CC
2810 cat >conftest.$ac_ext <<_ACEOF
2811 /* confdefs.h.  */
2812 _ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h.  */
2816 #include <stdarg.h>
2817 #include <stdio.h>
2818 #include <sys/types.h>
2819 #include <sys/stat.h>
2820 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2821 struct buf { int x; };
2822 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2823 static char *e (p, i)
2824      char **p;
2825      int i;
2826 {
2827   return p[i];
2828 }
2829 static char *f (char * (*g) (char **, int), char **p, ...)
2830 {
2831   char *s;
2832   va_list v;
2833   va_start (v,p);
2834   s = g (p, va_arg (v,int));
2835   va_end (v);
2836   return s;
2837 }
2838
2839 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2840    function prototypes and stuff, but not '\xHH' hex character constants.
2841    These don't provoke an error unfortunately, instead are silently treated
2842    as 'x'.  The following induces an error, until -std is added to get
2843    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2844    array size at least.  It's necessary to write '\x00'==0 to get something
2845    that's true only with -std.  */
2846 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2847
2848 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2849    inside strings and character constants.  */
2850 #define FOO(x) 'x'
2851 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2852
2853 int test (int i, double x);
2854 struct s1 {int (*f) (int a);};
2855 struct s2 {int (*f) (double a);};
2856 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2857 int argc;
2858 char **argv;
2859 int
2860 main ()
2861 {
2862 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2863   ;
2864   return 0;
2865 }
2866 _ACEOF
2867 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2868         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2869 do
2870   CC="$ac_save_CC $ac_arg"
2871   rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compile") 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } && {
2885          test -z "$ac_c_werror_flag" ||
2886          test ! -s conftest.err
2887        } && test -s conftest.$ac_objext; then
2888   ac_cv_prog_cc_c89=$ac_arg
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893
2894 fi
2895
2896 rm -f core conftest.err conftest.$ac_objext
2897   test "x$ac_cv_prog_cc_c89" != "xno" && break
2898 done
2899 rm -f conftest.$ac_ext
2900 CC=$ac_save_CC
2901
2902 fi
2903 # AC_CACHE_VAL
2904 case "x$ac_cv_prog_cc_c89" in
2905   x)
2906     { echo "$as_me:$LINENO: result: none needed" >&5
2907 echo "${ECHO_T}none needed" >&6; } ;;
2908   xno)
2909     { echo "$as_me:$LINENO: result: unsupported" >&5
2910 echo "${ECHO_T}unsupported" >&6; } ;;
2911   *)
2912     CC="$CC $ac_cv_prog_cc_c89"
2913     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2914 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2915 esac
2916
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924 # Find a good install program.  We prefer a C program (faster),
2925 # so one script is as good as another.  But avoid the broken or
2926 # incompatible versions:
2927 # SysV /etc/install, /usr/sbin/install
2928 # SunOS /usr/etc/install
2929 # IRIX /sbin/install
2930 # AIX /bin/install
2931 # AmigaOS /C/install, which installs bootblocks on floppy discs
2932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2935 # OS/2's system install, which has a completely different semantic
2936 # ./install, which can be erroneously created by make from ./install.sh.
2937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2939 if test -z "$INSTALL"; then
2940 if test "${ac_cv_path_install+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   # Account for people who put trailing slashes in PATH elements.
2949 case $as_dir/ in
2950   ./ | .// | /cC/* | \
2951   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2952   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2953   /usr/ucb/* ) ;;
2954   *)
2955     # OSF1 and SCO ODT 3.0 have their own names for install.
2956     # Don't use installbsd from OSF since it installs stuff as root
2957     # by default.
2958     for ac_prog in ginstall scoinst install; do
2959       for ac_exec_ext in '' $ac_executable_extensions; do
2960         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2961           if test $ac_prog = install &&
2962             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2963             # AIX install.  It has an incompatible calling convention.
2964             :
2965           elif test $ac_prog = install &&
2966             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2967             # program-specific install script used by HP pwplus--don't use.
2968             :
2969           else
2970             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2971             break 3
2972           fi
2973         fi
2974       done
2975     done
2976     ;;
2977 esac
2978 done
2979 IFS=$as_save_IFS
2980
2981
2982 fi
2983   if test "${ac_cv_path_install+set}" = set; then
2984     INSTALL=$ac_cv_path_install
2985   else
2986     # As a last resort, use the slow shell script.  Don't cache a
2987     # value for INSTALL within a source directory, because that will
2988     # break other packages using the cache if that directory is
2989     # removed, or if the value is a relative name.
2990     INSTALL=$ac_install_sh
2991   fi
2992 fi
2993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2994 echo "${ECHO_T}$INSTALL" >&6; }
2995
2996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2997 # It thinks the first close brace ends the variable substitution.
2998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999
3000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001
3002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003
3004 # Check whether --enable-shared was given.
3005 if test "${enable_shared+set}" = set; then
3006   enableval=$enable_shared; p=${PACKAGE-default}
3007     case $enableval in
3008     yes) enable_shared=yes ;;
3009     no) enable_shared=no ;;
3010     *)
3011       enable_shared=no
3012       # Look at the argument we got.  We use all the common list separators.
3013       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3014       for pkg in $enableval; do
3015         IFS="$lt_save_ifs"
3016         if test "X$pkg" = "X$p"; then
3017           enable_shared=yes
3018         fi
3019       done
3020       IFS="$lt_save_ifs"
3021       ;;
3022     esac
3023 else
3024   enable_shared=yes
3025 fi
3026
3027
3028 # Check whether --enable-static was given.
3029 if test "${enable_static+set}" = set; then
3030   enableval=$enable_static; p=${PACKAGE-default}
3031     case $enableval in
3032     yes) enable_static=yes ;;
3033     no) enable_static=no ;;
3034     *)
3035      enable_static=no
3036       # Look at the argument we got.  We use all the common list separators.
3037       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3038       for pkg in $enableval; do
3039         IFS="$lt_save_ifs"
3040         if test "X$pkg" = "X$p"; then
3041           enable_static=yes
3042         fi
3043       done
3044       IFS="$lt_save_ifs"
3045       ;;
3046     esac
3047 else
3048   enable_static=yes
3049 fi
3050
3051
3052 # Check whether --enable-fast-install was given.
3053 if test "${enable_fast_install+set}" = set; then
3054   enableval=$enable_fast_install; p=${PACKAGE-default}
3055     case $enableval in
3056     yes) enable_fast_install=yes ;;
3057     no) enable_fast_install=no ;;
3058     *)
3059       enable_fast_install=no
3060       # Look at the argument we got.  We use all the common list separators.
3061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3062       for pkg in $enableval; do
3063         IFS="$lt_save_ifs"
3064         if test "X$pkg" = "X$p"; then
3065           enable_fast_install=yes
3066         fi
3067       done
3068       IFS="$lt_save_ifs"
3069       ;;
3070     esac
3071 else
3072   enable_fast_install=yes
3073 fi
3074
3075
3076 # Make sure we can run config.sub.
3077 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3078   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3079 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3080    { (exit 1); exit 1; }; }
3081
3082 { echo "$as_me:$LINENO: checking build system type" >&5
3083 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3084 if test "${ac_cv_build+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   ac_build_alias=$build_alias
3088 test "x$ac_build_alias" = x &&
3089   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3090 test "x$ac_build_alias" = x &&
3091   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3092 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3093    { (exit 1); exit 1; }; }
3094 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3095   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3096 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3097    { (exit 1); exit 1; }; }
3098
3099 fi
3100 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3101 echo "${ECHO_T}$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3103 *-*-*) ;;
3104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3105 echo "$as_me: error: invalid value of canonical build" >&2;}
3106    { (exit 1); exit 1; }; };;
3107 esac
3108 build=$ac_cv_build
3109 ac_save_IFS=$IFS; IFS='-'
3110 set x $ac_cv_build
3111 shift
3112 build_cpu=$1
3113 build_vendor=$2
3114 shift; shift
3115 # Remember, the first character of IFS is used to create $*,
3116 # except with old shells:
3117 build_os=$*
3118 IFS=$ac_save_IFS
3119 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3120
3121
3122 { echo "$as_me:$LINENO: checking host system type" >&5
3123 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3124 if test "${ac_cv_host+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   if test "x$host_alias" = x; then
3128   ac_cv_host=$ac_cv_build
3129 else
3130   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3131     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3133    { (exit 1); exit 1; }; }
3134 fi
3135
3136 fi
3137 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3138 echo "${ECHO_T}$ac_cv_host" >&6; }
3139 case $ac_cv_host in
3140 *-*-*) ;;
3141 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3142 echo "$as_me: error: invalid value of canonical host" >&2;}
3143    { (exit 1); exit 1; }; };;
3144 esac
3145 host=$ac_cv_host
3146 ac_save_IFS=$IFS; IFS='-'
3147 set x $ac_cv_host
3148 shift
3149 host_cpu=$1
3150 host_vendor=$2
3151 shift; shift
3152 # Remember, the first character of IFS is used to create $*,
3153 # except with old shells:
3154 host_os=$*
3155 IFS=$ac_save_IFS
3156 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3157
3158
3159 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3160 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3161 if test "${lt_cv_path_SED+set}" = set; then
3162   echo $ECHO_N "(cached) $ECHO_C" >&6
3163 else
3164   # Loop through the user's path and test for sed and gsed.
3165 # Then use that list of sed's as ones to test for truncation.
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171   for lt_ac_prog in sed gsed; do
3172     for ac_exec_ext in '' $ac_executable_extensions; do
3173       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3174         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3175       fi
3176     done
3177   done
3178 done
3179 IFS=$as_save_IFS
3180 lt_ac_max=0
3181 lt_ac_count=0
3182 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3183 # along with /bin/sed that truncates output.
3184 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3185   test ! -f $lt_ac_sed && continue
3186   cat /dev/null > conftest.in
3187   lt_ac_count=0
3188   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3189   # Check for GNU sed and select it if it is found.
3190   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3191     lt_cv_path_SED=$lt_ac_sed
3192     break
3193   fi
3194   while true; do
3195     cat conftest.in conftest.in >conftest.tmp
3196     mv conftest.tmp conftest.in
3197     cp conftest.in conftest.nl
3198     echo >>conftest.nl
3199     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3200     cmp -s conftest.out conftest.nl || break
3201     # 10000 chars as input seems more than enough
3202     test $lt_ac_count -gt 10 && break
3203     lt_ac_count=`expr $lt_ac_count + 1`
3204     if test $lt_ac_count -gt $lt_ac_max; then
3205       lt_ac_max=$lt_ac_count
3206       lt_cv_path_SED=$lt_ac_sed
3207     fi
3208   done
3209 done
3210
3211 fi
3212
3213 SED=$lt_cv_path_SED
3214
3215 { echo "$as_me:$LINENO: result: $SED" >&5
3216 echo "${ECHO_T}$SED" >&6; }
3217
3218 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3219 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3220 if test "${ac_cv_path_GREP+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   # Extract the first word of "grep ggrep" to use in msg output
3224 if test -z "$GREP"; then
3225 set dummy grep ggrep; ac_prog_name=$2
3226 if test "${ac_cv_path_GREP+set}" = set; then
3227   echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229   ac_path_GREP_found=false
3230 # Loop through the user's path and test for each of PROGNAME-LIST
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236   for ac_prog in grep ggrep; do
3237   for ac_exec_ext in '' $ac_executable_extensions; do
3238     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3239     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3240     # Check for GNU ac_path_GREP and select it if it is found.
3241   # Check for GNU $ac_path_GREP
3242 case `"$ac_path_GREP" --version 2>&1` in
3243 *GNU*)
3244   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3245 *)
3246   ac_count=0
3247   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3248   while :
3249   do
3250     cat "conftest.in" "conftest.in" >"conftest.tmp"
3251     mv "conftest.tmp" "conftest.in"
3252     cp "conftest.in" "conftest.nl"
3253     echo 'GREP' >> "conftest.nl"
3254     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3255     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3256     ac_count=`expr $ac_count + 1`
3257     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3258       # Best one so far, save it but keep looking for a better one
3259       ac_cv_path_GREP="$ac_path_GREP"
3260       ac_path_GREP_max=$ac_count
3261     fi
3262     # 10*(2^10) chars as input seems more than enough
3263     test $ac_count -gt 10 && break
3264   done
3265   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3266 esac
3267
3268
3269     $ac_path_GREP_found && break 3
3270   done
3271 done
3272
3273 done
3274 IFS=$as_save_IFS
3275
3276
3277 fi
3278
3279 GREP="$ac_cv_path_GREP"
3280 if test -z "$GREP"; then
3281   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3282 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3283    { (exit 1); exit 1; }; }
3284 fi
3285
3286 else
3287   ac_cv_path_GREP=$GREP
3288 fi
3289
3290
3291 fi
3292 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3293 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3294  GREP="$ac_cv_path_GREP"
3295
3296
3297 { echo "$as_me:$LINENO: checking for egrep" >&5
3298 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3299 if test "${ac_cv_path_EGREP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3303    then ac_cv_path_EGREP="$GREP -E"
3304    else
3305      # Extract the first word of "egrep" to use in msg output
3306 if test -z "$EGREP"; then
3307 set dummy egrep; ac_prog_name=$2
3308 if test "${ac_cv_path_EGREP+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311   ac_path_EGREP_found=false
3312 # Loop through the user's path and test for each of PROGNAME-LIST
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3315 do
3316   IFS=$as_save_IFS
3317   test -z "$as_dir" && as_dir=.
3318   for ac_prog in egrep; do
3319   for ac_exec_ext in '' $ac_executable_extensions; do
3320     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3321     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3322     # Check for GNU ac_path_EGREP and select it if it is found.
3323   # Check for GNU $ac_path_EGREP
3324 case `"$ac_path_EGREP" --version 2>&1` in
3325 *GNU*)
3326   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3327 *)
3328   ac_count=0
3329   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3330   while :
3331   do
3332     cat "conftest.in" "conftest.in" >"conftest.tmp"
3333     mv "conftest.tmp" "conftest.in"
3334     cp "conftest.in" "conftest.nl"
3335     echo 'EGREP' >> "conftest.nl"
3336     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3337     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3338     ac_count=`expr $ac_count + 1`
3339     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3340       # Best one so far, save it but keep looking for a better one
3341       ac_cv_path_EGREP="$ac_path_EGREP"
3342       ac_path_EGREP_max=$ac_count
3343     fi
3344     # 10*(2^10) chars as input seems more than enough
3345     test $ac_count -gt 10 && break
3346   done
3347   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3348 esac
3349
3350
3351     $ac_path_EGREP_found && break 3
3352   done
3353 done
3354
3355 done
3356 IFS=$as_save_IFS
3357
3358
3359 fi
3360
3361 EGREP="$ac_cv_path_EGREP"
3362 if test -z "$EGREP"; then
3363   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3364 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3365    { (exit 1); exit 1; }; }
3366 fi
3367
3368 else
3369   ac_cv_path_EGREP=$EGREP
3370 fi
3371
3372
3373    fi
3374 fi
3375 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3376 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3377  EGREP="$ac_cv_path_EGREP"
3378
3379
3380
3381 # Check whether --with-gnu-ld was given.
3382 if test "${with_gnu_ld+set}" = set; then
3383   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3384 else
3385   with_gnu_ld=no
3386 fi
3387
3388 ac_prog=ld
3389 if test "$GCC" = yes; then
3390   # Check if gcc -print-prog-name=ld gives a path.
3391   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3392 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3393   case $host in
3394   *-*-mingw*)
3395     # gcc leaves a trailing carriage return which upsets mingw
3396     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3397   *)
3398     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3399   esac
3400   case $ac_prog in
3401     # Accept absolute paths.
3402     [\\/]* | ?:[\\/]*)
3403       re_direlt='/[^/][^/]*/\.\./'
3404       # Canonicalize the pathname of ld
3405       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3406       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3407         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3408       done
3409       test -z "$LD" && LD="$ac_prog"
3410       ;;
3411   "")
3412     # If it fails, then pretend we aren't using GCC.
3413     ac_prog=ld
3414     ;;
3415   *)
3416     # If it is relative, then search for the first ld in PATH.
3417     with_gnu_ld=unknown
3418     ;;
3419   esac
3420 elif test "$with_gnu_ld" = yes; then
3421   { echo "$as_me:$LINENO: checking for GNU ld" >&5
3422 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3423 else
3424   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3425 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3426 fi
3427 if test "${lt_cv_path_LD+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   if test -z "$LD"; then
3431   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3432   for ac_dir in $PATH; do
3433     IFS="$lt_save_ifs"
3434     test -z "$ac_dir" && ac_dir=.
3435     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3436       lt_cv_path_LD="$ac_dir/$ac_prog"
3437       # Check to see if the program is GNU ld.  I'd rather use --version,
3438       # but apparently some variants of GNU ld only accept -v.
3439       # Break only if it was the GNU/non-GNU ld that we prefer.
3440       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3441       *GNU* | *'with BFD'*)
3442         test "$with_gnu_ld" != no && break
3443         ;;
3444       *)
3445         test "$with_gnu_ld" != yes && break
3446         ;;
3447       esac
3448     fi
3449   done
3450   IFS="$lt_save_ifs"
3451 else
3452   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3453 fi
3454 fi
3455
3456 LD="$lt_cv_path_LD"
3457 if test -n "$LD"; then
3458   { echo "$as_me:$LINENO: result: $LD" >&5
3459 echo "${ECHO_T}$LD" >&6; }
3460 else
3461   { echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6; }
3463 fi
3464 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3465 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3466    { (exit 1); exit 1; }; }
3467 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3468 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3469 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3473 case `$LD -v 2>&1 </dev/null` in
3474 *GNU* | *'with BFD'*)
3475   lt_cv_prog_gnu_ld=yes
3476   ;;
3477 *)
3478   lt_cv_prog_gnu_ld=no
3479   ;;
3480 esac
3481 fi
3482 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3483 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3484 with_gnu_ld=$lt_cv_prog_gnu_ld
3485
3486
3487 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3488 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3489 if test "${lt_cv_ld_reload_flag+set}" = set; then
3490   echo $ECHO_N "(cached) $ECHO_C" >&6
3491 else
3492   lt_cv_ld_reload_flag='-r'
3493 fi
3494 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3495 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3496 reload_flag=$lt_cv_ld_reload_flag
3497 case $reload_flag in
3498 "" | " "*) ;;
3499 *) reload_flag=" $reload_flag" ;;
3500 esac
3501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3502 case $host_os in
3503   darwin*)
3504     if test "$GCC" = yes; then
3505       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3506     else
3507       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3508     fi
3509     ;;
3510 esac
3511
3512 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3513 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3514 if test "${lt_cv_path_NM+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   if test -n "$NM"; then
3518   # Let the user override the test.
3519   lt_cv_path_NM="$NM"
3520 else
3521   lt_nm_to_check="${ac_tool_prefix}nm"
3522   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3523     lt_nm_to_check="$lt_nm_to_check nm"
3524   fi
3525   for lt_tmp_nm in $lt_nm_to_check; do
3526     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3528       IFS="$lt_save_ifs"
3529       test -z "$ac_dir" && ac_dir=.
3530       tmp_nm="$ac_dir/$lt_tmp_nm"
3531       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3532         # Check to see if the nm accepts a BSD-compat flag.
3533         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3534         #   nm: unknown option "B" ignored
3535         # Tru64's nm complains that /dev/null is an invalid object file
3536         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3537         */dev/null* | *'Invalid file or object type'*)
3538           lt_cv_path_NM="$tmp_nm -B"
3539           break
3540           ;;
3541         *)
3542           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3543           */dev/null*)
3544             lt_cv_path_NM="$tmp_nm -p"
3545             break
3546             ;;
3547           *)
3548             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3549             continue # so that we can try to find one that supports BSD flags
3550             ;;
3551           esac
3552           ;;
3553         esac
3554       fi
3555     done
3556     IFS="$lt_save_ifs"
3557   done
3558   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3559 fi
3560 fi
3561 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3562 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3563 NM="$lt_cv_path_NM"
3564
3565 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3566 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3567 LN_S=$as_ln_s
3568 if test "$LN_S" = "ln -s"; then
3569   { echo "$as_me:$LINENO: result: yes" >&5
3570 echo "${ECHO_T}yes" >&6; }
3571 else
3572   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3573 echo "${ECHO_T}no, using $LN_S" >&6; }
3574 fi
3575
3576 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3577 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
3578 if test "${lt_cv_deplibs_check_method+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   lt_cv_file_magic_cmd='$MAGIC_CMD'
3582 lt_cv_file_magic_test_file=
3583 lt_cv_deplibs_check_method='unknown'
3584 # Need to set the preceding variable on all platforms that support
3585 # interlibrary dependencies.
3586 # 'none' -- dependencies not supported.
3587 # `unknown' -- same as none, but documents that we really don't know.
3588 # 'pass_all' -- all dependencies passed with no checks.
3589 # 'test_compile' -- check by making test program.
3590 # 'file_magic [[regex]]' -- check by looking for files in library path
3591 # which responds to the $file_magic_cmd with a given extended regex.
3592 # If you have `file' or equivalent on your system and you're not sure
3593 # whether `pass_all' will *always* work, you probably want this one.
3594
3595 case $host_os in
3596 aix4* | aix5*)
3597   lt_cv_deplibs_check_method=pass_all
3598   ;;
3599
3600 beos*)
3601   lt_cv_deplibs_check_method=pass_all
3602   ;;
3603
3604 bsdi[45]*)
3605   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3606   lt_cv_file_magic_cmd='/usr/bin/file -L'
3607   lt_cv_file_magic_test_file=/shlib/libc.so
3608   ;;
3609
3610 cygwin*)
3611   # func_win32_libid is a shell function defined in ltmain.sh
3612   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3613   lt_cv_file_magic_cmd='func_win32_libid'
3614   ;;
3615
3616 mingw* | pw32*)
3617   # Base MSYS/MinGW do not provide the 'file' command needed by
3618   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3619   # unless we find 'file', for example because we are cross-compiling.
3620   if ( file / ) >/dev/null 2>&1; then
3621     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3622     lt_cv_file_magic_cmd='func_win32_libid'
3623   else
3624     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3625     lt_cv_file_magic_cmd='$OBJDUMP -f'
3626   fi
3627   ;;
3628
3629 darwin* | rhapsody*)
3630   lt_cv_deplibs_check_method=pass_all
3631   ;;
3632
3633 freebsd* | dragonfly*)
3634   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3635     case $host_cpu in
3636     i*86 )
3637       # Not sure whether the presence of OpenBSD here was a mistake.
3638       # Let's accept both of them until this is cleared up.
3639       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3640       lt_cv_file_magic_cmd=/usr/bin/file
3641       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3642       ;;
3643     esac
3644   else
3645     lt_cv_deplibs_check_method=pass_all
3646   fi
3647   ;;
3648
3649 gnu*)
3650   lt_cv_deplibs_check_method=pass_all
3651   ;;
3652
3653 hpux10.20* | hpux11*)
3654   lt_cv_file_magic_cmd=/usr/bin/file
3655   case $host_cpu in
3656   ia64*)
3657     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3658     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3659     ;;
3660   hppa*64*)
3661     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]'
3662     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3663     ;;
3664   *)
3665     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3666     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3667     ;;
3668   esac
3669   ;;
3670
3671 interix[3-9]*)
3672   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3673   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3674   ;;
3675
3676 irix5* | irix6* | nonstopux*)
3677   case $LD in
3678   *-32|*"-32 ") libmagic=32-bit;;
3679   *-n32|*"-n32 ") libmagic=N32;;
3680   *-64|*"-64 ") libmagic=64-bit;;
3681   *) libmagic=never-match;;
3682   esac
3683   lt_cv_deplibs_check_method=pass_all
3684   ;;
3685
3686 # This must be Linux ELF.
3687 linux* | k*bsd*-gnu)
3688   lt_cv_deplibs_check_method=pass_all
3689   ;;
3690
3691 netbsd*)
3692   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3694   else
3695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3696   fi
3697   ;;
3698
3699 newos6*)
3700   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3701   lt_cv_file_magic_cmd=/usr/bin/file
3702   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3703   ;;
3704
3705 nto-qnx*)
3706   lt_cv_deplibs_check_method=unknown
3707   ;;
3708
3709 openbsd*)
3710   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3711     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3712   else
3713     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3714   fi
3715   ;;
3716
3717 osf3* | osf4* | osf5*)
3718   lt_cv_deplibs_check_method=pass_all
3719   ;;
3720
3721 rdos*)
3722   lt_cv_deplibs_check_method=pass_all
3723   ;;
3724
3725 solaris*)
3726   lt_cv_deplibs_check_method=pass_all
3727   ;;
3728
3729 sysv4 | sysv4.3*)
3730   case $host_vendor in
3731   motorola)
3732     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]'
3733     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3734     ;;
3735   ncr)
3736     lt_cv_deplibs_check_method=pass_all
3737     ;;
3738   sequent)
3739     lt_cv_file_magic_cmd='/bin/file'
3740     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3741     ;;
3742   sni)
3743     lt_cv_file_magic_cmd='/bin/file'
3744     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3745     lt_cv_file_magic_test_file=/lib/libc.so
3746     ;;
3747   siemens)
3748     lt_cv_deplibs_check_method=pass_all
3749     ;;
3750   pc)
3751     lt_cv_deplibs_check_method=pass_all
3752     ;;
3753   esac
3754   ;;
3755
3756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3757   lt_cv_deplibs_check_method=pass_all
3758   ;;
3759 esac
3760
3761 fi
3762 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3763 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
3764 file_magic_cmd=$lt_cv_file_magic_cmd
3765 deplibs_check_method=$lt_cv_deplibs_check_method
3766 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3767
3768
3769
3770
3771 # If no C compiler was specified, use CC.
3772 LTCC=${LTCC-"$CC"}
3773
3774 # If no C compiler flags were specified, use CFLAGS.
3775 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3776
3777 # Allow CC to be a program name with arguments.
3778 compiler=$CC
3779
3780
3781 # Check whether --enable-libtool-lock was given.
3782 if test "${enable_libtool_lock+set}" = set; then
3783   enableval=$enable_libtool_lock;
3784 fi
3785
3786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3787
3788 # Some flags need to be propagated to the compiler or linker for good
3789 # libtool support.
3790 case $host in
3791 ia64-*-hpux*)
3792   # Find out which ABI we are using.
3793   echo 'int i;' > conftest.$ac_ext
3794   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3795   (eval $ac_compile) 2>&5
3796   ac_status=$?
3797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798   (exit $ac_status); }; then
3799     case `/usr/bin/file conftest.$ac_objext` in
3800     *ELF-32*)
3801       HPUX_IA64_MODE="32"
3802       ;;
3803     *ELF-64*)
3804       HPUX_IA64_MODE="64"
3805       ;;
3806     esac
3807   fi
3808   rm -rf conftest*
3809   ;;
3810 *-*-irix6*)
3811   # Find out which ABI we are using.
3812   echo '#line 3812 "configure"' > conftest.$ac_ext
3813   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814   (eval $ac_compile) 2>&5
3815   ac_status=$?
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); }; then
3818    if test "$lt_cv_prog_gnu_ld" = yes; then
3819     case `/usr/bin/file conftest.$ac_objext` in
3820     *32-bit*)
3821       LD="${LD-ld} -melf32bsmip"
3822       ;;
3823     *N32*)
3824       LD="${LD-ld} -melf32bmipn32"
3825       ;;
3826     *64-bit*)
3827       LD="${LD-ld} -melf64bmip"
3828       ;;
3829     esac
3830    else
3831     case `/usr/bin/file conftest.$ac_objext` in
3832     *32-bit*)
3833       LD="${LD-ld} -32"
3834       ;;
3835     *N32*)
3836       LD="${LD-ld} -n32"
3837       ;;
3838     *64-bit*)
3839       LD="${LD-ld} -64"
3840       ;;
3841     esac
3842    fi
3843   fi
3844   rm -rf conftest*
3845   ;;
3846
3847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
3848 s390*-*linux*|sparc*-*linux*)
3849   # Find out which ABI we are using.
3850   echo 'int i;' > conftest.$ac_ext
3851   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852   (eval $ac_compile) 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; then
3856     case `/usr/bin/file conftest.o` in
3857     *32-bit*)
3858       case $host in
3859         x86_64-*kfreebsd*-gnu)
3860           LD="${LD-ld} -m elf_i386_fbsd"
3861           ;;
3862         x86_64-*linux*)
3863           LD="${LD-ld} -m elf_i386"
3864           ;;
3865         ppc64-*linux*|powerpc64-*linux*)
3866           LD="${LD-ld} -m elf32ppclinux"
3867           ;;
3868         s390x-*linux*)
3869           LD="${LD-ld} -m elf_s390"
3870           ;;
3871         sparc64-*linux*)
3872           LD="${LD-ld} -m elf32_sparc"
3873           ;;
3874       esac
3875       ;;
3876     *64-bit*)
3877       case $host in
3878         x86_64-*kfreebsd*-gnu)
3879           LD="${LD-ld} -m elf_x86_64_fbsd"
3880           ;;
3881         x86_64-*linux*)
3882           LD="${LD-ld} -m elf_x86_64"
3883           ;;
3884         ppc*-*linux*|powerpc*-*linux*)
3885           LD="${LD-ld} -m elf64ppc"
3886           ;;
3887         s390*-*linux*)
3888           LD="${LD-ld} -m elf64_s390"
3889           ;;
3890         sparc*-*linux*)
3891           LD="${LD-ld} -m elf64_sparc"
3892           ;;
3893       esac
3894       ;;
3895     esac
3896   fi
3897   rm -rf conftest*
3898   ;;
3899
3900 *-*-sco3.2v5*)
3901   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3902   SAVE_CFLAGS="$CFLAGS"
3903   CFLAGS="$CFLAGS -belf"
3904   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3905 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
3906 if test "${lt_cv_cc_needs_belf+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915      cat >conftest.$ac_ext <<_ACEOF
3916 /* confdefs.h.  */
3917 _ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest.$ac_objext conftest$ac_exeext
3931 if { (ac_try="$ac_link"
3932 case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937   (eval "$ac_link") 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } && {
3944          test -z "$ac_c_werror_flag" ||
3945          test ! -s conftest.err
3946        } && test -s conftest$ac_exeext &&
3947        $as_test_x conftest$ac_exeext; then
3948   lt_cv_cc_needs_belf=yes
3949 else
3950   echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3952
3953         lt_cv_cc_needs_belf=no
3954 fi
3955
3956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3957       conftest$ac_exeext conftest.$ac_ext
3958      ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964 fi
3965 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3966 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
3967   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3968     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3969     CFLAGS="$SAVE_CFLAGS"
3970   fi
3971   ;;
3972 sparc*-*solaris*)
3973   # Find out which ABI we are using.
3974   echo 'int i;' > conftest.$ac_ext
3975   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976   (eval $ac_compile) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }; then
3980     case `/usr/bin/file conftest.o` in
3981     *64-bit*)
3982       case $lt_cv_prog_gnu_ld in
3983       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3984       *)    LD="${LD-ld} -64" ;;
3985       esac
3986       ;;
3987     esac
3988   fi
3989   rm -rf conftest*
3990   ;;
3991
3992
3993 esac
3994
3995 need_locks="$enable_libtool_lock"
3996
3997
3998 ac_ext=c
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4004 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4005 # On Suns, sometimes $CPP names a directory.
4006 if test -n "$CPP" && test -d "$CPP"; then
4007   CPP=
4008 fi
4009 if test -z "$CPP"; then
4010   if test "${ac_cv_prog_CPP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013       # Double quotes because CPP needs to be expanded
4014     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4015     do
4016       ac_preproc_ok=false
4017 for ac_c_preproc_warn_flag in '' yes
4018 do
4019   # Use a header file that comes with gcc, so configuring glibc
4020   # with a fresh cross-compiler works.
4021   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4022   # <limits.h> exists even on freestanding compilers.
4023   # On the NeXT, cc -E runs the code through the compiler's parser,
4024   # not just through cpp. "Syntax error" is here to catch this case.
4025   cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #ifdef __STDC__
4032 # include <limits.h>
4033 #else
4034 # include <assert.h>
4035 #endif
4036                      Syntax error
4037 _ACEOF
4038 if { (ac_try="$ac_cpp conftest.$ac_ext"
4039 case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } >/dev/null && {
4051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4052          test ! -s conftest.err
4053        }; then
4054   :
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059   # Broken: fails on valid input.
4060 continue
4061 fi
4062
4063 rm -f conftest.err conftest.$ac_ext
4064
4065   # OK, works on sane cases.  Now check whether nonexistent headers
4066   # can be detected and how.
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #include <ac_nonexistent.h>
4074 _ACEOF
4075 if { (ac_try="$ac_cpp conftest.$ac_ext"
4076 case "(($ac_try" in
4077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078   *) ac_try_echo=$ac_try;;
4079 esac
4080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082   ac_status=$?
4083   grep -v '^ *+' conftest.er1 >conftest.err
4084   rm -f conftest.er1
4085   cat conftest.err >&5
4086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087   (exit $ac_status); } >/dev/null && {
4088          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089          test ! -s conftest.err
4090        }; then
4091   # Broken: success on invalid input.
4092 continue
4093 else
4094   echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097   # Passes both tests.
4098 ac_preproc_ok=:
4099 break
4100 fi
4101
4102 rm -f conftest.err conftest.$ac_ext
4103
4104 done
4105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106 rm -f conftest.err conftest.$ac_ext
4107 if $ac_preproc_ok; then
4108   break
4109 fi
4110
4111     done
4112     ac_cv_prog_CPP=$CPP
4113
4114 fi
4115   CPP=$ac_cv_prog_CPP
4116 else
4117   ac_cv_prog_CPP=$CPP
4118 fi
4119 { echo "$as_me:$LINENO: result: $CPP" >&5
4120 echo "${ECHO_T}$CPP" >&6; }
4121 ac_preproc_ok=false
4122 for ac_c_preproc_warn_flag in '' yes
4123 do
4124   # Use a header file that comes with gcc, so configuring glibc
4125   # with a fresh cross-compiler works.
4126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127   # <limits.h> exists even on freestanding compilers.
4128   # On the NeXT, cc -E runs the code through the compiler's parser,
4129   # not just through cpp. "Syntax error" is here to catch this case.
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #ifdef __STDC__
4137 # include <limits.h>
4138 #else
4139 # include <assert.h>
4140 #endif
4141                      Syntax error
4142 _ACEOF
4143 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 case "(($ac_try" in
4145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146   *) ac_try_echo=$ac_try;;
4147 esac
4148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150   ac_status=$?
4151   grep -v '^ *+' conftest.er1 >conftest.err
4152   rm -f conftest.er1
4153   cat conftest.err >&5
4154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155   (exit $ac_status); } >/dev/null && {
4156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157          test ! -s conftest.err
4158        }; then
4159   :
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164   # Broken: fails on valid input.
4165 continue
4166 fi
4167
4168 rm -f conftest.err conftest.$ac_ext
4169
4170   # OK, works on sane cases.  Now check whether nonexistent headers
4171   # can be detected and how.
4172   cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #include <ac_nonexistent.h>
4179 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4181 case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187   ac_status=$?
4188   grep -v '^ *+' conftest.er1 >conftest.err
4189   rm -f conftest.er1
4190   cat conftest.err >&5
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); } >/dev/null && {
4193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194          test ! -s conftest.err
4195        }; then
4196   # Broken: success on invalid input.
4197 continue
4198 else
4199   echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202   # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4205 fi
4206
4207 rm -f conftest.err conftest.$ac_ext
4208
4209 done
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4213   :
4214 else
4215   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details." >&5
4217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details." >&2;}
4219    { (exit 1); exit 1; }; }
4220 fi
4221
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4227
4228
4229 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4230 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4231 if test "${ac_cv_header_stdc+set}" = set; then
4232   echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234   cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <stdlib.h>
4241 #include <stdarg.h>
4242 #include <string.h>
4243 #include <float.h>
4244
4245 int
4246 main ()
4247 {
4248
4249   ;
4250   return 0;
4251 }
4252 _ACEOF
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4255 case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260   (eval "$ac_compile") 2>conftest.er1
4261   ac_status=$?
4262   grep -v '^ *+' conftest.er1 >conftest.err
4263   rm -f conftest.er1
4264   cat conftest.err >&5
4265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } && {
4267          test -z "$ac_c_werror_flag" ||
4268          test ! -s conftest.err
4269        } && test -s conftest.$ac_objext; then
4270   ac_cv_header_stdc=yes
4271 else
4272   echo "$as_me: failed program was:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4274
4275         ac_cv_header_stdc=no
4276 fi
4277
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279
4280 if test $ac_cv_header_stdc = yes; then
4281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 #include <string.h>
4289
4290 _ACEOF
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292   $EGREP "memchr" >/dev/null 2>&1; then
4293   :
4294 else
4295   ac_cv_header_stdc=no
4296 fi
4297 rm -f conftest*
4298
4299 fi
4300
4301 if test $ac_cv_header_stdc = yes; then
4302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 #include <stdlib.h>
4310
4311 _ACEOF
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313   $EGREP "free" >/dev/null 2>&1; then
4314   :
4315 else
4316   ac_cv_header_stdc=no
4317 fi
4318 rm -f conftest*
4319
4320 fi
4321
4322 if test $ac_cv_header_stdc = yes; then
4323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4324   if test "$cross_compiling" = yes; then
4325   :
4326 else
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 #include <ctype.h>
4334 #include <stdlib.h>
4335 #if ((' ' & 0x0FF) == 0x020)
4336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338 #else
4339 # define ISLOWER(c) \
4340                    (('a' <= (c) && (c) <= 'i') \
4341                      || ('j' <= (c) && (c) <= 'r') \
4342                      || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4344 #endif
4345
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4347 int
4348 main ()
4349 {
4350   int i;
4351   for (i = 0; i < 256; i++)
4352     if (XOR (islower (i), ISLOWER (i))
4353         || toupper (i) != TOUPPER (i))
4354       return 2;
4355   return 0;
4356 }
4357 _ACEOF
4358 rm -f conftest$ac_exeext
4359 if { (ac_try="$ac_link"
4360 case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365   (eval "$ac_link") 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4369   { (case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; }; then
4378   :
4379 else
4380   echo "$as_me: program exited with status $ac_status" >&5
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ( exit $ac_status )
4385 ac_cv_header_stdc=no
4386 fi
4387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4388 fi
4389
4390
4391 fi
4392 fi
4393 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4394 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4395 if test $ac_cv_header_stdc = yes; then
4396
4397 cat >>confdefs.h <<\_ACEOF
4398 #define STDC_HEADERS 1
4399 _ACEOF
4400
4401 fi
4402
4403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4414                   inttypes.h stdint.h unistd.h
4415 do
4416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 $ac_includes_default
4429
4430 #include <$ac_header>
4431 _ACEOF
4432 rm -f conftest.$ac_objext
4433 if { (ac_try="$ac_compile"
4434 case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439   (eval "$ac_compile") 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } && {
4446          test -z "$ac_c_werror_flag" ||
4447          test ! -s conftest.err
4448        } && test -s conftest.$ac_objext; then
4449   eval "$as_ac_Header=yes"
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454         eval "$as_ac_Header=no"
4455 fi
4456
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 fi
4459 ac_res=`eval echo '${'$as_ac_Header'}'`
4460                { echo "$as_me:$LINENO: result: $ac_res" >&5
4461 echo "${ECHO_T}$ac_res" >&6; }
4462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4463   cat >>confdefs.h <<_ACEOF
4464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4465 _ACEOF
4466
4467 fi
4468
4469 done
4470
4471
4472
4473 for ac_header in dlfcn.h
4474 do
4475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4477   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 fi
4482 ac_res=`eval echo '${'$as_ac_Header'}'`
4483                { echo "$as_me:$LINENO: result: $ac_res" >&5
4484 echo "${ECHO_T}$ac_res" >&6; }
4485 else
4486   # Is the header compilable?
4487 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 $ac_includes_default
4496 #include <$ac_header>
4497 _ACEOF
4498 rm -f conftest.$ac_objext
4499 if { (ac_try="$ac_compile"
4500 case "(($ac_try" in
4501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502   *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505   (eval "$ac_compile") 2>conftest.er1
4506   ac_status=$?
4507   grep -v '^ *+' conftest.er1 >conftest.err
4508   rm -f conftest.er1
4509   cat conftest.err >&5
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } && {
4512          test -z "$ac_c_werror_flag" ||
4513          test ! -s conftest.err
4514        } && test -s conftest.$ac_objext; then
4515   ac_header_compiler=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520         ac_header_compiler=no
4521 fi
4522
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4525 echo "${ECHO_T}$ac_header_compiler" >&6; }
4526
4527 # Is the header present?
4528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 #include <$ac_header>
4537 _ACEOF
4538 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } >/dev/null && {
4551          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552          test ! -s conftest.err
4553        }; then
4554   ac_header_preproc=yes
4555 else
4556   echo "$as_me: failed program was:" >&5
4557 sed 's/^/| /' conftest.$ac_ext >&5
4558
4559   ac_header_preproc=no
4560 fi
4561
4562 rm -f conftest.err conftest.$ac_ext
4563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4564 echo "${ECHO_T}$ac_header_preproc" >&6; }
4565
4566 # So?  What about this header?
4567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4568   yes:no: )
4569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4573     ac_header_preproc=yes
4574     ;;
4575   no:yes:* )
4576     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4578     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4579 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4580     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4582     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4583 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4586     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4588     ( cat <<\_ASBOX
4589 ## ----------------------------------------------- ##
4590 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
4591 ## ----------------------------------------------- ##
4592 _ASBOX
4593      ) | sed "s/^/$as_me: WARNING:     /" >&2
4594     ;;
4595 esac
4596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   eval "$as_ac_Header=\$ac_header_preproc"
4602 fi
4603 ac_res=`eval echo '${'$as_ac_Header'}'`
4604                { echo "$as_me:$LINENO: result: $ac_res" >&5
4605 echo "${ECHO_T}$ac_res" >&6; }
4606
4607 fi
4608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4609   cat >>confdefs.h <<_ACEOF
4610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4611 _ACEOF
4612
4613 fi
4614
4615 done
4616
4617 ac_ext=cpp
4618 ac_cpp='$CXXCPP $CPPFLAGS'
4619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622 if test -z "$CXX"; then
4623   if test -n "$CCC"; then
4624     CXX=$CCC
4625   else
4626     if test -n "$ac_tool_prefix"; then
4627   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4628   do
4629     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_prog_CXX+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   if test -n "$CXX"; then
4637   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 CXX=$ac_cv_prog_CXX
4657 if test -n "$CXX"; then
4658   { echo "$as_me:$LINENO: result: $CXX" >&5
4659 echo "${ECHO_T}$CXX" >&6; }
4660 else
4661   { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4663 fi
4664
4665
4666     test -n "$CXX" && break
4667   done
4668 fi
4669 if test -z "$CXX"; then
4670   ac_ct_CXX=$CXX
4671   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4672 do
4673   # Extract the first word of "$ac_prog", so it can be a program name with args.
4674 set dummy $ac_prog; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$ac_ct_CXX"; then
4681   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_prog_ac_ct_CXX="$ac_prog"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4701 if test -n "$ac_ct_CXX"; then
4702   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4703 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4704 else
4705   { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4707 fi
4708
4709
4710   test -n "$ac_ct_CXX" && break
4711 done
4712
4713   if test "x$ac_ct_CXX" = x; then
4714     CXX="g++"
4715   else
4716     case $cross_compiling:$ac_tool_warned in
4717 yes:)
4718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4719 whose name does not start with the host triplet.  If you think this
4720 configuration is useful to you, please write to autoconf@gnu.org." >&5
4721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4722 whose name does not start with the host triplet.  If you think this
4723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4724 ac_tool_warned=yes ;;
4725 esac
4726     CXX=$ac_ct_CXX
4727   fi
4728 fi
4729
4730   fi
4731 fi
4732 # Provide some information about the compiler.
4733 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4734 ac_compiler=`set X $ac_compile; echo $2`
4735 { (ac_try="$ac_compiler --version >&5"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_compiler --version >&5") 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }
4745 { (ac_try="$ac_compiler -v >&5"
4746 case "(($ac_try" in
4747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748   *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751   (eval "$ac_compiler -v >&5") 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }
4755 { (ac_try="$ac_compiler -V >&5"
4756 case "(($ac_try" in
4757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758   *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761   (eval "$ac_compiler -V >&5") 2>&5
4762   ac_status=$?
4763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764   (exit $ac_status); }
4765
4766 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4767 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4768 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4769   echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771   cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h.  */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h.  */
4777
4778 int
4779 main ()
4780 {
4781 #ifndef __GNUC__
4782        choke me
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796   (eval "$ac_compile") 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } && {
4803          test -z "$ac_cxx_werror_flag" ||
4804          test ! -s conftest.err
4805        } && test -s conftest.$ac_objext; then
4806   ac_compiler_gnu=yes
4807 else
4808   echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811         ac_compiler_gnu=no
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4816
4817 fi
4818 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4819 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4820 GXX=`test $ac_compiler_gnu = yes && echo yes`
4821 ac_test_CXXFLAGS=${CXXFLAGS+set}
4822 ac_save_CXXFLAGS=$CXXFLAGS
4823 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4824 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4825 if test "${ac_cv_prog_cxx_g+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4829    ac_cxx_werror_flag=yes
4830    ac_cv_prog_cxx_g=no
4831    CXXFLAGS="-g"
4832    cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838
4839 int
4840 main ()
4841 {
4842
4843   ;
4844   return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851   *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854   (eval "$ac_compile") 2>conftest.er1
4855   ac_status=$?
4856   grep -v '^ *+' conftest.er1 >conftest.err
4857   rm -f conftest.er1
4858   cat conftest.err >&5
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } && {
4861          test -z "$ac_cxx_werror_flag" ||
4862          test ! -s conftest.err
4863        } && test -s conftest.$ac_objext; then
4864   ac_cv_prog_cxx_g=yes
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869         CXXFLAGS=""
4870       cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876
4877 int
4878 main ()
4879 {
4880
4881   ;
4882   return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889   *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892   (eval "$ac_compile") 2>conftest.er1
4893   ac_status=$?
4894   grep -v '^ *+' conftest.er1 >conftest.err
4895   rm -f conftest.er1
4896   cat conftest.err >&5
4897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898   (exit $ac_status); } && {
4899          test -z "$ac_cxx_werror_flag" ||
4900          test ! -s conftest.err
4901        } && test -s conftest.$ac_objext; then
4902   :
4903 else
4904   echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4908          CXXFLAGS="-g"
4909          cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h.  */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h.  */
4915
4916 int
4917 main ()
4918 {
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928   *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931   (eval "$ac_compile") 2>conftest.er1
4932   ac_status=$?
4933   grep -v '^ *+' conftest.er1 >conftest.err
4934   rm -f conftest.er1
4935   cat conftest.err >&5
4936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937   (exit $ac_status); } && {
4938          test -z "$ac_cxx_werror_flag" ||
4939          test ! -s conftest.err
4940        } && test -s conftest.$ac_objext; then
4941   ac_cv_prog_cxx_g=yes
4942 else
4943   echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4957 fi
4958 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4959 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4960 if test "$ac_test_CXXFLAGS" = set; then
4961   CXXFLAGS=$ac_save_CXXFLAGS
4962 elif test $ac_cv_prog_cxx_g = yes; then
4963   if test "$GXX" = yes; then
4964     CXXFLAGS="-g -O2"
4965   else
4966     CXXFLAGS="-g"
4967   fi
4968 else
4969   if test "$GXX" = yes; then
4970     CXXFLAGS="-O2"
4971   else
4972     CXXFLAGS=
4973   fi
4974 fi
4975 ac_ext=cpp
4976 ac_cpp='$CXXCPP $CPPFLAGS'
4977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4980
4981
4982
4983 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4984     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4985     (test "X$CXX" != "Xg++"))) ; then
4986   ac_ext=cpp
4987 ac_cpp='$CXXCPP $CPPFLAGS'
4988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4991 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4992 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4993 if test -z "$CXXCPP"; then
4994   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4995   echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997       # Double quotes because CXXCPP needs to be expanded
4998     for CXXCPP in "$CXX -E" "/lib/cpp"
4999     do
5000       ac_preproc_ok=false
5001 for ac_cxx_preproc_warn_flag in '' yes
5002 do
5003   # Use a header file that comes with gcc, so configuring glibc
5004   # with a fresh cross-compiler works.
5005   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006   # <limits.h> exists even on freestanding compilers.
5007   # On the NeXT, cc -E runs the code through the compiler's parser,
5008   # not just through cpp. "Syntax error" is here to catch this case.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h.  */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h.  */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020                      Syntax error
5021 _ACEOF
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5023 case "(($ac_try" in
5024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025   *) ac_try_echo=$ac_try;;
5026 esac
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } >/dev/null && {
5035          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036          test ! -s conftest.err
5037        }; then
5038   :
5039 else
5040   echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043   # Broken: fails on valid input.
5044 continue
5045 fi
5046
5047 rm -f conftest.err conftest.$ac_ext
5048
5049   # OK, works on sane cases.  Now check whether nonexistent headers
5050   # can be detected and how.
5051   cat >conftest.$ac_ext <<_ACEOF
5052 /* confdefs.h.  */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h.  */
5057 #include <ac_nonexistent.h>
5058 _ACEOF
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5060 case "(($ac_try" in
5061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062   *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066   ac_status=$?
5067   grep -v '^ *+' conftest.er1 >conftest.err
5068   rm -f conftest.er1
5069   cat conftest.err >&5
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); } >/dev/null && {
5072          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073          test ! -s conftest.err
5074        }; then
5075   # Broken: success on invalid input.
5076 continue
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5080
5081   # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5084 fi
5085
5086 rm -f conftest.err conftest.$ac_ext
5087
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5092   break
5093 fi
5094
5095     done
5096     ac_cv_prog_CXXCPP=$CXXCPP
5097
5098 fi
5099   CXXCPP=$ac_cv_prog_CXXCPP
5100 else
5101   ac_cv_prog_CXXCPP=$CXXCPP
5102 fi
5103 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5104 echo "${ECHO_T}$CXXCPP" >&6; }
5105 ac_preproc_ok=false
5106 for ac_cxx_preproc_warn_flag in '' yes
5107 do
5108   # Use a header file that comes with gcc, so configuring glibc
5109   # with a fresh cross-compiler works.
5110   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5111   # <limits.h> exists even on freestanding compilers.
5112   # On the NeXT, cc -E runs the code through the compiler's parser,
5113   # not just through cpp. "Syntax error" is here to catch this case.
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 #ifdef __STDC__
5121 # include <limits.h>
5122 #else
5123 # include <assert.h>
5124 #endif
5125                      Syntax error
5126 _ACEOF
5127 if { (ac_try="$ac_cpp conftest.$ac_ext"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } >/dev/null && {
5140          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5141          test ! -s conftest.err
5142        }; then
5143   :
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148   # Broken: fails on valid input.
5149 continue
5150 fi
5151
5152 rm -f conftest.err conftest.$ac_ext
5153
5154   # OK, works on sane cases.  Now check whether nonexistent headers
5155   # can be detected and how.
5156   cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 #include <ac_nonexistent.h>
5163 _ACEOF
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5165 case "(($ac_try" in
5166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167   *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } >/dev/null && {
5177          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5178          test ! -s conftest.err
5179        }; then
5180   # Broken: success on invalid input.
5181 continue
5182 else
5183   echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186   # Passes both tests.
5187 ac_preproc_ok=:
5188 break
5189 fi
5190
5191 rm -f conftest.err conftest.$ac_ext
5192
5193 done
5194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5195 rm -f conftest.err conftest.$ac_ext
5196 if $ac_preproc_ok; then
5197   :
5198 else
5199   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5200 See \`config.log' for more details." >&5
5201 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5202 See \`config.log' for more details." >&2;}
5203    { (exit 1); exit 1; }; }
5204 fi
5205
5206 ac_ext=cpp
5207 ac_cpp='$CXXCPP $CPPFLAGS'
5208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211
5212 fi
5213
5214
5215 ac_ext=f
5216 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5217 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5219 if test -n "$ac_tool_prefix"; then
5220   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
5221   do
5222     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5223 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_prog_F77+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   if test -n "$F77"; then
5230   ac_cv_prog_F77="$F77" # Let the user override the test.
5231 else
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237   for ac_exec_ext in '' $ac_executable_extensions; do
5238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5239     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247 fi
5248 fi
5249 F77=$ac_cv_prog_F77
5250 if test -n "$F77"; then
5251   { echo "$as_me:$LINENO: result: $F77" >&5
5252 echo "${ECHO_T}$F77" >&6; }
5253 else
5254   { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5256 fi
5257
5258
5259     test -n "$F77" && break
5260   done
5261 fi
5262 if test -z "$F77"; then
5263   ac_ct_F77=$F77
5264   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
5265 do
5266   # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test -n "$ac_ct_F77"; then
5274   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   for ac_exec_ext in '' $ac_executable_extensions; do
5282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283     ac_cv_prog_ac_ct_F77="$ac_prog"
5284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 fi
5292 fi
5293 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5294 if test -n "$ac_ct_F77"; then
5295   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5296 echo "${ECHO_T}$ac_ct_F77" >&6; }
5297 else
5298   { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5300 fi
5301
5302
5303   test -n "$ac_ct_F77" && break
5304 done
5305
5306   if test "x$ac_ct_F77" = x; then
5307     F77=""
5308   else
5309     case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5312 whose name does not start with the host triplet.  If you think this
5313 configuration is useful to you, please write to autoconf@gnu.org." >&5
5314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5315 whose name does not start with the host triplet.  If you think this
5316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5317 ac_tool_warned=yes ;;
5318 esac
5319     F77=$ac_ct_F77
5320   fi
5321 fi
5322
5323
5324 # Provide some information about the compiler.
5325 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5326 ac_compiler=`set X $ac_compile; echo $2`
5327 { (ac_try="$ac_compiler --version >&5"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_compiler --version >&5") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }
5337 { (ac_try="$ac_compiler -v >&5"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_compiler -v >&5") 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }
5347 { (ac_try="$ac_compiler -V >&5"
5348 case "(($ac_try" in
5349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350   *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353   (eval "$ac_compiler -V >&5") 2>&5
5354   ac_status=$?
5355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356   (exit $ac_status); }
5357 rm -f a.out
5358
5359 # If we don't use `.F' as extension, the preprocessor is not run on the
5360 # input file.  (Note that this only needs to work for GNU compilers.)
5361 ac_save_ext=$ac_ext
5362 ac_ext=F
5363 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5364 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5365 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5366   echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368   cat >conftest.$ac_ext <<_ACEOF
5369       program main
5370 #ifndef __GNUC__
5371        choke me
5372 #endif
5373
5374       end
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (ac_try="$ac_compile"
5378 case "(($ac_try" in
5379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380   *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383   (eval "$ac_compile") 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } && {
5390          test -z "$ac_f77_werror_flag" ||
5391          test ! -s conftest.err
5392        } && test -s conftest.$ac_objext; then
5393   ac_compiler_gnu=yes
5394 else
5395   echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5397
5398         ac_compiler_gnu=no
5399 fi
5400
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5403
5404 fi
5405 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5406 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5407 ac_ext=$ac_save_ext
5408 ac_test_FFLAGS=${FFLAGS+set}
5409 ac_save_FFLAGS=$FFLAGS
5410 FFLAGS=
5411 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5412 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5413 if test "${ac_cv_prog_f77_g+set}" = set; then
5414   echo $ECHO_N "(cached) $ECHO_C" >&6
5415 else
5416   FFLAGS=-g
5417 cat >conftest.$ac_ext <<_ACEOF
5418       program main
5419
5420       end
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_compile") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && {
5436          test -z "$ac_f77_werror_flag" ||
5437          test ! -s conftest.err
5438        } && test -s conftest.$ac_objext; then
5439   ac_cv_prog_f77_g=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444         ac_cv_prog_f77_g=no
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448
5449 fi
5450 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5451 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5452 if test "$ac_test_FFLAGS" = set; then
5453   FFLAGS=$ac_save_FFLAGS
5454 elif test $ac_cv_prog_f77_g = yes; then
5455   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5456     FFLAGS="-g -O2"
5457   else
5458     FFLAGS="-g"
5459   fi
5460 else
5461   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5462     FFLAGS="-O2"
5463   else
5464     FFLAGS=
5465   fi
5466 fi
5467
5468 G77=`test $ac_compiler_gnu = yes && echo yes`
5469 ac_ext=c
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474
5475
5476
5477 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5478
5479 # find the maximum length of command line arguments
5480 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5481 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5483   echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485     i=0
5486   teststring="ABCD"
5487
5488   case $build_os in
5489   msdosdjgpp*)
5490     # On DJGPP, this test can blow up pretty badly due to problems in libc
5491     # (any single argument exceeding 2000 bytes causes a buffer overrun
5492     # during glob expansion).  Even if it were fixed, the result of this
5493     # check would be larger than it should be.
5494     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5495     ;;
5496
5497   gnu*)
5498     # Under GNU Hurd, this test is not required because there is
5499     # no limit to the length of command line arguments.
5500     # Libtool will interpret -1 as no limit whatsoever
5501     lt_cv_sys_max_cmd_len=-1;
5502     ;;
5503
5504   cygwin* | mingw*)
5505     # On Win9x/ME, this test blows up -- it succeeds, but takes
5506     # about 5 minutes as the teststring grows exponentially.
5507     # Worse, since 9x/ME are not pre-emptively multitasking,
5508     # you end up with a "frozen" computer, even though with patience
5509     # the test eventually succeeds (with a max line length of 256k).
5510     # Instead, let's just punt: use the minimum linelength reported by
5511     # all of the supported platforms: 8192 (on NT/2K/XP).
5512     lt_cv_sys_max_cmd_len=8192;
5513     ;;
5514
5515   amigaos*)
5516     # On AmigaOS with pdksh, this test takes hours, literally.
5517     # So we just punt and use a minimum line length of 8192.
5518     lt_cv_sys_max_cmd_len=8192;
5519     ;;
5520
5521   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5522     # This has been around since 386BSD, at least.  Likely further.
5523     if test -x /sbin/sysctl; then
5524       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5525     elif test -x /usr/sbin/sysctl; then
5526       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5527     else
5528       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5529     fi
5530     # And add a safety zone
5531     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5533     ;;
5534
5535   interix*)
5536     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5537     lt_cv_sys_max_cmd_len=196608
5538     ;;
5539
5540   osf*)
5541     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5542     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5543     # nice to cause kernel panics so lets avoid the loop below.
5544     # First set a reasonable default.
5545     lt_cv_sys_max_cmd_len=16384
5546     #
5547     if test -x /sbin/sysconfig; then
5548       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5549         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5550       esac
5551     fi
5552     ;;
5553   sco3.2v5*)
5554     lt_cv_sys_max_cmd_len=102400
5555     ;;
5556   sysv5* | sco5v6* | sysv4.2uw2*)
5557     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5558     if test -n "$kargmax"; then
5559       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5560     else
5561       lt_cv_sys_max_cmd_len=32768
5562     fi
5563     ;;
5564   *)
5565     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5566     if test -n "$lt_cv_sys_max_cmd_len"; then
5567       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5568       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5569     else
5570       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5571       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5572                = "XX$teststring") >/dev/null 2>&1 &&
5573               new_result=`expr "X$teststring" : ".*" 2>&1` &&
5574               lt_cv_sys_max_cmd_len=$new_result &&
5575               test $i != 17 # 1/2 MB should be enough
5576       do
5577         i=`expr $i + 1`
5578         teststring=$teststring$teststring
5579       done
5580       teststring=
5581       # Add a significant safety factor because C++ compilers can tack on massive
5582       # amounts of additional arguments before passing them to the linker.
5583       # It appears as though 1/2 is a usable value.
5584       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5585     fi
5586     ;;
5587   esac
5588
5589 fi
5590
5591 if test -n $lt_cv_sys_max_cmd_len ; then
5592   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5594 else
5595   { echo "$as_me:$LINENO: result: none" >&5
5596 echo "${ECHO_T}none" >&6; }
5597 fi
5598
5599
5600
5601
5602
5603 # Check for command to grab the raw symbol name followed by C symbol from nm.
5604 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5605 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5606 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609
5610 # These are sane defaults that work on at least a few old systems.
5611 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5612
5613 # Character class describing NM global symbol codes.
5614 symcode='[BCDEGRST]'
5615
5616 # Regexp to match symbols that can be accessed directly from C.
5617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5618
5619 # Transform an extracted symbol line into a proper C declaration
5620 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5621
5622 # Transform an extracted symbol line into symbol name and symbol address
5623 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'"
5624
5625 # Define system-specific variables.
5626 case $host_os in
5627 aix*)
5628   symcode='[BCDT]'
5629   ;;
5630 cygwin* | mingw* | pw32*)
5631   symcode='[ABCDGISTW]'
5632   ;;
5633 hpux*) # Its linker distinguishes data from code symbols
5634   if test "$host_cpu" = ia64; then
5635     symcode='[ABCDEGRST]'
5636   fi
5637   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5638   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'"
5639   ;;
5640 linux* | k*bsd*-gnu)
5641   if test "$host_cpu" = ia64; then
5642     symcode='[ABCDGIRSTW]'
5643     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5644     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'"
5645   fi
5646   ;;
5647 irix* | nonstopux*)
5648   symcode='[BCDEGRST]'
5649   ;;
5650 osf*)
5651   symcode='[BCDEGQRST]'
5652   ;;
5653 solaris*)
5654   symcode='[BDRT]'
5655   ;;
5656 sco3.2v5*)
5657   symcode='[DT]'
5658   ;;
5659 sysv4.2uw2*)
5660   symcode='[DT]'
5661   ;;
5662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5663   symcode='[ABDT]'
5664   ;;
5665 sysv4)
5666   symcode='[DFNSTU]'
5667   ;;
5668 esac
5669
5670 # Handle CRLF in mingw tool chain
5671 opt_cr=
5672 case $build_os in
5673 mingw*)
5674   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5675   ;;
5676 esac
5677
5678 # If we're using GNU nm, then use its standard symbol codes.
5679 case `$NM -V 2>&1` in
5680 *GNU* | *'with BFD'*)
5681   symcode='[ABCDGIRSTW]' ;;
5682 esac
5683
5684 # Try without a prefix undercore, then with it.
5685 for ac_symprfx in "" "_"; do
5686
5687   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5688   symxfrm="\\1 $ac_symprfx\\2 \\2"
5689
5690   # Write the raw and C identifiers.
5691   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5692
5693   # Check to see that the pipe works correctly.
5694   pipe_works=no
5695
5696   rm -f conftest*
5697   cat > conftest.$ac_ext <<EOF
5698 #ifdef __cplusplus
5699 extern "C" {
5700 #endif
5701 char nm_test_var;
5702 void nm_test_func(){}
5703 #ifdef __cplusplus
5704 }
5705 #endif
5706 int main(){nm_test_var='a';nm_test_func();return(0);}
5707 EOF
5708
5709   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710   (eval $ac_compile) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; then
5714     # Now try to grab the symbols.
5715     nlist=conftest.nm
5716     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5717   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); } && test -s "$nlist"; then
5721       # Try sorting and uniquifying the output.
5722       if sort "$nlist" | uniq > "$nlist"T; then
5723         mv -f "$nlist"T "$nlist"
5724       else
5725         rm -f "$nlist"T
5726       fi
5727
5728       # Make sure that we snagged all the symbols we need.
5729       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5730         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5731           cat <<EOF > conftest.$ac_ext
5732 #ifdef __cplusplus
5733 extern "C" {
5734 #endif
5735
5736 EOF
5737           # Now generate the symbol file.
5738           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5739
5740           cat <<EOF >> conftest.$ac_ext
5741 #if defined (__STDC__) && __STDC__
5742 # define lt_ptr_t void *
5743 #else
5744 # define lt_ptr_t char *
5745 # define const
5746 #endif
5747
5748 /* The mapping between symbol names and symbols. */
5749 const struct {
5750   const char *name;
5751   lt_ptr_t address;
5752 }
5753 lt_preloaded_symbols[] =
5754 {
5755 EOF
5756           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5757           cat <<\EOF >> conftest.$ac_ext
5758   {0, (lt_ptr_t) 0}
5759 };
5760
5761 #ifdef __cplusplus
5762 }
5763 #endif
5764 EOF
5765           # Now try linking the two files.
5766           mv conftest.$ac_objext conftstm.$ac_objext
5767           lt_save_LIBS="$LIBS"
5768           lt_save_CFLAGS="$CFLAGS"
5769           LIBS="conftstm.$ac_objext"
5770           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5771           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5772   (eval $ac_link) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5776             pipe_works=yes
5777           fi
5778           LIBS="$lt_save_LIBS"
5779           CFLAGS="$lt_save_CFLAGS"
5780         else
5781           echo "cannot find nm_test_func in $nlist" >&5
5782         fi
5783       else
5784         echo "cannot find nm_test_var in $nlist" >&5
5785       fi
5786     else
5787       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5788     fi
5789   else
5790     echo "$progname: failed program was:" >&5
5791     cat conftest.$ac_ext >&5
5792   fi
5793   rm -f conftest* conftst*
5794
5795   # Do not use the global_symbol_pipe unless it works.
5796   if test "$pipe_works" = yes; then
5797     break
5798   else
5799     lt_cv_sys_global_symbol_pipe=
5800   fi
5801 done
5802
5803 fi
5804
5805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5806   lt_cv_sys_global_symbol_to_cdecl=
5807 fi
5808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5809   { echo "$as_me:$LINENO: result: failed" >&5
5810 echo "${ECHO_T}failed" >&6; }
5811 else
5812   { echo "$as_me:$LINENO: result: ok" >&5
5813 echo "${ECHO_T}ok" >&6; }
5814 fi
5815
5816 { echo "$as_me:$LINENO: checking for objdir" >&5
5817 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5818 if test "${lt_cv_objdir+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821   rm -f .libs 2>/dev/null
5822 mkdir .libs 2>/dev/null
5823 if test -d .libs; then
5824   lt_cv_objdir=.libs
5825 else
5826   # MS-DOS does not allow filenames that begin with a dot.
5827   lt_cv_objdir=_libs
5828 fi
5829 rmdir .libs 2>/dev/null
5830 fi
5831 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5832 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5833 objdir=$lt_cv_objdir
5834
5835
5836
5837
5838
5839 case $host_os in
5840 aix3*)
5841   # AIX sometimes has problems with the GCC collect2 program.  For some
5842   # reason, if we set the COLLECT_NAMES environment variable, the problems
5843   # vanish in a puff of smoke.
5844   if test "X${COLLECT_NAMES+set}" != Xset; then
5845     COLLECT_NAMES=
5846     export COLLECT_NAMES
5847   fi
5848   ;;
5849 esac
5850
5851 # Sed substitution that helps us do robust quoting.  It backslashifies
5852 # metacharacters that are still active within double-quoted strings.
5853 Xsed='sed -e 1s/^X//'
5854 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5855
5856 # Same as above, but do not quote variable references.
5857 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5858
5859 # Sed substitution to delay expansion of an escaped shell variable in a
5860 # double_quote_subst'ed string.
5861 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5862
5863 # Sed substitution to avoid accidental globbing in evaled expressions
5864 no_glob_subst='s/\*/\\\*/g'
5865
5866 # Constants:
5867 rm="rm -f"
5868
5869 # Global variables:
5870 default_ofile=libtool
5871 can_build_shared=yes
5872
5873 # All known linkers require a `.a' archive for static linking (except MSVC,
5874 # which needs '.lib').
5875 libext=a
5876 ltmain="$ac_aux_dir/ltmain.sh"
5877 ofile="$default_ofile"
5878 with_gnu_ld="$lt_cv_prog_gnu_ld"
5879
5880 if test -n "$ac_tool_prefix"; then
5881   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5882 set dummy ${ac_tool_prefix}ar; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_AR+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   if test -n "$AR"; then
5889   ac_cv_prog_AR="$AR" # Let the user override the test.
5890 else
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_prog_AR="${ac_tool_prefix}ar"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906 fi
5907 fi
5908 AR=$ac_cv_prog_AR
5909 if test -n "$AR"; then
5910   { echo "$as_me:$LINENO: result: $AR" >&5
5911 echo "${ECHO_T}$AR" >&6; }
5912 else
5913   { echo "$as_me:$LINENO: result: no" >&5
5914 echo "${ECHO_T}no" >&6; }
5915 fi
5916
5917
5918 fi
5919 if test -z "$ac_cv_prog_AR"; then
5920   ac_ct_AR=$AR
5921   # Extract the first word of "ar", so it can be a program name with args.
5922 set dummy ar; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$ac_ct_AR"; then
5929   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938     ac_cv_prog_ac_ct_AR="ar"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5949 if test -n "$ac_ct_AR"; then
5950   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5951 echo "${ECHO_T}$ac_ct_AR" >&6; }
5952 else
5953   { echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6; }
5955 fi
5956
5957   if test "x$ac_ct_AR" = x; then
5958     AR="false"
5959   else
5960     case $cross_compiling:$ac_tool_warned in
5961 yes:)
5962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5963 whose name does not start with the host triplet.  If you think this
5964 configuration is useful to you, please write to autoconf@gnu.org." >&5
5965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5966 whose name does not start with the host triplet.  If you think this
5967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970     AR=$ac_ct_AR
5971   fi
5972 else
5973   AR="$ac_cv_prog_AR"
5974 fi
5975
5976 if test -n "$ac_tool_prefix"; then
5977   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_prog_RANLIB+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   if test -n "$RANLIB"; then
5985   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990   IFS=$as_save_IFS
5991   test -z "$as_dir" && as_dir=.
5992   for ac_exec_ext in '' $ac_executable_extensions; do
5993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996     break 2
5997   fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 RANLIB=$ac_cv_prog_RANLIB
6005 if test -n "$RANLIB"; then
6006   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6007 echo "${ECHO_T}$RANLIB" >&6; }
6008 else
6009   { echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_RANLIB"; then
6016   ac_ct_RANLIB=$RANLIB
6017   # Extract the first word of "ranlib", so it can be a program name with args.
6018 set dummy ranlib; ac_word=$2
6019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   if test -n "$ac_ct_RANLIB"; then
6025   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032   for ac_exec_ext in '' $ac_executable_extensions; do
6033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034     ac_cv_prog_ac_ct_RANLIB="ranlib"
6035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037   fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6045 if test -n "$ac_ct_RANLIB"; then
6046   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6047 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6048 else
6049   { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6051 fi
6052
6053   if test "x$ac_ct_RANLIB" = x; then
6054     RANLIB=":"
6055   else
6056     case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6059 whose name does not start with the host triplet.  If you think this
6060 configuration is useful to you, please write to autoconf@gnu.org." >&5
6061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6062 whose name does not start with the host triplet.  If you think this
6063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6064 ac_tool_warned=yes ;;
6065 esac
6066     RANLIB=$ac_ct_RANLIB
6067   fi
6068 else
6069   RANLIB="$ac_cv_prog_RANLIB"
6070 fi
6071
6072 if test -n "$ac_tool_prefix"; then
6073   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}strip; ac_word=$2
6075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_STRIP+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   if test -n "$STRIP"; then
6081   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6082 else
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 for as_dir in $PATH
6085 do
6086   IFS=$as_save_IFS
6087   test -z "$as_dir" && as_dir=.
6088   for ac_exec_ext in '' $ac_executable_extensions; do
6089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6090     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092     break 2
6093   fi
6094 done
6095 done
6096 IFS=$as_save_IFS
6097
6098 fi
6099 fi
6100 STRIP=$ac_cv_prog_STRIP
6101 if test -n "$STRIP"; then
6102   { echo "$as_me:$LINENO: result: $STRIP" >&5
6103 echo "${ECHO_T}$STRIP" >&6; }
6104 else
6105   { echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6; }
6107 fi
6108
6109
6110 fi
6111 if test -z "$ac_cv_prog_STRIP"; then
6112   ac_ct_STRIP=$STRIP
6113   # Extract the first word of "strip", so it can be a program name with args.
6114 set dummy strip; ac_word=$2
6115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6117 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   if test -n "$ac_ct_STRIP"; then
6121   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_prog_ac_ct_STRIP="strip"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6141 if test -n "$ac_ct_STRIP"; then
6142   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6143 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6144 else
6145   { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6147 fi
6148
6149   if test "x$ac_ct_STRIP" = x; then
6150     STRIP=":"
6151   else
6152     case $cross_compiling:$ac_tool_warned in
6153 yes:)
6154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6155 whose name does not start with the host triplet.  If you think this
6156 configuration is useful to you, please write to autoconf@gnu.org." >&5
6157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6158 whose name does not start with the host triplet.  If you think this
6159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162     STRIP=$ac_ct_STRIP
6163   fi
6164 else
6165   STRIP="$ac_cv_prog_STRIP"
6166 fi
6167
6168
6169 old_CC="$CC"
6170 old_CFLAGS="$CFLAGS"
6171
6172 # Set sane defaults for various variables
6173 test -z "$AR" && AR=ar
6174 test -z "$AR_FLAGS" && AR_FLAGS=cru
6175 test -z "$AS" && AS=as
6176 test -z "$CC" && CC=cc
6177 test -z "$LTCC" && LTCC=$CC
6178 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6179 test -z "$DLLTOOL" && DLLTOOL=dlltool
6180 test -z "$LD" && LD=ld
6181 test -z "$LN_S" && LN_S="ln -s"
6182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6183 test -z "$NM" && NM=nm
6184 test -z "$SED" && SED=sed
6185 test -z "$OBJDUMP" && OBJDUMP=objdump
6186 test -z "$RANLIB" && RANLIB=:
6187 test -z "$STRIP" && STRIP=:
6188 test -z "$ac_objext" && ac_objext=o
6189
6190 # Determine commands to create old-style static archives.
6191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6192 old_postinstall_cmds='chmod 644 $oldlib'
6193 old_postuninstall_cmds=
6194
6195 if test -n "$RANLIB"; then
6196   case $host_os in
6197   openbsd*)
6198     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6199     ;;
6200   *)
6201     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6202     ;;
6203   esac
6204   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6205 fi
6206
6207 for cc_temp in $compiler""; do
6208   case $cc_temp in
6209     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6210     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6211     \-*) ;;
6212     *) break;;
6213   esac
6214 done
6215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6216
6217
6218 # Only perform the check for file, if the check method requires it
6219 case $deplibs_check_method in
6220 file_magic*)
6221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6222     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   case $MAGIC_CMD in
6228 [\\/*] |  ?:[\\/]*)
6229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6230   ;;
6231 *)
6232   lt_save_MAGIC_CMD="$MAGIC_CMD"
6233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6235   for ac_dir in $ac_dummy; do
6236     IFS="$lt_save_ifs"
6237     test -z "$ac_dir" && ac_dir=.
6238     if test -f $ac_dir/${ac_tool_prefix}file; then
6239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6240       if test -n "$file_magic_test_file"; then
6241         case $deplibs_check_method in
6242         "file_magic "*)
6243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6246             $EGREP "$file_magic_regex" > /dev/null; then
6247             :
6248           else
6249             cat <<EOF 1>&2
6250
6251 *** Warning: the command libtool uses to detect shared libraries,
6252 *** $file_magic_cmd, produces output that libtool cannot recognize.
6253 *** The result is that libtool may fail to recognize shared libraries
6254 *** as such.  This will affect the creation of libtool libraries that
6255 *** depend on shared libraries, but programs linked with such libtool
6256 *** libraries will work regardless of this problem.  Nevertheless, you
6257 *** may want to report the problem to your system manager and/or to
6258 *** bug-libtool@gnu.org
6259
6260 EOF
6261           fi ;;
6262         esac
6263       fi
6264       break
6265     fi
6266   done
6267   IFS="$lt_save_ifs"
6268   MAGIC_CMD="$lt_save_MAGIC_CMD"
6269   ;;
6270 esac
6271 fi
6272
6273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6274 if test -n "$MAGIC_CMD"; then
6275   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6277 else
6278   { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6280 fi
6281
6282 if test -z "$lt_cv_path_MAGIC_CMD"; then
6283   if test -n "$ac_tool_prefix"; then
6284     { echo "$as_me:$LINENO: checking for file" >&5
6285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   case $MAGIC_CMD in
6290 [\\/*] |  ?:[\\/]*)
6291   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6292   ;;
6293 *)
6294   lt_save_MAGIC_CMD="$MAGIC_CMD"
6295   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6296   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6297   for ac_dir in $ac_dummy; do
6298     IFS="$lt_save_ifs"
6299     test -z "$ac_dir" && ac_dir=.
6300     if test -f $ac_dir/file; then
6301       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6302       if test -n "$file_magic_test_file"; then
6303         case $deplibs_check_method in
6304         "file_magic "*)
6305           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6306           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6307           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6308             $EGREP "$file_magic_regex" > /dev/null; then
6309             :
6310           else
6311             cat <<EOF 1>&2
6312
6313 *** Warning: the command libtool uses to detect shared libraries,
6314 *** $file_magic_cmd, produces output that libtool cannot recognize.
6315 *** The result is that libtool may fail to recognize shared libraries
6316 *** as such.  This will affect the creation of libtool libraries that
6317 *** depend on shared libraries, but programs linked with such libtool
6318 *** libraries will work regardless of this problem.  Nevertheless, you
6319 *** may want to report the problem to your system manager and/or to
6320 *** bug-libtool@gnu.org
6321
6322 EOF
6323           fi ;;
6324         esac
6325       fi
6326       break
6327     fi
6328   done
6329   IFS="$lt_save_ifs"
6330   MAGIC_CMD="$lt_save_MAGIC_CMD"
6331   ;;
6332 esac
6333 fi
6334
6335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6336 if test -n "$MAGIC_CMD"; then
6337   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6339 else
6340   { echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6; }
6342 fi
6343
6344   else
6345     MAGIC_CMD=:
6346   fi
6347 fi
6348
6349   fi
6350   ;;
6351 esac
6352
6353 enable_dlopen=no
6354 enable_win32_dll=no
6355
6356 # Check whether --enable-libtool-lock was given.
6357 if test "${enable_libtool_lock+set}" = set; then
6358   enableval=$enable_libtool_lock;
6359 fi
6360
6361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6362
6363
6364 # Check whether --with-pic was given.
6365 if test "${with_pic+set}" = set; then
6366   withval=$with_pic; pic_mode="$withval"
6367 else
6368   pic_mode=default
6369 fi
6370
6371 test -z "$pic_mode" && pic_mode=default
6372
6373 # Use C for the default configuration in the libtool script
6374 tagname=
6375 lt_save_CC="$CC"
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381
6382
6383 # Source file extension for C test sources.
6384 ac_ext=c
6385
6386 # Object file extension for compiled C test sources.
6387 objext=o
6388 objext=$objext
6389
6390 # Code to be used in simple compile tests
6391 lt_simple_compile_test_code="int some_variable = 0;"
6392
6393 # Code to be used in simple link tests
6394 lt_simple_link_test_code='int main(){return(0);}'
6395
6396
6397 # If no C compiler was specified, use CC.
6398 LTCC=${LTCC-"$CC"}
6399
6400 # If no C compiler flags were specified, use CFLAGS.
6401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6402
6403 # Allow CC to be a program name with arguments.
6404 compiler=$CC
6405
6406
6407 # save warnings/boilerplate of simple test code
6408 ac_outfile=conftest.$ac_objext
6409 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6410 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6411 _lt_compiler_boilerplate=`cat conftest.err`
6412 $rm conftest*
6413
6414 ac_outfile=conftest.$ac_objext
6415 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6416 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6417 _lt_linker_boilerplate=`cat conftest.err`
6418 $rm conftest*
6419
6420
6421
6422 lt_prog_compiler_no_builtin_flag=
6423
6424 if test "$GCC" = yes; then
6425   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6426
6427
6428 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6429 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   lt_cv_prog_compiler_rtti_exceptions=no
6434   ac_outfile=conftest.$ac_objext
6435    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6436    lt_compiler_flag="-fno-rtti -fno-exceptions"
6437    # Insert the option either (1) after the last *FLAGS variable, or
6438    # (2) before a word containing "conftest.", or (3) at the end.
6439    # Note that $ac_compile itself does not contain backslashes and begins
6440    # with a dollar sign (not a hyphen), so the echo should work correctly.
6441    # The option is referenced via a variable to avoid confusing sed.
6442    lt_compile=`echo "$ac_compile" | $SED \
6443    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6445    -e 's:$: $lt_compiler_flag:'`
6446    (eval echo "\"\$as_me:6446: $lt_compile\"" >&5)
6447    (eval "$lt_compile" 2>conftest.err)
6448    ac_status=$?
6449    cat conftest.err >&5
6450    echo "$as_me:6450: \$? = $ac_status" >&5
6451    if (exit $ac_status) && test -s "$ac_outfile"; then
6452      # The compiler can only warn and ignore the option if not recognized
6453      # So say no if there are warnings other than the usual output.
6454      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6455      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6456      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6457        lt_cv_prog_compiler_rtti_exceptions=yes
6458      fi
6459    fi
6460    $rm conftest*
6461
6462 fi
6463 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6464 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6465
6466 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6467     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6468 else
6469     :
6470 fi
6471
6472 fi
6473
6474 lt_prog_compiler_wl=
6475 lt_prog_compiler_pic=
6476 lt_prog_compiler_static=
6477
6478 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6479 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6480
6481   if test "$GCC" = yes; then
6482     lt_prog_compiler_wl='-Wl,'
6483     lt_prog_compiler_static='-static'
6484
6485     case $host_os in
6486       aix*)
6487       # All AIX code is PIC.
6488       if test "$host_cpu" = ia64; then
6489         # AIX 5 now supports IA64 processor
6490         lt_prog_compiler_static='-Bstatic'
6491       fi
6492       ;;
6493
6494     amigaos*)
6495       # FIXME: we need at least 68020 code to build shared libraries, but
6496       # adding the `-m68020' flag to GCC prevents building anything better,
6497       # like `-m68040'.
6498       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6499       ;;
6500
6501     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6502       # PIC is the default for these OSes.
6503       ;;
6504
6505     mingw* | cygwin* | pw32* | os2*)
6506       # This hack is so that the source file can tell whether it is being
6507       # built for inclusion in a dll (and should export symbols for example).
6508       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6509       # (--disable-auto-import) libraries
6510       lt_prog_compiler_pic='-DDLL_EXPORT'
6511       ;;
6512
6513     darwin* | rhapsody*)
6514       # PIC is the default on this platform
6515       # Common symbols not allowed in MH_DYLIB files
6516       lt_prog_compiler_pic='-fno-common'
6517       ;;
6518
6519     interix[3-9]*)
6520       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6521       # Instead, we relocate shared libraries at runtime.
6522       ;;
6523
6524     msdosdjgpp*)
6525       # Just because we use GCC doesn't mean we suddenly get shared libraries
6526       # on systems that don't support them.
6527       lt_prog_compiler_can_build_shared=no
6528       enable_shared=no
6529       ;;
6530
6531     sysv4*MP*)
6532       if test -d /usr/nec; then
6533         lt_prog_compiler_pic=-Kconform_pic
6534       fi
6535       ;;
6536
6537     hpux*)
6538       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6539       # not for PA HP-UX.
6540       case $host_cpu in
6541       hppa*64*|ia64*)
6542         # +Z the default
6543         ;;
6544       *)
6545         lt_prog_compiler_pic='-fPIC'
6546         ;;
6547       esac
6548       ;;
6549
6550     *)
6551       lt_prog_compiler_pic='-fPIC'
6552       ;;
6553     esac
6554   else
6555     # PORTME Check for flag to pass linker flags through the system compiler.
6556     case $host_os in
6557     aix*)
6558       lt_prog_compiler_wl='-Wl,'
6559       if test "$host_cpu" = ia64; then
6560         # AIX 5 now supports IA64 processor
6561         lt_prog_compiler_static='-Bstatic'
6562       else
6563         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6564       fi
6565       ;;
6566       darwin*)
6567         # PIC is the default on this platform
6568         # Common symbols not allowed in MH_DYLIB files
6569        case $cc_basename in
6570          xlc*)
6571          lt_prog_compiler_pic='-qnocommon'
6572          lt_prog_compiler_wl='-Wl,'
6573          ;;
6574        esac
6575        ;;
6576
6577     mingw* | cygwin* | pw32* | os2*)
6578       # This hack is so that the source file can tell whether it is being
6579       # built for inclusion in a dll (and should export symbols for example).
6580       lt_prog_compiler_pic='-DDLL_EXPORT'
6581       ;;
6582
6583     hpux9* | hpux10* | hpux11*)
6584       lt_prog_compiler_wl='-Wl,'
6585       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6586       # not for PA HP-UX.
6587       case $host_cpu in
6588       hppa*64*|ia64*)
6589         # +Z the default
6590         ;;
6591       *)
6592         lt_prog_compiler_pic='+Z'
6593         ;;
6594       esac
6595       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6596       lt_prog_compiler_static='${wl}-a ${wl}archive'
6597       ;;
6598
6599     irix5* | irix6* | nonstopux*)
6600       lt_prog_compiler_wl='-Wl,'
6601       # PIC (with -KPIC) is the default.
6602       lt_prog_compiler_static='-non_shared'
6603       ;;
6604
6605     newsos6)
6606       lt_prog_compiler_pic='-KPIC'
6607       lt_prog_compiler_static='-Bstatic'
6608       ;;
6609
6610     linux* | k*bsd*-gnu)
6611       case $cc_basename in
6612       icc* | ecc*)
6613         lt_prog_compiler_wl='-Wl,'
6614         lt_prog_compiler_pic='-KPIC'
6615         lt_prog_compiler_static='-static'
6616         ;;
6617       pgcc* | pgf77* | pgf90* | pgf95*)
6618         # Portland Group compilers (*not* the Pentium gcc compiler,
6619         # which looks to be a dead project)
6620         lt_prog_compiler_wl='-Wl,'
6621         lt_prog_compiler_pic='-fpic'
6622         lt_prog_compiler_static='-Bstatic'
6623         ;;
6624       ccc*)
6625         lt_prog_compiler_wl='-Wl,'
6626         # All Alpha code is PIC.
6627         lt_prog_compiler_static='-non_shared'
6628         ;;
6629       *)
6630         case `$CC -V 2>&1 | sed 5q` in
6631         *Sun\ C*)
6632           # Sun C 5.9
6633           lt_prog_compiler_pic='-KPIC'
6634           lt_prog_compiler_static='-Bstatic'
6635           lt_prog_compiler_wl='-Wl,'
6636           ;;
6637         *Sun\ F*)
6638           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6639           lt_prog_compiler_pic='-KPIC'
6640           lt_prog_compiler_static='-Bstatic'
6641           lt_prog_compiler_wl=''
6642           ;;
6643         esac
6644         ;;
6645       esac
6646       ;;
6647
6648     osf3* | osf4* | osf5*)
6649       lt_prog_compiler_wl='-Wl,'
6650       # All OSF/1 code is PIC.
6651       lt_prog_compiler_static='-non_shared'
6652       ;;
6653
6654     rdos*)
6655       lt_prog_compiler_static='-non_shared'
6656       ;;
6657
6658     solaris*)
6659       lt_prog_compiler_pic='-KPIC'
6660       lt_prog_compiler_static='-Bstatic'
6661       case $cc_basename in
6662       f77* | f90* | f95*)
6663         lt_prog_compiler_wl='-Qoption ld ';;
6664       *)
6665         lt_prog_compiler_wl='-Wl,';;
6666       esac
6667       ;;
6668
6669     sunos4*)
6670       lt_prog_compiler_wl='-Qoption ld '
6671       lt_prog_compiler_pic='-PIC'
6672       lt_prog_compiler_static='-Bstatic'
6673       ;;
6674
6675     sysv4 | sysv4.2uw2* | sysv4.3*)
6676       lt_prog_compiler_wl='-Wl,'
6677       lt_prog_compiler_pic='-KPIC'
6678       lt_prog_compiler_static='-Bstatic'
6679       ;;
6680
6681     sysv4*MP*)
6682       if test -d /usr/nec ;then
6683         lt_prog_compiler_pic='-Kconform_pic'
6684         lt_prog_compiler_static='-Bstatic'
6685       fi
6686       ;;
6687
6688     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6689       lt_prog_compiler_wl='-Wl,'
6690       lt_prog_compiler_pic='-KPIC'
6691       lt_prog_compiler_static='-Bstatic'
6692       ;;
6693
6694     unicos*)
6695       lt_prog_compiler_wl='-Wl,'
6696       lt_prog_compiler_can_build_shared=no
6697       ;;
6698
6699     uts4*)
6700       lt_prog_compiler_pic='-pic'
6701       lt_prog_compiler_static='-Bstatic'
6702       ;;
6703
6704     *)
6705       lt_prog_compiler_can_build_shared=no
6706       ;;
6707     esac
6708   fi
6709
6710 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6711 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6712
6713 #
6714 # Check to make sure the PIC flag actually works.
6715 #
6716 if test -n "$lt_prog_compiler_pic"; then
6717
6718 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6719 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6720 if test "${lt_prog_compiler_pic_works+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   lt_prog_compiler_pic_works=no
6724   ac_outfile=conftest.$ac_objext
6725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6727    # Insert the option either (1) after the last *FLAGS variable, or
6728    # (2) before a word containing "conftest.", or (3) at the end.
6729    # Note that $ac_compile itself does not contain backslashes and begins
6730    # with a dollar sign (not a hyphen), so the echo should work correctly.
6731    # The option is referenced via a variable to avoid confusing sed.
6732    lt_compile=`echo "$ac_compile" | $SED \
6733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6735    -e 's:$: $lt_compiler_flag:'`
6736    (eval echo "\"\$as_me:6736: $lt_compile\"" >&5)
6737    (eval "$lt_compile" 2>conftest.err)
6738    ac_status=$?
6739    cat conftest.err >&5
6740    echo "$as_me:6740: \$? = $ac_status" >&5
6741    if (exit $ac_status) && test -s "$ac_outfile"; then
6742      # The compiler can only warn and ignore the option if not recognized
6743      # So say no if there are warnings other than the usual output.
6744      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6747        lt_prog_compiler_pic_works=yes
6748      fi
6749    fi
6750    $rm conftest*
6751
6752 fi
6753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6754 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6755
6756 if test x"$lt_prog_compiler_pic_works" = xyes; then
6757     case $lt_prog_compiler_pic in
6758      "" | " "*) ;;
6759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6760      esac
6761 else
6762     lt_prog_compiler_pic=
6763      lt_prog_compiler_can_build_shared=no
6764 fi
6765
6766 fi
6767 case $host_os in
6768   # For platforms which do not support PIC, -DPIC is meaningless:
6769   *djgpp*)
6770     lt_prog_compiler_pic=
6771     ;;
6772   *)
6773     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6774     ;;
6775 esac
6776
6777 #
6778 # Check to make sure the static flag actually works.
6779 #
6780 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6781 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6782 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6783 if test "${lt_prog_compiler_static_works+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   lt_prog_compiler_static_works=no
6787    save_LDFLAGS="$LDFLAGS"
6788    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6789    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6790    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6791      # The linker can only warn and ignore the option if not recognized
6792      # So say no if there are warnings
6793      if test -s conftest.err; then
6794        # Append any errors to the config.log.
6795        cat conftest.err 1>&5
6796        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6797        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6798        if diff conftest.exp conftest.er2 >/dev/null; then
6799          lt_prog_compiler_static_works=yes
6800        fi
6801      else
6802        lt_prog_compiler_static_works=yes
6803      fi
6804    fi
6805    $rm conftest*
6806    LDFLAGS="$save_LDFLAGS"
6807
6808 fi
6809 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6810 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6811
6812 if test x"$lt_prog_compiler_static_works" = xyes; then
6813     :
6814 else
6815     lt_prog_compiler_static=
6816 fi
6817
6818
6819 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6821 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824   lt_cv_prog_compiler_c_o=no
6825    $rm -r conftest 2>/dev/null
6826    mkdir conftest
6827    cd conftest
6828    mkdir out
6829    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6830
6831    lt_compiler_flag="-o out/conftest2.$ac_objext"
6832    # Insert the option either (1) after the last *FLAGS variable, or
6833    # (2) before a word containing "conftest.", or (3) at the end.
6834    # Note that $ac_compile itself does not contain backslashes and begins
6835    # with a dollar sign (not a hyphen), so the echo should work correctly.
6836    lt_compile=`echo "$ac_compile" | $SED \
6837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6839    -e 's:$: $lt_compiler_flag:'`
6840    (eval echo "\"\$as_me:6840: $lt_compile\"" >&5)
6841    (eval "$lt_compile" 2>out/conftest.err)
6842    ac_status=$?
6843    cat out/conftest.err >&5
6844    echo "$as_me:6844: \$? = $ac_status" >&5
6845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6846    then
6847      # The compiler can only warn and ignore the option if not recognized
6848      # So say no if there are warnings
6849      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6850      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6851      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6852        lt_cv_prog_compiler_c_o=yes
6853      fi
6854    fi
6855    chmod u+w . 2>&5
6856    $rm conftest*
6857    # SGI C++ compiler will create directory out/ii_files/ for
6858    # template instantiation
6859    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6860    $rm out/* && rmdir out
6861    cd ..
6862    rmdir conftest
6863    $rm conftest*
6864
6865 fi
6866 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6867 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6868
6869
6870 hard_links="nottested"
6871 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6872   # do not overwrite the value of need_locks provided by the user
6873   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6874 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6875   hard_links=yes
6876   $rm conftest*
6877   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6878   touch conftest.a
6879   ln conftest.a conftest.b 2>&5 || hard_links=no
6880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6881   { echo "$as_me:$LINENO: result: $hard_links" >&5
6882 echo "${ECHO_T}$hard_links" >&6; }
6883   if test "$hard_links" = no; then
6884     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6885 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6886     need_locks=warn
6887   fi
6888 else
6889   need_locks=no
6890 fi
6891
6892 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6894
6895   runpath_var=
6896   allow_undefined_flag=
6897   enable_shared_with_static_runtimes=no
6898   archive_cmds=
6899   archive_expsym_cmds=
6900   old_archive_From_new_cmds=
6901   old_archive_from_expsyms_cmds=
6902   export_dynamic_flag_spec=
6903   whole_archive_flag_spec=
6904   thread_safe_flag_spec=
6905   hardcode_libdir_flag_spec=
6906   hardcode_libdir_flag_spec_ld=
6907   hardcode_libdir_separator=
6908   hardcode_direct=no
6909   hardcode_minus_L=no
6910   hardcode_shlibpath_var=unsupported
6911   link_all_deplibs=unknown
6912   hardcode_automatic=no
6913   module_cmds=
6914   module_expsym_cmds=
6915   always_export_symbols=no
6916   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6917   # include_expsyms should be a list of space-separated symbols to be *always*
6918   # included in the symbol list
6919   include_expsyms=
6920   # exclude_expsyms can be an extended regexp of symbols to exclude
6921   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6922   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6923   # as well as any symbol that contains `d'.
6924   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6925   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6926   # platforms (ab)use it in PIC code, but their linkers get confused if
6927   # the symbol is explicitly referenced.  Since portable code cannot
6928   # rely on this symbol name, it's probably fine to never include it in
6929   # preloaded symbol tables.
6930   extract_expsyms_cmds=
6931   # Just being paranoid about ensuring that cc_basename is set.
6932   for cc_temp in $compiler""; do
6933   case $cc_temp in
6934     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6935     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6936     \-*) ;;
6937     *) break;;
6938   esac
6939 done
6940 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6941
6942   case $host_os in
6943   cygwin* | mingw* | pw32*)
6944     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6945     # When not using gcc, we currently assume that we are using
6946     # Microsoft Visual C++.
6947     if test "$GCC" != yes; then
6948       with_gnu_ld=no
6949     fi
6950     ;;
6951   interix*)
6952     # we just hope/assume this is gcc and not c89 (= MSVC++)
6953     with_gnu_ld=yes
6954     ;;
6955   openbsd*)
6956     with_gnu_ld=no
6957     ;;
6958   esac
6959
6960   ld_shlibs=yes
6961   if test "$with_gnu_ld" = yes; then
6962     # If archive_cmds runs LD, not CC, wlarc should be empty
6963     wlarc='${wl}'
6964
6965     # Set some defaults for GNU ld with shared library support. These
6966     # are reset later if shared libraries are not supported. Putting them
6967     # here allows them to be overridden if necessary.
6968     runpath_var=LD_RUN_PATH
6969     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6970     export_dynamic_flag_spec='${wl}--export-dynamic'
6971     # ancient GNU ld didn't support --whole-archive et. al.
6972     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6973         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6974       else
6975         whole_archive_flag_spec=
6976     fi
6977     supports_anon_versioning=no
6978     case `$LD -v 2>/dev/null` in
6979       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6980       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6981       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6982       *\ 2.11.*) ;; # other 2.11 versions
6983       *) supports_anon_versioning=yes ;;
6984     esac
6985
6986     # See if GNU ld supports shared libraries.
6987     case $host_os in
6988     aix3* | aix4* | aix5*)
6989       # On AIX/PPC, the GNU linker is very broken
6990       if test "$host_cpu" != ia64; then
6991         ld_shlibs=no
6992         cat <<EOF 1>&2
6993
6994 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6995 *** to be unable to reliably create shared libraries on AIX.
6996 *** Therefore, libtool is disabling shared libraries support.  If you
6997 *** really care for shared libraries, you may want to modify your PATH
6998 *** so that a non-GNU linker is found, and then restart.
6999
7000 EOF
7001       fi
7002       ;;
7003
7004     amigaos*)
7005       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)'
7006       hardcode_libdir_flag_spec='-L$libdir'
7007       hardcode_minus_L=yes
7008
7009       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7010       # that the semantics of dynamic libraries on AmigaOS, at least up
7011       # to version 4, is to share data among multiple programs linked
7012       # with the same dynamic library.  Since this doesn't match the
7013       # behavior of shared libraries on other platforms, we can't use
7014       # them.
7015       ld_shlibs=no
7016       ;;
7017
7018     beos*)
7019       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7020         allow_undefined_flag=unsupported
7021         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7022         # support --undefined.  This deserves some investigation.  FIXME
7023         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7024       else
7025         ld_shlibs=no
7026       fi
7027       ;;
7028
7029     cygwin* | mingw* | pw32*)
7030       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7031       # as there is no search path for DLLs.
7032       hardcode_libdir_flag_spec='-L$libdir'
7033       allow_undefined_flag=unsupported
7034       always_export_symbols=no
7035       enable_shared_with_static_runtimes=yes
7036       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7037
7038       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7039         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7040         # If the export-symbols file already is a .def file (1st line
7041         # is EXPORTS), use it as is; otherwise, prepend...
7042         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7043           cp $export_symbols $output_objdir/$soname.def;
7044         else
7045           echo EXPORTS > $output_objdir/$soname.def;
7046           cat $export_symbols >> $output_objdir/$soname.def;
7047         fi~
7048         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7049       else
7050         ld_shlibs=no
7051       fi
7052       ;;
7053
7054     interix[3-9]*)
7055       hardcode_direct=no
7056       hardcode_shlibpath_var=no
7057       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7058       export_dynamic_flag_spec='${wl}-E'
7059       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7060       # Instead, shared libraries are loaded at an image base (0x10000000 by
7061       # default) and relocated if they conflict, which is a slow very memory
7062       # consuming and fragmenting process.  To avoid this, we pick a random,
7063       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7064       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7065       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7066       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'
7067       ;;
7068
7069     gnu* | linux* | k*bsd*-gnu)
7070       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7071         tmp_addflag=
7072         case $cc_basename,$host_cpu in
7073         pgcc*)                          # Portland Group C compiler
7074           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'
7075           tmp_addflag=' $pic_flag'
7076           ;;
7077         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7078           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'
7079           tmp_addflag=' $pic_flag -Mnomain' ;;
7080         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7081           tmp_addflag=' -i_dynamic' ;;
7082         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7083           tmp_addflag=' -i_dynamic -nofor_main' ;;
7084         ifc* | ifort*)                  # Intel Fortran compiler
7085           tmp_addflag=' -nofor_main' ;;
7086         esac
7087         case `$CC -V 2>&1 | sed 5q` in
7088         *Sun\ C*)                       # Sun C 5.9
7089           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'
7090           tmp_sharedflag='-G' ;;
7091         *Sun\ F*)                       # Sun Fortran 8.3
7092           tmp_sharedflag='-G' ;;
7093         *)
7094           tmp_sharedflag='-shared' ;;
7095         esac
7096         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097
7098         if test $supports_anon_versioning = yes; then
7099           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7100   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7101   $echo "local: *; };" >> $output_objdir/$libname.ver~
7102           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7103         fi
7104       else
7105         ld_shlibs=no
7106       fi
7107       ;;
7108
7109     netbsd*)
7110       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7112         wlarc=
7113       else
7114         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7115         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7116       fi
7117       ;;
7118
7119     solaris*)
7120       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7121         ld_shlibs=no
7122         cat <<EOF 1>&2
7123
7124 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7125 *** create shared libraries on Solaris systems.  Therefore, libtool
7126 *** is disabling shared libraries support.  We urge you to upgrade GNU
7127 *** binutils to release 2.9.1 or newer.  Another option is to modify
7128 *** your PATH or compiler configuration so that the native linker is
7129 *** used, and then restart.
7130
7131 EOF
7132       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7133         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7134         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7135       else
7136         ld_shlibs=no
7137       fi
7138       ;;
7139
7140     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7141       case `$LD -v 2>&1` in
7142         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7143         ld_shlibs=no
7144         cat <<_LT_EOF 1>&2
7145
7146 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7147 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7148 *** is disabling shared libraries support.  We urge you to upgrade GNU
7149 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7150 *** your PATH or compiler configuration so that the native linker is
7151 *** used, and then restart.
7152
7153 _LT_EOF
7154         ;;
7155         *)
7156           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7157             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7158             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7159             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7160           else
7161             ld_shlibs=no
7162           fi
7163         ;;
7164       esac
7165       ;;
7166
7167     sunos4*)
7168       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7169       wlarc=
7170       hardcode_direct=yes
7171       hardcode_shlibpath_var=no
7172       ;;
7173
7174     *)
7175       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7176         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7177         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7178       else
7179         ld_shlibs=no
7180       fi
7181       ;;
7182     esac
7183
7184     if test "$ld_shlibs" = no; then
7185       runpath_var=
7186       hardcode_libdir_flag_spec=
7187       export_dynamic_flag_spec=
7188       whole_archive_flag_spec=
7189     fi
7190   else
7191     # PORTME fill in a description of your system's linker (not GNU ld)
7192     case $host_os in
7193     aix3*)
7194       allow_undefined_flag=unsupported
7195       always_export_symbols=yes
7196       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'
7197       # Note: this linker hardcodes the directories in LIBPATH if there
7198       # are no directories specified by -L.
7199       hardcode_minus_L=yes
7200       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7201         # Neither direct hardcoding nor static linking is supported with a
7202         # broken collect2.
7203         hardcode_direct=unsupported
7204       fi
7205       ;;
7206
7207     aix4* | aix5*)
7208       if test "$host_cpu" = ia64; then
7209         # On IA64, the linker does run time linking by default, so we don't
7210         # have to do anything special.
7211         aix_use_runtimelinking=no
7212         exp_sym_flag='-Bexport'
7213         no_entry_flag=""
7214       else
7215         # If we're using GNU nm, then we don't want the "-C" option.
7216         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7217         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7218           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'
7219         else
7220           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'
7221         fi
7222         aix_use_runtimelinking=no
7223
7224         # Test if we are trying to use run time linking or normal
7225         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7226         # need to do runtime linking.
7227         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7228           for ld_flag in $LDFLAGS; do
7229           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7230             aix_use_runtimelinking=yes
7231             break
7232           fi
7233           done
7234           ;;
7235         esac
7236
7237         exp_sym_flag='-bexport'
7238         no_entry_flag='-bnoentry'
7239       fi
7240
7241       # When large executables or shared objects are built, AIX ld can
7242       # have problems creating the table of contents.  If linking a library
7243       # or program results in "error TOC overflow" add -mminimal-toc to
7244       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7245       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7246
7247       archive_cmds=''
7248       hardcode_direct=yes
7249       hardcode_libdir_separator=':'
7250       link_all_deplibs=yes
7251
7252       if test "$GCC" = yes; then
7253         case $host_os in aix4.[012]|aix4.[012].*)
7254         # We only want to do this on AIX 4.2 and lower, the check
7255         # below for broken collect2 doesn't work under 4.3+
7256           collect2name=`${CC} -print-prog-name=collect2`
7257           if test -f "$collect2name" && \
7258            strings "$collect2name" | grep resolve_lib_name >/dev/null
7259           then
7260           # We have reworked collect2
7261           :
7262           else
7263           # We have old collect2
7264           hardcode_direct=unsupported
7265           # It fails to find uninstalled libraries when the uninstalled
7266           # path is not listed in the libpath.  Setting hardcode_minus_L
7267           # to unsupported forces relinking
7268           hardcode_minus_L=yes
7269           hardcode_libdir_flag_spec='-L$libdir'
7270           hardcode_libdir_separator=
7271           fi
7272           ;;
7273         esac
7274         shared_flag='-shared'
7275         if test "$aix_use_runtimelinking" = yes; then
7276           shared_flag="$shared_flag "'${wl}-G'
7277         fi
7278       else
7279         # not using gcc
7280         if test "$host_cpu" = ia64; then
7281         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7282         # chokes on -Wl,-G. The following line is correct:
7283           shared_flag='-G'
7284         else
7285           if test "$aix_use_runtimelinking" = yes; then
7286             shared_flag='${wl}-G'
7287           else
7288             shared_flag='${wl}-bM:SRE'
7289           fi
7290         fi
7291       fi
7292
7293       # It seems that -bexpall does not export symbols beginning with
7294       # underscore (_), so it is better to generate a list of symbols to export.
7295       always_export_symbols=yes
7296       if test "$aix_use_runtimelinking" = yes; then
7297         # Warning - without using the other runtime loading flags (-brtl),
7298         # -berok will link without error, but may produce a broken library.
7299         allow_undefined_flag='-berok'
7300        # Determine the default libpath from the value encoded in an empty executable.
7301        cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 int
7309 main ()
7310 {
7311
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320   *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323   (eval "$ac_link") 2>conftest.er1
7324   ac_status=$?
7325   grep -v '^ *+' conftest.er1 >conftest.err
7326   rm -f conftest.er1
7327   cat conftest.err >&5
7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329   (exit $ac_status); } && {
7330          test -z "$ac_c_werror_flag" ||
7331          test ! -s conftest.err
7332        } && test -s conftest$ac_exeext &&
7333        $as_test_x conftest$ac_exeext; then
7334
7335 lt_aix_libpath_sed='
7336     /Import File Strings/,/^$/ {
7337         /^0/ {
7338             s/^0  *\(.*\)$/\1/
7339             p
7340         }
7341     }'
7342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7343 # Check for a 64-bit object if we didn't find anything.
7344 if test -z "$aix_libpath"; then
7345   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7346 fi
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351
7352 fi
7353
7354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7355       conftest$ac_exeext conftest.$ac_ext
7356 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7357
7358        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7359         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"
7360        else
7361         if test "$host_cpu" = ia64; then
7362           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7363           allow_undefined_flag="-z nodefs"
7364           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"
7365         else
7366          # Determine the default libpath from the value encoded in an empty executable.
7367          cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h.  */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h.  */
7373
7374 int
7375 main ()
7376 {
7377
7378   ;
7379   return 0;
7380 }
7381 _ACEOF
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (ac_try="$ac_link"
7384 case "(($ac_try" in
7385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386   *) ac_try_echo=$ac_try;;
7387 esac
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389   (eval "$ac_link") 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } && {
7396          test -z "$ac_c_werror_flag" ||
7397          test ! -s conftest.err
7398        } && test -s conftest$ac_exeext &&
7399        $as_test_x conftest$ac_exeext; then
7400
7401 lt_aix_libpath_sed='
7402     /Import File Strings/,/^$/ {
7403         /^0/ {
7404             s/^0  *\(.*\)$/\1/
7405             p
7406         }
7407     }'
7408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7409 # Check for a 64-bit object if we didn't find anything.
7410 if test -z "$aix_libpath"; then
7411   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7412 fi
7413 else
7414   echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421       conftest$ac_exeext conftest.$ac_ext
7422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7423
7424          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7425           # Warning - without using the other run time loading flags,
7426           # -berok will link without error, but may produce a broken library.
7427           no_undefined_flag=' ${wl}-bernotok'
7428           allow_undefined_flag=' ${wl}-berok'
7429           # Exported symbols can be pulled into shared objects from archives
7430           whole_archive_flag_spec='$convenience'
7431           archive_cmds_need_lc=yes
7432           # This is similar to how AIX traditionally builds its shared libraries.
7433           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'
7434         fi
7435       fi
7436       ;;
7437
7438     amigaos*)
7439       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)'
7440       hardcode_libdir_flag_spec='-L$libdir'
7441       hardcode_minus_L=yes
7442       # see comment about different semantics on the GNU ld section
7443       ld_shlibs=no
7444       ;;
7445
7446     bsdi[45]*)
7447       export_dynamic_flag_spec=-rdynamic
7448       ;;
7449
7450     cygwin* | mingw* | pw32*)
7451       # When not using gcc, we currently assume that we are using
7452       # Microsoft Visual C++.
7453       # hardcode_libdir_flag_spec is actually meaningless, as there is
7454       # no search path for DLLs.
7455       hardcode_libdir_flag_spec=' '
7456       allow_undefined_flag=unsupported
7457       # Tell ltmain to make .lib files, not .a files.
7458       libext=lib
7459       # Tell ltmain to make .dll files, not .so files.
7460       shrext_cmds=".dll"
7461       # FIXME: Setting linknames here is a bad hack.
7462       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7463       # The linker will automatically build a .lib file if we build a DLL.
7464       old_archive_From_new_cmds='true'
7465       # FIXME: Should let the user specify the lib program.
7466       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7467       fix_srcfile_path='`cygpath -w "$srcfile"`'
7468       enable_shared_with_static_runtimes=yes
7469       ;;
7470
7471     darwin* | rhapsody*)
7472       case $host_os in
7473         rhapsody* | darwin1.[012])
7474          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7475          ;;
7476        *) # Darwin 1.3 on
7477          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7478            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7479          else
7480            case ${MACOSX_DEPLOYMENT_TARGET} in
7481              10.[012])
7482                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7483                ;;
7484              10.*)
7485                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7486                ;;
7487            esac
7488          fi
7489          ;;
7490       esac
7491       archive_cmds_need_lc=no
7492       hardcode_direct=no
7493       hardcode_automatic=yes
7494       hardcode_shlibpath_var=unsupported
7495       whole_archive_flag_spec=''
7496       link_all_deplibs=yes
7497     if test "$GCC" = yes ; then
7498         output_verbose_link_cmd='echo'
7499         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7500       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7501       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7502       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}'
7503       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}'
7504     else
7505       case $cc_basename in
7506         xlc*)
7507          output_verbose_link_cmd='echo'
7508          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7509          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7510           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7511          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}'
7512           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}'
7513           ;;
7514        *)
7515          ld_shlibs=no
7516           ;;
7517       esac
7518     fi
7519       ;;
7520
7521     dgux*)
7522       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7523       hardcode_libdir_flag_spec='-L$libdir'
7524       hardcode_shlibpath_var=no
7525       ;;
7526
7527     freebsd1*)
7528       ld_shlibs=no
7529       ;;
7530
7531     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7532     # support.  Future versions do this automatically, but an explicit c++rt0.o
7533     # does not break anything, and helps significantly (at the cost of a little
7534     # extra space).
7535     freebsd2.2*)
7536       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7537       hardcode_libdir_flag_spec='-R$libdir'
7538       hardcode_direct=yes
7539       hardcode_shlibpath_var=no
7540       ;;
7541
7542     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7543     freebsd2*)
7544       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7545       hardcode_direct=yes
7546       hardcode_minus_L=yes
7547       hardcode_shlibpath_var=no
7548       ;;
7549
7550     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7551     freebsd* | dragonfly*)
7552       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7553       hardcode_libdir_flag_spec='-R$libdir'
7554       hardcode_direct=yes
7555       hardcode_shlibpath_var=no
7556       ;;
7557
7558     hpux9*)
7559       if test "$GCC" = yes; then
7560         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'
7561       else
7562         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'
7563       fi
7564       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7565       hardcode_libdir_separator=:
7566       hardcode_direct=yes
7567
7568       # hardcode_minus_L: Not really in the search PATH,
7569       # but as the default location of the library.
7570       hardcode_minus_L=yes
7571       export_dynamic_flag_spec='${wl}-E'
7572       ;;
7573
7574     hpux10*)
7575       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7576         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7577       else
7578         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7579       fi
7580       if test "$with_gnu_ld" = no; then
7581         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7582         hardcode_libdir_separator=:
7583
7584         hardcode_direct=yes
7585         export_dynamic_flag_spec='${wl}-E'
7586
7587         # hardcode_minus_L: Not really in the search PATH,
7588         # but as the default location of the library.
7589         hardcode_minus_L=yes
7590       fi
7591       ;;
7592
7593     hpux11*)
7594       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7595         case $host_cpu in
7596         hppa*64*)
7597           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7598           ;;
7599         ia64*)
7600           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7601           ;;
7602         *)
7603           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7604           ;;
7605         esac
7606       else
7607         case $host_cpu in
7608         hppa*64*)
7609           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7610           ;;
7611         ia64*)
7612           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7613           ;;
7614         *)
7615           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7616           ;;
7617         esac
7618       fi
7619       if test "$with_gnu_ld" = no; then
7620         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7621         hardcode_libdir_separator=:
7622
7623         case $host_cpu in
7624         hppa*64*|ia64*)
7625           hardcode_libdir_flag_spec_ld='+b $libdir'
7626           hardcode_direct=no
7627           hardcode_shlibpath_var=no
7628           ;;
7629         *)
7630           hardcode_direct=yes
7631           export_dynamic_flag_spec='${wl}-E'
7632
7633           # hardcode_minus_L: Not really in the search PATH,
7634           # but as the default location of the library.
7635           hardcode_minus_L=yes
7636           ;;
7637         esac
7638       fi
7639       ;;
7640
7641     irix5* | irix6* | nonstopux*)
7642       if test "$GCC" = yes; then
7643         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'
7644       else
7645         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'
7646         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7647       fi
7648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7649       hardcode_libdir_separator=:
7650       link_all_deplibs=yes
7651       ;;
7652
7653     netbsd*)
7654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7656       else
7657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7658       fi
7659       hardcode_libdir_flag_spec='-R$libdir'
7660       hardcode_direct=yes
7661       hardcode_shlibpath_var=no
7662       ;;
7663
7664     newsos6)
7665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7666       hardcode_direct=yes
7667       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7668       hardcode_libdir_separator=:
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     openbsd*)
7673       if test -f /usr/libexec/ld.so; then
7674         hardcode_direct=yes
7675         hardcode_shlibpath_var=no
7676         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7677           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7678           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7679           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7680           export_dynamic_flag_spec='${wl}-E'
7681         else
7682           case $host_os in
7683            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7684              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7685              hardcode_libdir_flag_spec='-R$libdir'
7686              ;;
7687            *)
7688              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7689              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7690              ;;
7691           esac
7692         fi
7693       else
7694         ld_shlibs=no
7695       fi
7696       ;;
7697
7698     os2*)
7699       hardcode_libdir_flag_spec='-L$libdir'
7700       hardcode_minus_L=yes
7701       allow_undefined_flag=unsupported
7702       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'
7703       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7704       ;;
7705
7706     osf3*)
7707       if test "$GCC" = yes; then
7708         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7709         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'
7710       else
7711         allow_undefined_flag=' -expect_unresolved \*'
7712         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'
7713       fi
7714       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7715       hardcode_libdir_separator=:
7716       ;;
7717
7718     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7719       if test "$GCC" = yes; then
7720         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7721         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'
7722         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7723       else
7724         allow_undefined_flag=' -expect_unresolved \*'
7725         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'
7726         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7727         $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'
7728
7729         # Both c and cxx compiler support -rpath directly
7730         hardcode_libdir_flag_spec='-rpath $libdir'
7731       fi
7732       hardcode_libdir_separator=:
7733       ;;
7734
7735     solaris*)
7736       no_undefined_flag=' -z text'
7737       if test "$GCC" = yes; then
7738         wlarc='${wl}'
7739         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7740         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7741           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7742       else
7743         wlarc=''
7744         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7745         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7746         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7747       fi
7748       hardcode_libdir_flag_spec='-R$libdir'
7749       hardcode_shlibpath_var=no
7750       case $host_os in
7751       solaris2.[0-5] | solaris2.[0-5].*) ;;
7752       *)
7753         # The compiler driver will combine and reorder linker options,
7754         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7755         # but is careful enough not to reorder.
7756         # Supported since Solaris 2.6 (maybe 2.5.1?)
7757         if test "$GCC" = yes; then
7758           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7759         else
7760           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7761         fi
7762         ;;
7763       esac
7764       link_all_deplibs=yes
7765       ;;
7766
7767     sunos4*)
7768       if test "x$host_vendor" = xsequent; then
7769         # Use $CC to link under sequent, because it throws in some extra .o
7770         # files that make .init and .fini sections work.
7771         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7772       else
7773         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7774       fi
7775       hardcode_libdir_flag_spec='-L$libdir'
7776       hardcode_direct=yes
7777       hardcode_minus_L=yes
7778       hardcode_shlibpath_var=no
7779       ;;
7780
7781     sysv4)
7782       case $host_vendor in
7783         sni)
7784           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7785           hardcode_direct=yes # is this really true???
7786         ;;
7787         siemens)
7788           ## LD is ld it makes a PLAMLIB
7789           ## CC just makes a GrossModule.
7790           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7791           reload_cmds='$CC -r -o $output$reload_objs'
7792           hardcode_direct=no
7793         ;;
7794         motorola)
7795           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7797         ;;
7798       esac
7799       runpath_var='LD_RUN_PATH'
7800       hardcode_shlibpath_var=no
7801       ;;
7802
7803     sysv4.3*)
7804       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7805       hardcode_shlibpath_var=no
7806       export_dynamic_flag_spec='-Bexport'
7807       ;;
7808
7809     sysv4*MP*)
7810       if test -d /usr/nec; then
7811         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812         hardcode_shlibpath_var=no
7813         runpath_var=LD_RUN_PATH
7814         hardcode_runpath_var=yes
7815         ld_shlibs=yes
7816       fi
7817       ;;
7818
7819     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7820       no_undefined_flag='${wl}-z,text'
7821       archive_cmds_need_lc=no
7822       hardcode_shlibpath_var=no
7823       runpath_var='LD_RUN_PATH'
7824
7825       if test "$GCC" = yes; then
7826         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7827         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7828       else
7829         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7830         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7831       fi
7832       ;;
7833
7834     sysv5* | sco3.2v5* | sco5v6*)
7835       # Note: We can NOT use -z defs as we might desire, because we do not
7836       # link with -lc, and that would cause any symbols used from libc to
7837       # always be unresolved, which means just about no library would
7838       # ever link correctly.  If we're not using GNU ld we use -z text
7839       # though, which does catch some bad symbols but isn't as heavy-handed
7840       # as -z defs.
7841       no_undefined_flag='${wl}-z,text'
7842       allow_undefined_flag='${wl}-z,nodefs'
7843       archive_cmds_need_lc=no
7844       hardcode_shlibpath_var=no
7845       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7846       hardcode_libdir_separator=':'
7847       link_all_deplibs=yes
7848       export_dynamic_flag_spec='${wl}-Bexport'
7849       runpath_var='LD_RUN_PATH'
7850
7851       if test "$GCC" = yes; then
7852         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7853         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7854       else
7855         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7857       fi
7858       ;;
7859
7860     uts4*)
7861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7862       hardcode_libdir_flag_spec='-L$libdir'
7863       hardcode_shlibpath_var=no
7864       ;;
7865
7866     *)
7867       ld_shlibs=no
7868       ;;
7869     esac
7870   fi
7871
7872 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7873 echo "${ECHO_T}$ld_shlibs" >&6; }
7874 test "$ld_shlibs" = no && can_build_shared=no
7875
7876 #
7877 # Do we need to explicitly link libc?
7878 #
7879 case "x$archive_cmds_need_lc" in
7880 x|xyes)
7881   # Assume -lc should be added
7882   archive_cmds_need_lc=yes
7883
7884   if test "$enable_shared" = yes && test "$GCC" = yes; then
7885     case $archive_cmds in
7886     *'~'*)
7887       # FIXME: we may have to deal with multi-command sequences.
7888       ;;
7889     '$CC '*)
7890       # Test whether the compiler implicitly links with -lc since on some
7891       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7892       # to ld, don't add -lc before -lgcc.
7893       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7894 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7895       $rm conftest*
7896       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
7898       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7899   (eval $ac_compile) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } 2>conftest.err; then
7903         soname=conftest
7904         lib=conftest
7905         libobjs=conftest.$ac_objext
7906         deplibs=
7907         wl=$lt_prog_compiler_wl
7908         pic_flag=$lt_prog_compiler_pic
7909         compiler_flags=-v
7910         linker_flags=-v
7911         verstring=
7912         output_objdir=.
7913         libname=conftest
7914         lt_save_allow_undefined_flag=$allow_undefined_flag
7915         allow_undefined_flag=
7916         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7917   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }
7921         then
7922           archive_cmds_need_lc=no
7923         else
7924           archive_cmds_need_lc=yes
7925         fi
7926         allow_undefined_flag=$lt_save_allow_undefined_flag
7927       else
7928         cat conftest.err 1>&5
7929       fi
7930       $rm conftest*
7931       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7932 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7933       ;;
7934     esac
7935   fi
7936   ;;
7937 esac
7938
7939 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7941 library_names_spec=
7942 libname_spec='lib$name'
7943 soname_spec=
7944 shrext_cmds=".so"
7945 postinstall_cmds=
7946 postuninstall_cmds=
7947 finish_cmds=
7948 finish_eval=
7949 shlibpath_var=
7950 shlibpath_overrides_runpath=unknown
7951 version_type=none
7952 dynamic_linker="$host_os ld.so"
7953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7954
7955 if test "$GCC" = yes; then
7956   case $host_os in
7957     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7958     *) lt_awk_arg="/^libraries:/" ;;
7959   esac
7960   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7961   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7962     # if the path contains ";" then we assume it to be the separator
7963     # otherwise default to the standard path separator (i.e. ":") - it is
7964     # assumed that no part of a normal pathname contains ";" but that should
7965     # okay in the real world where ";" in dirpaths is itself problematic.
7966     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7967   else
7968     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7969   fi
7970   # Ok, now we have the path, separated by spaces, we can step through it
7971   # and add multilib dir if necessary.
7972   lt_tmp_lt_search_path_spec=
7973   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7974   for lt_sys_path in $lt_search_path_spec; do
7975     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7976       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7977     else
7978       test -d "$lt_sys_path" && \
7979         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7980     fi
7981   done
7982   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7983 BEGIN {RS=" "; FS="/|\n";} {
7984   lt_foo="";
7985   lt_count=0;
7986   for (lt_i = NF; lt_i > 0; lt_i--) {
7987     if ($lt_i != "" && $lt_i != ".") {
7988       if ($lt_i == "..") {
7989         lt_count++;
7990       } else {
7991         if (lt_count == 0) {
7992           lt_foo="/" $lt_i lt_foo;
7993         } else {
7994           lt_count--;
7995         }
7996       }
7997     }
7998   }
7999   if (lt_foo != "") { lt_freq[lt_foo]++; }
8000   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8001 }'`
8002   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8003 else
8004   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8005 fi
8006 need_lib_prefix=unknown
8007 hardcode_into_libs=no
8008
8009 # when you set need_version to no, make sure it does not cause -set_version
8010 # flags to be left without arguments
8011 need_version=unknown
8012
8013 case $host_os in
8014 aix3*)
8015   version_type=linux
8016   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8017   shlibpath_var=LIBPATH
8018
8019   # AIX 3 has no versioning support, so we append a major version to the name.
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   ;;
8022
8023 aix4* | aix5*)
8024   version_type=linux
8025   need_lib_prefix=no
8026   need_version=no
8027   hardcode_into_libs=yes
8028   if test "$host_cpu" = ia64; then
8029     # AIX 5 supports IA64
8030     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8031     shlibpath_var=LD_LIBRARY_PATH
8032   else
8033     # With GCC up to 2.95.x, collect2 would create an import file
8034     # for dependence libraries.  The import file would start with
8035     # the line `#! .'.  This would cause the generated library to
8036     # depend on `.', always an invalid library.  This was fixed in
8037     # development snapshots of GCC prior to 3.0.
8038     case $host_os in
8039       aix4 | aix4.[01] | aix4.[01].*)
8040       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8041            echo ' yes '
8042            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8043         :
8044       else
8045         can_build_shared=no
8046       fi
8047       ;;
8048     esac
8049     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8050     # soname into executable. Probably we can add versioning support to
8051     # collect2, so additional links can be useful in future.
8052     if test "$aix_use_runtimelinking" = yes; then
8053       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8054       # instead of lib<name>.a to let people know that these are not
8055       # typical AIX shared libraries.
8056       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057     else
8058       # We preserve .a as extension for shared libraries through AIX4.2
8059       # and later when we are not doing run time linking.
8060       library_names_spec='${libname}${release}.a $libname.a'
8061       soname_spec='${libname}${release}${shared_ext}$major'
8062     fi
8063     shlibpath_var=LIBPATH
8064   fi
8065   ;;
8066
8067 amigaos*)
8068   library_names_spec='$libname.ixlibrary $libname.a'
8069   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8070   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'
8071   ;;
8072
8073 beos*)
8074   library_names_spec='${libname}${shared_ext}'
8075   dynamic_linker="$host_os ld.so"
8076   shlibpath_var=LIBRARY_PATH
8077   ;;
8078
8079 bsdi[45]*)
8080   version_type=linux
8081   need_version=no
8082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8083   soname_spec='${libname}${release}${shared_ext}$major'
8084   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8085   shlibpath_var=LD_LIBRARY_PATH
8086   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8087   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8088   # the default ld.so.conf also contains /usr/contrib/lib and
8089   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8090   # libtool to hard-code these into programs
8091   ;;
8092
8093 cygwin* | mingw* | pw32*)
8094   version_type=windows
8095   shrext_cmds=".dll"
8096   need_version=no
8097   need_lib_prefix=no
8098
8099   case $GCC,$host_os in
8100   yes,cygwin* | yes,mingw* | yes,pw32*)
8101     library_names_spec='$libname.dll.a'
8102     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8103     postinstall_cmds='base_file=`basename \${file}`~
8104       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8105       dldir=$destdir/`dirname \$dlpath`~
8106       test -d \$dldir || mkdir -p \$dldir~
8107       $install_prog $dir/$dlname \$dldir/$dlname~
8108       chmod a+x \$dldir/$dlname'
8109     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8110       dlpath=$dir/\$dldll~
8111        $rm \$dlpath'
8112     shlibpath_overrides_runpath=yes
8113
8114     case $host_os in
8115     cygwin*)
8116       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8117       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8118       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8119       ;;
8120     mingw*)
8121       # MinGW DLLs use traditional 'lib' prefix
8122       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8123       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8124       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8125         # It is most probably a Windows format PATH printed by
8126         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8127         # path with ; separators, and with drive letters. We can handle the
8128         # drive letters (cygwin fileutils understands them), so leave them,
8129         # especially as we might pass files found there to a mingw objdump,
8130         # which wouldn't understand a cygwinified path. Ahh.
8131         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8132       else
8133         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8134       fi
8135       ;;
8136     pw32*)
8137       # pw32 DLLs use 'pw' prefix rather than 'lib'
8138       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8139       ;;
8140     esac
8141     ;;
8142
8143   *)
8144     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8145     ;;
8146   esac
8147   dynamic_linker='Win32 ld.exe'
8148   # FIXME: first we should search . and the directory the executable is in
8149   shlibpath_var=PATH
8150   ;;
8151
8152 darwin* | rhapsody*)
8153   dynamic_linker="$host_os dyld"
8154   version_type=darwin
8155   need_lib_prefix=no
8156   need_version=no
8157   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8158   soname_spec='${libname}${release}${major}$shared_ext'
8159   shlibpath_overrides_runpath=yes
8160   shlibpath_var=DYLD_LIBRARY_PATH
8161   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8162
8163   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8164   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8165   ;;
8166
8167 dgux*)
8168   version_type=linux
8169   need_lib_prefix=no
8170   need_version=no
8171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8172   soname_spec='${libname}${release}${shared_ext}$major'
8173   shlibpath_var=LD_LIBRARY_PATH
8174   ;;
8175
8176 freebsd1*)
8177   dynamic_linker=no
8178   ;;
8179
8180 freebsd* | dragonfly*)
8181   # DragonFly does not have aout.  When/if they implement a new
8182   # versioning mechanism, adjust this.
8183   if test -x /usr/bin/objformat; then
8184     objformat=`/usr/bin/objformat`
8185   else
8186     case $host_os in
8187     freebsd[123]*) objformat=aout ;;
8188     *) objformat=elf ;;
8189     esac
8190   fi
8191   version_type=freebsd-$objformat
8192   case $version_type in
8193     freebsd-elf*)
8194       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8195       need_version=no
8196       need_lib_prefix=no
8197       ;;
8198     freebsd-*)
8199       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8200       need_version=yes
8201       ;;
8202   esac
8203   shlibpath_var=LD_LIBRARY_PATH
8204   case $host_os in
8205   freebsd2*)
8206     shlibpath_overrides_runpath=yes
8207     ;;
8208   freebsd3.[01]* | freebsdelf3.[01]*)
8209     shlibpath_overrides_runpath=yes
8210     hardcode_into_libs=yes
8211     ;;
8212   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8213   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8214     shlibpath_overrides_runpath=no
8215     hardcode_into_libs=yes
8216     ;;
8217   *) # from 4.6 on, and DragonFly
8218     shlibpath_overrides_runpath=yes
8219     hardcode_into_libs=yes
8220     ;;
8221   esac
8222   ;;
8223
8224 gnu*)
8225   version_type=linux
8226   need_lib_prefix=no
8227   need_version=no
8228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8229   soname_spec='${libname}${release}${shared_ext}$major'
8230   shlibpath_var=LD_LIBRARY_PATH
8231   hardcode_into_libs=yes
8232   ;;
8233
8234 hpux9* | hpux10* | hpux11*)
8235   # Give a soname corresponding to the major version so that dld.sl refuses to
8236   # link against other versions.
8237   version_type=sunos
8238   need_lib_prefix=no
8239   need_version=no
8240   case $host_cpu in
8241   ia64*)
8242     shrext_cmds='.so'
8243     hardcode_into_libs=yes
8244     dynamic_linker="$host_os dld.so"
8245     shlibpath_var=LD_LIBRARY_PATH
8246     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248     soname_spec='${libname}${release}${shared_ext}$major'
8249     if test "X$HPUX_IA64_MODE" = X32; then
8250       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8251     else
8252       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8253     fi
8254     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8255     ;;
8256    hppa*64*)
8257      shrext_cmds='.sl'
8258      hardcode_into_libs=yes
8259      dynamic_linker="$host_os dld.sl"
8260      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8261      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8262      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8263      soname_spec='${libname}${release}${shared_ext}$major'
8264      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8265      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8266      ;;
8267    *)
8268     shrext_cmds='.sl'
8269     dynamic_linker="$host_os dld.sl"
8270     shlibpath_var=SHLIB_PATH
8271     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273     soname_spec='${libname}${release}${shared_ext}$major'
8274     ;;
8275   esac
8276   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8277   postinstall_cmds='chmod 555 $lib'
8278   ;;
8279
8280 interix[3-9]*)
8281   version_type=linux
8282   need_lib_prefix=no
8283   need_version=no
8284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8285   soname_spec='${libname}${release}${shared_ext}$major'
8286   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8287   shlibpath_var=LD_LIBRARY_PATH
8288   shlibpath_overrides_runpath=no
8289   hardcode_into_libs=yes
8290   ;;
8291
8292 irix5* | irix6* | nonstopux*)
8293   case $host_os in
8294     nonstopux*) version_type=nonstopux ;;
8295     *)
8296         if test "$lt_cv_prog_gnu_ld" = yes; then
8297                 version_type=linux
8298         else
8299                 version_type=irix
8300         fi ;;
8301   esac
8302   need_lib_prefix=no
8303   need_version=no
8304   soname_spec='${libname}${release}${shared_ext}$major'
8305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8306   case $host_os in
8307   irix5* | nonstopux*)
8308     libsuff= shlibsuff=
8309     ;;
8310   *)
8311     case $LD in # libtool.m4 will add one of these switches to LD
8312     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8313       libsuff= shlibsuff= libmagic=32-bit;;
8314     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8315       libsuff=32 shlibsuff=N32 libmagic=N32;;
8316     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8317       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8318     *) libsuff= shlibsuff= libmagic=never-match;;
8319     esac
8320     ;;
8321   esac
8322   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8323   shlibpath_overrides_runpath=no
8324   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8325   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8326   hardcode_into_libs=yes
8327   ;;
8328
8329 # No shared lib support for Linux oldld, aout, or coff.
8330 linux*oldld* | linux*aout* | linux*coff*)
8331   dynamic_linker=no
8332   ;;
8333
8334 # This must be Linux ELF.
8335 linux* | k*bsd*-gnu)
8336   version_type=linux
8337   need_lib_prefix=no
8338   need_version=no
8339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8340   soname_spec='${libname}${release}${shared_ext}$major'
8341   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8342   shlibpath_var=LD_LIBRARY_PATH
8343   shlibpath_overrides_runpath=no
8344   # This implies no fast_install, which is unacceptable.
8345   # Some rework will be needed to allow for fast_install
8346   # before this can be enabled.
8347   hardcode_into_libs=yes
8348
8349   # Append ld.so.conf contents to the search path
8350   if test -f /etc/ld.so.conf; then
8351     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' ' '`
8352     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8353   fi
8354
8355   # We used to test for /lib/ld.so.1 and disable shared libraries on
8356   # powerpc, because MkLinux only supported shared libraries with the
8357   # GNU dynamic linker.  Since this was broken with cross compilers,
8358   # most powerpc-linux boxes support dynamic linking these days and
8359   # people can always --disable-shared, the test was removed, and we
8360   # assume the GNU/Linux dynamic linker is in use.
8361   dynamic_linker='GNU/Linux ld.so'
8362   ;;
8363
8364 netbsd*)
8365   version_type=sunos
8366   need_lib_prefix=no
8367   need_version=no
8368   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8370     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8371     dynamic_linker='NetBSD (a.out) ld.so'
8372   else
8373     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8374     soname_spec='${libname}${release}${shared_ext}$major'
8375     dynamic_linker='NetBSD ld.elf_so'
8376   fi
8377   shlibpath_var=LD_LIBRARY_PATH
8378   shlibpath_overrides_runpath=yes
8379   hardcode_into_libs=yes
8380   ;;
8381
8382 newsos6)
8383   version_type=linux
8384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8385   shlibpath_var=LD_LIBRARY_PATH
8386   shlibpath_overrides_runpath=yes
8387   ;;
8388
8389 nto-qnx*)
8390   version_type=linux
8391   need_lib_prefix=no
8392   need_version=no
8393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394   soname_spec='${libname}${release}${shared_ext}$major'
8395   shlibpath_var=LD_LIBRARY_PATH
8396   shlibpath_overrides_runpath=yes
8397   ;;
8398
8399 openbsd*)
8400   version_type=sunos
8401   sys_lib_dlsearch_path_spec="/usr/lib"
8402   need_lib_prefix=no
8403   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8404   case $host_os in
8405     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8406     *)                         need_version=no  ;;
8407   esac
8408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8410   shlibpath_var=LD_LIBRARY_PATH
8411   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8412     case $host_os in
8413       openbsd2.[89] | openbsd2.[89].*)
8414         shlibpath_overrides_runpath=no
8415         ;;
8416       *)
8417         shlibpath_overrides_runpath=yes
8418         ;;
8419       esac
8420   else
8421     shlibpath_overrides_runpath=yes
8422   fi
8423   ;;
8424
8425 os2*)
8426   libname_spec='$name'
8427   shrext_cmds=".dll"
8428   need_lib_prefix=no
8429   library_names_spec='$libname${shared_ext} $libname.a'
8430   dynamic_linker='OS/2 ld.exe'
8431   shlibpath_var=LIBPATH
8432   ;;
8433
8434 osf3* | osf4* | osf5*)
8435   version_type=osf
8436   need_lib_prefix=no
8437   need_version=no
8438   soname_spec='${libname}${release}${shared_ext}$major'
8439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440   shlibpath_var=LD_LIBRARY_PATH
8441   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8442   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8443   ;;
8444
8445 rdos*)
8446   dynamic_linker=no
8447   ;;
8448
8449 solaris*)
8450   version_type=linux
8451   need_lib_prefix=no
8452   need_version=no
8453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8454   soname_spec='${libname}${release}${shared_ext}$major'
8455   shlibpath_var=LD_LIBRARY_PATH
8456   shlibpath_overrides_runpath=yes
8457   hardcode_into_libs=yes
8458   # ldd complains unless libraries are executable
8459   postinstall_cmds='chmod +x $lib'
8460   ;;
8461
8462 sunos4*)
8463   version_type=sunos
8464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8465   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8466   shlibpath_var=LD_LIBRARY_PATH
8467   shlibpath_overrides_runpath=yes
8468   if test "$with_gnu_ld" = yes; then
8469     need_lib_prefix=no
8470   fi
8471   need_version=yes
8472   ;;
8473
8474 sysv4 | sysv4.3*)
8475   version_type=linux
8476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8477   soname_spec='${libname}${release}${shared_ext}$major'
8478   shlibpath_var=LD_LIBRARY_PATH
8479   case $host_vendor in
8480     sni)
8481       shlibpath_overrides_runpath=no
8482       need_lib_prefix=no
8483       export_dynamic_flag_spec='${wl}-Blargedynsym'
8484       runpath_var=LD_RUN_PATH
8485       ;;
8486     siemens)
8487       need_lib_prefix=no
8488       ;;
8489     motorola)
8490       need_lib_prefix=no
8491       need_version=no
8492       shlibpath_overrides_runpath=no
8493       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8494       ;;
8495   esac
8496   ;;
8497
8498 sysv4*MP*)
8499   if test -d /usr/nec ;then
8500     version_type=linux
8501     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8502     soname_spec='$libname${shared_ext}.$major'
8503     shlibpath_var=LD_LIBRARY_PATH
8504   fi
8505   ;;
8506
8507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8508   version_type=freebsd-elf
8509   need_lib_prefix=no
8510   need_version=no
8511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8512   soname_spec='${libname}${release}${shared_ext}$major'
8513   shlibpath_var=LD_LIBRARY_PATH
8514   hardcode_into_libs=yes
8515   if test "$with_gnu_ld" = yes; then
8516     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8517     shlibpath_overrides_runpath=no
8518   else
8519     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8520     shlibpath_overrides_runpath=yes
8521     case $host_os in
8522       sco3.2v5*)
8523         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8524         ;;
8525     esac
8526   fi
8527   sys_lib_dlsearch_path_spec='/usr/lib'
8528   ;;
8529
8530 uts4*)
8531   version_type=linux
8532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533   soname_spec='${libname}${release}${shared_ext}$major'
8534   shlibpath_var=LD_LIBRARY_PATH
8535   ;;
8536
8537 *)
8538   dynamic_linker=no
8539   ;;
8540 esac
8541 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8542 echo "${ECHO_T}$dynamic_linker" >&6; }
8543 test "$dynamic_linker" = no && can_build_shared=no
8544
8545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8546 if test "$GCC" = yes; then
8547   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8548 fi
8549
8550 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8552 hardcode_action=
8553 if test -n "$hardcode_libdir_flag_spec" || \
8554    test -n "$runpath_var" || \
8555    test "X$hardcode_automatic" = "Xyes" ; then
8556
8557   # We can hardcode non-existant directories.
8558   if test "$hardcode_direct" != no &&
8559      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8560      # have to relink, otherwise we might link with an installed library
8561      # when we should be linking with a yet-to-be-installed one
8562      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8563      test "$hardcode_minus_L" != no; then
8564     # Linking always hardcodes the temporary library directory.
8565     hardcode_action=relink
8566   else
8567     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8568     hardcode_action=immediate
8569   fi
8570 else
8571   # We cannot hardcode anything, or else we can only hardcode existing
8572   # directories.
8573   hardcode_action=unsupported
8574 fi
8575 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8576 echo "${ECHO_T}$hardcode_action" >&6; }
8577
8578 if test "$hardcode_action" = relink; then
8579   # Fast installation is not supported
8580   enable_fast_install=no
8581 elif test "$shlibpath_overrides_runpath" = yes ||
8582      test "$enable_shared" = no; then
8583   # Fast installation is not necessary
8584   enable_fast_install=needless
8585 fi
8586
8587 striplib=
8588 old_striplib=
8589 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8591 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8592   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8593   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8594   { echo "$as_me:$LINENO: result: yes" >&5
8595 echo "${ECHO_T}yes" >&6; }
8596 else
8597 # FIXME - insert some real tests, host_os isn't really good enough
8598   case $host_os in
8599    darwin*)
8600        if test -n "$STRIP" ; then
8601          striplib="$STRIP -x"
8602          old_striplib="$STRIP -S"
8603          { echo "$as_me:$LINENO: result: yes" >&5
8604 echo "${ECHO_T}yes" >&6; }
8605        else
8606   { echo "$as_me:$LINENO: result: no" >&5
8607 echo "${ECHO_T}no" >&6; }
8608 fi
8609        ;;
8610    *)
8611   { echo "$as_me:$LINENO: result: no" >&5
8612 echo "${ECHO_T}no" >&6; }
8613     ;;
8614   esac
8615 fi
8616
8617 if test "x$enable_dlopen" != xyes; then
8618   enable_dlopen=unknown
8619   enable_dlopen_self=unknown
8620   enable_dlopen_self_static=unknown
8621 else
8622   lt_cv_dlopen=no
8623   lt_cv_dlopen_libs=
8624
8625   case $host_os in
8626   beos*)
8627     lt_cv_dlopen="load_add_on"
8628     lt_cv_dlopen_libs=
8629     lt_cv_dlopen_self=yes
8630     ;;
8631
8632   mingw* | pw32*)
8633     lt_cv_dlopen="LoadLibrary"
8634     lt_cv_dlopen_libs=
8635    ;;
8636
8637   cygwin*)
8638     lt_cv_dlopen="dlopen"
8639     lt_cv_dlopen_libs=
8640    ;;
8641
8642   darwin*)
8643   # if libdl is installed we need to link against it
8644     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   ac_check_lib_save_LIBS=$LIBS
8650 LIBS="-ldl  $LIBS"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657
8658 /* Override any GCC internal prototype to avoid an error.
8659    Use char because int might match the return type of a GCC
8660    builtin and then its argument prototype would still apply.  */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 char dlopen ();
8665 int
8666 main ()
8667 {
8668 return dlopen ();
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (ac_try="$ac_link"
8675 case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_link") 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } && {
8687          test -z "$ac_c_werror_flag" ||
8688          test ! -s conftest.err
8689        } && test -s conftest$ac_exeext &&
8690        $as_test_x conftest$ac_exeext; then
8691   ac_cv_lib_dl_dlopen=yes
8692 else
8693   echo "$as_me: failed program was:" >&5
8694 sed 's/^/| /' conftest.$ac_ext >&5
8695
8696         ac_cv_lib_dl_dlopen=no
8697 fi
8698
8699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8700       conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8702 fi
8703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8705 if test $ac_cv_lib_dl_dlopen = yes; then
8706   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8707 else
8708
8709     lt_cv_dlopen="dyld"
8710     lt_cv_dlopen_libs=
8711     lt_cv_dlopen_self=yes
8712
8713 fi
8714
8715    ;;
8716
8717   *)
8718     { echo "$as_me:$LINENO: checking for shl_load" >&5
8719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8720 if test "${ac_cv_func_shl_load+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8731 #define shl_load innocuous_shl_load
8732
8733 /* System header to define __stub macros and hopefully few prototypes,
8734     which can conflict with char shl_load (); below.
8735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8736     <limits.h> exists even on freestanding compilers.  */
8737
8738 #ifdef __STDC__
8739 # include <limits.h>
8740 #else
8741 # include <assert.h>
8742 #endif
8743
8744 #undef shl_load
8745
8746 /* Override any GCC internal prototype to avoid an error.
8747    Use char because int might match the return type of a GCC
8748    builtin and then its argument prototype would still apply.  */
8749 #ifdef __cplusplus
8750 extern "C"
8751 #endif
8752 char shl_load ();
8753 /* The GNU C library defines this for functions which it implements
8754     to always fail with ENOSYS.  Some functions are actually named
8755     something starting with __ and the normal name is an alias.  */
8756 #if defined __stub_shl_load || defined __stub___shl_load
8757 choke me
8758 #endif
8759
8760 int
8761 main ()
8762 {
8763 return shl_load ();
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (ac_try="$ac_link"
8770 case "(($ac_try" in
8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772   *) ac_try_echo=$ac_try;;
8773 esac
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775   (eval "$ac_link") 2>conftest.er1
8776   ac_status=$?
8777   grep -v '^ *+' conftest.er1 >conftest.err
8778   rm -f conftest.er1
8779   cat conftest.err >&5
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); } && {
8782          test -z "$ac_c_werror_flag" ||
8783          test ! -s conftest.err
8784        } && test -s conftest$ac_exeext &&
8785        $as_test_x conftest$ac_exeext; then
8786   ac_cv_func_shl_load=yes
8787 else
8788   echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8790
8791         ac_cv_func_shl_load=no
8792 fi
8793
8794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8795       conftest$ac_exeext conftest.$ac_ext
8796 fi
8797 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8799 if test $ac_cv_func_shl_load = yes; then
8800   lt_cv_dlopen="shl_load"
8801 else
8802   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807   ac_check_lib_save_LIBS=$LIBS
8808 LIBS="-ldld  $LIBS"
8809 cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815
8816 /* Override any GCC internal prototype to avoid an error.
8817    Use char because int might match the return type of a GCC
8818    builtin and then its argument prototype would still apply.  */
8819 #ifdef __cplusplus
8820 extern "C"
8821 #endif
8822 char shl_load ();
8823 int
8824 main ()
8825 {
8826 return shl_load ();
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_link") 2>conftest.er1
8839   ac_status=$?
8840   grep -v '^ *+' conftest.er1 >conftest.err
8841   rm -f conftest.er1
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } && {
8845          test -z "$ac_c_werror_flag" ||
8846          test ! -s conftest.err
8847        } && test -s conftest$ac_exeext &&
8848        $as_test_x conftest$ac_exeext; then
8849   ac_cv_lib_dld_shl_load=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         ac_cv_lib_dld_shl_load=no
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8858       conftest$ac_exeext conftest.$ac_ext
8859 LIBS=$ac_check_lib_save_LIBS
8860 fi
8861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8863 if test $ac_cv_lib_dld_shl_load = yes; then
8864   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8865 else
8866   { echo "$as_me:$LINENO: checking for dlopen" >&5
8867 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8868 if test "${ac_cv_func_dlopen+set}" = set; then
8869   echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871   cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h.  */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h.  */
8877 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8879 #define dlopen innocuous_dlopen
8880
8881 /* System header to define __stub macros and hopefully few prototypes,
8882     which can conflict with char dlopen (); below.
8883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8884     <limits.h> exists even on freestanding compilers.  */
8885
8886 #ifdef __STDC__
8887 # include <limits.h>
8888 #else
8889 # include <assert.h>
8890 #endif
8891
8892 #undef dlopen
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 dlopen ();
8901 /* The GNU C library defines this for functions which it implements
8902     to always fail with ENOSYS.  Some functions are actually named
8903     something starting with __ and the normal name is an alias.  */
8904 #if defined __stub_dlopen || defined __stub___dlopen
8905 choke me
8906 #endif
8907
8908 int
8909 main ()
8910 {
8911 return dlopen ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } && {
8930          test -z "$ac_c_werror_flag" ||
8931          test ! -s conftest.err
8932        } && test -s conftest$ac_exeext &&
8933        $as_test_x conftest$ac_exeext; then
8934   ac_cv_func_dlopen=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939         ac_cv_func_dlopen=no
8940 fi
8941
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943       conftest$ac_exeext conftest.$ac_ext
8944 fi
8945 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8946 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8947 if test $ac_cv_func_dlopen = yes; then
8948   lt_cv_dlopen="dlopen"
8949 else
8950   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-ldl  $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h.  */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h.  */
8963
8964 /* Override any GCC internal prototype to avoid an error.
8965    Use char because int might match the return type of a GCC
8966    builtin and then its argument prototype would still apply.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 char dlopen ();
8971 int
8972 main ()
8973 {
8974 return dlopen ();
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (ac_try="$ac_link"
8981 case "(($ac_try" in
8982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8983   *) ac_try_echo=$ac_try;;
8984 esac
8985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8986   (eval "$ac_link") 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } && {
8993          test -z "$ac_c_werror_flag" ||
8994          test ! -s conftest.err
8995        } && test -s conftest$ac_exeext &&
8996        $as_test_x conftest$ac_exeext; then
8997   ac_cv_lib_dl_dlopen=yes
8998 else
8999   echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002         ac_cv_lib_dl_dlopen=no
9003 fi
9004
9005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9006       conftest$ac_exeext conftest.$ac_ext
9007 LIBS=$ac_check_lib_save_LIBS
9008 fi
9009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9011 if test $ac_cv_lib_dl_dlopen = yes; then
9012   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9013 else
9014   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9015 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019   ac_check_lib_save_LIBS=$LIBS
9020 LIBS="-lsvld  $LIBS"
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027
9028 /* Override any GCC internal prototype to avoid an error.
9029    Use char because int might match the return type of a GCC
9030    builtin and then its argument prototype would still apply.  */
9031 #ifdef __cplusplus
9032 extern "C"
9033 #endif
9034 char dlopen ();
9035 int
9036 main ()
9037 {
9038 return dlopen ();
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (ac_try="$ac_link"
9045 case "(($ac_try" in
9046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9047   *) ac_try_echo=$ac_try;;
9048 esac
9049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9050   (eval "$ac_link") 2>conftest.er1
9051   ac_status=$?
9052   grep -v '^ *+' conftest.er1 >conftest.err
9053   rm -f conftest.er1
9054   cat conftest.err >&5
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } && {
9057          test -z "$ac_c_werror_flag" ||
9058          test ! -s conftest.err
9059        } && test -s conftest$ac_exeext &&
9060        $as_test_x conftest$ac_exeext; then
9061   ac_cv_lib_svld_dlopen=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066         ac_cv_lib_svld_dlopen=no
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9070       conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9072 fi
9073 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9074 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9075 if test $ac_cv_lib_svld_dlopen = yes; then
9076   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9077 else
9078   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9079 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9080 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   ac_check_lib_save_LIBS=$LIBS
9084 LIBS="-ldld  $LIBS"
9085 cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h.  */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h.  */
9091
9092 /* Override any GCC internal prototype to avoid an error.
9093    Use char because int might match the return type of a GCC
9094    builtin and then its argument prototype would still apply.  */
9095 #ifdef __cplusplus
9096 extern "C"
9097 #endif
9098 char dld_link ();
9099 int
9100 main ()
9101 {
9102 return dld_link ();
9103   ;
9104   return 0;
9105 }
9106 _ACEOF
9107 rm -f conftest.$ac_objext conftest$ac_exeext
9108 if { (ac_try="$ac_link"
9109 case "(($ac_try" in
9110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111   *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114   (eval "$ac_link") 2>conftest.er1
9115   ac_status=$?
9116   grep -v '^ *+' conftest.er1 >conftest.err
9117   rm -f conftest.er1
9118   cat conftest.err >&5
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); } && {
9121          test -z "$ac_c_werror_flag" ||
9122          test ! -s conftest.err
9123        } && test -s conftest$ac_exeext &&
9124        $as_test_x conftest$ac_exeext; then
9125   ac_cv_lib_dld_dld_link=yes
9126 else
9127   echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130         ac_cv_lib_dld_dld_link=no
9131 fi
9132
9133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134       conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_lib_save_LIBS
9136 fi
9137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9139 if test $ac_cv_lib_dld_dld_link = yes; then
9140   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9141 fi
9142
9143
9144 fi
9145
9146
9147 fi
9148
9149
9150 fi
9151
9152
9153 fi
9154
9155
9156 fi
9157
9158     ;;
9159   esac
9160
9161   if test "x$lt_cv_dlopen" != xno; then
9162     enable_dlopen=yes
9163   else
9164     enable_dlopen=no
9165   fi
9166
9167   case $lt_cv_dlopen in
9168   dlopen)
9169     save_CPPFLAGS="$CPPFLAGS"
9170     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9171
9172     save_LDFLAGS="$LDFLAGS"
9173     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9174
9175     save_LIBS="$LIBS"
9176     LIBS="$lt_cv_dlopen_libs $LIBS"
9177
9178     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9180 if test "${lt_cv_dlopen_self+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183           if test "$cross_compiling" = yes; then :
9184   lt_cv_dlopen_self=cross
9185 else
9186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187   lt_status=$lt_dlunknown
9188   cat > conftest.$ac_ext <<EOF
9189 #line 9189 "configure"
9190 #include "confdefs.h"
9191
9192 #if HAVE_DLFCN_H
9193 #include <dlfcn.h>
9194 #endif
9195
9196 #include <stdio.h>
9197
9198 #ifdef RTLD_GLOBAL
9199 #  define LT_DLGLOBAL           RTLD_GLOBAL
9200 #else
9201 #  ifdef DL_GLOBAL
9202 #    define LT_DLGLOBAL         DL_GLOBAL
9203 #  else
9204 #    define LT_DLGLOBAL         0
9205 #  endif
9206 #endif
9207
9208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209    find out it does not work in some platform. */
9210 #ifndef LT_DLLAZY_OR_NOW
9211 #  ifdef RTLD_LAZY
9212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9213 #  else
9214 #    ifdef DL_LAZY
9215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9216 #    else
9217 #      ifdef RTLD_NOW
9218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9219 #      else
9220 #        ifdef DL_NOW
9221 #          define LT_DLLAZY_OR_NOW      DL_NOW
9222 #        else
9223 #          define LT_DLLAZY_OR_NOW      0
9224 #        endif
9225 #      endif
9226 #    endif
9227 #  endif
9228 #endif
9229
9230 #ifdef __cplusplus
9231 extern "C" void exit (int);
9232 #endif
9233
9234 void fnord() { int i=42;}
9235 int main ()
9236 {
9237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238   int status = $lt_dlunknown;
9239
9240   if (self)
9241     {
9242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244       /* dlclose (self); */
9245     }
9246   else
9247     puts (dlerror ());
9248
9249     exit (status);
9250 }
9251 EOF
9252   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257     (./conftest; exit; ) >&5 2>/dev/null
9258     lt_status=$?
9259     case x$lt_status in
9260       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9261       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9262       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9263     esac
9264   else :
9265     # compilation failed
9266     lt_cv_dlopen_self=no
9267   fi
9268 fi
9269 rm -fr conftest*
9270
9271
9272 fi
9273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9275
9276     if test "x$lt_cv_dlopen_self" = xyes; then
9277       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9278       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9280 if test "${lt_cv_dlopen_self_static+set}" = set; then
9281   echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283           if test "$cross_compiling" = yes; then :
9284   lt_cv_dlopen_self_static=cross
9285 else
9286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9287   lt_status=$lt_dlunknown
9288   cat > conftest.$ac_ext <<EOF
9289 #line 9289 "configure"
9290 #include "confdefs.h"
9291
9292 #if HAVE_DLFCN_H
9293 #include <dlfcn.h>
9294 #endif
9295
9296 #include <stdio.h>
9297
9298 #ifdef RTLD_GLOBAL
9299 #  define LT_DLGLOBAL           RTLD_GLOBAL
9300 #else
9301 #  ifdef DL_GLOBAL
9302 #    define LT_DLGLOBAL         DL_GLOBAL
9303 #  else
9304 #    define LT_DLGLOBAL         0
9305 #  endif
9306 #endif
9307
9308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9309    find out it does not work in some platform. */
9310 #ifndef LT_DLLAZY_OR_NOW
9311 #  ifdef RTLD_LAZY
9312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9313 #  else
9314 #    ifdef DL_LAZY
9315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9316 #    else
9317 #      ifdef RTLD_NOW
9318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9319 #      else
9320 #        ifdef DL_NOW
9321 #          define LT_DLLAZY_OR_NOW      DL_NOW
9322 #        else
9323 #          define LT_DLLAZY_OR_NOW      0
9324 #        endif
9325 #      endif
9326 #    endif
9327 #  endif
9328 #endif
9329
9330 #ifdef __cplusplus
9331 extern "C" void exit (int);
9332 #endif
9333
9334 void fnord() { int i=42;}
9335 int main ()
9336 {
9337   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9338   int status = $lt_dlunknown;
9339
9340   if (self)
9341     {
9342       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9343       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9344       /* dlclose (self); */
9345     }
9346   else
9347     puts (dlerror ());
9348
9349     exit (status);
9350 }
9351 EOF
9352   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9353   (eval $ac_link) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9357     (./conftest; exit; ) >&5 2>/dev/null
9358     lt_status=$?
9359     case x$lt_status in
9360       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9361       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9362       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9363     esac
9364   else :
9365     # compilation failed
9366     lt_cv_dlopen_self_static=no
9367   fi
9368 fi
9369 rm -fr conftest*
9370
9371
9372 fi
9373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9375     fi
9376
9377     CPPFLAGS="$save_CPPFLAGS"
9378     LDFLAGS="$save_LDFLAGS"
9379     LIBS="$save_LIBS"
9380     ;;
9381   esac
9382
9383   case $lt_cv_dlopen_self in
9384   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9385   *) enable_dlopen_self=unknown ;;
9386   esac
9387
9388   case $lt_cv_dlopen_self_static in
9389   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9390   *) enable_dlopen_self_static=unknown ;;
9391   esac
9392 fi
9393
9394
9395 # Report which library types will actually be built
9396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9399 echo "${ECHO_T}$can_build_shared" >&6; }
9400
9401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9403 test "$can_build_shared" = "no" && enable_shared=no
9404
9405 # On AIX, shared libraries and static libraries use the same namespace, and
9406 # are all built from PIC.
9407 case $host_os in
9408 aix3*)
9409   test "$enable_shared" = yes && enable_static=no
9410   if test -n "$RANLIB"; then
9411     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9412     postinstall_cmds='$RANLIB $lib'
9413   fi
9414   ;;
9415
9416 aix4* | aix5*)
9417   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9418     test "$enable_shared" = yes && enable_static=no
9419   fi
9420     ;;
9421 esac
9422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9423 echo "${ECHO_T}$enable_shared" >&6; }
9424
9425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9427 # Make sure either enable_shared or enable_static is yes.
9428 test "$enable_shared" = yes || enable_static=yes
9429 { echo "$as_me:$LINENO: result: $enable_static" >&5
9430 echo "${ECHO_T}$enable_static" >&6; }
9431
9432 # The else clause should only fire when bootstrapping the
9433 # libtool distribution, otherwise you forgot to ship ltmain.sh
9434 # with your package, and you will get complaints that there are
9435 # no rules to generate ltmain.sh.
9436 if test -f "$ltmain"; then
9437   # See if we are running on zsh, and set the options which allow our commands through
9438   # without removal of \ escapes.
9439   if test -n "${ZSH_VERSION+set}" ; then
9440     setopt NO_GLOB_SUBST
9441   fi
9442   # Now quote all the things that may contain metacharacters while being
9443   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9444   # variables and quote the copies for generation of the libtool script.
9445   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9446     SED SHELL STRIP \
9447     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9448     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9449     deplibs_check_method reload_flag reload_cmds need_locks \
9450     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9451     lt_cv_sys_global_symbol_to_c_name_address \
9452     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9453     old_postinstall_cmds old_postuninstall_cmds \
9454     compiler \
9455     CC \
9456     LD \
9457     lt_prog_compiler_wl \
9458     lt_prog_compiler_pic \
9459     lt_prog_compiler_static \
9460     lt_prog_compiler_no_builtin_flag \
9461     export_dynamic_flag_spec \
9462     thread_safe_flag_spec \
9463     whole_archive_flag_spec \
9464     enable_shared_with_static_runtimes \
9465     old_archive_cmds \
9466     old_archive_from_new_cmds \
9467     predep_objects \
9468     postdep_objects \
9469     predeps \
9470     postdeps \
9471     compiler_lib_search_path \
9472     archive_cmds \
9473     archive_expsym_cmds \
9474     postinstall_cmds \
9475     postuninstall_cmds \
9476     old_archive_from_expsyms_cmds \
9477     allow_undefined_flag \
9478     no_undefined_flag \
9479     export_symbols_cmds \
9480     hardcode_libdir_flag_spec \
9481     hardcode_libdir_flag_spec_ld \
9482     hardcode_libdir_separator \
9483     hardcode_automatic \
9484     module_cmds \
9485     module_expsym_cmds \
9486     lt_cv_prog_compiler_c_o \
9487     fix_srcfile_path \
9488     exclude_expsyms \
9489     include_expsyms; do
9490
9491     case $var in
9492     old_archive_cmds | \
9493     old_archive_from_new_cmds | \
9494     archive_cmds | \
9495     archive_expsym_cmds | \
9496     module_cmds | \
9497     module_expsym_cmds | \
9498     old_archive_from_expsyms_cmds | \
9499     export_symbols_cmds | \
9500     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9501     postinstall_cmds | postuninstall_cmds | \
9502     old_postinstall_cmds | old_postuninstall_cmds | \
9503     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9504       # Double-quote double-evaled strings.
9505       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9506       ;;
9507     *)
9508       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9509       ;;
9510     esac
9511   done
9512
9513   case $lt_echo in
9514   *'\$0 --fallback-echo"')
9515     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9516     ;;
9517   esac
9518
9519 cfgfile="${ofile}T"
9520   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9521   $rm -f "$cfgfile"
9522   { echo "$as_me:$LINENO: creating $ofile" >&5
9523 echo "$as_me: creating $ofile" >&6;}
9524
9525   cat <<__EOF__ >> "$cfgfile"
9526 #! $SHELL
9527
9528 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9529 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9531 #
9532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
9533 # Free Software Foundation, Inc.
9534 #
9535 # This file is part of GNU Libtool:
9536 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9537 #
9538 # This program is free software; you can redistribute it and/or modify
9539 # it under the terms of the GNU General Public License as published by
9540 # the Free Software Foundation; either version 2 of the License, or
9541 # (at your option) any later version.
9542 #
9543 # This program is distributed in the hope that it will be useful, but
9544 # WITHOUT ANY WARRANTY; without even the implied warranty of
9545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9546 # General Public License for more details.
9547 #
9548 # You should have received a copy of the GNU General Public License
9549 # along with this program; if not, write to the Free Software
9550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9551 #
9552 # As a special exception to the GNU General Public License, if you
9553 # distribute this file as part of a program that contains a
9554 # configuration script generated by Autoconf, you may include it under
9555 # the same distribution terms that you use for the rest of that program.
9556
9557 # A sed program that does not truncate output.
9558 SED=$lt_SED
9559
9560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9561 Xsed="$SED -e 1s/^X//"
9562
9563 # The HP-UX ksh and POSIX shell print the target directory to stdout
9564 # if CDPATH is set.
9565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9566
9567 # The names of the tagged configurations supported by this script.
9568 available_tags=
9569
9570 # ### BEGIN LIBTOOL CONFIG
9571
9572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9573
9574 # Shell to use when invoking shell scripts.
9575 SHELL=$lt_SHELL
9576
9577 # Whether or not to build shared libraries.
9578 build_libtool_libs=$enable_shared
9579
9580 # Whether or not to build static libraries.
9581 build_old_libs=$enable_static
9582
9583 # Whether or not to add -lc for building shared libraries.
9584 build_libtool_need_lc=$archive_cmds_need_lc
9585
9586 # Whether or not to disallow shared libs when runtime libs are static
9587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9588
9589 # Whether or not to optimize for fast installation.
9590 fast_install=$enable_fast_install
9591
9592 # The host system.
9593 host_alias=$host_alias
9594 host=$host
9595 host_os=$host_os
9596
9597 # The build system.
9598 build_alias=$build_alias
9599 build=$build
9600 build_os=$build_os
9601
9602 # An echo program that does not interpret backslashes.
9603 echo=$lt_echo
9604
9605 # The archiver.
9606 AR=$lt_AR
9607 AR_FLAGS=$lt_AR_FLAGS
9608
9609 # A C compiler.
9610 LTCC=$lt_LTCC
9611
9612 # LTCC compiler flags.
9613 LTCFLAGS=$lt_LTCFLAGS
9614
9615 # A language-specific compiler.
9616 CC=$lt_compiler
9617
9618 # Is the compiler the GNU C compiler?
9619 with_gcc=$GCC
9620
9621 # An ERE matcher.
9622 EGREP=$lt_EGREP
9623
9624 # The linker used to build libraries.
9625 LD=$lt_LD
9626
9627 # Whether we need hard or soft links.
9628 LN_S=$lt_LN_S
9629
9630 # A BSD-compatible nm program.
9631 NM=$lt_NM
9632
9633 # A symbol stripping program
9634 STRIP=$lt_STRIP
9635
9636 # Used to examine libraries when file_magic_cmd begins "file"
9637 MAGIC_CMD=$MAGIC_CMD
9638
9639 # Used on cygwin: DLL creation program.
9640 DLLTOOL="$DLLTOOL"
9641
9642 # Used on cygwin: object dumper.
9643 OBJDUMP="$OBJDUMP"
9644
9645 # Used on cygwin: assembler.
9646 AS="$AS"
9647
9648 # The name of the directory that contains temporary libtool files.
9649 objdir=$objdir
9650
9651 # How to create reloadable object files.
9652 reload_flag=$lt_reload_flag
9653 reload_cmds=$lt_reload_cmds
9654
9655 # How to pass a linker flag through the compiler.
9656 wl=$lt_lt_prog_compiler_wl
9657
9658 # Object file suffix (normally "o").
9659 objext="$ac_objext"
9660
9661 # Old archive suffix (normally "a").
9662 libext="$libext"
9663
9664 # Shared library suffix (normally ".so").
9665 shrext_cmds='$shrext_cmds'
9666
9667 # Executable file suffix (normally "").
9668 exeext="$exeext"
9669
9670 # Additional compiler flags for building library objects.
9671 pic_flag=$lt_lt_prog_compiler_pic
9672 pic_mode=$pic_mode
9673
9674 # What is the maximum length of a command?
9675 max_cmd_len=$lt_cv_sys_max_cmd_len
9676
9677 # Does compiler simultaneously support -c and -o options?
9678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9679
9680 # Must we lock files when doing compilation?
9681 need_locks=$lt_need_locks
9682
9683 # Do we need the lib prefix for modules?
9684 need_lib_prefix=$need_lib_prefix
9685
9686 # Do we need a version for libraries?
9687 need_version=$need_version
9688
9689 # Whether dlopen is supported.
9690 dlopen_support=$enable_dlopen
9691
9692 # Whether dlopen of programs is supported.
9693 dlopen_self=$enable_dlopen_self
9694
9695 # Whether dlopen of statically linked programs is supported.
9696 dlopen_self_static=$enable_dlopen_self_static
9697
9698 # Compiler flag to prevent dynamic linking.
9699 link_static_flag=$lt_lt_prog_compiler_static
9700
9701 # Compiler flag to turn off builtin functions.
9702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9703
9704 # Compiler flag to allow reflexive dlopens.
9705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9706
9707 # Compiler flag to generate shared objects directly from archives.
9708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9709
9710 # Compiler flag to generate thread-safe objects.
9711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9712
9713 # Library versioning type.
9714 version_type=$version_type
9715
9716 # Format of library name prefix.
9717 libname_spec=$lt_libname_spec
9718
9719 # List of archive names.  First name is the real one, the rest are links.
9720 # The last name is the one that the linker finds with -lNAME.
9721 library_names_spec=$lt_library_names_spec
9722
9723 # The coded name of the library, if different from the real name.
9724 soname_spec=$lt_soname_spec
9725
9726 # Commands used to build and install an old-style archive.
9727 RANLIB=$lt_RANLIB
9728 old_archive_cmds=$lt_old_archive_cmds
9729 old_postinstall_cmds=$lt_old_postinstall_cmds
9730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9731
9732 # Create an old-style archive from a shared archive.
9733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9734
9735 # Create a temporary old-style archive to link instead of a shared archive.
9736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9737
9738 # Commands used to build and install a shared archive.
9739 archive_cmds=$lt_archive_cmds
9740 archive_expsym_cmds=$lt_archive_expsym_cmds
9741 postinstall_cmds=$lt_postinstall_cmds
9742 postuninstall_cmds=$lt_postuninstall_cmds
9743
9744 # Commands used to build a loadable module (assumed same as above if empty)
9745 module_cmds=$lt_module_cmds
9746 module_expsym_cmds=$lt_module_expsym_cmds
9747
9748 # Commands to strip libraries.
9749 old_striplib=$lt_old_striplib
9750 striplib=$lt_striplib
9751
9752 # Dependencies to place before the objects being linked to create a
9753 # shared library.
9754 predep_objects=$lt_predep_objects
9755
9756 # Dependencies to place after the objects being linked to create a
9757 # shared library.
9758 postdep_objects=$lt_postdep_objects
9759
9760 # Dependencies to place before the objects being linked to create a
9761 # shared library.
9762 predeps=$lt_predeps
9763
9764 # Dependencies to place after the objects being linked to create a
9765 # shared library.
9766 postdeps=$lt_postdeps
9767
9768 # The library search path used internally by the compiler when linking
9769 # a shared library.
9770 compiler_lib_search_path=$lt_compiler_lib_search_path
9771
9772 # Method to check whether dependent libraries are shared objects.
9773 deplibs_check_method=$lt_deplibs_check_method
9774
9775 # Command to use when deplibs_check_method == file_magic.
9776 file_magic_cmd=$lt_file_magic_cmd
9777
9778 # Flag that allows shared libraries with undefined symbols to be built.
9779 allow_undefined_flag=$lt_allow_undefined_flag
9780
9781 # Flag that forces no undefined symbols.
9782 no_undefined_flag=$lt_no_undefined_flag
9783
9784 # Commands used to finish a libtool library installation in a directory.
9785 finish_cmds=$lt_finish_cmds
9786
9787 # Same as above, but a single script fragment to be evaled but not shown.
9788 finish_eval=$lt_finish_eval
9789
9790 # Take the output of nm and produce a listing of raw symbols and C names.
9791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9792
9793 # Transform the output of nm in a proper C declaration
9794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9795
9796 # Transform the output of nm in a C name address pair
9797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9798
9799 # This is the shared library runtime path variable.
9800 runpath_var=$runpath_var
9801
9802 # This is the shared library path variable.
9803 shlibpath_var=$shlibpath_var
9804
9805 # Is shlibpath searched before the hard-coded library search path?
9806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9807
9808 # How to hardcode a shared library path into an executable.
9809 hardcode_action=$hardcode_action
9810
9811 # Whether we should hardcode library paths into libraries.
9812 hardcode_into_libs=$hardcode_into_libs
9813
9814 # Flag to hardcode \$libdir into a binary during linking.
9815 # This must work even if \$libdir does not exist.
9816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9817
9818 # If ld is used when linking, flag to hardcode \$libdir into
9819 # a binary during linking. This must work even if \$libdir does
9820 # not exist.
9821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9822
9823 # Whether we need a single -rpath flag with a separated argument.
9824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9825
9826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9827 # resulting binary.
9828 hardcode_direct=$hardcode_direct
9829
9830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9831 # resulting binary.
9832 hardcode_minus_L=$hardcode_minus_L
9833
9834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9835 # the resulting binary.
9836 hardcode_shlibpath_var=$hardcode_shlibpath_var
9837
9838 # Set to yes if building a shared library automatically hardcodes DIR into the library
9839 # and all subsequent libraries and executables linked against it.
9840 hardcode_automatic=$hardcode_automatic
9841
9842 # Variables whose values should be saved in libtool wrapper scripts and
9843 # restored at relink time.
9844 variables_saved_for_relink="$variables_saved_for_relink"
9845
9846 # Whether libtool must link a program against all its dependency libraries.
9847 link_all_deplibs=$link_all_deplibs
9848
9849 # Compile-time system search path for libraries
9850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9851
9852 # Run-time system search path for libraries
9853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9854
9855 # Fix the shell variable \$srcfile for the compiler.
9856 fix_srcfile_path=$lt_fix_srcfile_path
9857
9858 # Set to yes if exported symbols are required.
9859 always_export_symbols=$always_export_symbols
9860
9861 # The commands to list exported symbols.
9862 export_symbols_cmds=$lt_export_symbols_cmds
9863
9864 # The commands to extract the exported symbol list from a shared archive.
9865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9866
9867 # Symbols that should not be listed in the preloaded symbols.
9868 exclude_expsyms=$lt_exclude_expsyms
9869
9870 # Symbols that must always be exported.
9871 include_expsyms=$lt_include_expsyms
9872
9873 # ### END LIBTOOL CONFIG
9874
9875 __EOF__
9876
9877
9878   case $host_os in
9879   aix3*)
9880     cat <<\EOF >> "$cfgfile"
9881
9882 # AIX sometimes has problems with the GCC collect2 program.  For some
9883 # reason, if we set the COLLECT_NAMES environment variable, the problems
9884 # vanish in a puff of smoke.
9885 if test "X${COLLECT_NAMES+set}" != Xset; then
9886   COLLECT_NAMES=
9887   export COLLECT_NAMES
9888 fi
9889 EOF
9890     ;;
9891   esac
9892
9893   # We use sed instead of cat because bash on DJGPP gets confused if
9894   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9895   # text mode, it properly converts lines to CR/LF.  This bash problem
9896   # is reportedly fixed, but why not run on old versions too?
9897   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9898
9899   mv -f "$cfgfile" "$ofile" || \
9900     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9901   chmod +x "$ofile"
9902
9903 else
9904   # If there is no Makefile yet, we rely on a make rule to execute
9905   # `config.status --recheck' to rerun these tests and create the
9906   # libtool script then.
9907   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9908   if test -f "$ltmain_in"; then
9909     test -f Makefile && make "$ltmain"
9910   fi
9911 fi
9912
9913
9914 ac_ext=c
9915 ac_cpp='$CPP $CPPFLAGS'
9916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9919
9920 CC="$lt_save_CC"
9921
9922
9923 # Check whether --with-tags was given.
9924 if test "${with_tags+set}" = set; then
9925   withval=$with_tags; tagnames="$withval"
9926 fi
9927
9928
9929 if test -f "$ltmain" && test -n "$tagnames"; then
9930   if test ! -f "${ofile}"; then
9931     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9932 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9933   fi
9934
9935   if test -z "$LTCC"; then
9936     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9937     if test -z "$LTCC"; then
9938       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9939 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9940     else
9941       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9942 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9943     fi
9944   fi
9945   if test -z "$LTCFLAGS"; then
9946     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9947   fi
9948
9949   # Extract list of available tagged configurations in $ofile.
9950   # Note that this assumes the entire list is on one line.
9951   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9952
9953   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9954   for tagname in $tagnames; do
9955     IFS="$lt_save_ifs"
9956     # Check whether tagname contains only valid characters
9957     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9958     "") ;;
9959     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9960 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9961    { (exit 1); exit 1; }; }
9962         ;;
9963     esac
9964
9965     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9966     then
9967       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9968 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9969    { (exit 1); exit 1; }; }
9970     fi
9971
9972     # Update the list of available tags.
9973     if test -n "$tagname"; then
9974       echo appending configuration tag \"$tagname\" to $ofile
9975
9976       case $tagname in
9977       CXX)
9978         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9979             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9980             (test "X$CXX" != "Xg++"))) ; then
9981           ac_ext=cpp
9982 ac_cpp='$CXXCPP $CPPFLAGS'
9983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9986
9987
9988
9989
9990 archive_cmds_need_lc_CXX=no
9991 allow_undefined_flag_CXX=
9992 always_export_symbols_CXX=no
9993 archive_expsym_cmds_CXX=
9994 export_dynamic_flag_spec_CXX=
9995 hardcode_direct_CXX=no
9996 hardcode_libdir_flag_spec_CXX=
9997 hardcode_libdir_flag_spec_ld_CXX=
9998 hardcode_libdir_separator_CXX=
9999 hardcode_minus_L_CXX=no
10000 hardcode_shlibpath_var_CXX=unsupported
10001 hardcode_automatic_CXX=no
10002 module_cmds_CXX=
10003 module_expsym_cmds_CXX=
10004 link_all_deplibs_CXX=unknown
10005 old_archive_cmds_CXX=$old_archive_cmds
10006 no_undefined_flag_CXX=
10007 whole_archive_flag_spec_CXX=
10008 enable_shared_with_static_runtimes_CXX=no
10009
10010 # Dependencies to place before and after the object being linked:
10011 predep_objects_CXX=
10012 postdep_objects_CXX=
10013 predeps_CXX=
10014 postdeps_CXX=
10015 compiler_lib_search_path_CXX=
10016
10017 # Source file extension for C++ test sources.
10018 ac_ext=cpp
10019
10020 # Object file extension for compiled C++ test sources.
10021 objext=o
10022 objext_CXX=$objext
10023
10024 # Code to be used in simple compile tests
10025 lt_simple_compile_test_code="int some_variable = 0;"
10026
10027 # Code to be used in simple link tests
10028 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10029
10030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10031
10032 # If no C compiler was specified, use CC.
10033 LTCC=${LTCC-"$CC"}
10034
10035 # If no C compiler flags were specified, use CFLAGS.
10036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10037
10038 # Allow CC to be a program name with arguments.
10039 compiler=$CC
10040
10041
10042 # save warnings/boilerplate of simple test code
10043 ac_outfile=conftest.$ac_objext
10044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10046 _lt_compiler_boilerplate=`cat conftest.err`
10047 $rm conftest*
10048
10049 ac_outfile=conftest.$ac_objext
10050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10052 _lt_linker_boilerplate=`cat conftest.err`
10053 $rm conftest*
10054
10055
10056 # Allow CC to be a program name with arguments.
10057 lt_save_CC=$CC
10058 lt_save_LD=$LD
10059 lt_save_GCC=$GCC
10060 GCC=$GXX
10061 lt_save_with_gnu_ld=$with_gnu_ld
10062 lt_save_path_LD=$lt_cv_path_LD
10063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10064   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10065 else
10066   $as_unset lt_cv_prog_gnu_ld
10067 fi
10068 if test -n "${lt_cv_path_LDCXX+set}"; then
10069   lt_cv_path_LD=$lt_cv_path_LDCXX
10070 else
10071   $as_unset lt_cv_path_LD
10072 fi
10073 test -z "${LDCXX+set}" || LD=$LDCXX
10074 CC=${CXX-"c++"}
10075 compiler=$CC
10076 compiler_CXX=$CC
10077 for cc_temp in $compiler""; do
10078   case $cc_temp in
10079     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10080     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10081     \-*) ;;
10082     *) break;;
10083   esac
10084 done
10085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10086
10087
10088 # We don't want -fno-exception wen compiling C++ code, so set the
10089 # no_builtin_flag separately
10090 if test "$GXX" = yes; then
10091   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10092 else
10093   lt_prog_compiler_no_builtin_flag_CXX=
10094 fi
10095
10096 if test "$GXX" = yes; then
10097   # Set up default GNU C++ configuration
10098
10099
10100 # Check whether --with-gnu-ld was given.
10101 if test "${with_gnu_ld+set}" = set; then
10102   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10103 else
10104   with_gnu_ld=no
10105 fi
10106
10107 ac_prog=ld
10108 if test "$GCC" = yes; then
10109   # Check if gcc -print-prog-name=ld gives a path.
10110   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10111 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10112   case $host in
10113   *-*-mingw*)
10114     # gcc leaves a trailing carriage return which upsets mingw
10115     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10116   *)
10117     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10118   esac
10119   case $ac_prog in
10120     # Accept absolute paths.
10121     [\\/]* | ?:[\\/]*)
10122       re_direlt='/[^/][^/]*/\.\./'
10123       # Canonicalize the pathname of ld
10124       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10125       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10126         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10127       done
10128       test -z "$LD" && LD="$ac_prog"
10129       ;;
10130   "")
10131     # If it fails, then pretend we aren't using GCC.
10132     ac_prog=ld
10133     ;;
10134   *)
10135     # If it is relative, then search for the first ld in PATH.
10136     with_gnu_ld=unknown
10137     ;;
10138   esac
10139 elif test "$with_gnu_ld" = yes; then
10140   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10142 else
10143   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10145 fi
10146 if test "${lt_cv_path_LD+set}" = set; then
10147   echo $ECHO_N "(cached) $ECHO_C" >&6
10148 else
10149   if test -z "$LD"; then
10150   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10151   for ac_dir in $PATH; do
10152     IFS="$lt_save_ifs"
10153     test -z "$ac_dir" && ac_dir=.
10154     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155       lt_cv_path_LD="$ac_dir/$ac_prog"
10156       # Check to see if the program is GNU ld.  I'd rather use --version,
10157       # but apparently some variants of GNU ld only accept -v.
10158       # Break only if it was the GNU/non-GNU ld that we prefer.
10159       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10160       *GNU* | *'with BFD'*)
10161         test "$with_gnu_ld" != no && break
10162         ;;
10163       *)
10164         test "$with_gnu_ld" != yes && break
10165         ;;
10166       esac
10167     fi
10168   done
10169   IFS="$lt_save_ifs"
10170 else
10171   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10172 fi
10173 fi
10174
10175 LD="$lt_cv_path_LD"
10176 if test -n "$LD"; then
10177   { echo "$as_me:$LINENO: result: $LD" >&5
10178 echo "${ECHO_T}$LD" >&6; }
10179 else
10180   { echo "$as_me:$LINENO: result: no" >&5
10181 echo "${ECHO_T}no" >&6; }
10182 fi
10183 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10184 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10185    { (exit 1); exit 1; }; }
10186 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10187 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10188 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10189   echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10192 case `$LD -v 2>&1 </dev/null` in
10193 *GNU* | *'with BFD'*)
10194   lt_cv_prog_gnu_ld=yes
10195   ;;
10196 *)
10197   lt_cv_prog_gnu_ld=no
10198   ;;
10199 esac
10200 fi
10201 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10202 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10203 with_gnu_ld=$lt_cv_prog_gnu_ld
10204
10205
10206
10207   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10208   # archiving commands below assume that GNU ld is being used.
10209   if test "$with_gnu_ld" = yes; then
10210     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211     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'
10212
10213     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10214     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10215
10216     # If archive_cmds runs LD, not CC, wlarc should be empty
10217     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10218     #     investigate it a little bit more. (MM)
10219     wlarc='${wl}'
10220
10221     # ancient GNU ld didn't support --whole-archive et. al.
10222     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10223         grep 'no-whole-archive' > /dev/null; then
10224       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10225     else
10226       whole_archive_flag_spec_CXX=
10227     fi
10228   else
10229     with_gnu_ld=no
10230     wlarc=
10231
10232     # A generic and very simple default shared library creation
10233     # command for GNU C++ for the case where it uses the native
10234     # linker, instead of GNU ld.  If possible, this setting should
10235     # overridden to take advantage of the native linker features on
10236     # the platform it is being used on.
10237     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10238   fi
10239
10240   # Commands to make compiler produce verbose output that lists
10241   # what "hidden" libraries, object files and flags are used when
10242   # linking a shared library.
10243   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10244
10245 else
10246   GXX=no
10247   with_gnu_ld=no
10248   wlarc=
10249 fi
10250
10251 # PORTME: fill in a description of your system's C++ link characteristics
10252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10254 ld_shlibs_CXX=yes
10255 case $host_os in
10256   aix3*)
10257     # FIXME: insert proper C++ library support
10258     ld_shlibs_CXX=no
10259     ;;
10260   aix4* | aix5*)
10261     if test "$host_cpu" = ia64; then
10262       # On IA64, the linker does run time linking by default, so we don't
10263       # have to do anything special.
10264       aix_use_runtimelinking=no
10265       exp_sym_flag='-Bexport'
10266       no_entry_flag=""
10267     else
10268       aix_use_runtimelinking=no
10269
10270       # Test if we are trying to use run time linking or normal
10271       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10272       # need to do runtime linking.
10273       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10274         for ld_flag in $LDFLAGS; do
10275           case $ld_flag in
10276           *-brtl*)
10277             aix_use_runtimelinking=yes
10278             break
10279             ;;
10280           esac
10281         done
10282         ;;
10283       esac
10284
10285       exp_sym_flag='-bexport'
10286       no_entry_flag='-bnoentry'
10287     fi
10288
10289     # When large executables or shared objects are built, AIX ld can
10290     # have problems creating the table of contents.  If linking a library
10291     # or program results in "error TOC overflow" add -mminimal-toc to
10292     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10293     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10294
10295     archive_cmds_CXX=''
10296     hardcode_direct_CXX=yes
10297     hardcode_libdir_separator_CXX=':'
10298     link_all_deplibs_CXX=yes
10299
10300     if test "$GXX" = yes; then
10301       case $host_os in aix4.[012]|aix4.[012].*)
10302       # We only want to do this on AIX 4.2 and lower, the check
10303       # below for broken collect2 doesn't work under 4.3+
10304         collect2name=`${CC} -print-prog-name=collect2`
10305         if test -f "$collect2name" && \
10306            strings "$collect2name" | grep resolve_lib_name >/dev/null
10307         then
10308           # We have reworked collect2
10309           :
10310         else
10311           # We have old collect2
10312           hardcode_direct_CXX=unsupported
10313           # It fails to find uninstalled libraries when the uninstalled
10314           # path is not listed in the libpath.  Setting hardcode_minus_L
10315           # to unsupported forces relinking
10316           hardcode_minus_L_CXX=yes
10317           hardcode_libdir_flag_spec_CXX='-L$libdir'
10318           hardcode_libdir_separator_CXX=
10319         fi
10320         ;;
10321       esac
10322       shared_flag='-shared'
10323       if test "$aix_use_runtimelinking" = yes; then
10324         shared_flag="$shared_flag "'${wl}-G'
10325       fi
10326     else
10327       # not using gcc
10328       if test "$host_cpu" = ia64; then
10329         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10330         # chokes on -Wl,-G. The following line is correct:
10331         shared_flag='-G'
10332       else
10333         if test "$aix_use_runtimelinking" = yes; then
10334           shared_flag='${wl}-G'
10335         else
10336           shared_flag='${wl}-bM:SRE'
10337         fi
10338       fi
10339     fi
10340
10341     # It seems that -bexpall does not export symbols beginning with
10342     # underscore (_), so it is better to generate a list of symbols to export.
10343     always_export_symbols_CXX=yes
10344     if test "$aix_use_runtimelinking" = yes; then
10345       # Warning - without using the other runtime loading flags (-brtl),
10346       # -berok will link without error, but may produce a broken library.
10347       allow_undefined_flag_CXX='-berok'
10348       # Determine the default libpath from the value encoded in an empty executable.
10349       cat >conftest.$ac_ext <<_ACEOF
10350 /* confdefs.h.  */
10351 _ACEOF
10352 cat confdefs.h >>conftest.$ac_ext
10353 cat >>conftest.$ac_ext <<_ACEOF
10354 /* end confdefs.h.  */
10355
10356 int
10357 main ()
10358 {
10359
10360   ;
10361   return 0;
10362 }
10363 _ACEOF
10364 rm -f conftest.$ac_objext conftest$ac_exeext
10365 if { (ac_try="$ac_link"
10366 case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_link") 2>conftest.er1
10372   ac_status=$?
10373   grep -v '^ *+' conftest.er1 >conftest.err
10374   rm -f conftest.er1
10375   cat conftest.err >&5
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } && {
10378          test -z "$ac_cxx_werror_flag" ||
10379          test ! -s conftest.err
10380        } && test -s conftest$ac_exeext &&
10381        $as_test_x conftest$ac_exeext; then
10382
10383 lt_aix_libpath_sed='
10384     /Import File Strings/,/^$/ {
10385         /^0/ {
10386             s/^0  *\(.*\)$/\1/
10387             p
10388         }
10389     }'
10390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10391 # Check for a 64-bit object if we didn't find anything.
10392 if test -z "$aix_libpath"; then
10393   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10394 fi
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399
10400 fi
10401
10402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10403       conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407
10408       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"
10409      else
10410       if test "$host_cpu" = ia64; then
10411         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10412         allow_undefined_flag_CXX="-z nodefs"
10413         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"
10414       else
10415         # Determine the default libpath from the value encoded in an empty executable.
10416         cat >conftest.$ac_ext <<_ACEOF
10417 /* confdefs.h.  */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h.  */
10422
10423 int
10424 main ()
10425 {
10426
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_link") 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } && {
10445          test -z "$ac_cxx_werror_flag" ||
10446          test ! -s conftest.err
10447        } && test -s conftest$ac_exeext &&
10448        $as_test_x conftest$ac_exeext; then
10449
10450 lt_aix_libpath_sed='
10451     /Import File Strings/,/^$/ {
10452         /^0/ {
10453             s/^0  *\(.*\)$/\1/
10454             p
10455         }
10456     }'
10457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10458 # Check for a 64-bit object if we didn't find anything.
10459 if test -z "$aix_libpath"; then
10460   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10461 fi
10462 else
10463   echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466
10467 fi
10468
10469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10470       conftest$ac_exeext conftest.$ac_ext
10471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10472
10473         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10474         # Warning - without using the other run time loading flags,
10475         # -berok will link without error, but may produce a broken library.
10476         no_undefined_flag_CXX=' ${wl}-bernotok'
10477         allow_undefined_flag_CXX=' ${wl}-berok'
10478         # Exported symbols can be pulled into shared objects from archives
10479         whole_archive_flag_spec_CXX='$convenience'
10480         archive_cmds_need_lc_CXX=yes
10481         # This is similar to how AIX traditionally builds its shared libraries.
10482         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'
10483       fi
10484     fi
10485     ;;
10486
10487   beos*)
10488     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10489       allow_undefined_flag_CXX=unsupported
10490       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10491       # support --undefined.  This deserves some investigation.  FIXME
10492       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493     else
10494       ld_shlibs_CXX=no
10495     fi
10496     ;;
10497
10498   chorus*)
10499     case $cc_basename in
10500       *)
10501         # FIXME: insert proper C++ library support
10502         ld_shlibs_CXX=no
10503         ;;
10504     esac
10505     ;;
10506
10507   cygwin* | mingw* | pw32*)
10508     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10509     # as there is no search path for DLLs.
10510     hardcode_libdir_flag_spec_CXX='-L$libdir'
10511     allow_undefined_flag_CXX=unsupported
10512     always_export_symbols_CXX=no
10513     enable_shared_with_static_runtimes_CXX=yes
10514
10515     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10516       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'
10517       # If the export-symbols file already is a .def file (1st line
10518       # is EXPORTS), use it as is; otherwise, prepend...
10519       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10520         cp $export_symbols $output_objdir/$soname.def;
10521       else
10522         echo EXPORTS > $output_objdir/$soname.def;
10523         cat $export_symbols >> $output_objdir/$soname.def;
10524       fi~
10525       $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'
10526     else
10527       ld_shlibs_CXX=no
10528     fi
10529   ;;
10530       darwin* | rhapsody*)
10531         case $host_os in
10532         rhapsody* | darwin1.[012])
10533          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10534          ;;
10535        *) # Darwin 1.3 on
10536          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10537            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10538          else
10539            case ${MACOSX_DEPLOYMENT_TARGET} in
10540              10.[012])
10541                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10542                ;;
10543              10.*)
10544                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10545                ;;
10546            esac
10547          fi
10548          ;;
10549         esac
10550       archive_cmds_need_lc_CXX=no
10551       hardcode_direct_CXX=no
10552       hardcode_automatic_CXX=yes
10553       hardcode_shlibpath_var_CXX=unsupported
10554       whole_archive_flag_spec_CXX=''
10555       link_all_deplibs_CXX=yes
10556
10557     if test "$GXX" = yes ; then
10558       lt_int_apple_cc_single_mod=no
10559       output_verbose_link_cmd='echo'
10560       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10561        lt_int_apple_cc_single_mod=yes
10562       fi
10563       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10564        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10565       else
10566           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'
10567         fi
10568         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10569         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10570           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10571             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}'
10572           else
10573             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}'
10574           fi
10575             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}'
10576       else
10577       case $cc_basename in
10578         xlc*)
10579          output_verbose_link_cmd='echo'
10580           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'
10581           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10582           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10583           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}'
10584           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}'
10585           ;;
10586        *)
10587          ld_shlibs_CXX=no
10588           ;;
10589       esac
10590       fi
10591         ;;
10592
10593   dgux*)
10594     case $cc_basename in
10595       ec++*)
10596         # FIXME: insert proper C++ library support
10597         ld_shlibs_CXX=no
10598         ;;
10599       ghcx*)
10600         # Green Hills C++ Compiler
10601         # FIXME: insert proper C++ library support
10602         ld_shlibs_CXX=no
10603         ;;
10604       *)
10605         # FIXME: insert proper C++ library support
10606         ld_shlibs_CXX=no
10607         ;;
10608     esac
10609     ;;
10610   freebsd[12]*)
10611     # C++ shared libraries reported to be fairly broken before switch to ELF
10612     ld_shlibs_CXX=no
10613     ;;
10614   freebsd-elf*)
10615     archive_cmds_need_lc_CXX=no
10616     ;;
10617   freebsd* | dragonfly*)
10618     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10619     # conventions
10620     ld_shlibs_CXX=yes
10621     ;;
10622   gnu*)
10623     ;;
10624   hpux9*)
10625     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10626     hardcode_libdir_separator_CXX=:
10627     export_dynamic_flag_spec_CXX='${wl}-E'
10628     hardcode_direct_CXX=yes
10629     hardcode_minus_L_CXX=yes # Not in the search PATH,
10630                                 # but as the default
10631                                 # location of the library.
10632
10633     case $cc_basename in
10634     CC*)
10635       # FIXME: insert proper C++ library support
10636       ld_shlibs_CXX=no
10637       ;;
10638     aCC*)
10639       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'
10640       # Commands to make compiler produce verbose output that lists
10641       # what "hidden" libraries, object files and flags are used when
10642       # linking a shared library.
10643       #
10644       # There doesn't appear to be a way to prevent this compiler from
10645       # explicitly linking system object files so we need to strip them
10646       # from the output so that they don't get included in the library
10647       # dependencies.
10648       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'
10649       ;;
10650     *)
10651       if test "$GXX" = yes; then
10652         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'
10653       else
10654         # FIXME: insert proper C++ library support
10655         ld_shlibs_CXX=no
10656       fi
10657       ;;
10658     esac
10659     ;;
10660   hpux10*|hpux11*)
10661     if test $with_gnu_ld = no; then
10662       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10663       hardcode_libdir_separator_CXX=:
10664
10665       case $host_cpu in
10666       hppa*64*|ia64*) ;;
10667       *)
10668         export_dynamic_flag_spec_CXX='${wl}-E'
10669         ;;
10670       esac
10671     fi
10672     case $host_cpu in
10673     hppa*64*|ia64*)
10674       hardcode_direct_CXX=no
10675       hardcode_shlibpath_var_CXX=no
10676       ;;
10677     *)
10678       hardcode_direct_CXX=yes
10679       hardcode_minus_L_CXX=yes # Not in the search PATH,
10680                                               # but as the default
10681                                               # location of the library.
10682       ;;
10683     esac
10684
10685     case $cc_basename in
10686       CC*)
10687         # FIXME: insert proper C++ library support
10688         ld_shlibs_CXX=no
10689         ;;
10690       aCC*)
10691         case $host_cpu in
10692         hppa*64*)
10693           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10694           ;;
10695         ia64*)
10696           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10697           ;;
10698         *)
10699           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10700           ;;
10701         esac
10702         # Commands to make compiler produce verbose output that lists
10703         # what "hidden" libraries, object files and flags are used when
10704         # linking a shared library.
10705         #
10706         # There doesn't appear to be a way to prevent this compiler from
10707         # explicitly linking system object files so we need to strip them
10708         # from the output so that they don't get included in the library
10709         # dependencies.
10710         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'
10711         ;;
10712       *)
10713         if test "$GXX" = yes; then
10714           if test $with_gnu_ld = no; then
10715             case $host_cpu in
10716             hppa*64*)
10717               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10718               ;;
10719             ia64*)
10720               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10721               ;;
10722             *)
10723               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'
10724               ;;
10725             esac
10726           fi
10727         else
10728           # FIXME: insert proper C++ library support
10729           ld_shlibs_CXX=no
10730         fi
10731         ;;
10732     esac
10733     ;;
10734   interix[3-9]*)
10735     hardcode_direct_CXX=no
10736     hardcode_shlibpath_var_CXX=no
10737     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738     export_dynamic_flag_spec_CXX='${wl}-E'
10739     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10740     # Instead, shared libraries are loaded at an image base (0x10000000 by
10741     # default) and relocated if they conflict, which is a slow very memory
10742     # consuming and fragmenting process.  To avoid this, we pick a random,
10743     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10744     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10745     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'
10746     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'
10747     ;;
10748   irix5* | irix6*)
10749     case $cc_basename in
10750       CC*)
10751         # SGI C++
10752         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'
10753
10754         # Archives containing C++ object files must be created using
10755         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10756         # necessary to make sure instantiated templates are included
10757         # in the archive.
10758         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10759         ;;
10760       *)
10761         if test "$GXX" = yes; then
10762           if test "$with_gnu_ld" = no; then
10763             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'
10764           else
10765             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'
10766           fi
10767         fi
10768         link_all_deplibs_CXX=yes
10769         ;;
10770     esac
10771     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10772     hardcode_libdir_separator_CXX=:
10773     ;;
10774   linux* | k*bsd*-gnu)
10775     case $cc_basename in
10776       KCC*)
10777         # Kuck and Associates, Inc. (KAI) C++ Compiler
10778
10779         # KCC will only create a shared library if the output file
10780         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10781         # to its proper name (with version) after linking.
10782         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'
10783         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'
10784         # Commands to make compiler produce verbose output that lists
10785         # what "hidden" libraries, object files and flags are used when
10786         # linking a shared library.
10787         #
10788         # There doesn't appear to be a way to prevent this compiler from
10789         # explicitly linking system object files so we need to strip them
10790         # from the output so that they don't get included in the library
10791         # dependencies.
10792         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'
10793
10794         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10795         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10796
10797         # Archives containing C++ object files must be created using
10798         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10799         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10800         ;;
10801       icpc*)
10802         # Intel C++
10803         with_gnu_ld=yes
10804         # version 8.0 and above of icpc choke on multiply defined symbols
10805         # if we add $predep_objects and $postdep_objects, however 7.1 and
10806         # earlier do not add the objects themselves.
10807         case `$CC -V 2>&1` in
10808         *"Version 7."*)
10809           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10810           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'
10811           ;;
10812         *)  # Version 8.0 or newer
10813           tmp_idyn=
10814           case $host_cpu in
10815             ia64*) tmp_idyn=' -i_dynamic';;
10816           esac
10817           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10818           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'
10819           ;;
10820         esac
10821         archive_cmds_need_lc_CXX=no
10822         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10824         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10825         ;;
10826       pgCC*)
10827         # Portland Group C++ compiler
10828         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10829         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'
10830
10831         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10832         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10833         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'
10834         ;;
10835       cxx*)
10836         # Compaq C++
10837         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10838         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'
10839
10840         runpath_var=LD_RUN_PATH
10841         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10842         hardcode_libdir_separator_CXX=:
10843
10844         # Commands to make compiler produce verbose output that lists
10845         # what "hidden" libraries, object files and flags are used when
10846         # linking a shared library.
10847         #
10848         # There doesn't appear to be a way to prevent this compiler from
10849         # explicitly linking system object files so we need to strip them
10850         # from the output so that they don't get included in the library
10851         # dependencies.
10852         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'
10853         ;;
10854       *)
10855         case `$CC -V 2>&1 | sed 5q` in
10856         *Sun\ C*)
10857           # Sun C++ 5.9
10858           no_undefined_flag_CXX=' -zdefs'
10859           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10860           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'
10861           hardcode_libdir_flag_spec_CXX='-R$libdir'
10862           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'
10863
10864           # Not sure whether something based on
10865           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10866           # would be better.
10867           output_verbose_link_cmd='echo'
10868
10869           # Archives containing C++ object files must be created using
10870           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10871           # necessary to make sure instantiated templates are included
10872           # in the archive.
10873           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10874           ;;
10875         esac
10876         ;;
10877     esac
10878     ;;
10879   lynxos*)
10880     # FIXME: insert proper C++ library support
10881     ld_shlibs_CXX=no
10882     ;;
10883   m88k*)
10884     # FIXME: insert proper C++ library support
10885     ld_shlibs_CXX=no
10886     ;;
10887   mvs*)
10888     case $cc_basename in
10889       cxx*)
10890         # FIXME: insert proper C++ library support
10891         ld_shlibs_CXX=no
10892         ;;
10893       *)
10894         # FIXME: insert proper C++ library support
10895         ld_shlibs_CXX=no
10896         ;;
10897     esac
10898     ;;
10899   netbsd*)
10900     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10901       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10902       wlarc=
10903       hardcode_libdir_flag_spec_CXX='-R$libdir'
10904       hardcode_direct_CXX=yes
10905       hardcode_shlibpath_var_CXX=no
10906     fi
10907     # Workaround some broken pre-1.5 toolchains
10908     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10909     ;;
10910   openbsd2*)
10911     # C++ shared libraries are fairly broken
10912     ld_shlibs_CXX=no
10913     ;;
10914   openbsd*)
10915     if test -f /usr/libexec/ld.so; then
10916       hardcode_direct_CXX=yes
10917       hardcode_shlibpath_var_CXX=no
10918       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10919       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10920       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10921         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10922         export_dynamic_flag_spec_CXX='${wl}-E'
10923         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10924       fi
10925       output_verbose_link_cmd='echo'
10926     else
10927       ld_shlibs_CXX=no
10928     fi
10929     ;;
10930   osf3*)
10931     case $cc_basename in
10932       KCC*)
10933         # Kuck and Associates, Inc. (KAI) C++ Compiler
10934
10935         # KCC will only create a shared library if the output file
10936         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10937         # to its proper name (with version) after linking.
10938         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'
10939
10940         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10941         hardcode_libdir_separator_CXX=:
10942
10943         # Archives containing C++ object files must be created using
10944         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10945         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10946
10947         ;;
10948       RCC*)
10949         # Rational C++ 2.4.1
10950         # FIXME: insert proper C++ library support
10951         ld_shlibs_CXX=no
10952         ;;
10953       cxx*)
10954         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10955         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'
10956
10957         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10958         hardcode_libdir_separator_CXX=:
10959
10960         # Commands to make compiler produce verbose output that lists
10961         # what "hidden" libraries, object files and flags are used when
10962         # linking a shared library.
10963         #
10964         # There doesn't appear to be a way to prevent this compiler from
10965         # explicitly linking system object files so we need to strip them
10966         # from the output so that they don't get included in the library
10967         # dependencies.
10968         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'
10969         ;;
10970       *)
10971         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10972           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10973           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'
10974
10975           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10976           hardcode_libdir_separator_CXX=:
10977
10978           # Commands to make compiler produce verbose output that lists
10979           # what "hidden" libraries, object files and flags are used when
10980           # linking a shared library.
10981           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10982
10983         else
10984           # FIXME: insert proper C++ library support
10985           ld_shlibs_CXX=no
10986         fi
10987         ;;
10988     esac
10989     ;;
10990   osf4* | osf5*)
10991     case $cc_basename in
10992       KCC*)
10993         # Kuck and Associates, Inc. (KAI) C++ Compiler
10994
10995         # KCC will only create a shared library if the output file
10996         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10997         # to its proper name (with version) after linking.
10998         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'
10999
11000         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11001         hardcode_libdir_separator_CXX=:
11002
11003         # Archives containing C++ object files must be created using
11004         # the KAI C++ compiler.
11005         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11006         ;;
11007       RCC*)
11008         # Rational C++ 2.4.1
11009         # FIXME: insert proper C++ library support
11010         ld_shlibs_CXX=no
11011         ;;
11012       cxx*)
11013         allow_undefined_flag_CXX=' -expect_unresolved \*'
11014         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'
11015         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11016           echo "-hidden">> $lib.exp~
11017           $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~
11018           $rm $lib.exp'
11019
11020         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11021         hardcode_libdir_separator_CXX=:
11022
11023         # Commands to make compiler produce verbose output that lists
11024         # what "hidden" libraries, object files and flags are used when
11025         # linking a shared library.
11026         #
11027         # There doesn't appear to be a way to prevent this compiler from
11028         # explicitly linking system object files so we need to strip them
11029         # from the output so that they don't get included in the library
11030         # dependencies.
11031         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'
11032         ;;
11033       *)
11034         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11035           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11036          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'
11037
11038           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11039           hardcode_libdir_separator_CXX=:
11040
11041           # Commands to make compiler produce verbose output that lists
11042           # what "hidden" libraries, object files and flags are used when
11043           # linking a shared library.
11044           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11045
11046         else
11047           # FIXME: insert proper C++ library support
11048           ld_shlibs_CXX=no
11049         fi
11050         ;;
11051     esac
11052     ;;
11053   psos*)
11054     # FIXME: insert proper C++ library support
11055     ld_shlibs_CXX=no
11056     ;;
11057   sunos4*)
11058     case $cc_basename in
11059       CC*)
11060         # Sun C++ 4.x
11061         # FIXME: insert proper C++ library support
11062         ld_shlibs_CXX=no
11063         ;;
11064       lcc*)
11065         # Lucid
11066         # FIXME: insert proper C++ library support
11067         ld_shlibs_CXX=no
11068         ;;
11069       *)
11070         # FIXME: insert proper C++ library support
11071         ld_shlibs_CXX=no
11072         ;;
11073     esac
11074     ;;
11075   solaris*)
11076     case $cc_basename in
11077       CC*)
11078         # Sun C++ 4.2, 5.x and Centerline C++
11079         archive_cmds_need_lc_CXX=yes
11080         no_undefined_flag_CXX=' -zdefs'
11081         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11082         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11083         $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'
11084
11085         hardcode_libdir_flag_spec_CXX='-R$libdir'
11086         hardcode_shlibpath_var_CXX=no
11087         case $host_os in
11088           solaris2.[0-5] | solaris2.[0-5].*) ;;
11089           *)
11090             # The compiler driver will combine and reorder linker options,
11091             # but understands `-z linker_flag'.
11092             # Supported since Solaris 2.6 (maybe 2.5.1?)
11093             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11094             ;;
11095         esac
11096         link_all_deplibs_CXX=yes
11097
11098         output_verbose_link_cmd='echo'
11099
11100         # Archives containing C++ object files must be created using
11101         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11102         # necessary to make sure instantiated templates are included
11103         # in the archive.
11104         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11105         ;;
11106       gcx*)
11107         # Green Hills C++ Compiler
11108         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11109
11110         # The C++ compiler must be used to create the archive.
11111         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11112         ;;
11113       *)
11114         # GNU C++ compiler with Solaris linker
11115         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11116           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11117           if $CC --version | grep -v '^2\.7' > /dev/null; then
11118             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11119             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11120                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11121
11122             # Commands to make compiler produce verbose output that lists
11123             # what "hidden" libraries, object files and flags are used when
11124             # linking a shared library.
11125             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11126           else
11127             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11128             # platform.
11129             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11130             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11131                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11132
11133             # Commands to make compiler produce verbose output that lists
11134             # what "hidden" libraries, object files and flags are used when
11135             # linking a shared library.
11136             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11137           fi
11138
11139           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11140           case $host_os in
11141           solaris2.[0-5] | solaris2.[0-5].*) ;;
11142           *)
11143             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11144             ;;
11145           esac
11146         fi
11147         ;;
11148     esac
11149     ;;
11150   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11151     no_undefined_flag_CXX='${wl}-z,text'
11152     archive_cmds_need_lc_CXX=no
11153     hardcode_shlibpath_var_CXX=no
11154     runpath_var='LD_RUN_PATH'
11155
11156     case $cc_basename in
11157       CC*)
11158         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11159         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11160         ;;
11161       *)
11162         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11163         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164         ;;
11165     esac
11166     ;;
11167   sysv5* | sco3.2v5* | sco5v6*)
11168     # Note: We can NOT use -z defs as we might desire, because we do not
11169     # link with -lc, and that would cause any symbols used from libc to
11170     # always be unresolved, which means just about no library would
11171     # ever link correctly.  If we're not using GNU ld we use -z text
11172     # though, which does catch some bad symbols but isn't as heavy-handed
11173     # as -z defs.
11174     # For security reasons, it is highly recommended that you always
11175     # use absolute paths for naming shared libraries, and exclude the
11176     # DT_RUNPATH tag from executables and libraries.  But doing so
11177     # requires that you compile everything twice, which is a pain.
11178     # So that behaviour is only enabled if SCOABSPATH is set to a
11179     # non-empty value in the environment.  Most likely only useful for
11180     # creating official distributions of packages.
11181     # This is a hack until libtool officially supports absolute path
11182     # names for shared libraries.
11183     no_undefined_flag_CXX='${wl}-z,text'
11184     allow_undefined_flag_CXX='${wl}-z,nodefs'
11185     archive_cmds_need_lc_CXX=no
11186     hardcode_shlibpath_var_CXX=no
11187     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11188     hardcode_libdir_separator_CXX=':'
11189     link_all_deplibs_CXX=yes
11190     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11191     runpath_var='LD_RUN_PATH'
11192
11193     case $cc_basename in
11194       CC*)
11195         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11196         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11197         ;;
11198       *)
11199         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11200         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11201         ;;
11202     esac
11203     ;;
11204   tandem*)
11205     case $cc_basename in
11206       NCC*)
11207         # NonStop-UX NCC 3.20
11208         # FIXME: insert proper C++ library support
11209         ld_shlibs_CXX=no
11210         ;;
11211       *)
11212         # FIXME: insert proper C++ library support
11213         ld_shlibs_CXX=no
11214         ;;
11215     esac
11216     ;;
11217   vxworks*)
11218     # FIXME: insert proper C++ library support
11219     ld_shlibs_CXX=no
11220     ;;
11221   *)
11222     # FIXME: insert proper C++ library support
11223     ld_shlibs_CXX=no
11224     ;;
11225 esac
11226 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11227 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11228 test "$ld_shlibs_CXX" = no && can_build_shared=no
11229
11230 GCC_CXX="$GXX"
11231 LD_CXX="$LD"
11232
11233
11234 cat > conftest.$ac_ext <<EOF
11235 class Foo
11236 {
11237 public:
11238   Foo (void) { a = 0; }
11239 private:
11240   int a;
11241 };
11242 EOF
11243
11244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11245   (eval $ac_compile) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; then
11249   # Parse the compiler output and extract the necessary
11250   # objects, libraries and library flags.
11251
11252   # Sentinel used to keep track of whether or not we are before
11253   # the conftest object file.
11254   pre_test_object_deps_done=no
11255
11256   # The `*' in the case matches for architectures that use `case' in
11257   # $output_verbose_cmd can trigger glob expansion during the loop
11258   # eval without this substitution.
11259   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11260
11261   for p in `eval $output_verbose_link_cmd`; do
11262     case $p in
11263
11264     -L* | -R* | -l*)
11265        # Some compilers place space between "-{L,R}" and the path.
11266        # Remove the space.
11267        if test $p = "-L" \
11268           || test $p = "-R"; then
11269          prev=$p
11270          continue
11271        else
11272          prev=
11273        fi
11274
11275        if test "$pre_test_object_deps_done" = no; then
11276          case $p in
11277          -L* | -R*)
11278            # Internal compiler library paths should come after those
11279            # provided the user.  The postdeps already come after the
11280            # user supplied libs so there is no need to process them.
11281            if test -z "$compiler_lib_search_path_CXX"; then
11282              compiler_lib_search_path_CXX="${prev}${p}"
11283            else
11284              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11285            fi
11286            ;;
11287          # The "-l" case would never come before the object being
11288          # linked, so don't bother handling this case.
11289          esac
11290        else
11291          if test -z "$postdeps_CXX"; then
11292            postdeps_CXX="${prev}${p}"
11293          else
11294            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11295          fi
11296        fi
11297        ;;
11298
11299     *.$objext)
11300        # This assumes that the test object file only shows up
11301        # once in the compiler output.
11302        if test "$p" = "conftest.$objext"; then
11303          pre_test_object_deps_done=yes
11304          continue
11305        fi
11306
11307        if test "$pre_test_object_deps_done" = no; then
11308          if test -z "$predep_objects_CXX"; then
11309            predep_objects_CXX="$p"
11310          else
11311            predep_objects_CXX="$predep_objects_CXX $p"
11312          fi
11313        else
11314          if test -z "$postdep_objects_CXX"; then
11315            postdep_objects_CXX="$p"
11316          else
11317            postdep_objects_CXX="$postdep_objects_CXX $p"
11318          fi
11319        fi
11320        ;;
11321
11322     *) ;; # Ignore the rest.
11323
11324     esac
11325   done
11326
11327   # Clean up.
11328   rm -f a.out a.exe
11329 else
11330   echo "libtool.m4: error: problem compiling CXX test program"
11331 fi
11332
11333 $rm -f confest.$objext
11334
11335 # PORTME: override above test on systems where it is broken
11336 case $host_os in
11337 interix[3-9]*)
11338   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11339   # hack all around it, let's just trust "g++" to DTRT.
11340   predep_objects_CXX=
11341   postdep_objects_CXX=
11342   postdeps_CXX=
11343   ;;
11344
11345 linux*)
11346   case `$CC -V 2>&1 | sed 5q` in
11347   *Sun\ C*)
11348     # Sun C++ 5.9
11349     #
11350     # The more standards-conforming stlport4 library is
11351     # incompatible with the Cstd library. Avoid specifying
11352     # it if it's in CXXFLAGS. Ignore libCrun as
11353     # -library=stlport4 depends on it.
11354     case " $CXX $CXXFLAGS " in
11355     *" -library=stlport4 "*)
11356       solaris_use_stlport4=yes
11357       ;;
11358     esac
11359     if test "$solaris_use_stlport4" != yes; then
11360       postdeps_CXX='-library=Cstd -library=Crun'
11361     fi
11362     ;;
11363   esac
11364   ;;
11365
11366 solaris*)
11367   case $cc_basename in
11368   CC*)
11369     # The more standards-conforming stlport4 library is
11370     # incompatible with the Cstd library. Avoid specifying
11371     # it if it's in CXXFLAGS. Ignore libCrun as
11372     # -library=stlport4 depends on it.
11373     case " $CXX $CXXFLAGS " in
11374     *" -library=stlport4 "*)
11375       solaris_use_stlport4=yes
11376       ;;
11377     esac
11378
11379     # Adding this requires a known-good setup of shared libraries for
11380     # Sun compiler versions before 5.6, else PIC objects from an old
11381     # archive will be linked into the output, leading to subtle bugs.
11382     if test "$solaris_use_stlport4" != yes; then
11383       postdeps_CXX='-library=Cstd -library=Crun'
11384     fi
11385     ;;
11386   esac
11387   ;;
11388 esac
11389
11390
11391 case " $postdeps_CXX " in
11392 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11393 esac
11394
11395 lt_prog_compiler_wl_CXX=
11396 lt_prog_compiler_pic_CXX=
11397 lt_prog_compiler_static_CXX=
11398
11399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11401
11402   # C++ specific cases for pic, static, wl, etc.
11403   if test "$GXX" = yes; then
11404     lt_prog_compiler_wl_CXX='-Wl,'
11405     lt_prog_compiler_static_CXX='-static'
11406
11407     case $host_os in
11408     aix*)
11409       # All AIX code is PIC.
11410       if test "$host_cpu" = ia64; then
11411         # AIX 5 now supports IA64 processor
11412         lt_prog_compiler_static_CXX='-Bstatic'
11413       fi
11414       ;;
11415     amigaos*)
11416       # FIXME: we need at least 68020 code to build shared libraries, but
11417       # adding the `-m68020' flag to GCC prevents building anything better,
11418       # like `-m68040'.
11419       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11420       ;;
11421     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11422       # PIC is the default for these OSes.
11423       ;;
11424     mingw* | cygwin* | os2* | pw32*)
11425       # This hack is so that the source file can tell whether it is being
11426       # built for inclusion in a dll (and should export symbols for example).
11427       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11428       # (--disable-auto-import) libraries
11429       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11430       ;;
11431     darwin* | rhapsody*)
11432       # PIC is the default on this platform
11433       # Common symbols not allowed in MH_DYLIB files
11434       lt_prog_compiler_pic_CXX='-fno-common'
11435       ;;
11436     *djgpp*)
11437       # DJGPP does not support shared libraries at all
11438       lt_prog_compiler_pic_CXX=
11439       ;;
11440     interix[3-9]*)
11441       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11442       # Instead, we relocate shared libraries at runtime.
11443       ;;
11444     sysv4*MP*)
11445       if test -d /usr/nec; then
11446         lt_prog_compiler_pic_CXX=-Kconform_pic
11447       fi
11448       ;;
11449     hpux*)
11450       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11451       # not for PA HP-UX.
11452       case $host_cpu in
11453       hppa*64*|ia64*)
11454         ;;
11455       *)
11456         lt_prog_compiler_pic_CXX='-fPIC'
11457         ;;
11458       esac
11459       ;;
11460     *)
11461       lt_prog_compiler_pic_CXX='-fPIC'
11462       ;;
11463     esac
11464   else
11465     case $host_os in
11466       aix4* | aix5*)
11467         # All AIX code is PIC.
11468         if test "$host_cpu" = ia64; then
11469           # AIX 5 now supports IA64 processor
11470           lt_prog_compiler_static_CXX='-Bstatic'
11471         else
11472           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11473         fi
11474         ;;
11475       chorus*)
11476         case $cc_basename in
11477         cxch68*)
11478           # Green Hills C++ Compiler
11479           # _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"
11480           ;;
11481         esac
11482         ;;
11483        darwin*)
11484          # PIC is the default on this platform
11485          # Common symbols not allowed in MH_DYLIB files
11486          case $cc_basename in
11487            xlc*)
11488            lt_prog_compiler_pic_CXX='-qnocommon'
11489            lt_prog_compiler_wl_CXX='-Wl,'
11490            ;;
11491          esac
11492        ;;
11493       dgux*)
11494         case $cc_basename in
11495           ec++*)
11496             lt_prog_compiler_pic_CXX='-KPIC'
11497             ;;
11498           ghcx*)
11499             # Green Hills C++ Compiler
11500             lt_prog_compiler_pic_CXX='-pic'
11501             ;;
11502           *)
11503             ;;
11504         esac
11505         ;;
11506       freebsd* | dragonfly*)
11507         # FreeBSD uses GNU C++
11508         ;;
11509       hpux9* | hpux10* | hpux11*)
11510         case $cc_basename in
11511           CC*)
11512             lt_prog_compiler_wl_CXX='-Wl,'
11513             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11514             if test "$host_cpu" != ia64; then
11515               lt_prog_compiler_pic_CXX='+Z'
11516             fi
11517             ;;
11518           aCC*)
11519             lt_prog_compiler_wl_CXX='-Wl,'
11520             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11521             case $host_cpu in
11522             hppa*64*|ia64*)
11523               # +Z the default
11524               ;;
11525             *)
11526               lt_prog_compiler_pic_CXX='+Z'
11527               ;;
11528             esac
11529             ;;
11530           *)
11531             ;;
11532         esac
11533         ;;
11534       interix*)
11535         # This is c89, which is MS Visual C++ (no shared libs)
11536         # Anyone wants to do a port?
11537         ;;
11538       irix5* | irix6* | nonstopux*)
11539         case $cc_basename in
11540           CC*)
11541             lt_prog_compiler_wl_CXX='-Wl,'
11542             lt_prog_compiler_static_CXX='-non_shared'
11543             # CC pic flag -KPIC is the default.
11544             ;;
11545           *)
11546             ;;
11547         esac
11548         ;;
11549       linux* | k*bsd*-gnu)
11550         case $cc_basename in
11551           KCC*)
11552             # KAI C++ Compiler
11553             lt_prog_compiler_wl_CXX='--backend -Wl,'
11554             lt_prog_compiler_pic_CXX='-fPIC'
11555             ;;
11556           icpc* | ecpc*)
11557             # Intel C++
11558             lt_prog_compiler_wl_CXX='-Wl,'
11559             lt_prog_compiler_pic_CXX='-KPIC'
11560             lt_prog_compiler_static_CXX='-static'
11561             ;;
11562           pgCC*)
11563             # Portland Group C++ compiler.
11564             lt_prog_compiler_wl_CXX='-Wl,'
11565             lt_prog_compiler_pic_CXX='-fpic'
11566             lt_prog_compiler_static_CXX='-Bstatic'
11567             ;;
11568           cxx*)
11569             # Compaq C++
11570             # Make sure the PIC flag is empty.  It appears that all Alpha
11571             # Linux and Compaq Tru64 Unix objects are PIC.
11572             lt_prog_compiler_pic_CXX=
11573             lt_prog_compiler_static_CXX='-non_shared'
11574             ;;
11575           *)
11576             case `$CC -V 2>&1 | sed 5q` in
11577             *Sun\ C*)
11578               # Sun C++ 5.9
11579               lt_prog_compiler_pic_CXX='-KPIC'
11580               lt_prog_compiler_static_CXX='-Bstatic'
11581               lt_prog_compiler_wl_CXX='-Qoption ld '
11582               ;;
11583             esac
11584             ;;
11585         esac
11586         ;;
11587       lynxos*)
11588         ;;
11589       m88k*)
11590         ;;
11591       mvs*)
11592         case $cc_basename in
11593           cxx*)
11594             lt_prog_compiler_pic_CXX='-W c,exportall'
11595             ;;
11596           *)
11597             ;;
11598         esac
11599         ;;
11600       netbsd*)
11601         ;;
11602       osf3* | osf4* | osf5*)
11603         case $cc_basename in
11604           KCC*)
11605             lt_prog_compiler_wl_CXX='--backend -Wl,'
11606             ;;
11607           RCC*)
11608             # Rational C++ 2.4.1
11609             lt_prog_compiler_pic_CXX='-pic'
11610             ;;
11611           cxx*)
11612             # Digital/Compaq C++
11613             lt_prog_compiler_wl_CXX='-Wl,'
11614             # Make sure the PIC flag is empty.  It appears that all Alpha
11615             # Linux and Compaq Tru64 Unix objects are PIC.
11616             lt_prog_compiler_pic_CXX=
11617             lt_prog_compiler_static_CXX='-non_shared'
11618             ;;
11619           *)
11620             ;;
11621         esac
11622         ;;
11623       psos*)
11624         ;;
11625       solaris*)
11626         case $cc_basename in
11627           CC*)
11628             # Sun C++ 4.2, 5.x and Centerline C++
11629             lt_prog_compiler_pic_CXX='-KPIC'
11630             lt_prog_compiler_static_CXX='-Bstatic'
11631             lt_prog_compiler_wl_CXX='-Qoption ld '
11632             ;;
11633           gcx*)
11634             # Green Hills C++ Compiler
11635             lt_prog_compiler_pic_CXX='-PIC'
11636             ;;
11637           *)
11638             ;;
11639         esac
11640         ;;
11641       sunos4*)
11642         case $cc_basename in
11643           CC*)
11644             # Sun C++ 4.x
11645             lt_prog_compiler_pic_CXX='-pic'
11646             lt_prog_compiler_static_CXX='-Bstatic'
11647             ;;
11648           lcc*)
11649             # Lucid
11650             lt_prog_compiler_pic_CXX='-pic'
11651             ;;
11652           *)
11653             ;;
11654         esac
11655         ;;
11656       tandem*)
11657         case $cc_basename in
11658           NCC*)
11659             # NonStop-UX NCC 3.20
11660             lt_prog_compiler_pic_CXX='-KPIC'
11661             ;;
11662           *)
11663             ;;
11664         esac
11665         ;;
11666       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11667         case $cc_basename in
11668           CC*)
11669             lt_prog_compiler_wl_CXX='-Wl,'
11670             lt_prog_compiler_pic_CXX='-KPIC'
11671             lt_prog_compiler_static_CXX='-Bstatic'
11672             ;;
11673         esac
11674         ;;
11675       vxworks*)
11676         ;;
11677       *)
11678         lt_prog_compiler_can_build_shared_CXX=no
11679         ;;
11680     esac
11681   fi
11682
11683 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11684 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11685
11686 #
11687 # Check to make sure the PIC flag actually works.
11688 #
11689 if test -n "$lt_prog_compiler_pic_CXX"; then
11690
11691 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11693 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11694   echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696   lt_prog_compiler_pic_works_CXX=no
11697   ac_outfile=conftest.$ac_objext
11698    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11699    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11700    # Insert the option either (1) after the last *FLAGS variable, or
11701    # (2) before a word containing "conftest.", or (3) at the end.
11702    # Note that $ac_compile itself does not contain backslashes and begins
11703    # with a dollar sign (not a hyphen), so the echo should work correctly.
11704    # The option is referenced via a variable to avoid confusing sed.
11705    lt_compile=`echo "$ac_compile" | $SED \
11706    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11707    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11708    -e 's:$: $lt_compiler_flag:'`
11709    (eval echo "\"\$as_me:11709: $lt_compile\"" >&5)
11710    (eval "$lt_compile" 2>conftest.err)
11711    ac_status=$?
11712    cat conftest.err >&5
11713    echo "$as_me:11713: \$? = $ac_status" >&5
11714    if (exit $ac_status) && test -s "$ac_outfile"; then
11715      # The compiler can only warn and ignore the option if not recognized
11716      # So say no if there are warnings other than the usual output.
11717      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11718      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11719      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11720        lt_prog_compiler_pic_works_CXX=yes
11721      fi
11722    fi
11723    $rm conftest*
11724
11725 fi
11726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11727 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11728
11729 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11730     case $lt_prog_compiler_pic_CXX in
11731      "" | " "*) ;;
11732      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11733      esac
11734 else
11735     lt_prog_compiler_pic_CXX=
11736      lt_prog_compiler_can_build_shared_CXX=no
11737 fi
11738
11739 fi
11740 case $host_os in
11741   # For platforms which do not support PIC, -DPIC is meaningless:
11742   *djgpp*)
11743     lt_prog_compiler_pic_CXX=
11744     ;;
11745   *)
11746     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11747     ;;
11748 esac
11749
11750 #
11751 # Check to make sure the static flag actually works.
11752 #
11753 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11754 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11756 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   lt_prog_compiler_static_works_CXX=no
11760    save_LDFLAGS="$LDFLAGS"
11761    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11762    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11763    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11764      # The linker can only warn and ignore the option if not recognized
11765      # So say no if there are warnings
11766      if test -s conftest.err; then
11767        # Append any errors to the config.log.
11768        cat conftest.err 1>&5
11769        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11770        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11771        if diff conftest.exp conftest.er2 >/dev/null; then
11772          lt_prog_compiler_static_works_CXX=yes
11773        fi
11774      else
11775        lt_prog_compiler_static_works_CXX=yes
11776      fi
11777    fi
11778    $rm conftest*
11779    LDFLAGS="$save_LDFLAGS"
11780
11781 fi
11782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11783 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11784
11785 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11786     :
11787 else
11788     lt_prog_compiler_static_CXX=
11789 fi
11790
11791
11792 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11795   echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797   lt_cv_prog_compiler_c_o_CXX=no
11798    $rm -r conftest 2>/dev/null
11799    mkdir conftest
11800    cd conftest
11801    mkdir out
11802    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11803
11804    lt_compiler_flag="-o out/conftest2.$ac_objext"
11805    # Insert the option either (1) after the last *FLAGS variable, or
11806    # (2) before a word containing "conftest.", or (3) at the end.
11807    # Note that $ac_compile itself does not contain backslashes and begins
11808    # with a dollar sign (not a hyphen), so the echo should work correctly.
11809    lt_compile=`echo "$ac_compile" | $SED \
11810    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11811    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812    -e 's:$: $lt_compiler_flag:'`
11813    (eval echo "\"\$as_me:11813: $lt_compile\"" >&5)
11814    (eval "$lt_compile" 2>out/conftest.err)
11815    ac_status=$?
11816    cat out/conftest.err >&5
11817    echo "$as_me:11817: \$? = $ac_status" >&5
11818    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11819    then
11820      # The compiler can only warn and ignore the option if not recognized
11821      # So say no if there are warnings
11822      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11823      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11824      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11825        lt_cv_prog_compiler_c_o_CXX=yes
11826      fi
11827    fi
11828    chmod u+w . 2>&5
11829    $rm conftest*
11830    # SGI C++ compiler will create directory out/ii_files/ for
11831    # template instantiation
11832    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833    $rm out/* && rmdir out
11834    cd ..
11835    rmdir conftest
11836    $rm conftest*
11837
11838 fi
11839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11841
11842
11843 hard_links="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845   # do not overwrite the value of need_locks provided by the user
11846   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11848   hard_links=yes
11849   $rm conftest*
11850   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851   touch conftest.a
11852   ln conftest.a conftest.b 2>&5 || hard_links=no
11853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854   { echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6; }
11856   if test "$hard_links" = no; then
11857     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11859     need_locks=warn
11860   fi
11861 else
11862   need_locks=no
11863 fi
11864
11865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11867
11868   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869   case $host_os in
11870   aix4* | aix5*)
11871     # If we're using GNU nm, then we don't want the "-C" option.
11872     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874       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'
11875     else
11876       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'
11877     fi
11878     ;;
11879   pw32*)
11880     export_symbols_cmds_CXX="$ltdll_cmds"
11881   ;;
11882   cygwin* | mingw*)
11883     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'
11884   ;;
11885   *)
11886     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11887   ;;
11888   esac
11889
11890 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11892 test "$ld_shlibs_CXX" = no && can_build_shared=no
11893
11894 #
11895 # Do we need to explicitly link libc?
11896 #
11897 case "x$archive_cmds_need_lc_CXX" in
11898 x|xyes)
11899   # Assume -lc should be added
11900   archive_cmds_need_lc_CXX=yes
11901
11902   if test "$enable_shared" = yes && test "$GCC" = yes; then
11903     case $archive_cmds_CXX in
11904     *'~'*)
11905       # FIXME: we may have to deal with multi-command sequences.
11906       ;;
11907     '$CC '*)
11908       # Test whether the compiler implicitly links with -lc since on some
11909       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11910       # to ld, don't add -lc before -lgcc.
11911       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11913       $rm conftest*
11914       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11915
11916       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917   (eval $ac_compile) 2>&5
11918   ac_status=$?
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } 2>conftest.err; then
11921         soname=conftest
11922         lib=conftest
11923         libobjs=conftest.$ac_objext
11924         deplibs=
11925         wl=$lt_prog_compiler_wl_CXX
11926         pic_flag=$lt_prog_compiler_pic_CXX
11927         compiler_flags=-v
11928         linker_flags=-v
11929         verstring=
11930         output_objdir=.
11931         libname=conftest
11932         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11933         allow_undefined_flag_CXX=
11934         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11935   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }
11939         then
11940           archive_cmds_need_lc_CXX=no
11941         else
11942           archive_cmds_need_lc_CXX=yes
11943         fi
11944         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11945       else
11946         cat conftest.err 1>&5
11947       fi
11948       $rm conftest*
11949       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11950 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11951       ;;
11952     esac
11953   fi
11954   ;;
11955 esac
11956
11957 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11959 library_names_spec=
11960 libname_spec='lib$name'
11961 soname_spec=
11962 shrext_cmds=".so"
11963 postinstall_cmds=
11964 postuninstall_cmds=
11965 finish_cmds=
11966 finish_eval=
11967 shlibpath_var=
11968 shlibpath_overrides_runpath=unknown
11969 version_type=none
11970 dynamic_linker="$host_os ld.so"
11971 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11972
11973 need_lib_prefix=unknown
11974 hardcode_into_libs=no
11975
11976 # when you set need_version to no, make sure it does not cause -set_version
11977 # flags to be left without arguments
11978 need_version=unknown
11979
11980 case $host_os in
11981 aix3*)
11982   version_type=linux
11983   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11984   shlibpath_var=LIBPATH
11985
11986   # AIX 3 has no versioning support, so we append a major version to the name.
11987   soname_spec='${libname}${release}${shared_ext}$major'
11988   ;;
11989
11990 aix4* | aix5*)
11991   version_type=linux
11992   need_lib_prefix=no
11993   need_version=no
11994   hardcode_into_libs=yes
11995   if test "$host_cpu" = ia64; then
11996     # AIX 5 supports IA64
11997     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11998     shlibpath_var=LD_LIBRARY_PATH
11999   else
12000     # With GCC up to 2.95.x, collect2 would create an import file
12001     # for dependence libraries.  The import file would start with
12002     # the line `#! .'.  This would cause the generated library to
12003     # depend on `.', always an invalid library.  This was fixed in
12004     # development snapshots of GCC prior to 3.0.
12005     case $host_os in
12006       aix4 | aix4.[01] | aix4.[01].*)
12007       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12008            echo ' yes '
12009            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12010         :
12011       else
12012         can_build_shared=no
12013       fi
12014       ;;
12015     esac
12016     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12017     # soname into executable. Probably we can add versioning support to
12018     # collect2, so additional links can be useful in future.
12019     if test "$aix_use_runtimelinking" = yes; then
12020       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12021       # instead of lib<name>.a to let people know that these are not
12022       # typical AIX shared libraries.
12023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024     else
12025       # We preserve .a as extension for shared libraries through AIX4.2
12026       # and later when we are not doing run time linking.
12027       library_names_spec='${libname}${release}.a $libname.a'
12028       soname_spec='${libname}${release}${shared_ext}$major'
12029     fi
12030     shlibpath_var=LIBPATH
12031   fi
12032   ;;
12033
12034 amigaos*)
12035   library_names_spec='$libname.ixlibrary $libname.a'
12036   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12037   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'
12038   ;;
12039
12040 beos*)
12041   library_names_spec='${libname}${shared_ext}'
12042   dynamic_linker="$host_os ld.so"
12043   shlibpath_var=LIBRARY_PATH
12044   ;;
12045
12046 bsdi[45]*)
12047   version_type=linux
12048   need_version=no
12049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12050   soname_spec='${libname}${release}${shared_ext}$major'
12051   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12052   shlibpath_var=LD_LIBRARY_PATH
12053   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12054   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12055   # the default ld.so.conf also contains /usr/contrib/lib and
12056   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12057   # libtool to hard-code these into programs
12058   ;;
12059
12060 cygwin* | mingw* | pw32*)
12061   version_type=windows
12062   shrext_cmds=".dll"
12063   need_version=no
12064   need_lib_prefix=no
12065
12066   case $GCC,$host_os in
12067   yes,cygwin* | yes,mingw* | yes,pw32*)
12068     library_names_spec='$libname.dll.a'
12069     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12070     postinstall_cmds='base_file=`basename \${file}`~
12071       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12072       dldir=$destdir/`dirname \$dlpath`~
12073       test -d \$dldir || mkdir -p \$dldir~
12074       $install_prog $dir/$dlname \$dldir/$dlname~
12075       chmod a+x \$dldir/$dlname'
12076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12077       dlpath=$dir/\$dldll~
12078        $rm \$dlpath'
12079     shlibpath_overrides_runpath=yes
12080
12081     case $host_os in
12082     cygwin*)
12083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12084       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12085       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12086       ;;
12087     mingw*)
12088       # MinGW DLLs use traditional 'lib' prefix
12089       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12090       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12091       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12092         # It is most probably a Windows format PATH printed by
12093         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12094         # path with ; separators, and with drive letters. We can handle the
12095         # drive letters (cygwin fileutils understands them), so leave them,
12096         # especially as we might pass files found there to a mingw objdump,
12097         # which wouldn't understand a cygwinified path. Ahh.
12098         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12099       else
12100         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12101       fi
12102       ;;
12103     pw32*)
12104       # pw32 DLLs use 'pw' prefix rather than 'lib'
12105       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106       ;;
12107     esac
12108     ;;
12109
12110   *)
12111     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12112     ;;
12113   esac
12114   dynamic_linker='Win32 ld.exe'
12115   # FIXME: first we should search . and the directory the executable is in
12116   shlibpath_var=PATH
12117   ;;
12118
12119 darwin* | rhapsody*)
12120   dynamic_linker="$host_os dyld"
12121   version_type=darwin
12122   need_lib_prefix=no
12123   need_version=no
12124   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12125   soname_spec='${libname}${release}${major}$shared_ext'
12126   shlibpath_overrides_runpath=yes
12127   shlibpath_var=DYLD_LIBRARY_PATH
12128   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12129
12130   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12131   ;;
12132
12133 dgux*)
12134   version_type=linux
12135   need_lib_prefix=no
12136   need_version=no
12137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12138   soname_spec='${libname}${release}${shared_ext}$major'
12139   shlibpath_var=LD_LIBRARY_PATH
12140   ;;
12141
12142 freebsd1*)
12143   dynamic_linker=no
12144   ;;
12145
12146 freebsd* | dragonfly*)
12147   # DragonFly does not have aout.  When/if they implement a new
12148   # versioning mechanism, adjust this.
12149   if test -x /usr/bin/objformat; then
12150     objformat=`/usr/bin/objformat`
12151   else
12152     case $host_os in
12153     freebsd[123]*) objformat=aout ;;
12154     *) objformat=elf ;;
12155     esac
12156   fi
12157   version_type=freebsd-$objformat
12158   case $version_type in
12159     freebsd-elf*)
12160       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12161       need_version=no
12162       need_lib_prefix=no
12163       ;;
12164     freebsd-*)
12165       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12166       need_version=yes
12167       ;;
12168   esac
12169   shlibpath_var=LD_LIBRARY_PATH
12170   case $host_os in
12171   freebsd2*)
12172     shlibpath_overrides_runpath=yes
12173     ;;
12174   freebsd3.[01]* | freebsdelf3.[01]*)
12175     shlibpath_overrides_runpath=yes
12176     hardcode_into_libs=yes
12177     ;;
12178   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12179   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12180     shlibpath_overrides_runpath=no
12181     hardcode_into_libs=yes
12182     ;;
12183   *) # from 4.6 on, and DragonFly
12184     shlibpath_overrides_runpath=yes
12185     hardcode_into_libs=yes
12186     ;;
12187   esac
12188   ;;
12189
12190 gnu*)
12191   version_type=linux
12192   need_lib_prefix=no
12193   need_version=no
12194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12195   soname_spec='${libname}${release}${shared_ext}$major'
12196   shlibpath_var=LD_LIBRARY_PATH
12197   hardcode_into_libs=yes
12198   ;;
12199
12200 hpux9* | hpux10* | hpux11*)
12201   # Give a soname corresponding to the major version so that dld.sl refuses to
12202   # link against other versions.
12203   version_type=sunos
12204   need_lib_prefix=no
12205   need_version=no
12206   case $host_cpu in
12207   ia64*)
12208     shrext_cmds='.so'
12209     hardcode_into_libs=yes
12210     dynamic_linker="$host_os dld.so"
12211     shlibpath_var=LD_LIBRARY_PATH
12212     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12214     soname_spec='${libname}${release}${shared_ext}$major'
12215     if test "X$HPUX_IA64_MODE" = X32; then
12216       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12217     else
12218       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12219     fi
12220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12221     ;;
12222    hppa*64*)
12223      shrext_cmds='.sl'
12224      hardcode_into_libs=yes
12225      dynamic_linker="$host_os dld.sl"
12226      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12227      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12228      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12229      soname_spec='${libname}${release}${shared_ext}$major'
12230      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12231      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12232      ;;
12233    *)
12234     shrext_cmds='.sl'
12235     dynamic_linker="$host_os dld.sl"
12236     shlibpath_var=SHLIB_PATH
12237     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12238     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12239     soname_spec='${libname}${release}${shared_ext}$major'
12240     ;;
12241   esac
12242   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12243   postinstall_cmds='chmod 555 $lib'
12244   ;;
12245
12246 interix[3-9]*)
12247   version_type=linux
12248   need_lib_prefix=no
12249   need_version=no
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12251   soname_spec='${libname}${release}${shared_ext}$major'
12252   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12253   shlibpath_var=LD_LIBRARY_PATH
12254   shlibpath_overrides_runpath=no
12255   hardcode_into_libs=yes
12256   ;;
12257
12258 irix5* | irix6* | nonstopux*)
12259   case $host_os in
12260     nonstopux*) version_type=nonstopux ;;
12261     *)
12262         if test "$lt_cv_prog_gnu_ld" = yes; then
12263                 version_type=linux
12264         else
12265                 version_type=irix
12266         fi ;;
12267   esac
12268   need_lib_prefix=no
12269   need_version=no
12270   soname_spec='${libname}${release}${shared_ext}$major'
12271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12272   case $host_os in
12273   irix5* | nonstopux*)
12274     libsuff= shlibsuff=
12275     ;;
12276   *)
12277     case $LD in # libtool.m4 will add one of these switches to LD
12278     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12279       libsuff= shlibsuff= libmagic=32-bit;;
12280     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12281       libsuff=32 shlibsuff=N32 libmagic=N32;;
12282     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12283       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12284     *) libsuff= shlibsuff= libmagic=never-match;;
12285     esac
12286     ;;
12287   esac
12288   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12289   shlibpath_overrides_runpath=no
12290   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12291   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12292   hardcode_into_libs=yes
12293   ;;
12294
12295 # No shared lib support for Linux oldld, aout, or coff.
12296 linux*oldld* | linux*aout* | linux*coff*)
12297   dynamic_linker=no
12298   ;;
12299
12300 # This must be Linux ELF.
12301 linux* | k*bsd*-gnu)
12302   version_type=linux
12303   need_lib_prefix=no
12304   need_version=no
12305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12308   shlibpath_var=LD_LIBRARY_PATH
12309   shlibpath_overrides_runpath=no
12310   # This implies no fast_install, which is unacceptable.
12311   # Some rework will be needed to allow for fast_install
12312   # before this can be enabled.
12313   hardcode_into_libs=yes
12314
12315   # Append ld.so.conf contents to the search path
12316   if test -f /etc/ld.so.conf; then
12317     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' ' '`
12318     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12319   fi
12320
12321   # We used to test for /lib/ld.so.1 and disable shared libraries on
12322   # powerpc, because MkLinux only supported shared libraries with the
12323   # GNU dynamic linker.  Since this was broken with cross compilers,
12324   # most powerpc-linux boxes support dynamic linking these days and
12325   # people can always --disable-shared, the test was removed, and we
12326   # assume the GNU/Linux dynamic linker is in use.
12327   dynamic_linker='GNU/Linux ld.so'
12328   ;;
12329
12330 netbsd*)
12331   version_type=sunos
12332   need_lib_prefix=no
12333   need_version=no
12334   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12337     dynamic_linker='NetBSD (a.out) ld.so'
12338   else
12339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12340     soname_spec='${libname}${release}${shared_ext}$major'
12341     dynamic_linker='NetBSD ld.elf_so'
12342   fi
12343   shlibpath_var=LD_LIBRARY_PATH
12344   shlibpath_overrides_runpath=yes
12345   hardcode_into_libs=yes
12346   ;;
12347
12348 newsos6)
12349   version_type=linux
12350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351   shlibpath_var=LD_LIBRARY_PATH
12352   shlibpath_overrides_runpath=yes
12353   ;;
12354
12355 nto-qnx*)
12356   version_type=linux
12357   need_lib_prefix=no
12358   need_version=no
12359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12360   soname_spec='${libname}${release}${shared_ext}$major'
12361   shlibpath_var=LD_LIBRARY_PATH
12362   shlibpath_overrides_runpath=yes
12363   ;;
12364
12365 openbsd*)
12366   version_type=sunos
12367   sys_lib_dlsearch_path_spec="/usr/lib"
12368   need_lib_prefix=no
12369   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12370   case $host_os in
12371     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12372     *)                         need_version=no  ;;
12373   esac
12374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12376   shlibpath_var=LD_LIBRARY_PATH
12377   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12378     case $host_os in
12379       openbsd2.[89] | openbsd2.[89].*)
12380         shlibpath_overrides_runpath=no
12381         ;;
12382       *)
12383         shlibpath_overrides_runpath=yes
12384         ;;
12385       esac
12386   else
12387     shlibpath_overrides_runpath=yes
12388   fi
12389   ;;
12390
12391 os2*)
12392   libname_spec='$name'
12393   shrext_cmds=".dll"
12394   need_lib_prefix=no
12395   library_names_spec='$libname${shared_ext} $libname.a'
12396   dynamic_linker='OS/2 ld.exe'
12397   shlibpath_var=LIBPATH
12398   ;;
12399
12400 osf3* | osf4* | osf5*)
12401   version_type=osf
12402   need_lib_prefix=no
12403   need_version=no
12404   soname_spec='${libname}${release}${shared_ext}$major'
12405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406   shlibpath_var=LD_LIBRARY_PATH
12407   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12408   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12409   ;;
12410
12411 rdos*)
12412   dynamic_linker=no
12413   ;;
12414
12415 solaris*)
12416   version_type=linux
12417   need_lib_prefix=no
12418   need_version=no
12419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12420   soname_spec='${libname}${release}${shared_ext}$major'
12421   shlibpath_var=LD_LIBRARY_PATH
12422   shlibpath_overrides_runpath=yes
12423   hardcode_into_libs=yes
12424   # ldd complains unless libraries are executable
12425   postinstall_cmds='chmod +x $lib'
12426   ;;
12427
12428 sunos4*)
12429   version_type=sunos
12430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12431   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12432   shlibpath_var=LD_LIBRARY_PATH
12433   shlibpath_overrides_runpath=yes
12434   if test "$with_gnu_ld" = yes; then
12435     need_lib_prefix=no
12436   fi
12437   need_version=yes
12438   ;;
12439
12440 sysv4 | sysv4.3*)
12441   version_type=linux
12442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12443   soname_spec='${libname}${release}${shared_ext}$major'
12444   shlibpath_var=LD_LIBRARY_PATH
12445   case $host_vendor in
12446     sni)
12447       shlibpath_overrides_runpath=no
12448       need_lib_prefix=no
12449       export_dynamic_flag_spec='${wl}-Blargedynsym'
12450       runpath_var=LD_RUN_PATH
12451       ;;
12452     siemens)
12453       need_lib_prefix=no
12454       ;;
12455     motorola)
12456       need_lib_prefix=no
12457       need_version=no
12458       shlibpath_overrides_runpath=no
12459       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12460       ;;
12461   esac
12462   ;;
12463
12464 sysv4*MP*)
12465   if test -d /usr/nec ;then
12466     version_type=linux
12467     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12468     soname_spec='$libname${shared_ext}.$major'
12469     shlibpath_var=LD_LIBRARY_PATH
12470   fi
12471   ;;
12472
12473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12474   version_type=freebsd-elf
12475   need_lib_prefix=no
12476   need_version=no
12477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478   soname_spec='${libname}${release}${shared_ext}$major'
12479   shlibpath_var=LD_LIBRARY_PATH
12480   hardcode_into_libs=yes
12481   if test "$with_gnu_ld" = yes; then
12482     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12483     shlibpath_overrides_runpath=no
12484   else
12485     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12486     shlibpath_overrides_runpath=yes
12487     case $host_os in
12488       sco3.2v5*)
12489         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12490         ;;
12491     esac
12492   fi
12493   sys_lib_dlsearch_path_spec='/usr/lib'
12494   ;;
12495
12496 uts4*)
12497   version_type=linux
12498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12499   soname_spec='${libname}${release}${shared_ext}$major'
12500   shlibpath_var=LD_LIBRARY_PATH
12501   ;;
12502
12503 *)
12504   dynamic_linker=no
12505   ;;
12506 esac
12507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12508 echo "${ECHO_T}$dynamic_linker" >&6; }
12509 test "$dynamic_linker" = no && can_build_shared=no
12510
12511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12512 if test "$GCC" = yes; then
12513   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12514 fi
12515
12516 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12517 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12518 hardcode_action_CXX=
12519 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12520    test -n "$runpath_var_CXX" || \
12521    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12522
12523   # We can hardcode non-existant directories.
12524   if test "$hardcode_direct_CXX" != no &&
12525      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12526      # have to relink, otherwise we might link with an installed library
12527      # when we should be linking with a yet-to-be-installed one
12528      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12529      test "$hardcode_minus_L_CXX" != no; then
12530     # Linking always hardcodes the temporary library directory.
12531     hardcode_action_CXX=relink
12532   else
12533     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12534     hardcode_action_CXX=immediate
12535   fi
12536 else
12537   # We cannot hardcode anything, or else we can only hardcode existing
12538   # directories.
12539   hardcode_action_CXX=unsupported
12540 fi
12541 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12542 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12543
12544 if test "$hardcode_action_CXX" = relink; then
12545   # Fast installation is not supported
12546   enable_fast_install=no
12547 elif test "$shlibpath_overrides_runpath" = yes ||
12548      test "$enable_shared" = no; then
12549   # Fast installation is not necessary
12550   enable_fast_install=needless
12551 fi
12552
12553
12554 # The else clause should only fire when bootstrapping the
12555 # libtool distribution, otherwise you forgot to ship ltmain.sh
12556 # with your package, and you will get complaints that there are
12557 # no rules to generate ltmain.sh.
12558 if test -f "$ltmain"; then
12559   # See if we are running on zsh, and set the options which allow our commands through
12560   # without removal of \ escapes.
12561   if test -n "${ZSH_VERSION+set}" ; then
12562     setopt NO_GLOB_SUBST
12563   fi
12564   # Now quote all the things that may contain metacharacters while being
12565   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12566   # variables and quote the copies for generation of the libtool script.
12567   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12568     SED SHELL STRIP \
12569     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12570     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12571     deplibs_check_method reload_flag reload_cmds need_locks \
12572     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12573     lt_cv_sys_global_symbol_to_c_name_address \
12574     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12575     old_postinstall_cmds old_postuninstall_cmds \
12576     compiler_CXX \
12577     CC_CXX \
12578     LD_CXX \
12579     lt_prog_compiler_wl_CXX \
12580     lt_prog_compiler_pic_CXX \
12581     lt_prog_compiler_static_CXX \
12582     lt_prog_compiler_no_builtin_flag_CXX \
12583     export_dynamic_flag_spec_CXX \
12584     thread_safe_flag_spec_CXX \
12585     whole_archive_flag_spec_CXX \
12586     enable_shared_with_static_runtimes_CXX \
12587     old_archive_cmds_CXX \
12588     old_archive_from_new_cmds_CXX \
12589     predep_objects_CXX \
12590     postdep_objects_CXX \
12591     predeps_CXX \
12592     postdeps_CXX \
12593     compiler_lib_search_path_CXX \
12594     archive_cmds_CXX \
12595     archive_expsym_cmds_CXX \
12596     postinstall_cmds_CXX \
12597     postuninstall_cmds_CXX \
12598     old_archive_from_expsyms_cmds_CXX \
12599     allow_undefined_flag_CXX \
12600     no_undefined_flag_CXX \
12601     export_symbols_cmds_CXX \
12602     hardcode_libdir_flag_spec_CXX \
12603     hardcode_libdir_flag_spec_ld_CXX \
12604     hardcode_libdir_separator_CXX \
12605     hardcode_automatic_CXX \
12606     module_cmds_CXX \
12607     module_expsym_cmds_CXX \
12608     lt_cv_prog_compiler_c_o_CXX \
12609     fix_srcfile_path_CXX \
12610     exclude_expsyms_CXX \
12611     include_expsyms_CXX; do
12612
12613     case $var in
12614     old_archive_cmds_CXX | \
12615     old_archive_from_new_cmds_CXX | \
12616     archive_cmds_CXX | \
12617     archive_expsym_cmds_CXX | \
12618     module_cmds_CXX | \
12619     module_expsym_cmds_CXX | \
12620     old_archive_from_expsyms_cmds_CXX | \
12621     export_symbols_cmds_CXX | \
12622     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12623     postinstall_cmds | postuninstall_cmds | \
12624     old_postinstall_cmds | old_postuninstall_cmds | \
12625     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12626       # Double-quote double-evaled strings.
12627       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12628       ;;
12629     *)
12630       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12631       ;;
12632     esac
12633   done
12634
12635   case $lt_echo in
12636   *'\$0 --fallback-echo"')
12637     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12638     ;;
12639   esac
12640
12641 cfgfile="$ofile"
12642
12643   cat <<__EOF__ >> "$cfgfile"
12644 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12645
12646 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12647
12648 # Shell to use when invoking shell scripts.
12649 SHELL=$lt_SHELL
12650
12651 # Whether or not to build shared libraries.
12652 build_libtool_libs=$enable_shared
12653
12654 # Whether or not to build static libraries.
12655 build_old_libs=$enable_static
12656
12657 # Whether or not to add -lc for building shared libraries.
12658 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12659
12660 # Whether or not to disallow shared libs when runtime libs are static
12661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12662
12663 # Whether or not to optimize for fast installation.
12664 fast_install=$enable_fast_install
12665
12666 # The host system.
12667 host_alias=$host_alias
12668 host=$host
12669 host_os=$host_os
12670
12671 # The build system.
12672 build_alias=$build_alias
12673 build=$build
12674 build_os=$build_os
12675
12676 # An echo program that does not interpret backslashes.
12677 echo=$lt_echo
12678
12679 # The archiver.
12680 AR=$lt_AR
12681 AR_FLAGS=$lt_AR_FLAGS
12682
12683 # A C compiler.
12684 LTCC=$lt_LTCC
12685
12686 # LTCC compiler flags.
12687 LTCFLAGS=$lt_LTCFLAGS
12688
12689 # A language-specific compiler.
12690 CC=$lt_compiler_CXX
12691
12692 # Is the compiler the GNU C compiler?
12693 with_gcc=$GCC_CXX
12694
12695 # An ERE matcher.
12696 EGREP=$lt_EGREP
12697
12698 # The linker used to build libraries.
12699 LD=$lt_LD_CXX
12700
12701 # Whether we need hard or soft links.
12702 LN_S=$lt_LN_S
12703
12704 # A BSD-compatible nm program.
12705 NM=$lt_NM
12706
12707 # A symbol stripping program
12708 STRIP=$lt_STRIP
12709
12710 # Used to examine libraries when file_magic_cmd begins "file"
12711 MAGIC_CMD=$MAGIC_CMD
12712
12713 # Used on cygwin: DLL creation program.
12714 DLLTOOL="$DLLTOOL"
12715
12716 # Used on cygwin: object dumper.
12717 OBJDUMP="$OBJDUMP"
12718
12719 # Used on cygwin: assembler.
12720 AS="$AS"
12721
12722 # The name of the directory that contains temporary libtool files.
12723 objdir=$objdir
12724
12725 # How to create reloadable object files.
12726 reload_flag=$lt_reload_flag
12727 reload_cmds=$lt_reload_cmds
12728
12729 # How to pass a linker flag through the compiler.
12730 wl=$lt_lt_prog_compiler_wl_CXX
12731
12732 # Object file suffix (normally "o").
12733 objext="$ac_objext"
12734
12735 # Old archive suffix (normally "a").
12736 libext="$libext"
12737
12738 # Shared library suffix (normally ".so").
12739 shrext_cmds='$shrext_cmds'
12740
12741 # Executable file suffix (normally "").
12742 exeext="$exeext"
12743
12744 # Additional compiler flags for building library objects.
12745 pic_flag=$lt_lt_prog_compiler_pic_CXX
12746 pic_mode=$pic_mode
12747
12748 # What is the maximum length of a command?
12749 max_cmd_len=$lt_cv_sys_max_cmd_len
12750
12751 # Does compiler simultaneously support -c and -o options?
12752 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12753
12754 # Must we lock files when doing compilation?
12755 need_locks=$lt_need_locks
12756
12757 # Do we need the lib prefix for modules?
12758 need_lib_prefix=$need_lib_prefix
12759
12760 # Do we need a version for libraries?
12761 need_version=$need_version
12762
12763 # Whether dlopen is supported.
12764 dlopen_support=$enable_dlopen
12765
12766 # Whether dlopen of programs is supported.
12767 dlopen_self=$enable_dlopen_self
12768
12769 # Whether dlopen of statically linked programs is supported.
12770 dlopen_self_static=$enable_dlopen_self_static
12771
12772 # Compiler flag to prevent dynamic linking.
12773 link_static_flag=$lt_lt_prog_compiler_static_CXX
12774
12775 # Compiler flag to turn off builtin functions.
12776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12777
12778 # Compiler flag to allow reflexive dlopens.
12779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12780
12781 # Compiler flag to generate shared objects directly from archives.
12782 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12783
12784 # Compiler flag to generate thread-safe objects.
12785 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12786
12787 # Library versioning type.
12788 version_type=$version_type
12789
12790 # Format of library name prefix.
12791 libname_spec=$lt_libname_spec
12792
12793 # List of archive names.  First name is the real one, the rest are links.
12794 # The last name is the one that the linker finds with -lNAME.
12795 library_names_spec=$lt_library_names_spec
12796
12797 # The coded name of the library, if different from the real name.
12798 soname_spec=$lt_soname_spec
12799
12800 # Commands used to build and install an old-style archive.
12801 RANLIB=$lt_RANLIB
12802 old_archive_cmds=$lt_old_archive_cmds_CXX
12803 old_postinstall_cmds=$lt_old_postinstall_cmds
12804 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12805
12806 # Create an old-style archive from a shared archive.
12807 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12808
12809 # Create a temporary old-style archive to link instead of a shared archive.
12810 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12811
12812 # Commands used to build and install a shared archive.
12813 archive_cmds=$lt_archive_cmds_CXX
12814 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12815 postinstall_cmds=$lt_postinstall_cmds
12816 postuninstall_cmds=$lt_postuninstall_cmds
12817
12818 # Commands used to build a loadable module (assumed same as above if empty)
12819 module_cmds=$lt_module_cmds_CXX
12820 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12821
12822 # Commands to strip libraries.
12823 old_striplib=$lt_old_striplib
12824 striplib=$lt_striplib
12825
12826 # Dependencies to place before the objects being linked to create a
12827 # shared library.
12828 predep_objects=$lt_predep_objects_CXX
12829
12830 # Dependencies to place after the objects being linked to create a
12831 # shared library.
12832 postdep_objects=$lt_postdep_objects_CXX
12833
12834 # Dependencies to place before the objects being linked to create a
12835 # shared library.
12836 predeps=$lt_predeps_CXX
12837
12838 # Dependencies to place after the objects being linked to create a
12839 # shared library.
12840 postdeps=$lt_postdeps_CXX
12841
12842 # The library search path used internally by the compiler when linking
12843 # a shared library.
12844 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12845
12846 # Method to check whether dependent libraries are shared objects.
12847 deplibs_check_method=$lt_deplibs_check_method
12848
12849 # Command to use when deplibs_check_method == file_magic.
12850 file_magic_cmd=$lt_file_magic_cmd
12851
12852 # Flag that allows shared libraries with undefined symbols to be built.
12853 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12854
12855 # Flag that forces no undefined symbols.
12856 no_undefined_flag=$lt_no_undefined_flag_CXX
12857
12858 # Commands used to finish a libtool library installation in a directory.
12859 finish_cmds=$lt_finish_cmds
12860
12861 # Same as above, but a single script fragment to be evaled but not shown.
12862 finish_eval=$lt_finish_eval
12863
12864 # Take the output of nm and produce a listing of raw symbols and C names.
12865 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12866
12867 # Transform the output of nm in a proper C declaration
12868 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12869
12870 # Transform the output of nm in a C name address pair
12871 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12872
12873 # This is the shared library runtime path variable.
12874 runpath_var=$runpath_var
12875
12876 # This is the shared library path variable.
12877 shlibpath_var=$shlibpath_var
12878
12879 # Is shlibpath searched before the hard-coded library search path?
12880 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12881
12882 # How to hardcode a shared library path into an executable.
12883 hardcode_action=$hardcode_action_CXX
12884
12885 # Whether we should hardcode library paths into libraries.
12886 hardcode_into_libs=$hardcode_into_libs
12887
12888 # Flag to hardcode \$libdir into a binary during linking.
12889 # This must work even if \$libdir does not exist.
12890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12891
12892 # If ld is used when linking, flag to hardcode \$libdir into
12893 # a binary during linking. This must work even if \$libdir does
12894 # not exist.
12895 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12896
12897 # Whether we need a single -rpath flag with a separated argument.
12898 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12899
12900 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12901 # resulting binary.
12902 hardcode_direct=$hardcode_direct_CXX
12903
12904 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12905 # resulting binary.
12906 hardcode_minus_L=$hardcode_minus_L_CXX
12907
12908 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12909 # the resulting binary.
12910 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12911
12912 # Set to yes if building a shared library automatically hardcodes DIR into the library
12913 # and all subsequent libraries and executables linked against it.
12914 hardcode_automatic=$hardcode_automatic_CXX
12915
12916 # Variables whose values should be saved in libtool wrapper scripts and
12917 # restored at relink time.
12918 variables_saved_for_relink="$variables_saved_for_relink"
12919
12920 # Whether libtool must link a program against all its dependency libraries.
12921 link_all_deplibs=$link_all_deplibs_CXX
12922
12923 # Compile-time system search path for libraries
12924 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12925
12926 # Run-time system search path for libraries
12927 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12928
12929 # Fix the shell variable \$srcfile for the compiler.
12930 fix_srcfile_path=$lt_fix_srcfile_path
12931
12932 # Set to yes if exported symbols are required.
12933 always_export_symbols=$always_export_symbols_CXX
12934
12935 # The commands to list exported symbols.
12936 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12937
12938 # The commands to extract the exported symbol list from a shared archive.
12939 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12940
12941 # Symbols that should not be listed in the preloaded symbols.
12942 exclude_expsyms=$lt_exclude_expsyms_CXX
12943
12944 # Symbols that must always be exported.
12945 include_expsyms=$lt_include_expsyms_CXX
12946
12947 # ### END LIBTOOL TAG CONFIG: $tagname
12948
12949 __EOF__
12950
12951
12952 else
12953   # If there is no Makefile yet, we rely on a make rule to execute
12954   # `config.status --recheck' to rerun these tests and create the
12955   # libtool script then.
12956   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12957   if test -f "$ltmain_in"; then
12958     test -f Makefile && make "$ltmain"
12959   fi
12960 fi
12961
12962
12963 ac_ext=c
12964 ac_cpp='$CPP $CPPFLAGS'
12965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12968
12969 CC=$lt_save_CC
12970 LDCXX=$LD
12971 LD=$lt_save_LD
12972 GCC=$lt_save_GCC
12973 with_gnu_ldcxx=$with_gnu_ld
12974 with_gnu_ld=$lt_save_with_gnu_ld
12975 lt_cv_path_LDCXX=$lt_cv_path_LD
12976 lt_cv_path_LD=$lt_save_path_LD
12977 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12978 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12979
12980         else
12981           tagname=""
12982         fi
12983         ;;
12984
12985       F77)
12986         if test -n "$F77" && test "X$F77" != "Xno"; then
12987
12988 ac_ext=f
12989 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12990 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12992
12993
12994 archive_cmds_need_lc_F77=no
12995 allow_undefined_flag_F77=
12996 always_export_symbols_F77=no
12997 archive_expsym_cmds_F77=
12998 export_dynamic_flag_spec_F77=
12999 hardcode_direct_F77=no
13000 hardcode_libdir_flag_spec_F77=
13001 hardcode_libdir_flag_spec_ld_F77=
13002 hardcode_libdir_separator_F77=
13003 hardcode_minus_L_F77=no
13004 hardcode_automatic_F77=no
13005 module_cmds_F77=
13006 module_expsym_cmds_F77=
13007 link_all_deplibs_F77=unknown
13008 old_archive_cmds_F77=$old_archive_cmds
13009 no_undefined_flag_F77=
13010 whole_archive_flag_spec_F77=
13011 enable_shared_with_static_runtimes_F77=no
13012
13013 # Source file extension for f77 test sources.
13014 ac_ext=f
13015
13016 # Object file extension for compiled f77 test sources.
13017 objext=o
13018 objext_F77=$objext
13019
13020 # Code to be used in simple compile tests
13021 lt_simple_compile_test_code="\
13022       subroutine t
13023       return
13024       end
13025 "
13026
13027 # Code to be used in simple link tests
13028 lt_simple_link_test_code="\
13029       program t
13030       end
13031 "
13032
13033 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13034
13035 # If no C compiler was specified, use CC.
13036 LTCC=${LTCC-"$CC"}
13037
13038 # If no C compiler flags were specified, use CFLAGS.
13039 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13040
13041 # Allow CC to be a program name with arguments.
13042 compiler=$CC
13043
13044
13045 # save warnings/boilerplate of simple test code
13046 ac_outfile=conftest.$ac_objext
13047 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13048 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13049 _lt_compiler_boilerplate=`cat conftest.err`
13050 $rm conftest*
13051
13052 ac_outfile=conftest.$ac_objext
13053 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13054 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13055 _lt_linker_boilerplate=`cat conftest.err`
13056 $rm conftest*
13057
13058
13059 # Allow CC to be a program name with arguments.
13060 lt_save_CC="$CC"
13061 CC=${F77-"f77"}
13062 compiler=$CC
13063 compiler_F77=$CC
13064 for cc_temp in $compiler""; do
13065   case $cc_temp in
13066     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13067     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13068     \-*) ;;
13069     *) break;;
13070   esac
13071 done
13072 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13073
13074
13075 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13076 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13077 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13078 echo "${ECHO_T}$can_build_shared" >&6; }
13079
13080 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13081 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13082 test "$can_build_shared" = "no" && enable_shared=no
13083
13084 # On AIX, shared libraries and static libraries use the same namespace, and
13085 # are all built from PIC.
13086 case $host_os in
13087 aix3*)
13088   test "$enable_shared" = yes && enable_static=no
13089   if test -n "$RANLIB"; then
13090     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13091     postinstall_cmds='$RANLIB $lib'
13092   fi
13093   ;;
13094 aix4* | aix5*)
13095   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13096     test "$enable_shared" = yes && enable_static=no
13097   fi
13098   ;;
13099 esac
13100 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13101 echo "${ECHO_T}$enable_shared" >&6; }
13102
13103 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13104 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13105 # Make sure either enable_shared or enable_static is yes.
13106 test "$enable_shared" = yes || enable_static=yes
13107 { echo "$as_me:$LINENO: result: $enable_static" >&5
13108 echo "${ECHO_T}$enable_static" >&6; }
13109
13110 GCC_F77="$G77"
13111 LD_F77="$LD"
13112
13113 lt_prog_compiler_wl_F77=
13114 lt_prog_compiler_pic_F77=
13115 lt_prog_compiler_static_F77=
13116
13117 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13118 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13119
13120   if test "$GCC" = yes; then
13121     lt_prog_compiler_wl_F77='-Wl,'
13122     lt_prog_compiler_static_F77='-static'
13123
13124     case $host_os in
13125       aix*)
13126       # All AIX code is PIC.
13127       if test "$host_cpu" = ia64; then
13128         # AIX 5 now supports IA64 processor
13129         lt_prog_compiler_static_F77='-Bstatic'
13130       fi
13131       ;;
13132
13133     amigaos*)
13134       # FIXME: we need at least 68020 code to build shared libraries, but
13135       # adding the `-m68020' flag to GCC prevents building anything better,
13136       # like `-m68040'.
13137       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13138       ;;
13139
13140     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13141       # PIC is the default for these OSes.
13142       ;;
13143
13144     mingw* | cygwin* | pw32* | os2*)
13145       # This hack is so that the source file can tell whether it is being
13146       # built for inclusion in a dll (and should export symbols for example).
13147       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13148       # (--disable-auto-import) libraries
13149       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13150       ;;
13151
13152     darwin* | rhapsody*)
13153       # PIC is the default on this platform
13154       # Common symbols not allowed in MH_DYLIB files
13155       lt_prog_compiler_pic_F77='-fno-common'
13156       ;;
13157
13158     interix[3-9]*)
13159       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13160       # Instead, we relocate shared libraries at runtime.
13161       ;;
13162
13163     msdosdjgpp*)
13164       # Just because we use GCC doesn't mean we suddenly get shared libraries
13165       # on systems that don't support them.
13166       lt_prog_compiler_can_build_shared_F77=no
13167       enable_shared=no
13168       ;;
13169
13170     sysv4*MP*)
13171       if test -d /usr/nec; then
13172         lt_prog_compiler_pic_F77=-Kconform_pic
13173       fi
13174       ;;
13175
13176     hpux*)
13177       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13178       # not for PA HP-UX.
13179       case $host_cpu in
13180       hppa*64*|ia64*)
13181         # +Z the default
13182         ;;
13183       *)
13184         lt_prog_compiler_pic_F77='-fPIC'
13185         ;;
13186       esac
13187       ;;
13188
13189     *)
13190       lt_prog_compiler_pic_F77='-fPIC'
13191       ;;
13192     esac
13193   else
13194     # PORTME Check for flag to pass linker flags through the system compiler.
13195     case $host_os in
13196     aix*)
13197       lt_prog_compiler_wl_F77='-Wl,'
13198       if test "$host_cpu" = ia64; then
13199         # AIX 5 now supports IA64 processor
13200         lt_prog_compiler_static_F77='-Bstatic'
13201       else
13202         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13203       fi
13204       ;;
13205       darwin*)
13206         # PIC is the default on this platform
13207         # Common symbols not allowed in MH_DYLIB files
13208        case $cc_basename in
13209          xlc*)
13210          lt_prog_compiler_pic_F77='-qnocommon'
13211          lt_prog_compiler_wl_F77='-Wl,'
13212          ;;
13213        esac
13214        ;;
13215
13216     mingw* | cygwin* | pw32* | os2*)
13217       # This hack is so that the source file can tell whether it is being
13218       # built for inclusion in a dll (and should export symbols for example).
13219       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13220       ;;
13221
13222     hpux9* | hpux10* | hpux11*)
13223       lt_prog_compiler_wl_F77='-Wl,'
13224       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13225       # not for PA HP-UX.
13226       case $host_cpu in
13227       hppa*64*|ia64*)
13228         # +Z the default
13229         ;;
13230       *)
13231         lt_prog_compiler_pic_F77='+Z'
13232         ;;
13233       esac
13234       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13235       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13236       ;;
13237
13238     irix5* | irix6* | nonstopux*)
13239       lt_prog_compiler_wl_F77='-Wl,'
13240       # PIC (with -KPIC) is the default.
13241       lt_prog_compiler_static_F77='-non_shared'
13242       ;;
13243
13244     newsos6)
13245       lt_prog_compiler_pic_F77='-KPIC'
13246       lt_prog_compiler_static_F77='-Bstatic'
13247       ;;
13248
13249     linux* | k*bsd*-gnu)
13250       case $cc_basename in
13251       icc* | ecc*)
13252         lt_prog_compiler_wl_F77='-Wl,'
13253         lt_prog_compiler_pic_F77='-KPIC'
13254         lt_prog_compiler_static_F77='-static'
13255         ;;
13256       pgcc* | pgf77* | pgf90* | pgf95*)
13257         # Portland Group compilers (*not* the Pentium gcc compiler,
13258         # which looks to be a dead project)
13259         lt_prog_compiler_wl_F77='-Wl,'
13260         lt_prog_compiler_pic_F77='-fpic'
13261         lt_prog_compiler_static_F77='-Bstatic'
13262         ;;
13263       ccc*)
13264         lt_prog_compiler_wl_F77='-Wl,'
13265         # All Alpha code is PIC.
13266         lt_prog_compiler_static_F77='-non_shared'
13267         ;;
13268       *)
13269         case `$CC -V 2>&1 | sed 5q` in
13270         *Sun\ C*)
13271           # Sun C 5.9
13272           lt_prog_compiler_pic_F77='-KPIC'
13273           lt_prog_compiler_static_F77='-Bstatic'
13274           lt_prog_compiler_wl_F77='-Wl,'
13275           ;;
13276         *Sun\ F*)
13277           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13278           lt_prog_compiler_pic_F77='-KPIC'
13279           lt_prog_compiler_static_F77='-Bstatic'
13280           lt_prog_compiler_wl_F77=''
13281           ;;
13282         esac
13283         ;;
13284       esac
13285       ;;
13286
13287     osf3* | osf4* | osf5*)
13288       lt_prog_compiler_wl_F77='-Wl,'
13289       # All OSF/1 code is PIC.
13290       lt_prog_compiler_static_F77='-non_shared'
13291       ;;
13292
13293     rdos*)
13294       lt_prog_compiler_static_F77='-non_shared'
13295       ;;
13296
13297     solaris*)
13298       lt_prog_compiler_pic_F77='-KPIC'
13299       lt_prog_compiler_static_F77='-Bstatic'
13300       case $cc_basename in
13301       f77* | f90* | f95*)
13302         lt_prog_compiler_wl_F77='-Qoption ld ';;
13303       *)
13304         lt_prog_compiler_wl_F77='-Wl,';;
13305       esac
13306       ;;
13307
13308     sunos4*)
13309       lt_prog_compiler_wl_F77='-Qoption ld '
13310       lt_prog_compiler_pic_F77='-PIC'
13311       lt_prog_compiler_static_F77='-Bstatic'
13312       ;;
13313
13314     sysv4 | sysv4.2uw2* | sysv4.3*)
13315       lt_prog_compiler_wl_F77='-Wl,'
13316       lt_prog_compiler_pic_F77='-KPIC'
13317       lt_prog_compiler_static_F77='-Bstatic'
13318       ;;
13319
13320     sysv4*MP*)
13321       if test -d /usr/nec ;then
13322         lt_prog_compiler_pic_F77='-Kconform_pic'
13323         lt_prog_compiler_static_F77='-Bstatic'
13324       fi
13325       ;;
13326
13327     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13328       lt_prog_compiler_wl_F77='-Wl,'
13329       lt_prog_compiler_pic_F77='-KPIC'
13330       lt_prog_compiler_static_F77='-Bstatic'
13331       ;;
13332
13333     unicos*)
13334       lt_prog_compiler_wl_F77='-Wl,'
13335       lt_prog_compiler_can_build_shared_F77=no
13336       ;;
13337
13338     uts4*)
13339       lt_prog_compiler_pic_F77='-pic'
13340       lt_prog_compiler_static_F77='-Bstatic'
13341       ;;
13342
13343     *)
13344       lt_prog_compiler_can_build_shared_F77=no
13345       ;;
13346     esac
13347   fi
13348
13349 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13350 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13351
13352 #
13353 # Check to make sure the PIC flag actually works.
13354 #
13355 if test -n "$lt_prog_compiler_pic_F77"; then
13356
13357 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13358 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13359 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   lt_prog_compiler_pic_works_F77=no
13363   ac_outfile=conftest.$ac_objext
13364    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13365    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13366    # Insert the option either (1) after the last *FLAGS variable, or
13367    # (2) before a word containing "conftest.", or (3) at the end.
13368    # Note that $ac_compile itself does not contain backslashes and begins
13369    # with a dollar sign (not a hyphen), so the echo should work correctly.
13370    # The option is referenced via a variable to avoid confusing sed.
13371    lt_compile=`echo "$ac_compile" | $SED \
13372    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13373    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13374    -e 's:$: $lt_compiler_flag:'`
13375    (eval echo "\"\$as_me:13375: $lt_compile\"" >&5)
13376    (eval "$lt_compile" 2>conftest.err)
13377    ac_status=$?
13378    cat conftest.err >&5
13379    echo "$as_me:13379: \$? = $ac_status" >&5
13380    if (exit $ac_status) && test -s "$ac_outfile"; then
13381      # The compiler can only warn and ignore the option if not recognized
13382      # So say no if there are warnings other than the usual output.
13383      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13384      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13385      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13386        lt_prog_compiler_pic_works_F77=yes
13387      fi
13388    fi
13389    $rm conftest*
13390
13391 fi
13392 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13393 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13394
13395 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13396     case $lt_prog_compiler_pic_F77 in
13397      "" | " "*) ;;
13398      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13399      esac
13400 else
13401     lt_prog_compiler_pic_F77=
13402      lt_prog_compiler_can_build_shared_F77=no
13403 fi
13404
13405 fi
13406 case $host_os in
13407   # For platforms which do not support PIC, -DPIC is meaningless:
13408   *djgpp*)
13409     lt_prog_compiler_pic_F77=
13410     ;;
13411   *)
13412     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13413     ;;
13414 esac
13415
13416 #
13417 # Check to make sure the static flag actually works.
13418 #
13419 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13420 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13421 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13422 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13423   echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425   lt_prog_compiler_static_works_F77=no
13426    save_LDFLAGS="$LDFLAGS"
13427    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13428    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13429    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13430      # The linker can only warn and ignore the option if not recognized
13431      # So say no if there are warnings
13432      if test -s conftest.err; then
13433        # Append any errors to the config.log.
13434        cat conftest.err 1>&5
13435        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13436        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13437        if diff conftest.exp conftest.er2 >/dev/null; then
13438          lt_prog_compiler_static_works_F77=yes
13439        fi
13440      else
13441        lt_prog_compiler_static_works_F77=yes
13442      fi
13443    fi
13444    $rm conftest*
13445    LDFLAGS="$save_LDFLAGS"
13446
13447 fi
13448 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13449 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13450
13451 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13452     :
13453 else
13454     lt_prog_compiler_static_F77=
13455 fi
13456
13457
13458 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13459 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13460 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463   lt_cv_prog_compiler_c_o_F77=no
13464    $rm -r conftest 2>/dev/null
13465    mkdir conftest
13466    cd conftest
13467    mkdir out
13468    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13469
13470    lt_compiler_flag="-o out/conftest2.$ac_objext"
13471    # Insert the option either (1) after the last *FLAGS variable, or
13472    # (2) before a word containing "conftest.", or (3) at the end.
13473    # Note that $ac_compile itself does not contain backslashes and begins
13474    # with a dollar sign (not a hyphen), so the echo should work correctly.
13475    lt_compile=`echo "$ac_compile" | $SED \
13476    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13477    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13478    -e 's:$: $lt_compiler_flag:'`
13479    (eval echo "\"\$as_me:13479: $lt_compile\"" >&5)
13480    (eval "$lt_compile" 2>out/conftest.err)
13481    ac_status=$?
13482    cat out/conftest.err >&5
13483    echo "$as_me:13483: \$? = $ac_status" >&5
13484    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13485    then
13486      # The compiler can only warn and ignore the option if not recognized
13487      # So say no if there are warnings
13488      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13489      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13490      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13491        lt_cv_prog_compiler_c_o_F77=yes
13492      fi
13493    fi
13494    chmod u+w . 2>&5
13495    $rm conftest*
13496    # SGI C++ compiler will create directory out/ii_files/ for
13497    # template instantiation
13498    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13499    $rm out/* && rmdir out
13500    cd ..
13501    rmdir conftest
13502    $rm conftest*
13503
13504 fi
13505 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13506 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13507
13508
13509 hard_links="nottested"
13510 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13511   # do not overwrite the value of need_locks provided by the user
13512   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13513 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13514   hard_links=yes
13515   $rm conftest*
13516   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517   touch conftest.a
13518   ln conftest.a conftest.b 2>&5 || hard_links=no
13519   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13520   { echo "$as_me:$LINENO: result: $hard_links" >&5
13521 echo "${ECHO_T}$hard_links" >&6; }
13522   if test "$hard_links" = no; then
13523     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13524 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13525     need_locks=warn
13526   fi
13527 else
13528   need_locks=no
13529 fi
13530
13531 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13532 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13533
13534   runpath_var=
13535   allow_undefined_flag_F77=
13536   enable_shared_with_static_runtimes_F77=no
13537   archive_cmds_F77=
13538   archive_expsym_cmds_F77=
13539   old_archive_From_new_cmds_F77=
13540   old_archive_from_expsyms_cmds_F77=
13541   export_dynamic_flag_spec_F77=
13542   whole_archive_flag_spec_F77=
13543   thread_safe_flag_spec_F77=
13544   hardcode_libdir_flag_spec_F77=
13545   hardcode_libdir_flag_spec_ld_F77=
13546   hardcode_libdir_separator_F77=
13547   hardcode_direct_F77=no
13548   hardcode_minus_L_F77=no
13549   hardcode_shlibpath_var_F77=unsupported
13550   link_all_deplibs_F77=unknown
13551   hardcode_automatic_F77=no
13552   module_cmds_F77=
13553   module_expsym_cmds_F77=
13554   always_export_symbols_F77=no
13555   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13556   # include_expsyms should be a list of space-separated symbols to be *always*
13557   # included in the symbol list
13558   include_expsyms_F77=
13559   # exclude_expsyms can be an extended regexp of symbols to exclude
13560   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13561   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13562   # as well as any symbol that contains `d'.
13563   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13564   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13565   # platforms (ab)use it in PIC code, but their linkers get confused if
13566   # the symbol is explicitly referenced.  Since portable code cannot
13567   # rely on this symbol name, it's probably fine to never include it in
13568   # preloaded symbol tables.
13569   extract_expsyms_cmds=
13570   # Just being paranoid about ensuring that cc_basename is set.
13571   for cc_temp in $compiler""; do
13572   case $cc_temp in
13573     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13574     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13575     \-*) ;;
13576     *) break;;
13577   esac
13578 done
13579 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13580
13581   case $host_os in
13582   cygwin* | mingw* | pw32*)
13583     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13584     # When not using gcc, we currently assume that we are using
13585     # Microsoft Visual C++.
13586     if test "$GCC" != yes; then
13587       with_gnu_ld=no
13588     fi
13589     ;;
13590   interix*)
13591     # we just hope/assume this is gcc and not c89 (= MSVC++)
13592     with_gnu_ld=yes
13593     ;;
13594   openbsd*)
13595     with_gnu_ld=no
13596     ;;
13597   esac
13598
13599   ld_shlibs_F77=yes
13600   if test "$with_gnu_ld" = yes; then
13601     # If archive_cmds runs LD, not CC, wlarc should be empty
13602     wlarc='${wl}'
13603
13604     # Set some defaults for GNU ld with shared library support. These
13605     # are reset later if shared libraries are not supported. Putting them
13606     # here allows them to be overridden if necessary.
13607     runpath_var=LD_RUN_PATH
13608     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13609     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13610     # ancient GNU ld didn't support --whole-archive et. al.
13611     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13612         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13613       else
13614         whole_archive_flag_spec_F77=
13615     fi
13616     supports_anon_versioning=no
13617     case `$LD -v 2>/dev/null` in
13618       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13619       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13620       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13621       *\ 2.11.*) ;; # other 2.11 versions
13622       *) supports_anon_versioning=yes ;;
13623     esac
13624
13625     # See if GNU ld supports shared libraries.
13626     case $host_os in
13627     aix3* | aix4* | aix5*)
13628       # On AIX/PPC, the GNU linker is very broken
13629       if test "$host_cpu" != ia64; then
13630         ld_shlibs_F77=no
13631         cat <<EOF 1>&2
13632
13633 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13634 *** to be unable to reliably create shared libraries on AIX.
13635 *** Therefore, libtool is disabling shared libraries support.  If you
13636 *** really care for shared libraries, you may want to modify your PATH
13637 *** so that a non-GNU linker is found, and then restart.
13638
13639 EOF
13640       fi
13641       ;;
13642
13643     amigaos*)
13644       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)'
13645       hardcode_libdir_flag_spec_F77='-L$libdir'
13646       hardcode_minus_L_F77=yes
13647
13648       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13649       # that the semantics of dynamic libraries on AmigaOS, at least up
13650       # to version 4, is to share data among multiple programs linked
13651       # with the same dynamic library.  Since this doesn't match the
13652       # behavior of shared libraries on other platforms, we can't use
13653       # them.
13654       ld_shlibs_F77=no
13655       ;;
13656
13657     beos*)
13658       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659         allow_undefined_flag_F77=unsupported
13660         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13661         # support --undefined.  This deserves some investigation.  FIXME
13662         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663       else
13664         ld_shlibs_F77=no
13665       fi
13666       ;;
13667
13668     cygwin* | mingw* | pw32*)
13669       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13670       # as there is no search path for DLLs.
13671       hardcode_libdir_flag_spec_F77='-L$libdir'
13672       allow_undefined_flag_F77=unsupported
13673       always_export_symbols_F77=no
13674       enable_shared_with_static_runtimes_F77=yes
13675       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13676
13677       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13678         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13679         # If the export-symbols file already is a .def file (1st line
13680         # is EXPORTS), use it as is; otherwise, prepend...
13681         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13682           cp $export_symbols $output_objdir/$soname.def;
13683         else
13684           echo EXPORTS > $output_objdir/$soname.def;
13685           cat $export_symbols >> $output_objdir/$soname.def;
13686         fi~
13687         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13688       else
13689         ld_shlibs_F77=no
13690       fi
13691       ;;
13692
13693     interix[3-9]*)
13694       hardcode_direct_F77=no
13695       hardcode_shlibpath_var_F77=no
13696       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13697       export_dynamic_flag_spec_F77='${wl}-E'
13698       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13699       # Instead, shared libraries are loaded at an image base (0x10000000 by
13700       # default) and relocated if they conflict, which is a slow very memory
13701       # consuming and fragmenting process.  To avoid this, we pick a random,
13702       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13703       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13704       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'
13705       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'
13706       ;;
13707
13708     gnu* | linux* | k*bsd*-gnu)
13709       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13710         tmp_addflag=
13711         case $cc_basename,$host_cpu in
13712         pgcc*)                          # Portland Group C compiler
13713           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'
13714           tmp_addflag=' $pic_flag'
13715           ;;
13716         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13717           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'
13718           tmp_addflag=' $pic_flag -Mnomain' ;;
13719         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13720           tmp_addflag=' -i_dynamic' ;;
13721         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13722           tmp_addflag=' -i_dynamic -nofor_main' ;;
13723         ifc* | ifort*)                  # Intel Fortran compiler
13724           tmp_addflag=' -nofor_main' ;;
13725         esac
13726         case `$CC -V 2>&1 | sed 5q` in
13727         *Sun\ C*)                       # Sun C 5.9
13728           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'
13729           tmp_sharedflag='-G' ;;
13730         *Sun\ F*)                       # Sun Fortran 8.3
13731           tmp_sharedflag='-G' ;;
13732         *)
13733           tmp_sharedflag='-shared' ;;
13734         esac
13735         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13736
13737         if test $supports_anon_versioning = yes; then
13738           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13739   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13740   $echo "local: *; };" >> $output_objdir/$libname.ver~
13741           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13742         fi
13743       else
13744         ld_shlibs_F77=no
13745       fi
13746       ;;
13747
13748     netbsd*)
13749       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13750         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13751         wlarc=
13752       else
13753         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13754         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13755       fi
13756       ;;
13757
13758     solaris*)
13759       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13760         ld_shlibs_F77=no
13761         cat <<EOF 1>&2
13762
13763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13764 *** create shared libraries on Solaris systems.  Therefore, libtool
13765 *** is disabling shared libraries support.  We urge you to upgrade GNU
13766 *** binutils to release 2.9.1 or newer.  Another option is to modify
13767 *** your PATH or compiler configuration so that the native linker is
13768 *** used, and then restart.
13769
13770 EOF
13771       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13773         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13774       else
13775         ld_shlibs_F77=no
13776       fi
13777       ;;
13778
13779     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13780       case `$LD -v 2>&1` in
13781         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13782         ld_shlibs_F77=no
13783         cat <<_LT_EOF 1>&2
13784
13785 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13786 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13787 *** is disabling shared libraries support.  We urge you to upgrade GNU
13788 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13789 *** your PATH or compiler configuration so that the native linker is
13790 *** used, and then restart.
13791
13792 _LT_EOF
13793         ;;
13794         *)
13795           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13796             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13797             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13798             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13799           else
13800             ld_shlibs_F77=no
13801           fi
13802         ;;
13803       esac
13804       ;;
13805
13806     sunos4*)
13807       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13808       wlarc=
13809       hardcode_direct_F77=yes
13810       hardcode_shlibpath_var_F77=no
13811       ;;
13812
13813     *)
13814       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13815         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13816         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13817       else
13818         ld_shlibs_F77=no
13819       fi
13820       ;;
13821     esac
13822
13823     if test "$ld_shlibs_F77" = no; then
13824       runpath_var=
13825       hardcode_libdir_flag_spec_F77=
13826       export_dynamic_flag_spec_F77=
13827       whole_archive_flag_spec_F77=
13828     fi
13829   else
13830     # PORTME fill in a description of your system's linker (not GNU ld)
13831     case $host_os in
13832     aix3*)
13833       allow_undefined_flag_F77=unsupported
13834       always_export_symbols_F77=yes
13835       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'
13836       # Note: this linker hardcodes the directories in LIBPATH if there
13837       # are no directories specified by -L.
13838       hardcode_minus_L_F77=yes
13839       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13840         # Neither direct hardcoding nor static linking is supported with a
13841         # broken collect2.
13842         hardcode_direct_F77=unsupported
13843       fi
13844       ;;
13845
13846     aix4* | aix5*)
13847       if test "$host_cpu" = ia64; then
13848         # On IA64, the linker does run time linking by default, so we don't
13849         # have to do anything special.
13850         aix_use_runtimelinking=no
13851         exp_sym_flag='-Bexport'
13852         no_entry_flag=""
13853       else
13854         # If we're using GNU nm, then we don't want the "-C" option.
13855         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13856         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13857           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'
13858         else
13859           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'
13860         fi
13861         aix_use_runtimelinking=no
13862
13863         # Test if we are trying to use run time linking or normal
13864         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13865         # need to do runtime linking.
13866         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13867           for ld_flag in $LDFLAGS; do
13868           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13869             aix_use_runtimelinking=yes
13870             break
13871           fi
13872           done
13873           ;;
13874         esac
13875
13876         exp_sym_flag='-bexport'
13877         no_entry_flag='-bnoentry'
13878       fi
13879
13880       # When large executables or shared objects are built, AIX ld can
13881       # have problems creating the table of contents.  If linking a library
13882       # or program results in "error TOC overflow" add -mminimal-toc to
13883       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13884       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13885
13886       archive_cmds_F77=''
13887       hardcode_direct_F77=yes
13888       hardcode_libdir_separator_F77=':'
13889       link_all_deplibs_F77=yes
13890
13891       if test "$GCC" = yes; then
13892         case $host_os in aix4.[012]|aix4.[012].*)
13893         # We only want to do this on AIX 4.2 and lower, the check
13894         # below for broken collect2 doesn't work under 4.3+
13895           collect2name=`${CC} -print-prog-name=collect2`
13896           if test -f "$collect2name" && \
13897            strings "$collect2name" | grep resolve_lib_name >/dev/null
13898           then
13899           # We have reworked collect2
13900           :
13901           else
13902           # We have old collect2
13903           hardcode_direct_F77=unsupported
13904           # It fails to find uninstalled libraries when the uninstalled
13905           # path is not listed in the libpath.  Setting hardcode_minus_L
13906           # to unsupported forces relinking
13907           hardcode_minus_L_F77=yes
13908           hardcode_libdir_flag_spec_F77='-L$libdir'
13909           hardcode_libdir_separator_F77=
13910           fi
13911           ;;
13912         esac
13913         shared_flag='-shared'
13914         if test "$aix_use_runtimelinking" = yes; then
13915           shared_flag="$shared_flag "'${wl}-G'
13916         fi
13917       else
13918         # not using gcc
13919         if test "$host_cpu" = ia64; then
13920         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13921         # chokes on -Wl,-G. The following line is correct:
13922           shared_flag='-G'
13923         else
13924           if test "$aix_use_runtimelinking" = yes; then
13925             shared_flag='${wl}-G'
13926           else
13927             shared_flag='${wl}-bM:SRE'
13928           fi
13929         fi
13930       fi
13931
13932       # It seems that -bexpall does not export symbols beginning with
13933       # underscore (_), so it is better to generate a list of symbols to export.
13934       always_export_symbols_F77=yes
13935       if test "$aix_use_runtimelinking" = yes; then
13936         # Warning - without using the other runtime loading flags (-brtl),
13937         # -berok will link without error, but may produce a broken library.
13938         allow_undefined_flag_F77='-berok'
13939        # Determine the default libpath from the value encoded in an empty executable.
13940        cat >conftest.$ac_ext <<_ACEOF
13941       program main
13942
13943       end
13944 _ACEOF
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_link") 2>conftest.er1
13953   ac_status=$?
13954   grep -v '^ *+' conftest.er1 >conftest.err
13955   rm -f conftest.er1
13956   cat conftest.err >&5
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); } && {
13959          test -z "$ac_f77_werror_flag" ||
13960          test ! -s conftest.err
13961        } && test -s conftest$ac_exeext &&
13962        $as_test_x conftest$ac_exeext; then
13963
13964 lt_aix_libpath_sed='
13965     /Import File Strings/,/^$/ {
13966         /^0/ {
13967             s/^0  *\(.*\)$/\1/
13968             p
13969         }
13970     }'
13971 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13972 # Check for a 64-bit object if we didn't find anything.
13973 if test -z "$aix_libpath"; then
13974   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13975 fi
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
13981 fi
13982
13983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13984       conftest$ac_exeext conftest.$ac_ext
13985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13986
13987        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13988         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"
13989        else
13990         if test "$host_cpu" = ia64; then
13991           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13992           allow_undefined_flag_F77="-z nodefs"
13993           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"
13994         else
13995          # Determine the default libpath from the value encoded in an empty executable.
13996          cat >conftest.$ac_ext <<_ACEOF
13997       program main
13998
13999       end
14000 _ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (ac_try="$ac_link"
14003 case "(($ac_try" in
14004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005   *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008   (eval "$ac_link") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } && {
14015          test -z "$ac_f77_werror_flag" ||
14016          test ! -s conftest.err
14017        } && test -s conftest$ac_exeext &&
14018        $as_test_x conftest$ac_exeext; then
14019
14020 lt_aix_libpath_sed='
14021     /Import File Strings/,/^$/ {
14022         /^0/ {
14023             s/^0  *\(.*\)$/\1/
14024             p
14025         }
14026     }'
14027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14028 # Check for a 64-bit object if we didn't find anything.
14029 if test -z "$aix_libpath"; then
14030   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14031 fi
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036
14037 fi
14038
14039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14040       conftest$ac_exeext conftest.$ac_ext
14041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14042
14043          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14044           # Warning - without using the other run time loading flags,
14045           # -berok will link without error, but may produce a broken library.
14046           no_undefined_flag_F77=' ${wl}-bernotok'
14047           allow_undefined_flag_F77=' ${wl}-berok'
14048           # Exported symbols can be pulled into shared objects from archives
14049           whole_archive_flag_spec_F77='$convenience'
14050           archive_cmds_need_lc_F77=yes
14051           # This is similar to how AIX traditionally builds its shared libraries.
14052           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'
14053         fi
14054       fi
14055       ;;
14056
14057     amigaos*)
14058       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)'
14059       hardcode_libdir_flag_spec_F77='-L$libdir'
14060       hardcode_minus_L_F77=yes
14061       # see comment about different semantics on the GNU ld section
14062       ld_shlibs_F77=no
14063       ;;
14064
14065     bsdi[45]*)
14066       export_dynamic_flag_spec_F77=-rdynamic
14067       ;;
14068
14069     cygwin* | mingw* | pw32*)
14070       # When not using gcc, we currently assume that we are using
14071       # Microsoft Visual C++.
14072       # hardcode_libdir_flag_spec is actually meaningless, as there is
14073       # no search path for DLLs.
14074       hardcode_libdir_flag_spec_F77=' '
14075       allow_undefined_flag_F77=unsupported
14076       # Tell ltmain to make .lib files, not .a files.
14077       libext=lib
14078       # Tell ltmain to make .dll files, not .so files.
14079       shrext_cmds=".dll"
14080       # FIXME: Setting linknames here is a bad hack.
14081       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14082       # The linker will automatically build a .lib file if we build a DLL.
14083       old_archive_From_new_cmds_F77='true'
14084       # FIXME: Should let the user specify the lib program.
14085       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14086       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14087       enable_shared_with_static_runtimes_F77=yes
14088       ;;
14089
14090     darwin* | rhapsody*)
14091       case $host_os in
14092         rhapsody* | darwin1.[012])
14093          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14094          ;;
14095        *) # Darwin 1.3 on
14096          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14097            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14098          else
14099            case ${MACOSX_DEPLOYMENT_TARGET} in
14100              10.[012])
14101                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14102                ;;
14103              10.*)
14104                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14105                ;;
14106            esac
14107          fi
14108          ;;
14109       esac
14110       archive_cmds_need_lc_F77=no
14111       hardcode_direct_F77=no
14112       hardcode_automatic_F77=yes
14113       hardcode_shlibpath_var_F77=unsupported
14114       whole_archive_flag_spec_F77=''
14115       link_all_deplibs_F77=yes
14116     if test "$GCC" = yes ; then
14117         output_verbose_link_cmd='echo'
14118         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14119       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14120       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14121       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}'
14122       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}'
14123     else
14124       case $cc_basename in
14125         xlc*)
14126          output_verbose_link_cmd='echo'
14127          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14128          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14129           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14130          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}'
14131           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}'
14132           ;;
14133        *)
14134          ld_shlibs_F77=no
14135           ;;
14136       esac
14137     fi
14138       ;;
14139
14140     dgux*)
14141       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14142       hardcode_libdir_flag_spec_F77='-L$libdir'
14143       hardcode_shlibpath_var_F77=no
14144       ;;
14145
14146     freebsd1*)
14147       ld_shlibs_F77=no
14148       ;;
14149
14150     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14151     # support.  Future versions do this automatically, but an explicit c++rt0.o
14152     # does not break anything, and helps significantly (at the cost of a little
14153     # extra space).
14154     freebsd2.2*)
14155       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14156       hardcode_libdir_flag_spec_F77='-R$libdir'
14157       hardcode_direct_F77=yes
14158       hardcode_shlibpath_var_F77=no
14159       ;;
14160
14161     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14162     freebsd2*)
14163       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14164       hardcode_direct_F77=yes
14165       hardcode_minus_L_F77=yes
14166       hardcode_shlibpath_var_F77=no
14167       ;;
14168
14169     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14170     freebsd* | dragonfly*)
14171       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14172       hardcode_libdir_flag_spec_F77='-R$libdir'
14173       hardcode_direct_F77=yes
14174       hardcode_shlibpath_var_F77=no
14175       ;;
14176
14177     hpux9*)
14178       if test "$GCC" = yes; then
14179         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'
14180       else
14181         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'
14182       fi
14183       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14184       hardcode_libdir_separator_F77=:
14185       hardcode_direct_F77=yes
14186
14187       # hardcode_minus_L: Not really in the search PATH,
14188       # but as the default location of the library.
14189       hardcode_minus_L_F77=yes
14190       export_dynamic_flag_spec_F77='${wl}-E'
14191       ;;
14192
14193     hpux10*)
14194       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14195         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14196       else
14197         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14198       fi
14199       if test "$with_gnu_ld" = no; then
14200         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14201         hardcode_libdir_separator_F77=:
14202
14203         hardcode_direct_F77=yes
14204         export_dynamic_flag_spec_F77='${wl}-E'
14205
14206         # hardcode_minus_L: Not really in the search PATH,
14207         # but as the default location of the library.
14208         hardcode_minus_L_F77=yes
14209       fi
14210       ;;
14211
14212     hpux11*)
14213       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14214         case $host_cpu in
14215         hppa*64*)
14216           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217           ;;
14218         ia64*)
14219           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14220           ;;
14221         *)
14222           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14223           ;;
14224         esac
14225       else
14226         case $host_cpu in
14227         hppa*64*)
14228           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229           ;;
14230         ia64*)
14231           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14232           ;;
14233         *)
14234           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14235           ;;
14236         esac
14237       fi
14238       if test "$with_gnu_ld" = no; then
14239         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14240         hardcode_libdir_separator_F77=:
14241
14242         case $host_cpu in
14243         hppa*64*|ia64*)
14244           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14245           hardcode_direct_F77=no
14246           hardcode_shlibpath_var_F77=no
14247           ;;
14248         *)
14249           hardcode_direct_F77=yes
14250           export_dynamic_flag_spec_F77='${wl}-E'
14251
14252           # hardcode_minus_L: Not really in the search PATH,
14253           # but as the default location of the library.
14254           hardcode_minus_L_F77=yes
14255           ;;
14256         esac
14257       fi
14258       ;;
14259
14260     irix5* | irix6* | nonstopux*)
14261       if test "$GCC" = yes; then
14262         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'
14263       else
14264         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'
14265         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14266       fi
14267       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14268       hardcode_libdir_separator_F77=:
14269       link_all_deplibs_F77=yes
14270       ;;
14271
14272     netbsd*)
14273       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14274         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14275       else
14276         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14277       fi
14278       hardcode_libdir_flag_spec_F77='-R$libdir'
14279       hardcode_direct_F77=yes
14280       hardcode_shlibpath_var_F77=no
14281       ;;
14282
14283     newsos6)
14284       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14285       hardcode_direct_F77=yes
14286       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14287       hardcode_libdir_separator_F77=:
14288       hardcode_shlibpath_var_F77=no
14289       ;;
14290
14291     openbsd*)
14292       if test -f /usr/libexec/ld.so; then
14293         hardcode_direct_F77=yes
14294         hardcode_shlibpath_var_F77=no
14295         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14297           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14298           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14299           export_dynamic_flag_spec_F77='${wl}-E'
14300         else
14301           case $host_os in
14302            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14303              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14304              hardcode_libdir_flag_spec_F77='-R$libdir'
14305              ;;
14306            *)
14307              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14308              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14309              ;;
14310           esac
14311         fi
14312       else
14313         ld_shlibs_F77=no
14314       fi
14315       ;;
14316
14317     os2*)
14318       hardcode_libdir_flag_spec_F77='-L$libdir'
14319       hardcode_minus_L_F77=yes
14320       allow_undefined_flag_F77=unsupported
14321       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'
14322       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14323       ;;
14324
14325     osf3*)
14326       if test "$GCC" = yes; then
14327         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14328         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'
14329       else
14330         allow_undefined_flag_F77=' -expect_unresolved \*'
14331         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'
14332       fi
14333       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14334       hardcode_libdir_separator_F77=:
14335       ;;
14336
14337     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14338       if test "$GCC" = yes; then
14339         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14340         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'
14341         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14342       else
14343         allow_undefined_flag_F77=' -expect_unresolved \*'
14344         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'
14345         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~
14346         $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'
14347
14348         # Both c and cxx compiler support -rpath directly
14349         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14350       fi
14351       hardcode_libdir_separator_F77=:
14352       ;;
14353
14354     solaris*)
14355       no_undefined_flag_F77=' -z text'
14356       if test "$GCC" = yes; then
14357         wlarc='${wl}'
14358         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14360           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14361       else
14362         wlarc=''
14363         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14364         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14365         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14366       fi
14367       hardcode_libdir_flag_spec_F77='-R$libdir'
14368       hardcode_shlibpath_var_F77=no
14369       case $host_os in
14370       solaris2.[0-5] | solaris2.[0-5].*) ;;
14371       *)
14372         # The compiler driver will combine and reorder linker options,
14373         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14374         # but is careful enough not to reorder.
14375         # Supported since Solaris 2.6 (maybe 2.5.1?)
14376         if test "$GCC" = yes; then
14377           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14378         else
14379           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14380         fi
14381         ;;
14382       esac
14383       link_all_deplibs_F77=yes
14384       ;;
14385
14386     sunos4*)
14387       if test "x$host_vendor" = xsequent; then
14388         # Use $CC to link under sequent, because it throws in some extra .o
14389         # files that make .init and .fini sections work.
14390         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14391       else
14392         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14393       fi
14394       hardcode_libdir_flag_spec_F77='-L$libdir'
14395       hardcode_direct_F77=yes
14396       hardcode_minus_L_F77=yes
14397       hardcode_shlibpath_var_F77=no
14398       ;;
14399
14400     sysv4)
14401       case $host_vendor in
14402         sni)
14403           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14404           hardcode_direct_F77=yes # is this really true???
14405         ;;
14406         siemens)
14407           ## LD is ld it makes a PLAMLIB
14408           ## CC just makes a GrossModule.
14409           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14410           reload_cmds_F77='$CC -r -o $output$reload_objs'
14411           hardcode_direct_F77=no
14412         ;;
14413         motorola)
14414           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14415           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14416         ;;
14417       esac
14418       runpath_var='LD_RUN_PATH'
14419       hardcode_shlibpath_var_F77=no
14420       ;;
14421
14422     sysv4.3*)
14423       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424       hardcode_shlibpath_var_F77=no
14425       export_dynamic_flag_spec_F77='-Bexport'
14426       ;;
14427
14428     sysv4*MP*)
14429       if test -d /usr/nec; then
14430         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431         hardcode_shlibpath_var_F77=no
14432         runpath_var=LD_RUN_PATH
14433         hardcode_runpath_var=yes
14434         ld_shlibs_F77=yes
14435       fi
14436       ;;
14437
14438     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14439       no_undefined_flag_F77='${wl}-z,text'
14440       archive_cmds_need_lc_F77=no
14441       hardcode_shlibpath_var_F77=no
14442       runpath_var='LD_RUN_PATH'
14443
14444       if test "$GCC" = yes; then
14445         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14446         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14447       else
14448         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14450       fi
14451       ;;
14452
14453     sysv5* | sco3.2v5* | sco5v6*)
14454       # Note: We can NOT use -z defs as we might desire, because we do not
14455       # link with -lc, and that would cause any symbols used from libc to
14456       # always be unresolved, which means just about no library would
14457       # ever link correctly.  If we're not using GNU ld we use -z text
14458       # though, which does catch some bad symbols but isn't as heavy-handed
14459       # as -z defs.
14460       no_undefined_flag_F77='${wl}-z,text'
14461       allow_undefined_flag_F77='${wl}-z,nodefs'
14462       archive_cmds_need_lc_F77=no
14463       hardcode_shlibpath_var_F77=no
14464       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14465       hardcode_libdir_separator_F77=':'
14466       link_all_deplibs_F77=yes
14467       export_dynamic_flag_spec_F77='${wl}-Bexport'
14468       runpath_var='LD_RUN_PATH'
14469
14470       if test "$GCC" = yes; then
14471         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14472         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14473       else
14474         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14475         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14476       fi
14477       ;;
14478
14479     uts4*)
14480       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481       hardcode_libdir_flag_spec_F77='-L$libdir'
14482       hardcode_shlibpath_var_F77=no
14483       ;;
14484
14485     *)
14486       ld_shlibs_F77=no
14487       ;;
14488     esac
14489   fi
14490
14491 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14492 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14493 test "$ld_shlibs_F77" = no && can_build_shared=no
14494
14495 #
14496 # Do we need to explicitly link libc?
14497 #
14498 case "x$archive_cmds_need_lc_F77" in
14499 x|xyes)
14500   # Assume -lc should be added
14501   archive_cmds_need_lc_F77=yes
14502
14503   if test "$enable_shared" = yes && test "$GCC" = yes; then
14504     case $archive_cmds_F77 in
14505     *'~'*)
14506       # FIXME: we may have to deal with multi-command sequences.
14507       ;;
14508     '$CC '*)
14509       # Test whether the compiler implicitly links with -lc since on some
14510       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14511       # to ld, don't add -lc before -lgcc.
14512       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14513 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14514       $rm conftest*
14515       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14516
14517       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518   (eval $ac_compile) 2>&5
14519   ac_status=$?
14520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521   (exit $ac_status); } 2>conftest.err; then
14522         soname=conftest
14523         lib=conftest
14524         libobjs=conftest.$ac_objext
14525         deplibs=
14526         wl=$lt_prog_compiler_wl_F77
14527         pic_flag=$lt_prog_compiler_pic_F77
14528         compiler_flags=-v
14529         linker_flags=-v
14530         verstring=
14531         output_objdir=.
14532         libname=conftest
14533         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14534         allow_undefined_flag_F77=
14535         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14536   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }
14540         then
14541           archive_cmds_need_lc_F77=no
14542         else
14543           archive_cmds_need_lc_F77=yes
14544         fi
14545         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14546       else
14547         cat conftest.err 1>&5
14548       fi
14549       $rm conftest*
14550       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14551 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14552       ;;
14553     esac
14554   fi
14555   ;;
14556 esac
14557
14558 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14560 library_names_spec=
14561 libname_spec='lib$name'
14562 soname_spec=
14563 shrext_cmds=".so"
14564 postinstall_cmds=
14565 postuninstall_cmds=
14566 finish_cmds=
14567 finish_eval=
14568 shlibpath_var=
14569 shlibpath_overrides_runpath=unknown
14570 version_type=none
14571 dynamic_linker="$host_os ld.so"
14572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14573
14574 need_lib_prefix=unknown
14575 hardcode_into_libs=no
14576
14577 # when you set need_version to no, make sure it does not cause -set_version
14578 # flags to be left without arguments
14579 need_version=unknown
14580
14581 case $host_os in
14582 aix3*)
14583   version_type=linux
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14585   shlibpath_var=LIBPATH
14586
14587   # AIX 3 has no versioning support, so we append a major version to the name.
14588   soname_spec='${libname}${release}${shared_ext}$major'
14589   ;;
14590
14591 aix4* | aix5*)
14592   version_type=linux
14593   need_lib_prefix=no
14594   need_version=no
14595   hardcode_into_libs=yes
14596   if test "$host_cpu" = ia64; then
14597     # AIX 5 supports IA64
14598     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14599     shlibpath_var=LD_LIBRARY_PATH
14600   else
14601     # With GCC up to 2.95.x, collect2 would create an import file
14602     # for dependence libraries.  The import file would start with
14603     # the line `#! .'.  This would cause the generated library to
14604     # depend on `.', always an invalid library.  This was fixed in
14605     # development snapshots of GCC prior to 3.0.
14606     case $host_os in
14607       aix4 | aix4.[01] | aix4.[01].*)
14608       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14609            echo ' yes '
14610            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14611         :
14612       else
14613         can_build_shared=no
14614       fi
14615       ;;
14616     esac
14617     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14618     # soname into executable. Probably we can add versioning support to
14619     # collect2, so additional links can be useful in future.
14620     if test "$aix_use_runtimelinking" = yes; then
14621       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14622       # instead of lib<name>.a to let people know that these are not
14623       # typical AIX shared libraries.
14624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625     else
14626       # We preserve .a as extension for shared libraries through AIX4.2
14627       # and later when we are not doing run time linking.
14628       library_names_spec='${libname}${release}.a $libname.a'
14629       soname_spec='${libname}${release}${shared_ext}$major'
14630     fi
14631     shlibpath_var=LIBPATH
14632   fi
14633   ;;
14634
14635 amigaos*)
14636   library_names_spec='$libname.ixlibrary $libname.a'
14637   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14638   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'
14639   ;;
14640
14641 beos*)
14642   library_names_spec='${libname}${shared_ext}'
14643   dynamic_linker="$host_os ld.so"
14644   shlibpath_var=LIBRARY_PATH
14645   ;;
14646
14647 bsdi[45]*)
14648   version_type=linux
14649   need_version=no
14650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651   soname_spec='${libname}${release}${shared_ext}$major'
14652   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14653   shlibpath_var=LD_LIBRARY_PATH
14654   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14655   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14656   # the default ld.so.conf also contains /usr/contrib/lib and
14657   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14658   # libtool to hard-code these into programs
14659   ;;
14660
14661 cygwin* | mingw* | pw32*)
14662   version_type=windows
14663   shrext_cmds=".dll"
14664   need_version=no
14665   need_lib_prefix=no
14666
14667   case $GCC,$host_os in
14668   yes,cygwin* | yes,mingw* | yes,pw32*)
14669     library_names_spec='$libname.dll.a'
14670     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14671     postinstall_cmds='base_file=`basename \${file}`~
14672       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14673       dldir=$destdir/`dirname \$dlpath`~
14674       test -d \$dldir || mkdir -p \$dldir~
14675       $install_prog $dir/$dlname \$dldir/$dlname~
14676       chmod a+x \$dldir/$dlname'
14677     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14678       dlpath=$dir/\$dldll~
14679        $rm \$dlpath'
14680     shlibpath_overrides_runpath=yes
14681
14682     case $host_os in
14683     cygwin*)
14684       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14685       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14686       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14687       ;;
14688     mingw*)
14689       # MinGW DLLs use traditional 'lib' prefix
14690       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14691       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14692       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14693         # It is most probably a Windows format PATH printed by
14694         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14695         # path with ; separators, and with drive letters. We can handle the
14696         # drive letters (cygwin fileutils understands them), so leave them,
14697         # especially as we might pass files found there to a mingw objdump,
14698         # which wouldn't understand a cygwinified path. Ahh.
14699         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14700       else
14701         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14702       fi
14703       ;;
14704     pw32*)
14705       # pw32 DLLs use 'pw' prefix rather than 'lib'
14706       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14707       ;;
14708     esac
14709     ;;
14710
14711   *)
14712     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14713     ;;
14714   esac
14715   dynamic_linker='Win32 ld.exe'
14716   # FIXME: first we should search . and the directory the executable is in
14717   shlibpath_var=PATH
14718   ;;
14719
14720 darwin* | rhapsody*)
14721   dynamic_linker="$host_os dyld"
14722   version_type=darwin
14723   need_lib_prefix=no
14724   need_version=no
14725   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14726   soname_spec='${libname}${release}${major}$shared_ext'
14727   shlibpath_overrides_runpath=yes
14728   shlibpath_var=DYLD_LIBRARY_PATH
14729   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14730
14731   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14732   ;;
14733
14734 dgux*)
14735   version_type=linux
14736   need_lib_prefix=no
14737   need_version=no
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14739   soname_spec='${libname}${release}${shared_ext}$major'
14740   shlibpath_var=LD_LIBRARY_PATH
14741   ;;
14742
14743 freebsd1*)
14744   dynamic_linker=no
14745   ;;
14746
14747 freebsd* | dragonfly*)
14748   # DragonFly does not have aout.  When/if they implement a new
14749   # versioning mechanism, adjust this.
14750   if test -x /usr/bin/objformat; then
14751     objformat=`/usr/bin/objformat`
14752   else
14753     case $host_os in
14754     freebsd[123]*) objformat=aout ;;
14755     *) objformat=elf ;;
14756     esac
14757   fi
14758   version_type=freebsd-$objformat
14759   case $version_type in
14760     freebsd-elf*)
14761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14762       need_version=no
14763       need_lib_prefix=no
14764       ;;
14765     freebsd-*)
14766       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14767       need_version=yes
14768       ;;
14769   esac
14770   shlibpath_var=LD_LIBRARY_PATH
14771   case $host_os in
14772   freebsd2*)
14773     shlibpath_overrides_runpath=yes
14774     ;;
14775   freebsd3.[01]* | freebsdelf3.[01]*)
14776     shlibpath_overrides_runpath=yes
14777     hardcode_into_libs=yes
14778     ;;
14779   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14780   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14781     shlibpath_overrides_runpath=no
14782     hardcode_into_libs=yes
14783     ;;
14784   *) # from 4.6 on, and DragonFly
14785     shlibpath_overrides_runpath=yes
14786     hardcode_into_libs=yes
14787     ;;
14788   esac
14789   ;;
14790
14791 gnu*)
14792   version_type=linux
14793   need_lib_prefix=no
14794   need_version=no
14795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14796   soname_spec='${libname}${release}${shared_ext}$major'
14797   shlibpath_var=LD_LIBRARY_PATH
14798   hardcode_into_libs=yes
14799   ;;
14800
14801 hpux9* | hpux10* | hpux11*)
14802   # Give a soname corresponding to the major version so that dld.sl refuses to
14803   # link against other versions.
14804   version_type=sunos
14805   need_lib_prefix=no
14806   need_version=no
14807   case $host_cpu in
14808   ia64*)
14809     shrext_cmds='.so'
14810     hardcode_into_libs=yes
14811     dynamic_linker="$host_os dld.so"
14812     shlibpath_var=LD_LIBRARY_PATH
14813     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815     soname_spec='${libname}${release}${shared_ext}$major'
14816     if test "X$HPUX_IA64_MODE" = X32; then
14817       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14818     else
14819       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14820     fi
14821     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14822     ;;
14823    hppa*64*)
14824      shrext_cmds='.sl'
14825      hardcode_into_libs=yes
14826      dynamic_linker="$host_os dld.sl"
14827      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14828      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14829      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14830      soname_spec='${libname}${release}${shared_ext}$major'
14831      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14832      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14833      ;;
14834    *)
14835     shrext_cmds='.sl'
14836     dynamic_linker="$host_os dld.sl"
14837     shlibpath_var=SHLIB_PATH
14838     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840     soname_spec='${libname}${release}${shared_ext}$major'
14841     ;;
14842   esac
14843   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14844   postinstall_cmds='chmod 555 $lib'
14845   ;;
14846
14847 interix[3-9]*)
14848   version_type=linux
14849   need_lib_prefix=no
14850   need_version=no
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14852   soname_spec='${libname}${release}${shared_ext}$major'
14853   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14854   shlibpath_var=LD_LIBRARY_PATH
14855   shlibpath_overrides_runpath=no
14856   hardcode_into_libs=yes
14857   ;;
14858
14859 irix5* | irix6* | nonstopux*)
14860   case $host_os in
14861     nonstopux*) version_type=nonstopux ;;
14862     *)
14863         if test "$lt_cv_prog_gnu_ld" = yes; then
14864                 version_type=linux
14865         else
14866                 version_type=irix
14867         fi ;;
14868   esac
14869   need_lib_prefix=no
14870   need_version=no
14871   soname_spec='${libname}${release}${shared_ext}$major'
14872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14873   case $host_os in
14874   irix5* | nonstopux*)
14875     libsuff= shlibsuff=
14876     ;;
14877   *)
14878     case $LD in # libtool.m4 will add one of these switches to LD
14879     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14880       libsuff= shlibsuff= libmagic=32-bit;;
14881     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14882       libsuff=32 shlibsuff=N32 libmagic=N32;;
14883     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14884       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14885     *) libsuff= shlibsuff= libmagic=never-match;;
14886     esac
14887     ;;
14888   esac
14889   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14890   shlibpath_overrides_runpath=no
14891   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14892   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14893   hardcode_into_libs=yes
14894   ;;
14895
14896 # No shared lib support for Linux oldld, aout, or coff.
14897 linux*oldld* | linux*aout* | linux*coff*)
14898   dynamic_linker=no
14899   ;;
14900
14901 # This must be Linux ELF.
14902 linux* | k*bsd*-gnu)
14903   version_type=linux
14904   need_lib_prefix=no
14905   need_version=no
14906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14907   soname_spec='${libname}${release}${shared_ext}$major'
14908   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14909   shlibpath_var=LD_LIBRARY_PATH
14910   shlibpath_overrides_runpath=no
14911   # This implies no fast_install, which is unacceptable.
14912   # Some rework will be needed to allow for fast_install
14913   # before this can be enabled.
14914   hardcode_into_libs=yes
14915
14916   # Append ld.so.conf contents to the search path
14917   if test -f /etc/ld.so.conf; then
14918     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' ' '`
14919     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14920   fi
14921
14922   # We used to test for /lib/ld.so.1 and disable shared libraries on
14923   # powerpc, because MkLinux only supported shared libraries with the
14924   # GNU dynamic linker.  Since this was broken with cross compilers,
14925   # most powerpc-linux boxes support dynamic linking these days and
14926   # people can always --disable-shared, the test was removed, and we
14927   # assume the GNU/Linux dynamic linker is in use.
14928   dynamic_linker='GNU/Linux ld.so'
14929   ;;
14930
14931 netbsd*)
14932   version_type=sunos
14933   need_lib_prefix=no
14934   need_version=no
14935   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14937     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14938     dynamic_linker='NetBSD (a.out) ld.so'
14939   else
14940     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14941     soname_spec='${libname}${release}${shared_ext}$major'
14942     dynamic_linker='NetBSD ld.elf_so'
14943   fi
14944   shlibpath_var=LD_LIBRARY_PATH
14945   shlibpath_overrides_runpath=yes
14946   hardcode_into_libs=yes
14947   ;;
14948
14949 newsos6)
14950   version_type=linux
14951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14952   shlibpath_var=LD_LIBRARY_PATH
14953   shlibpath_overrides_runpath=yes
14954   ;;
14955
14956 nto-qnx*)
14957   version_type=linux
14958   need_lib_prefix=no
14959   need_version=no
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14961   soname_spec='${libname}${release}${shared_ext}$major'
14962   shlibpath_var=LD_LIBRARY_PATH
14963   shlibpath_overrides_runpath=yes
14964   ;;
14965
14966 openbsd*)
14967   version_type=sunos
14968   sys_lib_dlsearch_path_spec="/usr/lib"
14969   need_lib_prefix=no
14970   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14971   case $host_os in
14972     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14973     *)                         need_version=no  ;;
14974   esac
14975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14977   shlibpath_var=LD_LIBRARY_PATH
14978   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14979     case $host_os in
14980       openbsd2.[89] | openbsd2.[89].*)
14981         shlibpath_overrides_runpath=no
14982         ;;
14983       *)
14984         shlibpath_overrides_runpath=yes
14985         ;;
14986       esac
14987   else
14988     shlibpath_overrides_runpath=yes
14989   fi
14990   ;;
14991
14992 os2*)
14993   libname_spec='$name'
14994   shrext_cmds=".dll"
14995   need_lib_prefix=no
14996   library_names_spec='$libname${shared_ext} $libname.a'
14997   dynamic_linker='OS/2 ld.exe'
14998   shlibpath_var=LIBPATH
14999   ;;
15000
15001 osf3* | osf4* | osf5*)
15002   version_type=osf
15003   need_lib_prefix=no
15004   need_version=no
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007   shlibpath_var=LD_LIBRARY_PATH
15008   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15009   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15010   ;;
15011
15012 rdos*)
15013   dynamic_linker=no
15014   ;;
15015
15016 solaris*)
15017   version_type=linux
15018   need_lib_prefix=no
15019   need_version=no
15020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021   soname_spec='${libname}${release}${shared_ext}$major'
15022   shlibpath_var=LD_LIBRARY_PATH
15023   shlibpath_overrides_runpath=yes
15024   hardcode_into_libs=yes
15025   # ldd complains unless libraries are executable
15026   postinstall_cmds='chmod +x $lib'
15027   ;;
15028
15029 sunos4*)
15030   version_type=sunos
15031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15032   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15033   shlibpath_var=LD_LIBRARY_PATH
15034   shlibpath_overrides_runpath=yes
15035   if test "$with_gnu_ld" = yes; then
15036     need_lib_prefix=no
15037   fi
15038   need_version=yes
15039   ;;
15040
15041 sysv4 | sysv4.3*)
15042   version_type=linux
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   shlibpath_var=LD_LIBRARY_PATH
15046   case $host_vendor in
15047     sni)
15048       shlibpath_overrides_runpath=no
15049       need_lib_prefix=no
15050       export_dynamic_flag_spec='${wl}-Blargedynsym'
15051       runpath_var=LD_RUN_PATH
15052       ;;
15053     siemens)
15054       need_lib_prefix=no
15055       ;;
15056     motorola)
15057       need_lib_prefix=no
15058       need_version=no
15059       shlibpath_overrides_runpath=no
15060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15061       ;;
15062   esac
15063   ;;
15064
15065 sysv4*MP*)
15066   if test -d /usr/nec ;then
15067     version_type=linux
15068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15069     soname_spec='$libname${shared_ext}.$major'
15070     shlibpath_var=LD_LIBRARY_PATH
15071   fi
15072   ;;
15073
15074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15075   version_type=freebsd-elf
15076   need_lib_prefix=no
15077   need_version=no
15078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15079   soname_spec='${libname}${release}${shared_ext}$major'
15080   shlibpath_var=LD_LIBRARY_PATH
15081   hardcode_into_libs=yes
15082   if test "$with_gnu_ld" = yes; then
15083     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15084     shlibpath_overrides_runpath=no
15085   else
15086     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15087     shlibpath_overrides_runpath=yes
15088     case $host_os in
15089       sco3.2v5*)
15090         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15091         ;;
15092     esac
15093   fi
15094   sys_lib_dlsearch_path_spec='/usr/lib'
15095   ;;
15096
15097 uts4*)
15098   version_type=linux
15099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15100   soname_spec='${libname}${release}${shared_ext}$major'
15101   shlibpath_var=LD_LIBRARY_PATH
15102   ;;
15103
15104 *)
15105   dynamic_linker=no
15106   ;;
15107 esac
15108 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15109 echo "${ECHO_T}$dynamic_linker" >&6; }
15110 test "$dynamic_linker" = no && can_build_shared=no
15111
15112 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15113 if test "$GCC" = yes; then
15114   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15115 fi
15116
15117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15119 hardcode_action_F77=
15120 if test -n "$hardcode_libdir_flag_spec_F77" || \
15121    test -n "$runpath_var_F77" || \
15122    test "X$hardcode_automatic_F77" = "Xyes" ; then
15123
15124   # We can hardcode non-existant directories.
15125   if test "$hardcode_direct_F77" != no &&
15126      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15127      # have to relink, otherwise we might link with an installed library
15128      # when we should be linking with a yet-to-be-installed one
15129      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15130      test "$hardcode_minus_L_F77" != no; then
15131     # Linking always hardcodes the temporary library directory.
15132     hardcode_action_F77=relink
15133   else
15134     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15135     hardcode_action_F77=immediate
15136   fi
15137 else
15138   # We cannot hardcode anything, or else we can only hardcode existing
15139   # directories.
15140   hardcode_action_F77=unsupported
15141 fi
15142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15144
15145 if test "$hardcode_action_F77" = relink; then
15146   # Fast installation is not supported
15147   enable_fast_install=no
15148 elif test "$shlibpath_overrides_runpath" = yes ||
15149      test "$enable_shared" = no; then
15150   # Fast installation is not necessary
15151   enable_fast_install=needless
15152 fi
15153
15154
15155 # The else clause should only fire when bootstrapping the
15156 # libtool distribution, otherwise you forgot to ship ltmain.sh
15157 # with your package, and you will get complaints that there are
15158 # no rules to generate ltmain.sh.
15159 if test -f "$ltmain"; then
15160   # See if we are running on zsh, and set the options which allow our commands through
15161   # without removal of \ escapes.
15162   if test -n "${ZSH_VERSION+set}" ; then
15163     setopt NO_GLOB_SUBST
15164   fi
15165   # Now quote all the things that may contain metacharacters while being
15166   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15167   # variables and quote the copies for generation of the libtool script.
15168   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15169     SED SHELL STRIP \
15170     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15171     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15172     deplibs_check_method reload_flag reload_cmds need_locks \
15173     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15174     lt_cv_sys_global_symbol_to_c_name_address \
15175     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15176     old_postinstall_cmds old_postuninstall_cmds \
15177     compiler_F77 \
15178     CC_F77 \
15179     LD_F77 \
15180     lt_prog_compiler_wl_F77 \
15181     lt_prog_compiler_pic_F77 \
15182     lt_prog_compiler_static_F77 \
15183     lt_prog_compiler_no_builtin_flag_F77 \
15184     export_dynamic_flag_spec_F77 \
15185     thread_safe_flag_spec_F77 \
15186     whole_archive_flag_spec_F77 \
15187     enable_shared_with_static_runtimes_F77 \
15188     old_archive_cmds_F77 \
15189     old_archive_from_new_cmds_F77 \
15190     predep_objects_F77 \
15191     postdep_objects_F77 \
15192     predeps_F77 \
15193     postdeps_F77 \
15194     compiler_lib_search_path_F77 \
15195     archive_cmds_F77 \
15196     archive_expsym_cmds_F77 \
15197     postinstall_cmds_F77 \
15198     postuninstall_cmds_F77 \
15199     old_archive_from_expsyms_cmds_F77 \
15200     allow_undefined_flag_F77 \
15201     no_undefined_flag_F77 \
15202     export_symbols_cmds_F77 \
15203     hardcode_libdir_flag_spec_F77 \
15204     hardcode_libdir_flag_spec_ld_F77 \
15205     hardcode_libdir_separator_F77 \
15206     hardcode_automatic_F77 \
15207     module_cmds_F77 \
15208     module_expsym_cmds_F77 \
15209     lt_cv_prog_compiler_c_o_F77 \
15210     fix_srcfile_path_F77 \
15211     exclude_expsyms_F77 \
15212     include_expsyms_F77; do
15213
15214     case $var in
15215     old_archive_cmds_F77 | \
15216     old_archive_from_new_cmds_F77 | \
15217     archive_cmds_F77 | \
15218     archive_expsym_cmds_F77 | \
15219     module_cmds_F77 | \
15220     module_expsym_cmds_F77 | \
15221     old_archive_from_expsyms_cmds_F77 | \
15222     export_symbols_cmds_F77 | \
15223     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15224     postinstall_cmds | postuninstall_cmds | \
15225     old_postinstall_cmds | old_postuninstall_cmds | \
15226     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15227       # Double-quote double-evaled strings.
15228       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15229       ;;
15230     *)
15231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15232       ;;
15233     esac
15234   done
15235
15236   case $lt_echo in
15237   *'\$0 --fallback-echo"')
15238     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15239     ;;
15240   esac
15241
15242 cfgfile="$ofile"
15243
15244   cat <<__EOF__ >> "$cfgfile"
15245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15246
15247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15248
15249 # Shell to use when invoking shell scripts.
15250 SHELL=$lt_SHELL
15251
15252 # Whether or not to build shared libraries.
15253 build_libtool_libs=$enable_shared
15254
15255 # Whether or not to build static libraries.
15256 build_old_libs=$enable_static
15257
15258 # Whether or not to add -lc for building shared libraries.
15259 build_libtool_need_lc=$archive_cmds_need_lc_F77
15260
15261 # Whether or not to disallow shared libs when runtime libs are static
15262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15263
15264 # Whether or not to optimize for fast installation.
15265 fast_install=$enable_fast_install
15266
15267 # The host system.
15268 host_alias=$host_alias
15269 host=$host
15270 host_os=$host_os
15271
15272 # The build system.
15273 build_alias=$build_alias
15274 build=$build
15275 build_os=$build_os
15276
15277 # An echo program that does not interpret backslashes.
15278 echo=$lt_echo
15279
15280 # The archiver.
15281 AR=$lt_AR
15282 AR_FLAGS=$lt_AR_FLAGS
15283
15284 # A C compiler.
15285 LTCC=$lt_LTCC
15286
15287 # LTCC compiler flags.
15288 LTCFLAGS=$lt_LTCFLAGS
15289
15290 # A language-specific compiler.
15291 CC=$lt_compiler_F77
15292
15293 # Is the compiler the GNU C compiler?
15294 with_gcc=$GCC_F77
15295
15296 # An ERE matcher.
15297 EGREP=$lt_EGREP
15298
15299 # The linker used to build libraries.
15300 LD=$lt_LD_F77
15301
15302 # Whether we need hard or soft links.
15303 LN_S=$lt_LN_S
15304
15305 # A BSD-compatible nm program.
15306 NM=$lt_NM
15307
15308 # A symbol stripping program
15309 STRIP=$lt_STRIP
15310
15311 # Used to examine libraries when file_magic_cmd begins "file"
15312 MAGIC_CMD=$MAGIC_CMD
15313
15314 # Used on cygwin: DLL creation program.
15315 DLLTOOL="$DLLTOOL"
15316
15317 # Used on cygwin: object dumper.
15318 OBJDUMP="$OBJDUMP"
15319
15320 # Used on cygwin: assembler.
15321 AS="$AS"
15322
15323 # The name of the directory that contains temporary libtool files.
15324 objdir=$objdir
15325
15326 # How to create reloadable object files.
15327 reload_flag=$lt_reload_flag
15328 reload_cmds=$lt_reload_cmds
15329
15330 # How to pass a linker flag through the compiler.
15331 wl=$lt_lt_prog_compiler_wl_F77
15332
15333 # Object file suffix (normally "o").
15334 objext="$ac_objext"
15335
15336 # Old archive suffix (normally "a").
15337 libext="$libext"
15338
15339 # Shared library suffix (normally ".so").
15340 shrext_cmds='$shrext_cmds'
15341
15342 # Executable file suffix (normally "").
15343 exeext="$exeext"
15344
15345 # Additional compiler flags for building library objects.
15346 pic_flag=$lt_lt_prog_compiler_pic_F77
15347 pic_mode=$pic_mode
15348
15349 # What is the maximum length of a command?
15350 max_cmd_len=$lt_cv_sys_max_cmd_len
15351
15352 # Does compiler simultaneously support -c and -o options?
15353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15354
15355 # Must we lock files when doing compilation?
15356 need_locks=$lt_need_locks
15357
15358 # Do we need the lib prefix for modules?
15359 need_lib_prefix=$need_lib_prefix
15360
15361 # Do we need a version for libraries?
15362 need_version=$need_version
15363
15364 # Whether dlopen is supported.
15365 dlopen_support=$enable_dlopen
15366
15367 # Whether dlopen of programs is supported.
15368 dlopen_self=$enable_dlopen_self
15369
15370 # Whether dlopen of statically linked programs is supported.
15371 dlopen_self_static=$enable_dlopen_self_static
15372
15373 # Compiler flag to prevent dynamic linking.
15374 link_static_flag=$lt_lt_prog_compiler_static_F77
15375
15376 # Compiler flag to turn off builtin functions.
15377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15378
15379 # Compiler flag to allow reflexive dlopens.
15380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15381
15382 # Compiler flag to generate shared objects directly from archives.
15383 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15384
15385 # Compiler flag to generate thread-safe objects.
15386 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15387
15388 # Library versioning type.
15389 version_type=$version_type
15390
15391 # Format of library name prefix.
15392 libname_spec=$lt_libname_spec
15393
15394 # List of archive names.  First name is the real one, the rest are links.
15395 # The last name is the one that the linker finds with -lNAME.
15396 library_names_spec=$lt_library_names_spec
15397
15398 # The coded name of the library, if different from the real name.
15399 soname_spec=$lt_soname_spec
15400
15401 # Commands used to build and install an old-style archive.
15402 RANLIB=$lt_RANLIB
15403 old_archive_cmds=$lt_old_archive_cmds_F77
15404 old_postinstall_cmds=$lt_old_postinstall_cmds
15405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15406
15407 # Create an old-style archive from a shared archive.
15408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15409
15410 # Create a temporary old-style archive to link instead of a shared archive.
15411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15412
15413 # Commands used to build and install a shared archive.
15414 archive_cmds=$lt_archive_cmds_F77
15415 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15416 postinstall_cmds=$lt_postinstall_cmds
15417 postuninstall_cmds=$lt_postuninstall_cmds
15418
15419 # Commands used to build a loadable module (assumed same as above if empty)
15420 module_cmds=$lt_module_cmds_F77
15421 module_expsym_cmds=$lt_module_expsym_cmds_F77
15422
15423 # Commands to strip libraries.
15424 old_striplib=$lt_old_striplib
15425 striplib=$lt_striplib
15426
15427 # Dependencies to place before the objects being linked to create a
15428 # shared library.
15429 predep_objects=$lt_predep_objects_F77
15430
15431 # Dependencies to place after the objects being linked to create a
15432 # shared library.
15433 postdep_objects=$lt_postdep_objects_F77
15434
15435 # Dependencies to place before the objects being linked to create a
15436 # shared library.
15437 predeps=$lt_predeps_F77
15438
15439 # Dependencies to place after the objects being linked to create a
15440 # shared library.
15441 postdeps=$lt_postdeps_F77
15442
15443 # The library search path used internally by the compiler when linking
15444 # a shared library.
15445 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15446
15447 # Method to check whether dependent libraries are shared objects.
15448 deplibs_check_method=$lt_deplibs_check_method
15449
15450 # Command to use when deplibs_check_method == file_magic.
15451 file_magic_cmd=$lt_file_magic_cmd
15452
15453 # Flag that allows shared libraries with undefined symbols to be built.
15454 allow_undefined_flag=$lt_allow_undefined_flag_F77
15455
15456 # Flag that forces no undefined symbols.
15457 no_undefined_flag=$lt_no_undefined_flag_F77
15458
15459 # Commands used to finish a libtool library installation in a directory.
15460 finish_cmds=$lt_finish_cmds
15461
15462 # Same as above, but a single script fragment to be evaled but not shown.
15463 finish_eval=$lt_finish_eval
15464
15465 # Take the output of nm and produce a listing of raw symbols and C names.
15466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15467
15468 # Transform the output of nm in a proper C declaration
15469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15470
15471 # Transform the output of nm in a C name address pair
15472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15473
15474 # This is the shared library runtime path variable.
15475 runpath_var=$runpath_var
15476
15477 # This is the shared library path variable.
15478 shlibpath_var=$shlibpath_var
15479
15480 # Is shlibpath searched before the hard-coded library search path?
15481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15482
15483 # How to hardcode a shared library path into an executable.
15484 hardcode_action=$hardcode_action_F77
15485
15486 # Whether we should hardcode library paths into libraries.
15487 hardcode_into_libs=$hardcode_into_libs
15488
15489 # Flag to hardcode \$libdir into a binary during linking.
15490 # This must work even if \$libdir does not exist.
15491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15492
15493 # If ld is used when linking, flag to hardcode \$libdir into
15494 # a binary during linking. This must work even if \$libdir does
15495 # not exist.
15496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15497
15498 # Whether we need a single -rpath flag with a separated argument.
15499 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15500
15501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15502 # resulting binary.
15503 hardcode_direct=$hardcode_direct_F77
15504
15505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15506 # resulting binary.
15507 hardcode_minus_L=$hardcode_minus_L_F77
15508
15509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15510 # the resulting binary.
15511 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15512
15513 # Set to yes if building a shared library automatically hardcodes DIR into the library
15514 # and all subsequent libraries and executables linked against it.
15515 hardcode_automatic=$hardcode_automatic_F77
15516
15517 # Variables whose values should be saved in libtool wrapper scripts and
15518 # restored at relink time.
15519 variables_saved_for_relink="$variables_saved_for_relink"
15520
15521 # Whether libtool must link a program against all its dependency libraries.
15522 link_all_deplibs=$link_all_deplibs_F77
15523
15524 # Compile-time system search path for libraries
15525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15526
15527 # Run-time system search path for libraries
15528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15529
15530 # Fix the shell variable \$srcfile for the compiler.
15531 fix_srcfile_path=$lt_fix_srcfile_path
15532
15533 # Set to yes if exported symbols are required.
15534 always_export_symbols=$always_export_symbols_F77
15535
15536 # The commands to list exported symbols.
15537 export_symbols_cmds=$lt_export_symbols_cmds_F77
15538
15539 # The commands to extract the exported symbol list from a shared archive.
15540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15541
15542 # Symbols that should not be listed in the preloaded symbols.
15543 exclude_expsyms=$lt_exclude_expsyms_F77
15544
15545 # Symbols that must always be exported.
15546 include_expsyms=$lt_include_expsyms_F77
15547
15548 # ### END LIBTOOL TAG CONFIG: $tagname
15549
15550 __EOF__
15551
15552
15553 else
15554   # If there is no Makefile yet, we rely on a make rule to execute
15555   # `config.status --recheck' to rerun these tests and create the
15556   # libtool script then.
15557   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15558   if test -f "$ltmain_in"; then
15559     test -f Makefile && make "$ltmain"
15560   fi
15561 fi
15562
15563
15564 ac_ext=c
15565 ac_cpp='$CPP $CPPFLAGS'
15566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15569
15570 CC="$lt_save_CC"
15571
15572         else
15573           tagname=""
15574         fi
15575         ;;
15576
15577       GCJ)
15578         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15579
15580
15581 # Source file extension for Java test sources.
15582 ac_ext=java
15583
15584 # Object file extension for compiled Java test sources.
15585 objext=o
15586 objext_GCJ=$objext
15587
15588 # Code to be used in simple compile tests
15589 lt_simple_compile_test_code="class foo {}"
15590
15591 # Code to be used in simple link tests
15592 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15593
15594 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15595
15596 # If no C compiler was specified, use CC.
15597 LTCC=${LTCC-"$CC"}
15598
15599 # If no C compiler flags were specified, use CFLAGS.
15600 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15601
15602 # Allow CC to be a program name with arguments.
15603 compiler=$CC
15604
15605
15606 # save warnings/boilerplate of simple test code
15607 ac_outfile=conftest.$ac_objext
15608 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15609 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15610 _lt_compiler_boilerplate=`cat conftest.err`
15611 $rm conftest*
15612
15613 ac_outfile=conftest.$ac_objext
15614 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15615 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15616 _lt_linker_boilerplate=`cat conftest.err`
15617 $rm conftest*
15618
15619
15620 # Allow CC to be a program name with arguments.
15621 lt_save_CC="$CC"
15622 CC=${GCJ-"gcj"}
15623 compiler=$CC
15624 compiler_GCJ=$CC
15625 for cc_temp in $compiler""; do
15626   case $cc_temp in
15627     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15628     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15629     \-*) ;;
15630     *) break;;
15631   esac
15632 done
15633 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15634
15635
15636 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15637 archive_cmds_need_lc_GCJ=no
15638
15639 old_archive_cmds_GCJ=$old_archive_cmds
15640
15641
15642 lt_prog_compiler_no_builtin_flag_GCJ=
15643
15644 if test "$GCC" = yes; then
15645   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15646
15647
15648 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15649 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15650 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15651   echo $ECHO_N "(cached) $ECHO_C" >&6
15652 else
15653   lt_cv_prog_compiler_rtti_exceptions=no
15654   ac_outfile=conftest.$ac_objext
15655    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15656    lt_compiler_flag="-fno-rtti -fno-exceptions"
15657    # Insert the option either (1) after the last *FLAGS variable, or
15658    # (2) before a word containing "conftest.", or (3) at the end.
15659    # Note that $ac_compile itself does not contain backslashes and begins
15660    # with a dollar sign (not a hyphen), so the echo should work correctly.
15661    # The option is referenced via a variable to avoid confusing sed.
15662    lt_compile=`echo "$ac_compile" | $SED \
15663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15665    -e 's:$: $lt_compiler_flag:'`
15666    (eval echo "\"\$as_me:15666: $lt_compile\"" >&5)
15667    (eval "$lt_compile" 2>conftest.err)
15668    ac_status=$?
15669    cat conftest.err >&5
15670    echo "$as_me:15670: \$? = $ac_status" >&5
15671    if (exit $ac_status) && test -s "$ac_outfile"; then
15672      # The compiler can only warn and ignore the option if not recognized
15673      # So say no if there are warnings other than the usual output.
15674      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15675      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15676      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15677        lt_cv_prog_compiler_rtti_exceptions=yes
15678      fi
15679    fi
15680    $rm conftest*
15681
15682 fi
15683 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15684 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15685
15686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15687     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15688 else
15689     :
15690 fi
15691
15692 fi
15693
15694 lt_prog_compiler_wl_GCJ=
15695 lt_prog_compiler_pic_GCJ=
15696 lt_prog_compiler_static_GCJ=
15697
15698 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15699 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15700
15701   if test "$GCC" = yes; then
15702     lt_prog_compiler_wl_GCJ='-Wl,'
15703     lt_prog_compiler_static_GCJ='-static'
15704
15705     case $host_os in
15706       aix*)
15707       # All AIX code is PIC.
15708       if test "$host_cpu" = ia64; then
15709         # AIX 5 now supports IA64 processor
15710         lt_prog_compiler_static_GCJ='-Bstatic'
15711       fi
15712       ;;
15713
15714     amigaos*)
15715       # FIXME: we need at least 68020 code to build shared libraries, but
15716       # adding the `-m68020' flag to GCC prevents building anything better,
15717       # like `-m68040'.
15718       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15719       ;;
15720
15721     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15722       # PIC is the default for these OSes.
15723       ;;
15724
15725     mingw* | cygwin* | pw32* | os2*)
15726       # This hack is so that the source file can tell whether it is being
15727       # built for inclusion in a dll (and should export symbols for example).
15728       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15729       # (--disable-auto-import) libraries
15730       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15731       ;;
15732
15733     darwin* | rhapsody*)
15734       # PIC is the default on this platform
15735       # Common symbols not allowed in MH_DYLIB files
15736       lt_prog_compiler_pic_GCJ='-fno-common'
15737       ;;
15738
15739     interix[3-9]*)
15740       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15741       # Instead, we relocate shared libraries at runtime.
15742       ;;
15743
15744     msdosdjgpp*)
15745       # Just because we use GCC doesn't mean we suddenly get shared libraries
15746       # on systems that don't support them.
15747       lt_prog_compiler_can_build_shared_GCJ=no
15748       enable_shared=no
15749       ;;
15750
15751     sysv4*MP*)
15752       if test -d /usr/nec; then
15753         lt_prog_compiler_pic_GCJ=-Kconform_pic
15754       fi
15755       ;;
15756
15757     hpux*)
15758       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15759       # not for PA HP-UX.
15760       case $host_cpu in
15761       hppa*64*|ia64*)
15762         # +Z the default
15763         ;;
15764       *)
15765         lt_prog_compiler_pic_GCJ='-fPIC'
15766         ;;
15767       esac
15768       ;;
15769
15770     *)
15771       lt_prog_compiler_pic_GCJ='-fPIC'
15772       ;;
15773     esac
15774   else
15775     # PORTME Check for flag to pass linker flags through the system compiler.
15776     case $host_os in
15777     aix*)
15778       lt_prog_compiler_wl_GCJ='-Wl,'
15779       if test "$host_cpu" = ia64; then
15780         # AIX 5 now supports IA64 processor
15781         lt_prog_compiler_static_GCJ='-Bstatic'
15782       else
15783         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15784       fi
15785       ;;
15786       darwin*)
15787         # PIC is the default on this platform
15788         # Common symbols not allowed in MH_DYLIB files
15789        case $cc_basename in
15790          xlc*)
15791          lt_prog_compiler_pic_GCJ='-qnocommon'
15792          lt_prog_compiler_wl_GCJ='-Wl,'
15793          ;;
15794        esac
15795        ;;
15796
15797     mingw* | cygwin* | pw32* | os2*)
15798       # This hack is so that the source file can tell whether it is being
15799       # built for inclusion in a dll (and should export symbols for example).
15800       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15801       ;;
15802
15803     hpux9* | hpux10* | hpux11*)
15804       lt_prog_compiler_wl_GCJ='-Wl,'
15805       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15806       # not for PA HP-UX.
15807       case $host_cpu in
15808       hppa*64*|ia64*)
15809         # +Z the default
15810         ;;
15811       *)
15812         lt_prog_compiler_pic_GCJ='+Z'
15813         ;;
15814       esac
15815       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15816       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15817       ;;
15818
15819     irix5* | irix6* | nonstopux*)
15820       lt_prog_compiler_wl_GCJ='-Wl,'
15821       # PIC (with -KPIC) is the default.
15822       lt_prog_compiler_static_GCJ='-non_shared'
15823       ;;
15824
15825     newsos6)
15826       lt_prog_compiler_pic_GCJ='-KPIC'
15827       lt_prog_compiler_static_GCJ='-Bstatic'
15828       ;;
15829
15830     linux* | k*bsd*-gnu)
15831       case $cc_basename in
15832       icc* | ecc*)
15833         lt_prog_compiler_wl_GCJ='-Wl,'
15834         lt_prog_compiler_pic_GCJ='-KPIC'
15835         lt_prog_compiler_static_GCJ='-static'
15836         ;;
15837       pgcc* | pgf77* | pgf90* | pgf95*)
15838         # Portland Group compilers (*not* the Pentium gcc compiler,
15839         # which looks to be a dead project)
15840         lt_prog_compiler_wl_GCJ='-Wl,'
15841         lt_prog_compiler_pic_GCJ='-fpic'
15842         lt_prog_compiler_static_GCJ='-Bstatic'
15843         ;;
15844       ccc*)
15845         lt_prog_compiler_wl_GCJ='-Wl,'
15846         # All Alpha code is PIC.
15847         lt_prog_compiler_static_GCJ='-non_shared'
15848         ;;
15849       *)
15850         case `$CC -V 2>&1 | sed 5q` in
15851         *Sun\ C*)
15852           # Sun C 5.9
15853           lt_prog_compiler_pic_GCJ='-KPIC'
15854           lt_prog_compiler_static_GCJ='-Bstatic'
15855           lt_prog_compiler_wl_GCJ='-Wl,'
15856           ;;
15857         *Sun\ F*)
15858           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15859           lt_prog_compiler_pic_GCJ='-KPIC'
15860           lt_prog_compiler_static_GCJ='-Bstatic'
15861           lt_prog_compiler_wl_GCJ=''
15862           ;;
15863         esac
15864         ;;
15865       esac
15866       ;;
15867
15868     osf3* | osf4* | osf5*)
15869       lt_prog_compiler_wl_GCJ='-Wl,'
15870       # All OSF/1 code is PIC.
15871       lt_prog_compiler_static_GCJ='-non_shared'
15872       ;;
15873
15874     rdos*)
15875       lt_prog_compiler_static_GCJ='-non_shared'
15876       ;;
15877
15878     solaris*)
15879       lt_prog_compiler_pic_GCJ='-KPIC'
15880       lt_prog_compiler_static_GCJ='-Bstatic'
15881       case $cc_basename in
15882       f77* | f90* | f95*)
15883         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15884       *)
15885         lt_prog_compiler_wl_GCJ='-Wl,';;
15886       esac
15887       ;;
15888
15889     sunos4*)
15890       lt_prog_compiler_wl_GCJ='-Qoption ld '
15891       lt_prog_compiler_pic_GCJ='-PIC'
15892       lt_prog_compiler_static_GCJ='-Bstatic'
15893       ;;
15894
15895     sysv4 | sysv4.2uw2* | sysv4.3*)
15896       lt_prog_compiler_wl_GCJ='-Wl,'
15897       lt_prog_compiler_pic_GCJ='-KPIC'
15898       lt_prog_compiler_static_GCJ='-Bstatic'
15899       ;;
15900
15901     sysv4*MP*)
15902       if test -d /usr/nec ;then
15903         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15904         lt_prog_compiler_static_GCJ='-Bstatic'
15905       fi
15906       ;;
15907
15908     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15909       lt_prog_compiler_wl_GCJ='-Wl,'
15910       lt_prog_compiler_pic_GCJ='-KPIC'
15911       lt_prog_compiler_static_GCJ='-Bstatic'
15912       ;;
15913
15914     unicos*)
15915       lt_prog_compiler_wl_GCJ='-Wl,'
15916       lt_prog_compiler_can_build_shared_GCJ=no
15917       ;;
15918
15919     uts4*)
15920       lt_prog_compiler_pic_GCJ='-pic'
15921       lt_prog_compiler_static_GCJ='-Bstatic'
15922       ;;
15923
15924     *)
15925       lt_prog_compiler_can_build_shared_GCJ=no
15926       ;;
15927     esac
15928   fi
15929
15930 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15931 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15932
15933 #
15934 # Check to make sure the PIC flag actually works.
15935 #
15936 if test -n "$lt_prog_compiler_pic_GCJ"; then
15937
15938 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15939 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15940 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943   lt_prog_compiler_pic_works_GCJ=no
15944   ac_outfile=conftest.$ac_objext
15945    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15946    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15947    # Insert the option either (1) after the last *FLAGS variable, or
15948    # (2) before a word containing "conftest.", or (3) at the end.
15949    # Note that $ac_compile itself does not contain backslashes and begins
15950    # with a dollar sign (not a hyphen), so the echo should work correctly.
15951    # The option is referenced via a variable to avoid confusing sed.
15952    lt_compile=`echo "$ac_compile" | $SED \
15953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15955    -e 's:$: $lt_compiler_flag:'`
15956    (eval echo "\"\$as_me:15956: $lt_compile\"" >&5)
15957    (eval "$lt_compile" 2>conftest.err)
15958    ac_status=$?
15959    cat conftest.err >&5
15960    echo "$as_me:15960: \$? = $ac_status" >&5
15961    if (exit $ac_status) && test -s "$ac_outfile"; then
15962      # The compiler can only warn and ignore the option if not recognized
15963      # So say no if there are warnings other than the usual output.
15964      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15965      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15966      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15967        lt_prog_compiler_pic_works_GCJ=yes
15968      fi
15969    fi
15970    $rm conftest*
15971
15972 fi
15973 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15974 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15975
15976 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15977     case $lt_prog_compiler_pic_GCJ in
15978      "" | " "*) ;;
15979      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15980      esac
15981 else
15982     lt_prog_compiler_pic_GCJ=
15983      lt_prog_compiler_can_build_shared_GCJ=no
15984 fi
15985
15986 fi
15987 case $host_os in
15988   # For platforms which do not support PIC, -DPIC is meaningless:
15989   *djgpp*)
15990     lt_prog_compiler_pic_GCJ=
15991     ;;
15992   *)
15993     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15994     ;;
15995 esac
15996
15997 #
15998 # Check to make sure the static flag actually works.
15999 #
16000 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16001 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16002 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16003 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   lt_prog_compiler_static_works_GCJ=no
16007    save_LDFLAGS="$LDFLAGS"
16008    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16009    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16010    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16011      # The linker can only warn and ignore the option if not recognized
16012      # So say no if there are warnings
16013      if test -s conftest.err; then
16014        # Append any errors to the config.log.
16015        cat conftest.err 1>&5
16016        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16017        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16018        if diff conftest.exp conftest.er2 >/dev/null; then
16019          lt_prog_compiler_static_works_GCJ=yes
16020        fi
16021      else
16022        lt_prog_compiler_static_works_GCJ=yes
16023      fi
16024    fi
16025    $rm conftest*
16026    LDFLAGS="$save_LDFLAGS"
16027
16028 fi
16029 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16030 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16031
16032 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16033     :
16034 else
16035     lt_prog_compiler_static_GCJ=
16036 fi
16037
16038
16039 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16040 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16041 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 else
16044   lt_cv_prog_compiler_c_o_GCJ=no
16045    $rm -r conftest 2>/dev/null
16046    mkdir conftest
16047    cd conftest
16048    mkdir out
16049    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16050
16051    lt_compiler_flag="-o out/conftest2.$ac_objext"
16052    # Insert the option either (1) after the last *FLAGS variable, or
16053    # (2) before a word containing "conftest.", or (3) at the end.
16054    # Note that $ac_compile itself does not contain backslashes and begins
16055    # with a dollar sign (not a hyphen), so the echo should work correctly.
16056    lt_compile=`echo "$ac_compile" | $SED \
16057    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16058    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16059    -e 's:$: $lt_compiler_flag:'`
16060    (eval echo "\"\$as_me:16060: $lt_compile\"" >&5)
16061    (eval "$lt_compile" 2>out/conftest.err)
16062    ac_status=$?
16063    cat out/conftest.err >&5
16064    echo "$as_me:16064: \$? = $ac_status" >&5
16065    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16066    then
16067      # The compiler can only warn and ignore the option if not recognized
16068      # So say no if there are warnings
16069      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16070      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16071      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16072        lt_cv_prog_compiler_c_o_GCJ=yes
16073      fi
16074    fi
16075    chmod u+w . 2>&5
16076    $rm conftest*
16077    # SGI C++ compiler will create directory out/ii_files/ for
16078    # template instantiation
16079    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16080    $rm out/* && rmdir out
16081    cd ..
16082    rmdir conftest
16083    $rm conftest*
16084
16085 fi
16086 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16087 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16088
16089
16090 hard_links="nottested"
16091 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16092   # do not overwrite the value of need_locks provided by the user
16093   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16094 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16095   hard_links=yes
16096   $rm conftest*
16097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16098   touch conftest.a
16099   ln conftest.a conftest.b 2>&5 || hard_links=no
16100   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16101   { echo "$as_me:$LINENO: result: $hard_links" >&5
16102 echo "${ECHO_T}$hard_links" >&6; }
16103   if test "$hard_links" = no; then
16104     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16105 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16106     need_locks=warn
16107   fi
16108 else
16109   need_locks=no
16110 fi
16111
16112 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16113 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16114
16115   runpath_var=
16116   allow_undefined_flag_GCJ=
16117   enable_shared_with_static_runtimes_GCJ=no
16118   archive_cmds_GCJ=
16119   archive_expsym_cmds_GCJ=
16120   old_archive_From_new_cmds_GCJ=
16121   old_archive_from_expsyms_cmds_GCJ=
16122   export_dynamic_flag_spec_GCJ=
16123   whole_archive_flag_spec_GCJ=
16124   thread_safe_flag_spec_GCJ=
16125   hardcode_libdir_flag_spec_GCJ=
16126   hardcode_libdir_flag_spec_ld_GCJ=
16127   hardcode_libdir_separator_GCJ=
16128   hardcode_direct_GCJ=no
16129   hardcode_minus_L_GCJ=no
16130   hardcode_shlibpath_var_GCJ=unsupported
16131   link_all_deplibs_GCJ=unknown
16132   hardcode_automatic_GCJ=no
16133   module_cmds_GCJ=
16134   module_expsym_cmds_GCJ=
16135   always_export_symbols_GCJ=no
16136   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16137   # include_expsyms should be a list of space-separated symbols to be *always*
16138   # included in the symbol list
16139   include_expsyms_GCJ=
16140   # exclude_expsyms can be an extended regexp of symbols to exclude
16141   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16142   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16143   # as well as any symbol that contains `d'.
16144   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16145   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16146   # platforms (ab)use it in PIC code, but their linkers get confused if
16147   # the symbol is explicitly referenced.  Since portable code cannot
16148   # rely on this symbol name, it's probably fine to never include it in
16149   # preloaded symbol tables.
16150   extract_expsyms_cmds=
16151   # Just being paranoid about ensuring that cc_basename is set.
16152   for cc_temp in $compiler""; do
16153   case $cc_temp in
16154     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16155     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16156     \-*) ;;
16157     *) break;;
16158   esac
16159 done
16160 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16161
16162   case $host_os in
16163   cygwin* | mingw* | pw32*)
16164     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16165     # When not using gcc, we currently assume that we are using
16166     # Microsoft Visual C++.
16167     if test "$GCC" != yes; then
16168       with_gnu_ld=no
16169     fi
16170     ;;
16171   interix*)
16172     # we just hope/assume this is gcc and not c89 (= MSVC++)
16173     with_gnu_ld=yes
16174     ;;
16175   openbsd*)
16176     with_gnu_ld=no
16177     ;;
16178   esac
16179
16180   ld_shlibs_GCJ=yes
16181   if test "$with_gnu_ld" = yes; then
16182     # If archive_cmds runs LD, not CC, wlarc should be empty
16183     wlarc='${wl}'
16184
16185     # Set some defaults for GNU ld with shared library support. These
16186     # are reset later if shared libraries are not supported. Putting them
16187     # here allows them to be overridden if necessary.
16188     runpath_var=LD_RUN_PATH
16189     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16190     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16191     # ancient GNU ld didn't support --whole-archive et. al.
16192     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16193         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16194       else
16195         whole_archive_flag_spec_GCJ=
16196     fi
16197     supports_anon_versioning=no
16198     case `$LD -v 2>/dev/null` in
16199       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16200       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16201       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16202       *\ 2.11.*) ;; # other 2.11 versions
16203       *) supports_anon_versioning=yes ;;
16204     esac
16205
16206     # See if GNU ld supports shared libraries.
16207     case $host_os in
16208     aix3* | aix4* | aix5*)
16209       # On AIX/PPC, the GNU linker is very broken
16210       if test "$host_cpu" != ia64; then
16211         ld_shlibs_GCJ=no
16212         cat <<EOF 1>&2
16213
16214 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16215 *** to be unable to reliably create shared libraries on AIX.
16216 *** Therefore, libtool is disabling shared libraries support.  If you
16217 *** really care for shared libraries, you may want to modify your PATH
16218 *** so that a non-GNU linker is found, and then restart.
16219
16220 EOF
16221       fi
16222       ;;
16223
16224     amigaos*)
16225       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)'
16226       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16227       hardcode_minus_L_GCJ=yes
16228
16229       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16230       # that the semantics of dynamic libraries on AmigaOS, at least up
16231       # to version 4, is to share data among multiple programs linked
16232       # with the same dynamic library.  Since this doesn't match the
16233       # behavior of shared libraries on other platforms, we can't use
16234       # them.
16235       ld_shlibs_GCJ=no
16236       ;;
16237
16238     beos*)
16239       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240         allow_undefined_flag_GCJ=unsupported
16241         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16242         # support --undefined.  This deserves some investigation.  FIXME
16243         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244       else
16245         ld_shlibs_GCJ=no
16246       fi
16247       ;;
16248
16249     cygwin* | mingw* | pw32*)
16250       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16251       # as there is no search path for DLLs.
16252       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16253       allow_undefined_flag_GCJ=unsupported
16254       always_export_symbols_GCJ=no
16255       enable_shared_with_static_runtimes_GCJ=yes
16256       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16257
16258       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16259         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16260         # If the export-symbols file already is a .def file (1st line
16261         # is EXPORTS), use it as is; otherwise, prepend...
16262         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16263           cp $export_symbols $output_objdir/$soname.def;
16264         else
16265           echo EXPORTS > $output_objdir/$soname.def;
16266           cat $export_symbols >> $output_objdir/$soname.def;
16267         fi~
16268         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16269       else
16270         ld_shlibs_GCJ=no
16271       fi
16272       ;;
16273
16274     interix[3-9]*)
16275       hardcode_direct_GCJ=no
16276       hardcode_shlibpath_var_GCJ=no
16277       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16278       export_dynamic_flag_spec_GCJ='${wl}-E'
16279       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16280       # Instead, shared libraries are loaded at an image base (0x10000000 by
16281       # default) and relocated if they conflict, which is a slow very memory
16282       # consuming and fragmenting process.  To avoid this, we pick a random,
16283       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16284       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16285       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'
16286       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'
16287       ;;
16288
16289     gnu* | linux* | k*bsd*-gnu)
16290       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16291         tmp_addflag=
16292         case $cc_basename,$host_cpu in
16293         pgcc*)                          # Portland Group C compiler
16294           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'
16295           tmp_addflag=' $pic_flag'
16296           ;;
16297         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16298           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'
16299           tmp_addflag=' $pic_flag -Mnomain' ;;
16300         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16301           tmp_addflag=' -i_dynamic' ;;
16302         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16303           tmp_addflag=' -i_dynamic -nofor_main' ;;
16304         ifc* | ifort*)                  # Intel Fortran compiler
16305           tmp_addflag=' -nofor_main' ;;
16306         esac
16307         case `$CC -V 2>&1 | sed 5q` in
16308         *Sun\ C*)                       # Sun C 5.9
16309           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'
16310           tmp_sharedflag='-G' ;;
16311         *Sun\ F*)                       # Sun Fortran 8.3
16312           tmp_sharedflag='-G' ;;
16313         *)
16314           tmp_sharedflag='-shared' ;;
16315         esac
16316         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16317
16318         if test $supports_anon_versioning = yes; then
16319           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16320   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16321   $echo "local: *; };" >> $output_objdir/$libname.ver~
16322           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16323         fi
16324       else
16325         ld_shlibs_GCJ=no
16326       fi
16327       ;;
16328
16329     netbsd*)
16330       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16331         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16332         wlarc=
16333       else
16334         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16335         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16336       fi
16337       ;;
16338
16339     solaris*)
16340       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16341         ld_shlibs_GCJ=no
16342         cat <<EOF 1>&2
16343
16344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16345 *** create shared libraries on Solaris systems.  Therefore, libtool
16346 *** is disabling shared libraries support.  We urge you to upgrade GNU
16347 *** binutils to release 2.9.1 or newer.  Another option is to modify
16348 *** your PATH or compiler configuration so that the native linker is
16349 *** used, and then restart.
16350
16351 EOF
16352       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16353         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16354         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16355       else
16356         ld_shlibs_GCJ=no
16357       fi
16358       ;;
16359
16360     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16361       case `$LD -v 2>&1` in
16362         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16363         ld_shlibs_GCJ=no
16364         cat <<_LT_EOF 1>&2
16365
16366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16367 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16368 *** is disabling shared libraries support.  We urge you to upgrade GNU
16369 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16370 *** your PATH or compiler configuration so that the native linker is
16371 *** used, and then restart.
16372
16373 _LT_EOF
16374         ;;
16375         *)
16376           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16377             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16378             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16379             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16380           else
16381             ld_shlibs_GCJ=no
16382           fi
16383         ;;
16384       esac
16385       ;;
16386
16387     sunos4*)
16388       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389       wlarc=
16390       hardcode_direct_GCJ=yes
16391       hardcode_shlibpath_var_GCJ=no
16392       ;;
16393
16394     *)
16395       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16396         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16397         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398       else
16399         ld_shlibs_GCJ=no
16400       fi
16401       ;;
16402     esac
16403
16404     if test "$ld_shlibs_GCJ" = no; then
16405       runpath_var=
16406       hardcode_libdir_flag_spec_GCJ=
16407       export_dynamic_flag_spec_GCJ=
16408       whole_archive_flag_spec_GCJ=
16409     fi
16410   else
16411     # PORTME fill in a description of your system's linker (not GNU ld)
16412     case $host_os in
16413     aix3*)
16414       allow_undefined_flag_GCJ=unsupported
16415       always_export_symbols_GCJ=yes
16416       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'
16417       # Note: this linker hardcodes the directories in LIBPATH if there
16418       # are no directories specified by -L.
16419       hardcode_minus_L_GCJ=yes
16420       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16421         # Neither direct hardcoding nor static linking is supported with a
16422         # broken collect2.
16423         hardcode_direct_GCJ=unsupported
16424       fi
16425       ;;
16426
16427     aix4* | aix5*)
16428       if test "$host_cpu" = ia64; then
16429         # On IA64, the linker does run time linking by default, so we don't
16430         # have to do anything special.
16431         aix_use_runtimelinking=no
16432         exp_sym_flag='-Bexport'
16433         no_entry_flag=""
16434       else
16435         # If we're using GNU nm, then we don't want the "-C" option.
16436         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16437         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16438           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'
16439         else
16440           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'
16441         fi
16442         aix_use_runtimelinking=no
16443
16444         # Test if we are trying to use run time linking or normal
16445         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16446         # need to do runtime linking.
16447         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16448           for ld_flag in $LDFLAGS; do
16449           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16450             aix_use_runtimelinking=yes
16451             break
16452           fi
16453           done
16454           ;;
16455         esac
16456
16457         exp_sym_flag='-bexport'
16458         no_entry_flag='-bnoentry'
16459       fi
16460
16461       # When large executables or shared objects are built, AIX ld can
16462       # have problems creating the table of contents.  If linking a library
16463       # or program results in "error TOC overflow" add -mminimal-toc to
16464       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16465       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16466
16467       archive_cmds_GCJ=''
16468       hardcode_direct_GCJ=yes
16469       hardcode_libdir_separator_GCJ=':'
16470       link_all_deplibs_GCJ=yes
16471
16472       if test "$GCC" = yes; then
16473         case $host_os in aix4.[012]|aix4.[012].*)
16474         # We only want to do this on AIX 4.2 and lower, the check
16475         # below for broken collect2 doesn't work under 4.3+
16476           collect2name=`${CC} -print-prog-name=collect2`
16477           if test -f "$collect2name" && \
16478            strings "$collect2name" | grep resolve_lib_name >/dev/null
16479           then
16480           # We have reworked collect2
16481           :
16482           else
16483           # We have old collect2
16484           hardcode_direct_GCJ=unsupported
16485           # It fails to find uninstalled libraries when the uninstalled
16486           # path is not listed in the libpath.  Setting hardcode_minus_L
16487           # to unsupported forces relinking
16488           hardcode_minus_L_GCJ=yes
16489           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16490           hardcode_libdir_separator_GCJ=
16491           fi
16492           ;;
16493         esac
16494         shared_flag='-shared'
16495         if test "$aix_use_runtimelinking" = yes; then
16496           shared_flag="$shared_flag "'${wl}-G'
16497         fi
16498       else
16499         # not using gcc
16500         if test "$host_cpu" = ia64; then
16501         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16502         # chokes on -Wl,-G. The following line is correct:
16503           shared_flag='-G'
16504         else
16505           if test "$aix_use_runtimelinking" = yes; then
16506             shared_flag='${wl}-G'
16507           else
16508             shared_flag='${wl}-bM:SRE'
16509           fi
16510         fi
16511       fi
16512
16513       # It seems that -bexpall does not export symbols beginning with
16514       # underscore (_), so it is better to generate a list of symbols to export.
16515       always_export_symbols_GCJ=yes
16516       if test "$aix_use_runtimelinking" = yes; then
16517         # Warning - without using the other runtime loading flags (-brtl),
16518         # -berok will link without error, but may produce a broken library.
16519         allow_undefined_flag_GCJ='-berok'
16520        # Determine the default libpath from the value encoded in an empty executable.
16521        cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h.  */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h.  */
16527
16528 int
16529 main ()
16530 {
16531
16532   ;
16533   return 0;
16534 }
16535 _ACEOF
16536 rm -f conftest.$ac_objext conftest$ac_exeext
16537 if { (ac_try="$ac_link"
16538 case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_link") 2>conftest.er1
16544   ac_status=$?
16545   grep -v '^ *+' conftest.er1 >conftest.err
16546   rm -f conftest.er1
16547   cat conftest.err >&5
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); } && {
16550          test -z "$ac_c_werror_flag" ||
16551          test ! -s conftest.err
16552        } && test -s conftest$ac_exeext &&
16553        $as_test_x conftest$ac_exeext; then
16554
16555 lt_aix_libpath_sed='
16556     /Import File Strings/,/^$/ {
16557         /^0/ {
16558             s/^0  *\(.*\)$/\1/
16559             p
16560         }
16561     }'
16562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16563 # Check for a 64-bit object if we didn't find anything.
16564 if test -z "$aix_libpath"; then
16565   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 fi
16567 else
16568   echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571
16572 fi
16573
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575       conftest$ac_exeext conftest.$ac_ext
16576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16577
16578        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16579         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"
16580        else
16581         if test "$host_cpu" = ia64; then
16582           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16583           allow_undefined_flag_GCJ="-z nodefs"
16584           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"
16585         else
16586          # Determine the default libpath from the value encoded in an empty executable.
16587          cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593
16594 int
16595 main ()
16596 {
16597
16598   ;
16599   return 0;
16600 }
16601 _ACEOF
16602 rm -f conftest.$ac_objext conftest$ac_exeext
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_link") 2>conftest.er1
16610   ac_status=$?
16611   grep -v '^ *+' conftest.er1 >conftest.err
16612   rm -f conftest.er1
16613   cat conftest.err >&5
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } && {
16616          test -z "$ac_c_werror_flag" ||
16617          test ! -s conftest.err
16618        } && test -s conftest$ac_exeext &&
16619        $as_test_x conftest$ac_exeext; then
16620
16621 lt_aix_libpath_sed='
16622     /Import File Strings/,/^$/ {
16623         /^0/ {
16624             s/^0  *\(.*\)$/\1/
16625             p
16626         }
16627     }'
16628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16629 # Check for a 64-bit object if we didn't find anything.
16630 if test -z "$aix_libpath"; then
16631   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16632 fi
16633 else
16634   echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637
16638 fi
16639
16640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16641       conftest$ac_exeext conftest.$ac_ext
16642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16643
16644          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16645           # Warning - without using the other run time loading flags,
16646           # -berok will link without error, but may produce a broken library.
16647           no_undefined_flag_GCJ=' ${wl}-bernotok'
16648           allow_undefined_flag_GCJ=' ${wl}-berok'
16649           # Exported symbols can be pulled into shared objects from archives
16650           whole_archive_flag_spec_GCJ='$convenience'
16651           archive_cmds_need_lc_GCJ=yes
16652           # This is similar to how AIX traditionally builds its shared libraries.
16653           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'
16654         fi
16655       fi
16656       ;;
16657
16658     amigaos*)
16659       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)'
16660       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16661       hardcode_minus_L_GCJ=yes
16662       # see comment about different semantics on the GNU ld section
16663       ld_shlibs_GCJ=no
16664       ;;
16665
16666     bsdi[45]*)
16667       export_dynamic_flag_spec_GCJ=-rdynamic
16668       ;;
16669
16670     cygwin* | mingw* | pw32*)
16671       # When not using gcc, we currently assume that we are using
16672       # Microsoft Visual C++.
16673       # hardcode_libdir_flag_spec is actually meaningless, as there is
16674       # no search path for DLLs.
16675       hardcode_libdir_flag_spec_GCJ=' '
16676       allow_undefined_flag_GCJ=unsupported
16677       # Tell ltmain to make .lib files, not .a files.
16678       libext=lib
16679       # Tell ltmain to make .dll files, not .so files.
16680       shrext_cmds=".dll"
16681       # FIXME: Setting linknames here is a bad hack.
16682       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16683       # The linker will automatically build a .lib file if we build a DLL.
16684       old_archive_From_new_cmds_GCJ='true'
16685       # FIXME: Should let the user specify the lib program.
16686       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16687       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16688       enable_shared_with_static_runtimes_GCJ=yes
16689       ;;
16690
16691     darwin* | rhapsody*)
16692       case $host_os in
16693         rhapsody* | darwin1.[012])
16694          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16695          ;;
16696        *) # Darwin 1.3 on
16697          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16698            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16699          else
16700            case ${MACOSX_DEPLOYMENT_TARGET} in
16701              10.[012])
16702                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16703                ;;
16704              10.*)
16705                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16706                ;;
16707            esac
16708          fi
16709          ;;
16710       esac
16711       archive_cmds_need_lc_GCJ=no
16712       hardcode_direct_GCJ=no
16713       hardcode_automatic_GCJ=yes
16714       hardcode_shlibpath_var_GCJ=unsupported
16715       whole_archive_flag_spec_GCJ=''
16716       link_all_deplibs_GCJ=yes
16717     if test "$GCC" = yes ; then
16718         output_verbose_link_cmd='echo'
16719         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16720       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16721       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16722       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}'
16723       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}'
16724     else
16725       case $cc_basename in
16726         xlc*)
16727          output_verbose_link_cmd='echo'
16728          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16729          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16730           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16731          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}'
16732           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}'
16733           ;;
16734        *)
16735          ld_shlibs_GCJ=no
16736           ;;
16737       esac
16738     fi
16739       ;;
16740
16741     dgux*)
16742       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16743       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16744       hardcode_shlibpath_var_GCJ=no
16745       ;;
16746
16747     freebsd1*)
16748       ld_shlibs_GCJ=no
16749       ;;
16750
16751     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16752     # support.  Future versions do this automatically, but an explicit c++rt0.o
16753     # does not break anything, and helps significantly (at the cost of a little
16754     # extra space).
16755     freebsd2.2*)
16756       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16757       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16758       hardcode_direct_GCJ=yes
16759       hardcode_shlibpath_var_GCJ=no
16760       ;;
16761
16762     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16763     freebsd2*)
16764       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16765       hardcode_direct_GCJ=yes
16766       hardcode_minus_L_GCJ=yes
16767       hardcode_shlibpath_var_GCJ=no
16768       ;;
16769
16770     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16771     freebsd* | dragonfly*)
16772       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16773       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16774       hardcode_direct_GCJ=yes
16775       hardcode_shlibpath_var_GCJ=no
16776       ;;
16777
16778     hpux9*)
16779       if test "$GCC" = yes; then
16780         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'
16781       else
16782         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'
16783       fi
16784       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16785       hardcode_libdir_separator_GCJ=:
16786       hardcode_direct_GCJ=yes
16787
16788       # hardcode_minus_L: Not really in the search PATH,
16789       # but as the default location of the library.
16790       hardcode_minus_L_GCJ=yes
16791       export_dynamic_flag_spec_GCJ='${wl}-E'
16792       ;;
16793
16794     hpux10*)
16795       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16796         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16797       else
16798         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16799       fi
16800       if test "$with_gnu_ld" = no; then
16801         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16802         hardcode_libdir_separator_GCJ=:
16803
16804         hardcode_direct_GCJ=yes
16805         export_dynamic_flag_spec_GCJ='${wl}-E'
16806
16807         # hardcode_minus_L: Not really in the search PATH,
16808         # but as the default location of the library.
16809         hardcode_minus_L_GCJ=yes
16810       fi
16811       ;;
16812
16813     hpux11*)
16814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16815         case $host_cpu in
16816         hppa*64*)
16817           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16818           ;;
16819         ia64*)
16820           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16821           ;;
16822         *)
16823           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16824           ;;
16825         esac
16826       else
16827         case $host_cpu in
16828         hppa*64*)
16829           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16830           ;;
16831         ia64*)
16832           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16833           ;;
16834         *)
16835           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16836           ;;
16837         esac
16838       fi
16839       if test "$with_gnu_ld" = no; then
16840         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16841         hardcode_libdir_separator_GCJ=:
16842
16843         case $host_cpu in
16844         hppa*64*|ia64*)
16845           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16846           hardcode_direct_GCJ=no
16847           hardcode_shlibpath_var_GCJ=no
16848           ;;
16849         *)
16850           hardcode_direct_GCJ=yes
16851           export_dynamic_flag_spec_GCJ='${wl}-E'
16852
16853           # hardcode_minus_L: Not really in the search PATH,
16854           # but as the default location of the library.
16855           hardcode_minus_L_GCJ=yes
16856           ;;
16857         esac
16858       fi
16859       ;;
16860
16861     irix5* | irix6* | nonstopux*)
16862       if test "$GCC" = yes; then
16863         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'
16864       else
16865         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'
16866         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16867       fi
16868       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16869       hardcode_libdir_separator_GCJ=:
16870       link_all_deplibs_GCJ=yes
16871       ;;
16872
16873     netbsd*)
16874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16875         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16876       else
16877         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16878       fi
16879       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16880       hardcode_direct_GCJ=yes
16881       hardcode_shlibpath_var_GCJ=no
16882       ;;
16883
16884     newsos6)
16885       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16886       hardcode_direct_GCJ=yes
16887       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16888       hardcode_libdir_separator_GCJ=:
16889       hardcode_shlibpath_var_GCJ=no
16890       ;;
16891
16892     openbsd*)
16893       if test -f /usr/libexec/ld.so; then
16894         hardcode_direct_GCJ=yes
16895         hardcode_shlibpath_var_GCJ=no
16896         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16897           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16898           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16899           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16900           export_dynamic_flag_spec_GCJ='${wl}-E'
16901         else
16902           case $host_os in
16903            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16904              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905              hardcode_libdir_flag_spec_GCJ='-R$libdir'
16906              ;;
16907            *)
16908              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16909              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16910              ;;
16911           esac
16912         fi
16913       else
16914         ld_shlibs_GCJ=no
16915       fi
16916       ;;
16917
16918     os2*)
16919       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16920       hardcode_minus_L_GCJ=yes
16921       allow_undefined_flag_GCJ=unsupported
16922       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'
16923       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16924       ;;
16925
16926     osf3*)
16927       if test "$GCC" = yes; then
16928         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16929         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'
16930       else
16931         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16932         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'
16933       fi
16934       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16935       hardcode_libdir_separator_GCJ=:
16936       ;;
16937
16938     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16939       if test "$GCC" = yes; then
16940         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16941         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'
16942         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16943       else
16944         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16945         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'
16946         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~
16947         $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'
16948
16949         # Both c and cxx compiler support -rpath directly
16950         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16951       fi
16952       hardcode_libdir_separator_GCJ=:
16953       ;;
16954
16955     solaris*)
16956       no_undefined_flag_GCJ=' -z text'
16957       if test "$GCC" = yes; then
16958         wlarc='${wl}'
16959         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16961           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16962       else
16963         wlarc=''
16964         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16965         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16966         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16967       fi
16968       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16969       hardcode_shlibpath_var_GCJ=no
16970       case $host_os in
16971       solaris2.[0-5] | solaris2.[0-5].*) ;;
16972       *)
16973         # The compiler driver will combine and reorder linker options,
16974         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16975         # but is careful enough not to reorder.
16976         # Supported since Solaris 2.6 (maybe 2.5.1?)
16977         if test "$GCC" = yes; then
16978           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16979         else
16980           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
16981         fi
16982         ;;
16983       esac
16984       link_all_deplibs_GCJ=yes
16985       ;;
16986
16987     sunos4*)
16988       if test "x$host_vendor" = xsequent; then
16989         # Use $CC to link under sequent, because it throws in some extra .o
16990         # files that make .init and .fini sections work.
16991         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16992       else
16993         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16994       fi
16995       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16996       hardcode_direct_GCJ=yes
16997       hardcode_minus_L_GCJ=yes
16998       hardcode_shlibpath_var_GCJ=no
16999       ;;
17000
17001     sysv4)
17002       case $host_vendor in
17003         sni)
17004           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005           hardcode_direct_GCJ=yes # is this really true???
17006         ;;
17007         siemens)
17008           ## LD is ld it makes a PLAMLIB
17009           ## CC just makes a GrossModule.
17010           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17011           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17012           hardcode_direct_GCJ=no
17013         ;;
17014         motorola)
17015           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17016           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17017         ;;
17018       esac
17019       runpath_var='LD_RUN_PATH'
17020       hardcode_shlibpath_var_GCJ=no
17021       ;;
17022
17023     sysv4.3*)
17024       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17025       hardcode_shlibpath_var_GCJ=no
17026       export_dynamic_flag_spec_GCJ='-Bexport'
17027       ;;
17028
17029     sysv4*MP*)
17030       if test -d /usr/nec; then
17031         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17032         hardcode_shlibpath_var_GCJ=no
17033         runpath_var=LD_RUN_PATH
17034         hardcode_runpath_var=yes
17035         ld_shlibs_GCJ=yes
17036       fi
17037       ;;
17038
17039     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17040       no_undefined_flag_GCJ='${wl}-z,text'
17041       archive_cmds_need_lc_GCJ=no
17042       hardcode_shlibpath_var_GCJ=no
17043       runpath_var='LD_RUN_PATH'
17044
17045       if test "$GCC" = yes; then
17046         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17048       else
17049         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051       fi
17052       ;;
17053
17054     sysv5* | sco3.2v5* | sco5v6*)
17055       # Note: We can NOT use -z defs as we might desire, because we do not
17056       # link with -lc, and that would cause any symbols used from libc to
17057       # always be unresolved, which means just about no library would
17058       # ever link correctly.  If we're not using GNU ld we use -z text
17059       # though, which does catch some bad symbols but isn't as heavy-handed
17060       # as -z defs.
17061       no_undefined_flag_GCJ='${wl}-z,text'
17062       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17063       archive_cmds_need_lc_GCJ=no
17064       hardcode_shlibpath_var_GCJ=no
17065       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17066       hardcode_libdir_separator_GCJ=':'
17067       link_all_deplibs_GCJ=yes
17068       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17069       runpath_var='LD_RUN_PATH'
17070
17071       if test "$GCC" = yes; then
17072         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17073         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17074       else
17075         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17076         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17077       fi
17078       ;;
17079
17080     uts4*)
17081       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17083       hardcode_shlibpath_var_GCJ=no
17084       ;;
17085
17086     *)
17087       ld_shlibs_GCJ=no
17088       ;;
17089     esac
17090   fi
17091
17092 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17093 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17094 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17095
17096 #
17097 # Do we need to explicitly link libc?
17098 #
17099 case "x$archive_cmds_need_lc_GCJ" in
17100 x|xyes)
17101   # Assume -lc should be added
17102   archive_cmds_need_lc_GCJ=yes
17103
17104   if test "$enable_shared" = yes && test "$GCC" = yes; then
17105     case $archive_cmds_GCJ in
17106     *'~'*)
17107       # FIXME: we may have to deal with multi-command sequences.
17108       ;;
17109     '$CC '*)
17110       # Test whether the compiler implicitly links with -lc since on some
17111       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17112       # to ld, don't add -lc before -lgcc.
17113       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17114 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17115       $rm conftest*
17116       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17117
17118       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119   (eval $ac_compile) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); } 2>conftest.err; then
17123         soname=conftest
17124         lib=conftest
17125         libobjs=conftest.$ac_objext
17126         deplibs=
17127         wl=$lt_prog_compiler_wl_GCJ
17128         pic_flag=$lt_prog_compiler_pic_GCJ
17129         compiler_flags=-v
17130         linker_flags=-v
17131         verstring=
17132         output_objdir=.
17133         libname=conftest
17134         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17135         allow_undefined_flag_GCJ=
17136         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17137   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }
17141         then
17142           archive_cmds_need_lc_GCJ=no
17143         else
17144           archive_cmds_need_lc_GCJ=yes
17145         fi
17146         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17147       else
17148         cat conftest.err 1>&5
17149       fi
17150       $rm conftest*
17151       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17152 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17153       ;;
17154     esac
17155   fi
17156   ;;
17157 esac
17158
17159 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17160 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17161 library_names_spec=
17162 libname_spec='lib$name'
17163 soname_spec=
17164 shrext_cmds=".so"
17165 postinstall_cmds=
17166 postuninstall_cmds=
17167 finish_cmds=
17168 finish_eval=
17169 shlibpath_var=
17170 shlibpath_overrides_runpath=unknown
17171 version_type=none
17172 dynamic_linker="$host_os ld.so"
17173 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17174
17175 need_lib_prefix=unknown
17176 hardcode_into_libs=no
17177
17178 # when you set need_version to no, make sure it does not cause -set_version
17179 # flags to be left without arguments
17180 need_version=unknown
17181
17182 case $host_os in
17183 aix3*)
17184   version_type=linux
17185   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17186   shlibpath_var=LIBPATH
17187
17188   # AIX 3 has no versioning support, so we append a major version to the name.
17189   soname_spec='${libname}${release}${shared_ext}$major'
17190   ;;
17191
17192 aix4* | aix5*)
17193   version_type=linux
17194   need_lib_prefix=no
17195   need_version=no
17196   hardcode_into_libs=yes
17197   if test "$host_cpu" = ia64; then
17198     # AIX 5 supports IA64
17199     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17200     shlibpath_var=LD_LIBRARY_PATH
17201   else
17202     # With GCC up to 2.95.x, collect2 would create an import file
17203     # for dependence libraries.  The import file would start with
17204     # the line `#! .'.  This would cause the generated library to
17205     # depend on `.', always an invalid library.  This was fixed in
17206     # development snapshots of GCC prior to 3.0.
17207     case $host_os in
17208       aix4 | aix4.[01] | aix4.[01].*)
17209       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17210            echo ' yes '
17211            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17212         :
17213       else
17214         can_build_shared=no
17215       fi
17216       ;;
17217     esac
17218     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17219     # soname into executable. Probably we can add versioning support to
17220     # collect2, so additional links can be useful in future.
17221     if test "$aix_use_runtimelinking" = yes; then
17222       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17223       # instead of lib<name>.a to let people know that these are not
17224       # typical AIX shared libraries.
17225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17226     else
17227       # We preserve .a as extension for shared libraries through AIX4.2
17228       # and later when we are not doing run time linking.
17229       library_names_spec='${libname}${release}.a $libname.a'
17230       soname_spec='${libname}${release}${shared_ext}$major'
17231     fi
17232     shlibpath_var=LIBPATH
17233   fi
17234   ;;
17235
17236 amigaos*)
17237   library_names_spec='$libname.ixlibrary $libname.a'
17238   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17239   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'
17240   ;;
17241
17242 beos*)
17243   library_names_spec='${libname}${shared_ext}'
17244   dynamic_linker="$host_os ld.so"
17245   shlibpath_var=LIBRARY_PATH
17246   ;;
17247
17248 bsdi[45]*)
17249   version_type=linux
17250   need_version=no
17251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17252   soname_spec='${libname}${release}${shared_ext}$major'
17253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17254   shlibpath_var=LD_LIBRARY_PATH
17255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17257   # the default ld.so.conf also contains /usr/contrib/lib and
17258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17259   # libtool to hard-code these into programs
17260   ;;
17261
17262 cygwin* | mingw* | pw32*)
17263   version_type=windows
17264   shrext_cmds=".dll"
17265   need_version=no
17266   need_lib_prefix=no
17267
17268   case $GCC,$host_os in
17269   yes,cygwin* | yes,mingw* | yes,pw32*)
17270     library_names_spec='$libname.dll.a'
17271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17272     postinstall_cmds='base_file=`basename \${file}`~
17273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17274       dldir=$destdir/`dirname \$dlpath`~
17275       test -d \$dldir || mkdir -p \$dldir~
17276       $install_prog $dir/$dlname \$dldir/$dlname~
17277       chmod a+x \$dldir/$dlname'
17278     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17279       dlpath=$dir/\$dldll~
17280        $rm \$dlpath'
17281     shlibpath_overrides_runpath=yes
17282
17283     case $host_os in
17284     cygwin*)
17285       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17286       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17287       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17288       ;;
17289     mingw*)
17290       # MinGW DLLs use traditional 'lib' prefix
17291       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17292       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17293       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17294         # It is most probably a Windows format PATH printed by
17295         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17296         # path with ; separators, and with drive letters. We can handle the
17297         # drive letters (cygwin fileutils understands them), so leave them,
17298         # especially as we might pass files found there to a mingw objdump,
17299         # which wouldn't understand a cygwinified path. Ahh.
17300         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17301       else
17302         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17303       fi
17304       ;;
17305     pw32*)
17306       # pw32 DLLs use 'pw' prefix rather than 'lib'
17307       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17308       ;;
17309     esac
17310     ;;
17311
17312   *)
17313     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17314     ;;
17315   esac
17316   dynamic_linker='Win32 ld.exe'
17317   # FIXME: first we should search . and the directory the executable is in
17318   shlibpath_var=PATH
17319   ;;
17320
17321 darwin* | rhapsody*)
17322   dynamic_linker="$host_os dyld"
17323   version_type=darwin
17324   need_lib_prefix=no
17325   need_version=no
17326   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17327   soname_spec='${libname}${release}${major}$shared_ext'
17328   shlibpath_overrides_runpath=yes
17329   shlibpath_var=DYLD_LIBRARY_PATH
17330   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17331
17332   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17333   ;;
17334
17335 dgux*)
17336   version_type=linux
17337   need_lib_prefix=no
17338   need_version=no
17339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17340   soname_spec='${libname}${release}${shared_ext}$major'
17341   shlibpath_var=LD_LIBRARY_PATH
17342   ;;
17343
17344 freebsd1*)
17345   dynamic_linker=no
17346   ;;
17347
17348 freebsd* | dragonfly*)
17349   # DragonFly does not have aout.  When/if they implement a new
17350   # versioning mechanism, adjust this.
17351   if test -x /usr/bin/objformat; then
17352     objformat=`/usr/bin/objformat`
17353   else
17354     case $host_os in
17355     freebsd[123]*) objformat=aout ;;
17356     *) objformat=elf ;;
17357     esac
17358   fi
17359   version_type=freebsd-$objformat
17360   case $version_type in
17361     freebsd-elf*)
17362       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17363       need_version=no
17364       need_lib_prefix=no
17365       ;;
17366     freebsd-*)
17367       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17368       need_version=yes
17369       ;;
17370   esac
17371   shlibpath_var=LD_LIBRARY_PATH
17372   case $host_os in
17373   freebsd2*)
17374     shlibpath_overrides_runpath=yes
17375     ;;
17376   freebsd3.[01]* | freebsdelf3.[01]*)
17377     shlibpath_overrides_runpath=yes
17378     hardcode_into_libs=yes
17379     ;;
17380   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17381   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17382     shlibpath_overrides_runpath=no
17383     hardcode_into_libs=yes
17384     ;;
17385   *) # from 4.6 on, and DragonFly
17386     shlibpath_overrides_runpath=yes
17387     hardcode_into_libs=yes
17388     ;;
17389   esac
17390   ;;
17391
17392 gnu*)
17393   version_type=linux
17394   need_lib_prefix=no
17395   need_version=no
17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17397   soname_spec='${libname}${release}${shared_ext}$major'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   hardcode_into_libs=yes
17400   ;;
17401
17402 hpux9* | hpux10* | hpux11*)
17403   # Give a soname corresponding to the major version so that dld.sl refuses to
17404   # link against other versions.
17405   version_type=sunos
17406   need_lib_prefix=no
17407   need_version=no
17408   case $host_cpu in
17409   ia64*)
17410     shrext_cmds='.so'
17411     hardcode_into_libs=yes
17412     dynamic_linker="$host_os dld.so"
17413     shlibpath_var=LD_LIBRARY_PATH
17414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17416     soname_spec='${libname}${release}${shared_ext}$major'
17417     if test "X$HPUX_IA64_MODE" = X32; then
17418       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17419     else
17420       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17421     fi
17422     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17423     ;;
17424    hppa*64*)
17425      shrext_cmds='.sl'
17426      hardcode_into_libs=yes
17427      dynamic_linker="$host_os dld.sl"
17428      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17429      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17430      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431      soname_spec='${libname}${release}${shared_ext}$major'
17432      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17433      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17434      ;;
17435    *)
17436     shrext_cmds='.sl'
17437     dynamic_linker="$host_os dld.sl"
17438     shlibpath_var=SHLIB_PATH
17439     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441     soname_spec='${libname}${release}${shared_ext}$major'
17442     ;;
17443   esac
17444   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17445   postinstall_cmds='chmod 555 $lib'
17446   ;;
17447
17448 interix[3-9]*)
17449   version_type=linux
17450   need_lib_prefix=no
17451   need_version=no
17452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17453   soname_spec='${libname}${release}${shared_ext}$major'
17454   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17455   shlibpath_var=LD_LIBRARY_PATH
17456   shlibpath_overrides_runpath=no
17457   hardcode_into_libs=yes
17458   ;;
17459
17460 irix5* | irix6* | nonstopux*)
17461   case $host_os in
17462     nonstopux*) version_type=nonstopux ;;
17463     *)
17464         if test "$lt_cv_prog_gnu_ld" = yes; then
17465                 version_type=linux
17466         else
17467                 version_type=irix
17468         fi ;;
17469   esac
17470   need_lib_prefix=no
17471   need_version=no
17472   soname_spec='${libname}${release}${shared_ext}$major'
17473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17474   case $host_os in
17475   irix5* | nonstopux*)
17476     libsuff= shlibsuff=
17477     ;;
17478   *)
17479     case $LD in # libtool.m4 will add one of these switches to LD
17480     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17481       libsuff= shlibsuff= libmagic=32-bit;;
17482     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17483       libsuff=32 shlibsuff=N32 libmagic=N32;;
17484     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17485       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17486     *) libsuff= shlibsuff= libmagic=never-match;;
17487     esac
17488     ;;
17489   esac
17490   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17491   shlibpath_overrides_runpath=no
17492   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17493   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17494   hardcode_into_libs=yes
17495   ;;
17496
17497 # No shared lib support for Linux oldld, aout, or coff.
17498 linux*oldld* | linux*aout* | linux*coff*)
17499   dynamic_linker=no
17500   ;;
17501
17502 # This must be Linux ELF.
17503 linux* | k*bsd*-gnu)
17504   version_type=linux
17505   need_lib_prefix=no
17506   need_version=no
17507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17508   soname_spec='${libname}${release}${shared_ext}$major'
17509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17510   shlibpath_var=LD_LIBRARY_PATH
17511   shlibpath_overrides_runpath=no
17512   # This implies no fast_install, which is unacceptable.
17513   # Some rework will be needed to allow for fast_install
17514   # before this can be enabled.
17515   hardcode_into_libs=yes
17516
17517   # Append ld.so.conf contents to the search path
17518   if test -f /etc/ld.so.conf; then
17519     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' ' '`
17520     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17521   fi
17522
17523   # We used to test for /lib/ld.so.1 and disable shared libraries on
17524   # powerpc, because MkLinux only supported shared libraries with the
17525   # GNU dynamic linker.  Since this was broken with cross compilers,
17526   # most powerpc-linux boxes support dynamic linking these days and
17527   # people can always --disable-shared, the test was removed, and we
17528   # assume the GNU/Linux dynamic linker is in use.
17529   dynamic_linker='GNU/Linux ld.so'
17530   ;;
17531
17532 netbsd*)
17533   version_type=sunos
17534   need_lib_prefix=no
17535   need_version=no
17536   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17537     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17538     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17539     dynamic_linker='NetBSD (a.out) ld.so'
17540   else
17541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17542     soname_spec='${libname}${release}${shared_ext}$major'
17543     dynamic_linker='NetBSD ld.elf_so'
17544   fi
17545   shlibpath_var=LD_LIBRARY_PATH
17546   shlibpath_overrides_runpath=yes
17547   hardcode_into_libs=yes
17548   ;;
17549
17550 newsos6)
17551   version_type=linux
17552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553   shlibpath_var=LD_LIBRARY_PATH
17554   shlibpath_overrides_runpath=yes
17555   ;;
17556
17557 nto-qnx*)
17558   version_type=linux
17559   need_lib_prefix=no
17560   need_version=no
17561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17562   soname_spec='${libname}${release}${shared_ext}$major'
17563   shlibpath_var=LD_LIBRARY_PATH
17564   shlibpath_overrides_runpath=yes
17565   ;;
17566
17567 openbsd*)
17568   version_type=sunos
17569   sys_lib_dlsearch_path_spec="/usr/lib"
17570   need_lib_prefix=no
17571   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17572   case $host_os in
17573     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17574     *)                         need_version=no  ;;
17575   esac
17576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17578   shlibpath_var=LD_LIBRARY_PATH
17579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17580     case $host_os in
17581       openbsd2.[89] | openbsd2.[89].*)
17582         shlibpath_overrides_runpath=no
17583         ;;
17584       *)
17585         shlibpath_overrides_runpath=yes
17586         ;;
17587       esac
17588   else
17589     shlibpath_overrides_runpath=yes
17590   fi
17591   ;;
17592
17593 os2*)
17594   libname_spec='$name'
17595   shrext_cmds=".dll"
17596   need_lib_prefix=no
17597   library_names_spec='$libname${shared_ext} $libname.a'
17598   dynamic_linker='OS/2 ld.exe'
17599   shlibpath_var=LIBPATH
17600   ;;
17601
17602 osf3* | osf4* | osf5*)
17603   version_type=osf
17604   need_lib_prefix=no
17605   need_version=no
17606   soname_spec='${libname}${release}${shared_ext}$major'
17607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608   shlibpath_var=LD_LIBRARY_PATH
17609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17611   ;;
17612
17613 rdos*)
17614   dynamic_linker=no
17615   ;;
17616
17617 solaris*)
17618   version_type=linux
17619   need_lib_prefix=no
17620   need_version=no
17621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622   soname_spec='${libname}${release}${shared_ext}$major'
17623   shlibpath_var=LD_LIBRARY_PATH
17624   shlibpath_overrides_runpath=yes
17625   hardcode_into_libs=yes
17626   # ldd complains unless libraries are executable
17627   postinstall_cmds='chmod +x $lib'
17628   ;;
17629
17630 sunos4*)
17631   version_type=sunos
17632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17633   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17634   shlibpath_var=LD_LIBRARY_PATH
17635   shlibpath_overrides_runpath=yes
17636   if test "$with_gnu_ld" = yes; then
17637     need_lib_prefix=no
17638   fi
17639   need_version=yes
17640   ;;
17641
17642 sysv4 | sysv4.3*)
17643   version_type=linux
17644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645   soname_spec='${libname}${release}${shared_ext}$major'
17646   shlibpath_var=LD_LIBRARY_PATH
17647   case $host_vendor in
17648     sni)
17649       shlibpath_overrides_runpath=no
17650       need_lib_prefix=no
17651       export_dynamic_flag_spec='${wl}-Blargedynsym'
17652       runpath_var=LD_RUN_PATH
17653       ;;
17654     siemens)
17655       need_lib_prefix=no
17656       ;;
17657     motorola)
17658       need_lib_prefix=no
17659       need_version=no
17660       shlibpath_overrides_runpath=no
17661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17662       ;;
17663   esac
17664   ;;
17665
17666 sysv4*MP*)
17667   if test -d /usr/nec ;then
17668     version_type=linux
17669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17670     soname_spec='$libname${shared_ext}.$major'
17671     shlibpath_var=LD_LIBRARY_PATH
17672   fi
17673   ;;
17674
17675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17676   version_type=freebsd-elf
17677   need_lib_prefix=no
17678   need_version=no
17679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17680   soname_spec='${libname}${release}${shared_ext}$major'
17681   shlibpath_var=LD_LIBRARY_PATH
17682   hardcode_into_libs=yes
17683   if test "$with_gnu_ld" = yes; then
17684     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17685     shlibpath_overrides_runpath=no
17686   else
17687     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17688     shlibpath_overrides_runpath=yes
17689     case $host_os in
17690       sco3.2v5*)
17691         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17692         ;;
17693     esac
17694   fi
17695   sys_lib_dlsearch_path_spec='/usr/lib'
17696   ;;
17697
17698 uts4*)
17699   version_type=linux
17700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701   soname_spec='${libname}${release}${shared_ext}$major'
17702   shlibpath_var=LD_LIBRARY_PATH
17703   ;;
17704
17705 *)
17706   dynamic_linker=no
17707   ;;
17708 esac
17709 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17710 echo "${ECHO_T}$dynamic_linker" >&6; }
17711 test "$dynamic_linker" = no && can_build_shared=no
17712
17713 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17714 if test "$GCC" = yes; then
17715   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17716 fi
17717
17718 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17719 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17720 hardcode_action_GCJ=
17721 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17722    test -n "$runpath_var_GCJ" || \
17723    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17724
17725   # We can hardcode non-existant directories.
17726   if test "$hardcode_direct_GCJ" != no &&
17727      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17728      # have to relink, otherwise we might link with an installed library
17729      # when we should be linking with a yet-to-be-installed one
17730      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17731      test "$hardcode_minus_L_GCJ" != no; then
17732     # Linking always hardcodes the temporary library directory.
17733     hardcode_action_GCJ=relink
17734   else
17735     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17736     hardcode_action_GCJ=immediate
17737   fi
17738 else
17739   # We cannot hardcode anything, or else we can only hardcode existing
17740   # directories.
17741   hardcode_action_GCJ=unsupported
17742 fi
17743 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17744 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17745
17746 if test "$hardcode_action_GCJ" = relink; then
17747   # Fast installation is not supported
17748   enable_fast_install=no
17749 elif test "$shlibpath_overrides_runpath" = yes ||
17750      test "$enable_shared" = no; then
17751   # Fast installation is not necessary
17752   enable_fast_install=needless
17753 fi
17754
17755
17756 # The else clause should only fire when bootstrapping the
17757 # libtool distribution, otherwise you forgot to ship ltmain.sh
17758 # with your package, and you will get complaints that there are
17759 # no rules to generate ltmain.sh.
17760 if test -f "$ltmain"; then
17761   # See if we are running on zsh, and set the options which allow our commands through
17762   # without removal of \ escapes.
17763   if test -n "${ZSH_VERSION+set}" ; then
17764     setopt NO_GLOB_SUBST
17765   fi
17766   # Now quote all the things that may contain metacharacters while being
17767   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17768   # variables and quote the copies for generation of the libtool script.
17769   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17770     SED SHELL STRIP \
17771     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17772     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17773     deplibs_check_method reload_flag reload_cmds need_locks \
17774     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17775     lt_cv_sys_global_symbol_to_c_name_address \
17776     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17777     old_postinstall_cmds old_postuninstall_cmds \
17778     compiler_GCJ \
17779     CC_GCJ \
17780     LD_GCJ \
17781     lt_prog_compiler_wl_GCJ \
17782     lt_prog_compiler_pic_GCJ \
17783     lt_prog_compiler_static_GCJ \
17784     lt_prog_compiler_no_builtin_flag_GCJ \
17785     export_dynamic_flag_spec_GCJ \
17786     thread_safe_flag_spec_GCJ \
17787     whole_archive_flag_spec_GCJ \
17788     enable_shared_with_static_runtimes_GCJ \
17789     old_archive_cmds_GCJ \
17790     old_archive_from_new_cmds_GCJ \
17791     predep_objects_GCJ \
17792     postdep_objects_GCJ \
17793     predeps_GCJ \
17794     postdeps_GCJ \
17795     compiler_lib_search_path_GCJ \
17796     archive_cmds_GCJ \
17797     archive_expsym_cmds_GCJ \
17798     postinstall_cmds_GCJ \
17799     postuninstall_cmds_GCJ \
17800     old_archive_from_expsyms_cmds_GCJ \
17801     allow_undefined_flag_GCJ \
17802     no_undefined_flag_GCJ \
17803     export_symbols_cmds_GCJ \
17804     hardcode_libdir_flag_spec_GCJ \
17805     hardcode_libdir_flag_spec_ld_GCJ \
17806     hardcode_libdir_separator_GCJ \
17807     hardcode_automatic_GCJ \
17808     module_cmds_GCJ \
17809     module_expsym_cmds_GCJ \
17810     lt_cv_prog_compiler_c_o_GCJ \
17811     fix_srcfile_path_GCJ \
17812     exclude_expsyms_GCJ \
17813     include_expsyms_GCJ; do
17814
17815     case $var in
17816     old_archive_cmds_GCJ | \
17817     old_archive_from_new_cmds_GCJ | \
17818     archive_cmds_GCJ | \
17819     archive_expsym_cmds_GCJ | \
17820     module_cmds_GCJ | \
17821     module_expsym_cmds_GCJ | \
17822     old_archive_from_expsyms_cmds_GCJ | \
17823     export_symbols_cmds_GCJ | \
17824     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17825     postinstall_cmds | postuninstall_cmds | \
17826     old_postinstall_cmds | old_postuninstall_cmds | \
17827     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17828       # Double-quote double-evaled strings.
17829       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17830       ;;
17831     *)
17832       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17833       ;;
17834     esac
17835   done
17836
17837   case $lt_echo in
17838   *'\$0 --fallback-echo"')
17839     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17840     ;;
17841   esac
17842
17843 cfgfile="$ofile"
17844
17845   cat <<__EOF__ >> "$cfgfile"
17846 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17847
17848 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17849
17850 # Shell to use when invoking shell scripts.
17851 SHELL=$lt_SHELL
17852
17853 # Whether or not to build shared libraries.
17854 build_libtool_libs=$enable_shared
17855
17856 # Whether or not to build static libraries.
17857 build_old_libs=$enable_static
17858
17859 # Whether or not to add -lc for building shared libraries.
17860 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17861
17862 # Whether or not to disallow shared libs when runtime libs are static
17863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17864
17865 # Whether or not to optimize for fast installation.
17866 fast_install=$enable_fast_install
17867
17868 # The host system.
17869 host_alias=$host_alias
17870 host=$host
17871 host_os=$host_os
17872
17873 # The build system.
17874 build_alias=$build_alias
17875 build=$build
17876 build_os=$build_os
17877
17878 # An echo program that does not interpret backslashes.
17879 echo=$lt_echo
17880
17881 # The archiver.
17882 AR=$lt_AR
17883 AR_FLAGS=$lt_AR_FLAGS
17884
17885 # A C compiler.
17886 LTCC=$lt_LTCC
17887
17888 # LTCC compiler flags.
17889 LTCFLAGS=$lt_LTCFLAGS
17890
17891 # A language-specific compiler.
17892 CC=$lt_compiler_GCJ
17893
17894 # Is the compiler the GNU C compiler?
17895 with_gcc=$GCC_GCJ
17896
17897 # An ERE matcher.
17898 EGREP=$lt_EGREP
17899
17900 # The linker used to build libraries.
17901 LD=$lt_LD_GCJ
17902
17903 # Whether we need hard or soft links.
17904 LN_S=$lt_LN_S
17905
17906 # A BSD-compatible nm program.
17907 NM=$lt_NM
17908
17909 # A symbol stripping program
17910 STRIP=$lt_STRIP
17911
17912 # Used to examine libraries when file_magic_cmd begins "file"
17913 MAGIC_CMD=$MAGIC_CMD
17914
17915 # Used on cygwin: DLL creation program.
17916 DLLTOOL="$DLLTOOL"
17917
17918 # Used on cygwin: object dumper.
17919 OBJDUMP="$OBJDUMP"
17920
17921 # Used on cygwin: assembler.
17922 AS="$AS"
17923
17924 # The name of the directory that contains temporary libtool files.
17925 objdir=$objdir
17926
17927 # How to create reloadable object files.
17928 reload_flag=$lt_reload_flag
17929 reload_cmds=$lt_reload_cmds
17930
17931 # How to pass a linker flag through the compiler.
17932 wl=$lt_lt_prog_compiler_wl_GCJ
17933
17934 # Object file suffix (normally "o").
17935 objext="$ac_objext"
17936
17937 # Old archive suffix (normally "a").
17938 libext="$libext"
17939
17940 # Shared library suffix (normally ".so").
17941 shrext_cmds='$shrext_cmds'
17942
17943 # Executable file suffix (normally "").
17944 exeext="$exeext"
17945
17946 # Additional compiler flags for building library objects.
17947 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17948 pic_mode=$pic_mode
17949
17950 # What is the maximum length of a command?
17951 max_cmd_len=$lt_cv_sys_max_cmd_len
17952
17953 # Does compiler simultaneously support -c and -o options?
17954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17955
17956 # Must we lock files when doing compilation?
17957 need_locks=$lt_need_locks
17958
17959 # Do we need the lib prefix for modules?
17960 need_lib_prefix=$need_lib_prefix
17961
17962 # Do we need a version for libraries?
17963 need_version=$need_version
17964
17965 # Whether dlopen is supported.
17966 dlopen_support=$enable_dlopen
17967
17968 # Whether dlopen of programs is supported.
17969 dlopen_self=$enable_dlopen_self
17970
17971 # Whether dlopen of statically linked programs is supported.
17972 dlopen_self_static=$enable_dlopen_self_static
17973
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17976
17977 # Compiler flag to turn off builtin functions.
17978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17979
17980 # Compiler flag to allow reflexive dlopens.
17981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17982
17983 # Compiler flag to generate shared objects directly from archives.
17984 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17985
17986 # Compiler flag to generate thread-safe objects.
17987 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17988
17989 # Library versioning type.
17990 version_type=$version_type
17991
17992 # Format of library name prefix.
17993 libname_spec=$lt_libname_spec
17994
17995 # List of archive names.  First name is the real one, the rest are links.
17996 # The last name is the one that the linker finds with -lNAME.
17997 library_names_spec=$lt_library_names_spec
17998
17999 # The coded name of the library, if different from the real name.
18000 soname_spec=$lt_soname_spec
18001
18002 # Commands used to build and install an old-style archive.
18003 RANLIB=$lt_RANLIB
18004 old_archive_cmds=$lt_old_archive_cmds_GCJ
18005 old_postinstall_cmds=$lt_old_postinstall_cmds
18006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18007
18008 # Create an old-style archive from a shared archive.
18009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18010
18011 # Create a temporary old-style archive to link instead of a shared archive.
18012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18013
18014 # Commands used to build and install a shared archive.
18015 archive_cmds=$lt_archive_cmds_GCJ
18016 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18017 postinstall_cmds=$lt_postinstall_cmds
18018 postuninstall_cmds=$lt_postuninstall_cmds
18019
18020 # Commands used to build a loadable module (assumed same as above if empty)
18021 module_cmds=$lt_module_cmds_GCJ
18022 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18023
18024 # Commands to strip libraries.
18025 old_striplib=$lt_old_striplib
18026 striplib=$lt_striplib
18027
18028 # Dependencies to place before the objects being linked to create a
18029 # shared library.
18030 predep_objects=$lt_predep_objects_GCJ
18031
18032 # Dependencies to place after the objects being linked to create a
18033 # shared library.
18034 postdep_objects=$lt_postdep_objects_GCJ
18035
18036 # Dependencies to place before the objects being linked to create a
18037 # shared library.
18038 predeps=$lt_predeps_GCJ
18039
18040 # Dependencies to place after the objects being linked to create a
18041 # shared library.
18042 postdeps=$lt_postdeps_GCJ
18043
18044 # The library search path used internally by the compiler when linking
18045 # a shared library.
18046 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18047
18048 # Method to check whether dependent libraries are shared objects.
18049 deplibs_check_method=$lt_deplibs_check_method
18050
18051 # Command to use when deplibs_check_method == file_magic.
18052 file_magic_cmd=$lt_file_magic_cmd
18053
18054 # Flag that allows shared libraries with undefined symbols to be built.
18055 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18056
18057 # Flag that forces no undefined symbols.
18058 no_undefined_flag=$lt_no_undefined_flag_GCJ
18059
18060 # Commands used to finish a libtool library installation in a directory.
18061 finish_cmds=$lt_finish_cmds
18062
18063 # Same as above, but a single script fragment to be evaled but not shown.
18064 finish_eval=$lt_finish_eval
18065
18066 # Take the output of nm and produce a listing of raw symbols and C names.
18067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18068
18069 # Transform the output of nm in a proper C declaration
18070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18071
18072 # Transform the output of nm in a C name address pair
18073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18074
18075 # This is the shared library runtime path variable.
18076 runpath_var=$runpath_var
18077
18078 # This is the shared library path variable.
18079 shlibpath_var=$shlibpath_var
18080
18081 # Is shlibpath searched before the hard-coded library search path?
18082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18083
18084 # How to hardcode a shared library path into an executable.
18085 hardcode_action=$hardcode_action_GCJ
18086
18087 # Whether we should hardcode library paths into libraries.
18088 hardcode_into_libs=$hardcode_into_libs
18089
18090 # Flag to hardcode \$libdir into a binary during linking.
18091 # This must work even if \$libdir does not exist.
18092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18093
18094 # If ld is used when linking, flag to hardcode \$libdir into
18095 # a binary during linking. This must work even if \$libdir does
18096 # not exist.
18097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18098
18099 # Whether we need a single -rpath flag with a separated argument.
18100 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18101
18102 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18103 # resulting binary.
18104 hardcode_direct=$hardcode_direct_GCJ
18105
18106 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18107 # resulting binary.
18108 hardcode_minus_L=$hardcode_minus_L_GCJ
18109
18110 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18111 # the resulting binary.
18112 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18113
18114 # Set to yes if building a shared library automatically hardcodes DIR into the library
18115 # and all subsequent libraries and executables linked against it.
18116 hardcode_automatic=$hardcode_automatic_GCJ
18117
18118 # Variables whose values should be saved in libtool wrapper scripts and
18119 # restored at relink time.
18120 variables_saved_for_relink="$variables_saved_for_relink"
18121
18122 # Whether libtool must link a program against all its dependency libraries.
18123 link_all_deplibs=$link_all_deplibs_GCJ
18124
18125 # Compile-time system search path for libraries
18126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18127
18128 # Run-time system search path for libraries
18129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18130
18131 # Fix the shell variable \$srcfile for the compiler.
18132 fix_srcfile_path=$lt_fix_srcfile_path
18133
18134 # Set to yes if exported symbols are required.
18135 always_export_symbols=$always_export_symbols_GCJ
18136
18137 # The commands to list exported symbols.
18138 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18139
18140 # The commands to extract the exported symbol list from a shared archive.
18141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18142
18143 # Symbols that should not be listed in the preloaded symbols.
18144 exclude_expsyms=$lt_exclude_expsyms_GCJ
18145
18146 # Symbols that must always be exported.
18147 include_expsyms=$lt_include_expsyms_GCJ
18148
18149 # ### END LIBTOOL TAG CONFIG: $tagname
18150
18151 __EOF__
18152
18153
18154 else
18155   # If there is no Makefile yet, we rely on a make rule to execute
18156   # `config.status --recheck' to rerun these tests and create the
18157   # libtool script then.
18158   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18159   if test -f "$ltmain_in"; then
18160     test -f Makefile && make "$ltmain"
18161   fi
18162 fi
18163
18164
18165 ac_ext=c
18166 ac_cpp='$CPP $CPPFLAGS'
18167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18170
18171 CC="$lt_save_CC"
18172
18173         else
18174           tagname=""
18175         fi
18176         ;;
18177
18178       RC)
18179
18180
18181 # Source file extension for RC test sources.
18182 ac_ext=rc
18183
18184 # Object file extension for compiled RC test sources.
18185 objext=o
18186 objext_RC=$objext
18187
18188 # Code to be used in simple compile tests
18189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18190
18191 # Code to be used in simple link tests
18192 lt_simple_link_test_code="$lt_simple_compile_test_code"
18193
18194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18195
18196 # If no C compiler was specified, use CC.
18197 LTCC=${LTCC-"$CC"}
18198
18199 # If no C compiler flags were specified, use CFLAGS.
18200 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18201
18202 # Allow CC to be a program name with arguments.
18203 compiler=$CC
18204
18205
18206 # save warnings/boilerplate of simple test code
18207 ac_outfile=conftest.$ac_objext
18208 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18209 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18210 _lt_compiler_boilerplate=`cat conftest.err`
18211 $rm conftest*
18212
18213 ac_outfile=conftest.$ac_objext
18214 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18215 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18216 _lt_linker_boilerplate=`cat conftest.err`
18217 $rm conftest*
18218
18219
18220 # Allow CC to be a program name with arguments.
18221 lt_save_CC="$CC"
18222 CC=${RC-"windres"}
18223 compiler=$CC
18224 compiler_RC=$CC
18225 for cc_temp in $compiler""; do
18226   case $cc_temp in
18227     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18228     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18229     \-*) ;;
18230     *) break;;
18231   esac
18232 done
18233 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18234
18235 lt_cv_prog_compiler_c_o_RC=yes
18236
18237 # The else clause should only fire when bootstrapping the
18238 # libtool distribution, otherwise you forgot to ship ltmain.sh
18239 # with your package, and you will get complaints that there are
18240 # no rules to generate ltmain.sh.
18241 if test -f "$ltmain"; then
18242   # See if we are running on zsh, and set the options which allow our commands through
18243   # without removal of \ escapes.
18244   if test -n "${ZSH_VERSION+set}" ; then
18245     setopt NO_GLOB_SUBST
18246   fi
18247   # Now quote all the things that may contain metacharacters while being
18248   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18249   # variables and quote the copies for generation of the libtool script.
18250   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18251     SED SHELL STRIP \
18252     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18253     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18254     deplibs_check_method reload_flag reload_cmds need_locks \
18255     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18256     lt_cv_sys_global_symbol_to_c_name_address \
18257     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18258     old_postinstall_cmds old_postuninstall_cmds \
18259     compiler_RC \
18260     CC_RC \
18261     LD_RC \
18262     lt_prog_compiler_wl_RC \
18263     lt_prog_compiler_pic_RC \
18264     lt_prog_compiler_static_RC \
18265     lt_prog_compiler_no_builtin_flag_RC \
18266     export_dynamic_flag_spec_RC \
18267     thread_safe_flag_spec_RC \
18268     whole_archive_flag_spec_RC \
18269     enable_shared_with_static_runtimes_RC \
18270     old_archive_cmds_RC \
18271     old_archive_from_new_cmds_RC \
18272     predep_objects_RC \
18273     postdep_objects_RC \
18274     predeps_RC \
18275     postdeps_RC \
18276     compiler_lib_search_path_RC \
18277     archive_cmds_RC \
18278     archive_expsym_cmds_RC \
18279     postinstall_cmds_RC \
18280     postuninstall_cmds_RC \
18281     old_archive_from_expsyms_cmds_RC \
18282     allow_undefined_flag_RC \
18283     no_undefined_flag_RC \
18284     export_symbols_cmds_RC \
18285     hardcode_libdir_flag_spec_RC \
18286     hardcode_libdir_flag_spec_ld_RC \
18287     hardcode_libdir_separator_RC \
18288     hardcode_automatic_RC \
18289     module_cmds_RC \
18290     module_expsym_cmds_RC \
18291     lt_cv_prog_compiler_c_o_RC \
18292     fix_srcfile_path_RC \
18293     exclude_expsyms_RC \
18294     include_expsyms_RC; do
18295
18296     case $var in
18297     old_archive_cmds_RC | \
18298     old_archive_from_new_cmds_RC | \
18299     archive_cmds_RC | \
18300     archive_expsym_cmds_RC | \
18301     module_cmds_RC | \
18302     module_expsym_cmds_RC | \
18303     old_archive_from_expsyms_cmds_RC | \
18304     export_symbols_cmds_RC | \
18305     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18306     postinstall_cmds | postuninstall_cmds | \
18307     old_postinstall_cmds | old_postuninstall_cmds | \
18308     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18309       # Double-quote double-evaled strings.
18310       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18311       ;;
18312     *)
18313       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18314       ;;
18315     esac
18316   done
18317
18318   case $lt_echo in
18319   *'\$0 --fallback-echo"')
18320     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18321     ;;
18322   esac
18323
18324 cfgfile="$ofile"
18325
18326   cat <<__EOF__ >> "$cfgfile"
18327 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18328
18329 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18330
18331 # Shell to use when invoking shell scripts.
18332 SHELL=$lt_SHELL
18333
18334 # Whether or not to build shared libraries.
18335 build_libtool_libs=$enable_shared
18336
18337 # Whether or not to build static libraries.
18338 build_old_libs=$enable_static
18339
18340 # Whether or not to add -lc for building shared libraries.
18341 build_libtool_need_lc=$archive_cmds_need_lc_RC
18342
18343 # Whether or not to disallow shared libs when runtime libs are static
18344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18345
18346 # Whether or not to optimize for fast installation.
18347 fast_install=$enable_fast_install
18348
18349 # The host system.
18350 host_alias=$host_alias
18351 host=$host
18352 host_os=$host_os
18353
18354 # The build system.
18355 build_alias=$build_alias
18356 build=$build
18357 build_os=$build_os
18358
18359 # An echo program that does not interpret backslashes.
18360 echo=$lt_echo
18361
18362 # The archiver.
18363 AR=$lt_AR
18364 AR_FLAGS=$lt_AR_FLAGS
18365
18366 # A C compiler.
18367 LTCC=$lt_LTCC
18368
18369 # LTCC compiler flags.
18370 LTCFLAGS=$lt_LTCFLAGS
18371
18372 # A language-specific compiler.
18373 CC=$lt_compiler_RC
18374
18375 # Is the compiler the GNU C compiler?
18376 with_gcc=$GCC_RC
18377
18378 # An ERE matcher.
18379 EGREP=$lt_EGREP
18380
18381 # The linker used to build libraries.
18382 LD=$lt_LD_RC
18383
18384 # Whether we need hard or soft links.
18385 LN_S=$lt_LN_S
18386
18387 # A BSD-compatible nm program.
18388 NM=$lt_NM
18389
18390 # A symbol stripping program
18391 STRIP=$lt_STRIP
18392
18393 # Used to examine libraries when file_magic_cmd begins "file"
18394 MAGIC_CMD=$MAGIC_CMD
18395
18396 # Used on cygwin: DLL creation program.
18397 DLLTOOL="$DLLTOOL"
18398
18399 # Used on cygwin: object dumper.
18400 OBJDUMP="$OBJDUMP"
18401
18402 # Used on cygwin: assembler.
18403 AS="$AS"
18404
18405 # The name of the directory that contains temporary libtool files.
18406 objdir=$objdir
18407
18408 # How to create reloadable object files.
18409 reload_flag=$lt_reload_flag
18410 reload_cmds=$lt_reload_cmds
18411
18412 # How to pass a linker flag through the compiler.
18413 wl=$lt_lt_prog_compiler_wl_RC
18414
18415 # Object file suffix (normally "o").
18416 objext="$ac_objext"
18417
18418 # Old archive suffix (normally "a").
18419 libext="$libext"
18420
18421 # Shared library suffix (normally ".so").
18422 shrext_cmds='$shrext_cmds'
18423
18424 # Executable file suffix (normally "").
18425 exeext="$exeext"
18426
18427 # Additional compiler flags for building library objects.
18428 pic_flag=$lt_lt_prog_compiler_pic_RC
18429 pic_mode=$pic_mode
18430
18431 # What is the maximum length of a command?
18432 max_cmd_len=$lt_cv_sys_max_cmd_len
18433
18434 # Does compiler simultaneously support -c and -o options?
18435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18436
18437 # Must we lock files when doing compilation?
18438 need_locks=$lt_need_locks
18439
18440 # Do we need the lib prefix for modules?
18441 need_lib_prefix=$need_lib_prefix
18442
18443 # Do we need a version for libraries?
18444 need_version=$need_version
18445
18446 # Whether dlopen is supported.
18447 dlopen_support=$enable_dlopen
18448
18449 # Whether dlopen of programs is supported.
18450 dlopen_self=$enable_dlopen_self
18451
18452 # Whether dlopen of statically linked programs is supported.
18453 dlopen_self_static=$enable_dlopen_self_static
18454
18455 # Compiler flag to prevent dynamic linking.
18456 link_static_flag=$lt_lt_prog_compiler_static_RC
18457
18458 # Compiler flag to turn off builtin functions.
18459 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18460
18461 # Compiler flag to allow reflexive dlopens.
18462 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18463
18464 # Compiler flag to generate shared objects directly from archives.
18465 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18466
18467 # Compiler flag to generate thread-safe objects.
18468 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18469
18470 # Library versioning type.
18471 version_type=$version_type
18472
18473 # Format of library name prefix.
18474 libname_spec=$lt_libname_spec
18475
18476 # List of archive names.  First name is the real one, the rest are links.
18477 # The last name is the one that the linker finds with -lNAME.
18478 library_names_spec=$lt_library_names_spec
18479
18480 # The coded name of the library, if different from the real name.
18481 soname_spec=$lt_soname_spec
18482
18483 # Commands used to build and install an old-style archive.
18484 RANLIB=$lt_RANLIB
18485 old_archive_cmds=$lt_old_archive_cmds_RC
18486 old_postinstall_cmds=$lt_old_postinstall_cmds
18487 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18488
18489 # Create an old-style archive from a shared archive.
18490 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18491
18492 # Create a temporary old-style archive to link instead of a shared archive.
18493 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18494
18495 # Commands used to build and install a shared archive.
18496 archive_cmds=$lt_archive_cmds_RC
18497 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18498 postinstall_cmds=$lt_postinstall_cmds
18499 postuninstall_cmds=$lt_postuninstall_cmds
18500
18501 # Commands used to build a loadable module (assumed same as above if empty)
18502 module_cmds=$lt_module_cmds_RC
18503 module_expsym_cmds=$lt_module_expsym_cmds_RC
18504
18505 # Commands to strip libraries.
18506 old_striplib=$lt_old_striplib
18507 striplib=$lt_striplib
18508
18509 # Dependencies to place before the objects being linked to create a
18510 # shared library.
18511 predep_objects=$lt_predep_objects_RC
18512
18513 # Dependencies to place after the objects being linked to create a
18514 # shared library.
18515 postdep_objects=$lt_postdep_objects_RC
18516
18517 # Dependencies to place before the objects being linked to create a
18518 # shared library.
18519 predeps=$lt_predeps_RC
18520
18521 # Dependencies to place after the objects being linked to create a
18522 # shared library.
18523 postdeps=$lt_postdeps_RC
18524
18525 # The library search path used internally by the compiler when linking
18526 # a shared library.
18527 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18528
18529 # Method to check whether dependent libraries are shared objects.
18530 deplibs_check_method=$lt_deplibs_check_method
18531
18532 # Command to use when deplibs_check_method == file_magic.
18533 file_magic_cmd=$lt_file_magic_cmd
18534
18535 # Flag that allows shared libraries with undefined symbols to be built.
18536 allow_undefined_flag=$lt_allow_undefined_flag_RC
18537
18538 # Flag that forces no undefined symbols.
18539 no_undefined_flag=$lt_no_undefined_flag_RC
18540
18541 # Commands used to finish a libtool library installation in a directory.
18542 finish_cmds=$lt_finish_cmds
18543
18544 # Same as above, but a single script fragment to be evaled but not shown.
18545 finish_eval=$lt_finish_eval
18546
18547 # Take the output of nm and produce a listing of raw symbols and C names.
18548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18549
18550 # Transform the output of nm in a proper C declaration
18551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18552
18553 # Transform the output of nm in a C name address pair
18554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18555
18556 # This is the shared library runtime path variable.
18557 runpath_var=$runpath_var
18558
18559 # This is the shared library path variable.
18560 shlibpath_var=$shlibpath_var
18561
18562 # Is shlibpath searched before the hard-coded library search path?
18563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18564
18565 # How to hardcode a shared library path into an executable.
18566 hardcode_action=$hardcode_action_RC
18567
18568 # Whether we should hardcode library paths into libraries.
18569 hardcode_into_libs=$hardcode_into_libs
18570
18571 # Flag to hardcode \$libdir into a binary during linking.
18572 # This must work even if \$libdir does not exist.
18573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18574
18575 # If ld is used when linking, flag to hardcode \$libdir into
18576 # a binary during linking. This must work even if \$libdir does
18577 # not exist.
18578 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18579
18580 # Whether we need a single -rpath flag with a separated argument.
18581 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18582
18583 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18584 # resulting binary.
18585 hardcode_direct=$hardcode_direct_RC
18586
18587 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18588 # resulting binary.
18589 hardcode_minus_L=$hardcode_minus_L_RC
18590
18591 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18592 # the resulting binary.
18593 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18594
18595 # Set to yes if building a shared library automatically hardcodes DIR into the library
18596 # and all subsequent libraries and executables linked against it.
18597 hardcode_automatic=$hardcode_automatic_RC
18598
18599 # Variables whose values should be saved in libtool wrapper scripts and
18600 # restored at relink time.
18601 variables_saved_for_relink="$variables_saved_for_relink"
18602
18603 # Whether libtool must link a program against all its dependency libraries.
18604 link_all_deplibs=$link_all_deplibs_RC
18605
18606 # Compile-time system search path for libraries
18607 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18608
18609 # Run-time system search path for libraries
18610 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18611
18612 # Fix the shell variable \$srcfile for the compiler.
18613 fix_srcfile_path=$lt_fix_srcfile_path
18614
18615 # Set to yes if exported symbols are required.
18616 always_export_symbols=$always_export_symbols_RC
18617
18618 # The commands to list exported symbols.
18619 export_symbols_cmds=$lt_export_symbols_cmds_RC
18620
18621 # The commands to extract the exported symbol list from a shared archive.
18622 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18623
18624 # Symbols that should not be listed in the preloaded symbols.
18625 exclude_expsyms=$lt_exclude_expsyms_RC
18626
18627 # Symbols that must always be exported.
18628 include_expsyms=$lt_include_expsyms_RC
18629
18630 # ### END LIBTOOL TAG CONFIG: $tagname
18631
18632 __EOF__
18633
18634
18635 else
18636   # If there is no Makefile yet, we rely on a make rule to execute
18637   # `config.status --recheck' to rerun these tests and create the
18638   # libtool script then.
18639   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18640   if test -f "$ltmain_in"; then
18641     test -f Makefile && make "$ltmain"
18642   fi
18643 fi
18644
18645
18646 ac_ext=c
18647 ac_cpp='$CPP $CPPFLAGS'
18648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18651
18652 CC="$lt_save_CC"
18653
18654         ;;
18655
18656       *)
18657         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18658 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18659    { (exit 1); exit 1; }; }
18660         ;;
18661       esac
18662
18663       # Append the new tag name to the list of available tags.
18664       if test -n "$tagname" ; then
18665       available_tags="$available_tags $tagname"
18666     fi
18667     fi
18668   done
18669   IFS="$lt_save_ifs"
18670
18671   # Now substitute the updated list of available tags.
18672   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18673     mv "${ofile}T" "$ofile"
18674     chmod +x "$ofile"
18675   else
18676     rm -f "${ofile}T"
18677     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18678 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18679    { (exit 1); exit 1; }; }
18680   fi
18681 fi
18682
18683
18684
18685 # This can be used to rebuild libtool when needed
18686 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18687
18688 # Always use our own libtool.
18689 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18690
18691 # Prevent multiple expansion
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713 am__api_version='1.10'
18714
18715 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18716 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
18717 # Just in case
18718 sleep 1
18719 echo timestamp > conftest.file
18720 # Do `set' in a subshell so we don't clobber the current shell's
18721 # arguments.  Must try -L first in case configure is actually a
18722 # symlink; some systems play weird games with the mod time of symlinks
18723 # (eg FreeBSD returns the mod time of the symlink's containing
18724 # directory).
18725 if (
18726    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18727    if test "$*" = "X"; then
18728       # -L didn't work.
18729       set X `ls -t $srcdir/configure conftest.file`
18730    fi
18731    rm -f conftest.file
18732    if test "$*" != "X $srcdir/configure conftest.file" \
18733       && test "$*" != "X conftest.file $srcdir/configure"; then
18734
18735       # If neither matched, then we have a broken ls.  This can happen
18736       # if, for instance, CONFIG_SHELL is bash and it inherits a
18737       # broken ls alias from the environment.  This has actually
18738       # happened.  Such a system could not be considered "sane".
18739       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
18740 alias in your environment" >&5
18741 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
18742 alias in your environment" >&2;}
18743    { (exit 1); exit 1; }; }
18744    fi
18745
18746    test "$2" = conftest.file
18747    )
18748 then
18749    # Ok.
18750    :
18751 else
18752    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18753 Check your system clock" >&5
18754 echo "$as_me: error: newly created file is older than distributed files!
18755 Check your system clock" >&2;}
18756    { (exit 1); exit 1; }; }
18757 fi
18758 { echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6; }
18760 test "$program_prefix" != NONE &&
18761   program_transform_name="s&^&$program_prefix&;$program_transform_name"
18762 # Use a double $ so make ignores it.
18763 test "$program_suffix" != NONE &&
18764   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18765 # Double any \ or $.  echo might interpret backslashes.
18766 # By default was `s,x,x', remove it if useless.
18767 cat <<\_ACEOF >conftest.sed
18768 s/[\\$]/&&/g;s/;s,x,x,$//
18769 _ACEOF
18770 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18771 rm -f conftest.sed
18772
18773 # expand $ac_aux_dir to an absolute path
18774 am_aux_dir=`cd $ac_aux_dir && pwd`
18775
18776 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18777 # Use eval to expand $SHELL
18778 if eval "$MISSING --run true"; then
18779   am_missing_run="$MISSING --run "
18780 else
18781   am_missing_run=
18782   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18783 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18784 fi
18785
18786 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18787 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
18788 if test -z "$MKDIR_P"; then
18789   if test "${ac_cv_path_mkdir+set}" = set; then
18790   echo $ECHO_N "(cached) $ECHO_C" >&6
18791 else
18792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18794 do
18795   IFS=$as_save_IFS
18796   test -z "$as_dir" && as_dir=.
18797   for ac_prog in mkdir gmkdir; do
18798          for ac_exec_ext in '' $ac_executable_extensions; do
18799            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18800            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18801              'mkdir (GNU coreutils) '* | \
18802              'mkdir (coreutils) '* | \
18803              'mkdir (fileutils) '4.1*)
18804                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18805                break 3;;
18806            esac
18807          done
18808        done
18809 done
18810 IFS=$as_save_IFS
18811
18812 fi
18813
18814   if test "${ac_cv_path_mkdir+set}" = set; then
18815     MKDIR_P="$ac_cv_path_mkdir -p"
18816   else
18817     # As a last resort, use the slow shell script.  Don't cache a
18818     # value for MKDIR_P within a source directory, because that will
18819     # break other packages using the cache if that directory is
18820     # removed, or if the value is a relative name.
18821     test -d ./--version && rmdir ./--version
18822     MKDIR_P="$ac_install_sh -d"
18823   fi
18824 fi
18825 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18826 echo "${ECHO_T}$MKDIR_P" >&6; }
18827
18828 mkdir_p="$MKDIR_P"
18829 case $mkdir_p in
18830   [\\/$]* | ?:[\\/]*) ;;
18831   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18832 esac
18833
18834 for ac_prog in gawk mawk nawk awk
18835 do
18836   # Extract the first word of "$ac_prog", so it can be a program name with args.
18837 set dummy $ac_prog; ac_word=$2
18838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18840 if test "${ac_cv_prog_AWK+set}" = set; then
18841   echo $ECHO_N "(cached) $ECHO_C" >&6
18842 else
18843   if test -n "$AWK"; then
18844   ac_cv_prog_AWK="$AWK" # Let the user override the test.
18845 else
18846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18847 for as_dir in $PATH
18848 do
18849   IFS=$as_save_IFS
18850   test -z "$as_dir" && as_dir=.
18851   for ac_exec_ext in '' $ac_executable_extensions; do
18852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18853     ac_cv_prog_AWK="$ac_prog"
18854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18855     break 2
18856   fi
18857 done
18858 done
18859 IFS=$as_save_IFS
18860
18861 fi
18862 fi
18863 AWK=$ac_cv_prog_AWK
18864 if test -n "$AWK"; then
18865   { echo "$as_me:$LINENO: result: $AWK" >&5
18866 echo "${ECHO_T}$AWK" >&6; }
18867 else
18868   { echo "$as_me:$LINENO: result: no" >&5
18869 echo "${ECHO_T}no" >&6; }
18870 fi
18871
18872
18873   test -n "$AWK" && break
18874 done
18875
18876 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18877 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
18878 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18879 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
18880   echo $ECHO_N "(cached) $ECHO_C" >&6
18881 else
18882   cat >conftest.make <<\_ACEOF
18883 SHELL = /bin/sh
18884 all:
18885         @echo '@@@%%%=$(MAKE)=@@@%%%'
18886 _ACEOF
18887 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18889   *@@@%%%=?*=@@@%%%*)
18890     eval ac_cv_prog_make_${ac_make}_set=yes;;
18891   *)
18892     eval ac_cv_prog_make_${ac_make}_set=no;;
18893 esac
18894 rm -f conftest.make
18895 fi
18896 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18897   { echo "$as_me:$LINENO: result: yes" >&5
18898 echo "${ECHO_T}yes" >&6; }
18899   SET_MAKE=
18900 else
18901   { echo "$as_me:$LINENO: result: no" >&5
18902 echo "${ECHO_T}no" >&6; }
18903   SET_MAKE="MAKE=${MAKE-make}"
18904 fi
18905
18906 rm -rf .tst 2>/dev/null
18907 mkdir .tst 2>/dev/null
18908 if test -d .tst; then
18909   am__leading_dot=.
18910 else
18911   am__leading_dot=_
18912 fi
18913 rmdir .tst 2>/dev/null
18914
18915 DEPDIR="${am__leading_dot}deps"
18916
18917 ac_config_commands="$ac_config_commands depfiles"
18918
18919
18920 am_make=${MAKE-make}
18921 cat > confinc << 'END'
18922 am__doit:
18923         @echo done
18924 .PHONY: am__doit
18925 END
18926 # If we don't find an include directive, just comment out the code.
18927 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18928 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
18929 am__include="#"
18930 am__quote=
18931 _am_result=none
18932 # First try GNU make style include.
18933 echo "include confinc" > confmf
18934 # We grep out `Entering directory' and `Leaving directory'
18935 # messages which can occur if `w' ends up in MAKEFLAGS.
18936 # In particular we don't look at `^make:' because GNU make might
18937 # be invoked under some other name (usually "gmake"), in which
18938 # case it prints its new name instead of `make'.
18939 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18940    am__include=include
18941    am__quote=
18942    _am_result=GNU
18943 fi
18944 # Now try BSD make style include.
18945 if test "$am__include" = "#"; then
18946    echo '.include "confinc"' > confmf
18947    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18948       am__include=.include
18949       am__quote="\""
18950       _am_result=BSD
18951    fi
18952 fi
18953
18954
18955 { echo "$as_me:$LINENO: result: $_am_result" >&5
18956 echo "${ECHO_T}$_am_result" >&6; }
18957 rm -f confinc confmf
18958
18959 # Check whether --enable-dependency-tracking was given.
18960 if test "${enable_dependency_tracking+set}" = set; then
18961   enableval=$enable_dependency_tracking;
18962 fi
18963
18964 if test "x$enable_dependency_tracking" != xno; then
18965   am_depcomp="$ac_aux_dir/depcomp"
18966   AMDEPBACKSLASH='\'
18967 fi
18968  if test "x$enable_dependency_tracking" != xno; then
18969   AMDEP_TRUE=
18970   AMDEP_FALSE='#'
18971 else
18972   AMDEP_TRUE='#'
18973   AMDEP_FALSE=
18974 fi
18975
18976
18977 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18978   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18979   # is not polluted with repeated "-I."
18980   am__isrc=' -I$(srcdir)'
18981   # test to see if srcdir already configured
18982   if test -f $srcdir/config.status; then
18983     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18984 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18985    { (exit 1); exit 1; }; }
18986   fi
18987 fi
18988
18989 # test whether we have cygpath
18990 if test -z "$CYGPATH_W"; then
18991   if (cygpath --version) >/dev/null 2>/dev/null; then
18992     CYGPATH_W='cygpath -w'
18993   else
18994     CYGPATH_W=echo
18995   fi
18996 fi
18997
18998
18999 # Define the identity of the package.
19000  PACKAGE=OpenBSM
19001  VERSION=1.0
19002
19003
19004 cat >>confdefs.h <<_ACEOF
19005 #define PACKAGE "$PACKAGE"
19006 _ACEOF
19007
19008
19009 cat >>confdefs.h <<_ACEOF
19010 #define VERSION "$VERSION"
19011 _ACEOF
19012
19013 # Some tools Automake needs.
19014
19015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19016
19017
19018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19019
19020
19021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19022
19023
19024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19025
19026
19027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19028
19029 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
19030
19031 # Installed binaries are usually stripped using `strip' when the user
19032 # run `make install-strip'.  However `strip' might not be the right
19033 # tool to use in cross-compilation environments, therefore Automake
19034 # will honor the `STRIP' environment variable to overrule this program.
19035 if test "$cross_compiling" != no; then
19036   if test -n "$ac_tool_prefix"; then
19037   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19038 set dummy ${ac_tool_prefix}strip; ac_word=$2
19039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19041 if test "${ac_cv_prog_STRIP+set}" = set; then
19042   echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044   if test -n "$STRIP"; then
19045   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19046 else
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19049 do
19050   IFS=$as_save_IFS
19051   test -z "$as_dir" && as_dir=.
19052   for ac_exec_ext in '' $ac_executable_extensions; do
19053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19054     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19056     break 2
19057   fi
19058 done
19059 done
19060 IFS=$as_save_IFS
19061
19062 fi
19063 fi
19064 STRIP=$ac_cv_prog_STRIP
19065 if test -n "$STRIP"; then
19066   { echo "$as_me:$LINENO: result: $STRIP" >&5
19067 echo "${ECHO_T}$STRIP" >&6; }
19068 else
19069   { echo "$as_me:$LINENO: result: no" >&5
19070 echo "${ECHO_T}no" >&6; }
19071 fi
19072
19073
19074 fi
19075 if test -z "$ac_cv_prog_STRIP"; then
19076   ac_ct_STRIP=$STRIP
19077   # Extract the first word of "strip", so it can be a program name with args.
19078 set dummy strip; ac_word=$2
19079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19081 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19082   echo $ECHO_N "(cached) $ECHO_C" >&6
19083 else
19084   if test -n "$ac_ct_STRIP"; then
19085   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19086 else
19087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19088 for as_dir in $PATH
19089 do
19090   IFS=$as_save_IFS
19091   test -z "$as_dir" && as_dir=.
19092   for ac_exec_ext in '' $ac_executable_extensions; do
19093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19094     ac_cv_prog_ac_ct_STRIP="strip"
19095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19096     break 2
19097   fi
19098 done
19099 done
19100 IFS=$as_save_IFS
19101
19102 fi
19103 fi
19104 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19105 if test -n "$ac_ct_STRIP"; then
19106   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19107 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19108 else
19109   { echo "$as_me:$LINENO: result: no" >&5
19110 echo "${ECHO_T}no" >&6; }
19111 fi
19112
19113   if test "x$ac_ct_STRIP" = x; then
19114     STRIP=":"
19115   else
19116     case $cross_compiling:$ac_tool_warned in
19117 yes:)
19118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19119 whose name does not start with the host triplet.  If you think this
19120 configuration is useful to you, please write to autoconf@gnu.org." >&5
19121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19122 whose name does not start with the host triplet.  If you think this
19123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19124 ac_tool_warned=yes ;;
19125 esac
19126     STRIP=$ac_ct_STRIP
19127   fi
19128 else
19129   STRIP="$ac_cv_prog_STRIP"
19130 fi
19131
19132 fi
19133 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19134
19135 # We need awk for the "check" target.  The system "awk" is bad on
19136 # some platforms.
19137 # Always define AMTAR for backward compatibility.
19138
19139 AMTAR=${AMTAR-"${am_missing_run}tar"}
19140
19141 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19142
19143
19144
19145
19146 depcc="$CC"   am_compiler_list=
19147
19148 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19149 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19154   # We make a subdir and do the tests there.  Otherwise we can end up
19155   # making bogus files that we don't know about and never remove.  For
19156   # instance it was reported that on HP-UX the gcc test will end up
19157   # making a dummy file named `D' -- because `-MD' means `put the output
19158   # in D'.
19159   mkdir conftest.dir
19160   # Copy depcomp to subdir because otherwise we won't find it if we're
19161   # using a relative directory.
19162   cp "$am_depcomp" conftest.dir
19163   cd conftest.dir
19164   # We will build objects and dependencies in a subdirectory because
19165   # it helps to detect inapplicable dependency modes.  For instance
19166   # both Tru64's cc and ICC support -MD to output dependencies as a
19167   # side effect of compilation, but ICC will put the dependencies in
19168   # the current directory while Tru64 will put them in the object
19169   # directory.
19170   mkdir sub
19171
19172   am_cv_CC_dependencies_compiler_type=none
19173   if test "$am_compiler_list" = ""; then
19174      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19175   fi
19176   for depmode in $am_compiler_list; do
19177     # Setup a source with many dependencies, because some compilers
19178     # like to wrap large dependency lists on column 80 (with \), and
19179     # we should not choose a depcomp mode which is confused by this.
19180     #
19181     # We need to recreate these files for each test, as the compiler may
19182     # overwrite some of them when testing with obscure command lines.
19183     # This happens at least with the AIX C compiler.
19184     : > sub/conftest.c
19185     for i in 1 2 3 4 5 6; do
19186       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19187       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19188       # Solaris 8's {/usr,}/bin/sh.
19189       touch sub/conftst$i.h
19190     done
19191     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19192
19193     case $depmode in
19194     nosideeffect)
19195       # after this tag, mechanisms are not by side-effect, so they'll
19196       # only be used when explicitly requested
19197       if test "x$enable_dependency_tracking" = xyes; then
19198         continue
19199       else
19200         break
19201       fi
19202       ;;
19203     none) break ;;
19204     esac
19205     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19206     # mode.  It turns out that the SunPro C++ compiler does not properly
19207     # handle `-M -o', and we need to detect this.
19208     if depmode=$depmode \
19209        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19210        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19211        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19212          >/dev/null 2>conftest.err &&
19213        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19214        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19215        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19216        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19217       # icc doesn't choke on unknown options, it will just issue warnings
19218       # or remarks (even with -Werror).  So we grep stderr for any message
19219       # that says an option was ignored or not supported.
19220       # When given -MP, icc 7.0 and 7.1 complain thusly:
19221       #   icc: Command line warning: ignoring option '-M'; no argument required
19222       # The diagnosis changed in icc 8.0:
19223       #   icc: Command line remark: option '-MP' not supported
19224       if (grep 'ignoring option' conftest.err ||
19225           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19226         am_cv_CC_dependencies_compiler_type=$depmode
19227         break
19228       fi
19229     fi
19230   done
19231
19232   cd ..
19233   rm -rf conftest.dir
19234 else
19235   am_cv_CC_dependencies_compiler_type=none
19236 fi
19237
19238 fi
19239 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19240 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19241 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19242
19243  if
19244   test "x$enable_dependency_tracking" != xno \
19245   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19246   am__fastdepCC_TRUE=
19247   am__fastdepCC_FALSE='#'
19248 else
19249   am__fastdepCC_TRUE='#'
19250   am__fastdepCC_FALSE=
19251 fi
19252
19253
19254 depcc="$CXX"  am_compiler_list=
19255
19256 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19257 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19258 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19262   # We make a subdir and do the tests there.  Otherwise we can end up
19263   # making bogus files that we don't know about and never remove.  For
19264   # instance it was reported that on HP-UX the gcc test will end up
19265   # making a dummy file named `D' -- because `-MD' means `put the output
19266   # in D'.
19267   mkdir conftest.dir
19268   # Copy depcomp to subdir because otherwise we won't find it if we're
19269   # using a relative directory.
19270   cp "$am_depcomp" conftest.dir
19271   cd conftest.dir
19272   # We will build objects and dependencies in a subdirectory because
19273   # it helps to detect inapplicable dependency modes.  For instance
19274   # both Tru64's cc and ICC support -MD to output dependencies as a
19275   # side effect of compilation, but ICC will put the dependencies in
19276   # the current directory while Tru64 will put them in the object
19277   # directory.
19278   mkdir sub
19279
19280   am_cv_CXX_dependencies_compiler_type=none
19281   if test "$am_compiler_list" = ""; then
19282      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19283   fi
19284   for depmode in $am_compiler_list; do
19285     # Setup a source with many dependencies, because some compilers
19286     # like to wrap large dependency lists on column 80 (with \), and
19287     # we should not choose a depcomp mode which is confused by this.
19288     #
19289     # We need to recreate these files for each test, as the compiler may
19290     # overwrite some of them when testing with obscure command lines.
19291     # This happens at least with the AIX C compiler.
19292     : > sub/conftest.c
19293     for i in 1 2 3 4 5 6; do
19294       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19295       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19296       # Solaris 8's {/usr,}/bin/sh.
19297       touch sub/conftst$i.h
19298     done
19299     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19300
19301     case $depmode in
19302     nosideeffect)
19303       # after this tag, mechanisms are not by side-effect, so they'll
19304       # only be used when explicitly requested
19305       if test "x$enable_dependency_tracking" = xyes; then
19306         continue
19307       else
19308         break
19309       fi
19310       ;;
19311     none) break ;;
19312     esac
19313     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19314     # mode.  It turns out that the SunPro C++ compiler does not properly
19315     # handle `-M -o', and we need to detect this.
19316     if depmode=$depmode \
19317        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19318        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19319        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19320          >/dev/null 2>conftest.err &&
19321        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19322        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19323        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19324        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19325       # icc doesn't choke on unknown options, it will just issue warnings
19326       # or remarks (even with -Werror).  So we grep stderr for any message
19327       # that says an option was ignored or not supported.
19328       # When given -MP, icc 7.0 and 7.1 complain thusly:
19329       #   icc: Command line warning: ignoring option '-M'; no argument required
19330       # The diagnosis changed in icc 8.0:
19331       #   icc: Command line remark: option '-MP' not supported
19332       if (grep 'ignoring option' conftest.err ||
19333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19334         am_cv_CXX_dependencies_compiler_type=$depmode
19335         break
19336       fi
19337     fi
19338   done
19339
19340   cd ..
19341   rm -rf conftest.dir
19342 else
19343   am_cv_CXX_dependencies_compiler_type=none
19344 fi
19345
19346 fi
19347 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19348 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
19349 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19350
19351  if
19352   test "x$enable_dependency_tracking" != xno \
19353   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19354   am__fastdepCXX_TRUE=
19355   am__fastdepCXX_FALSE='#'
19356 else
19357   am__fastdepCXX_TRUE='#'
19358   am__fastdepCXX_FALSE=
19359 fi
19360
19361
19362
19363
19364 { echo "$as_me:$LINENO: checking for library containing dlsym" >&5
19365 echo $ECHO_N "checking for library containing dlsym... $ECHO_C" >&6; }
19366 if test "${ac_cv_search_dlsym+set}" = set; then
19367   echo $ECHO_N "(cached) $ECHO_C" >&6
19368 else
19369   ac_func_search_save_LIBS=$LIBS
19370 cat >conftest.$ac_ext <<_ACEOF
19371 /* confdefs.h.  */
19372 _ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h.  */
19376
19377 /* Override any GCC internal prototype to avoid an error.
19378    Use char because int might match the return type of a GCC
19379    builtin and then its argument prototype would still apply.  */
19380 #ifdef __cplusplus
19381 extern "C"
19382 #endif
19383 char dlsym ();
19384 int
19385 main ()
19386 {
19387 return dlsym ();
19388   ;
19389   return 0;
19390 }
19391 _ACEOF
19392 for ac_lib in '' dl; do
19393   if test -z "$ac_lib"; then
19394     ac_res="none required"
19395   else
19396     ac_res=-l$ac_lib
19397     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19398   fi
19399   rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403   *) ac_try_echo=$ac_try;;
19404 esac
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406   (eval "$ac_link") 2>conftest.er1
19407   ac_status=$?
19408   grep -v '^ *+' conftest.er1 >conftest.err
19409   rm -f conftest.er1
19410   cat conftest.err >&5
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); } && {
19413          test -z "$ac_c_werror_flag" ||
19414          test ! -s conftest.err
19415        } && test -s conftest$ac_exeext &&
19416        $as_test_x conftest$ac_exeext; then
19417   ac_cv_search_dlsym=$ac_res
19418 else
19419   echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422
19423 fi
19424
19425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19426       conftest$ac_exeext
19427   if test "${ac_cv_search_dlsym+set}" = set; then
19428   break
19429 fi
19430 done
19431 if test "${ac_cv_search_dlsym+set}" = set; then
19432   :
19433 else
19434   ac_cv_search_dlsym=no
19435 fi
19436 rm conftest.$ac_ext
19437 LIBS=$ac_func_search_save_LIBS
19438 fi
19439 { echo "$as_me:$LINENO: result: $ac_cv_search_dlsym" >&5
19440 echo "${ECHO_T}$ac_cv_search_dlsym" >&6; }
19441 ac_res=$ac_cv_search_dlsym
19442 if test "$ac_res" != no; then
19443   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19444
19445 fi
19446
19447 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
19448 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
19449 if test "${ac_cv_search_clock_gettime+set}" = set; then
19450   echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452   ac_func_search_save_LIBS=$LIBS
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459
19460 /* Override any GCC internal prototype to avoid an error.
19461    Use char because int might match the return type of a GCC
19462    builtin and then its argument prototype would still apply.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char clock_gettime ();
19467 int
19468 main ()
19469 {
19470 return clock_gettime ();
19471   ;
19472   return 0;
19473 }
19474 _ACEOF
19475 for ac_lib in '' rt; do
19476   if test -z "$ac_lib"; then
19477     ac_res="none required"
19478   else
19479     ac_res=-l$ac_lib
19480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19481   fi
19482   rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486   *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489   (eval "$ac_link") 2>conftest.er1
19490   ac_status=$?
19491   grep -v '^ *+' conftest.er1 >conftest.err
19492   rm -f conftest.er1
19493   cat conftest.err >&5
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); } && {
19496          test -z "$ac_c_werror_flag" ||
19497          test ! -s conftest.err
19498        } && test -s conftest$ac_exeext &&
19499        $as_test_x conftest$ac_exeext; then
19500   ac_cv_search_clock_gettime=$ac_res
19501 else
19502   echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19504
19505
19506 fi
19507
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509       conftest$ac_exeext
19510   if test "${ac_cv_search_clock_gettime+set}" = set; then
19511   break
19512 fi
19513 done
19514 if test "${ac_cv_search_clock_gettime+set}" = set; then
19515   :
19516 else
19517   ac_cv_search_clock_gettime=no
19518 fi
19519 rm conftest.$ac_ext
19520 LIBS=$ac_func_search_save_LIBS
19521 fi
19522 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
19523 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
19524 ac_res=$ac_cv_search_clock_gettime
19525 if test "$ac_res" != no; then
19526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19527
19528 fi
19529
19530
19531 # Checks for header files.
19532 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19534 if test "${ac_cv_header_stdc+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h.  */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h.  */
19543 #include <stdlib.h>
19544 #include <stdarg.h>
19545 #include <string.h>
19546 #include <float.h>
19547
19548 int
19549 main ()
19550 {
19551
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (ac_try="$ac_compile"
19558 case "(($ac_try" in
19559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560   *) ac_try_echo=$ac_try;;
19561 esac
19562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563   (eval "$ac_compile") 2>conftest.er1
19564   ac_status=$?
19565   grep -v '^ *+' conftest.er1 >conftest.err
19566   rm -f conftest.er1
19567   cat conftest.err >&5
19568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569   (exit $ac_status); } && {
19570          test -z "$ac_c_werror_flag" ||
19571          test ! -s conftest.err
19572        } && test -s conftest.$ac_objext; then
19573   ac_cv_header_stdc=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578         ac_cv_header_stdc=no
19579 fi
19580
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583 if test $ac_cv_header_stdc = yes; then
19584   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19585   cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 #include <string.h>
19592
19593 _ACEOF
19594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19595   $EGREP "memchr" >/dev/null 2>&1; then
19596   :
19597 else
19598   ac_cv_header_stdc=no
19599 fi
19600 rm -f conftest*
19601
19602 fi
19603
19604 if test $ac_cv_header_stdc = yes; then
19605   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19606   cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 #include <stdlib.h>
19613
19614 _ACEOF
19615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19616   $EGREP "free" >/dev/null 2>&1; then
19617   :
19618 else
19619   ac_cv_header_stdc=no
19620 fi
19621 rm -f conftest*
19622
19623 fi
19624
19625 if test $ac_cv_header_stdc = yes; then
19626   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19627   if test "$cross_compiling" = yes; then
19628   :
19629 else
19630   cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636 #include <ctype.h>
19637 #include <stdlib.h>
19638 #if ((' ' & 0x0FF) == 0x020)
19639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19641 #else
19642 # define ISLOWER(c) \
19643                    (('a' <= (c) && (c) <= 'i') \
19644                      || ('j' <= (c) && (c) <= 'r') \
19645                      || ('s' <= (c) && (c) <= 'z'))
19646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19647 #endif
19648
19649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19650 int
19651 main ()
19652 {
19653   int i;
19654   for (i = 0; i < 256; i++)
19655     if (XOR (islower (i), ISLOWER (i))
19656         || toupper (i) != TOUPPER (i))
19657       return 2;
19658   return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665   *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668   (eval "$ac_link") 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19672   { (case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_try") 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   :
19682 else
19683   echo "$as_me: program exited with status $ac_status" >&5
19684 echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687 ( exit $ac_status )
19688 ac_cv_header_stdc=no
19689 fi
19690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19691 fi
19692
19693
19694 fi
19695 fi
19696 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19697 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19698 if test $ac_cv_header_stdc = yes; then
19699
19700 cat >>confdefs.h <<\_ACEOF
19701 #define STDC_HEADERS 1
19702 _ACEOF
19703
19704 fi
19705
19706 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19707 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19708 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 #include <sys/types.h>
19718 #include <sys/wait.h>
19719 #ifndef WEXITSTATUS
19720 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19721 #endif
19722 #ifndef WIFEXITED
19723 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19724 #endif
19725
19726 int
19727 main ()
19728 {
19729   int s;
19730   wait (&s);
19731   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19732   ;
19733   return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740   *) ac_try_echo=$ac_try;;
19741 esac
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743   (eval "$ac_compile") 2>conftest.er1
19744   ac_status=$?
19745   grep -v '^ *+' conftest.er1 >conftest.err
19746   rm -f conftest.er1
19747   cat conftest.err >&5
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); } && {
19750          test -z "$ac_c_werror_flag" ||
19751          test ! -s conftest.err
19752        } && test -s conftest.$ac_objext; then
19753   ac_cv_header_sys_wait_h=yes
19754 else
19755   echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19757
19758         ac_cv_header_sys_wait_h=no
19759 fi
19760
19761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19762 fi
19763 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19764 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
19765 if test $ac_cv_header_sys_wait_h = yes; then
19766
19767 cat >>confdefs.h <<\_ACEOF
19768 #define HAVE_SYS_WAIT_H 1
19769 _ACEOF
19770
19771 fi
19772
19773
19774
19775
19776
19777 for ac_header in endian.h mach/mach.h machine/endian.h sys/endian.h
19778 do
19779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 fi
19786 ac_res=`eval echo '${'$as_ac_Header'}'`
19787                { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19789 else
19790   # Is the header compilable?
19791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 $ac_includes_default
19800 #include <$ac_header>
19801 _ACEOF
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806   *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809   (eval "$ac_compile") 2>conftest.er1
19810   ac_status=$?
19811   grep -v '^ *+' conftest.er1 >conftest.err
19812   rm -f conftest.er1
19813   cat conftest.err >&5
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); } && {
19816          test -z "$ac_c_werror_flag" ||
19817          test ! -s conftest.err
19818        } && test -s conftest.$ac_objext; then
19819   ac_header_compiler=yes
19820 else
19821   echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19823
19824         ac_header_compiler=no
19825 fi
19826
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19830
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h.  */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h.  */
19840 #include <$ac_header>
19841 _ACEOF
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845   *) ac_try_echo=$ac_try;;
19846 esac
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849   ac_status=$?
19850   grep -v '^ *+' conftest.er1 >conftest.err
19851   rm -f conftest.er1
19852   cat conftest.err >&5
19853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854   (exit $ac_status); } >/dev/null && {
19855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856          test ! -s conftest.err
19857        }; then
19858   ac_header_preproc=yes
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863   ac_header_preproc=no
19864 fi
19865
19866 rm -f conftest.err conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 echo "${ECHO_T}$ac_header_preproc" >&6; }
19869
19870 # So?  What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19872   yes:no: )
19873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877     ac_header_preproc=yes
19878     ;;
19879   no:yes:* )
19880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19892     ( cat <<\_ASBOX
19893 ## ----------------------------------------------- ##
19894 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
19895 ## ----------------------------------------------- ##
19896 _ASBOX
19897      ) | sed "s/^/$as_me: WARNING:     /" >&2
19898     ;;
19899 esac
19900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19903   echo $ECHO_N "(cached) $ECHO_C" >&6
19904 else
19905   eval "$as_ac_Header=\$ac_header_preproc"
19906 fi
19907 ac_res=`eval echo '${'$as_ac_Header'}'`
19908                { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19910
19911 fi
19912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19913   cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19915 _ACEOF
19916
19917 fi
19918
19919 done
19920
19921
19922 # Checks for typedefs, structures, and compiler characteristics.
19923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19925 if test "${ac_cv_c_const+set}" = set; then
19926   echo $ECHO_N "(cached) $ECHO_C" >&6
19927 else
19928   cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h.  */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h.  */
19934
19935 int
19936 main ()
19937 {
19938 /* FIXME: Include the comments suggested by Paul. */
19939 #ifndef __cplusplus
19940   /* Ultrix mips cc rejects this.  */
19941   typedef int charset[2];
19942   const charset cs;
19943   /* SunOS 4.1.1 cc rejects this.  */
19944   char const *const *pcpcc;
19945   char **ppc;
19946   /* NEC SVR4.0.2 mips cc rejects this.  */
19947   struct point {int x, y;};
19948   static struct point const zero = {0,0};
19949   /* AIX XL C 1.02.0.0 rejects this.
19950      It does not let you subtract one const X* pointer from another in
19951      an arm of an if-expression whose if-part is not a constant
19952      expression */
19953   const char *g = "string";
19954   pcpcc = &g + (g ? g-g : 0);
19955   /* HPUX 7.0 cc rejects these. */
19956   ++pcpcc;
19957   ppc = (char**) pcpcc;
19958   pcpcc = (char const *const *) ppc;
19959   { /* SCO 3.2v4 cc rejects this.  */
19960     char *t;
19961     char const *s = 0 ? (char *) 0 : (char const *) 0;
19962
19963     *t++ = 0;
19964     if (s) return 0;
19965   }
19966   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19967     int x[] = {25, 17};
19968     const int *foo = &x[0];
19969     ++foo;
19970   }
19971   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19972     typedef const int *iptr;
19973     iptr p = 0;
19974     ++p;
19975   }
19976   { /* AIX XL C 1.02.0.0 rejects this saying
19977        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19978     struct s { int j; const int *ap[3]; };
19979     struct s *b; b->j = 5;
19980   }
19981   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19982     const int foo = 10;
19983     if (!foo) return 0;
19984   }
19985   return !cs[0] && !zero.x;
19986 #endif
19987
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_compile") 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } && {
20006          test -z "$ac_c_werror_flag" ||
20007          test ! -s conftest.err
20008        } && test -s conftest.$ac_objext; then
20009   ac_cv_c_const=yes
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014         ac_cv_c_const=no
20015 fi
20016
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018 fi
20019 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20020 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20021 if test $ac_cv_c_const = no; then
20022
20023 cat >>confdefs.h <<\_ACEOF
20024 #define const
20025 _ACEOF
20026
20027 fi
20028
20029 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20030 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
20031 if test "${ac_cv_type_uid_t+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #include <sys/types.h>
20041
20042 _ACEOF
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044   $EGREP "uid_t" >/dev/null 2>&1; then
20045   ac_cv_type_uid_t=yes
20046 else
20047   ac_cv_type_uid_t=no
20048 fi
20049 rm -f conftest*
20050
20051 fi
20052 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20053 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
20054 if test $ac_cv_type_uid_t = no; then
20055
20056 cat >>confdefs.h <<\_ACEOF
20057 #define uid_t int
20058 _ACEOF
20059
20060
20061 cat >>confdefs.h <<\_ACEOF
20062 #define gid_t int
20063 _ACEOF
20064
20065 fi
20066
20067 { echo "$as_me:$LINENO: checking for pid_t" >&5
20068 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
20069 if test "${ac_cv_type_pid_t+set}" = set; then
20070   echo $ECHO_N "(cached) $ECHO_C" >&6
20071 else
20072   cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078 $ac_includes_default
20079 typedef pid_t ac__type_new_;
20080 int
20081 main ()
20082 {
20083 if ((ac__type_new_ *) 0)
20084   return 0;
20085 if (sizeof (ac__type_new_))
20086   return 0;
20087   ;
20088   return 0;
20089 }
20090 _ACEOF
20091 rm -f conftest.$ac_objext
20092 if { (ac_try="$ac_compile"
20093 case "(($ac_try" in
20094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20095   *) ac_try_echo=$ac_try;;
20096 esac
20097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20098   (eval "$ac_compile") 2>conftest.er1
20099   ac_status=$?
20100   grep -v '^ *+' conftest.er1 >conftest.err
20101   rm -f conftest.er1
20102   cat conftest.err >&5
20103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104   (exit $ac_status); } && {
20105          test -z "$ac_c_werror_flag" ||
20106          test ! -s conftest.err
20107        } && test -s conftest.$ac_objext; then
20108   ac_cv_type_pid_t=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_type_pid_t=no
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 fi
20118 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20119 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
20120 if test $ac_cv_type_pid_t = yes; then
20121   :
20122 else
20123
20124 cat >>confdefs.h <<_ACEOF
20125 #define pid_t int
20126 _ACEOF
20127
20128 fi
20129
20130 { echo "$as_me:$LINENO: checking for size_t" >&5
20131 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20132 if test "${ac_cv_type_size_t+set}" = set; then
20133   echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135   cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 $ac_includes_default
20142 typedef size_t ac__type_new_;
20143 int
20144 main ()
20145 {
20146 if ((ac__type_new_ *) 0)
20147   return 0;
20148 if (sizeof (ac__type_new_))
20149   return 0;
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_cv_type_size_t=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_cv_type_size_t=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 fi
20181 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20182 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20183 if test $ac_cv_type_size_t = yes; then
20184   :
20185 else
20186
20187 cat >>confdefs.h <<_ACEOF
20188 #define size_t unsigned int
20189 _ACEOF
20190
20191 fi
20192
20193 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
20194 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
20195 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 $ac_includes_default
20205 int
20206 main ()
20207 {
20208 static struct stat ac_aggr;
20209 if (ac_aggr.st_rdev)
20210 return 0;
20211   ;
20212   return 0;
20213 }
20214 _ACEOF
20215 rm -f conftest.$ac_objext
20216 if { (ac_try="$ac_compile"
20217 case "(($ac_try" in
20218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219   *) ac_try_echo=$ac_try;;
20220 esac
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222   (eval "$ac_compile") 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } && {
20229          test -z "$ac_c_werror_flag" ||
20230          test ! -s conftest.err
20231        } && test -s conftest.$ac_objext; then
20232   ac_cv_member_struct_stat_st_rdev=yes
20233 else
20234   echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20236
20237         cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 $ac_includes_default
20244 int
20245 main ()
20246 {
20247 static struct stat ac_aggr;
20248 if (sizeof ac_aggr.st_rdev)
20249 return 0;
20250   ;
20251   return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest.$ac_objext
20255 if { (ac_try="$ac_compile"
20256 case "(($ac_try" in
20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258   *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261   (eval "$ac_compile") 2>conftest.er1
20262   ac_status=$?
20263   grep -v '^ *+' conftest.er1 >conftest.err
20264   rm -f conftest.er1
20265   cat conftest.err >&5
20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267   (exit $ac_status); } && {
20268          test -z "$ac_c_werror_flag" ||
20269          test ! -s conftest.err
20270        } && test -s conftest.$ac_objext; then
20271   ac_cv_member_struct_stat_st_rdev=yes
20272 else
20273   echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276         ac_cv_member_struct_stat_st_rdev=no
20277 fi
20278
20279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
20285 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
20286 if test $ac_cv_member_struct_stat_st_rdev = yes; then
20287
20288 cat >>confdefs.h <<_ACEOF
20289 #define HAVE_STRUCT_STAT_ST_RDEV 1
20290 _ACEOF
20291
20292
20293 fi
20294
20295
20296 { echo "$as_me:$LINENO: checking for struct ipc_perm.__key" >&5
20297 echo $ECHO_N "checking for struct ipc_perm.__key... $ECHO_C" >&6; }
20298 if test "${ac_cv_member_struct_ipc_perm___key+set}" = set; then
20299   echo $ECHO_N "(cached) $ECHO_C" >&6
20300 else
20301   cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h.  */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h.  */
20307
20308 #include <sys/types.h>
20309 #include <sys/ipc.h>
20310
20311
20312 int
20313 main ()
20314 {
20315 static struct ipc_perm ac_aggr;
20316 if (ac_aggr.__key)
20317 return 0;
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 rm -f conftest.$ac_objext
20323 if { (ac_try="$ac_compile"
20324 case "(($ac_try" in
20325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326   *) ac_try_echo=$ac_try;;
20327 esac
20328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329   (eval "$ac_compile") 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } && {
20336          test -z "$ac_c_werror_flag" ||
20337          test ! -s conftest.err
20338        } && test -s conftest.$ac_objext; then
20339   ac_cv_member_struct_ipc_perm___key=yes
20340 else
20341   echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.$ac_ext >&5
20343
20344         cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350
20351 #include <sys/types.h>
20352 #include <sys/ipc.h>
20353
20354
20355 int
20356 main ()
20357 {
20358 static struct ipc_perm ac_aggr;
20359 if (sizeof ac_aggr.__key)
20360 return 0;
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_compile") 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } && {
20379          test -z "$ac_c_werror_flag" ||
20380          test ! -s conftest.err
20381        } && test -s conftest.$ac_objext; then
20382   ac_cv_member_struct_ipc_perm___key=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387         ac_cv_member_struct_ipc_perm___key=no
20388 fi
20389
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 fi
20392
20393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___key" >&5
20396 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___key" >&6; }
20397 if test $ac_cv_member_struct_ipc_perm___key = yes; then
20398
20399 cat >>confdefs.h <<\_ACEOF
20400 #define HAVE_IPC_PERM___KEY
20401 _ACEOF
20402
20403 fi
20404
20405
20406 { echo "$as_me:$LINENO: checking for struct ipc_perm.__seq" >&5
20407 echo $ECHO_N "checking for struct ipc_perm.__seq... $ECHO_C" >&6; }
20408 if test "${ac_cv_member_struct_ipc_perm___seq+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   cat >conftest.$ac_ext <<_ACEOF
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 #include <sys/types.h>
20419 #include <sys/ipc.h>
20420
20421
20422 int
20423 main ()
20424 {
20425 static struct ipc_perm ac_aggr;
20426 if (ac_aggr.__seq)
20427 return 0;
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_compile") 2>conftest.er1
20440   ac_status=$?
20441   grep -v '^ *+' conftest.er1 >conftest.err
20442   rm -f conftest.er1
20443   cat conftest.err >&5
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); } && {
20446          test -z "$ac_c_werror_flag" ||
20447          test ! -s conftest.err
20448        } && test -s conftest.$ac_objext; then
20449   ac_cv_member_struct_ipc_perm___seq=yes
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454         cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460
20461 #include <sys/types.h>
20462 #include <sys/ipc.h>
20463
20464
20465 int
20466 main ()
20467 {
20468 static struct ipc_perm ac_aggr;
20469 if (sizeof ac_aggr.__seq)
20470 return 0;
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482   (eval "$ac_compile") 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } && {
20489          test -z "$ac_c_werror_flag" ||
20490          test ! -s conftest.err
20491        } && test -s conftest.$ac_objext; then
20492   ac_cv_member_struct_ipc_perm___seq=yes
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497         ac_cv_member_struct_ipc_perm___seq=no
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 fi
20502
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504 fi
20505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ipc_perm___seq" >&5
20506 echo "${ECHO_T}$ac_cv_member_struct_ipc_perm___seq" >&6; }
20507 if test $ac_cv_member_struct_ipc_perm___seq = yes; then
20508
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_IPC_PERM___SEQ
20511 _ACEOF
20512
20513 fi
20514
20515
20516 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20517 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20518 if test "${ac_cv_header_time+set}" = set; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   cat >conftest.$ac_ext <<_ACEOF
20522 /* confdefs.h.  */
20523 _ACEOF
20524 cat confdefs.h >>conftest.$ac_ext
20525 cat >>conftest.$ac_ext <<_ACEOF
20526 /* end confdefs.h.  */
20527 #include <sys/types.h>
20528 #include <sys/time.h>
20529 #include <time.h>
20530
20531 int
20532 main ()
20533 {
20534 if ((struct tm *) 0)
20535 return 0;
20536   ;
20537   return 0;
20538 }
20539 _ACEOF
20540 rm -f conftest.$ac_objext
20541 if { (ac_try="$ac_compile"
20542 case "(($ac_try" in
20543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544   *) ac_try_echo=$ac_try;;
20545 esac
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547   (eval "$ac_compile") 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } && {
20554          test -z "$ac_c_werror_flag" ||
20555          test ! -s conftest.err
20556        } && test -s conftest.$ac_objext; then
20557   ac_cv_header_time=yes
20558 else
20559   echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562         ac_cv_header_time=no
20563 fi
20564
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 fi
20567 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20568 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20569 if test $ac_cv_header_time = yes; then
20570
20571 cat >>confdefs.h <<\_ACEOF
20572 #define TIME_WITH_SYS_TIME 1
20573 _ACEOF
20574
20575 fi
20576
20577 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20578 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20579 if test "${ac_cv_struct_tm+set}" = set; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582   cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <sys/types.h>
20589 #include <time.h>
20590
20591 int
20592 main ()
20593 {
20594 struct tm tm;
20595                                      int *p = &tm.tm_sec;
20596                                      return !p;
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_compile") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } && {
20615          test -z "$ac_c_werror_flag" ||
20616          test ! -s conftest.err
20617        } && test -s conftest.$ac_objext; then
20618   ac_cv_struct_tm=time.h
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623         ac_cv_struct_tm=sys/time.h
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 fi
20628 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20629 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20630 if test $ac_cv_struct_tm = sys/time.h; then
20631
20632 cat >>confdefs.h <<\_ACEOF
20633 #define TM_IN_SYS_TIME 1
20634 _ACEOF
20635
20636 fi
20637
20638
20639 # Checks for library functions.
20640
20641 for ac_header in unistd.h
20642 do
20643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 fi
20650 ac_res=`eval echo '${'$as_ac_Header'}'`
20651                { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20653 else
20654   # Is the header compilable?
20655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20657 cat >conftest.$ac_ext <<_ACEOF
20658 /* confdefs.h.  */
20659 _ACEOF
20660 cat confdefs.h >>conftest.$ac_ext
20661 cat >>conftest.$ac_ext <<_ACEOF
20662 /* end confdefs.h.  */
20663 $ac_includes_default
20664 #include <$ac_header>
20665 _ACEOF
20666 rm -f conftest.$ac_objext
20667 if { (ac_try="$ac_compile"
20668 case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_compile") 2>conftest.er1
20674   ac_status=$?
20675   grep -v '^ *+' conftest.er1 >conftest.err
20676   rm -f conftest.er1
20677   cat conftest.err >&5
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); } && {
20680          test -z "$ac_c_werror_flag" ||
20681          test ! -s conftest.err
20682        } && test -s conftest.$ac_objext; then
20683   ac_header_compiler=yes
20684 else
20685   echo "$as_me: failed program was:" >&5
20686 sed 's/^/| /' conftest.$ac_ext >&5
20687
20688         ac_header_compiler=no
20689 fi
20690
20691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20693 echo "${ECHO_T}$ac_header_compiler" >&6; }
20694
20695 # Is the header present?
20696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 #include <$ac_header>
20705 _ACEOF
20706 if { (ac_try="$ac_cpp conftest.$ac_ext"
20707 case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20713   ac_status=$?
20714   grep -v '^ *+' conftest.er1 >conftest.err
20715   rm -f conftest.er1
20716   cat conftest.err >&5
20717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718   (exit $ac_status); } >/dev/null && {
20719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20720          test ! -s conftest.err
20721        }; then
20722   ac_header_preproc=yes
20723 else
20724   echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20726
20727   ac_header_preproc=no
20728 fi
20729
20730 rm -f conftest.err conftest.$ac_ext
20731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20732 echo "${ECHO_T}$ac_header_preproc" >&6; }
20733
20734 # So?  What about this header?
20735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20736   yes:no: )
20737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20741     ac_header_preproc=yes
20742     ;;
20743   no:yes:* )
20744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20756     ( cat <<\_ASBOX
20757 ## ----------------------------------------------- ##
20758 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20759 ## ----------------------------------------------- ##
20760 _ASBOX
20761      ) | sed "s/^/$as_me: WARNING:     /" >&2
20762     ;;
20763 esac
20764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20767   echo $ECHO_N "(cached) $ECHO_C" >&6
20768 else
20769   eval "$as_ac_Header=\$ac_header_preproc"
20770 fi
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772                { echo "$as_me:$LINENO: result: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20774
20775 fi
20776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20777   cat >>confdefs.h <<_ACEOF
20778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20779 _ACEOF
20780
20781 fi
20782
20783 done
20784
20785 { echo "$as_me:$LINENO: checking for working chown" >&5
20786 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
20787 if test "${ac_cv_func_chown_works+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   if test "$cross_compiling" = yes; then
20791   ac_cv_func_chown_works=no
20792 else
20793   cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h.  */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h.  */
20799 $ac_includes_default
20800 #include <fcntl.h>
20801
20802 int
20803 main ()
20804 {
20805   char *f = "conftest.chown";
20806   struct stat before, after;
20807
20808   if (creat (f, 0600) < 0)
20809     return 1;
20810   if (stat (f, &before) < 0)
20811     return 1;
20812   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
20813     return 1;
20814   if (stat (f, &after) < 0)
20815     return 1;
20816   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
20817
20818   ;
20819   return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest$ac_exeext
20823 if { (ac_try="$ac_link"
20824 case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_link") 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833   { (case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_try") 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   ac_cv_func_chown_works=yes
20843 else
20844   echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ( exit $ac_status )
20849 ac_cv_func_chown_works=no
20850 fi
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853
20854
20855 rm -f conftest.chown
20856
20857 fi
20858 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
20859 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
20860 if test $ac_cv_func_chown_works = yes; then
20861
20862 cat >>confdefs.h <<\_ACEOF
20863 #define HAVE_CHOWN 1
20864 _ACEOF
20865
20866 fi
20867
20868
20869 for ac_header in vfork.h
20870 do
20871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20876   echo $ECHO_N "(cached) $ECHO_C" >&6
20877 fi
20878 ac_res=`eval echo '${'$as_ac_Header'}'`
20879                { echo "$as_me:$LINENO: result: $ac_res" >&5
20880 echo "${ECHO_T}$ac_res" >&6; }
20881 else
20882   # Is the header compilable?
20883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 $ac_includes_default
20892 #include <$ac_header>
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_compile") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && {
20908          test -z "$ac_c_werror_flag" ||
20909          test ! -s conftest.err
20910        } && test -s conftest.$ac_objext; then
20911   ac_header_compiler=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         ac_header_compiler=no
20917 fi
20918
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20921 echo "${ECHO_T}$ac_header_compiler" >&6; }
20922
20923 # Is the header present?
20924 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20925 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 #include <$ac_header>
20933 _ACEOF
20934 if { (ac_try="$ac_cpp conftest.$ac_ext"
20935 case "(($ac_try" in
20936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937   *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } >/dev/null && {
20947          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20948          test ! -s conftest.err
20949        }; then
20950   ac_header_preproc=yes
20951 else
20952   echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955   ac_header_preproc=no
20956 fi
20957
20958 rm -f conftest.err conftest.$ac_ext
20959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20960 echo "${ECHO_T}$ac_header_preproc" >&6; }
20961
20962 # So?  What about this header?
20963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20964   yes:no: )
20965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20969     ac_header_preproc=yes
20970     ;;
20971   no:yes:* )
20972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20984     ( cat <<\_ASBOX
20985 ## ----------------------------------------------- ##
20986 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
20987 ## ----------------------------------------------- ##
20988 _ASBOX
20989      ) | sed "s/^/$as_me: WARNING:     /" >&2
20990     ;;
20991 esac
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995   echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
20997   eval "$as_ac_Header=\$ac_header_preproc"
20998 fi
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000                { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21002
21003 fi
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005   cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007 _ACEOF
21008
21009 fi
21010
21011 done
21012
21013
21014
21015 for ac_func in fork vfork
21016 do
21017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21021   echo $ECHO_N "(cached) $ECHO_C" >&6
21022 else
21023   cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21031 #define $ac_func innocuous_$ac_func
21032
21033 /* System header to define __stub macros and hopefully few prototypes,
21034     which can conflict with char $ac_func (); below.
21035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036     <limits.h> exists even on freestanding compilers.  */
21037
21038 #ifdef __STDC__
21039 # include <limits.h>
21040 #else
21041 # include <assert.h>
21042 #endif
21043
21044 #undef $ac_func
21045
21046 /* Override any GCC internal prototype to avoid an error.
21047    Use char because int might match the return type of a GCC
21048    builtin and then its argument prototype would still apply.  */
21049 #ifdef __cplusplus
21050 extern "C"
21051 #endif
21052 char $ac_func ();
21053 /* The GNU C library defines this for functions which it implements
21054     to always fail with ENOSYS.  Some functions are actually named
21055     something starting with __ and the normal name is an alias.  */
21056 #if defined __stub_$ac_func || defined __stub___$ac_func
21057 choke me
21058 #endif
21059
21060 int
21061 main ()
21062 {
21063 return $ac_func ();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_link") 2>conftest.er1
21076   ac_status=$?
21077   grep -v '^ *+' conftest.er1 >conftest.err
21078   rm -f conftest.er1
21079   cat conftest.err >&5
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } && {
21082          test -z "$ac_c_werror_flag" ||
21083          test ! -s conftest.err
21084        } && test -s conftest$ac_exeext &&
21085        $as_test_x conftest$ac_exeext; then
21086   eval "$as_ac_var=yes"
21087 else
21088   echo "$as_me: failed program was:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21090
21091         eval "$as_ac_var=no"
21092 fi
21093
21094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21095       conftest$ac_exeext conftest.$ac_ext
21096 fi
21097 ac_res=`eval echo '${'$as_ac_var'}'`
21098                { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21100 if test `eval echo '${'$as_ac_var'}'` = yes; then
21101   cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21103 _ACEOF
21104
21105 fi
21106 done
21107
21108 if test "x$ac_cv_func_fork" = xyes; then
21109   { echo "$as_me:$LINENO: checking for working fork" >&5
21110 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
21111 if test "${ac_cv_func_fork_works+set}" = set; then
21112   echo $ECHO_N "(cached) $ECHO_C" >&6
21113 else
21114   if test "$cross_compiling" = yes; then
21115   ac_cv_func_fork_works=cross
21116 else
21117   cat >conftest.$ac_ext <<_ACEOF
21118 /* confdefs.h.  */
21119 _ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h.  */
21123 $ac_includes_default
21124 int
21125 main ()
21126 {
21127
21128           /* By Ruediger Kuhlmann. */
21129           return fork () < 0;
21130
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest$ac_exeext
21136 if { (ac_try="$ac_link"
21137 case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_link") 2>&5
21143   ac_status=$?
21144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21146   { (case "(($ac_try" in
21147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148   *) ac_try_echo=$ac_try;;
21149 esac
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151   (eval "$ac_try") 2>&5
21152   ac_status=$?
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); }; }; then
21155   ac_cv_func_fork_works=yes
21156 else
21157   echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21160
21161 ( exit $ac_status )
21162 ac_cv_func_fork_works=no
21163 fi
21164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21165 fi
21166
21167
21168 fi
21169 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21170 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
21171
21172 else
21173   ac_cv_func_fork_works=$ac_cv_func_fork
21174 fi
21175 if test "x$ac_cv_func_fork_works" = xcross; then
21176   case $host in
21177     *-*-amigaos* | *-*-msdosdjgpp*)
21178       # Override, as these systems have only a dummy fork() stub
21179       ac_cv_func_fork_works=no
21180       ;;
21181     *)
21182       ac_cv_func_fork_works=yes
21183       ;;
21184   esac
21185   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21186 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21187 fi
21188 ac_cv_func_vfork_works=$ac_cv_func_vfork
21189 if test "x$ac_cv_func_vfork" = xyes; then
21190   { echo "$as_me:$LINENO: checking for working vfork" >&5
21191 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
21192 if test "${ac_cv_func_vfork_works+set}" = set; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195   if test "$cross_compiling" = yes; then
21196   ac_cv_func_vfork_works=cross
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 /* Thanks to Paul Eggert for this test.  */
21205 $ac_includes_default
21206 #include <sys/wait.h>
21207 #ifdef HAVE_VFORK_H
21208 # include <vfork.h>
21209 #endif
21210 /* On some sparc systems, changes by the child to local and incoming
21211    argument registers are propagated back to the parent.  The compiler
21212    is told about this with #include <vfork.h>, but some compilers
21213    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21214    static variable whose address is put into a register that is
21215    clobbered by the vfork.  */
21216 static void
21217 #ifdef __cplusplus
21218 sparc_address_test (int arg)
21219 # else
21220 sparc_address_test (arg) int arg;
21221 #endif
21222 {
21223   static pid_t child;
21224   if (!child) {
21225     child = vfork ();
21226     if (child < 0) {
21227       perror ("vfork");
21228       _exit(2);
21229     }
21230     if (!child) {
21231       arg = getpid();
21232       write(-1, "", 0);
21233       _exit (arg);
21234     }
21235   }
21236 }
21237
21238 int
21239 main ()
21240 {
21241   pid_t parent = getpid ();
21242   pid_t child;
21243
21244   sparc_address_test (0);
21245
21246   child = vfork ();
21247
21248   if (child == 0) {
21249     /* Here is another test for sparc vfork register problems.  This
21250        test uses lots of local variables, at least as many local
21251        variables as main has allocated so far including compiler
21252        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
21253        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
21254        reuse the register of parent for one of the local variables,
21255        since it will think that parent can't possibly be used any more
21256        in this routine.  Assigning to the local variable will thus
21257        munge parent in the parent process.  */
21258     pid_t
21259       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21260       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21261     /* Convince the compiler that p..p7 are live; otherwise, it might
21262        use the same hardware register for all 8 local variables.  */
21263     if (p != p1 || p != p2 || p != p3 || p != p4
21264         || p != p5 || p != p6 || p != p7)
21265       _exit(1);
21266
21267     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21268        from child file descriptors.  If the child closes a descriptor
21269        before it execs or exits, this munges the parent's descriptor
21270        as well.  Test for this by closing stdout in the child.  */
21271     _exit(close(fileno(stdout)) != 0);
21272   } else {
21273     int status;
21274     struct stat st;
21275
21276     while (wait(&status) != child)
21277       ;
21278     return (
21279          /* Was there some problem with vforking?  */
21280          child < 0
21281
21282          /* Did the child fail?  (This shouldn't happen.)  */
21283          || status
21284
21285          /* Did the vfork/compiler bug occur?  */
21286          || parent != getpid()
21287
21288          /* Did the file descriptor bug occur?  */
21289          || fstat(fileno(stdout), &st) != 0
21290          );
21291   }
21292 }
21293 _ACEOF
21294 rm -f conftest$ac_exeext
21295 if { (ac_try="$ac_link"
21296 case "(($ac_try" in
21297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298   *) ac_try_echo=$ac_try;;
21299 esac
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301   (eval "$ac_link") 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305   { (case "(($ac_try" in
21306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307   *) ac_try_echo=$ac_try;;
21308 esac
21309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21310   (eval "$ac_try") 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); }; }; then
21314   ac_cv_func_vfork_works=yes
21315 else
21316   echo "$as_me: program exited with status $ac_status" >&5
21317 echo "$as_me: failed program was:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21319
21320 ( exit $ac_status )
21321 ac_cv_func_vfork_works=no
21322 fi
21323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21324 fi
21325
21326
21327 fi
21328 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21329 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
21330
21331 fi;
21332 if test "x$ac_cv_func_fork_works" = xcross; then
21333   ac_cv_func_vfork_works=$ac_cv_func_vfork
21334   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21335 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21336 fi
21337
21338 if test "x$ac_cv_func_vfork_works" = xyes; then
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_WORKING_VFORK 1
21342 _ACEOF
21343
21344 else
21345
21346 cat >>confdefs.h <<\_ACEOF
21347 #define vfork fork
21348 _ACEOF
21349
21350 fi
21351 if test "x$ac_cv_func_fork_works" = xyes; then
21352
21353 cat >>confdefs.h <<\_ACEOF
21354 #define HAVE_WORKING_FORK 1
21355 _ACEOF
21356
21357 fi
21358
21359
21360 for ac_header in stdlib.h
21361 do
21362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 fi
21369 ac_res=`eval echo '${'$as_ac_Header'}'`
21370                { echo "$as_me:$LINENO: result: $ac_res" >&5
21371 echo "${ECHO_T}$ac_res" >&6; }
21372 else
21373   # Is the header compilable?
21374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21376 cat >conftest.$ac_ext <<_ACEOF
21377 /* confdefs.h.  */
21378 _ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h.  */
21382 $ac_includes_default
21383 #include <$ac_header>
21384 _ACEOF
21385 rm -f conftest.$ac_objext
21386 if { (ac_try="$ac_compile"
21387 case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_compile") 2>conftest.er1
21393   ac_status=$?
21394   grep -v '^ *+' conftest.er1 >conftest.err
21395   rm -f conftest.er1
21396   cat conftest.err >&5
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); } && {
21399          test -z "$ac_c_werror_flag" ||
21400          test ! -s conftest.err
21401        } && test -s conftest.$ac_objext; then
21402   ac_header_compiler=yes
21403 else
21404   echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21406
21407         ac_header_compiler=no
21408 fi
21409
21410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21412 echo "${ECHO_T}$ac_header_compiler" >&6; }
21413
21414 # Is the header present?
21415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 #include <$ac_header>
21424 _ACEOF
21425 if { (ac_try="$ac_cpp conftest.$ac_ext"
21426 case "(($ac_try" in
21427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428   *) ac_try_echo=$ac_try;;
21429 esac
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } >/dev/null && {
21438          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21439          test ! -s conftest.err
21440        }; then
21441   ac_header_preproc=yes
21442 else
21443   echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446   ac_header_preproc=no
21447 fi
21448
21449 rm -f conftest.err conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21451 echo "${ECHO_T}$ac_header_preproc" >&6; }
21452
21453 # So?  What about this header?
21454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21455   yes:no: )
21456     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21460     ac_header_preproc=yes
21461     ;;
21462   no:yes:* )
21463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21465     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21466 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21467     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21469     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21470 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21473     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21475     ( cat <<\_ASBOX
21476 ## ----------------------------------------------- ##
21477 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21478 ## ----------------------------------------------- ##
21479 _ASBOX
21480      ) | sed "s/^/$as_me: WARNING:     /" >&2
21481     ;;
21482 esac
21483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486   echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488   eval "$as_ac_Header=\$ac_header_preproc"
21489 fi
21490 ac_res=`eval echo '${'$as_ac_Header'}'`
21491                { echo "$as_me:$LINENO: result: $ac_res" >&5
21492 echo "${ECHO_T}$ac_res" >&6; }
21493
21494 fi
21495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21496   cat >>confdefs.h <<_ACEOF
21497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21498 _ACEOF
21499
21500 fi
21501
21502 done
21503
21504 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21505 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21506 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21507   echo $ECHO_N "(cached) $ECHO_C" >&6
21508 else
21509   if test "$cross_compiling" = yes; then
21510   ac_cv_func_malloc_0_nonnull=no
21511 else
21512   cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h.  */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h.  */
21518 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21519 # include <stdlib.h>
21520 #else
21521 char *malloc ();
21522 #endif
21523
21524 int
21525 main ()
21526 {
21527 return ! malloc (0);
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 rm -f conftest$ac_exeext
21533 if { (ac_try="$ac_link"
21534 case "(($ac_try" in
21535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536   *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539   (eval "$ac_link") 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543   { (case "(($ac_try" in
21544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545   *) ac_try_echo=$ac_try;;
21546 esac
21547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548   (eval "$ac_try") 2>&5
21549   ac_status=$?
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); }; }; then
21552   ac_cv_func_malloc_0_nonnull=yes
21553 else
21554   echo "$as_me: program exited with status $ac_status" >&5
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558 ( exit $ac_status )
21559 ac_cv_func_malloc_0_nonnull=no
21560 fi
21561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21562 fi
21563
21564
21565 fi
21566 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21567 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21568 if test $ac_cv_func_malloc_0_nonnull = yes; then
21569
21570 cat >>confdefs.h <<\_ACEOF
21571 #define HAVE_MALLOC 1
21572 _ACEOF
21573
21574 else
21575   cat >>confdefs.h <<\_ACEOF
21576 #define HAVE_MALLOC 0
21577 _ACEOF
21578
21579    case " $LIBOBJS " in
21580   *" malloc.$ac_objext "* ) ;;
21581   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21582  ;;
21583 esac
21584
21585
21586 cat >>confdefs.h <<\_ACEOF
21587 #define malloc rpl_malloc
21588 _ACEOF
21589
21590 fi
21591
21592
21593
21594
21595
21596
21597
21598 for ac_header in $ac_header_list
21599 do
21600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21602   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 fi
21607 ac_res=`eval echo '${'$as_ac_Header'}'`
21608                { echo "$as_me:$LINENO: result: $ac_res" >&5
21609 echo "${ECHO_T}$ac_res" >&6; }
21610 else
21611   # Is the header compilable?
21612 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21613 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 $ac_includes_default
21621 #include <$ac_header>
21622 _ACEOF
21623 rm -f conftest.$ac_objext
21624 if { (ac_try="$ac_compile"
21625 case "(($ac_try" in
21626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21627   *) ac_try_echo=$ac_try;;
21628 esac
21629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21630   (eval "$ac_compile") 2>conftest.er1
21631   ac_status=$?
21632   grep -v '^ *+' conftest.er1 >conftest.err
21633   rm -f conftest.er1
21634   cat conftest.err >&5
21635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636   (exit $ac_status); } && {
21637          test -z "$ac_c_werror_flag" ||
21638          test ! -s conftest.err
21639        } && test -s conftest.$ac_objext; then
21640   ac_header_compiler=yes
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645         ac_header_compiler=no
21646 fi
21647
21648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21650 echo "${ECHO_T}$ac_header_compiler" >&6; }
21651
21652 # Is the header present?
21653 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21655 cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661 #include <$ac_header>
21662 _ACEOF
21663 if { (ac_try="$ac_cpp conftest.$ac_ext"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21670   ac_status=$?
21671   grep -v '^ *+' conftest.er1 >conftest.err
21672   rm -f conftest.er1
21673   cat conftest.err >&5
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } >/dev/null && {
21676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21677          test ! -s conftest.err
21678        }; then
21679   ac_header_preproc=yes
21680 else
21681   echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684   ac_header_preproc=no
21685 fi
21686
21687 rm -f conftest.err conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21689 echo "${ECHO_T}$ac_header_preproc" >&6; }
21690
21691 # So?  What about this header?
21692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21693   yes:no: )
21694     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21698     ac_header_preproc=yes
21699     ;;
21700   no:yes:* )
21701     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21703     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21704 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21705     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21707     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21708 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21711     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21713     ( cat <<\_ASBOX
21714 ## ----------------------------------------------- ##
21715 ## Report this to trustedbsd-audit@TrustesdBSD.org ##
21716 ## ----------------------------------------------- ##
21717 _ASBOX
21718      ) | sed "s/^/$as_me: WARNING:     /" >&2
21719     ;;
21720 esac
21721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21724   echo $ECHO_N "(cached) $ECHO_C" >&6
21725 else
21726   eval "$as_ac_Header=\$ac_header_preproc"
21727 fi
21728 ac_res=`eval echo '${'$as_ac_Header'}'`
21729                { echo "$as_me:$LINENO: result: $ac_res" >&5
21730 echo "${ECHO_T}$ac_res" >&6; }
21731
21732 fi
21733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21734   cat >>confdefs.h <<_ACEOF
21735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21736 _ACEOF
21737
21738 fi
21739
21740 done
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750 for ac_func in $ac_func_list
21751 do
21752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21756   echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758   cat >conftest.$ac_ext <<_ACEOF
21759 /* confdefs.h.  */
21760 _ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h.  */
21764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21766 #define $ac_func innocuous_$ac_func
21767
21768 /* System header to define __stub macros and hopefully few prototypes,
21769     which can conflict with char $ac_func (); below.
21770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21771     <limits.h> exists even on freestanding compilers.  */
21772
21773 #ifdef __STDC__
21774 # include <limits.h>
21775 #else
21776 # include <assert.h>
21777 #endif
21778
21779 #undef $ac_func
21780
21781 /* Override any GCC internal prototype to avoid an error.
21782    Use char because int might match the return type of a GCC
21783    builtin and then its argument prototype would still apply.  */
21784 #ifdef __cplusplus
21785 extern "C"
21786 #endif
21787 char $ac_func ();
21788 /* The GNU C library defines this for functions which it implements
21789     to always fail with ENOSYS.  Some functions are actually named
21790     something starting with __ and the normal name is an alias.  */
21791 #if defined __stub_$ac_func || defined __stub___$ac_func
21792 choke me
21793 #endif
21794
21795 int
21796 main ()
21797 {
21798 return $ac_func ();
21799   ;
21800   return 0;
21801 }
21802 _ACEOF
21803 rm -f conftest.$ac_objext conftest$ac_exeext
21804 if { (ac_try="$ac_link"
21805 case "(($ac_try" in
21806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807   *) ac_try_echo=$ac_try;;
21808 esac
21809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810   (eval "$ac_link") 2>conftest.er1
21811   ac_status=$?
21812   grep -v '^ *+' conftest.er1 >conftest.err
21813   rm -f conftest.er1
21814   cat conftest.err >&5
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); } && {
21817          test -z "$ac_c_werror_flag" ||
21818          test ! -s conftest.err
21819        } && test -s conftest$ac_exeext &&
21820        $as_test_x conftest$ac_exeext; then
21821   eval "$as_ac_var=yes"
21822 else
21823   echo "$as_me: failed program was:" >&5
21824 sed 's/^/| /' conftest.$ac_ext >&5
21825
21826         eval "$as_ac_var=no"
21827 fi
21828
21829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21830       conftest$ac_exeext conftest.$ac_ext
21831 fi
21832 ac_res=`eval echo '${'$as_ac_var'}'`
21833                { echo "$as_me:$LINENO: result: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21835 if test `eval echo '${'$as_ac_var'}'` = yes; then
21836   cat >>confdefs.h <<_ACEOF
21837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21838 _ACEOF
21839
21840 fi
21841 done
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859 { echo "$as_me:$LINENO: checking for working mktime" >&5
21860 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
21861 if test "${ac_cv_func_working_mktime+set}" = set; then
21862   echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864   if test "$cross_compiling" = yes; then
21865   ac_cv_func_working_mktime=no
21866 else
21867   cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 /* Test program from Paul Eggert and Tony Leneis.  */
21874 #ifdef TIME_WITH_SYS_TIME
21875 # include <sys/time.h>
21876 # include <time.h>
21877 #else
21878 # ifdef HAVE_SYS_TIME_H
21879 #  include <sys/time.h>
21880 # else
21881 #  include <time.h>
21882 # endif
21883 #endif
21884
21885 #include <stdlib.h>
21886
21887 #ifdef HAVE_UNISTD_H
21888 # include <unistd.h>
21889 #endif
21890
21891 #ifndef HAVE_ALARM
21892 # define alarm(X) /* empty */
21893 #endif
21894
21895 /* Work around redefinition to rpl_putenv by other config tests.  */
21896 #undef putenv
21897
21898 static time_t time_t_max;
21899 static time_t time_t_min;
21900
21901 /* Values we'll use to set the TZ environment variable.  */
21902 static char *tz_strings[] = {
21903   (char *) 0, "TZ=GMT0", "TZ=JST-9",
21904   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21905 };
21906 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21907
21908 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
21909    Based on a problem report from Andreas Jaeger.  */
21910 static int
21911 spring_forward_gap ()
21912 {
21913   /* glibc (up to about 1998-10-07) failed this test. */
21914   struct tm tm;
21915
21916   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21917      instead of "TZ=America/Vancouver" in order to detect the bug even
21918      on systems that don't support the Olson extension, or don't have the
21919      full zoneinfo tables installed.  */
21920   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21921
21922   tm.tm_year = 98;
21923   tm.tm_mon = 3;
21924   tm.tm_mday = 5;
21925   tm.tm_hour = 2;
21926   tm.tm_min = 0;
21927   tm.tm_sec = 0;
21928   tm.tm_isdst = -1;
21929   return mktime (&tm) != (time_t) -1;
21930 }
21931
21932 static int
21933 mktime_test1 (now)
21934      time_t now;
21935 {
21936   struct tm *lt;
21937   return ! (lt = localtime (&now)) || mktime (lt) == now;
21938 }
21939
21940 static int
21941 mktime_test (now)
21942      time_t now;
21943 {
21944   return (mktime_test1 (now)
21945           && mktime_test1 ((time_t) (time_t_max - now))
21946           && mktime_test1 ((time_t) (time_t_min + now)));
21947 }
21948
21949 static int
21950 irix_6_4_bug ()
21951 {
21952   /* Based on code from Ariel Faigon.  */
21953   struct tm tm;
21954   tm.tm_year = 96;
21955   tm.tm_mon = 3;
21956   tm.tm_mday = 0;
21957   tm.tm_hour = 0;
21958   tm.tm_min = 0;
21959   tm.tm_sec = 0;
21960   tm.tm_isdst = -1;
21961   mktime (&tm);
21962   return tm.tm_mon == 2 && tm.tm_mday == 31;
21963 }
21964
21965 static int
21966 bigtime_test (j)
21967      int j;
21968 {
21969   struct tm tm;
21970   time_t now;
21971   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21972   now = mktime (&tm);
21973   if (now != (time_t) -1)
21974     {
21975       struct tm *lt = localtime (&now);
21976       if (! (lt
21977              && lt->tm_year == tm.tm_year
21978              && lt->tm_mon == tm.tm_mon
21979              && lt->tm_mday == tm.tm_mday
21980              && lt->tm_hour == tm.tm_hour
21981              && lt->tm_min == tm.tm_min
21982              && lt->tm_sec == tm.tm_sec
21983              && lt->tm_yday == tm.tm_yday
21984              && lt->tm_wday == tm.tm_wday
21985              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21986                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21987         return 0;
21988     }
21989   return 1;
21990 }
21991
21992 static int
21993 year_2050_test ()
21994 {
21995   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
21996      ignoring leap seconds.  */
21997   unsigned long int answer = 2527315200UL;
21998
21999   struct tm tm;
22000   time_t t;
22001   tm.tm_year = 2050 - 1900;
22002   tm.tm_mon = 2 - 1;
22003   tm.tm_mday = 1;
22004   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
22005   tm.tm_isdst = -1;
22006
22007   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22008      instead of "TZ=America/Vancouver" in order to detect the bug even
22009      on systems that don't support the Olson extension, or don't have the
22010      full zoneinfo tables installed.  */
22011   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22012
22013   t = mktime (&tm);
22014
22015   /* Check that the result is either a failure, or close enough
22016      to the correct answer that we can assume the discrepancy is
22017      due to leap seconds.  */
22018   return (t == (time_t) -1
22019           || (0 < t && answer - 120 <= t && t <= answer + 120));
22020 }
22021
22022 int
22023 main ()
22024 {
22025   time_t t, delta;
22026   int i, j;
22027
22028   /* This test makes some buggy mktime implementations loop.
22029      Give up after 60 seconds; a mktime slower than that
22030      isn't worth using anyway.  */
22031   alarm (60);
22032
22033   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22034     continue;
22035   time_t_max--;
22036   if ((time_t) -1 < 0)
22037     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
22038       continue;
22039   delta = time_t_max / 997; /* a suitable prime number */
22040   for (i = 0; i < N_STRINGS; i++)
22041     {
22042       if (tz_strings[i])
22043         putenv (tz_strings[i]);
22044
22045       for (t = 0; t <= time_t_max - delta; t += delta)
22046         if (! mktime_test (t))
22047           return 1;
22048       if (! (mktime_test ((time_t) 1)
22049              && mktime_test ((time_t) (60 * 60))
22050              && mktime_test ((time_t) (60 * 60 * 24))))
22051         return 1;
22052
22053       for (j = 1; 0 < j; j *= 2)
22054         if (! bigtime_test (j))
22055           return 1;
22056       if (! bigtime_test (j - 1))
22057         return 1;
22058     }
22059   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
22060 }
22061 _ACEOF
22062 rm -f conftest$ac_exeext
22063 if { (ac_try="$ac_link"
22064 case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_link") 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22073   { (case "(($ac_try" in
22074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075   *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078   (eval "$ac_try") 2>&5
22079   ac_status=$?
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); }; }; then
22082   ac_cv_func_working_mktime=yes
22083 else
22084   echo "$as_me: program exited with status $ac_status" >&5
22085 echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ( exit $ac_status )
22089 ac_cv_func_working_mktime=no
22090 fi
22091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22092 fi
22093
22094
22095 fi
22096 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22097 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
22098 if test $ac_cv_func_working_mktime = no; then
22099   case " $LIBOBJS " in
22100   *" mktime.$ac_objext "* ) ;;
22101   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
22102  ;;
22103 esac
22104
22105 fi
22106
22107 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22108 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22109 if test "${ac_cv_type_signal+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 #include <sys/types.h>
22119 #include <signal.h>
22120
22121 int
22122 main ()
22123 {
22124 return *(signal (0, 0)) (0) == 1;
22125   ;
22126   return 0;
22127 }
22128 _ACEOF
22129 rm -f conftest.$ac_objext
22130 if { (ac_try="$ac_compile"
22131 case "(($ac_try" in
22132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133   *) ac_try_echo=$ac_try;;
22134 esac
22135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22136   (eval "$ac_compile") 2>conftest.er1
22137   ac_status=$?
22138   grep -v '^ *+' conftest.er1 >conftest.err
22139   rm -f conftest.er1
22140   cat conftest.err >&5
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); } && {
22143          test -z "$ac_c_werror_flag" ||
22144          test ! -s conftest.err
22145        } && test -s conftest.$ac_objext; then
22146   ac_cv_type_signal=int
22147 else
22148   echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22150
22151         ac_cv_type_signal=void
22152 fi
22153
22154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22155 fi
22156 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22157 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22158
22159 cat >>confdefs.h <<_ACEOF
22160 #define RETSIGTYPE $ac_cv_type_signal
22161 _ACEOF
22162
22163
22164 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
22165 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
22166 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
22167   echo $ECHO_N "(cached) $ECHO_C" >&6
22168 else
22169   rm -f conftest.sym conftest.file
22170 echo >conftest.file
22171 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
22172   if test "$cross_compiling" = yes; then
22173   ac_cv_func_lstat_dereferences_slashed_symlink=no
22174 else
22175   cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 $ac_includes_default
22182 int
22183 main ()
22184 {
22185 struct stat sbuf;
22186      /* Linux will dereference the symlink and fail.
22187         That is better in the sense that it means we will not
22188         have to compile and use the lstat wrapper.  */
22189      return lstat ("conftest.sym/", &sbuf) == 0;
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest$ac_exeext
22195 if { (ac_try="$ac_link"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_link") 2>&5
22202   ac_status=$?
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22205   { (case "(($ac_try" in
22206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22207   *) ac_try_echo=$ac_try;;
22208 esac
22209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22210   (eval "$ac_try") 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; }; then
22214   ac_cv_func_lstat_dereferences_slashed_symlink=yes
22215 else
22216   echo "$as_me: program exited with status $ac_status" >&5
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220 ( exit $ac_status )
22221 ac_cv_func_lstat_dereferences_slashed_symlink=no
22222 fi
22223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22224 fi
22225
22226
22227 else
22228   # If the `ln -s' command failed, then we probably don't even
22229   # have an lstat function.
22230   ac_cv_func_lstat_dereferences_slashed_symlink=no
22231 fi
22232 rm -f conftest.sym conftest.file
22233
22234 fi
22235 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
22236 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
22237
22238 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
22239
22240 cat >>confdefs.h <<_ACEOF
22241 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
22242 _ACEOF
22243
22244
22245 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
22246   case " $LIBOBJS " in
22247   *" lstat.$ac_objext "* ) ;;
22248   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
22249  ;;
22250 esac
22251
22252 fi
22253
22254 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22255 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
22256 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259   if test "$cross_compiling" = yes; then
22260   ac_cv_func_stat_empty_string_bug=yes
22261 else
22262   cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h.  */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h.  */
22268 $ac_includes_default
22269 int
22270 main ()
22271 {
22272 struct stat sbuf;
22273   return stat ("", &sbuf) == 0;
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_link") 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22289   { (case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_try") 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; }; then
22298   ac_cv_func_stat_empty_string_bug=no
22299 else
22300   echo "$as_me: program exited with status $ac_status" >&5
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ( exit $ac_status )
22305 ac_cv_func_stat_empty_string_bug=yes
22306 fi
22307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22308 fi
22309
22310
22311 fi
22312 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
22313 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
22314 if test $ac_cv_func_stat_empty_string_bug = yes; then
22315   case " $LIBOBJS " in
22316   *" stat.$ac_objext "* ) ;;
22317   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
22318  ;;
22319 esac
22320
22321
22322 cat >>confdefs.h <<_ACEOF
22323 #define HAVE_STAT_EMPTY_STRING_BUG 1
22324 _ACEOF
22325
22326 fi
22327
22328
22329 for ac_func in strftime
22330 do
22331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22335   echo $ECHO_N "(cached) $ECHO_C" >&6
22336 else
22337   cat >conftest.$ac_ext <<_ACEOF
22338 /* confdefs.h.  */
22339 _ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h.  */
22343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22345 #define $ac_func innocuous_$ac_func
22346
22347 /* System header to define __stub macros and hopefully few prototypes,
22348     which can conflict with char $ac_func (); below.
22349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22350     <limits.h> exists even on freestanding compilers.  */
22351
22352 #ifdef __STDC__
22353 # include <limits.h>
22354 #else
22355 # include <assert.h>
22356 #endif
22357
22358 #undef $ac_func
22359
22360 /* Override any GCC internal prototype to avoid an error.
22361    Use char because int might match the return type of a GCC
22362    builtin and then its argument prototype would still apply.  */
22363 #ifdef __cplusplus
22364 extern "C"
22365 #endif
22366 char $ac_func ();
22367 /* The GNU C library defines this for functions which it implements
22368     to always fail with ENOSYS.  Some functions are actually named
22369     something starting with __ and the normal name is an alias.  */
22370 #if defined __stub_$ac_func || defined __stub___$ac_func
22371 choke me
22372 #endif
22373
22374 int
22375 main ()
22376 {
22377 return $ac_func ();
22378   ;
22379   return 0;
22380 }
22381 _ACEOF
22382 rm -f conftest.$ac_objext conftest$ac_exeext
22383 if { (ac_try="$ac_link"
22384 case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_link") 2>conftest.er1
22390   ac_status=$?
22391   grep -v '^ *+' conftest.er1 >conftest.err
22392   rm -f conftest.er1
22393   cat conftest.err >&5
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } && {
22396          test -z "$ac_c_werror_flag" ||
22397          test ! -s conftest.err
22398        } && test -s conftest$ac_exeext &&
22399        $as_test_x conftest$ac_exeext; then
22400   eval "$as_ac_var=yes"
22401 else
22402   echo "$as_me: failed program was:" >&5
22403 sed 's/^/| /' conftest.$ac_ext >&5
22404
22405         eval "$as_ac_var=no"
22406 fi
22407
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409       conftest$ac_exeext conftest.$ac_ext
22410 fi
22411 ac_res=`eval echo '${'$as_ac_var'}'`
22412                { echo "$as_me:$LINENO: result: $ac_res" >&5
22413 echo "${ECHO_T}$ac_res" >&6; }
22414 if test `eval echo '${'$as_ac_var'}'` = yes; then
22415   cat >>confdefs.h <<_ACEOF
22416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22417 _ACEOF
22418
22419 else
22420   # strftime is in -lintl on SCO UNIX.
22421 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
22422 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
22423 if test "${ac_cv_lib_intl_strftime+set}" = set; then
22424   echo $ECHO_N "(cached) $ECHO_C" >&6
22425 else
22426   ac_check_lib_save_LIBS=$LIBS
22427 LIBS="-lintl  $LIBS"
22428 cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434
22435 /* Override any GCC internal prototype to avoid an error.
22436    Use char because int might match the return type of a GCC
22437    builtin and then its argument prototype would still apply.  */
22438 #ifdef __cplusplus
22439 extern "C"
22440 #endif
22441 char strftime ();
22442 int
22443 main ()
22444 {
22445 return strftime ();
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext conftest$ac_exeext
22451 if { (ac_try="$ac_link"
22452 case "(($ac_try" in
22453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454   *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457   (eval "$ac_link") 2>conftest.er1
22458   ac_status=$?
22459   grep -v '^ *+' conftest.er1 >conftest.err
22460   rm -f conftest.er1
22461   cat conftest.err >&5
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); } && {
22464          test -z "$ac_c_werror_flag" ||
22465          test ! -s conftest.err
22466        } && test -s conftest$ac_exeext &&
22467        $as_test_x conftest$ac_exeext; then
22468   ac_cv_lib_intl_strftime=yes
22469 else
22470   echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473         ac_cv_lib_intl_strftime=no
22474 fi
22475
22476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22477       conftest$ac_exeext conftest.$ac_ext
22478 LIBS=$ac_check_lib_save_LIBS
22479 fi
22480 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
22481 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
22482 if test $ac_cv_lib_intl_strftime = yes; then
22483   cat >>confdefs.h <<\_ACEOF
22484 #define HAVE_STRFTIME 1
22485 _ACEOF
22486
22487 LIBS="-lintl $LIBS"
22488 fi
22489
22490 fi
22491 done
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506 for ac_func in bzero clock_gettime ftruncate gettimeofday inet_ntoa memset strchr strerror strlcat strrchr strstr strtol strtoul
22507 do
22508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22522 #define $ac_func innocuous_$ac_func
22523
22524 /* System header to define __stub macros and hopefully few prototypes,
22525     which can conflict with char $ac_func (); below.
22526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22527     <limits.h> exists even on freestanding compilers.  */
22528
22529 #ifdef __STDC__
22530 # include <limits.h>
22531 #else
22532 # include <assert.h>
22533 #endif
22534
22535 #undef $ac_func
22536
22537 /* Override any GCC internal prototype to avoid an error.
22538    Use char because int might match the return type of a GCC
22539    builtin and then its argument prototype would still apply.  */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char $ac_func ();
22544 /* The GNU C library defines this for functions which it implements
22545     to always fail with ENOSYS.  Some functions are actually named
22546     something starting with __ and the normal name is an alias.  */
22547 #if defined __stub_$ac_func || defined __stub___$ac_func
22548 choke me
22549 #endif
22550
22551 int
22552 main ()
22553 {
22554 return $ac_func ();
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_link") 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } && {
22573          test -z "$ac_c_werror_flag" ||
22574          test ! -s conftest.err
22575        } && test -s conftest$ac_exeext &&
22576        $as_test_x conftest$ac_exeext; then
22577   eval "$as_ac_var=yes"
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582         eval "$as_ac_var=no"
22583 fi
22584
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586       conftest$ac_exeext conftest.$ac_ext
22587 fi
22588 ac_res=`eval echo '${'$as_ac_var'}'`
22589                { echo "$as_me:$LINENO: result: $ac_res" >&5
22590 echo "${ECHO_T}$ac_res" >&6; }
22591 if test `eval echo '${'$as_ac_var'}'` = yes; then
22592   cat >>confdefs.h <<_ACEOF
22593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22594 _ACEOF
22595
22596 fi
22597 done
22598
22599
22600 # sys/queue.h exists on most systems, but its capabilities vary a great deal.
22601 # test for LIST_FIRST and TAILQ_FOREACH_SAFE, which appears to not exist in
22602 # all of them, and are necessary for OpenBSM.
22603 cat >conftest.$ac_ext <<_ACEOF
22604 /* confdefs.h.  */
22605 _ACEOF
22606 cat confdefs.h >>conftest.$ac_ext
22607 cat >>conftest.$ac_ext <<_ACEOF
22608 /* end confdefs.h.  */
22609
22610         #include <sys/queue.h>
22611
22612 int
22613 main ()
22614 {
22615
22616
22617         #ifndef LIST_FIRST
22618         #error LIST_FIRST missing
22619         #endif
22620         #ifndef TAILQ_FOREACH_SAFE
22621         #error TAILQ_FOREACH_SAFE
22622         #endif
22623
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632   *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635   (eval "$ac_link") 2>conftest.er1
22636   ac_status=$?
22637   grep -v '^ *+' conftest.er1 >conftest.err
22638   rm -f conftest.er1
22639   cat conftest.err >&5
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); } && {
22642          test -z "$ac_c_werror_flag" ||
22643          test ! -s conftest.err
22644        } && test -s conftest$ac_exeext &&
22645        $as_test_x conftest$ac_exeext; then
22646
22647
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_FULL_QUEUE_H
22650 _ACEOF
22651
22652
22653 else
22654   echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657
22658 fi
22659
22660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22661       conftest$ac_exeext conftest.$ac_ext
22662
22663 # Systems may not define key audit system calls, in which case libbsm cannot
22664 # depend on them or it will generate link-time or run-time errors.  Test for
22665 # just one.
22666 cat >conftest.$ac_ext <<_ACEOF
22667 /* confdefs.h.  */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h.  */
22672
22673         #include <stdlib.h>
22674
22675         extern int auditon(int, void *, int);
22676
22677 int
22678 main ()
22679 {
22680
22681         int err;
22682
22683         err = auditon(0, NULL, 0);
22684
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext conftest$ac_exeext
22690 if { (ac_try="$ac_link"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696   (eval "$ac_link") 2>conftest.er1
22697   ac_status=$?
22698   grep -v '^ *+' conftest.er1 >conftest.err
22699   rm -f conftest.er1
22700   cat conftest.err >&5
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); } && {
22703          test -z "$ac_c_werror_flag" ||
22704          test ! -s conftest.err
22705        } && test -s conftest$ac_exeext &&
22706        $as_test_x conftest$ac_exeext; then
22707
22708
22709 cat >>confdefs.h <<\_ACEOF
22710 #define HAVE_AUDIT_SYSCALLS
22711 _ACEOF
22712
22713 have_audit_syscalls=true
22714
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719
22720 have_audit_syscalls=false
22721
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725       conftest$ac_exeext conftest.$ac_ext
22726  if $have_audit_syscalls; then
22727   HAVE_AUDIT_SYSCALLS_TRUE=
22728   HAVE_AUDIT_SYSCALLS_FALSE='#'
22729 else
22730   HAVE_AUDIT_SYSCALLS_TRUE='#'
22731   HAVE_AUDIT_SYSCALLS_FALSE=
22732 fi
22733
22734
22735 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 libbsm/Makefile modules/Makefile modules/auditfilter_noop/Makefile man/Makefile test/Makefile test/bsm/Makefile tools/Makefile"
22736
22737
22738 cat >confcache <<\_ACEOF
22739 # This file is a shell script that caches the results of configure
22740 # tests run on this system so they can be shared between configure
22741 # scripts and configure runs, see configure's option --config-cache.
22742 # It is not useful on other systems.  If it contains results you don't
22743 # want to keep, you may remove or edit it.
22744 #
22745 # config.status only pays attention to the cache file if you give it
22746 # the --recheck option to rerun configure.
22747 #
22748 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22749 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22750 # following values.
22751
22752 _ACEOF
22753
22754 # The following way of writing the cache mishandles newlines in values,
22755 # but we know of no workaround that is simple, portable, and efficient.
22756 # So, we kill variables containing newlines.
22757 # Ultrix sh set writes to stderr and can't be redirected directly,
22758 # and sets the high bit in the cache file unless we assign to the vars.
22759 (
22760   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22761     eval ac_val=\$$ac_var
22762     case $ac_val in #(
22763     *${as_nl}*)
22764       case $ac_var in #(
22765       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22766 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22767       esac
22768       case $ac_var in #(
22769       _ | IFS | as_nl) ;; #(
22770       *) $as_unset $ac_var ;;
22771       esac ;;
22772     esac
22773   done
22774
22775   (set) 2>&1 |
22776     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22777     *${as_nl}ac_space=\ *)
22778       # `set' does not quote correctly, so add quotes (double-quote
22779       # substitution turns \\\\ into \\, and sed turns \\ into \).
22780       sed -n \
22781         "s/'/'\\\\''/g;
22782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22783       ;; #(
22784     *)
22785       # `set' quotes correctly as required by POSIX, so do not add quotes.
22786       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22787       ;;
22788     esac |
22789     sort
22790 ) |
22791   sed '
22792      /^ac_cv_env_/b end
22793      t clear
22794      :clear
22795      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22796      t end
22797      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22798      :end' >>confcache
22799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22800   if test -w "$cache_file"; then
22801     test "x$cache_file" != "x/dev/null" &&
22802       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22803 echo "$as_me: updating cache $cache_file" >&6;}
22804     cat confcache >$cache_file
22805   else
22806     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22807 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22808   fi
22809 fi
22810 rm -f confcache
22811
22812 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22813 # Let make expand exec_prefix.
22814 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22815
22816 DEFS=-DHAVE_CONFIG_H
22817
22818 ac_libobjs=
22819 ac_ltlibobjs=
22820 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22821   # 1. Remove the extension, and $U if already installed.
22822   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22823   ac_i=`echo "$ac_i" | sed "$ac_script"`
22824   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22825   #    will be set to the directory where LIBOBJS objects are built.
22826   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22827   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22828 done
22829 LIBOBJS=$ac_libobjs
22830
22831 LTLIBOBJS=$ac_ltlibobjs
22832
22833
22834 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22835   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22836 Usually this means the macro was only invoked conditionally." >&5
22837 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22838 Usually this means the macro was only invoked conditionally." >&2;}
22839    { (exit 1); exit 1; }; }
22840 fi
22841 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22842   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22843 Usually this means the macro was only invoked conditionally." >&5
22844 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22845 Usually this means the macro was only invoked conditionally." >&2;}
22846    { (exit 1); exit 1; }; }
22847 fi
22848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22849   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22850 Usually this means the macro was only invoked conditionally." >&5
22851 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22852 Usually this means the macro was only invoked conditionally." >&2;}
22853    { (exit 1); exit 1; }; }
22854 fi
22855 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22856   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22857 Usually this means the macro was only invoked conditionally." >&5
22858 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22859 Usually this means the macro was only invoked conditionally." >&2;}
22860    { (exit 1); exit 1; }; }
22861 fi
22862 if test -z "${HAVE_AUDIT_SYSCALLS_TRUE}" && test -z "${HAVE_AUDIT_SYSCALLS_FALSE}"; then
22863   { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22864 Usually this means the macro was only invoked conditionally." >&5
22865 echo "$as_me: error: conditional \"HAVE_AUDIT_SYSCALLS\" was never defined.
22866 Usually this means the macro was only invoked conditionally." >&2;}
22867    { (exit 1); exit 1; }; }
22868 fi
22869
22870 : ${CONFIG_STATUS=./config.status}
22871 ac_clean_files_save=$ac_clean_files
22872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22873 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22874 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22875 cat >$CONFIG_STATUS <<_ACEOF
22876 #! $SHELL
22877 # Generated by $as_me.
22878 # Run this file to recreate the current configuration.
22879 # Compiler output produced by configure, useful for debugging
22880 # configure, is in config.log if it exists.
22881
22882 debug=false
22883 ac_cs_recheck=false
22884 ac_cs_silent=false
22885 SHELL=\${CONFIG_SHELL-$SHELL}
22886 _ACEOF
22887
22888 cat >>$CONFIG_STATUS <<\_ACEOF
22889 ## --------------------- ##
22890 ## M4sh Initialization.  ##
22891 ## --------------------- ##
22892
22893 # Be more Bourne compatible
22894 DUALCASE=1; export DUALCASE # for MKS sh
22895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22896   emulate sh
22897   NULLCMD=:
22898   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22899   # is contrary to our usage.  Disable this feature.
22900   alias -g '${1+"$@"}'='"$@"'
22901   setopt NO_GLOB_SUBST
22902 else
22903   case `(set -o) 2>/dev/null` in
22904   *posix*) set -o posix ;;
22905 esac
22906
22907 fi
22908
22909
22910
22911
22912 # PATH needs CR
22913 # Avoid depending upon Character Ranges.
22914 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22915 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22916 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22917 as_cr_digits='0123456789'
22918 as_cr_alnum=$as_cr_Letters$as_cr_digits
22919
22920 # The user is always right.
22921 if test "${PATH_SEPARATOR+set}" != set; then
22922   echo "#! /bin/sh" >conf$$.sh
22923   echo  "exit 0"   >>conf$$.sh
22924   chmod +x conf$$.sh
22925   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22926     PATH_SEPARATOR=';'
22927   else
22928     PATH_SEPARATOR=:
22929   fi
22930   rm -f conf$$.sh
22931 fi
22932
22933 # Support unset when possible.
22934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22935   as_unset=unset
22936 else
22937   as_unset=false
22938 fi
22939
22940
22941 # IFS
22942 # We need space, tab and new line, in precisely that order.  Quoting is
22943 # there to prevent editors from complaining about space-tab.
22944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22945 # splitting by setting IFS to empty value.)
22946 as_nl='
22947 '
22948 IFS=" ""        $as_nl"
22949
22950 # Find who we are.  Look in the path if we contain no directory separator.
22951 case $0 in
22952   *[\\/]* ) as_myself=$0 ;;
22953   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22954 for as_dir in $PATH
22955 do
22956   IFS=$as_save_IFS
22957   test -z "$as_dir" && as_dir=.
22958   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22959 done
22960 IFS=$as_save_IFS
22961
22962      ;;
22963 esac
22964 # We did not find ourselves, most probably we were run as `sh COMMAND'
22965 # in which case we are not to be found in the path.
22966 if test "x$as_myself" = x; then
22967   as_myself=$0
22968 fi
22969 if test ! -f "$as_myself"; then
22970   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22971   { (exit 1); exit 1; }
22972 fi
22973
22974 # Work around bugs in pre-3.0 UWIN ksh.
22975 for as_var in ENV MAIL MAILPATH
22976 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22977 done
22978 PS1='$ '
22979 PS2='> '
22980 PS4='+ '
22981
22982 # NLS nuisances.
22983 for as_var in \
22984   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22985   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22986   LC_TELEPHONE LC_TIME
22987 do
22988   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22989     eval $as_var=C; export $as_var
22990   else
22991     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22992   fi
22993 done
22994
22995 # Required to use basename.
22996 if expr a : '\(a\)' >/dev/null 2>&1 &&
22997    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22998   as_expr=expr
22999 else
23000   as_expr=false
23001 fi
23002
23003 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23004   as_basename=basename
23005 else
23006   as_basename=false
23007 fi
23008
23009
23010 # Name of the executable.
23011 as_me=`$as_basename -- "$0" ||
23012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23013          X"$0" : 'X\(//\)$' \| \
23014          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23015 echo X/"$0" |
23016     sed '/^.*\/\([^/][^/]*\)\/*$/{
23017             s//\1/
23018             q
23019           }
23020           /^X\/\(\/\/\)$/{
23021             s//\1/
23022             q
23023           }
23024           /^X\/\(\/\).*/{
23025             s//\1/
23026             q
23027           }
23028           s/.*/./; q'`
23029
23030 # CDPATH.
23031 $as_unset CDPATH
23032
23033
23034
23035   as_lineno_1=$LINENO
23036   as_lineno_2=$LINENO
23037   test "x$as_lineno_1" != "x$as_lineno_2" &&
23038   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23039
23040   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23041   # uniformly replaced by the line number.  The first 'sed' inserts a
23042   # line-number line after each line using $LINENO; the second 'sed'
23043   # does the real work.  The second script uses 'N' to pair each
23044   # line-number line with the line containing $LINENO, and appends
23045   # trailing '-' during substitution so that $LINENO is not a special
23046   # case at line end.
23047   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23048   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23049   # E. McMahon (1931-1989) for sed's syntax.  :-)
23050   sed -n '
23051     p
23052     /[$]LINENO/=
23053   ' <$as_myself |
23054     sed '
23055       s/[$]LINENO.*/&-/
23056       t lineno
23057       b
23058       :lineno
23059       N
23060       :loop
23061       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23062       t loop
23063       s/-\n.*//
23064     ' >$as_me.lineno &&
23065   chmod +x "$as_me.lineno" ||
23066     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23067    { (exit 1); exit 1; }; }
23068
23069   # Don't try to exec as it changes $[0], causing all sort of problems
23070   # (the dirname of $[0] is not the place where we might find the
23071   # original and so on.  Autoconf is especially sensitive to this).
23072   . "./$as_me.lineno"
23073   # Exit status is that of the last command.
23074   exit
23075 }
23076
23077
23078 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23079   as_dirname=dirname
23080 else
23081   as_dirname=false
23082 fi
23083
23084 ECHO_C= ECHO_N= ECHO_T=
23085 case `echo -n x` in
23086 -n*)
23087   case `echo 'x\c'` in
23088   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23089   *)   ECHO_C='\c';;
23090   esac;;
23091 *)
23092   ECHO_N='-n';;
23093 esac
23094
23095 if expr a : '\(a\)' >/dev/null 2>&1 &&
23096    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23097   as_expr=expr
23098 else
23099   as_expr=false
23100 fi
23101
23102 rm -f conf$$ conf$$.exe conf$$.file
23103 if test -d conf$$.dir; then
23104   rm -f conf$$.dir/conf$$.file
23105 else
23106   rm -f conf$$.dir
23107   mkdir conf$$.dir
23108 fi
23109 echo >conf$$.file
23110 if ln -s conf$$.file conf$$ 2>/dev/null; then
23111   as_ln_s='ln -s'
23112   # ... but there are two gotchas:
23113   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23114   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23115   # In both cases, we have to default to `cp -p'.
23116   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23117     as_ln_s='cp -p'
23118 elif ln conf$$.file conf$$ 2>/dev/null; then
23119   as_ln_s=ln
23120 else
23121   as_ln_s='cp -p'
23122 fi
23123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23124 rmdir conf$$.dir 2>/dev/null
23125
23126 if mkdir -p . 2>/dev/null; then
23127   as_mkdir_p=:
23128 else
23129   test -d ./-p && rmdir ./-p
23130   as_mkdir_p=false
23131 fi
23132
23133 if test -x / >/dev/null 2>&1; then
23134   as_test_x='test -x'
23135 else
23136   if ls -dL / >/dev/null 2>&1; then
23137     as_ls_L_option=L
23138   else
23139     as_ls_L_option=
23140   fi
23141   as_test_x='
23142     eval sh -c '\''
23143       if test -d "$1"; then
23144         test -d "$1/.";
23145       else
23146         case $1 in
23147         -*)set "./$1";;
23148         esac;
23149         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23150         ???[sx]*):;;*)false;;esac;fi
23151     '\'' sh
23152   '
23153 fi
23154 as_executable_p=$as_test_x
23155
23156 # Sed expression to map a string onto a valid CPP name.
23157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23158
23159 # Sed expression to map a string onto a valid variable name.
23160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23161
23162
23163 exec 6>&1
23164
23165 # Save the log message, to keep $[0] and so on meaningful, and to
23166 # report actual input values of CONFIG_FILES etc. instead of their
23167 # values after options handling.
23168 ac_log="
23169 This file was extended by OpenBSM $as_me 1.0, which was
23170 generated by GNU Autoconf 2.61.  Invocation command line was
23171
23172   CONFIG_FILES    = $CONFIG_FILES
23173   CONFIG_HEADERS  = $CONFIG_HEADERS
23174   CONFIG_LINKS    = $CONFIG_LINKS
23175   CONFIG_COMMANDS = $CONFIG_COMMANDS
23176   $ $0 $@
23177
23178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23179 "
23180
23181 _ACEOF
23182
23183 cat >>$CONFIG_STATUS <<_ACEOF
23184 # Files that config.status was made for.
23185 config_files="$ac_config_files"
23186 config_headers="$ac_config_headers"
23187 config_commands="$ac_config_commands"
23188
23189 _ACEOF
23190
23191 cat >>$CONFIG_STATUS <<\_ACEOF
23192 ac_cs_usage="\
23193 \`$as_me' instantiates files from templates according to the
23194 current configuration.
23195
23196 Usage: $0 [OPTIONS] [FILE]...
23197
23198   -h, --help       print this help, then exit
23199   -V, --version    print version number and configuration settings, then exit
23200   -q, --quiet      do not print progress messages
23201   -d, --debug      don't remove temporary files
23202       --recheck    update $as_me by reconfiguring in the same conditions
23203   --file=FILE[:TEMPLATE]
23204                    instantiate the configuration file FILE
23205   --header=FILE[:TEMPLATE]
23206                    instantiate the configuration header FILE
23207
23208 Configuration files:
23209 $config_files
23210
23211 Configuration headers:
23212 $config_headers
23213
23214 Configuration commands:
23215 $config_commands
23216
23217 Report bugs to <bug-autoconf@gnu.org>."
23218
23219 _ACEOF
23220 cat >>$CONFIG_STATUS <<_ACEOF
23221 ac_cs_version="\\
23222 OpenBSM config.status 1.0
23223 configured by $0, generated by GNU Autoconf 2.61,
23224   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23225
23226 Copyright (C) 2006 Free Software Foundation, Inc.
23227 This config.status script is free software; the Free Software Foundation
23228 gives unlimited permission to copy, distribute and modify it."
23229
23230 ac_pwd='$ac_pwd'
23231 srcdir='$srcdir'
23232 INSTALL='$INSTALL'
23233 MKDIR_P='$MKDIR_P'
23234 _ACEOF
23235
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23237 # If no file are specified by the user, then we need to provide default
23238 # value.  By we need to know if files were specified by the user.
23239 ac_need_defaults=:
23240 while test $# != 0
23241 do
23242   case $1 in
23243   --*=*)
23244     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23245     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23246     ac_shift=:
23247     ;;
23248   *)
23249     ac_option=$1
23250     ac_optarg=$2
23251     ac_shift=shift
23252     ;;
23253   esac
23254
23255   case $ac_option in
23256   # Handling of the options.
23257   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23258     ac_cs_recheck=: ;;
23259   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23260     echo "$ac_cs_version"; exit ;;
23261   --debug | --debu | --deb | --de | --d | -d )
23262     debug=: ;;
23263   --file | --fil | --fi | --f )
23264     $ac_shift
23265     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23266     ac_need_defaults=false;;
23267   --header | --heade | --head | --hea )
23268     $ac_shift
23269     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23270     ac_need_defaults=false;;
23271   --he | --h)
23272     # Conflict between --help and --header
23273     { echo "$as_me: error: ambiguous option: $1
23274 Try \`$0 --help' for more information." >&2
23275    { (exit 1); exit 1; }; };;
23276   --help | --hel | -h )
23277     echo "$ac_cs_usage"; exit ;;
23278   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23279   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23280     ac_cs_silent=: ;;
23281
23282   # This is an error.
23283   -*) { echo "$as_me: error: unrecognized option: $1
23284 Try \`$0 --help' for more information." >&2
23285    { (exit 1); exit 1; }; } ;;
23286
23287   *) ac_config_targets="$ac_config_targets $1"
23288      ac_need_defaults=false ;;
23289
23290   esac
23291   shift
23292 done
23293
23294 ac_configure_extra_args=
23295
23296 if $ac_cs_silent; then
23297   exec 6>/dev/null
23298   ac_configure_extra_args="$ac_configure_extra_args --silent"
23299 fi
23300
23301 _ACEOF
23302 cat >>$CONFIG_STATUS <<_ACEOF
23303 if \$ac_cs_recheck; then
23304   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23305   CONFIG_SHELL=$SHELL
23306   export CONFIG_SHELL
23307   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23308 fi
23309
23310 _ACEOF
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 exec 5>>config.log
23313 {
23314   echo
23315   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23316 ## Running $as_me. ##
23317 _ASBOX
23318   echo "$ac_log"
23319 } >&5
23320
23321 _ACEOF
23322 cat >>$CONFIG_STATUS <<_ACEOF
23323 #
23324 # INIT-COMMANDS
23325 #
23326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23327
23328 _ACEOF
23329
23330 cat >>$CONFIG_STATUS <<\_ACEOF
23331
23332 # Handling of arguments.
23333 for ac_config_target in $ac_config_targets
23334 do
23335   case $ac_config_target in
23336     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
23337     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23338     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23339     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
23340     "bin/audit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/audit/Makefile" ;;
23341     "bin/auditd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditd/Makefile" ;;
23342     "bin/auditfilterd/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditfilterd/Makefile" ;;
23343     "bin/auditreduce/Makefile") CONFIG_FILES="$CONFIG_FILES bin/auditreduce/Makefile" ;;
23344     "bin/praudit/Makefile") CONFIG_FILES="$CONFIG_FILES bin/praudit/Makefile" ;;
23345     "bsm/Makefile") CONFIG_FILES="$CONFIG_FILES bsm/Makefile" ;;
23346     "libbsm/Makefile") CONFIG_FILES="$CONFIG_FILES libbsm/Makefile" ;;
23347     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23348     "modules/auditfilter_noop/Makefile") CONFIG_FILES="$CONFIG_FILES modules/auditfilter_noop/Makefile" ;;
23349     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23350     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
23351     "test/bsm/Makefile") CONFIG_FILES="$CONFIG_FILES test/bsm/Makefile" ;;
23352     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23353
23354   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23355 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23356    { (exit 1); exit 1; }; };;
23357   esac
23358 done
23359
23360
23361 # If the user did not use the arguments to specify the items to instantiate,
23362 # then the envvar interface is used.  Set only those that are not.
23363 # We use the long form for the default assignment because of an extremely
23364 # bizarre bug on SunOS 4.1.3.
23365 if $ac_need_defaults; then
23366   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23367   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23368   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23369 fi
23370
23371 # Have a temporary directory for convenience.  Make it in the build tree
23372 # simply because there is no reason against having it here, and in addition,
23373 # creating and moving files from /tmp can sometimes cause problems.
23374 # Hook for its removal unless debugging.
23375 # Note that there is a small window in which the directory will not be cleaned:
23376 # after its creation but before its name has been assigned to `$tmp'.
23377 $debug ||
23378 {
23379   tmp=
23380   trap 'exit_status=$?
23381   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23382 ' 0
23383   trap '{ (exit 1); exit 1; }' 1 2 13 15
23384 }
23385 # Create a (secure) tmp directory for tmp files.
23386
23387 {
23388   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23389   test -n "$tmp" && test -d "$tmp"
23390 }  ||
23391 {
23392   tmp=./conf$$-$RANDOM
23393   (umask 077 && mkdir "$tmp")
23394 } ||
23395 {
23396    echo "$me: cannot create a temporary directory in ." >&2
23397    { (exit 1); exit 1; }
23398 }
23399
23400 #
23401 # Set up the sed scripts for CONFIG_FILES section.
23402 #
23403
23404 # No need to generate the scripts if there are no CONFIG_FILES.
23405 # This happens for instance when ./config.status config.h
23406 if test -n "$CONFIG_FILES"; then
23407
23408 _ACEOF
23409
23410
23411
23412 ac_delim='%!_!# '
23413 for ac_last_try in false false false false false :; do
23414   cat >conf$$subs.sed <<_ACEOF
23415 SHELL!$SHELL$ac_delim
23416 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23417 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23418 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23419 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23420 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23421 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23422 exec_prefix!$exec_prefix$ac_delim
23423 prefix!$prefix$ac_delim
23424 program_transform_name!$program_transform_name$ac_delim
23425 bindir!$bindir$ac_delim
23426 sbindir!$sbindir$ac_delim
23427 libexecdir!$libexecdir$ac_delim
23428 datarootdir!$datarootdir$ac_delim
23429 datadir!$datadir$ac_delim
23430 sysconfdir!$sysconfdir$ac_delim
23431 sharedstatedir!$sharedstatedir$ac_delim
23432 localstatedir!$localstatedir$ac_delim
23433 includedir!$includedir$ac_delim
23434 oldincludedir!$oldincludedir$ac_delim
23435 docdir!$docdir$ac_delim
23436 infodir!$infodir$ac_delim
23437 htmldir!$htmldir$ac_delim
23438 dvidir!$dvidir$ac_delim
23439 pdfdir!$pdfdir$ac_delim
23440 psdir!$psdir$ac_delim
23441 libdir!$libdir$ac_delim
23442 localedir!$localedir$ac_delim
23443 mandir!$mandir$ac_delim
23444 DEFS!$DEFS$ac_delim
23445 ECHO_C!$ECHO_C$ac_delim
23446 ECHO_N!$ECHO_N$ac_delim
23447 ECHO_T!$ECHO_T$ac_delim
23448 LIBS!$LIBS$ac_delim
23449 build_alias!$build_alias$ac_delim
23450 host_alias!$host_alias$ac_delim
23451 target_alias!$target_alias$ac_delim
23452 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23453 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23454 MAINT!$MAINT$ac_delim
23455 CC!$CC$ac_delim
23456 CFLAGS!$CFLAGS$ac_delim
23457 LDFLAGS!$LDFLAGS$ac_delim
23458 CPPFLAGS!$CPPFLAGS$ac_delim
23459 ac_ct_CC!$ac_ct_CC$ac_delim
23460 EXEEXT!$EXEEXT$ac_delim
23461 OBJEXT!$OBJEXT$ac_delim
23462 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23463 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23464 INSTALL_DATA!$INSTALL_DATA$ac_delim
23465 build!$build$ac_delim
23466 build_cpu!$build_cpu$ac_delim
23467 build_vendor!$build_vendor$ac_delim
23468 build_os!$build_os$ac_delim
23469 host!$host$ac_delim
23470 host_cpu!$host_cpu$ac_delim
23471 host_vendor!$host_vendor$ac_delim
23472 host_os!$host_os$ac_delim
23473 SED!$SED$ac_delim
23474 GREP!$GREP$ac_delim
23475 EGREP!$EGREP$ac_delim
23476 LN_S!$LN_S$ac_delim
23477 ECHO!$ECHO$ac_delim
23478 AR!$AR$ac_delim
23479 RANLIB!$RANLIB$ac_delim
23480 STRIP!$STRIP$ac_delim
23481 CPP!$CPP$ac_delim
23482 CXX!$CXX$ac_delim
23483 CXXFLAGS!$CXXFLAGS$ac_delim
23484 ac_ct_CXX!$ac_ct_CXX$ac_delim
23485 CXXCPP!$CXXCPP$ac_delim
23486 F77!$F77$ac_delim
23487 FFLAGS!$FFLAGS$ac_delim
23488 ac_ct_F77!$ac_ct_F77$ac_delim
23489 LIBTOOL!$LIBTOOL$ac_delim
23490 am__isrc!$am__isrc$ac_delim
23491 CYGPATH_W!$CYGPATH_W$ac_delim
23492 PACKAGE!$PACKAGE$ac_delim
23493 VERSION!$VERSION$ac_delim
23494 ACLOCAL!$ACLOCAL$ac_delim
23495 AUTOCONF!$AUTOCONF$ac_delim
23496 AUTOMAKE!$AUTOMAKE$ac_delim
23497 AUTOHEADER!$AUTOHEADER$ac_delim
23498 MAKEINFO!$MAKEINFO$ac_delim
23499 install_sh!$install_sh$ac_delim
23500 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23501 mkdir_p!$mkdir_p$ac_delim
23502 AWK!$AWK$ac_delim
23503 SET_MAKE!$SET_MAKE$ac_delim
23504 am__leading_dot!$am__leading_dot$ac_delim
23505 AMTAR!$AMTAR$ac_delim
23506 am__tar!$am__tar$ac_delim
23507 am__untar!$am__untar$ac_delim
23508 DEPDIR!$DEPDIR$ac_delim
23509 am__include!$am__include$ac_delim
23510 am__quote!$am__quote$ac_delim
23511 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23512 _ACEOF
23513
23514   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23515     break
23516   elif $ac_last_try; then
23517     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23518 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23519    { (exit 1); exit 1; }; }
23520   else
23521     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23522   fi
23523 done
23524
23525 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23526 if test -n "$ac_eof"; then
23527   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23528   ac_eof=`expr $ac_eof + 1`
23529 fi
23530
23531 cat >>$CONFIG_STATUS <<_ACEOF
23532 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23534 _ACEOF
23535 sed '
23536 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23537 s/^/s,@/; s/!/@,|#_!!_#|/
23538 :n
23539 t n
23540 s/'"$ac_delim"'$/,g/; t
23541 s/$/\\/; p
23542 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23543 ' >>$CONFIG_STATUS <conf$$subs.sed
23544 rm -f conf$$subs.sed
23545 cat >>$CONFIG_STATUS <<_ACEOF
23546 CEOF$ac_eof
23547 _ACEOF
23548
23549
23550 ac_delim='%!_!# '
23551 for ac_last_try in false false false false false :; do
23552   cat >conf$$subs.sed <<_ACEOF
23553 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23554 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23555 CCDEPMODE!$CCDEPMODE$ac_delim
23556 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23557 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23558 CXXDEPMODE!$CXXDEPMODE$ac_delim
23559 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23560 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23561 LIBOBJS!$LIBOBJS$ac_delim
23562 HAVE_AUDIT_SYSCALLS_TRUE!$HAVE_AUDIT_SYSCALLS_TRUE$ac_delim
23563 HAVE_AUDIT_SYSCALLS_FALSE!$HAVE_AUDIT_SYSCALLS_FALSE$ac_delim
23564 LTLIBOBJS!$LTLIBOBJS$ac_delim
23565 _ACEOF
23566
23567   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
23568     break
23569   elif $ac_last_try; then
23570     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572    { (exit 1); exit 1; }; }
23573   else
23574     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23575   fi
23576 done
23577
23578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579 if test -n "$ac_eof"; then
23580   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581   ac_eof=`expr $ac_eof + 1`
23582 fi
23583
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23587 _ACEOF
23588 sed '
23589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590 s/^/s,@/; s/!/@,|#_!!_#|/
23591 :n
23592 t n
23593 s/'"$ac_delim"'$/,g/; t
23594 s/$/\\/; p
23595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596 ' >>$CONFIG_STATUS <conf$$subs.sed
23597 rm -f conf$$subs.sed
23598 cat >>$CONFIG_STATUS <<_ACEOF
23599 :end
23600 s/|#_!!_#|//g
23601 CEOF$ac_eof
23602 _ACEOF
23603
23604
23605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23607 # trailing colons and then remove the whole line if VPATH becomes empty
23608 # (actually we leave an empty line to preserve line numbers).
23609 if test "x$srcdir" = x.; then
23610   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23611 s/:*\$(srcdir):*/:/
23612 s/:*\${srcdir}:*/:/
23613 s/:*@srcdir@:*/:/
23614 s/^\([^=]*=[     ]*\):*/\1/
23615 s/:*$//
23616 s/^[^=]*=[       ]*$//
23617 }'
23618 fi
23619
23620 cat >>$CONFIG_STATUS <<\_ACEOF
23621 fi # test -n "$CONFIG_FILES"
23622
23623
23624 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23625 do
23626   case $ac_tag in
23627   :[FHLC]) ac_mode=$ac_tag; continue;;
23628   esac
23629   case $ac_mode$ac_tag in
23630   :[FHL]*:*);;
23631   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23632 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23633    { (exit 1); exit 1; }; };;
23634   :[FH]-) ac_tag=-:-;;
23635   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23636   esac
23637   ac_save_IFS=$IFS
23638   IFS=:
23639   set x $ac_tag
23640   IFS=$ac_save_IFS
23641   shift
23642   ac_file=$1
23643   shift
23644
23645   case $ac_mode in
23646   :L) ac_source=$1;;
23647   :[FH])
23648     ac_file_inputs=
23649     for ac_f
23650     do
23651       case $ac_f in
23652       -) ac_f="$tmp/stdin";;
23653       *) # Look for the file first in the build tree, then in the source tree
23654          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23655          # because $ac_f cannot contain `:'.
23656          test -f "$ac_f" ||
23657            case $ac_f in
23658            [\\/$]*) false;;
23659            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23660            esac ||
23661            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23662 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23663    { (exit 1); exit 1; }; };;
23664       esac
23665       ac_file_inputs="$ac_file_inputs $ac_f"
23666     done
23667
23668     # Let's still pretend it is `configure' which instantiates (i.e., don't
23669     # use $as_me), people would be surprised to read:
23670     #    /* config.h.  Generated by config.status.  */
23671     configure_input="Generated from "`IFS=:
23672           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23673     if test x"$ac_file" != x-; then
23674       configure_input="$ac_file.  $configure_input"
23675       { echo "$as_me:$LINENO: creating $ac_file" >&5
23676 echo "$as_me: creating $ac_file" >&6;}
23677     fi
23678
23679     case $ac_tag in
23680     *:-:* | *:-) cat >"$tmp/stdin";;
23681     esac
23682     ;;
23683   esac
23684
23685   ac_dir=`$as_dirname -- "$ac_file" ||
23686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23687          X"$ac_file" : 'X\(//\)[^/]' \| \
23688          X"$ac_file" : 'X\(//\)$' \| \
23689          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23690 echo X"$ac_file" |
23691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23692             s//\1/
23693             q
23694           }
23695           /^X\(\/\/\)[^/].*/{
23696             s//\1/
23697             q
23698           }
23699           /^X\(\/\/\)$/{
23700             s//\1/
23701             q
23702           }
23703           /^X\(\/\).*/{
23704             s//\1/
23705             q
23706           }
23707           s/.*/./; q'`
23708   { as_dir="$ac_dir"
23709   case $as_dir in #(
23710   -*) as_dir=./$as_dir;;
23711   esac
23712   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23713     as_dirs=
23714     while :; do
23715       case $as_dir in #(
23716       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23717       *) as_qdir=$as_dir;;
23718       esac
23719       as_dirs="'$as_qdir' $as_dirs"
23720       as_dir=`$as_dirname -- "$as_dir" ||
23721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23722          X"$as_dir" : 'X\(//\)[^/]' \| \
23723          X"$as_dir" : 'X\(//\)$' \| \
23724          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23725 echo X"$as_dir" |
23726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23727             s//\1/
23728             q
23729           }
23730           /^X\(\/\/\)[^/].*/{
23731             s//\1/
23732             q
23733           }
23734           /^X\(\/\/\)$/{
23735             s//\1/
23736             q
23737           }
23738           /^X\(\/\).*/{
23739             s//\1/
23740             q
23741           }
23742           s/.*/./; q'`
23743       test -d "$as_dir" && break
23744     done
23745     test -z "$as_dirs" || eval "mkdir $as_dirs"
23746   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23747 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23748    { (exit 1); exit 1; }; }; }
23749   ac_builddir=.
23750
23751 case "$ac_dir" in
23752 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23753 *)
23754   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23755   # A ".." for each directory in $ac_dir_suffix.
23756   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23757   case $ac_top_builddir_sub in
23758   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23759   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23760   esac ;;
23761 esac
23762 ac_abs_top_builddir=$ac_pwd
23763 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23764 # for backward compatibility:
23765 ac_top_builddir=$ac_top_build_prefix
23766
23767 case $srcdir in
23768   .)  # We are building in place.
23769     ac_srcdir=.
23770     ac_top_srcdir=$ac_top_builddir_sub
23771     ac_abs_top_srcdir=$ac_pwd ;;
23772   [\\/]* | ?:[\\/]* )  # Absolute name.
23773     ac_srcdir=$srcdir$ac_dir_suffix;
23774     ac_top_srcdir=$srcdir
23775     ac_abs_top_srcdir=$srcdir ;;
23776   *) # Relative name.
23777     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23778     ac_top_srcdir=$ac_top_build_prefix$srcdir
23779     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23780 esac
23781 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23782
23783
23784   case $ac_mode in
23785   :F)
23786   #
23787   # CONFIG_FILE
23788   #
23789
23790   case $INSTALL in
23791   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23792   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23793   esac
23794   ac_MKDIR_P=$MKDIR_P
23795   case $MKDIR_P in
23796   [\\/$]* | ?:[\\/]* ) ;;
23797   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23798   esac
23799 _ACEOF
23800
23801 cat >>$CONFIG_STATUS <<\_ACEOF
23802 # If the template does not know about datarootdir, expand it.
23803 # FIXME: This hack should be removed a few years after 2.60.
23804 ac_datarootdir_hack=; ac_datarootdir_seen=
23805
23806 case `sed -n '/datarootdir/ {
23807   p
23808   q
23809 }
23810 /@datadir@/p
23811 /@docdir@/p
23812 /@infodir@/p
23813 /@localedir@/p
23814 /@mandir@/p
23815 ' $ac_file_inputs` in
23816 *datarootdir*) ac_datarootdir_seen=yes;;
23817 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23818   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23819 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23820 _ACEOF
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822   ac_datarootdir_hack='
23823   s&@datadir@&$datadir&g
23824   s&@docdir@&$docdir&g
23825   s&@infodir@&$infodir&g
23826   s&@localedir@&$localedir&g
23827   s&@mandir@&$mandir&g
23828     s&\\\${datarootdir}&$datarootdir&g' ;;
23829 esac
23830 _ACEOF
23831
23832 # Neutralize VPATH when `$srcdir' = `.'.
23833 # Shell code in configure.ac might set extrasub.
23834 # FIXME: do we really want to maintain this feature?
23835 cat >>$CONFIG_STATUS <<_ACEOF
23836   sed "$ac_vpsub
23837 $extrasub
23838 _ACEOF
23839 cat >>$CONFIG_STATUS <<\_ACEOF
23840 :t
23841 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23842 s&@configure_input@&$configure_input&;t t
23843 s&@top_builddir@&$ac_top_builddir_sub&;t t
23844 s&@srcdir@&$ac_srcdir&;t t
23845 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23846 s&@top_srcdir@&$ac_top_srcdir&;t t
23847 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23848 s&@builddir@&$ac_builddir&;t t
23849 s&@abs_builddir@&$ac_abs_builddir&;t t
23850 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23851 s&@INSTALL@&$ac_INSTALL&;t t
23852 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23853 $ac_datarootdir_hack
23854 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23855
23856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23857   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23858   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23859   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23860 which seems to be undefined.  Please make sure it is defined." >&5
23861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23862 which seems to be undefined.  Please make sure it is defined." >&2;}
23863
23864   rm -f "$tmp/stdin"
23865   case $ac_file in
23866   -) cat "$tmp/out"; rm -f "$tmp/out";;
23867   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23868   esac
23869  ;;
23870   :H)
23871   #
23872   # CONFIG_HEADER
23873   #
23874 _ACEOF
23875
23876 # Transform confdefs.h into a sed script `conftest.defines', that
23877 # substitutes the proper values into config.h.in to produce config.h.
23878 rm -f conftest.defines conftest.tail
23879 # First, append a space to every undef/define line, to ease matching.
23880 echo 's/$/ /' >conftest.defines
23881 # Then, protect against being on the right side of a sed subst, or in
23882 # an unquoted here document, in config.status.  If some macros were
23883 # called several times there might be several #defines for the same
23884 # symbol, which is useless.  But do not sort them, since the last
23885 # AC_DEFINE must be honored.
23886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23889 # PARAMS is the parameter list in the macro definition--in most cases, it's
23890 # just an empty string.
23891 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23892 ac_dB='\\)[      (].*,\\1define\\2'
23893 ac_dC=' '
23894 ac_dD=' ,'
23895
23896 uniq confdefs.h |
23897   sed -n '
23898         t rset
23899         :rset
23900         s/^[     ]*#[    ]*define[       ][      ]*//
23901         t ok
23902         d
23903         :ok
23904         s/[\\&,]/\\&/g
23905         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23906         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23907   ' >>conftest.defines
23908
23909 # Remove the space that was appended to ease matching.
23910 # Then replace #undef with comments.  This is necessary, for
23911 # example, in the case of _POSIX_SOURCE, which is predefined and required
23912 # on some systems where configure will not decide to define it.
23913 # (The regexp can be short, since the line contains either #define or #undef.)
23914 echo 's/ $//
23915 s,^[     #]*u.*,/* & */,' >>conftest.defines
23916
23917 # Break up conftest.defines:
23918 ac_max_sed_lines=50
23919
23920 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23921 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23922 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23923 # et cetera.
23924 ac_in='$ac_file_inputs'
23925 ac_out='"$tmp/out1"'
23926 ac_nxt='"$tmp/out2"'
23927
23928 while :
23929 do
23930   # Write a here document:
23931     cat >>$CONFIG_STATUS <<_ACEOF
23932     # First, check the format of the line:
23933     cat >"\$tmp/defines.sed" <<\\CEOF
23934 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23935 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23936 b
23937 :def
23938 _ACEOF
23939   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23940   echo 'CEOF
23941     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23942   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23943   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23944   grep . conftest.tail >/dev/null || break
23945   rm -f conftest.defines
23946   mv conftest.tail conftest.defines
23947 done
23948 rm -f conftest.defines conftest.tail
23949
23950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952   if test x"$ac_file" != x-; then
23953     echo "/* $configure_input  */" >"$tmp/config.h"
23954     cat "$ac_result" >>"$tmp/config.h"
23955     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23956       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23957 echo "$as_me: $ac_file is unchanged" >&6;}
23958     else
23959       rm -f $ac_file
23960       mv "$tmp/config.h" $ac_file
23961     fi
23962   else
23963     echo "/* $configure_input  */"
23964     cat "$ac_result"
23965   fi
23966   rm -f "$tmp/out12"
23967 # Compute $ac_file's index in $config_headers.
23968 _am_stamp_count=1
23969 for _am_header in $config_headers :; do
23970   case $_am_header in
23971     $ac_file | $ac_file:* )
23972       break ;;
23973     * )
23974       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23975   esac
23976 done
23977 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23978 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23979          X$ac_file : 'X\(//\)[^/]' \| \
23980          X$ac_file : 'X\(//\)$' \| \
23981          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23982 echo X$ac_file |
23983     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23984             s//\1/
23985             q
23986           }
23987           /^X\(\/\/\)[^/].*/{
23988             s//\1/
23989             q
23990           }
23991           /^X\(\/\/\)$/{
23992             s//\1/
23993             q
23994           }
23995           /^X\(\/\).*/{
23996             s//\1/
23997             q
23998           }
23999           s/.*/./; q'`/stamp-h$_am_stamp_count
24000  ;;
24001
24002   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24003 echo "$as_me: executing $ac_file commands" >&6;}
24004  ;;
24005   esac
24006
24007
24008   case $ac_file$ac_mode in
24009     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24010   # Strip MF so we end up with the name of the file.
24011   mf=`echo "$mf" | sed -e 's/:.*$//'`
24012   # Check whether this is an Automake generated Makefile or not.
24013   # We used to match only the files named `Makefile.in', but
24014   # some people rename them; so instead we look at the file content.
24015   # Grep'ing the first line is not enough: some people post-process
24016   # each Makefile.in and add a new line on top of each file to say so.
24017   # Grep'ing the whole file is not good either: AIX grep has a line
24018   # limit of 2048, but all sed's we know have understand at least 4000.
24019   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24020     dirpart=`$as_dirname -- "$mf" ||
24021 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24022          X"$mf" : 'X\(//\)[^/]' \| \
24023          X"$mf" : 'X\(//\)$' \| \
24024          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24025 echo X"$mf" |
24026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24027             s//\1/
24028             q
24029           }
24030           /^X\(\/\/\)[^/].*/{
24031             s//\1/
24032             q
24033           }
24034           /^X\(\/\/\)$/{
24035             s//\1/
24036             q
24037           }
24038           /^X\(\/\).*/{
24039             s//\1/
24040             q
24041           }
24042           s/.*/./; q'`
24043   else
24044     continue
24045   fi
24046   # Extract the definition of DEPDIR, am__include, and am__quote
24047   # from the Makefile without running `make'.
24048   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24049   test -z "$DEPDIR" && continue
24050   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24051   test -z "am__include" && continue
24052   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24053   # When using ansi2knr, U may be empty or an underscore; expand it
24054   U=`sed -n 's/^U = //p' < "$mf"`
24055   # Find all dependency output files, they are included files with
24056   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24057   # simplest approach to changing $(DEPDIR) to its actual value in the
24058   # expansion.
24059   for file in `sed -n "
24060     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24061        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24062     # Make sure the directory exists.
24063     test -f "$dirpart/$file" && continue
24064     fdir=`$as_dirname -- "$file" ||
24065 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24066          X"$file" : 'X\(//\)[^/]' \| \
24067          X"$file" : 'X\(//\)$' \| \
24068          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24069 echo X"$file" |
24070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24071             s//\1/
24072             q
24073           }
24074           /^X\(\/\/\)[^/].*/{
24075             s//\1/
24076             q
24077           }
24078           /^X\(\/\/\)$/{
24079             s//\1/
24080             q
24081           }
24082           /^X\(\/\).*/{
24083             s//\1/
24084             q
24085           }
24086           s/.*/./; q'`
24087     { as_dir=$dirpart/$fdir
24088   case $as_dir in #(
24089   -*) as_dir=./$as_dir;;
24090   esac
24091   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24092     as_dirs=
24093     while :; do
24094       case $as_dir in #(
24095       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24096       *) as_qdir=$as_dir;;
24097       esac
24098       as_dirs="'$as_qdir' $as_dirs"
24099       as_dir=`$as_dirname -- "$as_dir" ||
24100 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24101          X"$as_dir" : 'X\(//\)[^/]' \| \
24102          X"$as_dir" : 'X\(//\)$' \| \
24103          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24104 echo X"$as_dir" |
24105     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24106             s//\1/
24107             q
24108           }
24109           /^X\(\/\/\)[^/].*/{
24110             s//\1/
24111             q
24112           }
24113           /^X\(\/\/\)$/{
24114             s//\1/
24115             q
24116           }
24117           /^X\(\/\).*/{
24118             s//\1/
24119             q
24120           }
24121           s/.*/./; q'`
24122       test -d "$as_dir" && break
24123     done
24124     test -z "$as_dirs" || eval "mkdir $as_dirs"
24125   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24126 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24127    { (exit 1); exit 1; }; }; }
24128     # echo "creating $dirpart/$file"
24129     echo '# dummy' > "$dirpart/$file"
24130   done
24131 done
24132  ;;
24133
24134   esac
24135 done # for ac_tag
24136
24137
24138 { (exit 0); exit 0; }
24139 _ACEOF
24140 chmod +x $CONFIG_STATUS
24141 ac_clean_files=$ac_clean_files_save
24142
24143
24144 # configure is writing to config.log, and then calls config.status.
24145 # config.status does its own redirection, appending to config.log.
24146 # Unfortunately, on DOS this fails, as config.log is still kept open
24147 # by configure, so config.status won't be able to write to it; its
24148 # output is simply discarded.  So we exec the FD to /dev/null,
24149 # effectively closing config.log, so it can be properly (re)opened and
24150 # appended to by config.status.  When coming back to configure, we
24151 # need to make the FD available again.
24152 if test "$no_create" != yes; then
24153   ac_cs_success=:
24154   ac_config_status_args=
24155   test "$silent" = yes &&
24156     ac_config_status_args="$ac_config_status_args --quiet"
24157   exec 5>/dev/null
24158   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24159   exec 5>>config.log
24160   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24161   # would make configure fail if this is the last instruction.
24162   $ac_cs_success || { (exit 1); exit 1; }
24163 fi
24164