resetting manifest requested domain to floor
[platform/upstream/lksctp-tools.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.1.1.2 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/apps/sctp_darn.c"
735 ac_unique_file="config.h.in"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 CC
831 CFLAGS
832 LDFLAGS
833 CPPFLAGS
834 ac_ct_CC
835 EXEEXT
836 OBJEXT
837 DEPDIR
838 am__include
839 am__quote
840 AMDEP_TRUE
841 AMDEP_FALSE
842 AMDEPBACKSLASH
843 CCDEPMODE
844 am__fastdepCC_TRUE
845 am__fastdepCC_FALSE
846 LN_S
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
855 SED
856 GREP
857 EGREP
858 ECHO
859 AR
860 RANLIB
861 DSYMUTIL
862 NMEDIT
863 CPP
864 CXX
865 CXXFLAGS
866 ac_ct_CXX
867 CXXDEPMODE
868 am__fastdepCXX_TRUE
869 am__fastdepCXX_FALSE
870 CXXCPP
871 F77
872 FFLAGS
873 ac_ct_F77
874 LIBTOOL
875 LIBTOOL_DEPS
876 LIBOBJS
877 LTLIBOBJS'
878 ac_subst_files=''
879       ac_precious_vars='build_alias
880 host_alias
881 target_alias
882 CC
883 CFLAGS
884 LDFLAGS
885 LIBS
886 CPPFLAGS
887 CPP
888 CXX
889 CXXFLAGS
890 CCC
891 CXXCPP
892 F77
893 FFLAGS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
901 cache_file=/dev/null
902 exec_prefix=NONE
903 no_create=
904 no_recursion=
905 prefix=NONE
906 program_prefix=NONE
907 program_suffix=NONE
908 program_transform_name=s,x,x,
909 silent=
910 site=
911 srcdir=
912 verbose=
913 x_includes=NONE
914 x_libraries=NONE
915
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE}'
933 infodir='${datarootdir}/info'
934 htmldir='${docdir}'
935 dvidir='${docdir}'
936 pdfdir='${docdir}'
937 psdir='${docdir}'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
941
942 ac_prev=
943 ac_dashdash=
944 for ac_option
945 do
946   # If the previous option needs an argument, assign it.
947   if test -n "$ac_prev"; then
948     eval $ac_prev=\$ac_option
949     ac_prev=
950     continue
951   fi
952
953   case $ac_option in
954   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955   *)    ac_optarg=yes ;;
956   esac
957
958   # Accept the important Cygnus configure options, so we can diagnose typos.
959
960   case $ac_dashdash$ac_option in
961   --)
962     ac_dashdash=yes ;;
963
964   -bindir | --bindir | --bindi | --bind | --bin | --bi)
965     ac_prev=bindir ;;
966   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967     bindir=$ac_optarg ;;
968
969   -build | --build | --buil | --bui | --bu)
970     ac_prev=build_alias ;;
971   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972     build_alias=$ac_optarg ;;
973
974   -cache-file | --cache-file | --cache-fil | --cache-fi \
975   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976     ac_prev=cache_file ;;
977   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979     cache_file=$ac_optarg ;;
980
981   --config-cache | -C)
982     cache_file=config.cache ;;
983
984   -datadir | --datadir | --datadi | --datad)
985     ac_prev=datadir ;;
986   -datadir=* | --datadir=* | --datadi=* | --datad=*)
987     datadir=$ac_optarg ;;
988
989   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990   | --dataroo | --dataro | --datar)
991     ac_prev=datarootdir ;;
992   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994     datarootdir=$ac_optarg ;;
995
996   -disable-* | --disable-*)
997     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998     # Reject names that are not valid shell variable names.
999     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001    { (exit 1); exit 1; }; }
1002     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003     eval enable_$ac_feature=no ;;
1004
1005   -docdir | --docdir | --docdi | --doc | --do)
1006     ac_prev=docdir ;;
1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008     docdir=$ac_optarg ;;
1009
1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011     ac_prev=dvidir ;;
1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013     dvidir=$ac_optarg ;;
1014
1015   -enable-* | --enable-*)
1016     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1019       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020    { (exit 1); exit 1; }; }
1021     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022     eval enable_$ac_feature=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       { echo "$as_me: error: invalid package name: $ac_package" >&2
1217    { (exit 1); exit 1; }; }
1218     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219     eval with_$ac_package=\$ac_optarg ;;
1220
1221   -without-* | --without-*)
1222     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       { echo "$as_me: error: invalid package name: $ac_package" >&2
1226    { (exit 1); exit 1; }; }
1227     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228     eval with_$ac_package=no ;;
1229
1230   --x)
1231     # Obsolete; use --with-x.
1232     with_x=yes ;;
1233
1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235   | --x-incl | --x-inc | --x-in | --x-i)
1236     ac_prev=x_includes ;;
1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239     x_includes=$ac_optarg ;;
1240
1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243     ac_prev=x_libraries ;;
1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246     x_libraries=$ac_optarg ;;
1247
1248   -*) { echo "$as_me: error: unrecognized option: $ac_option
1249 Try \`$0 --help' for more information." >&2
1250    { (exit 1); exit 1; }; }
1251     ;;
1252
1253   *=*)
1254     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255     # Reject names that are not valid shell variable names.
1256     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258    { (exit 1); exit 1; }; }
1259     eval $ac_envvar=\$ac_optarg
1260     export $ac_envvar ;;
1261
1262   *)
1263     # FIXME: should be removed in autoconf 3.0.
1264     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268     ;;
1269
1270   esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275   { echo "$as_me: error: missing argument to $ac_option" >&2
1276    { (exit 1); exit 1; }; }
1277 fi
1278
1279 # Be sure to have absolute directory names.
1280 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281                 datadir sysconfdir sharedstatedir localstatedir includedir \
1282                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283                 libdir localedir mandir
1284 do
1285   eval ac_val=\$$ac_var
1286   case $ac_val in
1287     [\\/$]* | ?:[\\/]* )  continue;;
1288     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1289   esac
1290   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291    { (exit 1); exit 1; }; }
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303   if test "x$build_alias" = x; then
1304     cross_compiling=maybe
1305     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306     If a cross compiler is detected then cross compile mode will be used." >&2
1307   elif test "x$build_alias" != "x$host_alias"; then
1308     cross_compiling=yes
1309   fi
1310 fi
1311
1312 ac_tool_prefix=
1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315 test "$silent" = yes && exec 6>/dev/null
1316
1317
1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319 ac_ls_di=`ls -di .` &&
1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321   { echo "$as_me: error: Working directory cannot be determined" >&2
1322    { (exit 1); exit 1; }; }
1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324   { echo "$as_me: error: pwd does not report name of working directory" >&2
1325    { (exit 1); exit 1; }; }
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$0" ||
1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$0" : 'X\(//\)[^/]' \| \
1335          X"$0" : 'X\(//\)$' \| \
1336          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1337 echo X"$0" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1365    { (exit 1); exit 1; }; }
1366 fi
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1370    { (exit 1); exit 1; }; }
1371         pwd)`
1372 # When building in place, set srcdir=.
1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
1374   srcdir=.
1375 fi
1376 # Remove unnecessary trailing slashes from srcdir.
1377 # Double slashes in file names in object file debugging info
1378 # mess up M-x gdb in Emacs.
1379 case $srcdir in
1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381 esac
1382 for ac_var in $ac_precious_vars; do
1383   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_env_${ac_var}_value=\$${ac_var}
1385   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387 done
1388
1389 #
1390 # Report the --help message.
1391 #
1392 if test "$ac_init_help" = "long"; then
1393   # Omit some internal or obsolete options to make the list less imposing.
1394   # This message is too long to be a string in the A/UX 3.1 sh.
1395   cat <<_ACEOF
1396 \`configure' configures this package to adapt to many kinds of systems.
1397
1398 Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401 VAR=VALUE.  See below for descriptions of some of the useful variables.
1402
1403 Defaults for the options are specified in brackets.
1404
1405 Configuration:
1406   -h, --help              display this help and exit
1407       --help=short        display options specific to this package
1408       --help=recursive    display the short help of all the included packages
1409   -V, --version           display version information and exit
1410   -q, --quiet, --silent   do not print \`checking...' messages
1411       --cache-file=FILE   cache test results in FILE [disabled]
1412   -C, --config-cache      alias for \`--cache-file=config.cache'
1413   -n, --no-create         do not create output files
1414       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1415
1416 Installation directories:
1417   --prefix=PREFIX         install architecture-independent files in PREFIX
1418                           [$ac_default_prefix]
1419   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1420                           [PREFIX]
1421
1422 By default, \`make install' will install all the files in
1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425 for instance \`--prefix=\$HOME'.
1426
1427 For better control, use the options below.
1428
1429 Fine tuning of the installation directories:
1430   --bindir=DIR           user executables [EPREFIX/bin]
1431   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1432   --libexecdir=DIR       program executables [EPREFIX/libexec]
1433   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1434   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1435   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1436   --libdir=DIR           object code libraries [EPREFIX/lib]
1437   --includedir=DIR       C header files [PREFIX/include]
1438   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1439   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1440   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1441   --infodir=DIR          info documentation [DATAROOTDIR/info]
1442   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1443   --mandir=DIR           man documentation [DATAROOTDIR/man]
1444   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1445   --htmldir=DIR          html documentation [DOCDIR]
1446   --dvidir=DIR           dvi documentation [DOCDIR]
1447   --pdfdir=DIR           pdf documentation [DOCDIR]
1448   --psdir=DIR            ps documentation [DOCDIR]
1449 _ACEOF
1450
1451   cat <<\_ACEOF
1452
1453 Program names:
1454   --program-prefix=PREFIX            prepend PREFIX to installed program names
1455   --program-suffix=SUFFIX            append SUFFIX to installed program names
1456   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458 System types:
1459   --build=BUILD     configure for building on BUILD [guessed]
1460   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465
1466   cat <<\_ACEOF
1467
1468 Optional Features:
1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471   --disable-dependency-tracking  speeds up one-time build
1472   --enable-dependency-tracking   do not reject slow dependency extractors
1473   --enable-shared[=PKGS]  build shared libraries [default=yes]
1474   --enable-static[=PKGS]  build static libraries [default=yes]
1475   --enable-fast-install[=PKGS]
1476                           optimize for fast installation [default=yes]
1477   --disable-libtool-lock  avoid locking (might break parallel builds)
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1483   --with-pic              try to use only PIC/non-PIC objects [default=use
1484                           both]
1485   --with-tags[=TAGS]      include additional configurations [automatic]
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   LIBS        libraries to pass to the linker, e.g. -l<library>
1493   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CPP         C preprocessor
1496   CXX         C++ compiler command
1497   CXXFLAGS    C++ compiler flags
1498   CXXCPP      C++ preprocessor
1499   F77         Fortran 77 compiler command
1500   FFLAGS      Fortran 77 compiler flags
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" || continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 configure
1566 generated by GNU Autoconf 2.61
1567
1568 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1569 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575 cat >config.log <<_ACEOF
1576 This file contains any messages produced by compilers while
1577 running configure, to aid debugging if configure makes a mistake.
1578
1579 It was created by $as_me, which was
1580 generated by GNU Autoconf 2.61.  Invocation command line was
1581
1582   $ $0 $@
1583
1584 _ACEOF
1585 exec 5>>config.log
1586 {
1587 cat <<_ASUNAME
1588 ## --------- ##
1589 ## Platform. ##
1590 ## --------- ##
1591
1592 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1593 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1594 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1595 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1596 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1597
1598 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1599 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1600
1601 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1602 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1603 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1604 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1605 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1606 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1607 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1608
1609 _ASUNAME
1610
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   echo "PATH: $as_dir"
1617 done
1618 IFS=$as_save_IFS
1619
1620 } >&5
1621
1622 cat >&5 <<_ACEOF
1623
1624
1625 ## ----------- ##
1626 ## Core tests. ##
1627 ## ----------- ##
1628
1629 _ACEOF
1630
1631
1632 # Keep a trace of the command line.
1633 # Strip out --no-create and --no-recursion so they do not pile up.
1634 # Strip out --silent because we don't want to record it for future runs.
1635 # Also quote any args containing shell meta-characters.
1636 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_configure_args=
1638 ac_configure_args0=
1639 ac_configure_args1=
1640 ac_must_keep_next=false
1641 for ac_pass in 1 2
1642 do
1643   for ac_arg
1644   do
1645     case $ac_arg in
1646     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1647     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648     | -silent | --silent | --silen | --sile | --sil)
1649       continue ;;
1650     *\'*)
1651       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1652     esac
1653     case $ac_pass in
1654     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1655     2)
1656       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1657       if test $ac_must_keep_next = true; then
1658         ac_must_keep_next=false # Got value, back to normal.
1659       else
1660         case $ac_arg in
1661           *=* | --config-cache | -C | -disable-* | --disable-* \
1662           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1663           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1664           | -with-* | --with-* | -without-* | --without-* | --x)
1665             case "$ac_configure_args0 " in
1666               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1667             esac
1668             ;;
1669           -* ) ac_must_keep_next=true ;;
1670         esac
1671       fi
1672       ac_configure_args="$ac_configure_args '$ac_arg'"
1673       ;;
1674     esac
1675   done
1676 done
1677 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1678 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1679
1680 # When interrupted or exit'd, cleanup temporary files, and complete
1681 # config.log.  We remove comments because anyway the quotes in there
1682 # would cause problems or look ugly.
1683 # WARNING: Use '\'' to represent an apostrophe within the trap.
1684 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1685 trap 'exit_status=$?
1686   # Save into config.log some information that might help in debugging.
1687   {
1688     echo
1689
1690     cat <<\_ASBOX
1691 ## ---------------- ##
1692 ## Cache variables. ##
1693 ## ---------------- ##
1694 _ASBOX
1695     echo
1696     # The following way of writing the cache mishandles newlines in values,
1697 (
1698   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1699     eval ac_val=\$$ac_var
1700     case $ac_val in #(
1701     *${as_nl}*)
1702       case $ac_var in #(
1703       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1704 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1705       esac
1706       case $ac_var in #(
1707       _ | IFS | as_nl) ;; #(
1708       *) $as_unset $ac_var ;;
1709       esac ;;
1710     esac
1711   done
1712   (set) 2>&1 |
1713     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1714     *${as_nl}ac_space=\ *)
1715       sed -n \
1716         "s/'\''/'\''\\\\'\'''\''/g;
1717           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1718       ;; #(
1719     *)
1720       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721       ;;
1722     esac |
1723     sort
1724 )
1725     echo
1726
1727     cat <<\_ASBOX
1728 ## ----------------- ##
1729 ## Output variables. ##
1730 ## ----------------- ##
1731 _ASBOX
1732     echo
1733     for ac_var in $ac_subst_vars
1734     do
1735       eval ac_val=\$$ac_var
1736       case $ac_val in
1737       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738       esac
1739       echo "$ac_var='\''$ac_val'\''"
1740     done | sort
1741     echo
1742
1743     if test -n "$ac_subst_files"; then
1744       cat <<\_ASBOX
1745 ## ------------------- ##
1746 ## File substitutions. ##
1747 ## ------------------- ##
1748 _ASBOX
1749       echo
1750       for ac_var in $ac_subst_files
1751       do
1752         eval ac_val=\$$ac_var
1753         case $ac_val in
1754         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1755         esac
1756         echo "$ac_var='\''$ac_val'\''"
1757       done | sort
1758       echo
1759     fi
1760
1761     if test -s confdefs.h; then
1762       cat <<\_ASBOX
1763 ## ----------- ##
1764 ## confdefs.h. ##
1765 ## ----------- ##
1766 _ASBOX
1767       echo
1768       cat confdefs.h
1769       echo
1770     fi
1771     test "$ac_signal" != 0 &&
1772       echo "$as_me: caught signal $ac_signal"
1773     echo "$as_me: exit $exit_status"
1774   } >&5
1775   rm -f core *.core core.conftest.* &&
1776     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1777     exit $exit_status
1778 ' 0
1779 for ac_signal in 1 2 13 15; do
1780   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 done
1782 ac_signal=0
1783
1784 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1785 rm -f -r conftest* confdefs.h
1786
1787 # Predefined preprocessor variables.
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 _ACEOF
1812
1813
1814 # Let the site file select an alternate cache file if it wants to.
1815 # Prefer explicitly selected file to automatically selected ones.
1816 if test -n "$CONFIG_SITE"; then
1817   set x "$CONFIG_SITE"
1818 elif test "x$prefix" != xNONE; then
1819   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1820 else
1821   set x "$ac_default_prefix/share/config.site" \
1822         "$ac_default_prefix/etc/config.site"
1823 fi
1824 shift
1825 for ac_site_file
1826 do
1827   if test -r "$ac_site_file"; then
1828     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1829 echo "$as_me: loading site script $ac_site_file" >&6;}
1830     sed 's/^/| /' "$ac_site_file" >&5
1831     . "$ac_site_file"
1832   fi
1833 done
1834
1835 if test -r "$cache_file"; then
1836   # Some versions of bash will fail to source /dev/null (special
1837   # files actually), so we avoid doing that.
1838   if test -f "$cache_file"; then
1839     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1840 echo "$as_me: loading cache $cache_file" >&6;}
1841     case $cache_file in
1842       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1843       *)                      . "./$cache_file";;
1844     esac
1845   fi
1846 else
1847   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1848 echo "$as_me: creating cache $cache_file" >&6;}
1849   >$cache_file
1850 fi
1851
1852 # Check that the precious variables saved in the cache have kept the same
1853 # value.
1854 ac_cache_corrupted=false
1855 for ac_var in $ac_precious_vars; do
1856   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1857   eval ac_new_set=\$ac_env_${ac_var}_set
1858   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1859   eval ac_new_val=\$ac_env_${ac_var}_value
1860   case $ac_old_set,$ac_new_set in
1861     set,)
1862       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1863 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1864       ac_cache_corrupted=: ;;
1865     ,set)
1866       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1868       ac_cache_corrupted=: ;;
1869     ,);;
1870     *)
1871       if test "x$ac_old_val" != "x$ac_new_val"; then
1872         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1873 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1874         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1875 echo "$as_me:   former value:  $ac_old_val" >&2;}
1876         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1877 echo "$as_me:   current value: $ac_new_val" >&2;}
1878         ac_cache_corrupted=:
1879       fi;;
1880   esac
1881   # Pass precious variables to config.status.
1882   if test "$ac_new_set" = set; then
1883     case $ac_new_val in
1884     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1885     *) ac_arg=$ac_var=$ac_new_val ;;
1886     esac
1887     case " $ac_configure_args " in
1888       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1889       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890     esac
1891   fi
1892 done
1893 if $ac_cache_corrupted; then
1894   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1895 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1896   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1897 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1898    { (exit 1); exit 1; }; }
1899 fi
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924 ac_aux_dir=
1925 for ac_dir in bin "$srcdir"/bin; do
1926   if test -f "$ac_dir/install-sh"; then
1927     ac_aux_dir=$ac_dir
1928     ac_install_sh="$ac_aux_dir/install-sh -c"
1929     break
1930   elif test -f "$ac_dir/install.sh"; then
1931     ac_aux_dir=$ac_dir
1932     ac_install_sh="$ac_aux_dir/install.sh -c"
1933     break
1934   elif test -f "$ac_dir/shtool"; then
1935     ac_aux_dir=$ac_dir
1936     ac_install_sh="$ac_aux_dir/shtool install -c"
1937     break
1938   fi
1939 done
1940 if test -z "$ac_aux_dir"; then
1941   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in bin \"$srcdir\"/bin" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1953
1954
1955 am__api_version="1.9"
1956 # Find a good install program.  We prefer a C program (faster),
1957 # so one script is as good as another.  But avoid the broken or
1958 # incompatible versions:
1959 # SysV /etc/install, /usr/sbin/install
1960 # SunOS /usr/etc/install
1961 # IRIX /sbin/install
1962 # AIX /bin/install
1963 # AmigaOS /C/install, which installs bootblocks on floppy discs
1964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1967 # OS/2's system install, which has a completely different semantic
1968 # ./install, which can be erroneously created by make from ./install.sh.
1969 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1971 if test -z "$INSTALL"; then
1972 if test "${ac_cv_path_install+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   # Account for people who put trailing slashes in PATH elements.
1981 case $as_dir/ in
1982   ./ | .// | /cC/* | \
1983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1985   /usr/ucb/* ) ;;
1986   *)
1987     # OSF1 and SCO ODT 3.0 have their own names for install.
1988     # Don't use installbsd from OSF since it installs stuff as root
1989     # by default.
1990     for ac_prog in ginstall scoinst install; do
1991       for ac_exec_ext in '' $ac_executable_extensions; do
1992         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1993           if test $ac_prog = install &&
1994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1995             # AIX install.  It has an incompatible calling convention.
1996             :
1997           elif test $ac_prog = install &&
1998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1999             # program-specific install script used by HP pwplus--don't use.
2000             :
2001           else
2002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2003             break 3
2004           fi
2005         fi
2006       done
2007     done
2008     ;;
2009 esac
2010 done
2011 IFS=$as_save_IFS
2012
2013
2014 fi
2015   if test "${ac_cv_path_install+set}" = set; then
2016     INSTALL=$ac_cv_path_install
2017   else
2018     # As a last resort, use the slow shell script.  Don't cache a
2019     # value for INSTALL within a source directory, because that will
2020     # break other packages using the cache if that directory is
2021     # removed, or if the value is a relative name.
2022     INSTALL=$ac_install_sh
2023   fi
2024 fi
2025 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2026 echo "${ECHO_T}$INSTALL" >&6; }
2027
2028 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2029 # It thinks the first close brace ends the variable substitution.
2030 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2031
2032 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2033
2034 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2035
2036 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2037 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2038 # Just in case
2039 sleep 1
2040 echo timestamp > conftest.file
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments.  Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2045 # directory).
2046 if (
2047    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2048    if test "$*" = "X"; then
2049       # -L didn't work.
2050       set X `ls -t $srcdir/configure conftest.file`
2051    fi
2052    rm -f conftest.file
2053    if test "$*" != "X $srcdir/configure conftest.file" \
2054       && test "$*" != "X conftest.file $srcdir/configure"; then
2055
2056       # If neither matched, then we have a broken ls.  This can happen
2057       # if, for instance, CONFIG_SHELL is bash and it inherits a
2058       # broken ls alias from the environment.  This has actually
2059       # happened.  Such a system could not be considered "sane".
2060       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2061 alias in your environment" >&5
2062 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2063 alias in your environment" >&2;}
2064    { (exit 1); exit 1; }; }
2065    fi
2066
2067    test "$2" = conftest.file
2068    )
2069 then
2070    # Ok.
2071    :
2072 else
2073    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2074 Check your system clock" >&5
2075 echo "$as_me: error: newly created file is older than distributed files!
2076 Check your system clock" >&2;}
2077    { (exit 1); exit 1; }; }
2078 fi
2079 { echo "$as_me:$LINENO: result: yes" >&5
2080 echo "${ECHO_T}yes" >&6; }
2081 test "$program_prefix" != NONE &&
2082   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2083 # Use a double $ so make ignores it.
2084 test "$program_suffix" != NONE &&
2085   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2086 # Double any \ or $.  echo might interpret backslashes.
2087 # By default was `s,x,x', remove it if useless.
2088 cat <<\_ACEOF >conftest.sed
2089 s/[\\$]/&&/g;s/;s,x,x,$//
2090 _ACEOF
2091 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2092 rm -f conftest.sed
2093
2094 # expand $ac_aux_dir to an absolute path
2095 am_aux_dir=`cd $ac_aux_dir && pwd`
2096
2097 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2098 # Use eval to expand $SHELL
2099 if eval "$MISSING --run true"; then
2100   am_missing_run="$MISSING --run "
2101 else
2102   am_missing_run=
2103   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2104 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2105 fi
2106
2107 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2108   # We used to keeping the `.' as first argument, in order to
2109   # allow $(mkdir_p) to be used without argument.  As in
2110   #   $(mkdir_p) $(somedir)
2111   # where $(somedir) is conditionally defined.  However this is wrong
2112   # for two reasons:
2113   #  1. if the package is installed by a user who cannot write `.'
2114   #     make install will fail,
2115   #  2. the above comment should most certainly read
2116   #     $(mkdir_p) $(DESTDIR)$(somedir)
2117   #     so it does not work when $(somedir) is undefined and
2118   #     $(DESTDIR) is not.
2119   #  To support the latter case, we have to write
2120   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2121   #  so the `.' trick is pointless.
2122   mkdir_p='mkdir -p --'
2123 else
2124   # On NextStep and OpenStep, the `mkdir' command does not
2125   # recognize any option.  It will interpret all options as
2126   # directories to create, and then abort because `.' already
2127   # exists.
2128   for d in ./-p ./--version;
2129   do
2130     test -d $d && rmdir $d
2131   done
2132   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2133   if test -f "$ac_aux_dir/mkinstalldirs"; then
2134     mkdir_p='$(mkinstalldirs)'
2135   else
2136     mkdir_p='$(install_sh) -d'
2137   fi
2138 fi
2139
2140 for ac_prog in gawk mawk nawk awk
2141 do
2142   # Extract the first word of "$ac_prog", so it can be a program name with args.
2143 set dummy $ac_prog; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_AWK+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$AWK"; then
2150   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_prog_AWK="$ac_prog"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 fi
2168 fi
2169 AWK=$ac_cv_prog_AWK
2170 if test -n "$AWK"; then
2171   { echo "$as_me:$LINENO: result: $AWK" >&5
2172 echo "${ECHO_T}$AWK" >&6; }
2173 else
2174   { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2176 fi
2177
2178
2179   test -n "$AWK" && break
2180 done
2181
2182 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2183 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2184 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2185 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.make <<\_ACEOF
2189 SHELL = /bin/sh
2190 all:
2191         @echo '@@@%%%=$(MAKE)=@@@%%%'
2192 _ACEOF
2193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2195   *@@@%%%=?*=@@@%%%*)
2196     eval ac_cv_prog_make_${ac_make}_set=yes;;
2197   *)
2198     eval ac_cv_prog_make_${ac_make}_set=no;;
2199 esac
2200 rm -f conftest.make
2201 fi
2202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2203   { echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6; }
2205   SET_MAKE=
2206 else
2207   { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209   SET_MAKE="MAKE=${MAKE-make}"
2210 fi
2211
2212 rm -rf .tst 2>/dev/null
2213 mkdir .tst 2>/dev/null
2214 if test -d .tst; then
2215   am__leading_dot=.
2216 else
2217   am__leading_dot=_
2218 fi
2219 rmdir .tst 2>/dev/null
2220
2221 # test to see if srcdir already configured
2222 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2223    test -f $srcdir/config.status; then
2224   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2225 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2226    { (exit 1); exit 1; }; }
2227 fi
2228
2229 # test whether we have cygpath
2230 if test -z "$CYGPATH_W"; then
2231   if (cygpath --version) >/dev/null 2>/dev/null; then
2232     CYGPATH_W='cygpath -w'
2233   else
2234     CYGPATH_W=echo
2235   fi
2236 fi
2237
2238
2239 # Define the identity of the package.
2240  PACKAGE=lksctp-tools
2241  VERSION=1.0.10
2242
2243
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE "$PACKAGE"
2246 _ACEOF
2247
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define VERSION "$VERSION"
2251 _ACEOF
2252
2253 # Some tools Automake needs.
2254
2255 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2256
2257
2258 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2259
2260
2261 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2262
2263
2264 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2265
2266
2267 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2268
2269 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2270
2271 # Installed binaries are usually stripped using `strip' when the user
2272 # run `make install-strip'.  However `strip' might not be the right
2273 # tool to use in cross-compilation environments, therefore Automake
2274 # will honor the `STRIP' environment variable to overrule this program.
2275 if test "$cross_compiling" != no; then
2276   if test -n "$ac_tool_prefix"; then
2277   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}strip; ac_word=$2
2279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2281 if test "${ac_cv_prog_STRIP+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   if test -n "$STRIP"; then
2285   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302 fi
2303 fi
2304 STRIP=$ac_cv_prog_STRIP
2305 if test -n "$STRIP"; then
2306   { echo "$as_me:$LINENO: result: $STRIP" >&5
2307 echo "${ECHO_T}$STRIP" >&6; }
2308 else
2309   { echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6; }
2311 fi
2312
2313
2314 fi
2315 if test -z "$ac_cv_prog_STRIP"; then
2316   ac_ct_STRIP=$STRIP
2317   # Extract the first word of "strip", so it can be a program name with args.
2318 set dummy strip; ac_word=$2
2319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2321 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2322   echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324   if test -n "$ac_ct_STRIP"; then
2325   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2326 else
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332   for ac_exec_ext in '' $ac_executable_extensions; do
2333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2334     ac_cv_prog_ac_ct_STRIP="strip"
2335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336     break 2
2337   fi
2338 done
2339 done
2340 IFS=$as_save_IFS
2341
2342 fi
2343 fi
2344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2345 if test -n "$ac_ct_STRIP"; then
2346   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2347 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2348 else
2349   { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351 fi
2352
2353   if test "x$ac_ct_STRIP" = x; then
2354     STRIP=":"
2355   else
2356     case $cross_compiling:$ac_tool_warned in
2357 yes:)
2358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2359 whose name does not start with the host triplet.  If you think this
2360 configuration is useful to you, please write to autoconf@gnu.org." >&5
2361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2362 whose name does not start with the host triplet.  If you think this
2363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2364 ac_tool_warned=yes ;;
2365 esac
2366     STRIP=$ac_ct_STRIP
2367   fi
2368 else
2369   STRIP="$ac_cv_prog_STRIP"
2370 fi
2371
2372 fi
2373 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2374
2375 # We need awk for the "check" target.  The system "awk" is bad on
2376 # some platforms.
2377 # Always define AMTAR for backward compatibility.
2378
2379 AMTAR=${AMTAR-"${am_missing_run}tar"}
2380
2381 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2382
2383
2384
2385
2386
2387
2388 ac_config_headers="$ac_config_headers config.h"
2389
2390
2391
2392
2393 for ac_prog in gawk mawk nawk awk
2394 do
2395   # Extract the first word of "$ac_prog", so it can be a program name with args.
2396 set dummy $ac_prog; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_AWK+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$AWK"; then
2403   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2412     ac_cv_prog_AWK="$ac_prog"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 AWK=$ac_cv_prog_AWK
2423 if test -n "$AWK"; then
2424   { echo "$as_me:$LINENO: result: $AWK" >&5
2425 echo "${ECHO_T}$AWK" >&6; }
2426 else
2427   { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2429 fi
2430
2431
2432   test -n "$AWK" && break
2433 done
2434
2435 ac_ext=c
2436 ac_cpp='$CPP $CPPFLAGS'
2437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440 if test -n "$ac_tool_prefix"; then
2441   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_CC+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   if test -n "$CC"; then
2449   ac_cv_prog_CC="$CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456   for ac_exec_ext in '' $ac_executable_extensions; do
2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470   { echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6; }
2472 else
2473   { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475 fi
2476
2477
2478 fi
2479 if test -z "$ac_cv_prog_CC"; then
2480   ac_ct_CC=$CC
2481   # Extract the first word of "gcc", so it can be a program name with args.
2482 set dummy gcc; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   if test -n "$ac_ct_CC"; then
2489   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498     ac_cv_prog_ac_ct_CC="gcc"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2509 if test -n "$ac_ct_CC"; then
2510   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2511 echo "${ECHO_T}$ac_ct_CC" >&6; }
2512 else
2513   { echo "$as_me:$LINENO: result: no" >&5
2514 echo "${ECHO_T}no" >&6; }
2515 fi
2516
2517   if test "x$ac_ct_CC" = x; then
2518     CC=""
2519   else
2520     case $cross_compiling:$ac_tool_warned in
2521 yes:)
2522 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet.  If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&5
2525 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2526 whose name does not start with the host triplet.  If you think this
2527 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530     CC=$ac_ct_CC
2531   fi
2532 else
2533   CC="$ac_cv_prog_CC"
2534 fi
2535
2536 if test -z "$CC"; then
2537           if test -n "$ac_tool_prefix"; then
2538     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test -n "$CC"; then
2546   ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553   for ac_exec_ext in '' $ac_executable_extensions; do
2554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555     ac_cv_prog_CC="${ac_tool_prefix}cc"
2556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560 done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567   { echo "$as_me:$LINENO: result: $CC" >&5
2568 echo "${ECHO_T}$CC" >&6; }
2569 else
2570   { echo "$as_me:$LINENO: result: no" >&5
2571 echo "${ECHO_T}no" >&6; }
2572 fi
2573
2574
2575   fi
2576 fi
2577 if test -z "$CC"; then
2578   # Extract the first word of "cc", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2582 if test "${ac_cv_prog_CC+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   if test -n "$CC"; then
2586   ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588   ac_prog_rejected=no
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594   for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597        ac_prog_rejected=yes
2598        continue
2599      fi
2600     ac_cv_prog_CC="cc"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 if test $ac_prog_rejected = yes; then
2609   # We found a bogon in the path, so make sure we never use it.
2610   set dummy $ac_cv_prog_CC
2611   shift
2612   if test $# != 0; then
2613     # We chose a different compiler from the bogus one.
2614     # However, it has the same basename, so the bogon will be chosen
2615     # first if we set CC to just the basename; use the full file name.
2616     shift
2617     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2618   fi
2619 fi
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624   { echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6; }
2626 else
2627   { echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6; }
2629 fi
2630
2631
2632 fi
2633 if test -z "$CC"; then
2634   if test -n "$ac_tool_prefix"; then
2635   for ac_prog in cl.exe
2636   do
2637     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2641 if test "${ac_cv_prog_CC+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   if test -n "$CC"; then
2645   ac_cv_prog_CC="$CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650   IFS=$as_save_IFS
2651   test -z "$as_dir" && as_dir=.
2652   for ac_exec_ext in '' $ac_executable_extensions; do
2653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656     break 2
2657   fi
2658 done
2659 done
2660 IFS=$as_save_IFS
2661
2662 fi
2663 fi
2664 CC=$ac_cv_prog_CC
2665 if test -n "$CC"; then
2666   { echo "$as_me:$LINENO: result: $CC" >&5
2667 echo "${ECHO_T}$CC" >&6; }
2668 else
2669   { echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6; }
2671 fi
2672
2673
2674     test -n "$CC" && break
2675   done
2676 fi
2677 if test -z "$CC"; then
2678   ac_ct_CC=$CC
2679   for ac_prog in cl.exe
2680 do
2681   # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2686   echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688   if test -n "$ac_ct_CC"; then
2689   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     ac_cv_prog_ac_ct_CC="$ac_prog"
2699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700     break 2
2701   fi
2702 done
2703 done
2704 IFS=$as_save_IFS
2705
2706 fi
2707 fi
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711 echo "${ECHO_T}$ac_ct_CC" >&6; }
2712 else
2713   { echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6; }
2715 fi
2716
2717
2718   test -n "$ac_ct_CC" && break
2719 done
2720
2721   if test "x$ac_ct_CC" = x; then
2722     CC=""
2723   else
2724     case $cross_compiling:$ac_tool_warned in
2725 yes:)
2726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2727 whose name does not start with the host triplet.  If you think this
2728 configuration is useful to you, please write to autoconf@gnu.org." >&5
2729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2730 whose name does not start with the host triplet.  If you think this
2731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2732 ac_tool_warned=yes ;;
2733 esac
2734     CC=$ac_ct_CC
2735   fi
2736 fi
2737
2738 fi
2739
2740
2741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2742 See \`config.log' for more details." >&5
2743 echo "$as_me: error: no acceptable C compiler found in \$PATH
2744 See \`config.log' for more details." >&2;}
2745    { (exit 1); exit 1; }; }
2746
2747 # Provide some information about the compiler.
2748 echo "$as_me:$LINENO: checking for C compiler version" >&5
2749 ac_compiler=`set X $ac_compile; echo $2`
2750 { (ac_try="$ac_compiler --version >&5"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compiler --version >&5") 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }
2760 { (ac_try="$ac_compiler -v >&5"
2761 case "(($ac_try" in
2762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763   *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766   (eval "$ac_compiler -v >&5") 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }
2770 { (ac_try="$ac_compiler -V >&5"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776   (eval "$ac_compiler -V >&5") 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }
2780
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h.  */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h.  */
2787
2788 int
2789 main ()
2790 {
2791
2792   ;
2793   return 0;
2794 }
2795 _ACEOF
2796 ac_clean_files_save=$ac_clean_files
2797 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2798 # Try to create an executable without -o first, disregard a.out.
2799 # It will help us diagnose broken compilers, and finding out an intuition
2800 # of exeext.
2801 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2802 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2803 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 #
2805 # List of possible output files, starting from the most likely.
2806 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2807 # only as a last resort.  b.out is created by i960 compilers.
2808 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2809 #
2810 # The IRIX 6 linker writes into existing files which may not be
2811 # executable, retaining their permissions.  Remove them first so a
2812 # subsequent execution test works.
2813 ac_rmfiles=
2814 for ac_file in $ac_files
2815 do
2816   case $ac_file in
2817     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2818     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2819   esac
2820 done
2821 rm -f $ac_rmfiles
2822
2823 if { (ac_try="$ac_link_default"
2824 case "(($ac_try" in
2825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826   *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829   (eval "$ac_link_default") 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; then
2833   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2834 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2835 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2836 # so that the user can short-circuit this test for compilers unknown to
2837 # Autoconf.
2838 for ac_file in $ac_files ''
2839 do
2840   test -f "$ac_file" || continue
2841   case $ac_file in
2842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2843         ;;
2844     [ab].out )
2845         # We found the default executable, but exeext='' is most
2846         # certainly right.
2847         break;;
2848     *.* )
2849         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2850         then :; else
2851            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852         fi
2853         # We set ac_cv_exeext here because the later test for it is not
2854         # safe: cross compilers may not add the suffix if given an `-o'
2855         # argument, so we may need to know it at that point already.
2856         # Even if this section looks crufty: it has the advantage of
2857         # actually working.
2858         break;;
2859     * )
2860         break;;
2861   esac
2862 done
2863 test "$ac_cv_exeext" = no && ac_cv_exeext=
2864
2865 else
2866   ac_file=''
2867 fi
2868
2869 { echo "$as_me:$LINENO: result: $ac_file" >&5
2870 echo "${ECHO_T}$ac_file" >&6; }
2871 if test -z "$ac_file"; then
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C compiler cannot create executables
2878 See \`config.log' for more details." >&2;}
2879    { (exit 77); exit 77; }; }
2880 fi
2881
2882 ac_exeext=$ac_cv_exeext
2883
2884 # Check that the compiler produces executables we can run.  If not, either
2885 # the compiler is broken, or we cross compile.
2886 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2887 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2888 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2889 # If not cross compiling, check that we can run a simple program.
2890 if test "$cross_compiling" != yes; then
2891   if { ac_try='./$ac_file'
2892   { (case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_try") 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901     cross_compiling=no
2902   else
2903     if test "$cross_compiling" = maybe; then
2904         cross_compiling=yes
2905     else
2906         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2907 If you meant to cross compile, use \`--host'.
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details." >&2;}
2912    { (exit 1); exit 1; }; }
2913     fi
2914   fi
2915 fi
2916 { echo "$as_me:$LINENO: result: yes" >&5
2917 echo "${ECHO_T}yes" >&6; }
2918
2919 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2920 ac_clean_files=$ac_clean_files_save
2921 # Check that the compiler produces executables we can run.  If not, either
2922 # the compiler is broken, or we cross compile.
2923 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2924 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2925 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2926 echo "${ECHO_T}$cross_compiling" >&6; }
2927
2928 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2929 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2930 if { (ac_try="$ac_link"
2931 case "(($ac_try" in
2932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933   *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936   (eval "$ac_link") 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; then
2940   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2941 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2942 # work properly (i.e., refer to `conftest.exe'), while it won't with
2943 # `rm'.
2944 for ac_file in conftest.exe conftest conftest.*; do
2945   test -f "$ac_file" || continue
2946   case $ac_file in
2947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2948     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949           break;;
2950     * ) break;;
2951   esac
2952 done
2953 else
2954   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2955 See \`config.log' for more details." >&5
2956 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2957 See \`config.log' for more details." >&2;}
2958    { (exit 1); exit 1; }; }
2959 fi
2960
2961 rm -f conftest$ac_cv_exeext
2962 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2963 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2964
2965 rm -f conftest.$ac_ext
2966 EXEEXT=$ac_cv_exeext
2967 ac_exeext=$EXEEXT
2968 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2969 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2970 if test "${ac_cv_objext+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 rm -f conftest.o conftest.obj
2989 if { (ac_try="$ac_compile"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_compile") 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; then
2999   for ac_file in conftest.o conftest.obj conftest.*; do
3000   test -f "$ac_file" || continue;
3001   case $ac_file in
3002     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3003     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3004        break;;
3005   esac
3006 done
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3014 See \`config.log' for more details." >&2;}
3015    { (exit 1); exit 1; }; }
3016 fi
3017
3018 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3019 fi
3020 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3021 echo "${ECHO_T}$ac_cv_objext" >&6; }
3022 OBJEXT=$ac_cv_objext
3023 ac_objext=$OBJEXT
3024 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3025 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3026 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035
3036 int
3037 main ()
3038 {
3039 #ifndef __GNUC__
3040        choke me
3041 #endif
3042
3043   ;
3044   return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext
3048 if { (ac_try="$ac_compile"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054   (eval "$ac_compile") 2>conftest.er1
3055   ac_status=$?
3056   grep -v '^ *+' conftest.er1 >conftest.err
3057   rm -f conftest.er1
3058   cat conftest.err >&5
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); } && {
3061          test -z "$ac_c_werror_flag" ||
3062          test ! -s conftest.err
3063        } && test -s conftest.$ac_objext; then
3064   ac_compiler_gnu=yes
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069         ac_compiler_gnu=no
3070 fi
3071
3072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3074
3075 fi
3076 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3077 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3078 GCC=`test $ac_compiler_gnu = yes && echo yes`
3079 ac_test_CFLAGS=${CFLAGS+set}
3080 ac_save_CFLAGS=$CFLAGS
3081 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3082 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_cc_g+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   ac_save_c_werror_flag=$ac_c_werror_flag
3087    ac_c_werror_flag=yes
3088    ac_cv_prog_cc_g=no
3089    CFLAGS="-g"
3090    cat >conftest.$ac_ext <<_ACEOF
3091 /* confdefs.h.  */
3092 _ACEOF
3093 cat confdefs.h >>conftest.$ac_ext
3094 cat >>conftest.$ac_ext <<_ACEOF
3095 /* end confdefs.h.  */
3096
3097 int
3098 main ()
3099 {
3100
3101   ;
3102   return 0;
3103 }
3104 _ACEOF
3105 rm -f conftest.$ac_objext
3106 if { (ac_try="$ac_compile"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_compile") 2>conftest.er1
3113   ac_status=$?
3114   grep -v '^ *+' conftest.er1 >conftest.err
3115   rm -f conftest.er1
3116   cat conftest.err >&5
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); } && {
3119          test -z "$ac_c_werror_flag" ||
3120          test ! -s conftest.err
3121        } && test -s conftest.$ac_objext; then
3122   ac_cv_prog_cc_g=yes
3123 else
3124   echo "$as_me: failed program was:" >&5
3125 sed 's/^/| /' conftest.$ac_ext >&5
3126
3127         CFLAGS=""
3128       cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134
3135 int
3136 main ()
3137 {
3138
3139   ;
3140   return 0;
3141 }
3142 _ACEOF
3143 rm -f conftest.$ac_objext
3144 if { (ac_try="$ac_compile"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150   (eval "$ac_compile") 2>conftest.er1
3151   ac_status=$?
3152   grep -v '^ *+' conftest.er1 >conftest.err
3153   rm -f conftest.er1
3154   cat conftest.err >&5
3155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156   (exit $ac_status); } && {
3157          test -z "$ac_c_werror_flag" ||
3158          test ! -s conftest.err
3159        } && test -s conftest.$ac_objext; then
3160   :
3161 else
3162   echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165         ac_c_werror_flag=$ac_save_c_werror_flag
3166          CFLAGS="-g"
3167          cat >conftest.$ac_ext <<_ACEOF
3168 /* confdefs.h.  */
3169 _ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h.  */
3173
3174 int
3175 main ()
3176 {
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_compile") 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } && {
3196          test -z "$ac_c_werror_flag" ||
3197          test ! -s conftest.err
3198        } && test -s conftest.$ac_objext; then
3199   ac_cv_prog_cc_g=yes
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 fi
3209
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214    ac_c_werror_flag=$ac_save_c_werror_flag
3215 fi
3216 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3217 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3218 if test "$ac_test_CFLAGS" = set; then
3219   CFLAGS=$ac_save_CFLAGS
3220 elif test $ac_cv_prog_cc_g = yes; then
3221   if test "$GCC" = yes; then
3222     CFLAGS="-g -O2"
3223   else
3224     CFLAGS="-g"
3225   fi
3226 else
3227   if test "$GCC" = yes; then
3228     CFLAGS="-O2"
3229   else
3230     CFLAGS=
3231   fi
3232 fi
3233 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3234 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3235 if test "${ac_cv_prog_cc_c89+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   ac_cv_prog_cc_c89=no
3239 ac_save_CC=$CC
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246 #include <stdarg.h>
3247 #include <stdio.h>
3248 #include <sys/types.h>
3249 #include <sys/stat.h>
3250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3251 struct buf { int x; };
3252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3253 static char *e (p, i)
3254      char **p;
3255      int i;
3256 {
3257   return p[i];
3258 }
3259 static char *f (char * (*g) (char **, int), char **p, ...)
3260 {
3261   char *s;
3262   va_list v;
3263   va_start (v,p);
3264   s = g (p, va_arg (v,int));
3265   va_end (v);
3266   return s;
3267 }
3268
3269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3270    function prototypes and stuff, but not '\xHH' hex character constants.
3271    These don't provoke an error unfortunately, instead are silently treated
3272    as 'x'.  The following induces an error, until -std is added to get
3273    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3274    array size at least.  It's necessary to write '\x00'==0 to get something
3275    that's true only with -std.  */
3276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3277
3278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3279    inside strings and character constants.  */
3280 #define FOO(x) 'x'
3281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3282
3283 int test (int i, double x);
3284 struct s1 {int (*f) (int a);};
3285 struct s2 {int (*f) (double a);};
3286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3287 int argc;
3288 char **argv;
3289 int
3290 main ()
3291 {
3292 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3298         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3299 do
3300   CC="$ac_save_CC $ac_arg"
3301   rm -f conftest.$ac_objext
3302 if { (ac_try="$ac_compile"
3303 case "(($ac_try" in
3304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305   *) ac_try_echo=$ac_try;;
3306 esac
3307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3308   (eval "$ac_compile") 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } && {
3315          test -z "$ac_c_werror_flag" ||
3316          test ! -s conftest.err
3317        } && test -s conftest.$ac_objext; then
3318   ac_cv_prog_cc_c89=$ac_arg
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext
3327   test "x$ac_cv_prog_cc_c89" != "xno" && break
3328 done
3329 rm -f conftest.$ac_ext
3330 CC=$ac_save_CC
3331
3332 fi
3333 # AC_CACHE_VAL
3334 case "x$ac_cv_prog_cc_c89" in
3335   x)
3336     { echo "$as_me:$LINENO: result: none needed" >&5
3337 echo "${ECHO_T}none needed" >&6; } ;;
3338   xno)
3339     { echo "$as_me:$LINENO: result: unsupported" >&5
3340 echo "${ECHO_T}unsupported" >&6; } ;;
3341   *)
3342     CC="$CC $ac_cv_prog_cc_c89"
3343     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3345 esac
3346
3347
3348 ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 DEPDIR="${am__leading_dot}deps"
3354
3355 ac_config_commands="$ac_config_commands depfiles"
3356
3357
3358 am_make=${MAKE-make}
3359 cat > confinc << 'END'
3360 am__doit:
3361         @echo done
3362 .PHONY: am__doit
3363 END
3364 # If we don't find an include directive, just comment out the code.
3365 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3366 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3367 am__include="#"
3368 am__quote=
3369 _am_result=none
3370 # First try GNU make style include.
3371 echo "include confinc" > confmf
3372 # We grep out `Entering directory' and `Leaving directory'
3373 # messages which can occur if `w' ends up in MAKEFLAGS.
3374 # In particular we don't look at `^make:' because GNU make might
3375 # be invoked under some other name (usually "gmake"), in which
3376 # case it prints its new name instead of `make'.
3377 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3378    am__include=include
3379    am__quote=
3380    _am_result=GNU
3381 fi
3382 # Now try BSD make style include.
3383 if test "$am__include" = "#"; then
3384    echo '.include "confinc"' > confmf
3385    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3386       am__include=.include
3387       am__quote="\""
3388       _am_result=BSD
3389    fi
3390 fi
3391
3392
3393 { echo "$as_me:$LINENO: result: $_am_result" >&5
3394 echo "${ECHO_T}$_am_result" >&6; }
3395 rm -f confinc confmf
3396
3397 # Check whether --enable-dependency-tracking was given.
3398 if test "${enable_dependency_tracking+set}" = set; then
3399   enableval=$enable_dependency_tracking;
3400 fi
3401
3402 if test "x$enable_dependency_tracking" != xno; then
3403   am_depcomp="$ac_aux_dir/depcomp"
3404   AMDEPBACKSLASH='\'
3405 fi
3406
3407
3408 if test "x$enable_dependency_tracking" != xno; then
3409   AMDEP_TRUE=
3410   AMDEP_FALSE='#'
3411 else
3412   AMDEP_TRUE='#'
3413   AMDEP_FALSE=
3414 fi
3415
3416
3417
3418
3419 depcc="$CC"   am_compiler_list=
3420
3421 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3422 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3423 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3424   echo $ECHO_N "(cached) $ECHO_C" >&6
3425 else
3426   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3427   # We make a subdir and do the tests there.  Otherwise we can end up
3428   # making bogus files that we don't know about and never remove.  For
3429   # instance it was reported that on HP-UX the gcc test will end up
3430   # making a dummy file named `D' -- because `-MD' means `put the output
3431   # in D'.
3432   mkdir conftest.dir
3433   # Copy depcomp to subdir because otherwise we won't find it if we're
3434   # using a relative directory.
3435   cp "$am_depcomp" conftest.dir
3436   cd conftest.dir
3437   # We will build objects and dependencies in a subdirectory because
3438   # it helps to detect inapplicable dependency modes.  For instance
3439   # both Tru64's cc and ICC support -MD to output dependencies as a
3440   # side effect of compilation, but ICC will put the dependencies in
3441   # the current directory while Tru64 will put them in the object
3442   # directory.
3443   mkdir sub
3444
3445   am_cv_CC_dependencies_compiler_type=none
3446   if test "$am_compiler_list" = ""; then
3447      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3448   fi
3449   for depmode in $am_compiler_list; do
3450     # Setup a source with many dependencies, because some compilers
3451     # like to wrap large dependency lists on column 80 (with \), and
3452     # we should not choose a depcomp mode which is confused by this.
3453     #
3454     # We need to recreate these files for each test, as the compiler may
3455     # overwrite some of them when testing with obscure command lines.
3456     # This happens at least with the AIX C compiler.
3457     : > sub/conftest.c
3458     for i in 1 2 3 4 5 6; do
3459       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3460       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3461       # Solaris 8's {/usr,}/bin/sh.
3462       touch sub/conftst$i.h
3463     done
3464     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3465
3466     case $depmode in
3467     nosideeffect)
3468       # after this tag, mechanisms are not by side-effect, so they'll
3469       # only be used when explicitly requested
3470       if test "x$enable_dependency_tracking" = xyes; then
3471         continue
3472       else
3473         break
3474       fi
3475       ;;
3476     none) break ;;
3477     esac
3478     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3479     # mode.  It turns out that the SunPro C++ compiler does not properly
3480     # handle `-M -o', and we need to detect this.
3481     if depmode=$depmode \
3482        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3483        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3484        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3485          >/dev/null 2>conftest.err &&
3486        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3487        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3488        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3489       # icc doesn't choke on unknown options, it will just issue warnings
3490       # or remarks (even with -Werror).  So we grep stderr for any message
3491       # that says an option was ignored or not supported.
3492       # When given -MP, icc 7.0 and 7.1 complain thusly:
3493       #   icc: Command line warning: ignoring option '-M'; no argument required
3494       # The diagnosis changed in icc 8.0:
3495       #   icc: Command line remark: option '-MP' not supported
3496       if (grep 'ignoring option' conftest.err ||
3497           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3498         am_cv_CC_dependencies_compiler_type=$depmode
3499         break
3500       fi
3501     fi
3502   done
3503
3504   cd ..
3505   rm -rf conftest.dir
3506 else
3507   am_cv_CC_dependencies_compiler_type=none
3508 fi
3509
3510 fi
3511 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3512 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3513 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3514
3515
3516
3517 if
3518   test "x$enable_dependency_tracking" != xno \
3519   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3520   am__fastdepCC_TRUE=
3521   am__fastdepCC_FALSE='#'
3522 else
3523   am__fastdepCC_TRUE='#'
3524   am__fastdepCC_FALSE=
3525 fi
3526
3527
3528 # Find a good install program.  We prefer a C program (faster),
3529 # so one script is as good as another.  But avoid the broken or
3530 # incompatible versions:
3531 # SysV /etc/install, /usr/sbin/install
3532 # SunOS /usr/etc/install
3533 # IRIX /sbin/install
3534 # AIX /bin/install
3535 # AmigaOS /C/install, which installs bootblocks on floppy discs
3536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3539 # OS/2's system install, which has a completely different semantic
3540 # ./install, which can be erroneously created by make from ./install.sh.
3541 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3543 if test -z "$INSTALL"; then
3544 if test "${ac_cv_path_install+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   # Account for people who put trailing slashes in PATH elements.
3553 case $as_dir/ in
3554   ./ | .// | /cC/* | \
3555   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3556   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3557   /usr/ucb/* ) ;;
3558   *)
3559     # OSF1 and SCO ODT 3.0 have their own names for install.
3560     # Don't use installbsd from OSF since it installs stuff as root
3561     # by default.
3562     for ac_prog in ginstall scoinst install; do
3563       for ac_exec_ext in '' $ac_executable_extensions; do
3564         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3565           if test $ac_prog = install &&
3566             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567             # AIX install.  It has an incompatible calling convention.
3568             :
3569           elif test $ac_prog = install &&
3570             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3571             # program-specific install script used by HP pwplus--don't use.
3572             :
3573           else
3574             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3575             break 3
3576           fi
3577         fi
3578       done
3579     done
3580     ;;
3581 esac
3582 done
3583 IFS=$as_save_IFS
3584
3585
3586 fi
3587   if test "${ac_cv_path_install+set}" = set; then
3588     INSTALL=$ac_cv_path_install
3589   else
3590     # As a last resort, use the slow shell script.  Don't cache a
3591     # value for INSTALL within a source directory, because that will
3592     # break other packages using the cache if that directory is
3593     # removed, or if the value is a relative name.
3594     INSTALL=$ac_install_sh
3595   fi
3596 fi
3597 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3598 echo "${ECHO_T}$INSTALL" >&6; }
3599
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3603
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3605
3606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3607
3608 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3609 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3610 LN_S=$as_ln_s
3611 if test "$LN_S" = "ln -s"; then
3612   { echo "$as_me:$LINENO: result: yes" >&5
3613 echo "${ECHO_T}yes" >&6; }
3614 else
3615   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3616 echo "${ECHO_T}no, using $LN_S" >&6; }
3617 fi
3618
3619
3620 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3621 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3622 if test "${ac_cv_search_strerror+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   ac_func_search_save_LIBS=$LIBS
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h.  */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h.  */
3632
3633 /* Override any GCC internal prototype to avoid an error.
3634    Use char because int might match the return type of a GCC
3635    builtin and then its argument prototype would still apply.  */
3636 #ifdef __cplusplus
3637 extern "C"
3638 #endif
3639 char strerror ();
3640 int
3641 main ()
3642 {
3643 return strerror ();
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 for ac_lib in '' cposix; do
3649   if test -z "$ac_lib"; then
3650     ac_res="none required"
3651   else
3652     ac_res=-l$ac_lib
3653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3654   fi
3655   rm -f conftest.$ac_objext conftest$ac_exeext
3656 if { (ac_try="$ac_link"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_link") 2>conftest.er1
3663   ac_status=$?
3664   grep -v '^ *+' conftest.er1 >conftest.err
3665   rm -f conftest.er1
3666   cat conftest.err >&5
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } && {
3669          test -z "$ac_c_werror_flag" ||
3670          test ! -s conftest.err
3671        } && test -s conftest$ac_exeext &&
3672        $as_test_x conftest$ac_exeext; then
3673   ac_cv_search_strerror=$ac_res
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678
3679 fi
3680
3681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3682       conftest$ac_exeext
3683   if test "${ac_cv_search_strerror+set}" = set; then
3684   break
3685 fi
3686 done
3687 if test "${ac_cv_search_strerror+set}" = set; then
3688   :
3689 else
3690   ac_cv_search_strerror=no
3691 fi
3692 rm conftest.$ac_ext
3693 LIBS=$ac_func_search_save_LIBS
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3696 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3697 ac_res=$ac_cv_search_strerror
3698 if test "$ac_res" != no; then
3699   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3700
3701 fi
3702
3703
3704
3705
3706 # Check whether --enable-shared was given.
3707 if test "${enable_shared+set}" = set; then
3708   enableval=$enable_shared; p=${PACKAGE-default}
3709     case $enableval in
3710     yes) enable_shared=yes ;;
3711     no) enable_shared=no ;;
3712     *)
3713       enable_shared=no
3714       # Look at the argument we got.  We use all the common list separators.
3715       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3716       for pkg in $enableval; do
3717         IFS="$lt_save_ifs"
3718         if test "X$pkg" = "X$p"; then
3719           enable_shared=yes
3720         fi
3721       done
3722       IFS="$lt_save_ifs"
3723       ;;
3724     esac
3725 else
3726   enable_shared=yes
3727 fi
3728
3729
3730 # Check whether --enable-static was given.
3731 if test "${enable_static+set}" = set; then
3732   enableval=$enable_static; p=${PACKAGE-default}
3733     case $enableval in
3734     yes) enable_static=yes ;;
3735     no) enable_static=no ;;
3736     *)
3737      enable_static=no
3738       # Look at the argument we got.  We use all the common list separators.
3739       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3740       for pkg in $enableval; do
3741         IFS="$lt_save_ifs"
3742         if test "X$pkg" = "X$p"; then
3743           enable_static=yes
3744         fi
3745       done
3746       IFS="$lt_save_ifs"
3747       ;;
3748     esac
3749 else
3750   enable_static=yes
3751 fi
3752
3753
3754 # Check whether --enable-fast-install was given.
3755 if test "${enable_fast_install+set}" = set; then
3756   enableval=$enable_fast_install; p=${PACKAGE-default}
3757     case $enableval in
3758     yes) enable_fast_install=yes ;;
3759     no) enable_fast_install=no ;;
3760     *)
3761       enable_fast_install=no
3762       # Look at the argument we got.  We use all the common list separators.
3763       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764       for pkg in $enableval; do
3765         IFS="$lt_save_ifs"
3766         if test "X$pkg" = "X$p"; then
3767           enable_fast_install=yes
3768         fi
3769       done
3770       IFS="$lt_save_ifs"
3771       ;;
3772     esac
3773 else
3774   enable_fast_install=yes
3775 fi
3776
3777
3778 # Make sure we can run config.sub.
3779 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3780   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3781 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3782    { (exit 1); exit 1; }; }
3783
3784 { echo "$as_me:$LINENO: checking build system type" >&5
3785 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3786 if test "${ac_cv_build+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   ac_build_alias=$build_alias
3790 test "x$ac_build_alias" = x &&
3791   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3792 test "x$ac_build_alias" = x &&
3793   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3794 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3795    { (exit 1); exit 1; }; }
3796 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3797   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3798 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3799    { (exit 1); exit 1; }; }
3800
3801 fi
3802 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3803 echo "${ECHO_T}$ac_cv_build" >&6; }
3804 case $ac_cv_build in
3805 *-*-*) ;;
3806 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3807 echo "$as_me: error: invalid value of canonical build" >&2;}
3808    { (exit 1); exit 1; }; };;
3809 esac
3810 build=$ac_cv_build
3811 ac_save_IFS=$IFS; IFS='-'
3812 set x $ac_cv_build
3813 shift
3814 build_cpu=$1
3815 build_vendor=$2
3816 shift; shift
3817 # Remember, the first character of IFS is used to create $*,
3818 # except with old shells:
3819 build_os=$*
3820 IFS=$ac_save_IFS
3821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3822
3823
3824 { echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3826 if test "${ac_cv_host+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test "x$host_alias" = x; then
3830   ac_cv_host=$ac_cv_build
3831 else
3832   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3833     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3834 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837
3838 fi
3839 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3840 echo "${ECHO_T}$ac_cv_host" >&6; }
3841 case $ac_cv_host in
3842 *-*-*) ;;
3843 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3844 echo "$as_me: error: invalid value of canonical host" >&2;}
3845    { (exit 1); exit 1; }; };;
3846 esac
3847 host=$ac_cv_host
3848 ac_save_IFS=$IFS; IFS='-'
3849 set x $ac_cv_host
3850 shift
3851 host_cpu=$1
3852 host_vendor=$2
3853 shift; shift
3854 # Remember, the first character of IFS is used to create $*,
3855 # except with old shells:
3856 host_os=$*
3857 IFS=$ac_save_IFS
3858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3859
3860
3861 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3863 if test "${lt_cv_path_SED+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   # Loop through the user's path and test for sed and gsed.
3867 # Then use that list of sed's as ones to test for truncation.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for lt_ac_prog in sed gsed; do
3874     for ac_exec_ext in '' $ac_executable_extensions; do
3875       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3876         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877       fi
3878     done
3879   done
3880 done
3881 IFS=$as_save_IFS
3882 lt_ac_max=0
3883 lt_ac_count=0
3884 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3885 # along with /bin/sed that truncates output.
3886 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3887   test ! -f $lt_ac_sed && continue
3888   cat /dev/null > conftest.in
3889   lt_ac_count=0
3890   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3891   # Check for GNU sed and select it if it is found.
3892   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3893     lt_cv_path_SED=$lt_ac_sed
3894     break
3895   fi
3896   while true; do
3897     cat conftest.in conftest.in >conftest.tmp
3898     mv conftest.tmp conftest.in
3899     cp conftest.in conftest.nl
3900     echo >>conftest.nl
3901     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3902     cmp -s conftest.out conftest.nl || break
3903     # 10000 chars as input seems more than enough
3904     test $lt_ac_count -gt 10 && break
3905     lt_ac_count=`expr $lt_ac_count + 1`
3906     if test $lt_ac_count -gt $lt_ac_max; then
3907       lt_ac_max=$lt_ac_count
3908       lt_cv_path_SED=$lt_ac_sed
3909     fi
3910   done
3911 done
3912
3913 fi
3914
3915 SED=$lt_cv_path_SED
3916
3917 { echo "$as_me:$LINENO: result: $SED" >&5
3918 echo "${ECHO_T}$SED" >&6; }
3919
3920 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3921 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3922 if test "${ac_cv_path_GREP+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   # Extract the first word of "grep ggrep" to use in msg output
3926 if test -z "$GREP"; then
3927 set dummy grep ggrep; ac_prog_name=$2
3928 if test "${ac_cv_path_GREP+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   ac_path_GREP_found=false
3932 # Loop through the user's path and test for each of PROGNAME-LIST
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 do
3936   IFS=$as_save_IFS
3937   test -z "$as_dir" && as_dir=.
3938   for ac_prog in grep ggrep; do
3939   for ac_exec_ext in '' $ac_executable_extensions; do
3940     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3941     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3942     # Check for GNU ac_path_GREP and select it if it is found.
3943   # Check for GNU $ac_path_GREP
3944 case `"$ac_path_GREP" --version 2>&1` in
3945 *GNU*)
3946   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3947 *)
3948   ac_count=0
3949   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3950   while :
3951   do
3952     cat "conftest.in" "conftest.in" >"conftest.tmp"
3953     mv "conftest.tmp" "conftest.in"
3954     cp "conftest.in" "conftest.nl"
3955     echo 'GREP' >> "conftest.nl"
3956     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3958     ac_count=`expr $ac_count + 1`
3959     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3960       # Best one so far, save it but keep looking for a better one
3961       ac_cv_path_GREP="$ac_path_GREP"
3962       ac_path_GREP_max=$ac_count
3963     fi
3964     # 10*(2^10) chars as input seems more than enough
3965     test $ac_count -gt 10 && break
3966   done
3967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3968 esac
3969
3970
3971     $ac_path_GREP_found && break 3
3972   done
3973 done
3974
3975 done
3976 IFS=$as_save_IFS
3977
3978
3979 fi
3980
3981 GREP="$ac_cv_path_GREP"
3982 if test -z "$GREP"; then
3983   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3984 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3985    { (exit 1); exit 1; }; }
3986 fi
3987
3988 else
3989   ac_cv_path_GREP=$GREP
3990 fi
3991
3992
3993 fi
3994 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3995 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3996  GREP="$ac_cv_path_GREP"
3997
3998
3999 { echo "$as_me:$LINENO: checking for egrep" >&5
4000 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4001 if test "${ac_cv_path_EGREP+set}" = set; then
4002   echo $ECHO_N "(cached) $ECHO_C" >&6
4003 else
4004   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4005    then ac_cv_path_EGREP="$GREP -E"
4006    else
4007      # Extract the first word of "egrep" to use in msg output
4008 if test -z "$EGREP"; then
4009 set dummy egrep; ac_prog_name=$2
4010 if test "${ac_cv_path_EGREP+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   ac_path_EGREP_found=false
4014 # Loop through the user's path and test for each of PROGNAME-LIST
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_prog in egrep; do
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4023     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4024     # Check for GNU ac_path_EGREP and select it if it is found.
4025   # Check for GNU $ac_path_EGREP
4026 case `"$ac_path_EGREP" --version 2>&1` in
4027 *GNU*)
4028   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029 *)
4030   ac_count=0
4031   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4032   while :
4033   do
4034     cat "conftest.in" "conftest.in" >"conftest.tmp"
4035     mv "conftest.tmp" "conftest.in"
4036     cp "conftest.in" "conftest.nl"
4037     echo 'EGREP' >> "conftest.nl"
4038     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040     ac_count=`expr $ac_count + 1`
4041     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4042       # Best one so far, save it but keep looking for a better one
4043       ac_cv_path_EGREP="$ac_path_EGREP"
4044       ac_path_EGREP_max=$ac_count
4045     fi
4046     # 10*(2^10) chars as input seems more than enough
4047     test $ac_count -gt 10 && break
4048   done
4049   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050 esac
4051
4052
4053     $ac_path_EGREP_found && break 3
4054   done
4055 done
4056
4057 done
4058 IFS=$as_save_IFS
4059
4060
4061 fi
4062
4063 EGREP="$ac_cv_path_EGREP"
4064 if test -z "$EGREP"; then
4065   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4066 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4067    { (exit 1); exit 1; }; }
4068 fi
4069
4070 else
4071   ac_cv_path_EGREP=$EGREP
4072 fi
4073
4074
4075    fi
4076 fi
4077 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4078 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4079  EGREP="$ac_cv_path_EGREP"
4080
4081
4082
4083 # Check whether --with-gnu-ld was given.
4084 if test "${with_gnu_ld+set}" = set; then
4085   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4086 else
4087   with_gnu_ld=no
4088 fi
4089
4090 ac_prog=ld
4091 if test "$GCC" = yes; then
4092   # Check if gcc -print-prog-name=ld gives a path.
4093   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4094 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4095   case $host in
4096   *-*-mingw*)
4097     # gcc leaves a trailing carriage return which upsets mingw
4098     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4099   *)
4100     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4101   esac
4102   case $ac_prog in
4103     # Accept absolute paths.
4104     [\\/]* | ?:[\\/]*)
4105       re_direlt='/[^/][^/]*/\.\./'
4106       # Canonicalize the pathname of ld
4107       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4108       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4109         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4110       done
4111       test -z "$LD" && LD="$ac_prog"
4112       ;;
4113   "")
4114     # If it fails, then pretend we aren't using GCC.
4115     ac_prog=ld
4116     ;;
4117   *)
4118     # If it is relative, then search for the first ld in PATH.
4119     with_gnu_ld=unknown
4120     ;;
4121   esac
4122 elif test "$with_gnu_ld" = yes; then
4123   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4125 else
4126   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4128 fi
4129 if test "${lt_cv_path_LD+set}" = set; then
4130   echo $ECHO_N "(cached) $ECHO_C" >&6
4131 else
4132   if test -z "$LD"; then
4133   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4134   for ac_dir in $PATH; do
4135     IFS="$lt_save_ifs"
4136     test -z "$ac_dir" && ac_dir=.
4137     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4138       lt_cv_path_LD="$ac_dir/$ac_prog"
4139       # Check to see if the program is GNU ld.  I'd rather use --version,
4140       # but apparently some variants of GNU ld only accept -v.
4141       # Break only if it was the GNU/non-GNU ld that we prefer.
4142       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4143       *GNU* | *'with BFD'*)
4144         test "$with_gnu_ld" != no && break
4145         ;;
4146       *)
4147         test "$with_gnu_ld" != yes && break
4148         ;;
4149       esac
4150     fi
4151   done
4152   IFS="$lt_save_ifs"
4153 else
4154   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4155 fi
4156 fi
4157
4158 LD="$lt_cv_path_LD"
4159 if test -n "$LD"; then
4160   { echo "$as_me:$LINENO: result: $LD" >&5
4161 echo "${ECHO_T}$LD" >&6; }
4162 else
4163   { echo "$as_me:$LINENO: result: no" >&5
4164 echo "${ECHO_T}no" >&6; }
4165 fi
4166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4168    { (exit 1); exit 1; }; }
4169 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4171 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4175 case `$LD -v 2>&1 </dev/null` in
4176 *GNU* | *'with BFD'*)
4177   lt_cv_prog_gnu_ld=yes
4178   ;;
4179 *)
4180   lt_cv_prog_gnu_ld=no
4181   ;;
4182 esac
4183 fi
4184 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4186 with_gnu_ld=$lt_cv_prog_gnu_ld
4187
4188
4189 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4191 if test "${lt_cv_ld_reload_flag+set}" = set; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   lt_cv_ld_reload_flag='-r'
4195 fi
4196 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4198 reload_flag=$lt_cv_ld_reload_flag
4199 case $reload_flag in
4200 "" | " "*) ;;
4201 *) reload_flag=" $reload_flag" ;;
4202 esac
4203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204 case $host_os in
4205   darwin*)
4206     if test "$GCC" = yes; then
4207       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4208     else
4209       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4210     fi
4211     ;;
4212 esac
4213
4214 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4215 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4216 if test "${lt_cv_path_NM+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   if test -n "$NM"; then
4220   # Let the user override the test.
4221   lt_cv_path_NM="$NM"
4222 else
4223   lt_nm_to_check="${ac_tool_prefix}nm"
4224   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4225     lt_nm_to_check="$lt_nm_to_check nm"
4226   fi
4227   for lt_tmp_nm in $lt_nm_to_check; do
4228     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4230       IFS="$lt_save_ifs"
4231       test -z "$ac_dir" && ac_dir=.
4232       tmp_nm="$ac_dir/$lt_tmp_nm"
4233       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4234         # Check to see if the nm accepts a BSD-compat flag.
4235         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4236         #   nm: unknown option "B" ignored
4237         # Tru64's nm complains that /dev/null is an invalid object file
4238         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4239         */dev/null* | *'Invalid file or object type'*)
4240           lt_cv_path_NM="$tmp_nm -B"
4241           break
4242           ;;
4243         *)
4244           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4245           */dev/null*)
4246             lt_cv_path_NM="$tmp_nm -p"
4247             break
4248             ;;
4249           *)
4250             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4251             continue # so that we can try to find one that supports BSD flags
4252             ;;
4253           esac
4254           ;;
4255         esac
4256       fi
4257     done
4258     IFS="$lt_save_ifs"
4259   done
4260   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4261 fi
4262 fi
4263 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4264 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4265 NM="$lt_cv_path_NM"
4266
4267 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4268 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4269 if test "${lt_cv_deplibs_check_method+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   lt_cv_file_magic_cmd='$MAGIC_CMD'
4273 lt_cv_file_magic_test_file=
4274 lt_cv_deplibs_check_method='unknown'
4275 # Need to set the preceding variable on all platforms that support
4276 # interlibrary dependencies.
4277 # 'none' -- dependencies not supported.
4278 # `unknown' -- same as none, but documents that we really don't know.
4279 # 'pass_all' -- all dependencies passed with no checks.
4280 # 'test_compile' -- check by making test program.
4281 # 'file_magic [[regex]]' -- check by looking for files in library path
4282 # which responds to the $file_magic_cmd with a given extended regex.
4283 # If you have `file' or equivalent on your system and you're not sure
4284 # whether `pass_all' will *always* work, you probably want this one.
4285
4286 case $host_os in
4287 aix[4-9]*)
4288   lt_cv_deplibs_check_method=pass_all
4289   ;;
4290
4291 beos*)
4292   lt_cv_deplibs_check_method=pass_all
4293   ;;
4294
4295 bsdi[45]*)
4296   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4297   lt_cv_file_magic_cmd='/usr/bin/file -L'
4298   lt_cv_file_magic_test_file=/shlib/libc.so
4299   ;;
4300
4301 cygwin*)
4302   # func_win32_libid is a shell function defined in ltmain.sh
4303   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4304   lt_cv_file_magic_cmd='func_win32_libid'
4305   ;;
4306
4307 mingw* | pw32*)
4308   # Base MSYS/MinGW do not provide the 'file' command needed by
4309   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4310   # unless we find 'file', for example because we are cross-compiling.
4311   if ( file / ) >/dev/null 2>&1; then
4312     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4313     lt_cv_file_magic_cmd='func_win32_libid'
4314   else
4315     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4316     lt_cv_file_magic_cmd='$OBJDUMP -f'
4317   fi
4318   ;;
4319
4320 darwin* | rhapsody*)
4321   lt_cv_deplibs_check_method=pass_all
4322   ;;
4323
4324 freebsd* | dragonfly*)
4325   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4326     case $host_cpu in
4327     i*86 )
4328       # Not sure whether the presence of OpenBSD here was a mistake.
4329       # Let's accept both of them until this is cleared up.
4330       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4331       lt_cv_file_magic_cmd=/usr/bin/file
4332       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4333       ;;
4334     esac
4335   else
4336     lt_cv_deplibs_check_method=pass_all
4337   fi
4338   ;;
4339
4340 gnu*)
4341   lt_cv_deplibs_check_method=pass_all
4342   ;;
4343
4344 hpux10.20* | hpux11*)
4345   lt_cv_file_magic_cmd=/usr/bin/file
4346   case $host_cpu in
4347   ia64*)
4348     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4349     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350     ;;
4351   hppa*64*)
4352     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]'
4353     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4354     ;;
4355   *)
4356     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4357     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4358     ;;
4359   esac
4360   ;;
4361
4362 interix[3-9]*)
4363   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4364   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4365   ;;
4366
4367 irix5* | irix6* | nonstopux*)
4368   case $LD in
4369   *-32|*"-32 ") libmagic=32-bit;;
4370   *-n32|*"-n32 ") libmagic=N32;;
4371   *-64|*"-64 ") libmagic=64-bit;;
4372   *) libmagic=never-match;;
4373   esac
4374   lt_cv_deplibs_check_method=pass_all
4375   ;;
4376
4377 # This must be Linux ELF.
4378 linux* | k*bsd*-gnu)
4379   lt_cv_deplibs_check_method=pass_all
4380   ;;
4381
4382 netbsd* | netbsdelf*-gnu)
4383   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4385   else
4386     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4387   fi
4388   ;;
4389
4390 newos6*)
4391   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4392   lt_cv_file_magic_cmd=/usr/bin/file
4393   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4394   ;;
4395
4396 nto-qnx*)
4397   lt_cv_deplibs_check_method=unknown
4398   ;;
4399
4400 openbsd*)
4401   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4402     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4403   else
4404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4405   fi
4406   ;;
4407
4408 osf3* | osf4* | osf5*)
4409   lt_cv_deplibs_check_method=pass_all
4410   ;;
4411
4412 rdos*)
4413   lt_cv_deplibs_check_method=pass_all
4414   ;;
4415
4416 solaris*)
4417   lt_cv_deplibs_check_method=pass_all
4418   ;;
4419
4420 sysv4 | sysv4.3*)
4421   case $host_vendor in
4422   motorola)
4423     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]'
4424     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4425     ;;
4426   ncr)
4427     lt_cv_deplibs_check_method=pass_all
4428     ;;
4429   sequent)
4430     lt_cv_file_magic_cmd='/bin/file'
4431     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4432     ;;
4433   sni)
4434     lt_cv_file_magic_cmd='/bin/file'
4435     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4436     lt_cv_file_magic_test_file=/lib/libc.so
4437     ;;
4438   siemens)
4439     lt_cv_deplibs_check_method=pass_all
4440     ;;
4441   pc)
4442     lt_cv_deplibs_check_method=pass_all
4443     ;;
4444   esac
4445   ;;
4446
4447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4448   lt_cv_deplibs_check_method=pass_all
4449   ;;
4450 esac
4451
4452 fi
4453 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4454 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4455 file_magic_cmd=$lt_cv_file_magic_cmd
4456 deplibs_check_method=$lt_cv_deplibs_check_method
4457 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4458
4459
4460
4461
4462 # If no C compiler was specified, use CC.
4463 LTCC=${LTCC-"$CC"}
4464
4465 # If no C compiler flags were specified, use CFLAGS.
4466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4467
4468 # Allow CC to be a program name with arguments.
4469 compiler=$CC
4470
4471 # Check whether --enable-libtool-lock was given.
4472 if test "${enable_libtool_lock+set}" = set; then
4473   enableval=$enable_libtool_lock;
4474 fi
4475
4476 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4477
4478 # Some flags need to be propagated to the compiler or linker for good
4479 # libtool support.
4480 case $host in
4481 ia64-*-hpux*)
4482   # Find out which ABI we are using.
4483   echo 'int i;' > conftest.$ac_ext
4484   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4485   (eval $ac_compile) 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; then
4489     case `/usr/bin/file conftest.$ac_objext` in
4490     *ELF-32*)
4491       HPUX_IA64_MODE="32"
4492       ;;
4493     *ELF-64*)
4494       HPUX_IA64_MODE="64"
4495       ;;
4496     esac
4497   fi
4498   rm -rf conftest*
4499   ;;
4500 *-*-irix6*)
4501   # Find out which ABI we are using.
4502   echo '#line 4502 "configure"' > conftest.$ac_ext
4503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504   (eval $ac_compile) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; then
4508    if test "$lt_cv_prog_gnu_ld" = yes; then
4509     case `/usr/bin/file conftest.$ac_objext` in
4510     *32-bit*)
4511       LD="${LD-ld} -melf32bsmip"
4512       ;;
4513     *N32*)
4514       LD="${LD-ld} -melf32bmipn32"
4515       ;;
4516     *64-bit*)
4517       LD="${LD-ld} -melf64bmip"
4518       ;;
4519     esac
4520    else
4521     case `/usr/bin/file conftest.$ac_objext` in
4522     *32-bit*)
4523       LD="${LD-ld} -32"
4524       ;;
4525     *N32*)
4526       LD="${LD-ld} -n32"
4527       ;;
4528     *64-bit*)
4529       LD="${LD-ld} -64"
4530       ;;
4531     esac
4532    fi
4533   fi
4534   rm -rf conftest*
4535   ;;
4536
4537 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4538 s390*-*linux*|sparc*-*linux*)
4539   # Find out which ABI we are using.
4540   echo 'int i;' > conftest.$ac_ext
4541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; then
4546     case `/usr/bin/file conftest.o` in
4547     *32-bit*)
4548       case $host in
4549         x86_64-*kfreebsd*-gnu)
4550           LD="${LD-ld} -m elf_i386_fbsd"
4551           ;;
4552         x86_64-*linux*)
4553           LD="${LD-ld} -m elf_i386"
4554           ;;
4555         ppc64-*linux*|powerpc64-*linux*)
4556           LD="${LD-ld} -m elf32ppclinux"
4557           ;;
4558         s390x-*linux*)
4559           LD="${LD-ld} -m elf_s390"
4560           ;;
4561         sparc64-*linux*)
4562           LD="${LD-ld} -m elf32_sparc"
4563           ;;
4564       esac
4565       ;;
4566     *64-bit*)
4567       case $host in
4568         x86_64-*kfreebsd*-gnu)
4569           LD="${LD-ld} -m elf_x86_64_fbsd"
4570           ;;
4571         x86_64-*linux*)
4572           LD="${LD-ld} -m elf_x86_64"
4573           ;;
4574         ppc*-*linux*|powerpc*-*linux*)
4575           LD="${LD-ld} -m elf64ppc"
4576           ;;
4577         s390*-*linux*)
4578           LD="${LD-ld} -m elf64_s390"
4579           ;;
4580         sparc*-*linux*)
4581           LD="${LD-ld} -m elf64_sparc"
4582           ;;
4583       esac
4584       ;;
4585     esac
4586   fi
4587   rm -rf conftest*
4588   ;;
4589
4590 *-*-sco3.2v5*)
4591   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4592   SAVE_CFLAGS="$CFLAGS"
4593   CFLAGS="$CFLAGS -belf"
4594   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4595 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4596 if test "${lt_cv_cc_needs_belf+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605      cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h.  */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h.  */
4611
4612 int
4613 main ()
4614 {
4615
4616   ;
4617   return 0;
4618 }
4619 _ACEOF
4620 rm -f conftest.$ac_objext conftest$ac_exeext
4621 if { (ac_try="$ac_link"
4622 case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_link") 2>conftest.er1
4628   ac_status=$?
4629   grep -v '^ *+' conftest.er1 >conftest.err
4630   rm -f conftest.er1
4631   cat conftest.err >&5
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); } && {
4634          test -z "$ac_c_werror_flag" ||
4635          test ! -s conftest.err
4636        } && test -s conftest$ac_exeext &&
4637        $as_test_x conftest$ac_exeext; then
4638   lt_cv_cc_needs_belf=yes
4639 else
4640   echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643         lt_cv_cc_needs_belf=no
4644 fi
4645
4646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4647       conftest$ac_exeext conftest.$ac_ext
4648      ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654 fi
4655 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4656 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4657   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4658     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4659     CFLAGS="$SAVE_CFLAGS"
4660   fi
4661   ;;
4662 sparc*-*solaris*)
4663   # Find out which ABI we are using.
4664   echo 'int i;' > conftest.$ac_ext
4665   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666   (eval $ac_compile) 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; then
4670     case `/usr/bin/file conftest.o` in
4671     *64-bit*)
4672       case $lt_cv_prog_gnu_ld in
4673       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4674       *)
4675         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4676           LD="${LD-ld} -64"
4677         fi
4678         ;;
4679       esac
4680       ;;
4681     esac
4682   fi
4683   rm -rf conftest*
4684   ;;
4685
4686
4687 esac
4688
4689 need_locks="$enable_libtool_lock"
4690
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4701   CPP=
4702 fi
4703 if test -z "$CPP"; then
4704   if test "${ac_cv_prog_CPP+set}" = set; then
4705   echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707       # Double quotes because CPP needs to be expanded
4708     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709     do
4710       ac_preproc_ok=false
4711 for ac_c_preproc_warn_flag in '' yes
4712 do
4713   # Use a header file that comes with gcc, so configuring glibc
4714   # with a fresh cross-compiler works.
4715   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716   # <limits.h> exists even on freestanding compilers.
4717   # On the NeXT, cc -E runs the code through the compiler's parser,
4718   # not just through cpp. "Syntax error" is here to catch this case.
4719   cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h.  */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h.  */
4725 #ifdef __STDC__
4726 # include <limits.h>
4727 #else
4728 # include <assert.h>
4729 #endif
4730                      Syntax error
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } >/dev/null && {
4745          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746          test ! -s conftest.err
4747        }; then
4748   :
4749 else
4750   echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753   # Broken: fails on valid input.
4754 continue
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758
4759   # OK, works on sane cases.  Now check whether nonexistent headers
4760   # can be detected and how.
4761   cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767 #include <ac_nonexistent.h>
4768 _ACEOF
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4770 case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } >/dev/null && {
4782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783          test ! -s conftest.err
4784        }; then
4785   # Broken: success on invalid input.
4786 continue
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791   # Passes both tests.
4792 ac_preproc_ok=:
4793 break
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797
4798 done
4799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4800 rm -f conftest.err conftest.$ac_ext
4801 if $ac_preproc_ok; then
4802   break
4803 fi
4804
4805     done
4806     ac_cv_prog_CPP=$CPP
4807
4808 fi
4809   CPP=$ac_cv_prog_CPP
4810 else
4811   ac_cv_prog_CPP=$CPP
4812 fi
4813 { echo "$as_me:$LINENO: result: $CPP" >&5
4814 echo "${ECHO_T}$CPP" >&6; }
4815 ac_preproc_ok=false
4816 for ac_c_preproc_warn_flag in '' yes
4817 do
4818   # Use a header file that comes with gcc, so configuring glibc
4819   # with a fresh cross-compiler works.
4820   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821   # <limits.h> exists even on freestanding compilers.
4822   # On the NeXT, cc -E runs the code through the compiler's parser,
4823   # not just through cpp. "Syntax error" is here to catch this case.
4824   cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830 #ifdef __STDC__
4831 # include <limits.h>
4832 #else
4833 # include <assert.h>
4834 #endif
4835                      Syntax error
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } >/dev/null && {
4850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851          test ! -s conftest.err
4852        }; then
4853   :
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858   # Broken: fails on valid input.
4859 continue
4860 fi
4861
4862 rm -f conftest.err conftest.$ac_ext
4863
4864   # OK, works on sane cases.  Now check whether nonexistent headers
4865   # can be detected and how.
4866   cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h.  */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h.  */
4872 #include <ac_nonexistent.h>
4873 _ACEOF
4874 if { (ac_try="$ac_cpp conftest.$ac_ext"
4875 case "(($ac_try" in
4876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877   *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881   ac_status=$?
4882   grep -v '^ *+' conftest.er1 >conftest.err
4883   rm -f conftest.er1
4884   cat conftest.err >&5
4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886   (exit $ac_status); } >/dev/null && {
4887          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888          test ! -s conftest.err
4889        }; then
4890   # Broken: success on invalid input.
4891 continue
4892 else
4893   echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896   # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900
4901 rm -f conftest.err conftest.$ac_ext
4902
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4907   :
4908 else
4909   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&5
4911 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&2;}
4913    { (exit 1); exit 1; }; }
4914 fi
4915
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922
4923 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4924 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4925 if test "${ac_cv_header_stdc+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <stdlib.h>
4935 #include <stdarg.h>
4936 #include <string.h>
4937 #include <float.h>
4938
4939 int
4940 main ()
4941 {
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (ac_try="$ac_compile"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_compile") 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } && {
4961          test -z "$ac_c_werror_flag" ||
4962          test ! -s conftest.err
4963        } && test -s conftest.$ac_objext; then
4964   ac_cv_header_stdc=yes
4965 else
4966   echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969         ac_cv_header_stdc=no
4970 fi
4971
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973
4974 if test $ac_cv_header_stdc = yes; then
4975   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4976   cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h.  */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h.  */
4982 #include <string.h>
4983
4984 _ACEOF
4985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4986   $EGREP "memchr" >/dev/null 2>&1; then
4987   :
4988 else
4989   ac_cv_header_stdc=no
4990 fi
4991 rm -f conftest*
4992
4993 fi
4994
4995 if test $ac_cv_header_stdc = yes; then
4996   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4997   cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003 #include <stdlib.h>
5004
5005 _ACEOF
5006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5007   $EGREP "free" >/dev/null 2>&1; then
5008   :
5009 else
5010   ac_cv_header_stdc=no
5011 fi
5012 rm -f conftest*
5013
5014 fi
5015
5016 if test $ac_cv_header_stdc = yes; then
5017   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5018   if test "$cross_compiling" = yes; then
5019   :
5020 else
5021   cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #include <ctype.h>
5028 #include <stdlib.h>
5029 #if ((' ' & 0x0FF) == 0x020)
5030 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5031 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032 #else
5033 # define ISLOWER(c) \
5034                    (('a' <= (c) && (c) <= 'i') \
5035                      || ('j' <= (c) && (c) <= 'r') \
5036                      || ('s' <= (c) && (c) <= 'z'))
5037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5038 #endif
5039
5040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041 int
5042 main ()
5043 {
5044   int i;
5045   for (i = 0; i < 256; i++)
5046     if (XOR (islower (i), ISLOWER (i))
5047         || toupper (i) != TOUPPER (i))
5048       return 2;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest$ac_exeext
5053 if { (ac_try="$ac_link"
5054 case "(($ac_try" in
5055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056   *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059   (eval "$ac_link") 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5063   { (case "(($ac_try" in
5064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065   *) ac_try_echo=$ac_try;;
5066 esac
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068   (eval "$ac_try") 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; }; then
5072   :
5073 else
5074   echo "$as_me: program exited with status $ac_status" >&5
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ( exit $ac_status )
5079 ac_cv_header_stdc=no
5080 fi
5081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5082 fi
5083
5084
5085 fi
5086 fi
5087 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5088 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5089 if test $ac_cv_header_stdc = yes; then
5090
5091 cat >>confdefs.h <<\_ACEOF
5092 #define STDC_HEADERS 1
5093 _ACEOF
5094
5095 fi
5096
5097 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5108                   inttypes.h stdint.h unistd.h
5109 do
5110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114   echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116   cat >conftest.$ac_ext <<_ACEOF
5117 /* confdefs.h.  */
5118 _ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h.  */
5122 $ac_includes_default
5123
5124 #include <$ac_header>
5125 _ACEOF
5126 rm -f conftest.$ac_objext
5127 if { (ac_try="$ac_compile"
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_compile") 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); } && {
5140          test -z "$ac_c_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest.$ac_objext; then
5143   eval "$as_ac_Header=yes"
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148         eval "$as_ac_Header=no"
5149 fi
5150
5151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152 fi
5153 ac_res=`eval echo '${'$as_ac_Header'}'`
5154                { echo "$as_me:$LINENO: result: $ac_res" >&5
5155 echo "${ECHO_T}$ac_res" >&6; }
5156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5157   cat >>confdefs.h <<_ACEOF
5158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5159 _ACEOF
5160
5161 fi
5162
5163 done
5164
5165
5166
5167 for ac_header in dlfcn.h
5168 do
5169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 fi
5176 ac_res=`eval echo '${'$as_ac_Header'}'`
5177                { echo "$as_me:$LINENO: result: $ac_res" >&5
5178 echo "${ECHO_T}$ac_res" >&6; }
5179 else
5180   # Is the header compilable?
5181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5183 cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189 $ac_includes_default
5190 #include <$ac_header>
5191 _ACEOF
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199   (eval "$ac_compile") 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } && {
5206          test -z "$ac_c_werror_flag" ||
5207          test ! -s conftest.err
5208        } && test -s conftest.$ac_objext; then
5209   ac_header_compiler=yes
5210 else
5211   echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5213
5214         ac_header_compiler=no
5215 fi
5216
5217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5219 echo "${ECHO_T}$ac_header_compiler" >&6; }
5220
5221 # Is the header present?
5222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h.  */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h.  */
5230 #include <$ac_header>
5231 _ACEOF
5232 if { (ac_try="$ac_cpp conftest.$ac_ext"
5233 case "(($ac_try" in
5234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235   *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5239   ac_status=$?
5240   grep -v '^ *+' conftest.er1 >conftest.err
5241   rm -f conftest.er1
5242   cat conftest.err >&5
5243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244   (exit $ac_status); } >/dev/null && {
5245          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5246          test ! -s conftest.err
5247        }; then
5248   ac_header_preproc=yes
5249 else
5250   echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5252
5253   ac_header_preproc=no
5254 fi
5255
5256 rm -f conftest.err conftest.$ac_ext
5257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5258 echo "${ECHO_T}$ac_header_preproc" >&6; }
5259
5260 # So?  What about this header?
5261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5262   yes:no: )
5263     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5267     ac_header_preproc=yes
5268     ;;
5269   no:yes:* )
5270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5272     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5276     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5277 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5280     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5282
5283     ;;
5284 esac
5285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   eval "$as_ac_Header=\$ac_header_preproc"
5291 fi
5292 ac_res=`eval echo '${'$as_ac_Header'}'`
5293                { echo "$as_me:$LINENO: result: $ac_res" >&5
5294 echo "${ECHO_T}$ac_res" >&6; }
5295
5296 fi
5297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5298   cat >>confdefs.h <<_ACEOF
5299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300 _ACEOF
5301
5302 fi
5303
5304 done
5305
5306 ac_ext=cpp
5307 ac_cpp='$CXXCPP $CPPFLAGS'
5308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311 if test -z "$CXX"; then
5312   if test -n "$CCC"; then
5313     CXX=$CCC
5314   else
5315     if test -n "$ac_tool_prefix"; then
5316   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317   do
5318     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5322 if test "${ac_cv_prog_CXX+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if test -n "$CXX"; then
5326   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327 else
5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333   for ac_exec_ext in '' $ac_executable_extensions; do
5334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340 done
5341 IFS=$as_save_IFS
5342
5343 fi
5344 fi
5345 CXX=$ac_cv_prog_CXX
5346 if test -n "$CXX"; then
5347   { echo "$as_me:$LINENO: result: $CXX" >&5
5348 echo "${ECHO_T}$CXX" >&6; }
5349 else
5350   { echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6; }
5352 fi
5353
5354
5355     test -n "$CXX" && break
5356   done
5357 fi
5358 if test -z "$CXX"; then
5359   ac_ct_CXX=$CXX
5360   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361 do
5362   # Extract the first word of "$ac_prog", so it can be a program name with args.
5363 set dummy $ac_prog; ac_word=$2
5364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   if test -n "$ac_ct_CXX"; then
5370   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377   for ac_exec_ext in '' $ac_executable_extensions; do
5378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379     ac_cv_prog_ac_ct_CXX="$ac_prog"
5380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390 if test -n "$ac_ct_CXX"; then
5391   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5392 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5393 else
5394   { echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6; }
5396 fi
5397
5398
5399   test -n "$ac_ct_CXX" && break
5400 done
5401
5402   if test "x$ac_ct_CXX" = x; then
5403     CXX="g++"
5404   else
5405     case $cross_compiling:$ac_tool_warned in
5406 yes:)
5407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5408 whose name does not start with the host triplet.  If you think this
5409 configuration is useful to you, please write to autoconf@gnu.org." >&5
5410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5411 whose name does not start with the host triplet.  If you think this
5412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5413 ac_tool_warned=yes ;;
5414 esac
5415     CXX=$ac_ct_CXX
5416   fi
5417 fi
5418
5419   fi
5420 fi
5421 # Provide some information about the compiler.
5422 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5423 ac_compiler=`set X $ac_compile; echo $2`
5424 { (ac_try="$ac_compiler --version >&5"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430   (eval "$ac_compiler --version >&5") 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }
5434 { (ac_try="$ac_compiler -v >&5"
5435 case "(($ac_try" in
5436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437   *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440   (eval "$ac_compiler -v >&5") 2>&5
5441   ac_status=$?
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); }
5444 { (ac_try="$ac_compiler -V >&5"
5445 case "(($ac_try" in
5446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5447   *) ac_try_echo=$ac_try;;
5448 esac
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5450   (eval "$ac_compiler -V >&5") 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }
5454
5455 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5456 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460   cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h.  */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h.  */
5466
5467 int
5468 main ()
5469 {
5470 #ifndef __GNUC__
5471        choke me
5472 #endif
5473
5474   ;
5475   return 0;
5476 }
5477 _ACEOF
5478 rm -f conftest.$ac_objext
5479 if { (ac_try="$ac_compile"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_compile") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } && {
5492          test -z "$ac_cxx_werror_flag" ||
5493          test ! -s conftest.err
5494        } && test -s conftest.$ac_objext; then
5495   ac_compiler_gnu=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500         ac_compiler_gnu=no
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5505
5506 fi
5507 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5508 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5509 GXX=`test $ac_compiler_gnu = yes && echo yes`
5510 ac_test_CXXFLAGS=${CXXFLAGS+set}
5511 ac_save_CXXFLAGS=$CXXFLAGS
5512 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5514 if test "${ac_cv_prog_cxx_g+set}" = set; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5518    ac_cxx_werror_flag=yes
5519    ac_cv_prog_cxx_g=no
5520    CXXFLAGS="-g"
5521    cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h.  */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h.  */
5527
5528 int
5529 main ()
5530 {
5531
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (ac_try="$ac_compile"
5538 case "(($ac_try" in
5539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540   *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543   (eval "$ac_compile") 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } && {
5550          test -z "$ac_cxx_werror_flag" ||
5551          test ! -s conftest.err
5552        } && test -s conftest.$ac_objext; then
5553   ac_cv_prog_cxx_g=yes
5554 else
5555   echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5557
5558         CXXFLAGS=""
5559       cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565
5566 int
5567 main ()
5568 {
5569
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (ac_try="$ac_compile"
5576 case "(($ac_try" in
5577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578   *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581   (eval "$ac_compile") 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } && {
5588          test -z "$ac_cxx_werror_flag" ||
5589          test ! -s conftest.err
5590        } && test -s conftest.$ac_objext; then
5591   :
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5597          CXXFLAGS="-g"
5598          cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h.  */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h.  */
5604
5605 int
5606 main ()
5607 {
5608
5609   ;
5610   return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617   *) ac_try_echo=$ac_try;;
5618 esac
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620   (eval "$ac_compile") 2>conftest.er1
5621   ac_status=$?
5622   grep -v '^ *+' conftest.er1 >conftest.err
5623   rm -f conftest.er1
5624   cat conftest.err >&5
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); } && {
5627          test -z "$ac_cxx_werror_flag" ||
5628          test ! -s conftest.err
5629        } && test -s conftest.$ac_objext; then
5630   ac_cv_prog_cxx_g=yes
5631 else
5632   echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5634
5635
5636 fi
5637
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 fi
5643
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5646 fi
5647 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5649 if test "$ac_test_CXXFLAGS" = set; then
5650   CXXFLAGS=$ac_save_CXXFLAGS
5651 elif test $ac_cv_prog_cxx_g = yes; then
5652   if test "$GXX" = yes; then
5653     CXXFLAGS="-g -O2"
5654   else
5655     CXXFLAGS="-g"
5656   fi
5657 else
5658   if test "$GXX" = yes; then
5659     CXXFLAGS="-O2"
5660   else
5661     CXXFLAGS=
5662   fi
5663 fi
5664 ac_ext=cpp
5665 ac_cpp='$CXXCPP $CPPFLAGS'
5666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5669
5670 depcc="$CXX"  am_compiler_list=
5671
5672 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5673 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5674 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5675   echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5678   # We make a subdir and do the tests there.  Otherwise we can end up
5679   # making bogus files that we don't know about and never remove.  For
5680   # instance it was reported that on HP-UX the gcc test will end up
5681   # making a dummy file named `D' -- because `-MD' means `put the output
5682   # in D'.
5683   mkdir conftest.dir
5684   # Copy depcomp to subdir because otherwise we won't find it if we're
5685   # using a relative directory.
5686   cp "$am_depcomp" conftest.dir
5687   cd conftest.dir
5688   # We will build objects and dependencies in a subdirectory because
5689   # it helps to detect inapplicable dependency modes.  For instance
5690   # both Tru64's cc and ICC support -MD to output dependencies as a
5691   # side effect of compilation, but ICC will put the dependencies in
5692   # the current directory while Tru64 will put them in the object
5693   # directory.
5694   mkdir sub
5695
5696   am_cv_CXX_dependencies_compiler_type=none
5697   if test "$am_compiler_list" = ""; then
5698      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5699   fi
5700   for depmode in $am_compiler_list; do
5701     # Setup a source with many dependencies, because some compilers
5702     # like to wrap large dependency lists on column 80 (with \), and
5703     # we should not choose a depcomp mode which is confused by this.
5704     #
5705     # We need to recreate these files for each test, as the compiler may
5706     # overwrite some of them when testing with obscure command lines.
5707     # This happens at least with the AIX C compiler.
5708     : > sub/conftest.c
5709     for i in 1 2 3 4 5 6; do
5710       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5711       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5712       # Solaris 8's {/usr,}/bin/sh.
5713       touch sub/conftst$i.h
5714     done
5715     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5716
5717     case $depmode in
5718     nosideeffect)
5719       # after this tag, mechanisms are not by side-effect, so they'll
5720       # only be used when explicitly requested
5721       if test "x$enable_dependency_tracking" = xyes; then
5722         continue
5723       else
5724         break
5725       fi
5726       ;;
5727     none) break ;;
5728     esac
5729     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5730     # mode.  It turns out that the SunPro C++ compiler does not properly
5731     # handle `-M -o', and we need to detect this.
5732     if depmode=$depmode \
5733        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5734        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5735        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5736          >/dev/null 2>conftest.err &&
5737        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5738        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5739        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5740       # icc doesn't choke on unknown options, it will just issue warnings
5741       # or remarks (even with -Werror).  So we grep stderr for any message
5742       # that says an option was ignored or not supported.
5743       # When given -MP, icc 7.0 and 7.1 complain thusly:
5744       #   icc: Command line warning: ignoring option '-M'; no argument required
5745       # The diagnosis changed in icc 8.0:
5746       #   icc: Command line remark: option '-MP' not supported
5747       if (grep 'ignoring option' conftest.err ||
5748           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5749         am_cv_CXX_dependencies_compiler_type=$depmode
5750         break
5751       fi
5752     fi
5753   done
5754
5755   cd ..
5756   rm -rf conftest.dir
5757 else
5758   am_cv_CXX_dependencies_compiler_type=none
5759 fi
5760
5761 fi
5762 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5763 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5764 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5765
5766
5767
5768 if
5769   test "x$enable_dependency_tracking" != xno \
5770   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5771   am__fastdepCXX_TRUE=
5772   am__fastdepCXX_FALSE='#'
5773 else
5774   am__fastdepCXX_TRUE='#'
5775   am__fastdepCXX_FALSE=
5776 fi
5777
5778
5779
5780
5781 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5782     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5783     (test "X$CXX" != "Xg++"))) ; then
5784   ac_ext=cpp
5785 ac_cpp='$CXXCPP $CPPFLAGS'
5786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5789 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5790 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5791 if test -z "$CXXCPP"; then
5792   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5793   echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795       # Double quotes because CXXCPP needs to be expanded
5796     for CXXCPP in "$CXX -E" "/lib/cpp"
5797     do
5798       ac_preproc_ok=false
5799 for ac_cxx_preproc_warn_flag in '' yes
5800 do
5801   # Use a header file that comes with gcc, so configuring glibc
5802   # with a fresh cross-compiler works.
5803   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5804   # <limits.h> exists even on freestanding compilers.
5805   # On the NeXT, cc -E runs the code through the compiler's parser,
5806   # not just through cpp. "Syntax error" is here to catch this case.
5807   cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #ifdef __STDC__
5814 # include <limits.h>
5815 #else
5816 # include <assert.h>
5817 #endif
5818                      Syntax error
5819 _ACEOF
5820 if { (ac_try="$ac_cpp conftest.$ac_ext"
5821 case "(($ac_try" in
5822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823   *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5827   ac_status=$?
5828   grep -v '^ *+' conftest.er1 >conftest.err
5829   rm -f conftest.er1
5830   cat conftest.err >&5
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } >/dev/null && {
5833          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5834          test ! -s conftest.err
5835        }; then
5836   :
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841   # Broken: fails on valid input.
5842 continue
5843 fi
5844
5845 rm -f conftest.err conftest.$ac_ext
5846
5847   # OK, works on sane cases.  Now check whether nonexistent headers
5848   # can be detected and how.
5849   cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #include <ac_nonexistent.h>
5856 _ACEOF
5857 if { (ac_try="$ac_cpp conftest.$ac_ext"
5858 case "(($ac_try" in
5859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860   *) ac_try_echo=$ac_try;;
5861 esac
5862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5864   ac_status=$?
5865   grep -v '^ *+' conftest.er1 >conftest.err
5866   rm -f conftest.er1
5867   cat conftest.err >&5
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } >/dev/null && {
5870          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5871          test ! -s conftest.err
5872        }; then
5873   # Broken: success on invalid input.
5874 continue
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879   # Passes both tests.
5880 ac_preproc_ok=:
5881 break
5882 fi
5883
5884 rm -f conftest.err conftest.$ac_ext
5885
5886 done
5887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5888 rm -f conftest.err conftest.$ac_ext
5889 if $ac_preproc_ok; then
5890   break
5891 fi
5892
5893     done
5894     ac_cv_prog_CXXCPP=$CXXCPP
5895
5896 fi
5897   CXXCPP=$ac_cv_prog_CXXCPP
5898 else
5899   ac_cv_prog_CXXCPP=$CXXCPP
5900 fi
5901 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5902 echo "${ECHO_T}$CXXCPP" >&6; }
5903 ac_preproc_ok=false
5904 for ac_cxx_preproc_warn_flag in '' yes
5905 do
5906   # Use a header file that comes with gcc, so configuring glibc
5907   # with a fresh cross-compiler works.
5908   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909   # <limits.h> exists even on freestanding compilers.
5910   # On the NeXT, cc -E runs the code through the compiler's parser,
5911   # not just through cpp. "Syntax error" is here to catch this case.
5912   cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 #ifdef __STDC__
5919 # include <limits.h>
5920 #else
5921 # include <assert.h>
5922 #endif
5923                      Syntax error
5924 _ACEOF
5925 if { (ac_try="$ac_cpp conftest.$ac_ext"
5926 case "(($ac_try" in
5927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928   *) ac_try_echo=$ac_try;;
5929 esac
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } >/dev/null && {
5938          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939          test ! -s conftest.err
5940        }; then
5941   :
5942 else
5943   echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5945
5946   # Broken: fails on valid input.
5947 continue
5948 fi
5949
5950 rm -f conftest.err conftest.$ac_ext
5951
5952   # OK, works on sane cases.  Now check whether nonexistent headers
5953   # can be detected and how.
5954   cat >conftest.$ac_ext <<_ACEOF
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960 #include <ac_nonexistent.h>
5961 _ACEOF
5962 if { (ac_try="$ac_cpp conftest.$ac_ext"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969   ac_status=$?
5970   grep -v '^ *+' conftest.er1 >conftest.err
5971   rm -f conftest.er1
5972   cat conftest.err >&5
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } >/dev/null && {
5975          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5976          test ! -s conftest.err
5977        }; then
5978   # Broken: success on invalid input.
5979 continue
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984   # Passes both tests.
5985 ac_preproc_ok=:
5986 break
5987 fi
5988
5989 rm -f conftest.err conftest.$ac_ext
5990
5991 done
5992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5993 rm -f conftest.err conftest.$ac_ext
5994 if $ac_preproc_ok; then
5995   :
5996 else
5997   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5998 See \`config.log' for more details." >&5
5999 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6000 See \`config.log' for more details." >&2;}
6001    { (exit 1); exit 1; }; }
6002 fi
6003
6004 ac_ext=cpp
6005 ac_cpp='$CXXCPP $CPPFLAGS'
6006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6009
6010 fi
6011
6012
6013 ac_ext=f
6014 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6015 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6017 if test -n "$ac_tool_prefix"; then
6018   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
6019   do
6020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_F77+set}" = set; then
6025   echo $ECHO_N "(cached) $ECHO_C" >&6
6026 else
6027   if test -n "$F77"; then
6028   ac_cv_prog_F77="$F77" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033   IFS=$as_save_IFS
6034   test -z "$as_dir" && as_dir=.
6035   for ac_exec_ext in '' $ac_executable_extensions; do
6036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039     break 2
6040   fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 F77=$ac_cv_prog_F77
6048 if test -n "$F77"; then
6049   { echo "$as_me:$LINENO: result: $F77" >&5
6050 echo "${ECHO_T}$F77" >&6; }
6051 else
6052   { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6054 fi
6055
6056
6057     test -n "$F77" && break
6058   done
6059 fi
6060 if test -z "$F77"; then
6061   ac_ct_F77=$F77
6062   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
6063 do
6064   # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   if test -n "$ac_ct_F77"; then
6072   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079   for ac_exec_ext in '' $ac_executable_extensions; do
6080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6081     ac_cv_prog_ac_ct_F77="$ac_prog"
6082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6092 if test -n "$ac_ct_F77"; then
6093   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6094 echo "${ECHO_T}$ac_ct_F77" >&6; }
6095 else
6096   { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6098 fi
6099
6100
6101   test -n "$ac_ct_F77" && break
6102 done
6103
6104   if test "x$ac_ct_F77" = x; then
6105     F77=""
6106   else
6107     case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6110 whose name does not start with the host triplet.  If you think this
6111 configuration is useful to you, please write to autoconf@gnu.org." >&5
6112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6113 whose name does not start with the host triplet.  If you think this
6114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     F77=$ac_ct_F77
6118   fi
6119 fi
6120
6121
6122 # Provide some information about the compiler.
6123 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6124 ac_compiler=`set X $ac_compile; echo $2`
6125 { (ac_try="$ac_compiler --version >&5"
6126 case "(($ac_try" in
6127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128   *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131   (eval "$ac_compiler --version >&5") 2>&5
6132   ac_status=$?
6133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134   (exit $ac_status); }
6135 { (ac_try="$ac_compiler -v >&5"
6136 case "(($ac_try" in
6137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138   *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141   (eval "$ac_compiler -v >&5") 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }
6145 { (ac_try="$ac_compiler -V >&5"
6146 case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_compiler -V >&5") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }
6155 rm -f a.out
6156
6157 # If we don't use `.F' as extension, the preprocessor is not run on the
6158 # input file.  (Note that this only needs to work for GNU compilers.)
6159 ac_save_ext=$ac_ext
6160 ac_ext=F
6161 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6162 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6163 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   cat >conftest.$ac_ext <<_ACEOF
6167       program main
6168 #ifndef __GNUC__
6169        choke me
6170 #endif
6171
6172       end
6173 _ACEOF
6174 rm -f conftest.$ac_objext
6175 if { (ac_try="$ac_compile"
6176 case "(($ac_try" in
6177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6178   *) ac_try_echo=$ac_try;;
6179 esac
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181   (eval "$ac_compile") 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } && {
6188          test -z "$ac_f77_werror_flag" ||
6189          test ! -s conftest.err
6190        } && test -s conftest.$ac_objext; then
6191   ac_compiler_gnu=yes
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196         ac_compiler_gnu=no
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6201
6202 fi
6203 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6204 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6205 ac_ext=$ac_save_ext
6206 ac_test_FFLAGS=${FFLAGS+set}
6207 ac_save_FFLAGS=$FFLAGS
6208 FFLAGS=
6209 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6210 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_f77_g+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   FFLAGS=-g
6215 cat >conftest.$ac_ext <<_ACEOF
6216       program main
6217
6218       end
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227   (eval "$ac_compile") 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } && {
6234          test -z "$ac_f77_werror_flag" ||
6235          test ! -s conftest.err
6236        } && test -s conftest.$ac_objext; then
6237   ac_cv_prog_f77_g=yes
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242         ac_cv_prog_f77_g=no
6243 fi
6244
6245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6246
6247 fi
6248 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6249 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6250 if test "$ac_test_FFLAGS" = set; then
6251   FFLAGS=$ac_save_FFLAGS
6252 elif test $ac_cv_prog_f77_g = yes; then
6253   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6254     FFLAGS="-g -O2"
6255   else
6256     FFLAGS="-g"
6257   fi
6258 else
6259   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6260     FFLAGS="-O2"
6261   else
6262     FFLAGS=
6263   fi
6264 fi
6265
6266 G77=`test $ac_compiler_gnu = yes && echo yes`
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273
6274
6275 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6276 # find the maximum length of command line arguments
6277 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6278 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6279 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6280   echo $ECHO_N "(cached) $ECHO_C" >&6
6281 else
6282     i=0
6283   teststring="ABCD"
6284
6285   case $build_os in
6286   msdosdjgpp*)
6287     # On DJGPP, this test can blow up pretty badly due to problems in libc
6288     # (any single argument exceeding 2000 bytes causes a buffer overrun
6289     # during glob expansion).  Even if it were fixed, the result of this
6290     # check would be larger than it should be.
6291     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6292     ;;
6293
6294   gnu*)
6295     # Under GNU Hurd, this test is not required because there is
6296     # no limit to the length of command line arguments.
6297     # Libtool will interpret -1 as no limit whatsoever
6298     lt_cv_sys_max_cmd_len=-1;
6299     ;;
6300
6301   cygwin* | mingw*)
6302     # On Win9x/ME, this test blows up -- it succeeds, but takes
6303     # about 5 minutes as the teststring grows exponentially.
6304     # Worse, since 9x/ME are not pre-emptively multitasking,
6305     # you end up with a "frozen" computer, even though with patience
6306     # the test eventually succeeds (with a max line length of 256k).
6307     # Instead, let's just punt: use the minimum linelength reported by
6308     # all of the supported platforms: 8192 (on NT/2K/XP).
6309     lt_cv_sys_max_cmd_len=8192;
6310     ;;
6311
6312   amigaos*)
6313     # On AmigaOS with pdksh, this test takes hours, literally.
6314     # So we just punt and use a minimum line length of 8192.
6315     lt_cv_sys_max_cmd_len=8192;
6316     ;;
6317
6318   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6319     # This has been around since 386BSD, at least.  Likely further.
6320     if test -x /sbin/sysctl; then
6321       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6322     elif test -x /usr/sbin/sysctl; then
6323       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6324     else
6325       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6326     fi
6327     # And add a safety zone
6328     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6329     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6330     ;;
6331
6332   interix*)
6333     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6334     lt_cv_sys_max_cmd_len=196608
6335     ;;
6336
6337   osf*)
6338     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6339     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6340     # nice to cause kernel panics so lets avoid the loop below.
6341     # First set a reasonable default.
6342     lt_cv_sys_max_cmd_len=16384
6343     #
6344     if test -x /sbin/sysconfig; then
6345       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6346         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6347       esac
6348     fi
6349     ;;
6350   sco3.2v5*)
6351     lt_cv_sys_max_cmd_len=102400
6352     ;;
6353   sysv5* | sco5v6* | sysv4.2uw2*)
6354     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6355     if test -n "$kargmax"; then
6356       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6357     else
6358       lt_cv_sys_max_cmd_len=32768
6359     fi
6360     ;;
6361   *)
6362     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6363     if test -n "$lt_cv_sys_max_cmd_len"; then
6364       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6365       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6366     else
6367       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6369                = "XX$teststring") >/dev/null 2>&1 &&
6370               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6371               lt_cv_sys_max_cmd_len=$new_result &&
6372               test $i != 17 # 1/2 MB should be enough
6373       do
6374         i=`expr $i + 1`
6375         teststring=$teststring$teststring
6376       done
6377       teststring=
6378       # Add a significant safety factor because C++ compilers can tack on massive
6379       # amounts of additional arguments before passing them to the linker.
6380       # It appears as though 1/2 is a usable value.
6381       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6382     fi
6383     ;;
6384   esac
6385
6386 fi
6387
6388 if test -n $lt_cv_sys_max_cmd_len ; then
6389   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6390 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6391 else
6392   { echo "$as_me:$LINENO: result: none" >&5
6393 echo "${ECHO_T}none" >&6; }
6394 fi
6395
6396
6397
6398
6399
6400 # Check for command to grab the raw symbol name followed by C symbol from nm.
6401 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6402 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6403 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406
6407 # These are sane defaults that work on at least a few old systems.
6408 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6409
6410 # Character class describing NM global symbol codes.
6411 symcode='[BCDEGRST]'
6412
6413 # Regexp to match symbols that can be accessed directly from C.
6414 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6415
6416 # Transform an extracted symbol line into a proper C declaration
6417 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6418
6419 # Transform an extracted symbol line into symbol name and symbol address
6420 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'"
6421
6422 # Define system-specific variables.
6423 case $host_os in
6424 aix*)
6425   symcode='[BCDT]'
6426   ;;
6427 cygwin* | mingw* | pw32*)
6428   symcode='[ABCDGISTW]'
6429   ;;
6430 hpux*) # Its linker distinguishes data from code symbols
6431   if test "$host_cpu" = ia64; then
6432     symcode='[ABCDEGRST]'
6433   fi
6434   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6435   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'"
6436   ;;
6437 linux* | k*bsd*-gnu)
6438   if test "$host_cpu" = ia64; then
6439     symcode='[ABCDGIRSTW]'
6440     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6441     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'"
6442   fi
6443   ;;
6444 irix* | nonstopux*)
6445   symcode='[BCDEGRST]'
6446   ;;
6447 osf*)
6448   symcode='[BCDEGQRST]'
6449   ;;
6450 solaris*)
6451   symcode='[BDRT]'
6452   ;;
6453 sco3.2v5*)
6454   symcode='[DT]'
6455   ;;
6456 sysv4.2uw2*)
6457   symcode='[DT]'
6458   ;;
6459 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6460   symcode='[ABDT]'
6461   ;;
6462 sysv4)
6463   symcode='[DFNSTU]'
6464   ;;
6465 esac
6466
6467 # Handle CRLF in mingw tool chain
6468 opt_cr=
6469 case $build_os in
6470 mingw*)
6471   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6472   ;;
6473 esac
6474
6475 # If we're using GNU nm, then use its standard symbol codes.
6476 case `$NM -V 2>&1` in
6477 *GNU* | *'with BFD'*)
6478   symcode='[ABCDGIRSTW]' ;;
6479 esac
6480
6481 # Try without a prefix undercore, then with it.
6482 for ac_symprfx in "" "_"; do
6483
6484   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6485   symxfrm="\\1 $ac_symprfx\\2 \\2"
6486
6487   # Write the raw and C identifiers.
6488   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6489
6490   # Check to see that the pipe works correctly.
6491   pipe_works=no
6492
6493   rm -f conftest*
6494   cat > conftest.$ac_ext <<EOF
6495 #ifdef __cplusplus
6496 extern "C" {
6497 #endif
6498 char nm_test_var;
6499 void nm_test_func(){}
6500 #ifdef __cplusplus
6501 }
6502 #endif
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6504 EOF
6505
6506   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507   (eval $ac_compile) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; then
6511     # Now try to grab the symbols.
6512     nlist=conftest.nm
6513     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6514   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6515   ac_status=$?
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && test -s "$nlist"; then
6518       # Try sorting and uniquifying the output.
6519       if sort "$nlist" | uniq > "$nlist"T; then
6520         mv -f "$nlist"T "$nlist"
6521       else
6522         rm -f "$nlist"T
6523       fi
6524
6525       # Make sure that we snagged all the symbols we need.
6526       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6527         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6528           cat <<EOF > conftest.$ac_ext
6529 #ifdef __cplusplus
6530 extern "C" {
6531 #endif
6532
6533 EOF
6534           # Now generate the symbol file.
6535           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6536
6537           cat <<EOF >> conftest.$ac_ext
6538 #if defined (__STDC__) && __STDC__
6539 # define lt_ptr_t void *
6540 #else
6541 # define lt_ptr_t char *
6542 # define const
6543 #endif
6544
6545 /* The mapping between symbol names and symbols. */
6546 const struct {
6547   const char *name;
6548   lt_ptr_t address;
6549 }
6550 lt_preloaded_symbols[] =
6551 {
6552 EOF
6553           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6554           cat <<\EOF >> conftest.$ac_ext
6555   {0, (lt_ptr_t) 0}
6556 };
6557
6558 #ifdef __cplusplus
6559 }
6560 #endif
6561 EOF
6562           # Now try linking the two files.
6563           mv conftest.$ac_objext conftstm.$ac_objext
6564           lt_save_LIBS="$LIBS"
6565           lt_save_CFLAGS="$CFLAGS"
6566           LIBS="conftstm.$ac_objext"
6567           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6568           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569   (eval $ac_link) 2>&5
6570   ac_status=$?
6571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6573             pipe_works=yes
6574           fi
6575           LIBS="$lt_save_LIBS"
6576           CFLAGS="$lt_save_CFLAGS"
6577         else
6578           echo "cannot find nm_test_func in $nlist" >&5
6579         fi
6580       else
6581         echo "cannot find nm_test_var in $nlist" >&5
6582       fi
6583     else
6584       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6585     fi
6586   else
6587     echo "$progname: failed program was:" >&5
6588     cat conftest.$ac_ext >&5
6589   fi
6590   rm -rf conftest* conftst*
6591
6592   # Do not use the global_symbol_pipe unless it works.
6593   if test "$pipe_works" = yes; then
6594     break
6595   else
6596     lt_cv_sys_global_symbol_pipe=
6597   fi
6598 done
6599
6600 fi
6601
6602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6603   lt_cv_sys_global_symbol_to_cdecl=
6604 fi
6605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6606   { echo "$as_me:$LINENO: result: failed" >&5
6607 echo "${ECHO_T}failed" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: ok" >&5
6610 echo "${ECHO_T}ok" >&6; }
6611 fi
6612
6613 { echo "$as_me:$LINENO: checking for objdir" >&5
6614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6615 if test "${lt_cv_objdir+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   rm -f .libs 2>/dev/null
6619 mkdir .libs 2>/dev/null
6620 if test -d .libs; then
6621   lt_cv_objdir=.libs
6622 else
6623   # MS-DOS does not allow filenames that begin with a dot.
6624   lt_cv_objdir=_libs
6625 fi
6626 rmdir .libs 2>/dev/null
6627 fi
6628 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6629 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6630 objdir=$lt_cv_objdir
6631
6632
6633
6634
6635
6636 case $host_os in
6637 aix3*)
6638   # AIX sometimes has problems with the GCC collect2 program.  For some
6639   # reason, if we set the COLLECT_NAMES environment variable, the problems
6640   # vanish in a puff of smoke.
6641   if test "X${COLLECT_NAMES+set}" != Xset; then
6642     COLLECT_NAMES=
6643     export COLLECT_NAMES
6644   fi
6645   ;;
6646 esac
6647
6648 # Sed substitution that helps us do robust quoting.  It backslashifies
6649 # metacharacters that are still active within double-quoted strings.
6650 Xsed='sed -e 1s/^X//'
6651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6652
6653 # Same as above, but do not quote variable references.
6654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6655
6656 # Sed substitution to delay expansion of an escaped shell variable in a
6657 # double_quote_subst'ed string.
6658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6659
6660 # Sed substitution to avoid accidental globbing in evaled expressions
6661 no_glob_subst='s/\*/\\\*/g'
6662
6663 # Constants:
6664 rm="rm -f"
6665
6666 # Global variables:
6667 default_ofile=libtool
6668 can_build_shared=yes
6669
6670 # All known linkers require a `.a' archive for static linking (except MSVC,
6671 # which needs '.lib').
6672 libext=a
6673 ltmain="$ac_aux_dir/ltmain.sh"
6674 ofile="$default_ofile"
6675 with_gnu_ld="$lt_cv_prog_gnu_ld"
6676
6677 if test -n "$ac_tool_prefix"; then
6678   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6679 set dummy ${ac_tool_prefix}ar; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_prog_AR+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   if test -n "$AR"; then
6686   ac_cv_prog_AR="$AR" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693   for ac_exec_ext in '' $ac_executable_extensions; do
6694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695     ac_cv_prog_AR="${ac_tool_prefix}ar"
6696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 AR=$ac_cv_prog_AR
6706 if test -n "$AR"; then
6707   { echo "$as_me:$LINENO: result: $AR" >&5
6708 echo "${ECHO_T}$AR" >&6; }
6709 else
6710   { echo "$as_me:$LINENO: result: no" >&5
6711 echo "${ECHO_T}no" >&6; }
6712 fi
6713
6714
6715 fi
6716 if test -z "$ac_cv_prog_AR"; then
6717   ac_ct_AR=$AR
6718   # Extract the first word of "ar", so it can be a program name with args.
6719 set dummy ar; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$ac_ct_AR"; then
6726   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_ac_ct_AR="ar"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6746 if test -n "$ac_ct_AR"; then
6747   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6748 echo "${ECHO_T}$ac_ct_AR" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754   if test "x$ac_ct_AR" = x; then
6755     AR="false"
6756   else
6757     case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet.  If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&5
6762 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6763 whose name does not start with the host triplet.  If you think this
6764 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6765 ac_tool_warned=yes ;;
6766 esac
6767     AR=$ac_ct_AR
6768   fi
6769 else
6770   AR="$ac_cv_prog_AR"
6771 fi
6772
6773 if test -n "$ac_tool_prefix"; then
6774   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_RANLIB+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   if test -n "$RANLIB"; then
6782   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 echo "${ECHO_T}$RANLIB" >&6; }
6805 else
6806   { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813   ac_ct_RANLIB=$RANLIB
6814   # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$ac_ct_RANLIB"; then
6822   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_RANLIB="ranlib"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6842 if test -n "$ac_ct_RANLIB"; then
6843   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6844 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850   if test "x$ac_ct_RANLIB" = x; then
6851     RANLIB=":"
6852   else
6853     case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet.  If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863     RANLIB=$ac_ct_RANLIB
6864   fi
6865 else
6866   RANLIB="$ac_cv_prog_RANLIB"
6867 fi
6868
6869 if test -n "$ac_tool_prefix"; then
6870   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}strip; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_prog_STRIP+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877   if test -n "$STRIP"; then
6878   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885   for ac_exec_ext in '' $ac_executable_extensions; do
6886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 STRIP=$ac_cv_prog_STRIP
6898 if test -n "$STRIP"; then
6899   { echo "$as_me:$LINENO: result: $STRIP" >&5
6900 echo "${ECHO_T}$STRIP" >&6; }
6901 else
6902   { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6904 fi
6905
6906
6907 fi
6908 if test -z "$ac_cv_prog_STRIP"; then
6909   ac_ct_STRIP=$STRIP
6910   # Extract the first word of "strip", so it can be a program name with args.
6911 set dummy strip; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6915   echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917   if test -n "$ac_ct_STRIP"; then
6918   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923   IFS=$as_save_IFS
6924   test -z "$as_dir" && as_dir=.
6925   for ac_exec_ext in '' $ac_executable_extensions; do
6926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_ac_ct_STRIP="strip"
6928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929     break 2
6930   fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6938 if test -n "$ac_ct_STRIP"; then
6939   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6940 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6941 else
6942   { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6944 fi
6945
6946   if test "x$ac_ct_STRIP" = x; then
6947     STRIP=":"
6948   else
6949     case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet.  If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&5
6954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet.  If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959     STRIP=$ac_ct_STRIP
6960   fi
6961 else
6962   STRIP="$ac_cv_prog_STRIP"
6963 fi
6964
6965
6966 old_CC="$CC"
6967 old_CFLAGS="$CFLAGS"
6968
6969 # Set sane defaults for various variables
6970 test -z "$AR" && AR=ar
6971 test -z "$AR_FLAGS" && AR_FLAGS=cru
6972 test -z "$AS" && AS=as
6973 test -z "$CC" && CC=cc
6974 test -z "$LTCC" && LTCC=$CC
6975 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6976 test -z "$DLLTOOL" && DLLTOOL=dlltool
6977 test -z "$LD" && LD=ld
6978 test -z "$LN_S" && LN_S="ln -s"
6979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6980 test -z "$NM" && NM=nm
6981 test -z "$SED" && SED=sed
6982 test -z "$OBJDUMP" && OBJDUMP=objdump
6983 test -z "$RANLIB" && RANLIB=:
6984 test -z "$STRIP" && STRIP=:
6985 test -z "$ac_objext" && ac_objext=o
6986
6987 # Determine commands to create old-style static archives.
6988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6989 old_postinstall_cmds='chmod 644 $oldlib'
6990 old_postuninstall_cmds=
6991
6992 if test -n "$RANLIB"; then
6993   case $host_os in
6994   openbsd*)
6995     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6996     ;;
6997   *)
6998     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6999     ;;
7000   esac
7001   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7002 fi
7003
7004 for cc_temp in $compiler""; do
7005   case $cc_temp in
7006     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7007     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7008     \-*) ;;
7009     *) break;;
7010   esac
7011 done
7012 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7013
7014
7015 # Only perform the check for file, if the check method requires it
7016 case $deplibs_check_method in
7017 file_magic*)
7018   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7019     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7020 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   case $MAGIC_CMD in
7025 [\\/*] |  ?:[\\/]*)
7026   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7027   ;;
7028 *)
7029   lt_save_MAGIC_CMD="$MAGIC_CMD"
7030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7031   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7032   for ac_dir in $ac_dummy; do
7033     IFS="$lt_save_ifs"
7034     test -z "$ac_dir" && ac_dir=.
7035     if test -f $ac_dir/${ac_tool_prefix}file; then
7036       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7037       if test -n "$file_magic_test_file"; then
7038         case $deplibs_check_method in
7039         "file_magic "*)
7040           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7041           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7042           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7043             $EGREP "$file_magic_regex" > /dev/null; then
7044             :
7045           else
7046             cat <<EOF 1>&2
7047
7048 *** Warning: the command libtool uses to detect shared libraries,
7049 *** $file_magic_cmd, produces output that libtool cannot recognize.
7050 *** The result is that libtool may fail to recognize shared libraries
7051 *** as such.  This will affect the creation of libtool libraries that
7052 *** depend on shared libraries, but programs linked with such libtool
7053 *** libraries will work regardless of this problem.  Nevertheless, you
7054 *** may want to report the problem to your system manager and/or to
7055 *** bug-libtool@gnu.org
7056
7057 EOF
7058           fi ;;
7059         esac
7060       fi
7061       break
7062     fi
7063   done
7064   IFS="$lt_save_ifs"
7065   MAGIC_CMD="$lt_save_MAGIC_CMD"
7066   ;;
7067 esac
7068 fi
7069
7070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071 if test -n "$MAGIC_CMD"; then
7072   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7073 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079 if test -z "$lt_cv_path_MAGIC_CMD"; then
7080   if test -n "$ac_tool_prefix"; then
7081     { echo "$as_me:$LINENO: checking for file" >&5
7082 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7083 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   case $MAGIC_CMD in
7087 [\\/*] |  ?:[\\/]*)
7088   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7089   ;;
7090 *)
7091   lt_save_MAGIC_CMD="$MAGIC_CMD"
7092   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7093   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7094   for ac_dir in $ac_dummy; do
7095     IFS="$lt_save_ifs"
7096     test -z "$ac_dir" && ac_dir=.
7097     if test -f $ac_dir/file; then
7098       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7099       if test -n "$file_magic_test_file"; then
7100         case $deplibs_check_method in
7101         "file_magic "*)
7102           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7103           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7104           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7105             $EGREP "$file_magic_regex" > /dev/null; then
7106             :
7107           else
7108             cat <<EOF 1>&2
7109
7110 *** Warning: the command libtool uses to detect shared libraries,
7111 *** $file_magic_cmd, produces output that libtool cannot recognize.
7112 *** The result is that libtool may fail to recognize shared libraries
7113 *** as such.  This will affect the creation of libtool libraries that
7114 *** depend on shared libraries, but programs linked with such libtool
7115 *** libraries will work regardless of this problem.  Nevertheless, you
7116 *** may want to report the problem to your system manager and/or to
7117 *** bug-libtool@gnu.org
7118
7119 EOF
7120           fi ;;
7121         esac
7122       fi
7123       break
7124     fi
7125   done
7126   IFS="$lt_save_ifs"
7127   MAGIC_CMD="$lt_save_MAGIC_CMD"
7128   ;;
7129 esac
7130 fi
7131
7132 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7133 if test -n "$MAGIC_CMD"; then
7134   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7135 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7136 else
7137   { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7139 fi
7140
7141   else
7142     MAGIC_CMD=:
7143   fi
7144 fi
7145
7146   fi
7147   ;;
7148 esac
7149
7150
7151   case $host_os in
7152     rhapsody* | darwin*)
7153     if test -n "$ac_tool_prefix"; then
7154   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   if test -n "$DSYMUTIL"; then
7162   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7166 do
7167   IFS=$as_save_IFS
7168   test -z "$as_dir" && as_dir=.
7169   for ac_exec_ext in '' $ac_executable_extensions; do
7170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173     break 2
7174   fi
7175 done
7176 done
7177 IFS=$as_save_IFS
7178
7179 fi
7180 fi
7181 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7182 if test -n "$DSYMUTIL"; then
7183   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7184 echo "${ECHO_T}$DSYMUTIL" >&6; }
7185 else
7186   { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7188 fi
7189
7190
7191 fi
7192 if test -z "$ac_cv_prog_DSYMUTIL"; then
7193   ac_ct_DSYMUTIL=$DSYMUTIL
7194   # Extract the first word of "dsymutil", so it can be a program name with args.
7195 set dummy dsymutil; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   if test -n "$ac_ct_DSYMUTIL"; then
7202   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7206 do
7207   IFS=$as_save_IFS
7208   test -z "$as_dir" && as_dir=.
7209   for ac_exec_ext in '' $ac_executable_extensions; do
7210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7213     break 2
7214   fi
7215 done
7216 done
7217 IFS=$as_save_IFS
7218
7219 fi
7220 fi
7221 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7222 if test -n "$ac_ct_DSYMUTIL"; then
7223   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7224 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7225 else
7226   { echo "$as_me:$LINENO: result: no" >&5
7227 echo "${ECHO_T}no" >&6; }
7228 fi
7229
7230   if test "x$ac_ct_DSYMUTIL" = x; then
7231     DSYMUTIL=":"
7232   else
7233     case $cross_compiling:$ac_tool_warned in
7234 yes:)
7235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7236 whose name does not start with the host triplet.  If you think this
7237 configuration is useful to you, please write to autoconf@gnu.org." >&5
7238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7239 whose name does not start with the host triplet.  If you think this
7240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243     DSYMUTIL=$ac_ct_DSYMUTIL
7244   fi
7245 else
7246   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7247 fi
7248
7249     if test -n "$ac_tool_prefix"; then
7250   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7255   echo $ECHO_N "(cached) $ECHO_C" >&6
7256 else
7257   if test -n "$NMEDIT"; then
7258   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265   for ac_exec_ext in '' $ac_executable_extensions; do
7266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7267     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 NMEDIT=$ac_cv_prog_NMEDIT
7278 if test -n "$NMEDIT"; then
7279   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7280 echo "${ECHO_T}$NMEDIT" >&6; }
7281 else
7282   { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7284 fi
7285
7286
7287 fi
7288 if test -z "$ac_cv_prog_NMEDIT"; then
7289   ac_ct_NMEDIT=$NMEDIT
7290   # Extract the first word of "nmedit", so it can be a program name with args.
7291 set dummy nmedit; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   if test -n "$ac_ct_NMEDIT"; then
7298   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305   for ac_exec_ext in '' $ac_executable_extensions; do
7306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7307     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312 done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7318 if test -n "$ac_ct_NMEDIT"; then
7319   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7320 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7321 else
7322   { echo "$as_me:$LINENO: result: no" >&5
7323 echo "${ECHO_T}no" >&6; }
7324 fi
7325
7326   if test "x$ac_ct_NMEDIT" = x; then
7327     NMEDIT=":"
7328   else
7329     case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7332 whose name does not start with the host triplet.  If you think this
7333 configuration is useful to you, please write to autoconf@gnu.org." >&5
7334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7335 whose name does not start with the host triplet.  If you think this
7336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339     NMEDIT=$ac_ct_NMEDIT
7340   fi
7341 else
7342   NMEDIT="$ac_cv_prog_NMEDIT"
7343 fi
7344
7345
7346     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7347 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7348 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7349   echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351   lt_cv_apple_cc_single_mod=no
7352       if test -z "${LT_MULTI_MODULE}"; then
7353    # By default we will add the -single_module flag. You can override
7354    # by either setting the environment variable LT_MULTI_MODULE
7355    # non-empty at configure time, or by adding -multi_module to the
7356    # link flags.
7357    echo "int foo(void){return 1;}" > conftest.c
7358    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7359      -dynamiclib ${wl}-single_module conftest.c
7360    if test -f libconftest.dylib; then
7361      lt_cv_apple_cc_single_mod=yes
7362      rm -rf libconftest.dylib*
7363    fi
7364    rm conftest.c
7365       fi
7366 fi
7367 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7368 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7369     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7370 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7371 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374   lt_cv_ld_exported_symbols_list=no
7375       save_LDFLAGS=$LDFLAGS
7376       echo "_main" > conftest.sym
7377       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7378       cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384
7385 int
7386 main ()
7387 {
7388
7389   ;
7390   return 0;
7391 }
7392 _ACEOF
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (ac_try="$ac_link"
7395 case "(($ac_try" in
7396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397   *) ac_try_echo=$ac_try;;
7398 esac
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400   (eval "$ac_link") 2>conftest.er1
7401   ac_status=$?
7402   grep -v '^ *+' conftest.er1 >conftest.err
7403   rm -f conftest.er1
7404   cat conftest.err >&5
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } && {
7407          test -z "$ac_c_werror_flag" ||
7408          test ! -s conftest.err
7409        } && test -s conftest$ac_exeext &&
7410        $as_test_x conftest$ac_exeext; then
7411   lt_cv_ld_exported_symbols_list=yes
7412 else
7413   echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416         lt_cv_ld_exported_symbols_list=no
7417 fi
7418
7419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7420       conftest$ac_exeext conftest.$ac_ext
7421    LDFLAGS="$save_LDFLAGS"
7422
7423 fi
7424 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7425 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7426     case $host_os in
7427     rhapsody* | darwin1.[0123])
7428       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7429     darwin1.*)
7430      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7431     darwin*)
7432       # if running on 10.5 or later, the deployment target defaults
7433       # to the OS version, if on x86, and 10.4, the deployment
7434       # target defaults to 10.4. Don't you love it?
7435       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7436    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7437      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7438    10.[012]*)
7439      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7440    10.*)
7441      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7442       esac
7443     ;;
7444   esac
7445     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7446       _lt_dar_single_mod='$single_module'
7447     fi
7448     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7449       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7450     else
7451       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7452     fi
7453     if test "$DSYMUTIL" != ":"; then
7454       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7455     else
7456       _lt_dsymutil=
7457     fi
7458     ;;
7459   esac
7460
7461
7462 enable_dlopen=yes
7463 enable_win32_dll=no
7464
7465 # Check whether --enable-libtool-lock was given.
7466 if test "${enable_libtool_lock+set}" = set; then
7467   enableval=$enable_libtool_lock;
7468 fi
7469
7470 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7471
7472
7473 # Check whether --with-pic was given.
7474 if test "${with_pic+set}" = set; then
7475   withval=$with_pic; pic_mode="$withval"
7476 else
7477   pic_mode=default
7478 fi
7479
7480 test -z "$pic_mode" && pic_mode=default
7481
7482 # Use C for the default configuration in the libtool script
7483 tagname=
7484 lt_save_CC="$CC"
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492 # Source file extension for C test sources.
7493 ac_ext=c
7494
7495 # Object file extension for compiled C test sources.
7496 objext=o
7497 objext=$objext
7498
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;"
7501
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}'
7504
7505
7506 # If no C compiler was specified, use CC.
7507 LTCC=${LTCC-"$CC"}
7508
7509 # If no C compiler flags were specified, use CFLAGS.
7510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7511
7512 # Allow CC to be a program name with arguments.
7513 compiler=$CC
7514
7515
7516 # save warnings/boilerplate of simple test code
7517 ac_outfile=conftest.$ac_objext
7518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7520 _lt_compiler_boilerplate=`cat conftest.err`
7521 $rm conftest*
7522
7523 ac_outfile=conftest.$ac_objext
7524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7526 _lt_linker_boilerplate=`cat conftest.err`
7527 $rm -r conftest*
7528
7529
7530
7531 lt_prog_compiler_no_builtin_flag=
7532
7533 if test "$GCC" = yes; then
7534   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7535
7536
7537 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7538 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7539 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   lt_cv_prog_compiler_rtti_exceptions=no
7543   ac_outfile=conftest.$ac_objext
7544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7545    lt_compiler_flag="-fno-rtti -fno-exceptions"
7546    # Insert the option either (1) after the last *FLAGS variable, or
7547    # (2) before a word containing "conftest.", or (3) at the end.
7548    # Note that $ac_compile itself does not contain backslashes and begins
7549    # with a dollar sign (not a hyphen), so the echo should work correctly.
7550    # The option is referenced via a variable to avoid confusing sed.
7551    lt_compile=`echo "$ac_compile" | $SED \
7552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7554    -e 's:$: $lt_compiler_flag:'`
7555    (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7556    (eval "$lt_compile" 2>conftest.err)
7557    ac_status=$?
7558    cat conftest.err >&5
7559    echo "$as_me:7559: \$? = $ac_status" >&5
7560    if (exit $ac_status) && test -s "$ac_outfile"; then
7561      # The compiler can only warn and ignore the option if not recognized
7562      # So say no if there are warnings other than the usual output.
7563      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7566        lt_cv_prog_compiler_rtti_exceptions=yes
7567      fi
7568    fi
7569    $rm conftest*
7570
7571 fi
7572 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7573 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7574
7575 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7576     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7577 else
7578     :
7579 fi
7580
7581 fi
7582
7583 lt_prog_compiler_wl=
7584 lt_prog_compiler_pic=
7585 lt_prog_compiler_static=
7586
7587 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7588 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7589
7590   if test "$GCC" = yes; then
7591     lt_prog_compiler_wl='-Wl,'
7592     lt_prog_compiler_static='-static'
7593
7594     case $host_os in
7595       aix*)
7596       # All AIX code is PIC.
7597       if test "$host_cpu" = ia64; then
7598         # AIX 5 now supports IA64 processor
7599         lt_prog_compiler_static='-Bstatic'
7600       fi
7601       ;;
7602
7603     amigaos*)
7604       # FIXME: we need at least 68020 code to build shared libraries, but
7605       # adding the `-m68020' flag to GCC prevents building anything better,
7606       # like `-m68040'.
7607       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7608       ;;
7609
7610     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7611       # PIC is the default for these OSes.
7612       ;;
7613
7614     mingw* | cygwin* | pw32* | os2*)
7615       # This hack is so that the source file can tell whether it is being
7616       # built for inclusion in a dll (and should export symbols for example).
7617       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7618       # (--disable-auto-import) libraries
7619       lt_prog_compiler_pic='-DDLL_EXPORT'
7620       ;;
7621
7622     darwin* | rhapsody*)
7623       # PIC is the default on this platform
7624       # Common symbols not allowed in MH_DYLIB files
7625       lt_prog_compiler_pic='-fno-common'
7626       ;;
7627
7628     interix[3-9]*)
7629       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7630       # Instead, we relocate shared libraries at runtime.
7631       ;;
7632
7633     msdosdjgpp*)
7634       # Just because we use GCC doesn't mean we suddenly get shared libraries
7635       # on systems that don't support them.
7636       lt_prog_compiler_can_build_shared=no
7637       enable_shared=no
7638       ;;
7639
7640     sysv4*MP*)
7641       if test -d /usr/nec; then
7642         lt_prog_compiler_pic=-Kconform_pic
7643       fi
7644       ;;
7645
7646     hpux*)
7647       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7648       # not for PA HP-UX.
7649       case $host_cpu in
7650       hppa*64*|ia64*)
7651         # +Z the default
7652         ;;
7653       *)
7654         lt_prog_compiler_pic='-fPIC'
7655         ;;
7656       esac
7657       ;;
7658
7659     *)
7660       lt_prog_compiler_pic='-fPIC'
7661       ;;
7662     esac
7663   else
7664     # PORTME Check for flag to pass linker flags through the system compiler.
7665     case $host_os in
7666     aix*)
7667       lt_prog_compiler_wl='-Wl,'
7668       if test "$host_cpu" = ia64; then
7669         # AIX 5 now supports IA64 processor
7670         lt_prog_compiler_static='-Bstatic'
7671       else
7672         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7673       fi
7674       ;;
7675       darwin*)
7676         # PIC is the default on this platform
7677         # Common symbols not allowed in MH_DYLIB files
7678        case $cc_basename in
7679          xlc*)
7680          lt_prog_compiler_pic='-qnocommon'
7681          lt_prog_compiler_wl='-Wl,'
7682          ;;
7683        esac
7684        ;;
7685
7686     mingw* | cygwin* | pw32* | os2*)
7687       # This hack is so that the source file can tell whether it is being
7688       # built for inclusion in a dll (and should export symbols for example).
7689       lt_prog_compiler_pic='-DDLL_EXPORT'
7690       ;;
7691
7692     hpux9* | hpux10* | hpux11*)
7693       lt_prog_compiler_wl='-Wl,'
7694       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7695       # not for PA HP-UX.
7696       case $host_cpu in
7697       hppa*64*|ia64*)
7698         # +Z the default
7699         ;;
7700       *)
7701         lt_prog_compiler_pic='+Z'
7702         ;;
7703       esac
7704       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7705       lt_prog_compiler_static='${wl}-a ${wl}archive'
7706       ;;
7707
7708     irix5* | irix6* | nonstopux*)
7709       lt_prog_compiler_wl='-Wl,'
7710       # PIC (with -KPIC) is the default.
7711       lt_prog_compiler_static='-non_shared'
7712       ;;
7713
7714     newsos6)
7715       lt_prog_compiler_pic='-KPIC'
7716       lt_prog_compiler_static='-Bstatic'
7717       ;;
7718
7719     linux* | k*bsd*-gnu)
7720       case $cc_basename in
7721       icc* | ecc*)
7722         lt_prog_compiler_wl='-Wl,'
7723         lt_prog_compiler_pic='-KPIC'
7724         lt_prog_compiler_static='-static'
7725         ;;
7726       pgcc* | pgf77* | pgf90* | pgf95*)
7727         # Portland Group compilers (*not* the Pentium gcc compiler,
7728         # which looks to be a dead project)
7729         lt_prog_compiler_wl='-Wl,'
7730         lt_prog_compiler_pic='-fpic'
7731         lt_prog_compiler_static='-Bstatic'
7732         ;;
7733       ccc*)
7734         lt_prog_compiler_wl='-Wl,'
7735         # All Alpha code is PIC.
7736         lt_prog_compiler_static='-non_shared'
7737         ;;
7738       *)
7739         case `$CC -V 2>&1 | sed 5q` in
7740         *Sun\ C*)
7741           # Sun C 5.9
7742           lt_prog_compiler_pic='-KPIC'
7743           lt_prog_compiler_static='-Bstatic'
7744           lt_prog_compiler_wl='-Wl,'
7745           ;;
7746         *Sun\ F*)
7747           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7748           lt_prog_compiler_pic='-KPIC'
7749           lt_prog_compiler_static='-Bstatic'
7750           lt_prog_compiler_wl=''
7751           ;;
7752         esac
7753         ;;
7754       esac
7755       ;;
7756
7757     osf3* | osf4* | osf5*)
7758       lt_prog_compiler_wl='-Wl,'
7759       # All OSF/1 code is PIC.
7760       lt_prog_compiler_static='-non_shared'
7761       ;;
7762
7763     rdos*)
7764       lt_prog_compiler_static='-non_shared'
7765       ;;
7766
7767     solaris*)
7768       lt_prog_compiler_pic='-KPIC'
7769       lt_prog_compiler_static='-Bstatic'
7770       case $cc_basename in
7771       f77* | f90* | f95*)
7772         lt_prog_compiler_wl='-Qoption ld ';;
7773       *)
7774         lt_prog_compiler_wl='-Wl,';;
7775       esac
7776       ;;
7777
7778     sunos4*)
7779       lt_prog_compiler_wl='-Qoption ld '
7780       lt_prog_compiler_pic='-PIC'
7781       lt_prog_compiler_static='-Bstatic'
7782       ;;
7783
7784     sysv4 | sysv4.2uw2* | sysv4.3*)
7785       lt_prog_compiler_wl='-Wl,'
7786       lt_prog_compiler_pic='-KPIC'
7787       lt_prog_compiler_static='-Bstatic'
7788       ;;
7789
7790     sysv4*MP*)
7791       if test -d /usr/nec ;then
7792         lt_prog_compiler_pic='-Kconform_pic'
7793         lt_prog_compiler_static='-Bstatic'
7794       fi
7795       ;;
7796
7797     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7798       lt_prog_compiler_wl='-Wl,'
7799       lt_prog_compiler_pic='-KPIC'
7800       lt_prog_compiler_static='-Bstatic'
7801       ;;
7802
7803     unicos*)
7804       lt_prog_compiler_wl='-Wl,'
7805       lt_prog_compiler_can_build_shared=no
7806       ;;
7807
7808     uts4*)
7809       lt_prog_compiler_pic='-pic'
7810       lt_prog_compiler_static='-Bstatic'
7811       ;;
7812
7813     *)
7814       lt_prog_compiler_can_build_shared=no
7815       ;;
7816     esac
7817   fi
7818
7819 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7820 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7821
7822 #
7823 # Check to make sure the PIC flag actually works.
7824 #
7825 if test -n "$lt_prog_compiler_pic"; then
7826
7827 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7828 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7829 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   lt_cv_prog_compiler_pic_works=no
7833   ac_outfile=conftest.$ac_objext
7834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7836    # Insert the option either (1) after the last *FLAGS variable, or
7837    # (2) before a word containing "conftest.", or (3) at the end.
7838    # Note that $ac_compile itself does not contain backslashes and begins
7839    # with a dollar sign (not a hyphen), so the echo should work correctly.
7840    # The option is referenced via a variable to avoid confusing sed.
7841    lt_compile=`echo "$ac_compile" | $SED \
7842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844    -e 's:$: $lt_compiler_flag:'`
7845    (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846    (eval "$lt_compile" 2>conftest.err)
7847    ac_status=$?
7848    cat conftest.err >&5
7849    echo "$as_me:7849: \$? = $ac_status" >&5
7850    if (exit $ac_status) && test -s "$ac_outfile"; then
7851      # The compiler can only warn and ignore the option if not recognized
7852      # So say no if there are warnings other than the usual output.
7853      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856        lt_cv_prog_compiler_pic_works=yes
7857      fi
7858    fi
7859    $rm conftest*
7860
7861 fi
7862 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7863 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7864
7865 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7866     case $lt_prog_compiler_pic in
7867      "" | " "*) ;;
7868      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7869      esac
7870 else
7871     lt_prog_compiler_pic=
7872      lt_prog_compiler_can_build_shared=no
7873 fi
7874
7875 fi
7876 case $host_os in
7877   # For platforms which do not support PIC, -DPIC is meaningless:
7878   *djgpp*)
7879     lt_prog_compiler_pic=
7880     ;;
7881   *)
7882     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7883     ;;
7884 esac
7885
7886 #
7887 # Check to make sure the static flag actually works.
7888 #
7889 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7890 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7891 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7892 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   lt_cv_prog_compiler_static_works=no
7896    save_LDFLAGS="$LDFLAGS"
7897    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7898    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7899    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7900      # The linker can only warn and ignore the option if not recognized
7901      # So say no if there are warnings
7902      if test -s conftest.err; then
7903        # Append any errors to the config.log.
7904        cat conftest.err 1>&5
7905        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7906        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7907        if diff conftest.exp conftest.er2 >/dev/null; then
7908          lt_cv_prog_compiler_static_works=yes
7909        fi
7910      else
7911        lt_cv_prog_compiler_static_works=yes
7912      fi
7913    fi
7914    $rm -r conftest*
7915    LDFLAGS="$save_LDFLAGS"
7916
7917 fi
7918 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7919 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7922     :
7923 else
7924     lt_prog_compiler_static=
7925 fi
7926
7927
7928 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7929 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7930 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 else
7933   lt_cv_prog_compiler_c_o=no
7934    $rm -r conftest 2>/dev/null
7935    mkdir conftest
7936    cd conftest
7937    mkdir out
7938    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7939
7940    lt_compiler_flag="-o out/conftest2.$ac_objext"
7941    # Insert the option either (1) after the last *FLAGS variable, or
7942    # (2) before a word containing "conftest.", or (3) at the end.
7943    # Note that $ac_compile itself does not contain backslashes and begins
7944    # with a dollar sign (not a hyphen), so the echo should work correctly.
7945    lt_compile=`echo "$ac_compile" | $SED \
7946    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7947    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7948    -e 's:$: $lt_compiler_flag:'`
7949    (eval echo "\"\$as_me:7949: $lt_compile\"" >&5)
7950    (eval "$lt_compile" 2>out/conftest.err)
7951    ac_status=$?
7952    cat out/conftest.err >&5
7953    echo "$as_me:7953: \$? = $ac_status" >&5
7954    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7955    then
7956      # The compiler can only warn and ignore the option if not recognized
7957      # So say no if there are warnings
7958      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7959      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7960      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7961        lt_cv_prog_compiler_c_o=yes
7962      fi
7963    fi
7964    chmod u+w . 2>&5
7965    $rm conftest*
7966    # SGI C++ compiler will create directory out/ii_files/ for
7967    # template instantiation
7968    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7969    $rm out/* && rmdir out
7970    cd ..
7971    rmdir conftest
7972    $rm conftest*
7973
7974 fi
7975 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7976 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7977
7978
7979 hard_links="nottested"
7980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7981   # do not overwrite the value of need_locks provided by the user
7982   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7983 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7984   hard_links=yes
7985   $rm conftest*
7986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987   touch conftest.a
7988   ln conftest.a conftest.b 2>&5 || hard_links=no
7989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990   { echo "$as_me:$LINENO: result: $hard_links" >&5
7991 echo "${ECHO_T}$hard_links" >&6; }
7992   if test "$hard_links" = no; then
7993     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7994 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7995     need_locks=warn
7996   fi
7997 else
7998   need_locks=no
7999 fi
8000
8001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8003
8004   runpath_var=
8005   allow_undefined_flag=
8006   enable_shared_with_static_runtimes=no
8007   archive_cmds=
8008   archive_expsym_cmds=
8009   old_archive_From_new_cmds=
8010   old_archive_from_expsyms_cmds=
8011   export_dynamic_flag_spec=
8012   whole_archive_flag_spec=
8013   thread_safe_flag_spec=
8014   hardcode_libdir_flag_spec=
8015   hardcode_libdir_flag_spec_ld=
8016   hardcode_libdir_separator=
8017   hardcode_direct=no
8018   hardcode_minus_L=no
8019   hardcode_shlibpath_var=unsupported
8020   link_all_deplibs=unknown
8021   hardcode_automatic=no
8022   module_cmds=
8023   module_expsym_cmds=
8024   always_export_symbols=no
8025   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8026   # include_expsyms should be a list of space-separated symbols to be *always*
8027   # included in the symbol list
8028   include_expsyms=
8029   # exclude_expsyms can be an extended regexp of symbols to exclude
8030   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8031   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8032   # as well as any symbol that contains `d'.
8033   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8034   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8035   # platforms (ab)use it in PIC code, but their linkers get confused if
8036   # the symbol is explicitly referenced.  Since portable code cannot
8037   # rely on this symbol name, it's probably fine to never include it in
8038   # preloaded symbol tables.
8039   # Exclude shared library initialization/finalization symbols.
8040   extract_expsyms_cmds=
8041   # Just being paranoid about ensuring that cc_basename is set.
8042   for cc_temp in $compiler""; do
8043   case $cc_temp in
8044     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8045     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8046     \-*) ;;
8047     *) break;;
8048   esac
8049 done
8050 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8051
8052   case $host_os in
8053   cygwin* | mingw* | pw32*)
8054     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8055     # When not using gcc, we currently assume that we are using
8056     # Microsoft Visual C++.
8057     if test "$GCC" != yes; then
8058       with_gnu_ld=no
8059     fi
8060     ;;
8061   interix*)
8062     # we just hope/assume this is gcc and not c89 (= MSVC++)
8063     with_gnu_ld=yes
8064     ;;
8065   openbsd*)
8066     with_gnu_ld=no
8067     ;;
8068   esac
8069
8070   ld_shlibs=yes
8071   if test "$with_gnu_ld" = yes; then
8072     # If archive_cmds runs LD, not CC, wlarc should be empty
8073     wlarc='${wl}'
8074
8075     # Set some defaults for GNU ld with shared library support. These
8076     # are reset later if shared libraries are not supported. Putting them
8077     # here allows them to be overridden if necessary.
8078     runpath_var=LD_RUN_PATH
8079     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8080     export_dynamic_flag_spec='${wl}--export-dynamic'
8081     # ancient GNU ld didn't support --whole-archive et. al.
8082     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8083         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8084       else
8085         whole_archive_flag_spec=
8086     fi
8087     supports_anon_versioning=no
8088     case `$LD -v 2>/dev/null` in
8089       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8090       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8091       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8092       *\ 2.11.*) ;; # other 2.11 versions
8093       *) supports_anon_versioning=yes ;;
8094     esac
8095
8096     # See if GNU ld supports shared libraries.
8097     case $host_os in
8098     aix[3-9]*)
8099       # On AIX/PPC, the GNU linker is very broken
8100       if test "$host_cpu" != ia64; then
8101         ld_shlibs=no
8102         cat <<EOF 1>&2
8103
8104 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8105 *** to be unable to reliably create shared libraries on AIX.
8106 *** Therefore, libtool is disabling shared libraries support.  If you
8107 *** really care for shared libraries, you may want to modify your PATH
8108 *** so that a non-GNU linker is found, and then restart.
8109
8110 EOF
8111       fi
8112       ;;
8113
8114     amigaos*)
8115       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)'
8116       hardcode_libdir_flag_spec='-L$libdir'
8117       hardcode_minus_L=yes
8118
8119       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8120       # that the semantics of dynamic libraries on AmigaOS, at least up
8121       # to version 4, is to share data among multiple programs linked
8122       # with the same dynamic library.  Since this doesn't match the
8123       # behavior of shared libraries on other platforms, we can't use
8124       # them.
8125       ld_shlibs=no
8126       ;;
8127
8128     beos*)
8129       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8130         allow_undefined_flag=unsupported
8131         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8132         # support --undefined.  This deserves some investigation.  FIXME
8133         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8134       else
8135         ld_shlibs=no
8136       fi
8137       ;;
8138
8139     cygwin* | mingw* | pw32*)
8140       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8141       # as there is no search path for DLLs.
8142       hardcode_libdir_flag_spec='-L$libdir'
8143       allow_undefined_flag=unsupported
8144       always_export_symbols=no
8145       enable_shared_with_static_runtimes=yes
8146       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8147
8148       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8149         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8150         # If the export-symbols file already is a .def file (1st line
8151         # is EXPORTS), use it as is; otherwise, prepend...
8152         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8153           cp $export_symbols $output_objdir/$soname.def;
8154         else
8155           echo EXPORTS > $output_objdir/$soname.def;
8156           cat $export_symbols >> $output_objdir/$soname.def;
8157         fi~
8158         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8159       else
8160         ld_shlibs=no
8161       fi
8162       ;;
8163
8164     interix[3-9]*)
8165       hardcode_direct=no
8166       hardcode_shlibpath_var=no
8167       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8168       export_dynamic_flag_spec='${wl}-E'
8169       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8170       # Instead, shared libraries are loaded at an image base (0x10000000 by
8171       # default) and relocated if they conflict, which is a slow very memory
8172       # consuming and fragmenting process.  To avoid this, we pick a random,
8173       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8174       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8175       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8176       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'
8177       ;;
8178
8179     gnu* | linux* | k*bsd*-gnu)
8180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8181         tmp_addflag=
8182         case $cc_basename,$host_cpu in
8183         pgcc*)                          # Portland Group C compiler
8184           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'
8185           tmp_addflag=' $pic_flag'
8186           ;;
8187         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8188           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'
8189           tmp_addflag=' $pic_flag -Mnomain' ;;
8190         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8191           tmp_addflag=' -i_dynamic' ;;
8192         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8193           tmp_addflag=' -i_dynamic -nofor_main' ;;
8194         ifc* | ifort*)                  # Intel Fortran compiler
8195           tmp_addflag=' -nofor_main' ;;
8196         esac
8197         case `$CC -V 2>&1 | sed 5q` in
8198         *Sun\ C*)                       # Sun C 5.9
8199           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'
8200           tmp_sharedflag='-G' ;;
8201         *Sun\ F*)                       # Sun Fortran 8.3
8202           tmp_sharedflag='-G' ;;
8203         *)
8204           tmp_sharedflag='-shared' ;;
8205         esac
8206         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207
8208         if test $supports_anon_versioning = yes; then
8209           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8210   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8211   $echo "local: *; };" >> $output_objdir/$libname.ver~
8212           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8213         fi
8214         link_all_deplibs=no
8215       else
8216         ld_shlibs=no
8217       fi
8218       ;;
8219
8220     netbsd* | netbsdelf*-gnu)
8221       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8222         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8223         wlarc=
8224       else
8225         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8226         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8227       fi
8228       ;;
8229
8230     solaris*)
8231       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8232         ld_shlibs=no
8233         cat <<EOF 1>&2
8234
8235 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8236 *** create shared libraries on Solaris systems.  Therefore, libtool
8237 *** is disabling shared libraries support.  We urge you to upgrade GNU
8238 *** binutils to release 2.9.1 or newer.  Another option is to modify
8239 *** your PATH or compiler configuration so that the native linker is
8240 *** used, and then restart.
8241
8242 EOF
8243       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8244         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8245         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8246       else
8247         ld_shlibs=no
8248       fi
8249       ;;
8250
8251     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8252       case `$LD -v 2>&1` in
8253         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8254         ld_shlibs=no
8255         cat <<_LT_EOF 1>&2
8256
8257 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8258 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8259 *** is disabling shared libraries support.  We urge you to upgrade GNU
8260 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8261 *** your PATH or compiler configuration so that the native linker is
8262 *** used, and then restart.
8263
8264 _LT_EOF
8265         ;;
8266         *)
8267           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8268             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8269             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8270             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8271           else
8272             ld_shlibs=no
8273           fi
8274         ;;
8275       esac
8276       ;;
8277
8278     sunos4*)
8279       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8280       wlarc=
8281       hardcode_direct=yes
8282       hardcode_shlibpath_var=no
8283       ;;
8284
8285     *)
8286       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289       else
8290         ld_shlibs=no
8291       fi
8292       ;;
8293     esac
8294
8295     if test "$ld_shlibs" = no; then
8296       runpath_var=
8297       hardcode_libdir_flag_spec=
8298       export_dynamic_flag_spec=
8299       whole_archive_flag_spec=
8300     fi
8301   else
8302     # PORTME fill in a description of your system's linker (not GNU ld)
8303     case $host_os in
8304     aix3*)
8305       allow_undefined_flag=unsupported
8306       always_export_symbols=yes
8307       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'
8308       # Note: this linker hardcodes the directories in LIBPATH if there
8309       # are no directories specified by -L.
8310       hardcode_minus_L=yes
8311       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8312         # Neither direct hardcoding nor static linking is supported with a
8313         # broken collect2.
8314         hardcode_direct=unsupported
8315       fi
8316       ;;
8317
8318     aix[4-9]*)
8319       if test "$host_cpu" = ia64; then
8320         # On IA64, the linker does run time linking by default, so we don't
8321         # have to do anything special.
8322         aix_use_runtimelinking=no
8323         exp_sym_flag='-Bexport'
8324         no_entry_flag=""
8325       else
8326         # If we're using GNU nm, then we don't want the "-C" option.
8327         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8328         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8329           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'
8330         else
8331           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'
8332         fi
8333         aix_use_runtimelinking=no
8334
8335         # Test if we are trying to use run time linking or normal
8336         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8337         # need to do runtime linking.
8338         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8339           for ld_flag in $LDFLAGS; do
8340           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8341             aix_use_runtimelinking=yes
8342             break
8343           fi
8344           done
8345           ;;
8346         esac
8347
8348         exp_sym_flag='-bexport'
8349         no_entry_flag='-bnoentry'
8350       fi
8351
8352       # When large executables or shared objects are built, AIX ld can
8353       # have problems creating the table of contents.  If linking a library
8354       # or program results in "error TOC overflow" add -mminimal-toc to
8355       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8356       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8357
8358       archive_cmds=''
8359       hardcode_direct=yes
8360       hardcode_libdir_separator=':'
8361       link_all_deplibs=yes
8362
8363       if test "$GCC" = yes; then
8364         case $host_os in aix4.[012]|aix4.[012].*)
8365         # We only want to do this on AIX 4.2 and lower, the check
8366         # below for broken collect2 doesn't work under 4.3+
8367           collect2name=`${CC} -print-prog-name=collect2`
8368           if test -f "$collect2name" && \
8369            strings "$collect2name" | grep resolve_lib_name >/dev/null
8370           then
8371           # We have reworked collect2
8372           :
8373           else
8374           # We have old collect2
8375           hardcode_direct=unsupported
8376           # It fails to find uninstalled libraries when the uninstalled
8377           # path is not listed in the libpath.  Setting hardcode_minus_L
8378           # to unsupported forces relinking
8379           hardcode_minus_L=yes
8380           hardcode_libdir_flag_spec='-L$libdir'
8381           hardcode_libdir_separator=
8382           fi
8383           ;;
8384         esac
8385         shared_flag='-shared'
8386         if test "$aix_use_runtimelinking" = yes; then
8387           shared_flag="$shared_flag "'${wl}-G'
8388         fi
8389       else
8390         # not using gcc
8391         if test "$host_cpu" = ia64; then
8392         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8393         # chokes on -Wl,-G. The following line is correct:
8394           shared_flag='-G'
8395         else
8396           if test "$aix_use_runtimelinking" = yes; then
8397             shared_flag='${wl}-G'
8398           else
8399             shared_flag='${wl}-bM:SRE'
8400           fi
8401         fi
8402       fi
8403
8404       # It seems that -bexpall does not export symbols beginning with
8405       # underscore (_), so it is better to generate a list of symbols to export.
8406       always_export_symbols=yes
8407       if test "$aix_use_runtimelinking" = yes; then
8408         # Warning - without using the other runtime loading flags (-brtl),
8409         # -berok will link without error, but may produce a broken library.
8410         allow_undefined_flag='-berok'
8411        # Determine the default libpath from the value encoded in an empty executable.
8412        cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418
8419 int
8420 main ()
8421 {
8422
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (ac_try="$ac_link"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_link") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } && {
8441          test -z "$ac_c_werror_flag" ||
8442          test ! -s conftest.err
8443        } && test -s conftest$ac_exeext &&
8444        $as_test_x conftest$ac_exeext; then
8445
8446 lt_aix_libpath_sed='
8447     /Import File Strings/,/^$/ {
8448         /^0/ {
8449             s/^0  *\(.*\)$/\1/
8450             p
8451         }
8452     }'
8453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8454 # Check for a 64-bit object if we didn't find anything.
8455 if test -z "$aix_libpath"; then
8456   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8457 fi
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462
8463 fi
8464
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466       conftest$ac_exeext conftest.$ac_ext
8467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8468
8469        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8470         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"
8471        else
8472         if test "$host_cpu" = ia64; then
8473           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8474           allow_undefined_flag="-z nodefs"
8475           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"
8476         else
8477          # Determine the default libpath from the value encoded in an empty executable.
8478          cat >conftest.$ac_ext <<_ACEOF
8479 /* confdefs.h.  */
8480 _ACEOF
8481 cat confdefs.h >>conftest.$ac_ext
8482 cat >>conftest.$ac_ext <<_ACEOF
8483 /* end confdefs.h.  */
8484
8485 int
8486 main ()
8487 {
8488
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (ac_try="$ac_link"
8495 case "(($ac_try" in
8496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497   *) ac_try_echo=$ac_try;;
8498 esac
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500   (eval "$ac_link") 2>conftest.er1
8501   ac_status=$?
8502   grep -v '^ *+' conftest.er1 >conftest.err
8503   rm -f conftest.er1
8504   cat conftest.err >&5
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); } && {
8507          test -z "$ac_c_werror_flag" ||
8508          test ! -s conftest.err
8509        } && test -s conftest$ac_exeext &&
8510        $as_test_x conftest$ac_exeext; then
8511
8512 lt_aix_libpath_sed='
8513     /Import File Strings/,/^$/ {
8514         /^0/ {
8515             s/^0  *\(.*\)$/\1/
8516             p
8517         }
8518     }'
8519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8520 # Check for a 64-bit object if we didn't find anything.
8521 if test -z "$aix_libpath"; then
8522   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8523 fi
8524 else
8525   echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528
8529 fi
8530
8531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8532       conftest$ac_exeext conftest.$ac_ext
8533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8534
8535          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8536           # Warning - without using the other run time loading flags,
8537           # -berok will link without error, but may produce a broken library.
8538           no_undefined_flag=' ${wl}-bernotok'
8539           allow_undefined_flag=' ${wl}-berok'
8540           # Exported symbols can be pulled into shared objects from archives
8541           whole_archive_flag_spec='$convenience'
8542           archive_cmds_need_lc=yes
8543           # This is similar to how AIX traditionally builds its shared libraries.
8544           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'
8545         fi
8546       fi
8547       ;;
8548
8549     amigaos*)
8550       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)'
8551       hardcode_libdir_flag_spec='-L$libdir'
8552       hardcode_minus_L=yes
8553       # see comment about different semantics on the GNU ld section
8554       ld_shlibs=no
8555       ;;
8556
8557     bsdi[45]*)
8558       export_dynamic_flag_spec=-rdynamic
8559       ;;
8560
8561     cygwin* | mingw* | pw32*)
8562       # When not using gcc, we currently assume that we are using
8563       # Microsoft Visual C++.
8564       # hardcode_libdir_flag_spec is actually meaningless, as there is
8565       # no search path for DLLs.
8566       hardcode_libdir_flag_spec=' '
8567       allow_undefined_flag=unsupported
8568       # Tell ltmain to make .lib files, not .a files.
8569       libext=lib
8570       # Tell ltmain to make .dll files, not .so files.
8571       shrext_cmds=".dll"
8572       # FIXME: Setting linknames here is a bad hack.
8573       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8574       # The linker will automatically build a .lib file if we build a DLL.
8575       old_archive_From_new_cmds='true'
8576       # FIXME: Should let the user specify the lib program.
8577       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8578       fix_srcfile_path='`cygpath -w "$srcfile"`'
8579       enable_shared_with_static_runtimes=yes
8580       ;;
8581
8582     darwin* | rhapsody*)
8583       case $host_os in
8584         rhapsody* | darwin1.[012])
8585          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8586          ;;
8587        *) # Darwin 1.3 on
8588          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8589            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8590          else
8591            case ${MACOSX_DEPLOYMENT_TARGET} in
8592              10.[012])
8593                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8594                ;;
8595              10.*)
8596                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8597                ;;
8598            esac
8599          fi
8600          ;;
8601       esac
8602       archive_cmds_need_lc=no
8603       hardcode_direct=no
8604       hardcode_automatic=yes
8605       hardcode_shlibpath_var=unsupported
8606       whole_archive_flag_spec=''
8607       link_all_deplibs=yes
8608     if test "$GCC" = yes ; then
8609         output_verbose_link_cmd='echo'
8610         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8611         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8612         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8613         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8614     else
8615       case $cc_basename in
8616         xlc*)
8617          output_verbose_link_cmd='echo'
8618          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8619          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8620           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8621          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}'
8622           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}'
8623           ;;
8624        *)
8625          ld_shlibs=no
8626           ;;
8627       esac
8628     fi
8629       ;;
8630
8631     dgux*)
8632       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_libdir_flag_spec='-L$libdir'
8634       hardcode_shlibpath_var=no
8635       ;;
8636
8637     freebsd1*)
8638       ld_shlibs=no
8639       ;;
8640
8641     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8642     # support.  Future versions do this automatically, but an explicit c++rt0.o
8643     # does not break anything, and helps significantly (at the cost of a little
8644     # extra space).
8645     freebsd2.2*)
8646       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8647       hardcode_libdir_flag_spec='-R$libdir'
8648       hardcode_direct=yes
8649       hardcode_shlibpath_var=no
8650       ;;
8651
8652     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8653     freebsd2*)
8654       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655       hardcode_direct=yes
8656       hardcode_minus_L=yes
8657       hardcode_shlibpath_var=no
8658       ;;
8659
8660     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8661     freebsd* | dragonfly*)
8662       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8663       hardcode_libdir_flag_spec='-R$libdir'
8664       hardcode_direct=yes
8665       hardcode_shlibpath_var=no
8666       ;;
8667
8668     hpux9*)
8669       if test "$GCC" = yes; then
8670         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'
8671       else
8672         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'
8673       fi
8674       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8675       hardcode_libdir_separator=:
8676       hardcode_direct=yes
8677
8678       # hardcode_minus_L: Not really in the search PATH,
8679       # but as the default location of the library.
8680       hardcode_minus_L=yes
8681       export_dynamic_flag_spec='${wl}-E'
8682       ;;
8683
8684     hpux10*)
8685       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8686         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687       else
8688         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8689       fi
8690       if test "$with_gnu_ld" = no; then
8691         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692         hardcode_libdir_separator=:
8693
8694         hardcode_direct=yes
8695         export_dynamic_flag_spec='${wl}-E'
8696
8697         # hardcode_minus_L: Not really in the search PATH,
8698         # but as the default location of the library.
8699         hardcode_minus_L=yes
8700       fi
8701       ;;
8702
8703     hpux11*)
8704       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8705         case $host_cpu in
8706         hppa*64*)
8707           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8708           ;;
8709         ia64*)
8710           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8711           ;;
8712         *)
8713           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714           ;;
8715         esac
8716       else
8717         case $host_cpu in
8718         hppa*64*)
8719           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8720           ;;
8721         ia64*)
8722           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8723           ;;
8724         *)
8725           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8726           ;;
8727         esac
8728       fi
8729       if test "$with_gnu_ld" = no; then
8730         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8731         hardcode_libdir_separator=:
8732
8733         case $host_cpu in
8734         hppa*64*|ia64*)
8735           hardcode_libdir_flag_spec_ld='+b $libdir'
8736           hardcode_direct=no
8737           hardcode_shlibpath_var=no
8738           ;;
8739         *)
8740           hardcode_direct=yes
8741           export_dynamic_flag_spec='${wl}-E'
8742
8743           # hardcode_minus_L: Not really in the search PATH,
8744           # but as the default location of the library.
8745           hardcode_minus_L=yes
8746           ;;
8747         esac
8748       fi
8749       ;;
8750
8751     irix5* | irix6* | nonstopux*)
8752       if test "$GCC" = yes; then
8753         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'
8754       else
8755         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'
8756         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8757       fi
8758       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8759       hardcode_libdir_separator=:
8760       link_all_deplibs=yes
8761       ;;
8762
8763     netbsd* | netbsdelf*-gnu)
8764       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8765         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8766       else
8767         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8768       fi
8769       hardcode_libdir_flag_spec='-R$libdir'
8770       hardcode_direct=yes
8771       hardcode_shlibpath_var=no
8772       ;;
8773
8774     newsos6)
8775       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776       hardcode_direct=yes
8777       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8778       hardcode_libdir_separator=:
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     openbsd*)
8783       if test -f /usr/libexec/ld.so; then
8784         hardcode_direct=yes
8785         hardcode_shlibpath_var=no
8786         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8787           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8788           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8789           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8790           export_dynamic_flag_spec='${wl}-E'
8791         else
8792           case $host_os in
8793            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8794              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795              hardcode_libdir_flag_spec='-R$libdir'
8796              ;;
8797            *)
8798              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8799              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800              ;;
8801           esac
8802         fi
8803       else
8804         ld_shlibs=no
8805       fi
8806       ;;
8807
8808     os2*)
8809       hardcode_libdir_flag_spec='-L$libdir'
8810       hardcode_minus_L=yes
8811       allow_undefined_flag=unsupported
8812       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'
8813       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8814       ;;
8815
8816     osf3*)
8817       if test "$GCC" = yes; then
8818         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819         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'
8820       else
8821         allow_undefined_flag=' -expect_unresolved \*'
8822         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'
8823       fi
8824       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825       hardcode_libdir_separator=:
8826       ;;
8827
8828     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8829       if test "$GCC" = yes; then
8830         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8831         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'
8832         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833       else
8834         allow_undefined_flag=' -expect_unresolved \*'
8835         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'
8836         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8837         $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'
8838
8839         # Both c and cxx compiler support -rpath directly
8840         hardcode_libdir_flag_spec='-rpath $libdir'
8841       fi
8842       hardcode_libdir_separator=:
8843       ;;
8844
8845     solaris*)
8846       no_undefined_flag=' -z text'
8847       if test "$GCC" = yes; then
8848         wlarc='${wl}'
8849         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8851           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8852       else
8853         wlarc=''
8854         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8855         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8856         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8857       fi
8858       hardcode_libdir_flag_spec='-R$libdir'
8859       hardcode_shlibpath_var=no
8860       case $host_os in
8861       solaris2.[0-5] | solaris2.[0-5].*) ;;
8862       *)
8863         # The compiler driver will combine and reorder linker options,
8864         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8865         # but is careful enough not to reorder.
8866         # Supported since Solaris 2.6 (maybe 2.5.1?)
8867         if test "$GCC" = yes; then
8868           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8869         else
8870           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8871         fi
8872         ;;
8873       esac
8874       link_all_deplibs=yes
8875       ;;
8876
8877     sunos4*)
8878       if test "x$host_vendor" = xsequent; then
8879         # Use $CC to link under sequent, because it throws in some extra .o
8880         # files that make .init and .fini sections work.
8881         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8882       else
8883         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8884       fi
8885       hardcode_libdir_flag_spec='-L$libdir'
8886       hardcode_direct=yes
8887       hardcode_minus_L=yes
8888       hardcode_shlibpath_var=no
8889       ;;
8890
8891     sysv4)
8892       case $host_vendor in
8893         sni)
8894           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8895           hardcode_direct=yes # is this really true???
8896         ;;
8897         siemens)
8898           ## LD is ld it makes a PLAMLIB
8899           ## CC just makes a GrossModule.
8900           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8901           reload_cmds='$CC -r -o $output$reload_objs'
8902           hardcode_direct=no
8903         ;;
8904         motorola)
8905           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8907         ;;
8908       esac
8909       runpath_var='LD_RUN_PATH'
8910       hardcode_shlibpath_var=no
8911       ;;
8912
8913     sysv4.3*)
8914       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915       hardcode_shlibpath_var=no
8916       export_dynamic_flag_spec='-Bexport'
8917       ;;
8918
8919     sysv4*MP*)
8920       if test -d /usr/nec; then
8921         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922         hardcode_shlibpath_var=no
8923         runpath_var=LD_RUN_PATH
8924         hardcode_runpath_var=yes
8925         ld_shlibs=yes
8926       fi
8927       ;;
8928
8929     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8930       no_undefined_flag='${wl}-z,text'
8931       archive_cmds_need_lc=no
8932       hardcode_shlibpath_var=no
8933       runpath_var='LD_RUN_PATH'
8934
8935       if test "$GCC" = yes; then
8936         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8938       else
8939         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8941       fi
8942       ;;
8943
8944     sysv5* | sco3.2v5* | sco5v6*)
8945       # Note: We can NOT use -z defs as we might desire, because we do not
8946       # link with -lc, and that would cause any symbols used from libc to
8947       # always be unresolved, which means just about no library would
8948       # ever link correctly.  If we're not using GNU ld we use -z text
8949       # though, which does catch some bad symbols but isn't as heavy-handed
8950       # as -z defs.
8951       no_undefined_flag='${wl}-z,text'
8952       allow_undefined_flag='${wl}-z,nodefs'
8953       archive_cmds_need_lc=no
8954       hardcode_shlibpath_var=no
8955       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8956       hardcode_libdir_separator=':'
8957       link_all_deplibs=yes
8958       export_dynamic_flag_spec='${wl}-Bexport'
8959       runpath_var='LD_RUN_PATH'
8960
8961       if test "$GCC" = yes; then
8962         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8963         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8964       else
8965         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8967       fi
8968       ;;
8969
8970     uts4*)
8971       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8972       hardcode_libdir_flag_spec='-L$libdir'
8973       hardcode_shlibpath_var=no
8974       ;;
8975
8976     *)
8977       ld_shlibs=no
8978       ;;
8979     esac
8980   fi
8981
8982 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8983 echo "${ECHO_T}$ld_shlibs" >&6; }
8984 test "$ld_shlibs" = no && can_build_shared=no
8985
8986 #
8987 # Do we need to explicitly link libc?
8988 #
8989 case "x$archive_cmds_need_lc" in
8990 x|xyes)
8991   # Assume -lc should be added
8992   archive_cmds_need_lc=yes
8993
8994   if test "$enable_shared" = yes && test "$GCC" = yes; then
8995     case $archive_cmds in
8996     *'~'*)
8997       # FIXME: we may have to deal with multi-command sequences.
8998       ;;
8999     '$CC '*)
9000       # Test whether the compiler implicitly links with -lc since on some
9001       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9002       # to ld, don't add -lc before -lgcc.
9003       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9004 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9005       $rm conftest*
9006       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9009   (eval $ac_compile) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } 2>conftest.err; then
9013         soname=conftest
9014         lib=conftest
9015         libobjs=conftest.$ac_objext
9016         deplibs=
9017         wl=$lt_prog_compiler_wl
9018         pic_flag=$lt_prog_compiler_pic
9019         compiler_flags=-v
9020         linker_flags=-v
9021         verstring=
9022         output_objdir=.
9023         libname=conftest
9024         lt_save_allow_undefined_flag=$allow_undefined_flag
9025         allow_undefined_flag=
9026         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9027   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }
9031         then
9032           archive_cmds_need_lc=no
9033         else
9034           archive_cmds_need_lc=yes
9035         fi
9036         allow_undefined_flag=$lt_save_allow_undefined_flag
9037       else
9038         cat conftest.err 1>&5
9039       fi
9040       $rm conftest*
9041       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9042 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9043       ;;
9044     esac
9045   fi
9046   ;;
9047 esac
9048
9049 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9050 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9051 library_names_spec=
9052 libname_spec='lib$name'
9053 soname_spec=
9054 shrext_cmds=".so"
9055 postinstall_cmds=
9056 postuninstall_cmds=
9057 finish_cmds=
9058 finish_eval=
9059 shlibpath_var=
9060 shlibpath_overrides_runpath=unknown
9061 version_type=none
9062 dynamic_linker="$host_os ld.so"
9063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9064
9065 if test "$GCC" = yes; then
9066   case $host_os in
9067     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9068     *) lt_awk_arg="/^libraries:/" ;;
9069   esac
9070   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9071   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9072     # if the path contains ";" then we assume it to be the separator
9073     # otherwise default to the standard path separator (i.e. ":") - it is
9074     # assumed that no part of a normal pathname contains ";" but that should
9075     # okay in the real world where ";" in dirpaths is itself problematic.
9076     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9077   else
9078     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9079   fi
9080   # Ok, now we have the path, separated by spaces, we can step through it
9081   # and add multilib dir if necessary.
9082   lt_tmp_lt_search_path_spec=
9083   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9084   for lt_sys_path in $lt_search_path_spec; do
9085     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9086       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9087     else
9088       test -d "$lt_sys_path" && \
9089         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9090     fi
9091   done
9092   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9093 BEGIN {RS=" "; FS="/|\n";} {
9094   lt_foo="";
9095   lt_count=0;
9096   for (lt_i = NF; lt_i > 0; lt_i--) {
9097     if ($lt_i != "" && $lt_i != ".") {
9098       if ($lt_i == "..") {
9099         lt_count++;
9100       } else {
9101         if (lt_count == 0) {
9102           lt_foo="/" $lt_i lt_foo;
9103         } else {
9104           lt_count--;
9105         }
9106       }
9107     }
9108   }
9109   if (lt_foo != "") { lt_freq[lt_foo]++; }
9110   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9111 }'`
9112   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9113 else
9114   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9115 fi
9116 need_lib_prefix=unknown
9117 hardcode_into_libs=no
9118
9119 # when you set need_version to no, make sure it does not cause -set_version
9120 # flags to be left without arguments
9121 need_version=unknown
9122
9123 case $host_os in
9124 aix3*)
9125   version_type=linux
9126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9127   shlibpath_var=LIBPATH
9128
9129   # AIX 3 has no versioning support, so we append a major version to the name.
9130   soname_spec='${libname}${release}${shared_ext}$major'
9131   ;;
9132
9133 aix[4-9]*)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   hardcode_into_libs=yes
9138   if test "$host_cpu" = ia64; then
9139     # AIX 5 supports IA64
9140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9141     shlibpath_var=LD_LIBRARY_PATH
9142   else
9143     # With GCC up to 2.95.x, collect2 would create an import file
9144     # for dependence libraries.  The import file would start with
9145     # the line `#! .'.  This would cause the generated library to
9146     # depend on `.', always an invalid library.  This was fixed in
9147     # development snapshots of GCC prior to 3.0.
9148     case $host_os in
9149       aix4 | aix4.[01] | aix4.[01].*)
9150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9151            echo ' yes '
9152            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9153         :
9154       else
9155         can_build_shared=no
9156       fi
9157       ;;
9158     esac
9159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9160     # soname into executable. Probably we can add versioning support to
9161     # collect2, so additional links can be useful in future.
9162     if test "$aix_use_runtimelinking" = yes; then
9163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9164       # instead of lib<name>.a to let people know that these are not
9165       # typical AIX shared libraries.
9166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9167     else
9168       # We preserve .a as extension for shared libraries through AIX4.2
9169       # and later when we are not doing run time linking.
9170       library_names_spec='${libname}${release}.a $libname.a'
9171       soname_spec='${libname}${release}${shared_ext}$major'
9172     fi
9173     shlibpath_var=LIBPATH
9174   fi
9175   ;;
9176
9177 amigaos*)
9178   library_names_spec='$libname.ixlibrary $libname.a'
9179   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9180   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'
9181   ;;
9182
9183 beos*)
9184   library_names_spec='${libname}${shared_ext}'
9185   dynamic_linker="$host_os ld.so"
9186   shlibpath_var=LIBRARY_PATH
9187   ;;
9188
9189 bsdi[45]*)
9190   version_type=linux
9191   need_version=no
9192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193   soname_spec='${libname}${release}${shared_ext}$major'
9194   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9195   shlibpath_var=LD_LIBRARY_PATH
9196   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9197   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9198   # the default ld.so.conf also contains /usr/contrib/lib and
9199   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9200   # libtool to hard-code these into programs
9201   ;;
9202
9203 cygwin* | mingw* | pw32*)
9204   version_type=windows
9205   shrext_cmds=".dll"
9206   need_version=no
9207   need_lib_prefix=no
9208
9209   case $GCC,$host_os in
9210   yes,cygwin* | yes,mingw* | yes,pw32*)
9211     library_names_spec='$libname.dll.a'
9212     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9213     postinstall_cmds='base_file=`basename \${file}`~
9214       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9215       dldir=$destdir/`dirname \$dlpath`~
9216       test -d \$dldir || mkdir -p \$dldir~
9217       $install_prog $dir/$dlname \$dldir/$dlname~
9218       chmod a+x \$dldir/$dlname'
9219     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9220       dlpath=$dir/\$dldll~
9221        $rm \$dlpath'
9222     shlibpath_overrides_runpath=yes
9223
9224     case $host_os in
9225     cygwin*)
9226       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9227       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9228       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9229       ;;
9230     mingw*)
9231       # MinGW DLLs use traditional 'lib' prefix
9232       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9234       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9235         # It is most probably a Windows format PATH printed by
9236         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9237         # path with ; separators, and with drive letters. We can handle the
9238         # drive letters (cygwin fileutils understands them), so leave them,
9239         # especially as we might pass files found there to a mingw objdump,
9240         # which wouldn't understand a cygwinified path. Ahh.
9241         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9242       else
9243         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9244       fi
9245       ;;
9246     pw32*)
9247       # pw32 DLLs use 'pw' prefix rather than 'lib'
9248       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9249       ;;
9250     esac
9251     ;;
9252
9253   *)
9254     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9255     ;;
9256   esac
9257   dynamic_linker='Win32 ld.exe'
9258   # FIXME: first we should search . and the directory the executable is in
9259   shlibpath_var=PATH
9260   ;;
9261
9262 darwin* | rhapsody*)
9263   dynamic_linker="$host_os dyld"
9264   version_type=darwin
9265   need_lib_prefix=no
9266   need_version=no
9267   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9268   soname_spec='${libname}${release}${major}$shared_ext'
9269   shlibpath_overrides_runpath=yes
9270   shlibpath_var=DYLD_LIBRARY_PATH
9271   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9272
9273   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9274   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9275   ;;
9276
9277 dgux*)
9278   version_type=linux
9279   need_lib_prefix=no
9280   need_version=no
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9282   soname_spec='${libname}${release}${shared_ext}$major'
9283   shlibpath_var=LD_LIBRARY_PATH
9284   ;;
9285
9286 freebsd1*)
9287   dynamic_linker=no
9288   ;;
9289
9290 freebsd* | dragonfly*)
9291   # DragonFly does not have aout.  When/if they implement a new
9292   # versioning mechanism, adjust this.
9293   if test -x /usr/bin/objformat; then
9294     objformat=`/usr/bin/objformat`
9295   else
9296     case $host_os in
9297     freebsd[123]*) objformat=aout ;;
9298     *) objformat=elf ;;
9299     esac
9300   fi
9301   version_type=freebsd-$objformat
9302   case $version_type in
9303     freebsd-elf*)
9304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9305       need_version=no
9306       need_lib_prefix=no
9307       ;;
9308     freebsd-*)
9309       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9310       need_version=yes
9311       ;;
9312   esac
9313   shlibpath_var=LD_LIBRARY_PATH
9314   case $host_os in
9315   freebsd2*)
9316     shlibpath_overrides_runpath=yes
9317     ;;
9318   freebsd3.[01]* | freebsdelf3.[01]*)
9319     shlibpath_overrides_runpath=yes
9320     hardcode_into_libs=yes
9321     ;;
9322   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9323   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9324     shlibpath_overrides_runpath=no
9325     hardcode_into_libs=yes
9326     ;;
9327   *) # from 4.6 on, and DragonFly
9328     shlibpath_overrides_runpath=yes
9329     hardcode_into_libs=yes
9330     ;;
9331   esac
9332   ;;
9333
9334 gnu*)
9335   version_type=linux
9336   need_lib_prefix=no
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   shlibpath_var=LD_LIBRARY_PATH
9341   hardcode_into_libs=yes
9342   ;;
9343
9344 hpux9* | hpux10* | hpux11*)
9345   # Give a soname corresponding to the major version so that dld.sl refuses to
9346   # link against other versions.
9347   version_type=sunos
9348   need_lib_prefix=no
9349   need_version=no
9350   case $host_cpu in
9351   ia64*)
9352     shrext_cmds='.so'
9353     hardcode_into_libs=yes
9354     dynamic_linker="$host_os dld.so"
9355     shlibpath_var=LD_LIBRARY_PATH
9356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358     soname_spec='${libname}${release}${shared_ext}$major'
9359     if test "X$HPUX_IA64_MODE" = X32; then
9360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9361     else
9362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9363     fi
9364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9365     ;;
9366    hppa*64*)
9367      shrext_cmds='.sl'
9368      hardcode_into_libs=yes
9369      dynamic_linker="$host_os dld.sl"
9370      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9371      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9372      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373      soname_spec='${libname}${release}${shared_ext}$major'
9374      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9375      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9376      ;;
9377    *)
9378     shrext_cmds='.sl'
9379     dynamic_linker="$host_os dld.sl"
9380     shlibpath_var=SHLIB_PATH
9381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383     soname_spec='${libname}${release}${shared_ext}$major'
9384     ;;
9385   esac
9386   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9387   postinstall_cmds='chmod 555 $lib'
9388   ;;
9389
9390 interix[3-9]*)
9391   version_type=linux
9392   need_lib_prefix=no
9393   need_version=no
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9397   shlibpath_var=LD_LIBRARY_PATH
9398   shlibpath_overrides_runpath=no
9399   hardcode_into_libs=yes
9400   ;;
9401
9402 irix5* | irix6* | nonstopux*)
9403   case $host_os in
9404     nonstopux*) version_type=nonstopux ;;
9405     *)
9406         if test "$lt_cv_prog_gnu_ld" = yes; then
9407                 version_type=linux
9408         else
9409                 version_type=irix
9410         fi ;;
9411   esac
9412   need_lib_prefix=no
9413   need_version=no
9414   soname_spec='${libname}${release}${shared_ext}$major'
9415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9416   case $host_os in
9417   irix5* | nonstopux*)
9418     libsuff= shlibsuff=
9419     ;;
9420   *)
9421     case $LD in # libtool.m4 will add one of these switches to LD
9422     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9423       libsuff= shlibsuff= libmagic=32-bit;;
9424     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9425       libsuff=32 shlibsuff=N32 libmagic=N32;;
9426     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9427       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9428     *) libsuff= shlibsuff= libmagic=never-match;;
9429     esac
9430     ;;
9431   esac
9432   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9433   shlibpath_overrides_runpath=no
9434   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9435   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9436   hardcode_into_libs=yes
9437   ;;
9438
9439 # No shared lib support for Linux oldld, aout, or coff.
9440 linux*oldld* | linux*aout* | linux*coff*)
9441   dynamic_linker=no
9442   ;;
9443
9444 # This must be Linux ELF.
9445 linux* | k*bsd*-gnu)
9446   version_type=linux
9447   need_lib_prefix=no
9448   need_version=no
9449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9452   shlibpath_var=LD_LIBRARY_PATH
9453   shlibpath_overrides_runpath=no
9454   # This implies no fast_install, which is unacceptable.
9455   # Some rework will be needed to allow for fast_install
9456   # before this can be enabled.
9457   hardcode_into_libs=yes
9458
9459   # Append ld.so.conf contents to the search path
9460   if test -f /etc/ld.so.conf; then
9461     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' ' '`
9462     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9463   fi
9464
9465   # We used to test for /lib/ld.so.1 and disable shared libraries on
9466   # powerpc, because MkLinux only supported shared libraries with the
9467   # GNU dynamic linker.  Since this was broken with cross compilers,
9468   # most powerpc-linux boxes support dynamic linking these days and
9469   # people can always --disable-shared, the test was removed, and we
9470   # assume the GNU/Linux dynamic linker is in use.
9471   dynamic_linker='GNU/Linux ld.so'
9472   ;;
9473
9474 netbsdelf*-gnu)
9475   version_type=linux
9476   need_lib_prefix=no
9477   need_version=no
9478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9479   soname_spec='${libname}${release}${shared_ext}$major'
9480   shlibpath_var=LD_LIBRARY_PATH
9481   shlibpath_overrides_runpath=no
9482   hardcode_into_libs=yes
9483   dynamic_linker='NetBSD ld.elf_so'
9484   ;;
9485
9486 netbsd*)
9487   version_type=sunos
9488   need_lib_prefix=no
9489   need_version=no
9490   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9492     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9493     dynamic_linker='NetBSD (a.out) ld.so'
9494   else
9495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9496     soname_spec='${libname}${release}${shared_ext}$major'
9497     dynamic_linker='NetBSD ld.elf_so'
9498   fi
9499   shlibpath_var=LD_LIBRARY_PATH
9500   shlibpath_overrides_runpath=yes
9501   hardcode_into_libs=yes
9502   ;;
9503
9504 newsos6)
9505   version_type=linux
9506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9507   shlibpath_var=LD_LIBRARY_PATH
9508   shlibpath_overrides_runpath=yes
9509   ;;
9510
9511 nto-qnx*)
9512   version_type=linux
9513   need_lib_prefix=no
9514   need_version=no
9515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9516   soname_spec='${libname}${release}${shared_ext}$major'
9517   shlibpath_var=LD_LIBRARY_PATH
9518   shlibpath_overrides_runpath=yes
9519   ;;
9520
9521 openbsd*)
9522   version_type=sunos
9523   sys_lib_dlsearch_path_spec="/usr/lib"
9524   need_lib_prefix=no
9525   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9526   case $host_os in
9527     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9528     *)                         need_version=no  ;;
9529   esac
9530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9531   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9532   shlibpath_var=LD_LIBRARY_PATH
9533   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534     case $host_os in
9535       openbsd2.[89] | openbsd2.[89].*)
9536         shlibpath_overrides_runpath=no
9537         ;;
9538       *)
9539         shlibpath_overrides_runpath=yes
9540         ;;
9541       esac
9542   else
9543     shlibpath_overrides_runpath=yes
9544   fi
9545   ;;
9546
9547 os2*)
9548   libname_spec='$name'
9549   shrext_cmds=".dll"
9550   need_lib_prefix=no
9551   library_names_spec='$libname${shared_ext} $libname.a'
9552   dynamic_linker='OS/2 ld.exe'
9553   shlibpath_var=LIBPATH
9554   ;;
9555
9556 osf3* | osf4* | osf5*)
9557   version_type=osf
9558   need_lib_prefix=no
9559   need_version=no
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562   shlibpath_var=LD_LIBRARY_PATH
9563   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9564   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9565   ;;
9566
9567 rdos*)
9568   dynamic_linker=no
9569   ;;
9570
9571 solaris*)
9572   version_type=linux
9573   need_lib_prefix=no
9574   need_version=no
9575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   shlibpath_var=LD_LIBRARY_PATH
9578   shlibpath_overrides_runpath=yes
9579   hardcode_into_libs=yes
9580   # ldd complains unless libraries are executable
9581   postinstall_cmds='chmod +x $lib'
9582   ;;
9583
9584 sunos4*)
9585   version_type=sunos
9586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9587   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9588   shlibpath_var=LD_LIBRARY_PATH
9589   shlibpath_overrides_runpath=yes
9590   if test "$with_gnu_ld" = yes; then
9591     need_lib_prefix=no
9592   fi
9593   need_version=yes
9594   ;;
9595
9596 sysv4 | sysv4.3*)
9597   version_type=linux
9598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599   soname_spec='${libname}${release}${shared_ext}$major'
9600   shlibpath_var=LD_LIBRARY_PATH
9601   case $host_vendor in
9602     sni)
9603       shlibpath_overrides_runpath=no
9604       need_lib_prefix=no
9605       export_dynamic_flag_spec='${wl}-Blargedynsym'
9606       runpath_var=LD_RUN_PATH
9607       ;;
9608     siemens)
9609       need_lib_prefix=no
9610       ;;
9611     motorola)
9612       need_lib_prefix=no
9613       need_version=no
9614       shlibpath_overrides_runpath=no
9615       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9616       ;;
9617   esac
9618   ;;
9619
9620 sysv4*MP*)
9621   if test -d /usr/nec ;then
9622     version_type=linux
9623     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9624     soname_spec='$libname${shared_ext}.$major'
9625     shlibpath_var=LD_LIBRARY_PATH
9626   fi
9627   ;;
9628
9629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9630   version_type=freebsd-elf
9631   need_lib_prefix=no
9632   need_version=no
9633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9634   soname_spec='${libname}${release}${shared_ext}$major'
9635   shlibpath_var=LD_LIBRARY_PATH
9636   hardcode_into_libs=yes
9637   if test "$with_gnu_ld" = yes; then
9638     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9639     shlibpath_overrides_runpath=no
9640   else
9641     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9642     shlibpath_overrides_runpath=yes
9643     case $host_os in
9644       sco3.2v5*)
9645         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9646         ;;
9647     esac
9648   fi
9649   sys_lib_dlsearch_path_spec='/usr/lib'
9650   ;;
9651
9652 uts4*)
9653   version_type=linux
9654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655   soname_spec='${libname}${release}${shared_ext}$major'
9656   shlibpath_var=LD_LIBRARY_PATH
9657   ;;
9658
9659 *)
9660   dynamic_linker=no
9661   ;;
9662 esac
9663 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9664 echo "${ECHO_T}$dynamic_linker" >&6; }
9665 test "$dynamic_linker" = no && can_build_shared=no
9666
9667 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9668   echo $ECHO_N "(cached) $ECHO_C" >&6
9669 else
9670   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9671 fi
9672
9673 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9674 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9678 fi
9679
9680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9681
9682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9683 if test "$GCC" = yes; then
9684   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9685 fi
9686
9687 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9688 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9689 hardcode_action=
9690 if test -n "$hardcode_libdir_flag_spec" || \
9691    test -n "$runpath_var" || \
9692    test "X$hardcode_automatic" = "Xyes" ; then
9693
9694   # We can hardcode non-existant directories.
9695   if test "$hardcode_direct" != no &&
9696      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9697      # have to relink, otherwise we might link with an installed library
9698      # when we should be linking with a yet-to-be-installed one
9699      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9700      test "$hardcode_minus_L" != no; then
9701     # Linking always hardcodes the temporary library directory.
9702     hardcode_action=relink
9703   else
9704     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9705     hardcode_action=immediate
9706   fi
9707 else
9708   # We cannot hardcode anything, or else we can only hardcode existing
9709   # directories.
9710   hardcode_action=unsupported
9711 fi
9712 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9713 echo "${ECHO_T}$hardcode_action" >&6; }
9714
9715 if test "$hardcode_action" = relink; then
9716   # Fast installation is not supported
9717   enable_fast_install=no
9718 elif test "$shlibpath_overrides_runpath" = yes ||
9719      test "$enable_shared" = no; then
9720   # Fast installation is not necessary
9721   enable_fast_install=needless
9722 fi
9723
9724 striplib=
9725 old_striplib=
9726 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9727 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9728 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9729   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9730   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9731   { echo "$as_me:$LINENO: result: yes" >&5
9732 echo "${ECHO_T}yes" >&6; }
9733 else
9734 # FIXME - insert some real tests, host_os isn't really good enough
9735   case $host_os in
9736    darwin*)
9737        if test -n "$STRIP" ; then
9738          striplib="$STRIP -x"
9739          old_striplib="$STRIP -S"
9740          { echo "$as_me:$LINENO: result: yes" >&5
9741 echo "${ECHO_T}yes" >&6; }
9742        else
9743   { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9745 fi
9746        ;;
9747    *)
9748   { echo "$as_me:$LINENO: result: no" >&5
9749 echo "${ECHO_T}no" >&6; }
9750     ;;
9751   esac
9752 fi
9753
9754 if test "x$enable_dlopen" != xyes; then
9755   enable_dlopen=unknown
9756   enable_dlopen_self=unknown
9757   enable_dlopen_self_static=unknown
9758 else
9759   lt_cv_dlopen=no
9760   lt_cv_dlopen_libs=
9761
9762   case $host_os in
9763   beos*)
9764     lt_cv_dlopen="load_add_on"
9765     lt_cv_dlopen_libs=
9766     lt_cv_dlopen_self=yes
9767     ;;
9768
9769   mingw* | pw32*)
9770     lt_cv_dlopen="LoadLibrary"
9771     lt_cv_dlopen_libs=
9772    ;;
9773
9774   cygwin*)
9775     lt_cv_dlopen="dlopen"
9776     lt_cv_dlopen_libs=
9777    ;;
9778
9779   darwin*)
9780   # if libdl is installed we need to link against it
9781     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9782 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9783 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   ac_check_lib_save_LIBS=$LIBS
9787 LIBS="-ldl  $LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796    Use char because int might match the return type of a GCC
9797    builtin and then its argument prototype would still apply.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char dlopen ();
9802 int
9803 main ()
9804 {
9805 return dlopen ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (ac_try="$ac_link"
9812 case "(($ac_try" in
9813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814   *) ac_try_echo=$ac_try;;
9815 esac
9816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817   (eval "$ac_link") 2>conftest.er1
9818   ac_status=$?
9819   grep -v '^ *+' conftest.er1 >conftest.err
9820   rm -f conftest.er1
9821   cat conftest.err >&5
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); } && {
9824          test -z "$ac_c_werror_flag" ||
9825          test ! -s conftest.err
9826        } && test -s conftest$ac_exeext &&
9827        $as_test_x conftest$ac_exeext; then
9828   ac_cv_lib_dl_dlopen=yes
9829 else
9830   echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9832
9833         ac_cv_lib_dl_dlopen=no
9834 fi
9835
9836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9837       conftest$ac_exeext conftest.$ac_ext
9838 LIBS=$ac_check_lib_save_LIBS
9839 fi
9840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9841 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9842 if test $ac_cv_lib_dl_dlopen = yes; then
9843   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9844 else
9845
9846     lt_cv_dlopen="dyld"
9847     lt_cv_dlopen_libs=
9848     lt_cv_dlopen_self=yes
9849
9850 fi
9851
9852    ;;
9853
9854   *)
9855     { echo "$as_me:$LINENO: checking for shl_load" >&5
9856 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9857 if test "${ac_cv_func_shl_load+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9868 #define shl_load innocuous_shl_load
9869
9870 /* System header to define __stub macros and hopefully few prototypes,
9871     which can conflict with char shl_load (); below.
9872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9873     <limits.h> exists even on freestanding compilers.  */
9874
9875 #ifdef __STDC__
9876 # include <limits.h>
9877 #else
9878 # include <assert.h>
9879 #endif
9880
9881 #undef shl_load
9882
9883 /* Override any GCC internal prototype to avoid an error.
9884    Use char because int might match the return type of a GCC
9885    builtin and then its argument prototype would still apply.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 char shl_load ();
9890 /* The GNU C library defines this for functions which it implements
9891     to always fail with ENOSYS.  Some functions are actually named
9892     something starting with __ and the normal name is an alias.  */
9893 #if defined __stub_shl_load || defined __stub___shl_load
9894 choke me
9895 #endif
9896
9897 int
9898 main ()
9899 {
9900 return shl_load ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (ac_try="$ac_link"
9907 case "(($ac_try" in
9908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909   *) ac_try_echo=$ac_try;;
9910 esac
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912   (eval "$ac_link") 2>conftest.er1
9913   ac_status=$?
9914   grep -v '^ *+' conftest.er1 >conftest.err
9915   rm -f conftest.er1
9916   cat conftest.err >&5
9917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918   (exit $ac_status); } && {
9919          test -z "$ac_c_werror_flag" ||
9920          test ! -s conftest.err
9921        } && test -s conftest$ac_exeext &&
9922        $as_test_x conftest$ac_exeext; then
9923   ac_cv_func_shl_load=yes
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928         ac_cv_func_shl_load=no
9929 fi
9930
9931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9932       conftest$ac_exeext conftest.$ac_ext
9933 fi
9934 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9935 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9936 if test $ac_cv_func_shl_load = yes; then
9937   lt_cv_dlopen="shl_load"
9938 else
9939   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9940 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9941 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   ac_check_lib_save_LIBS=$LIBS
9945 LIBS="-ldld  $LIBS"
9946 cat >conftest.$ac_ext <<_ACEOF
9947 /* confdefs.h.  */
9948 _ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h.  */
9952
9953 /* Override any GCC internal prototype to avoid an error.
9954    Use char because int might match the return type of a GCC
9955    builtin and then its argument prototype would still apply.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 char shl_load ();
9960 int
9961 main ()
9962 {
9963 return shl_load ();
9964   ;
9965   return 0;
9966 }
9967 _ACEOF
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9970 case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_link") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } && {
9982          test -z "$ac_c_werror_flag" ||
9983          test ! -s conftest.err
9984        } && test -s conftest$ac_exeext &&
9985        $as_test_x conftest$ac_exeext; then
9986   ac_cv_lib_dld_shl_load=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991         ac_cv_lib_dld_shl_load=no
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995       conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9997 fi
9998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9999 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10000 if test $ac_cv_lib_dld_shl_load = yes; then
10001   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10002 else
10003   { echo "$as_me:$LINENO: checking for dlopen" >&5
10004 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10005 if test "${ac_cv_func_dlopen+set}" = set; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   cat >conftest.$ac_ext <<_ACEOF
10009 /* confdefs.h.  */
10010 _ACEOF
10011 cat confdefs.h >>conftest.$ac_ext
10012 cat >>conftest.$ac_ext <<_ACEOF
10013 /* end confdefs.h.  */
10014 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10016 #define dlopen innocuous_dlopen
10017
10018 /* System header to define __stub macros and hopefully few prototypes,
10019     which can conflict with char dlopen (); below.
10020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021     <limits.h> exists even on freestanding compilers.  */
10022
10023 #ifdef __STDC__
10024 # include <limits.h>
10025 #else
10026 # include <assert.h>
10027 #endif
10028
10029 #undef dlopen
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char dlopen ();
10038 /* The GNU C library defines this for functions which it implements
10039     to always fail with ENOSYS.  Some functions are actually named
10040     something starting with __ and the normal name is an alias.  */
10041 #if defined __stub_dlopen || defined __stub___dlopen
10042 choke me
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048 return dlopen ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } && {
10067          test -z "$ac_c_werror_flag" ||
10068          test ! -s conftest.err
10069        } && test -s conftest$ac_exeext &&
10070        $as_test_x conftest$ac_exeext; then
10071   ac_cv_func_dlopen=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076         ac_cv_func_dlopen=no
10077 fi
10078
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080       conftest$ac_exeext conftest.$ac_ext
10081 fi
10082 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10083 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10084 if test $ac_cv_func_dlopen = yes; then
10085   lt_cv_dlopen="dlopen"
10086 else
10087   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10088 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-ldl  $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100
10101 /* Override any GCC internal prototype to avoid an error.
10102    Use char because int might match the return type of a GCC
10103    builtin and then its argument prototype would still apply.  */
10104 #ifdef __cplusplus
10105 extern "C"
10106 #endif
10107 char dlopen ();
10108 int
10109 main ()
10110 {
10111 return dlopen ();
10112   ;
10113   return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (ac_try="$ac_link"
10118 case "(($ac_try" in
10119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120   *) ac_try_echo=$ac_try;;
10121 esac
10122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123   (eval "$ac_link") 2>conftest.er1
10124   ac_status=$?
10125   grep -v '^ *+' conftest.er1 >conftest.err
10126   rm -f conftest.er1
10127   cat conftest.err >&5
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); } && {
10130          test -z "$ac_c_werror_flag" ||
10131          test ! -s conftest.err
10132        } && test -s conftest$ac_exeext &&
10133        $as_test_x conftest$ac_exeext; then
10134   ac_cv_lib_dl_dlopen=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139         ac_cv_lib_dl_dlopen=no
10140 fi
10141
10142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10143       conftest$ac_exeext conftest.$ac_ext
10144 LIBS=$ac_check_lib_save_LIBS
10145 fi
10146 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10147 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10148 if test $ac_cv_lib_dl_dlopen = yes; then
10149   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10150 else
10151   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10152 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10154   echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156   ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lsvld  $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h.  */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h.  */
10164
10165 /* Override any GCC internal prototype to avoid an error.
10166    Use char because int might match the return type of a GCC
10167    builtin and then its argument prototype would still apply.  */
10168 #ifdef __cplusplus
10169 extern "C"
10170 #endif
10171 char dlopen ();
10172 int
10173 main ()
10174 {
10175 return dlopen ();
10176   ;
10177   return 0;
10178 }
10179 _ACEOF
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184   *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187   (eval "$ac_link") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } && {
10194          test -z "$ac_c_werror_flag" ||
10195          test ! -s conftest.err
10196        } && test -s conftest$ac_exeext &&
10197        $as_test_x conftest$ac_exeext; then
10198   ac_cv_lib_svld_dlopen=yes
10199 else
10200   echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203         ac_cv_lib_svld_dlopen=no
10204 fi
10205
10206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10207       conftest$ac_exeext conftest.$ac_ext
10208 LIBS=$ac_check_lib_save_LIBS
10209 fi
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10211 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10212 if test $ac_cv_lib_svld_dlopen = yes; then
10213   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10214 else
10215   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10216 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10217 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-ldld  $LIBS"
10222 cat >conftest.$ac_ext <<_ACEOF
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228
10229 /* Override any GCC internal prototype to avoid an error.
10230    Use char because int might match the return type of a GCC
10231    builtin and then its argument prototype would still apply.  */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 char dld_link ();
10236 int
10237 main ()
10238 {
10239 return dld_link ();
10240   ;
10241   return 0;
10242 }
10243 _ACEOF
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (ac_try="$ac_link"
10246 case "(($ac_try" in
10247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248   *) ac_try_echo=$ac_try;;
10249 esac
10250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251   (eval "$ac_link") 2>conftest.er1
10252   ac_status=$?
10253   grep -v '^ *+' conftest.er1 >conftest.err
10254   rm -f conftest.er1
10255   cat conftest.err >&5
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } && {
10258          test -z "$ac_c_werror_flag" ||
10259          test ! -s conftest.err
10260        } && test -s conftest$ac_exeext &&
10261        $as_test_x conftest$ac_exeext; then
10262   ac_cv_lib_dld_dld_link=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267         ac_cv_lib_dld_dld_link=no
10268 fi
10269
10270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10271       conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10273 fi
10274 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10276 if test $ac_cv_lib_dld_dld_link = yes; then
10277   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10278 fi
10279
10280
10281 fi
10282
10283
10284 fi
10285
10286
10287 fi
10288
10289
10290 fi
10291
10292
10293 fi
10294
10295     ;;
10296   esac
10297
10298   if test "x$lt_cv_dlopen" != xno; then
10299     enable_dlopen=yes
10300   else
10301     enable_dlopen=no
10302   fi
10303
10304   case $lt_cv_dlopen in
10305   dlopen)
10306     save_CPPFLAGS="$CPPFLAGS"
10307     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10308
10309     save_LDFLAGS="$LDFLAGS"
10310     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10311
10312     save_LIBS="$LIBS"
10313     LIBS="$lt_cv_dlopen_libs $LIBS"
10314
10315     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10316 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10317 if test "${lt_cv_dlopen_self+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320           if test "$cross_compiling" = yes; then :
10321   lt_cv_dlopen_self=cross
10322 else
10323   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10324   lt_status=$lt_dlunknown
10325   cat > conftest.$ac_ext <<EOF
10326 #line 10326 "configure"
10327 #include "confdefs.h"
10328
10329 #if HAVE_DLFCN_H
10330 #include <dlfcn.h>
10331 #endif
10332
10333 #include <stdio.h>
10334
10335 #ifdef RTLD_GLOBAL
10336 #  define LT_DLGLOBAL           RTLD_GLOBAL
10337 #else
10338 #  ifdef DL_GLOBAL
10339 #    define LT_DLGLOBAL         DL_GLOBAL
10340 #  else
10341 #    define LT_DLGLOBAL         0
10342 #  endif
10343 #endif
10344
10345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10346    find out it does not work in some platform. */
10347 #ifndef LT_DLLAZY_OR_NOW
10348 #  ifdef RTLD_LAZY
10349 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10350 #  else
10351 #    ifdef DL_LAZY
10352 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10353 #    else
10354 #      ifdef RTLD_NOW
10355 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10356 #      else
10357 #        ifdef DL_NOW
10358 #          define LT_DLLAZY_OR_NOW      DL_NOW
10359 #        else
10360 #          define LT_DLLAZY_OR_NOW      0
10361 #        endif
10362 #      endif
10363 #    endif
10364 #  endif
10365 #endif
10366
10367 #ifdef __cplusplus
10368 extern "C" void exit (int);
10369 #endif
10370
10371 void fnord() { int i=42;}
10372 int main ()
10373 {
10374   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10375   int status = $lt_dlunknown;
10376
10377   if (self)
10378     {
10379       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10380       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10381       /* dlclose (self); */
10382     }
10383   else
10384     puts (dlerror ());
10385
10386     exit (status);
10387 }
10388 EOF
10389   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10390   (eval $ac_link) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10394     (./conftest; exit; ) >&5 2>/dev/null
10395     lt_status=$?
10396     case x$lt_status in
10397       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10398       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10399       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10400     esac
10401   else :
10402     # compilation failed
10403     lt_cv_dlopen_self=no
10404   fi
10405 fi
10406 rm -fr conftest*
10407
10408
10409 fi
10410 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10411 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10412
10413     if test "x$lt_cv_dlopen_self" = xyes; then
10414       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10415       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10416 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10417 if test "${lt_cv_dlopen_self_static+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420           if test "$cross_compiling" = yes; then :
10421   lt_cv_dlopen_self_static=cross
10422 else
10423   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10424   lt_status=$lt_dlunknown
10425   cat > conftest.$ac_ext <<EOF
10426 #line 10426 "configure"
10427 #include "confdefs.h"
10428
10429 #if HAVE_DLFCN_H
10430 #include <dlfcn.h>
10431 #endif
10432
10433 #include <stdio.h>
10434
10435 #ifdef RTLD_GLOBAL
10436 #  define LT_DLGLOBAL           RTLD_GLOBAL
10437 #else
10438 #  ifdef DL_GLOBAL
10439 #    define LT_DLGLOBAL         DL_GLOBAL
10440 #  else
10441 #    define LT_DLGLOBAL         0
10442 #  endif
10443 #endif
10444
10445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10446    find out it does not work in some platform. */
10447 #ifndef LT_DLLAZY_OR_NOW
10448 #  ifdef RTLD_LAZY
10449 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10450 #  else
10451 #    ifdef DL_LAZY
10452 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10453 #    else
10454 #      ifdef RTLD_NOW
10455 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10456 #      else
10457 #        ifdef DL_NOW
10458 #          define LT_DLLAZY_OR_NOW      DL_NOW
10459 #        else
10460 #          define LT_DLLAZY_OR_NOW      0
10461 #        endif
10462 #      endif
10463 #    endif
10464 #  endif
10465 #endif
10466
10467 #ifdef __cplusplus
10468 extern "C" void exit (int);
10469 #endif
10470
10471 void fnord() { int i=42;}
10472 int main ()
10473 {
10474   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10475   int status = $lt_dlunknown;
10476
10477   if (self)
10478     {
10479       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10480       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10481       /* dlclose (self); */
10482     }
10483   else
10484     puts (dlerror ());
10485
10486     exit (status);
10487 }
10488 EOF
10489   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10490   (eval $ac_link) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10494     (./conftest; exit; ) >&5 2>/dev/null
10495     lt_status=$?
10496     case x$lt_status in
10497       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10498       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10499       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10500     esac
10501   else :
10502     # compilation failed
10503     lt_cv_dlopen_self_static=no
10504   fi
10505 fi
10506 rm -fr conftest*
10507
10508
10509 fi
10510 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10511 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10512     fi
10513
10514     CPPFLAGS="$save_CPPFLAGS"
10515     LDFLAGS="$save_LDFLAGS"
10516     LIBS="$save_LIBS"
10517     ;;
10518   esac
10519
10520   case $lt_cv_dlopen_self in
10521   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10522   *) enable_dlopen_self=unknown ;;
10523   esac
10524
10525   case $lt_cv_dlopen_self_static in
10526   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10527   *) enable_dlopen_self_static=unknown ;;
10528   esac
10529 fi
10530
10531
10532 # Report which library types will actually be built
10533 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10534 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10535 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10536 echo "${ECHO_T}$can_build_shared" >&6; }
10537
10538 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10539 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10540 test "$can_build_shared" = "no" && enable_shared=no
10541
10542 # On AIX, shared libraries and static libraries use the same namespace, and
10543 # are all built from PIC.
10544 case $host_os in
10545 aix3*)
10546   test "$enable_shared" = yes && enable_static=no
10547   if test -n "$RANLIB"; then
10548     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10549     postinstall_cmds='$RANLIB $lib'
10550   fi
10551   ;;
10552
10553 aix[4-9]*)
10554   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10555     test "$enable_shared" = yes && enable_static=no
10556   fi
10557     ;;
10558 esac
10559 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10560 echo "${ECHO_T}$enable_shared" >&6; }
10561
10562 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10563 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10564 # Make sure either enable_shared or enable_static is yes.
10565 test "$enable_shared" = yes || enable_static=yes
10566 { echo "$as_me:$LINENO: result: $enable_static" >&5
10567 echo "${ECHO_T}$enable_static" >&6; }
10568
10569 # The else clause should only fire when bootstrapping the
10570 # libtool distribution, otherwise you forgot to ship ltmain.sh
10571 # with your package, and you will get complaints that there are
10572 # no rules to generate ltmain.sh.
10573 if test -f "$ltmain"; then
10574   # See if we are running on zsh, and set the options which allow our commands through
10575   # without removal of \ escapes.
10576   if test -n "${ZSH_VERSION+set}" ; then
10577     setopt NO_GLOB_SUBST
10578   fi
10579   # Now quote all the things that may contain metacharacters while being
10580   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10581   # variables and quote the copies for generation of the libtool script.
10582   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10583     SED SHELL STRIP \
10584     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10585     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10586     deplibs_check_method reload_flag reload_cmds need_locks \
10587     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10588     lt_cv_sys_global_symbol_to_c_name_address \
10589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10590     old_postinstall_cmds old_postuninstall_cmds \
10591     compiler \
10592     CC \
10593     LD \
10594     lt_prog_compiler_wl \
10595     lt_prog_compiler_pic \
10596     lt_prog_compiler_static \
10597     lt_prog_compiler_no_builtin_flag \
10598     export_dynamic_flag_spec \
10599     thread_safe_flag_spec \
10600     whole_archive_flag_spec \
10601     enable_shared_with_static_runtimes \
10602     old_archive_cmds \
10603     old_archive_from_new_cmds \
10604     predep_objects \
10605     postdep_objects \
10606     predeps \
10607     postdeps \
10608     compiler_lib_search_path \
10609     compiler_lib_search_dirs \
10610     archive_cmds \
10611     archive_expsym_cmds \
10612     postinstall_cmds \
10613     postuninstall_cmds \
10614     old_archive_from_expsyms_cmds \
10615     allow_undefined_flag \
10616     no_undefined_flag \
10617     export_symbols_cmds \
10618     hardcode_libdir_flag_spec \
10619     hardcode_libdir_flag_spec_ld \
10620     hardcode_libdir_separator \
10621     hardcode_automatic \
10622     module_cmds \
10623     module_expsym_cmds \
10624     lt_cv_prog_compiler_c_o \
10625     fix_srcfile_path \
10626     exclude_expsyms \
10627     include_expsyms; do
10628
10629     case $var in
10630     old_archive_cmds | \
10631     old_archive_from_new_cmds | \
10632     archive_cmds | \
10633     archive_expsym_cmds | \
10634     module_cmds | \
10635     module_expsym_cmds | \
10636     old_archive_from_expsyms_cmds | \
10637     export_symbols_cmds | \
10638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10639     postinstall_cmds | postuninstall_cmds | \
10640     old_postinstall_cmds | old_postuninstall_cmds | \
10641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10642       # Double-quote double-evaled strings.
10643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10644       ;;
10645     *)
10646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10647       ;;
10648     esac
10649   done
10650
10651   case $lt_echo in
10652   *'\$0 --fallback-echo"')
10653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10654     ;;
10655   esac
10656
10657 cfgfile="${ofile}T"
10658   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10659   $rm -f "$cfgfile"
10660   { echo "$as_me:$LINENO: creating $ofile" >&5
10661 echo "$as_me: creating $ofile" >&6;}
10662
10663   cat <<__EOF__ >> "$cfgfile"
10664 #! $SHELL
10665
10666 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10667 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10668 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10669 #
10670 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10671 # Free Software Foundation, Inc.
10672 #
10673 # This file is part of GNU Libtool:
10674 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10675 #
10676 # This program is free software; you can redistribute it and/or modify
10677 # it under the terms of the GNU General Public License as published by
10678 # the Free Software Foundation; either version 2 of the License, or
10679 # (at your option) any later version.
10680 #
10681 # This program is distributed in the hope that it will be useful, but
10682 # WITHOUT ANY WARRANTY; without even the implied warranty of
10683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10684 # General Public License for more details.
10685 #
10686 # You should have received a copy of the GNU General Public License
10687 # along with this program; if not, write to the Free Software
10688 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10689 #
10690 # As a special exception to the GNU General Public License, if you
10691 # distribute this file as part of a program that contains a
10692 # configuration script generated by Autoconf, you may include it under
10693 # the same distribution terms that you use for the rest of that program.
10694
10695 # A sed program that does not truncate output.
10696 SED=$lt_SED
10697
10698 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10699 Xsed="$SED -e 1s/^X//"
10700
10701 # The HP-UX ksh and POSIX shell print the target directory to stdout
10702 # if CDPATH is set.
10703 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10704
10705 # The names of the tagged configurations supported by this script.
10706 available_tags=
10707
10708 # ### BEGIN LIBTOOL CONFIG
10709
10710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10711
10712 # Shell to use when invoking shell scripts.
10713 SHELL=$lt_SHELL
10714
10715 # Whether or not to build shared libraries.
10716 build_libtool_libs=$enable_shared
10717
10718 # Whether or not to build static libraries.
10719 build_old_libs=$enable_static
10720
10721 # Whether or not to add -lc for building shared libraries.
10722 build_libtool_need_lc=$archive_cmds_need_lc
10723
10724 # Whether or not to disallow shared libs when runtime libs are static
10725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10726
10727 # Whether or not to optimize for fast installation.
10728 fast_install=$enable_fast_install
10729
10730 # The host system.
10731 host_alias=$host_alias
10732 host=$host
10733 host_os=$host_os
10734
10735 # The build system.
10736 build_alias=$build_alias
10737 build=$build
10738 build_os=$build_os
10739
10740 # An echo program that does not interpret backslashes.
10741 echo=$lt_echo
10742
10743 # The archiver.
10744 AR=$lt_AR
10745 AR_FLAGS=$lt_AR_FLAGS
10746
10747 # A C compiler.
10748 LTCC=$lt_LTCC
10749
10750 # LTCC compiler flags.
10751 LTCFLAGS=$lt_LTCFLAGS
10752
10753 # A language-specific compiler.
10754 CC=$lt_compiler
10755
10756 # Is the compiler the GNU C compiler?
10757 with_gcc=$GCC
10758
10759 # An ERE matcher.
10760 EGREP=$lt_EGREP
10761
10762 # The linker used to build libraries.
10763 LD=$lt_LD
10764
10765 # Whether we need hard or soft links.
10766 LN_S=$lt_LN_S
10767
10768 # A BSD-compatible nm program.
10769 NM=$lt_NM
10770
10771 # A symbol stripping program
10772 STRIP=$lt_STRIP
10773
10774 # Used to examine libraries when file_magic_cmd begins "file"
10775 MAGIC_CMD=$MAGIC_CMD
10776
10777 # Used on cygwin: DLL creation program.
10778 DLLTOOL="$DLLTOOL"
10779
10780 # Used on cygwin: object dumper.
10781 OBJDUMP="$OBJDUMP"
10782
10783 # Used on cygwin: assembler.
10784 AS="$AS"
10785
10786 # The name of the directory that contains temporary libtool files.
10787 objdir=$objdir
10788
10789 # How to create reloadable object files.
10790 reload_flag=$lt_reload_flag
10791 reload_cmds=$lt_reload_cmds
10792
10793 # How to pass a linker flag through the compiler.
10794 wl=$lt_lt_prog_compiler_wl
10795
10796 # Object file suffix (normally "o").
10797 objext="$ac_objext"
10798
10799 # Old archive suffix (normally "a").
10800 libext="$libext"
10801
10802 # Shared library suffix (normally ".so").
10803 shrext_cmds='$shrext_cmds'
10804
10805 # Executable file suffix (normally "").
10806 exeext="$exeext"
10807
10808 # Additional compiler flags for building library objects.
10809 pic_flag=$lt_lt_prog_compiler_pic
10810 pic_mode=$pic_mode
10811
10812 # What is the maximum length of a command?
10813 max_cmd_len=$lt_cv_sys_max_cmd_len
10814
10815 # Does compiler simultaneously support -c and -o options?
10816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10817
10818 # Must we lock files when doing compilation?
10819 need_locks=$lt_need_locks
10820
10821 # Do we need the lib prefix for modules?
10822 need_lib_prefix=$need_lib_prefix
10823
10824 # Do we need a version for libraries?
10825 need_version=$need_version
10826
10827 # Whether dlopen is supported.
10828 dlopen_support=$enable_dlopen
10829
10830 # Whether dlopen of programs is supported.
10831 dlopen_self=$enable_dlopen_self
10832
10833 # Whether dlopen of statically linked programs is supported.
10834 dlopen_self_static=$enable_dlopen_self_static
10835
10836 # Compiler flag to prevent dynamic linking.
10837 link_static_flag=$lt_lt_prog_compiler_static
10838
10839 # Compiler flag to turn off builtin functions.
10840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10841
10842 # Compiler flag to allow reflexive dlopens.
10843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10844
10845 # Compiler flag to generate shared objects directly from archives.
10846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10847
10848 # Compiler flag to generate thread-safe objects.
10849 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10850
10851 # Library versioning type.
10852 version_type=$version_type
10853
10854 # Format of library name prefix.
10855 libname_spec=$lt_libname_spec
10856
10857 # List of archive names.  First name is the real one, the rest are links.
10858 # The last name is the one that the linker finds with -lNAME.
10859 library_names_spec=$lt_library_names_spec
10860
10861 # The coded name of the library, if different from the real name.
10862 soname_spec=$lt_soname_spec
10863
10864 # Commands used to build and install an old-style archive.
10865 RANLIB=$lt_RANLIB
10866 old_archive_cmds=$lt_old_archive_cmds
10867 old_postinstall_cmds=$lt_old_postinstall_cmds
10868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10869
10870 # Create an old-style archive from a shared archive.
10871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10872
10873 # Create a temporary old-style archive to link instead of a shared archive.
10874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10875
10876 # Commands used to build and install a shared archive.
10877 archive_cmds=$lt_archive_cmds
10878 archive_expsym_cmds=$lt_archive_expsym_cmds
10879 postinstall_cmds=$lt_postinstall_cmds
10880 postuninstall_cmds=$lt_postuninstall_cmds
10881
10882 # Commands used to build a loadable module (assumed same as above if empty)
10883 module_cmds=$lt_module_cmds
10884 module_expsym_cmds=$lt_module_expsym_cmds
10885
10886 # Commands to strip libraries.
10887 old_striplib=$lt_old_striplib
10888 striplib=$lt_striplib
10889
10890 # Dependencies to place before the objects being linked to create a
10891 # shared library.
10892 predep_objects=$lt_predep_objects
10893
10894 # Dependencies to place after the objects being linked to create a
10895 # shared library.
10896 postdep_objects=$lt_postdep_objects
10897
10898 # Dependencies to place before the objects being linked to create a
10899 # shared library.
10900 predeps=$lt_predeps
10901
10902 # Dependencies to place after the objects being linked to create a
10903 # shared library.
10904 postdeps=$lt_postdeps
10905
10906 # The directories searched by this compiler when creating a shared
10907 # library
10908 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10909
10910 # The library search path used internally by the compiler when linking
10911 # a shared library.
10912 compiler_lib_search_path=$lt_compiler_lib_search_path
10913
10914 # Method to check whether dependent libraries are shared objects.
10915 deplibs_check_method=$lt_deplibs_check_method
10916
10917 # Command to use when deplibs_check_method == file_magic.
10918 file_magic_cmd=$lt_file_magic_cmd
10919
10920 # Flag that allows shared libraries with undefined symbols to be built.
10921 allow_undefined_flag=$lt_allow_undefined_flag
10922
10923 # Flag that forces no undefined symbols.
10924 no_undefined_flag=$lt_no_undefined_flag
10925
10926 # Commands used to finish a libtool library installation in a directory.
10927 finish_cmds=$lt_finish_cmds
10928
10929 # Same as above, but a single script fragment to be evaled but not shown.
10930 finish_eval=$lt_finish_eval
10931
10932 # Take the output of nm and produce a listing of raw symbols and C names.
10933 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10934
10935 # Transform the output of nm in a proper C declaration
10936 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10937
10938 # Transform the output of nm in a C name address pair
10939 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10940
10941 # This is the shared library runtime path variable.
10942 runpath_var=$runpath_var
10943
10944 # This is the shared library path variable.
10945 shlibpath_var=$shlibpath_var
10946
10947 # Is shlibpath searched before the hard-coded library search path?
10948 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10949
10950 # How to hardcode a shared library path into an executable.
10951 hardcode_action=$hardcode_action
10952
10953 # Whether we should hardcode library paths into libraries.
10954 hardcode_into_libs=$hardcode_into_libs
10955
10956 # Flag to hardcode \$libdir into a binary during linking.
10957 # This must work even if \$libdir does not exist.
10958 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10959
10960 # If ld is used when linking, flag to hardcode \$libdir into
10961 # a binary during linking. This must work even if \$libdir does
10962 # not exist.
10963 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10964
10965 # Whether we need a single -rpath flag with a separated argument.
10966 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10967
10968 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10969 # resulting binary.
10970 hardcode_direct=$hardcode_direct
10971
10972 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10973 # resulting binary.
10974 hardcode_minus_L=$hardcode_minus_L
10975
10976 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10977 # the resulting binary.
10978 hardcode_shlibpath_var=$hardcode_shlibpath_var
10979
10980 # Set to yes if building a shared library automatically hardcodes DIR into the library
10981 # and all subsequent libraries and executables linked against it.
10982 hardcode_automatic=$hardcode_automatic
10983
10984 # Variables whose values should be saved in libtool wrapper scripts and
10985 # restored at relink time.
10986 variables_saved_for_relink="$variables_saved_for_relink"
10987
10988 # Whether libtool must link a program against all its dependency libraries.
10989 link_all_deplibs=$link_all_deplibs
10990
10991 # Compile-time system search path for libraries
10992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10993
10994 # Run-time system search path for libraries
10995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10996
10997 # Fix the shell variable \$srcfile for the compiler.
10998 fix_srcfile_path=$lt_fix_srcfile_path
10999
11000 # Set to yes if exported symbols are required.
11001 always_export_symbols=$always_export_symbols
11002
11003 # The commands to list exported symbols.
11004 export_symbols_cmds=$lt_export_symbols_cmds
11005
11006 # The commands to extract the exported symbol list from a shared archive.
11007 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11008
11009 # Symbols that should not be listed in the preloaded symbols.
11010 exclude_expsyms=$lt_exclude_expsyms
11011
11012 # Symbols that must always be exported.
11013 include_expsyms=$lt_include_expsyms
11014
11015 # ### END LIBTOOL CONFIG
11016
11017 __EOF__
11018
11019
11020   case $host_os in
11021   aix3*)
11022     cat <<\EOF >> "$cfgfile"
11023
11024 # AIX sometimes has problems with the GCC collect2 program.  For some
11025 # reason, if we set the COLLECT_NAMES environment variable, the problems
11026 # vanish in a puff of smoke.
11027 if test "X${COLLECT_NAMES+set}" != Xset; then
11028   COLLECT_NAMES=
11029   export COLLECT_NAMES
11030 fi
11031 EOF
11032     ;;
11033   esac
11034
11035   # We use sed instead of cat because bash on DJGPP gets confused if
11036   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11037   # text mode, it properly converts lines to CR/LF.  This bash problem
11038   # is reportedly fixed, but why not run on old versions too?
11039   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11040
11041   mv -f "$cfgfile" "$ofile" || \
11042     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11043   chmod +x "$ofile"
11044
11045 else
11046   # If there is no Makefile yet, we rely on a make rule to execute
11047   # `config.status --recheck' to rerun these tests and create the
11048   # libtool script then.
11049   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11050   if test -f "$ltmain_in"; then
11051     test -f Makefile && make "$ltmain"
11052   fi
11053 fi
11054
11055
11056 ac_ext=c
11057 ac_cpp='$CPP $CPPFLAGS'
11058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061
11062 CC="$lt_save_CC"
11063
11064
11065 # Check whether --with-tags was given.
11066 if test "${with_tags+set}" = set; then
11067   withval=$with_tags; tagnames="$withval"
11068 fi
11069
11070
11071 if test -f "$ltmain" && test -n "$tagnames"; then
11072   if test ! -f "${ofile}"; then
11073     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11074 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11075   fi
11076
11077   if test -z "$LTCC"; then
11078     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11079     if test -z "$LTCC"; then
11080       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11081 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11082     else
11083       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11084 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11085     fi
11086   fi
11087   if test -z "$LTCFLAGS"; then
11088     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11089   fi
11090
11091   # Extract list of available tagged configurations in $ofile.
11092   # Note that this assumes the entire list is on one line.
11093   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11094
11095   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11096   for tagname in $tagnames; do
11097     IFS="$lt_save_ifs"
11098     # Check whether tagname contains only valid characters
11099     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11100     "") ;;
11101     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11102 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11103    { (exit 1); exit 1; }; }
11104         ;;
11105     esac
11106
11107     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11108     then
11109       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11110 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11111    { (exit 1); exit 1; }; }
11112     fi
11113
11114     # Update the list of available tags.
11115     if test -n "$tagname"; then
11116       echo appending configuration tag \"$tagname\" to $ofile
11117
11118       case $tagname in
11119       CXX)
11120         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11121             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11122             (test "X$CXX" != "Xg++"))) ; then
11123           ac_ext=cpp
11124 ac_cpp='$CXXCPP $CPPFLAGS'
11125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11128
11129
11130
11131
11132 archive_cmds_need_lc_CXX=no
11133 allow_undefined_flag_CXX=
11134 always_export_symbols_CXX=no
11135 archive_expsym_cmds_CXX=
11136 export_dynamic_flag_spec_CXX=
11137 hardcode_direct_CXX=no
11138 hardcode_libdir_flag_spec_CXX=
11139 hardcode_libdir_flag_spec_ld_CXX=
11140 hardcode_libdir_separator_CXX=
11141 hardcode_minus_L_CXX=no
11142 hardcode_shlibpath_var_CXX=unsupported
11143 hardcode_automatic_CXX=no
11144 module_cmds_CXX=
11145 module_expsym_cmds_CXX=
11146 link_all_deplibs_CXX=unknown
11147 old_archive_cmds_CXX=$old_archive_cmds
11148 no_undefined_flag_CXX=
11149 whole_archive_flag_spec_CXX=
11150 enable_shared_with_static_runtimes_CXX=no
11151
11152 # Dependencies to place before and after the object being linked:
11153 predep_objects_CXX=
11154 postdep_objects_CXX=
11155 predeps_CXX=
11156 postdeps_CXX=
11157 compiler_lib_search_path_CXX=
11158 compiler_lib_search_dirs_CXX=
11159
11160 # Source file extension for C++ test sources.
11161 ac_ext=cpp
11162
11163 # Object file extension for compiled C++ test sources.
11164 objext=o
11165 objext_CXX=$objext
11166
11167 # Code to be used in simple compile tests
11168 lt_simple_compile_test_code="int some_variable = 0;"
11169
11170 # Code to be used in simple link tests
11171 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11172
11173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11174
11175 # If no C compiler was specified, use CC.
11176 LTCC=${LTCC-"$CC"}
11177
11178 # If no C compiler flags were specified, use CFLAGS.
11179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11180
11181 # Allow CC to be a program name with arguments.
11182 compiler=$CC
11183
11184
11185 # save warnings/boilerplate of simple test code
11186 ac_outfile=conftest.$ac_objext
11187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11189 _lt_compiler_boilerplate=`cat conftest.err`
11190 $rm conftest*
11191
11192 ac_outfile=conftest.$ac_objext
11193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11195 _lt_linker_boilerplate=`cat conftest.err`
11196 $rm -r conftest*
11197
11198
11199 # Allow CC to be a program name with arguments.
11200 lt_save_CC=$CC
11201 lt_save_LD=$LD
11202 lt_save_GCC=$GCC
11203 GCC=$GXX
11204 lt_save_with_gnu_ld=$with_gnu_ld
11205 lt_save_path_LD=$lt_cv_path_LD
11206 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11207   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11208 else
11209   $as_unset lt_cv_prog_gnu_ld
11210 fi
11211 if test -n "${lt_cv_path_LDCXX+set}"; then
11212   lt_cv_path_LD=$lt_cv_path_LDCXX
11213 else
11214   $as_unset lt_cv_path_LD
11215 fi
11216 test -z "${LDCXX+set}" || LD=$LDCXX
11217 CC=${CXX-"c++"}
11218 compiler=$CC
11219 compiler_CXX=$CC
11220 for cc_temp in $compiler""; do
11221   case $cc_temp in
11222     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11223     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11224     \-*) ;;
11225     *) break;;
11226   esac
11227 done
11228 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11229
11230
11231 # We don't want -fno-exception wen compiling C++ code, so set the
11232 # no_builtin_flag separately
11233 if test "$GXX" = yes; then
11234   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11235 else
11236   lt_prog_compiler_no_builtin_flag_CXX=
11237 fi
11238
11239 if test "$GXX" = yes; then
11240   # Set up default GNU C++ configuration
11241
11242
11243 # Check whether --with-gnu-ld was given.
11244 if test "${with_gnu_ld+set}" = set; then
11245   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11246 else
11247   with_gnu_ld=no
11248 fi
11249
11250 ac_prog=ld
11251 if test "$GCC" = yes; then
11252   # Check if gcc -print-prog-name=ld gives a path.
11253   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11254 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11255   case $host in
11256   *-*-mingw*)
11257     # gcc leaves a trailing carriage return which upsets mingw
11258     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11259   *)
11260     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11261   esac
11262   case $ac_prog in
11263     # Accept absolute paths.
11264     [\\/]* | ?:[\\/]*)
11265       re_direlt='/[^/][^/]*/\.\./'
11266       # Canonicalize the pathname of ld
11267       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11268       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11269         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11270       done
11271       test -z "$LD" && LD="$ac_prog"
11272       ;;
11273   "")
11274     # If it fails, then pretend we aren't using GCC.
11275     ac_prog=ld
11276     ;;
11277   *)
11278     # If it is relative, then search for the first ld in PATH.
11279     with_gnu_ld=unknown
11280     ;;
11281   esac
11282 elif test "$with_gnu_ld" = yes; then
11283   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11284 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11285 else
11286   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11287 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11288 fi
11289 if test "${lt_cv_path_LD+set}" = set; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   if test -z "$LD"; then
11293   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11294   for ac_dir in $PATH; do
11295     IFS="$lt_save_ifs"
11296     test -z "$ac_dir" && ac_dir=.
11297     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11298       lt_cv_path_LD="$ac_dir/$ac_prog"
11299       # Check to see if the program is GNU ld.  I'd rather use --version,
11300       # but apparently some variants of GNU ld only accept -v.
11301       # Break only if it was the GNU/non-GNU ld that we prefer.
11302       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11303       *GNU* | *'with BFD'*)
11304         test "$with_gnu_ld" != no && break
11305         ;;
11306       *)
11307         test "$with_gnu_ld" != yes && break
11308         ;;
11309       esac
11310     fi
11311   done
11312   IFS="$lt_save_ifs"
11313 else
11314   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11315 fi
11316 fi
11317
11318 LD="$lt_cv_path_LD"
11319 if test -n "$LD"; then
11320   { echo "$as_me:$LINENO: result: $LD" >&5
11321 echo "${ECHO_T}$LD" >&6; }
11322 else
11323   { echo "$as_me:$LINENO: result: no" >&5
11324 echo "${ECHO_T}no" >&6; }
11325 fi
11326 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11327 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11328    { (exit 1); exit 1; }; }
11329 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11330 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11331 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11335 case `$LD -v 2>&1 </dev/null` in
11336 *GNU* | *'with BFD'*)
11337   lt_cv_prog_gnu_ld=yes
11338   ;;
11339 *)
11340   lt_cv_prog_gnu_ld=no
11341   ;;
11342 esac
11343 fi
11344 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11345 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11346 with_gnu_ld=$lt_cv_prog_gnu_ld
11347
11348
11349
11350   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11351   # archiving commands below assume that GNU ld is being used.
11352   if test "$with_gnu_ld" = yes; then
11353     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11354     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'
11355
11356     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11357     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11358
11359     # If archive_cmds runs LD, not CC, wlarc should be empty
11360     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11361     #     investigate it a little bit more. (MM)
11362     wlarc='${wl}'
11363
11364     # ancient GNU ld didn't support --whole-archive et. al.
11365     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11366         grep 'no-whole-archive' > /dev/null; then
11367       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11368     else
11369       whole_archive_flag_spec_CXX=
11370     fi
11371   else
11372     with_gnu_ld=no
11373     wlarc=
11374
11375     # A generic and very simple default shared library creation
11376     # command for GNU C++ for the case where it uses the native
11377     # linker, instead of GNU ld.  If possible, this setting should
11378     # overridden to take advantage of the native linker features on
11379     # the platform it is being used on.
11380     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11381   fi
11382
11383   # Commands to make compiler produce verbose output that lists
11384   # what "hidden" libraries, object files and flags are used when
11385   # linking a shared library.
11386   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11387
11388 else
11389   GXX=no
11390   with_gnu_ld=no
11391   wlarc=
11392 fi
11393
11394 # PORTME: fill in a description of your system's C++ link characteristics
11395 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11397 ld_shlibs_CXX=yes
11398 case $host_os in
11399   aix3*)
11400     # FIXME: insert proper C++ library support
11401     ld_shlibs_CXX=no
11402     ;;
11403   aix[4-9]*)
11404     if test "$host_cpu" = ia64; then
11405       # On IA64, the linker does run time linking by default, so we don't
11406       # have to do anything special.
11407       aix_use_runtimelinking=no
11408       exp_sym_flag='-Bexport'
11409       no_entry_flag=""
11410     else
11411       aix_use_runtimelinking=no
11412
11413       # Test if we are trying to use run time linking or normal
11414       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11415       # need to do runtime linking.
11416       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11417         for ld_flag in $LDFLAGS; do
11418           case $ld_flag in
11419           *-brtl*)
11420             aix_use_runtimelinking=yes
11421             break
11422             ;;
11423           esac
11424         done
11425         ;;
11426       esac
11427
11428       exp_sym_flag='-bexport'
11429       no_entry_flag='-bnoentry'
11430     fi
11431
11432     # When large executables or shared objects are built, AIX ld can
11433     # have problems creating the table of contents.  If linking a library
11434     # or program results in "error TOC overflow" add -mminimal-toc to
11435     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11436     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11437
11438     archive_cmds_CXX=''
11439     hardcode_direct_CXX=yes
11440     hardcode_libdir_separator_CXX=':'
11441     link_all_deplibs_CXX=yes
11442
11443     if test "$GXX" = yes; then
11444       case $host_os in aix4.[012]|aix4.[012].*)
11445       # We only want to do this on AIX 4.2 and lower, the check
11446       # below for broken collect2 doesn't work under 4.3+
11447         collect2name=`${CC} -print-prog-name=collect2`
11448         if test -f "$collect2name" && \
11449            strings "$collect2name" | grep resolve_lib_name >/dev/null
11450         then
11451           # We have reworked collect2
11452           :
11453         else
11454           # We have old collect2
11455           hardcode_direct_CXX=unsupported
11456           # It fails to find uninstalled libraries when the uninstalled
11457           # path is not listed in the libpath.  Setting hardcode_minus_L
11458           # to unsupported forces relinking
11459           hardcode_minus_L_CXX=yes
11460           hardcode_libdir_flag_spec_CXX='-L$libdir'
11461           hardcode_libdir_separator_CXX=
11462         fi
11463         ;;
11464       esac
11465       shared_flag='-shared'
11466       if test "$aix_use_runtimelinking" = yes; then
11467         shared_flag="$shared_flag "'${wl}-G'
11468       fi
11469     else
11470       # not using gcc
11471       if test "$host_cpu" = ia64; then
11472         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11473         # chokes on -Wl,-G. The following line is correct:
11474         shared_flag='-G'
11475       else
11476         if test "$aix_use_runtimelinking" = yes; then
11477           shared_flag='${wl}-G'
11478         else
11479           shared_flag='${wl}-bM:SRE'
11480         fi
11481       fi
11482     fi
11483
11484     # It seems that -bexpall does not export symbols beginning with
11485     # underscore (_), so it is better to generate a list of symbols to export.
11486     always_export_symbols_CXX=yes
11487     if test "$aix_use_runtimelinking" = yes; then
11488       # Warning - without using the other runtime loading flags (-brtl),
11489       # -berok will link without error, but may produce a broken library.
11490       allow_undefined_flag_CXX='-berok'
11491       # Determine the default libpath from the value encoded in an empty executable.
11492       cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498
11499 int
11500 main ()
11501 {
11502
11503   ;
11504   return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_link") 2>conftest.er1
11515   ac_status=$?
11516   grep -v '^ *+' conftest.er1 >conftest.err
11517   rm -f conftest.er1
11518   cat conftest.err >&5
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } && {
11521          test -z "$ac_cxx_werror_flag" ||
11522          test ! -s conftest.err
11523        } && test -s conftest$ac_exeext &&
11524        $as_test_x conftest$ac_exeext; then
11525
11526 lt_aix_libpath_sed='
11527     /Import File Strings/,/^$/ {
11528         /^0/ {
11529             s/^0  *\(.*\)$/\1/
11530             p
11531         }
11532     }'
11533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11534 # Check for a 64-bit object if we didn't find anything.
11535 if test -z "$aix_libpath"; then
11536   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11537 fi
11538 else
11539   echo "$as_me: failed program was:" >&5
11540 sed 's/^/| /' conftest.$ac_ext >&5
11541
11542
11543 fi
11544
11545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11546       conftest$ac_exeext conftest.$ac_ext
11547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11548
11549       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11550
11551       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"
11552      else
11553       if test "$host_cpu" = ia64; then
11554         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11555         allow_undefined_flag_CXX="-z nodefs"
11556         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"
11557       else
11558         # Determine the default libpath from the value encoded in an empty executable.
11559         cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565
11566 int
11567 main ()
11568 {
11569
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (ac_try="$ac_link"
11576 case "(($ac_try" in
11577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11578   *) ac_try_echo=$ac_try;;
11579 esac
11580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11581   (eval "$ac_link") 2>conftest.er1
11582   ac_status=$?
11583   grep -v '^ *+' conftest.er1 >conftest.err
11584   rm -f conftest.er1
11585   cat conftest.err >&5
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } && {
11588          test -z "$ac_cxx_werror_flag" ||
11589          test ! -s conftest.err
11590        } && test -s conftest$ac_exeext &&
11591        $as_test_x conftest$ac_exeext; then
11592
11593 lt_aix_libpath_sed='
11594     /Import File Strings/,/^$/ {
11595         /^0/ {
11596             s/^0  *\(.*\)$/\1/
11597             p
11598         }
11599     }'
11600 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11601 # Check for a 64-bit object if we didn't find anything.
11602 if test -z "$aix_libpath"; then
11603   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11604 fi
11605 else
11606   echo "$as_me: failed program was:" >&5
11607 sed 's/^/| /' conftest.$ac_ext >&5
11608
11609
11610 fi
11611
11612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11613       conftest$ac_exeext conftest.$ac_ext
11614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11615
11616         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11617         # Warning - without using the other run time loading flags,
11618         # -berok will link without error, but may produce a broken library.
11619         no_undefined_flag_CXX=' ${wl}-bernotok'
11620         allow_undefined_flag_CXX=' ${wl}-berok'
11621         # Exported symbols can be pulled into shared objects from archives
11622         whole_archive_flag_spec_CXX='$convenience'
11623         archive_cmds_need_lc_CXX=yes
11624         # This is similar to how AIX traditionally builds its shared libraries.
11625         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'
11626       fi
11627     fi
11628     ;;
11629
11630   beos*)
11631     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11632       allow_undefined_flag_CXX=unsupported
11633       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11634       # support --undefined.  This deserves some investigation.  FIXME
11635       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11636     else
11637       ld_shlibs_CXX=no
11638     fi
11639     ;;
11640
11641   chorus*)
11642     case $cc_basename in
11643       *)
11644         # FIXME: insert proper C++ library support
11645         ld_shlibs_CXX=no
11646         ;;
11647     esac
11648     ;;
11649
11650   cygwin* | mingw* | pw32*)
11651     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11652     # as there is no search path for DLLs.
11653     hardcode_libdir_flag_spec_CXX='-L$libdir'
11654     allow_undefined_flag_CXX=unsupported
11655     always_export_symbols_CXX=no
11656     enable_shared_with_static_runtimes_CXX=yes
11657
11658     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11659       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'
11660       # If the export-symbols file already is a .def file (1st line
11661       # is EXPORTS), use it as is; otherwise, prepend...
11662       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11663         cp $export_symbols $output_objdir/$soname.def;
11664       else
11665         echo EXPORTS > $output_objdir/$soname.def;
11666         cat $export_symbols >> $output_objdir/$soname.def;
11667       fi~
11668       $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'
11669     else
11670       ld_shlibs_CXX=no
11671     fi
11672   ;;
11673       darwin* | rhapsody*)
11674       archive_cmds_need_lc_CXX=no
11675       hardcode_direct_CXX=no
11676       hardcode_automatic_CXX=yes
11677       hardcode_shlibpath_var_CXX=unsupported
11678       whole_archive_flag_spec_CXX=''
11679       link_all_deplibs_CXX=yes
11680       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11681       if test "$GXX" = yes ; then
11682       output_verbose_link_cmd='echo'
11683       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11684       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11685       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11686       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11687       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11688         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11689         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11690       fi
11691       else
11692       case $cc_basename in
11693         xlc*)
11694          output_verbose_link_cmd='echo'
11695           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'
11696           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11697           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11698           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}'
11699           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}'
11700           ;;
11701        *)
11702          ld_shlibs_CXX=no
11703           ;;
11704       esac
11705       fi
11706         ;;
11707
11708   dgux*)
11709     case $cc_basename in
11710       ec++*)
11711         # FIXME: insert proper C++ library support
11712         ld_shlibs_CXX=no
11713         ;;
11714       ghcx*)
11715         # Green Hills C++ Compiler
11716         # FIXME: insert proper C++ library support
11717         ld_shlibs_CXX=no
11718         ;;
11719       *)
11720         # FIXME: insert proper C++ library support
11721         ld_shlibs_CXX=no
11722         ;;
11723     esac
11724     ;;
11725   freebsd[12]*)
11726     # C++ shared libraries reported to be fairly broken before switch to ELF
11727     ld_shlibs_CXX=no
11728     ;;
11729   freebsd-elf*)
11730     archive_cmds_need_lc_CXX=no
11731     ;;
11732   freebsd* | dragonfly*)
11733     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11734     # conventions
11735     ld_shlibs_CXX=yes
11736     ;;
11737   gnu*)
11738     ;;
11739   hpux9*)
11740     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11741     hardcode_libdir_separator_CXX=:
11742     export_dynamic_flag_spec_CXX='${wl}-E'
11743     hardcode_direct_CXX=yes
11744     hardcode_minus_L_CXX=yes # Not in the search PATH,
11745                                 # but as the default
11746                                 # location of the library.
11747
11748     case $cc_basename in
11749     CC*)
11750       # FIXME: insert proper C++ library support
11751       ld_shlibs_CXX=no
11752       ;;
11753     aCC*)
11754       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'
11755       # Commands to make compiler produce verbose output that lists
11756       # what "hidden" libraries, object files and flags are used when
11757       # linking a shared library.
11758       #
11759       # There doesn't appear to be a way to prevent this compiler from
11760       # explicitly linking system object files so we need to strip them
11761       # from the output so that they don't get included in the library
11762       # dependencies.
11763       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'
11764       ;;
11765     *)
11766       if test "$GXX" = yes; then
11767         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'
11768       else
11769         # FIXME: insert proper C++ library support
11770         ld_shlibs_CXX=no
11771       fi
11772       ;;
11773     esac
11774     ;;
11775   hpux10*|hpux11*)
11776     if test $with_gnu_ld = no; then
11777       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11778       hardcode_libdir_separator_CXX=:
11779
11780       case $host_cpu in
11781       hppa*64*|ia64*) ;;
11782       *)
11783         export_dynamic_flag_spec_CXX='${wl}-E'
11784         ;;
11785       esac
11786     fi
11787     case $host_cpu in
11788     hppa*64*|ia64*)
11789       hardcode_direct_CXX=no
11790       hardcode_shlibpath_var_CXX=no
11791       ;;
11792     *)
11793       hardcode_direct_CXX=yes
11794       hardcode_minus_L_CXX=yes # Not in the search PATH,
11795                                               # but as the default
11796                                               # location of the library.
11797       ;;
11798     esac
11799
11800     case $cc_basename in
11801       CC*)
11802         # FIXME: insert proper C++ library support
11803         ld_shlibs_CXX=no
11804         ;;
11805       aCC*)
11806         case $host_cpu in
11807         hppa*64*)
11808           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11809           ;;
11810         ia64*)
11811           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11812           ;;
11813         *)
11814           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11815           ;;
11816         esac
11817         # Commands to make compiler produce verbose output that lists
11818         # what "hidden" libraries, object files and flags are used when
11819         # linking a shared library.
11820         #
11821         # There doesn't appear to be a way to prevent this compiler from
11822         # explicitly linking system object files so we need to strip them
11823         # from the output so that they don't get included in the library
11824         # dependencies.
11825         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'
11826         ;;
11827       *)
11828         if test "$GXX" = yes; then
11829           if test $with_gnu_ld = no; then
11830             case $host_cpu in
11831             hppa*64*)
11832               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833               ;;
11834             ia64*)
11835               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11836               ;;
11837             *)
11838               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'
11839               ;;
11840             esac
11841           fi
11842         else
11843           # FIXME: insert proper C++ library support
11844           ld_shlibs_CXX=no
11845         fi
11846         ;;
11847     esac
11848     ;;
11849   interix[3-9]*)
11850     hardcode_direct_CXX=no
11851     hardcode_shlibpath_var_CXX=no
11852     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11853     export_dynamic_flag_spec_CXX='${wl}-E'
11854     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11855     # Instead, shared libraries are loaded at an image base (0x10000000 by
11856     # default) and relocated if they conflict, which is a slow very memory
11857     # consuming and fragmenting process.  To avoid this, we pick a random,
11858     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11859     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11860     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'
11861     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'
11862     ;;
11863   irix5* | irix6*)
11864     case $cc_basename in
11865       CC*)
11866         # SGI C++
11867         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'
11868
11869         # Archives containing C++ object files must be created using
11870         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11871         # necessary to make sure instantiated templates are included
11872         # in the archive.
11873         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11874         ;;
11875       *)
11876         if test "$GXX" = yes; then
11877           if test "$with_gnu_ld" = no; then
11878             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'
11879           else
11880             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'
11881           fi
11882         fi
11883         link_all_deplibs_CXX=yes
11884         ;;
11885     esac
11886     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11887     hardcode_libdir_separator_CXX=:
11888     ;;
11889   linux* | k*bsd*-gnu)
11890     case $cc_basename in
11891       KCC*)
11892         # Kuck and Associates, Inc. (KAI) C++ Compiler
11893
11894         # KCC will only create a shared library if the output file
11895         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11896         # to its proper name (with version) after linking.
11897         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'
11898         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'
11899         # Commands to make compiler produce verbose output that lists
11900         # what "hidden" libraries, object files and flags are used when
11901         # linking a shared library.
11902         #
11903         # There doesn't appear to be a way to prevent this compiler from
11904         # explicitly linking system object files so we need to strip them
11905         # from the output so that they don't get included in the library
11906         # dependencies.
11907         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'
11908
11909         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11910         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11911
11912         # Archives containing C++ object files must be created using
11913         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11914         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11915         ;;
11916       icpc*)
11917         # Intel C++
11918         with_gnu_ld=yes
11919         # version 8.0 and above of icpc choke on multiply defined symbols
11920         # if we add $predep_objects and $postdep_objects, however 7.1 and
11921         # earlier do not add the objects themselves.
11922         case `$CC -V 2>&1` in
11923         *"Version 7."*)
11924           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11925           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'
11926           ;;
11927         *)  # Version 8.0 or newer
11928           tmp_idyn=
11929           case $host_cpu in
11930             ia64*) tmp_idyn=' -i_dynamic';;
11931           esac
11932           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11933           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'
11934           ;;
11935         esac
11936         archive_cmds_need_lc_CXX=no
11937         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11938         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11939         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11940         ;;
11941       pgCC* | pgcpp*)
11942         # Portland Group C++ compiler
11943         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11944         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'
11945
11946         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11947         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11948         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'
11949         ;;
11950       cxx*)
11951         # Compaq C++
11952         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11953         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'
11954
11955         runpath_var=LD_RUN_PATH
11956         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11957         hardcode_libdir_separator_CXX=:
11958
11959         # Commands to make compiler produce verbose output that lists
11960         # what "hidden" libraries, object files and flags are used when
11961         # linking a shared library.
11962         #
11963         # There doesn't appear to be a way to prevent this compiler from
11964         # explicitly linking system object files so we need to strip them
11965         # from the output so that they don't get included in the library
11966         # dependencies.
11967         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'
11968         ;;
11969       *)
11970         case `$CC -V 2>&1 | sed 5q` in
11971         *Sun\ C*)
11972           # Sun C++ 5.9
11973           no_undefined_flag_CXX=' -zdefs'
11974           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11975           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'
11976           hardcode_libdir_flag_spec_CXX='-R$libdir'
11977           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'
11978
11979           # Not sure whether something based on
11980           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11981           # would be better.
11982           output_verbose_link_cmd='echo'
11983
11984           # Archives containing C++ object files must be created using
11985           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11986           # necessary to make sure instantiated templates are included
11987           # in the archive.
11988           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11989           ;;
11990         esac
11991         ;;
11992     esac
11993     ;;
11994   lynxos*)
11995     # FIXME: insert proper C++ library support
11996     ld_shlibs_CXX=no
11997     ;;
11998   m88k*)
11999     # FIXME: insert proper C++ library support
12000     ld_shlibs_CXX=no
12001     ;;
12002   mvs*)
12003     case $cc_basename in
12004       cxx*)
12005         # FIXME: insert proper C++ library support
12006         ld_shlibs_CXX=no
12007         ;;
12008       *)
12009         # FIXME: insert proper C++ library support
12010         ld_shlibs_CXX=no
12011         ;;
12012     esac
12013     ;;
12014   netbsd* | netbsdelf*-gnu)
12015     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12016       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12017       wlarc=
12018       hardcode_libdir_flag_spec_CXX='-R$libdir'
12019       hardcode_direct_CXX=yes
12020       hardcode_shlibpath_var_CXX=no
12021     fi
12022     # Workaround some broken pre-1.5 toolchains
12023     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12024     ;;
12025   openbsd2*)
12026     # C++ shared libraries are fairly broken
12027     ld_shlibs_CXX=no
12028     ;;
12029   openbsd*)
12030     if test -f /usr/libexec/ld.so; then
12031       hardcode_direct_CXX=yes
12032       hardcode_shlibpath_var_CXX=no
12033       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12034       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12035       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12036         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12037         export_dynamic_flag_spec_CXX='${wl}-E'
12038         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12039       fi
12040       output_verbose_link_cmd='echo'
12041     else
12042       ld_shlibs_CXX=no
12043     fi
12044     ;;
12045   osf3*)
12046     case $cc_basename in
12047       KCC*)
12048         # Kuck and Associates, Inc. (KAI) C++ Compiler
12049
12050         # KCC will only create a shared library if the output file
12051         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12052         # to its proper name (with version) after linking.
12053         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'
12054
12055         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056         hardcode_libdir_separator_CXX=:
12057
12058         # Archives containing C++ object files must be created using
12059         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12061
12062         ;;
12063       RCC*)
12064         # Rational C++ 2.4.1
12065         # FIXME: insert proper C++ library support
12066         ld_shlibs_CXX=no
12067         ;;
12068       cxx*)
12069         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12070         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'
12071
12072         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12073         hardcode_libdir_separator_CXX=:
12074
12075         # Commands to make compiler produce verbose output that lists
12076         # what "hidden" libraries, object files and flags are used when
12077         # linking a shared library.
12078         #
12079         # There doesn't appear to be a way to prevent this compiler from
12080         # explicitly linking system object files so we need to strip them
12081         # from the output so that they don't get included in the library
12082         # dependencies.
12083         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'
12084         ;;
12085       *)
12086         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12087           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12088           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'
12089
12090           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12091           hardcode_libdir_separator_CXX=:
12092
12093           # Commands to make compiler produce verbose output that lists
12094           # what "hidden" libraries, object files and flags are used when
12095           # linking a shared library.
12096           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12097
12098         else
12099           # FIXME: insert proper C++ library support
12100           ld_shlibs_CXX=no
12101         fi
12102         ;;
12103     esac
12104     ;;
12105   osf4* | osf5*)
12106     case $cc_basename in
12107       KCC*)
12108         # Kuck and Associates, Inc. (KAI) C++ Compiler
12109
12110         # KCC will only create a shared library if the output file
12111         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12112         # to its proper name (with version) after linking.
12113         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'
12114
12115         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12116         hardcode_libdir_separator_CXX=:
12117
12118         # Archives containing C++ object files must be created using
12119         # the KAI C++ compiler.
12120         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12121         ;;
12122       RCC*)
12123         # Rational C++ 2.4.1
12124         # FIXME: insert proper C++ library support
12125         ld_shlibs_CXX=no
12126         ;;
12127       cxx*)
12128         allow_undefined_flag_CXX=' -expect_unresolved \*'
12129         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'
12130         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12131           echo "-hidden">> $lib.exp~
12132           $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~
12133           $rm $lib.exp'
12134
12135         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12136         hardcode_libdir_separator_CXX=:
12137
12138         # Commands to make compiler produce verbose output that lists
12139         # what "hidden" libraries, object files and flags are used when
12140         # linking a shared library.
12141         #
12142         # There doesn't appear to be a way to prevent this compiler from
12143         # explicitly linking system object files so we need to strip them
12144         # from the output so that they don't get included in the library
12145         # dependencies.
12146         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'
12147         ;;
12148       *)
12149         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12150           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12151          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'
12152
12153           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12154           hardcode_libdir_separator_CXX=:
12155
12156           # Commands to make compiler produce verbose output that lists
12157           # what "hidden" libraries, object files and flags are used when
12158           # linking a shared library.
12159           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12160
12161         else
12162           # FIXME: insert proper C++ library support
12163           ld_shlibs_CXX=no
12164         fi
12165         ;;
12166     esac
12167     ;;
12168   psos*)
12169     # FIXME: insert proper C++ library support
12170     ld_shlibs_CXX=no
12171     ;;
12172   sunos4*)
12173     case $cc_basename in
12174       CC*)
12175         # Sun C++ 4.x
12176         # FIXME: insert proper C++ library support
12177         ld_shlibs_CXX=no
12178         ;;
12179       lcc*)
12180         # Lucid
12181         # FIXME: insert proper C++ library support
12182         ld_shlibs_CXX=no
12183         ;;
12184       *)
12185         # FIXME: insert proper C++ library support
12186         ld_shlibs_CXX=no
12187         ;;
12188     esac
12189     ;;
12190   solaris*)
12191     case $cc_basename in
12192       CC*)
12193         # Sun C++ 4.2, 5.x and Centerline C++
12194         archive_cmds_need_lc_CXX=yes
12195         no_undefined_flag_CXX=' -zdefs'
12196         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12197         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12198         $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'
12199
12200         hardcode_libdir_flag_spec_CXX='-R$libdir'
12201         hardcode_shlibpath_var_CXX=no
12202         case $host_os in
12203           solaris2.[0-5] | solaris2.[0-5].*) ;;
12204           *)
12205             # The compiler driver will combine and reorder linker options,
12206             # but understands `-z linker_flag'.
12207             # Supported since Solaris 2.6 (maybe 2.5.1?)
12208             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12209             ;;
12210         esac
12211         link_all_deplibs_CXX=yes
12212
12213         output_verbose_link_cmd='echo'
12214
12215         # Archives containing C++ object files must be created using
12216         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12217         # necessary to make sure instantiated templates are included
12218         # in the archive.
12219         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12220         ;;
12221       gcx*)
12222         # Green Hills C++ Compiler
12223         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12224
12225         # The C++ compiler must be used to create the archive.
12226         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12227         ;;
12228       *)
12229         # GNU C++ compiler with Solaris linker
12230         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12231           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12232           if $CC --version | grep -v '^2\.7' > /dev/null; then
12233             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12234             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12235                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12236
12237             # Commands to make compiler produce verbose output that lists
12238             # what "hidden" libraries, object files and flags are used when
12239             # linking a shared library.
12240             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12241           else
12242             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12243             # platform.
12244             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12245             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12246                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12247
12248             # Commands to make compiler produce verbose output that lists
12249             # what "hidden" libraries, object files and flags are used when
12250             # linking a shared library.
12251             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12252           fi
12253
12254           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12255           case $host_os in
12256           solaris2.[0-5] | solaris2.[0-5].*) ;;
12257           *)
12258             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12259             ;;
12260           esac
12261         fi
12262         ;;
12263     esac
12264     ;;
12265   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12266     no_undefined_flag_CXX='${wl}-z,text'
12267     archive_cmds_need_lc_CXX=no
12268     hardcode_shlibpath_var_CXX=no
12269     runpath_var='LD_RUN_PATH'
12270
12271     case $cc_basename in
12272       CC*)
12273         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12274         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12275         ;;
12276       *)
12277         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12278         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12279         ;;
12280     esac
12281     ;;
12282   sysv5* | sco3.2v5* | sco5v6*)
12283     # Note: We can NOT use -z defs as we might desire, because we do not
12284     # link with -lc, and that would cause any symbols used from libc to
12285     # always be unresolved, which means just about no library would
12286     # ever link correctly.  If we're not using GNU ld we use -z text
12287     # though, which does catch some bad symbols but isn't as heavy-handed
12288     # as -z defs.
12289     # For security reasons, it is highly recommended that you always
12290     # use absolute paths for naming shared libraries, and exclude the
12291     # DT_RUNPATH tag from executables and libraries.  But doing so
12292     # requires that you compile everything twice, which is a pain.
12293     # So that behaviour is only enabled if SCOABSPATH is set to a
12294     # non-empty value in the environment.  Most likely only useful for
12295     # creating official distributions of packages.
12296     # This is a hack until libtool officially supports absolute path
12297     # names for shared libraries.
12298     no_undefined_flag_CXX='${wl}-z,text'
12299     allow_undefined_flag_CXX='${wl}-z,nodefs'
12300     archive_cmds_need_lc_CXX=no
12301     hardcode_shlibpath_var_CXX=no
12302     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12303     hardcode_libdir_separator_CXX=':'
12304     link_all_deplibs_CXX=yes
12305     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12306     runpath_var='LD_RUN_PATH'
12307
12308     case $cc_basename in
12309       CC*)
12310         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12311         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12312         ;;
12313       *)
12314         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12315         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12316         ;;
12317     esac
12318     ;;
12319   tandem*)
12320     case $cc_basename in
12321       NCC*)
12322         # NonStop-UX NCC 3.20
12323         # FIXME: insert proper C++ library support
12324         ld_shlibs_CXX=no
12325         ;;
12326       *)
12327         # FIXME: insert proper C++ library support
12328         ld_shlibs_CXX=no
12329         ;;
12330     esac
12331     ;;
12332   vxworks*)
12333     # FIXME: insert proper C++ library support
12334     ld_shlibs_CXX=no
12335     ;;
12336   *)
12337     # FIXME: insert proper C++ library support
12338     ld_shlibs_CXX=no
12339     ;;
12340 esac
12341 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12342 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12343 test "$ld_shlibs_CXX" = no && can_build_shared=no
12344
12345 GCC_CXX="$GXX"
12346 LD_CXX="$LD"
12347
12348 cat > conftest.$ac_ext <<EOF
12349 class Foo
12350 {
12351 public:
12352   Foo (void) { a = 0; }
12353 private:
12354   int a;
12355 };
12356 EOF
12357
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359   (eval $ac_compile) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; then
12363   # Parse the compiler output and extract the necessary
12364   # objects, libraries and library flags.
12365
12366   # Sentinel used to keep track of whether or not we are before
12367   # the conftest object file.
12368   pre_test_object_deps_done=no
12369
12370   # The `*' in the case matches for architectures that use `case' in
12371   # $output_verbose_cmd can trigger glob expansion during the loop
12372   # eval without this substitution.
12373   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12374
12375   for p in `eval $output_verbose_link_cmd`; do
12376     case $p in
12377
12378     -L* | -R* | -l*)
12379        # Some compilers place space between "-{L,R}" and the path.
12380        # Remove the space.
12381        if test $p = "-L" \
12382           || test $p = "-R"; then
12383          prev=$p
12384          continue
12385        else
12386          prev=
12387        fi
12388
12389        if test "$pre_test_object_deps_done" = no; then
12390          case $p in
12391          -L* | -R*)
12392            # Internal compiler library paths should come after those
12393            # provided the user.  The postdeps already come after the
12394            # user supplied libs so there is no need to process them.
12395            if test -z "$compiler_lib_search_path_CXX"; then
12396              compiler_lib_search_path_CXX="${prev}${p}"
12397            else
12398              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12399            fi
12400            ;;
12401          # The "-l" case would never come before the object being
12402          # linked, so don't bother handling this case.
12403          esac
12404        else
12405          if test -z "$postdeps_CXX"; then
12406            postdeps_CXX="${prev}${p}"
12407          else
12408            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12409          fi
12410        fi
12411        ;;
12412
12413     *.$objext)
12414        # This assumes that the test object file only shows up
12415        # once in the compiler output.
12416        if test "$p" = "conftest.$objext"; then
12417          pre_test_object_deps_done=yes
12418          continue
12419        fi
12420
12421        if test "$pre_test_object_deps_done" = no; then
12422          if test -z "$predep_objects_CXX"; then
12423            predep_objects_CXX="$p"
12424          else
12425            predep_objects_CXX="$predep_objects_CXX $p"
12426          fi
12427        else
12428          if test -z "$postdep_objects_CXX"; then
12429            postdep_objects_CXX="$p"
12430          else
12431            postdep_objects_CXX="$postdep_objects_CXX $p"
12432          fi
12433        fi
12434        ;;
12435
12436     *) ;; # Ignore the rest.
12437
12438     esac
12439   done
12440
12441   # Clean up.
12442   rm -f a.out a.exe
12443 else
12444   echo "libtool.m4: error: problem compiling CXX test program"
12445 fi
12446
12447 $rm -f confest.$objext
12448
12449 compiler_lib_search_dirs_CXX=
12450 if test -n "$compiler_lib_search_path_CXX"; then
12451   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12452 fi
12453
12454 # PORTME: override above test on systems where it is broken
12455 case $host_os in
12456 interix[3-9]*)
12457   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12458   # hack all around it, let's just trust "g++" to DTRT.
12459   predep_objects_CXX=
12460   postdep_objects_CXX=
12461   postdeps_CXX=
12462   ;;
12463
12464 linux*)
12465   case `$CC -V 2>&1 | sed 5q` in
12466   *Sun\ C*)
12467     # Sun C++ 5.9
12468     #
12469     # The more standards-conforming stlport4 library is
12470     # incompatible with the Cstd library. Avoid specifying
12471     # it if it's in CXXFLAGS. Ignore libCrun as
12472     # -library=stlport4 depends on it.
12473     case " $CXX $CXXFLAGS " in
12474     *" -library=stlport4 "*)
12475       solaris_use_stlport4=yes
12476       ;;
12477     esac
12478     if test "$solaris_use_stlport4" != yes; then
12479       postdeps_CXX='-library=Cstd -library=Crun'
12480     fi
12481     ;;
12482   esac
12483   ;;
12484
12485 solaris*)
12486   case $cc_basename in
12487   CC*)
12488     # The more standards-conforming stlport4 library is
12489     # incompatible with the Cstd library. Avoid specifying
12490     # it if it's in CXXFLAGS. Ignore libCrun as
12491     # -library=stlport4 depends on it.
12492     case " $CXX $CXXFLAGS " in
12493     *" -library=stlport4 "*)
12494       solaris_use_stlport4=yes
12495       ;;
12496     esac
12497
12498     # Adding this requires a known-good setup of shared libraries for
12499     # Sun compiler versions before 5.6, else PIC objects from an old
12500     # archive will be linked into the output, leading to subtle bugs.
12501     if test "$solaris_use_stlport4" != yes; then
12502       postdeps_CXX='-library=Cstd -library=Crun'
12503     fi
12504     ;;
12505   esac
12506   ;;
12507 esac
12508
12509 case " $postdeps_CXX " in
12510 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12511 esac
12512
12513 lt_prog_compiler_wl_CXX=
12514 lt_prog_compiler_pic_CXX=
12515 lt_prog_compiler_static_CXX=
12516
12517 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12519
12520   # C++ specific cases for pic, static, wl, etc.
12521   if test "$GXX" = yes; then
12522     lt_prog_compiler_wl_CXX='-Wl,'
12523     lt_prog_compiler_static_CXX='-static'
12524
12525     case $host_os in
12526     aix*)
12527       # All AIX code is PIC.
12528       if test "$host_cpu" = ia64; then
12529         # AIX 5 now supports IA64 processor
12530         lt_prog_compiler_static_CXX='-Bstatic'
12531       fi
12532       ;;
12533     amigaos*)
12534       # FIXME: we need at least 68020 code to build shared libraries, but
12535       # adding the `-m68020' flag to GCC prevents building anything better,
12536       # like `-m68040'.
12537       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12538       ;;
12539     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12540       # PIC is the default for these OSes.
12541       ;;
12542     mingw* | cygwin* | os2* | pw32*)
12543       # This hack is so that the source file can tell whether it is being
12544       # built for inclusion in a dll (and should export symbols for example).
12545       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12546       # (--disable-auto-import) libraries
12547       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12548       ;;
12549     darwin* | rhapsody*)
12550       # PIC is the default on this platform
12551       # Common symbols not allowed in MH_DYLIB files
12552       lt_prog_compiler_pic_CXX='-fno-common'
12553       ;;
12554     *djgpp*)
12555       # DJGPP does not support shared libraries at all
12556       lt_prog_compiler_pic_CXX=
12557       ;;
12558     interix[3-9]*)
12559       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12560       # Instead, we relocate shared libraries at runtime.
12561       ;;
12562     sysv4*MP*)
12563       if test -d /usr/nec; then
12564         lt_prog_compiler_pic_CXX=-Kconform_pic
12565       fi
12566       ;;
12567     hpux*)
12568       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12569       # not for PA HP-UX.
12570       case $host_cpu in
12571       hppa*64*|ia64*)
12572         ;;
12573       *)
12574         lt_prog_compiler_pic_CXX='-fPIC'
12575         ;;
12576       esac
12577       ;;
12578     *)
12579       lt_prog_compiler_pic_CXX='-fPIC'
12580       ;;
12581     esac
12582   else
12583     case $host_os in
12584       aix[4-9]*)
12585         # All AIX code is PIC.
12586         if test "$host_cpu" = ia64; then
12587           # AIX 5 now supports IA64 processor
12588           lt_prog_compiler_static_CXX='-Bstatic'
12589         else
12590           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12591         fi
12592         ;;
12593       chorus*)
12594         case $cc_basename in
12595         cxch68*)
12596           # Green Hills C++ Compiler
12597           # _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"
12598           ;;
12599         esac
12600         ;;
12601        darwin*)
12602          # PIC is the default on this platform
12603          # Common symbols not allowed in MH_DYLIB files
12604          case $cc_basename in
12605            xlc*)
12606            lt_prog_compiler_pic_CXX='-qnocommon'
12607            lt_prog_compiler_wl_CXX='-Wl,'
12608            ;;
12609          esac
12610        ;;
12611       dgux*)
12612         case $cc_basename in
12613           ec++*)
12614             lt_prog_compiler_pic_CXX='-KPIC'
12615             ;;
12616           ghcx*)
12617             # Green Hills C++ Compiler
12618             lt_prog_compiler_pic_CXX='-pic'
12619             ;;
12620           *)
12621             ;;
12622         esac
12623         ;;
12624       freebsd* | dragonfly*)
12625         # FreeBSD uses GNU C++
12626         ;;
12627       hpux9* | hpux10* | hpux11*)
12628         case $cc_basename in
12629           CC*)
12630             lt_prog_compiler_wl_CXX='-Wl,'
12631             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12632             if test "$host_cpu" != ia64; then
12633               lt_prog_compiler_pic_CXX='+Z'
12634             fi
12635             ;;
12636           aCC*)
12637             lt_prog_compiler_wl_CXX='-Wl,'
12638             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12639             case $host_cpu in
12640             hppa*64*|ia64*)
12641               # +Z the default
12642               ;;
12643             *)
12644               lt_prog_compiler_pic_CXX='+Z'
12645               ;;
12646             esac
12647             ;;
12648           *)
12649             ;;
12650         esac
12651         ;;
12652       interix*)
12653         # This is c89, which is MS Visual C++ (no shared libs)
12654         # Anyone wants to do a port?
12655         ;;
12656       irix5* | irix6* | nonstopux*)
12657         case $cc_basename in
12658           CC*)
12659             lt_prog_compiler_wl_CXX='-Wl,'
12660             lt_prog_compiler_static_CXX='-non_shared'
12661             # CC pic flag -KPIC is the default.
12662             ;;
12663           *)
12664             ;;
12665         esac
12666         ;;
12667       linux* | k*bsd*-gnu)
12668         case $cc_basename in
12669           KCC*)
12670             # KAI C++ Compiler
12671             lt_prog_compiler_wl_CXX='--backend -Wl,'
12672             lt_prog_compiler_pic_CXX='-fPIC'
12673             ;;
12674           icpc* | ecpc*)
12675             # Intel C++
12676             lt_prog_compiler_wl_CXX='-Wl,'
12677             lt_prog_compiler_pic_CXX='-KPIC'
12678             lt_prog_compiler_static_CXX='-static'
12679             ;;
12680           pgCC* | pgcpp*)
12681             # Portland Group C++ compiler.
12682             lt_prog_compiler_wl_CXX='-Wl,'
12683             lt_prog_compiler_pic_CXX='-fpic'
12684             lt_prog_compiler_static_CXX='-Bstatic'
12685             ;;
12686           cxx*)
12687             # Compaq C++
12688             # Make sure the PIC flag is empty.  It appears that all Alpha
12689             # Linux and Compaq Tru64 Unix objects are PIC.
12690             lt_prog_compiler_pic_CXX=
12691             lt_prog_compiler_static_CXX='-non_shared'
12692             ;;
12693           *)
12694             case `$CC -V 2>&1 | sed 5q` in
12695             *Sun\ C*)
12696               # Sun C++ 5.9
12697               lt_prog_compiler_pic_CXX='-KPIC'
12698               lt_prog_compiler_static_CXX='-Bstatic'
12699               lt_prog_compiler_wl_CXX='-Qoption ld '
12700               ;;
12701             esac
12702             ;;
12703         esac
12704         ;;
12705       lynxos*)
12706         ;;
12707       m88k*)
12708         ;;
12709       mvs*)
12710         case $cc_basename in
12711           cxx*)
12712             lt_prog_compiler_pic_CXX='-W c,exportall'
12713             ;;
12714           *)
12715             ;;
12716         esac
12717         ;;
12718       netbsd* | netbsdelf*-gnu)
12719         ;;
12720       osf3* | osf4* | osf5*)
12721         case $cc_basename in
12722           KCC*)
12723             lt_prog_compiler_wl_CXX='--backend -Wl,'
12724             ;;
12725           RCC*)
12726             # Rational C++ 2.4.1
12727             lt_prog_compiler_pic_CXX='-pic'
12728             ;;
12729           cxx*)
12730             # Digital/Compaq C++
12731             lt_prog_compiler_wl_CXX='-Wl,'
12732             # Make sure the PIC flag is empty.  It appears that all Alpha
12733             # Linux and Compaq Tru64 Unix objects are PIC.
12734             lt_prog_compiler_pic_CXX=
12735             lt_prog_compiler_static_CXX='-non_shared'
12736             ;;
12737           *)
12738             ;;
12739         esac
12740         ;;
12741       psos*)
12742         ;;
12743       solaris*)
12744         case $cc_basename in
12745           CC*)
12746             # Sun C++ 4.2, 5.x and Centerline C++
12747             lt_prog_compiler_pic_CXX='-KPIC'
12748             lt_prog_compiler_static_CXX='-Bstatic'
12749             lt_prog_compiler_wl_CXX='-Qoption ld '
12750             ;;
12751           gcx*)
12752             # Green Hills C++ Compiler
12753             lt_prog_compiler_pic_CXX='-PIC'
12754             ;;
12755           *)
12756             ;;
12757         esac
12758         ;;
12759       sunos4*)
12760         case $cc_basename in
12761           CC*)
12762             # Sun C++ 4.x
12763             lt_prog_compiler_pic_CXX='-pic'
12764             lt_prog_compiler_static_CXX='-Bstatic'
12765             ;;
12766           lcc*)
12767             # Lucid
12768             lt_prog_compiler_pic_CXX='-pic'
12769             ;;
12770           *)
12771             ;;
12772         esac
12773         ;;
12774       tandem*)
12775         case $cc_basename in
12776           NCC*)
12777             # NonStop-UX NCC 3.20
12778             lt_prog_compiler_pic_CXX='-KPIC'
12779             ;;
12780           *)
12781             ;;
12782         esac
12783         ;;
12784       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12785         case $cc_basename in
12786           CC*)
12787             lt_prog_compiler_wl_CXX='-Wl,'
12788             lt_prog_compiler_pic_CXX='-KPIC'
12789             lt_prog_compiler_static_CXX='-Bstatic'
12790             ;;
12791         esac
12792         ;;
12793       vxworks*)
12794         ;;
12795       *)
12796         lt_prog_compiler_can_build_shared_CXX=no
12797         ;;
12798     esac
12799   fi
12800
12801 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12802 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12803
12804 #
12805 # Check to make sure the PIC flag actually works.
12806 #
12807 if test -n "$lt_prog_compiler_pic_CXX"; then
12808
12809 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12811 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   lt_cv_prog_compiler_pic_works_CXX=no
12815   ac_outfile=conftest.$ac_objext
12816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12818    # Insert the option either (1) after the last *FLAGS variable, or
12819    # (2) before a word containing "conftest.", or (3) at the end.
12820    # Note that $ac_compile itself does not contain backslashes and begins
12821    # with a dollar sign (not a hyphen), so the echo should work correctly.
12822    # The option is referenced via a variable to avoid confusing sed.
12823    lt_compile=`echo "$ac_compile" | $SED \
12824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826    -e 's:$: $lt_compiler_flag:'`
12827    (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
12828    (eval "$lt_compile" 2>conftest.err)
12829    ac_status=$?
12830    cat conftest.err >&5
12831    echo "$as_me:12831: \$? = $ac_status" >&5
12832    if (exit $ac_status) && test -s "$ac_outfile"; then
12833      # The compiler can only warn and ignore the option if not recognized
12834      # So say no if there are warnings other than the usual output.
12835      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12836      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12837      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12838        lt_cv_prog_compiler_pic_works_CXX=yes
12839      fi
12840    fi
12841    $rm conftest*
12842
12843 fi
12844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12845 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12846
12847 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12848     case $lt_prog_compiler_pic_CXX in
12849      "" | " "*) ;;
12850      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12851      esac
12852 else
12853     lt_prog_compiler_pic_CXX=
12854      lt_prog_compiler_can_build_shared_CXX=no
12855 fi
12856
12857 fi
12858 case $host_os in
12859   # For platforms which do not support PIC, -DPIC is meaningless:
12860   *djgpp*)
12861     lt_prog_compiler_pic_CXX=
12862     ;;
12863   *)
12864     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12865     ;;
12866 esac
12867
12868 #
12869 # Check to make sure the static flag actually works.
12870 #
12871 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12872 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12873 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12874 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 else
12877   lt_cv_prog_compiler_static_works_CXX=no
12878    save_LDFLAGS="$LDFLAGS"
12879    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12880    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12881    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12882      # The linker can only warn and ignore the option if not recognized
12883      # So say no if there are warnings
12884      if test -s conftest.err; then
12885        # Append any errors to the config.log.
12886        cat conftest.err 1>&5
12887        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12888        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889        if diff conftest.exp conftest.er2 >/dev/null; then
12890          lt_cv_prog_compiler_static_works_CXX=yes
12891        fi
12892      else
12893        lt_cv_prog_compiler_static_works_CXX=yes
12894      fi
12895    fi
12896    $rm -r conftest*
12897    LDFLAGS="$save_LDFLAGS"
12898
12899 fi
12900 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12901 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12902
12903 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12904     :
12905 else
12906     lt_prog_compiler_static_CXX=
12907 fi
12908
12909
12910 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12911 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12912 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   lt_cv_prog_compiler_c_o_CXX=no
12916    $rm -r conftest 2>/dev/null
12917    mkdir conftest
12918    cd conftest
12919    mkdir out
12920    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12921
12922    lt_compiler_flag="-o out/conftest2.$ac_objext"
12923    # Insert the option either (1) after the last *FLAGS variable, or
12924    # (2) before a word containing "conftest.", or (3) at the end.
12925    # Note that $ac_compile itself does not contain backslashes and begins
12926    # with a dollar sign (not a hyphen), so the echo should work correctly.
12927    lt_compile=`echo "$ac_compile" | $SED \
12928    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12930    -e 's:$: $lt_compiler_flag:'`
12931    (eval echo "\"\$as_me:12931: $lt_compile\"" >&5)
12932    (eval "$lt_compile" 2>out/conftest.err)
12933    ac_status=$?
12934    cat out/conftest.err >&5
12935    echo "$as_me:12935: \$? = $ac_status" >&5
12936    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12937    then
12938      # The compiler can only warn and ignore the option if not recognized
12939      # So say no if there are warnings
12940      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12941      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12942      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12943        lt_cv_prog_compiler_c_o_CXX=yes
12944      fi
12945    fi
12946    chmod u+w . 2>&5
12947    $rm conftest*
12948    # SGI C++ compiler will create directory out/ii_files/ for
12949    # template instantiation
12950    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12951    $rm out/* && rmdir out
12952    cd ..
12953    rmdir conftest
12954    $rm conftest*
12955
12956 fi
12957 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12958 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12959
12960
12961 hard_links="nottested"
12962 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12963   # do not overwrite the value of need_locks provided by the user
12964   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12965 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12966   hard_links=yes
12967   $rm conftest*
12968   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12969   touch conftest.a
12970   ln conftest.a conftest.b 2>&5 || hard_links=no
12971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12972   { echo "$as_me:$LINENO: result: $hard_links" >&5
12973 echo "${ECHO_T}$hard_links" >&6; }
12974   if test "$hard_links" = no; then
12975     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12976 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12977     need_locks=warn
12978   fi
12979 else
12980   need_locks=no
12981 fi
12982
12983 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12984 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12985
12986   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12987   case $host_os in
12988   aix[4-9]*)
12989     # If we're using GNU nm, then we don't want the "-C" option.
12990     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12991     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12992       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'
12993     else
12994       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'
12995     fi
12996     ;;
12997   pw32*)
12998     export_symbols_cmds_CXX="$ltdll_cmds"
12999   ;;
13000   cygwin* | mingw*)
13001     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'
13002   ;;
13003   linux* | k*bsd*-gnu)
13004     link_all_deplibs_CXX=no
13005   ;;
13006   *)
13007     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13008   ;;
13009   esac
13010   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13011
13012 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13013 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13014 test "$ld_shlibs_CXX" = no && can_build_shared=no
13015
13016 #
13017 # Do we need to explicitly link libc?
13018 #
13019 case "x$archive_cmds_need_lc_CXX" in
13020 x|xyes)
13021   # Assume -lc should be added
13022   archive_cmds_need_lc_CXX=yes
13023
13024   if test "$enable_shared" = yes && test "$GCC" = yes; then
13025     case $archive_cmds_CXX in
13026     *'~'*)
13027       # FIXME: we may have to deal with multi-command sequences.
13028       ;;
13029     '$CC '*)
13030       # Test whether the compiler implicitly links with -lc since on some
13031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13032       # to ld, don't add -lc before -lgcc.
13033       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13035       $rm conftest*
13036       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13037
13038       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039   (eval $ac_compile) 2>&5
13040   ac_status=$?
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } 2>conftest.err; then
13043         soname=conftest
13044         lib=conftest
13045         libobjs=conftest.$ac_objext
13046         deplibs=
13047         wl=$lt_prog_compiler_wl_CXX
13048         pic_flag=$lt_prog_compiler_pic_CXX
13049         compiler_flags=-v
13050         linker_flags=-v
13051         verstring=
13052         output_objdir=.
13053         libname=conftest
13054         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13055         allow_undefined_flag_CXX=
13056         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13057   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13058   ac_status=$?
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); }
13061         then
13062           archive_cmds_need_lc_CXX=no
13063         else
13064           archive_cmds_need_lc_CXX=yes
13065         fi
13066         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13067       else
13068         cat conftest.err 1>&5
13069       fi
13070       $rm conftest*
13071       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13072 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13073       ;;
13074     esac
13075   fi
13076   ;;
13077 esac
13078
13079 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13080 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13081 library_names_spec=
13082 libname_spec='lib$name'
13083 soname_spec=
13084 shrext_cmds=".so"
13085 postinstall_cmds=
13086 postuninstall_cmds=
13087 finish_cmds=
13088 finish_eval=
13089 shlibpath_var=
13090 shlibpath_overrides_runpath=unknown
13091 version_type=none
13092 dynamic_linker="$host_os ld.so"
13093 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13094
13095 need_lib_prefix=unknown
13096 hardcode_into_libs=no
13097
13098 # when you set need_version to no, make sure it does not cause -set_version
13099 # flags to be left without arguments
13100 need_version=unknown
13101
13102 case $host_os in
13103 aix3*)
13104   version_type=linux
13105   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13106   shlibpath_var=LIBPATH
13107
13108   # AIX 3 has no versioning support, so we append a major version to the name.
13109   soname_spec='${libname}${release}${shared_ext}$major'
13110   ;;
13111
13112 aix[4-9]*)
13113   version_type=linux
13114   need_lib_prefix=no
13115   need_version=no
13116   hardcode_into_libs=yes
13117   if test "$host_cpu" = ia64; then
13118     # AIX 5 supports IA64
13119     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13120     shlibpath_var=LD_LIBRARY_PATH
13121   else
13122     # With GCC up to 2.95.x, collect2 would create an import file
13123     # for dependence libraries.  The import file would start with
13124     # the line `#! .'.  This would cause the generated library to
13125     # depend on `.', always an invalid library.  This was fixed in
13126     # development snapshots of GCC prior to 3.0.
13127     case $host_os in
13128       aix4 | aix4.[01] | aix4.[01].*)
13129       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13130            echo ' yes '
13131            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13132         :
13133       else
13134         can_build_shared=no
13135       fi
13136       ;;
13137     esac
13138     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13139     # soname into executable. Probably we can add versioning support to
13140     # collect2, so additional links can be useful in future.
13141     if test "$aix_use_runtimelinking" = yes; then
13142       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13143       # instead of lib<name>.a to let people know that these are not
13144       # typical AIX shared libraries.
13145       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13146     else
13147       # We preserve .a as extension for shared libraries through AIX4.2
13148       # and later when we are not doing run time linking.
13149       library_names_spec='${libname}${release}.a $libname.a'
13150       soname_spec='${libname}${release}${shared_ext}$major'
13151     fi
13152     shlibpath_var=LIBPATH
13153   fi
13154   ;;
13155
13156 amigaos*)
13157   library_names_spec='$libname.ixlibrary $libname.a'
13158   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13159   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'
13160   ;;
13161
13162 beos*)
13163   library_names_spec='${libname}${shared_ext}'
13164   dynamic_linker="$host_os ld.so"
13165   shlibpath_var=LIBRARY_PATH
13166   ;;
13167
13168 bsdi[45]*)
13169   version_type=linux
13170   need_version=no
13171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13172   soname_spec='${libname}${release}${shared_ext}$major'
13173   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13174   shlibpath_var=LD_LIBRARY_PATH
13175   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13176   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13177   # the default ld.so.conf also contains /usr/contrib/lib and
13178   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13179   # libtool to hard-code these into programs
13180   ;;
13181
13182 cygwin* | mingw* | pw32*)
13183   version_type=windows
13184   shrext_cmds=".dll"
13185   need_version=no
13186   need_lib_prefix=no
13187
13188   case $GCC,$host_os in
13189   yes,cygwin* | yes,mingw* | yes,pw32*)
13190     library_names_spec='$libname.dll.a'
13191     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13192     postinstall_cmds='base_file=`basename \${file}`~
13193       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13194       dldir=$destdir/`dirname \$dlpath`~
13195       test -d \$dldir || mkdir -p \$dldir~
13196       $install_prog $dir/$dlname \$dldir/$dlname~
13197       chmod a+x \$dldir/$dlname'
13198     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13199       dlpath=$dir/\$dldll~
13200        $rm \$dlpath'
13201     shlibpath_overrides_runpath=yes
13202
13203     case $host_os in
13204     cygwin*)
13205       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13206       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13207       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13208       ;;
13209     mingw*)
13210       # MinGW DLLs use traditional 'lib' prefix
13211       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13212       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13213       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13214         # It is most probably a Windows format PATH printed by
13215         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13216         # path with ; separators, and with drive letters. We can handle the
13217         # drive letters (cygwin fileutils understands them), so leave them,
13218         # especially as we might pass files found there to a mingw objdump,
13219         # which wouldn't understand a cygwinified path. Ahh.
13220         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13221       else
13222         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13223       fi
13224       ;;
13225     pw32*)
13226       # pw32 DLLs use 'pw' prefix rather than 'lib'
13227       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13228       ;;
13229     esac
13230     ;;
13231
13232   *)
13233     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13234     ;;
13235   esac
13236   dynamic_linker='Win32 ld.exe'
13237   # FIXME: first we should search . and the directory the executable is in
13238   shlibpath_var=PATH
13239   ;;
13240
13241 darwin* | rhapsody*)
13242   dynamic_linker="$host_os dyld"
13243   version_type=darwin
13244   need_lib_prefix=no
13245   need_version=no
13246   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13247   soname_spec='${libname}${release}${major}$shared_ext'
13248   shlibpath_overrides_runpath=yes
13249   shlibpath_var=DYLD_LIBRARY_PATH
13250   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13251
13252   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13253   ;;
13254
13255 dgux*)
13256   version_type=linux
13257   need_lib_prefix=no
13258   need_version=no
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13260   soname_spec='${libname}${release}${shared_ext}$major'
13261   shlibpath_var=LD_LIBRARY_PATH
13262   ;;
13263
13264 freebsd1*)
13265   dynamic_linker=no
13266   ;;
13267
13268 freebsd* | dragonfly*)
13269   # DragonFly does not have aout.  When/if they implement a new
13270   # versioning mechanism, adjust this.
13271   if test -x /usr/bin/objformat; then
13272     objformat=`/usr/bin/objformat`
13273   else
13274     case $host_os in
13275     freebsd[123]*) objformat=aout ;;
13276     *) objformat=elf ;;
13277     esac
13278   fi
13279   version_type=freebsd-$objformat
13280   case $version_type in
13281     freebsd-elf*)
13282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13283       need_version=no
13284       need_lib_prefix=no
13285       ;;
13286     freebsd-*)
13287       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13288       need_version=yes
13289       ;;
13290   esac
13291   shlibpath_var=LD_LIBRARY_PATH
13292   case $host_os in
13293   freebsd2*)
13294     shlibpath_overrides_runpath=yes
13295     ;;
13296   freebsd3.[01]* | freebsdelf3.[01]*)
13297     shlibpath_overrides_runpath=yes
13298     hardcode_into_libs=yes
13299     ;;
13300   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13301   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13302     shlibpath_overrides_runpath=no
13303     hardcode_into_libs=yes
13304     ;;
13305   *) # from 4.6 on, and DragonFly
13306     shlibpath_overrides_runpath=yes
13307     hardcode_into_libs=yes
13308     ;;
13309   esac
13310   ;;
13311
13312 gnu*)
13313   version_type=linux
13314   need_lib_prefix=no
13315   need_version=no
13316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13317   soname_spec='${libname}${release}${shared_ext}$major'
13318   shlibpath_var=LD_LIBRARY_PATH
13319   hardcode_into_libs=yes
13320   ;;
13321
13322 hpux9* | hpux10* | hpux11*)
13323   # Give a soname corresponding to the major version so that dld.sl refuses to
13324   # link against other versions.
13325   version_type=sunos
13326   need_lib_prefix=no
13327   need_version=no
13328   case $host_cpu in
13329   ia64*)
13330     shrext_cmds='.so'
13331     hardcode_into_libs=yes
13332     dynamic_linker="$host_os dld.so"
13333     shlibpath_var=LD_LIBRARY_PATH
13334     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13336     soname_spec='${libname}${release}${shared_ext}$major'
13337     if test "X$HPUX_IA64_MODE" = X32; then
13338       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13339     else
13340       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13341     fi
13342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13343     ;;
13344    hppa*64*)
13345      shrext_cmds='.sl'
13346      hardcode_into_libs=yes
13347      dynamic_linker="$host_os dld.sl"
13348      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13349      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351      soname_spec='${libname}${release}${shared_ext}$major'
13352      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13353      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13354      ;;
13355    *)
13356     shrext_cmds='.sl'
13357     dynamic_linker="$host_os dld.sl"
13358     shlibpath_var=SHLIB_PATH
13359     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361     soname_spec='${libname}${release}${shared_ext}$major'
13362     ;;
13363   esac
13364   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13365   postinstall_cmds='chmod 555 $lib'
13366   ;;
13367
13368 interix[3-9]*)
13369   version_type=linux
13370   need_lib_prefix=no
13371   need_version=no
13372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13373   soname_spec='${libname}${release}${shared_ext}$major'
13374   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13375   shlibpath_var=LD_LIBRARY_PATH
13376   shlibpath_overrides_runpath=no
13377   hardcode_into_libs=yes
13378   ;;
13379
13380 irix5* | irix6* | nonstopux*)
13381   case $host_os in
13382     nonstopux*) version_type=nonstopux ;;
13383     *)
13384         if test "$lt_cv_prog_gnu_ld" = yes; then
13385                 version_type=linux
13386         else
13387                 version_type=irix
13388         fi ;;
13389   esac
13390   need_lib_prefix=no
13391   need_version=no
13392   soname_spec='${libname}${release}${shared_ext}$major'
13393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13394   case $host_os in
13395   irix5* | nonstopux*)
13396     libsuff= shlibsuff=
13397     ;;
13398   *)
13399     case $LD in # libtool.m4 will add one of these switches to LD
13400     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13401       libsuff= shlibsuff= libmagic=32-bit;;
13402     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13403       libsuff=32 shlibsuff=N32 libmagic=N32;;
13404     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13405       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13406     *) libsuff= shlibsuff= libmagic=never-match;;
13407     esac
13408     ;;
13409   esac
13410   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13411   shlibpath_overrides_runpath=no
13412   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13413   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13414   hardcode_into_libs=yes
13415   ;;
13416
13417 # No shared lib support for Linux oldld, aout, or coff.
13418 linux*oldld* | linux*aout* | linux*coff*)
13419   dynamic_linker=no
13420   ;;
13421
13422 # This must be Linux ELF.
13423 linux* | k*bsd*-gnu)
13424   version_type=linux
13425   need_lib_prefix=no
13426   need_version=no
13427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13428   soname_spec='${libname}${release}${shared_ext}$major'
13429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   shlibpath_overrides_runpath=no
13432   # This implies no fast_install, which is unacceptable.
13433   # Some rework will be needed to allow for fast_install
13434   # before this can be enabled.
13435   hardcode_into_libs=yes
13436
13437   # Append ld.so.conf contents to the search path
13438   if test -f /etc/ld.so.conf; then
13439     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' ' '`
13440     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13441   fi
13442
13443   # We used to test for /lib/ld.so.1 and disable shared libraries on
13444   # powerpc, because MkLinux only supported shared libraries with the
13445   # GNU dynamic linker.  Since this was broken with cross compilers,
13446   # most powerpc-linux boxes support dynamic linking these days and
13447   # people can always --disable-shared, the test was removed, and we
13448   # assume the GNU/Linux dynamic linker is in use.
13449   dynamic_linker='GNU/Linux ld.so'
13450   ;;
13451
13452 netbsdelf*-gnu)
13453   version_type=linux
13454   need_lib_prefix=no
13455   need_version=no
13456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13457   soname_spec='${libname}${release}${shared_ext}$major'
13458   shlibpath_var=LD_LIBRARY_PATH
13459   shlibpath_overrides_runpath=no
13460   hardcode_into_libs=yes
13461   dynamic_linker='NetBSD ld.elf_so'
13462   ;;
13463
13464 netbsd*)
13465   version_type=sunos
13466   need_lib_prefix=no
13467   need_version=no
13468   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13470     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13471     dynamic_linker='NetBSD (a.out) ld.so'
13472   else
13473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13474     soname_spec='${libname}${release}${shared_ext}$major'
13475     dynamic_linker='NetBSD ld.elf_so'
13476   fi
13477   shlibpath_var=LD_LIBRARY_PATH
13478   shlibpath_overrides_runpath=yes
13479   hardcode_into_libs=yes
13480   ;;
13481
13482 newsos6)
13483   version_type=linux
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13485   shlibpath_var=LD_LIBRARY_PATH
13486   shlibpath_overrides_runpath=yes
13487   ;;
13488
13489 nto-qnx*)
13490   version_type=linux
13491   need_lib_prefix=no
13492   need_version=no
13493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494   soname_spec='${libname}${release}${shared_ext}$major'
13495   shlibpath_var=LD_LIBRARY_PATH
13496   shlibpath_overrides_runpath=yes
13497   ;;
13498
13499 openbsd*)
13500   version_type=sunos
13501   sys_lib_dlsearch_path_spec="/usr/lib"
13502   need_lib_prefix=no
13503   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13504   case $host_os in
13505     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13506     *)                         need_version=no  ;;
13507   esac
13508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13510   shlibpath_var=LD_LIBRARY_PATH
13511   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13512     case $host_os in
13513       openbsd2.[89] | openbsd2.[89].*)
13514         shlibpath_overrides_runpath=no
13515         ;;
13516       *)
13517         shlibpath_overrides_runpath=yes
13518         ;;
13519       esac
13520   else
13521     shlibpath_overrides_runpath=yes
13522   fi
13523   ;;
13524
13525 os2*)
13526   libname_spec='$name'
13527   shrext_cmds=".dll"
13528   need_lib_prefix=no
13529   library_names_spec='$libname${shared_ext} $libname.a'
13530   dynamic_linker='OS/2 ld.exe'
13531   shlibpath_var=LIBPATH
13532   ;;
13533
13534 osf3* | osf4* | osf5*)
13535   version_type=osf
13536   need_lib_prefix=no
13537   need_version=no
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13543   ;;
13544
13545 rdos*)
13546   dynamic_linker=no
13547   ;;
13548
13549 solaris*)
13550   version_type=linux
13551   need_lib_prefix=no
13552   need_version=no
13553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13554   soname_spec='${libname}${release}${shared_ext}$major'
13555   shlibpath_var=LD_LIBRARY_PATH
13556   shlibpath_overrides_runpath=yes
13557   hardcode_into_libs=yes
13558   # ldd complains unless libraries are executable
13559   postinstall_cmds='chmod +x $lib'
13560   ;;
13561
13562 sunos4*)
13563   version_type=sunos
13564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13566   shlibpath_var=LD_LIBRARY_PATH
13567   shlibpath_overrides_runpath=yes
13568   if test "$with_gnu_ld" = yes; then
13569     need_lib_prefix=no
13570   fi
13571   need_version=yes
13572   ;;
13573
13574 sysv4 | sysv4.3*)
13575   version_type=linux
13576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577   soname_spec='${libname}${release}${shared_ext}$major'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   case $host_vendor in
13580     sni)
13581       shlibpath_overrides_runpath=no
13582       need_lib_prefix=no
13583       export_dynamic_flag_spec='${wl}-Blargedynsym'
13584       runpath_var=LD_RUN_PATH
13585       ;;
13586     siemens)
13587       need_lib_prefix=no
13588       ;;
13589     motorola)
13590       need_lib_prefix=no
13591       need_version=no
13592       shlibpath_overrides_runpath=no
13593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13594       ;;
13595   esac
13596   ;;
13597
13598 sysv4*MP*)
13599   if test -d /usr/nec ;then
13600     version_type=linux
13601     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13602     soname_spec='$libname${shared_ext}.$major'
13603     shlibpath_var=LD_LIBRARY_PATH
13604   fi
13605   ;;
13606
13607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13608   version_type=freebsd-elf
13609   need_lib_prefix=no
13610   need_version=no
13611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13612   soname_spec='${libname}${release}${shared_ext}$major'
13613   shlibpath_var=LD_LIBRARY_PATH
13614   hardcode_into_libs=yes
13615   if test "$with_gnu_ld" = yes; then
13616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13617     shlibpath_overrides_runpath=no
13618   else
13619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13620     shlibpath_overrides_runpath=yes
13621     case $host_os in
13622       sco3.2v5*)
13623         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13624         ;;
13625     esac
13626   fi
13627   sys_lib_dlsearch_path_spec='/usr/lib'
13628   ;;
13629
13630 uts4*)
13631   version_type=linux
13632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13633   soname_spec='${libname}${release}${shared_ext}$major'
13634   shlibpath_var=LD_LIBRARY_PATH
13635   ;;
13636
13637 *)
13638   dynamic_linker=no
13639   ;;
13640 esac
13641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13642 echo "${ECHO_T}$dynamic_linker" >&6; }
13643 test "$dynamic_linker" = no && can_build_shared=no
13644
13645 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13646   echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13649 fi
13650
13651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13652 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13656 fi
13657
13658 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13659
13660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13661 if test "$GCC" = yes; then
13662   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13663 fi
13664
13665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13667 hardcode_action_CXX=
13668 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13669    test -n "$runpath_var_CXX" || \
13670    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13671
13672   # We can hardcode non-existant directories.
13673   if test "$hardcode_direct_CXX" != no &&
13674      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13675      # have to relink, otherwise we might link with an installed library
13676      # when we should be linking with a yet-to-be-installed one
13677      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13678      test "$hardcode_minus_L_CXX" != no; then
13679     # Linking always hardcodes the temporary library directory.
13680     hardcode_action_CXX=relink
13681   else
13682     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13683     hardcode_action_CXX=immediate
13684   fi
13685 else
13686   # We cannot hardcode anything, or else we can only hardcode existing
13687   # directories.
13688   hardcode_action_CXX=unsupported
13689 fi
13690 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13691 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13692
13693 if test "$hardcode_action_CXX" = relink; then
13694   # Fast installation is not supported
13695   enable_fast_install=no
13696 elif test "$shlibpath_overrides_runpath" = yes ||
13697      test "$enable_shared" = no; then
13698   # Fast installation is not necessary
13699   enable_fast_install=needless
13700 fi
13701
13702
13703 # The else clause should only fire when bootstrapping the
13704 # libtool distribution, otherwise you forgot to ship ltmain.sh
13705 # with your package, and you will get complaints that there are
13706 # no rules to generate ltmain.sh.
13707 if test -f "$ltmain"; then
13708   # See if we are running on zsh, and set the options which allow our commands through
13709   # without removal of \ escapes.
13710   if test -n "${ZSH_VERSION+set}" ; then
13711     setopt NO_GLOB_SUBST
13712   fi
13713   # Now quote all the things that may contain metacharacters while being
13714   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13715   # variables and quote the copies for generation of the libtool script.
13716   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13717     SED SHELL STRIP \
13718     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13719     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13720     deplibs_check_method reload_flag reload_cmds need_locks \
13721     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13722     lt_cv_sys_global_symbol_to_c_name_address \
13723     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13724     old_postinstall_cmds old_postuninstall_cmds \
13725     compiler_CXX \
13726     CC_CXX \
13727     LD_CXX \
13728     lt_prog_compiler_wl_CXX \
13729     lt_prog_compiler_pic_CXX \
13730     lt_prog_compiler_static_CXX \
13731     lt_prog_compiler_no_builtin_flag_CXX \
13732     export_dynamic_flag_spec_CXX \
13733     thread_safe_flag_spec_CXX \
13734     whole_archive_flag_spec_CXX \
13735     enable_shared_with_static_runtimes_CXX \
13736     old_archive_cmds_CXX \
13737     old_archive_from_new_cmds_CXX \
13738     predep_objects_CXX \
13739     postdep_objects_CXX \
13740     predeps_CXX \
13741     postdeps_CXX \
13742     compiler_lib_search_path_CXX \
13743     compiler_lib_search_dirs_CXX \
13744     archive_cmds_CXX \
13745     archive_expsym_cmds_CXX \
13746     postinstall_cmds_CXX \
13747     postuninstall_cmds_CXX \
13748     old_archive_from_expsyms_cmds_CXX \
13749     allow_undefined_flag_CXX \
13750     no_undefined_flag_CXX \
13751     export_symbols_cmds_CXX \
13752     hardcode_libdir_flag_spec_CXX \
13753     hardcode_libdir_flag_spec_ld_CXX \
13754     hardcode_libdir_separator_CXX \
13755     hardcode_automatic_CXX \
13756     module_cmds_CXX \
13757     module_expsym_cmds_CXX \
13758     lt_cv_prog_compiler_c_o_CXX \
13759     fix_srcfile_path_CXX \
13760     exclude_expsyms_CXX \
13761     include_expsyms_CXX; do
13762
13763     case $var in
13764     old_archive_cmds_CXX | \
13765     old_archive_from_new_cmds_CXX | \
13766     archive_cmds_CXX | \
13767     archive_expsym_cmds_CXX | \
13768     module_cmds_CXX | \
13769     module_expsym_cmds_CXX | \
13770     old_archive_from_expsyms_cmds_CXX | \
13771     export_symbols_cmds_CXX | \
13772     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13773     postinstall_cmds | postuninstall_cmds | \
13774     old_postinstall_cmds | old_postuninstall_cmds | \
13775     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13776       # Double-quote double-evaled strings.
13777       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13778       ;;
13779     *)
13780       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13781       ;;
13782     esac
13783   done
13784
13785   case $lt_echo in
13786   *'\$0 --fallback-echo"')
13787     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13788     ;;
13789   esac
13790
13791 cfgfile="$ofile"
13792
13793   cat <<__EOF__ >> "$cfgfile"
13794 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13795
13796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13797
13798 # Shell to use when invoking shell scripts.
13799 SHELL=$lt_SHELL
13800
13801 # Whether or not to build shared libraries.
13802 build_libtool_libs=$enable_shared
13803
13804 # Whether or not to build static libraries.
13805 build_old_libs=$enable_static
13806
13807 # Whether or not to add -lc for building shared libraries.
13808 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13809
13810 # Whether or not to disallow shared libs when runtime libs are static
13811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13812
13813 # Whether or not to optimize for fast installation.
13814 fast_install=$enable_fast_install
13815
13816 # The host system.
13817 host_alias=$host_alias
13818 host=$host
13819 host_os=$host_os
13820
13821 # The build system.
13822 build_alias=$build_alias
13823 build=$build
13824 build_os=$build_os
13825
13826 # An echo program that does not interpret backslashes.
13827 echo=$lt_echo
13828
13829 # The archiver.
13830 AR=$lt_AR
13831 AR_FLAGS=$lt_AR_FLAGS
13832
13833 # A C compiler.
13834 LTCC=$lt_LTCC
13835
13836 # LTCC compiler flags.
13837 LTCFLAGS=$lt_LTCFLAGS
13838
13839 # A language-specific compiler.
13840 CC=$lt_compiler_CXX
13841
13842 # Is the compiler the GNU C compiler?
13843 with_gcc=$GCC_CXX
13844
13845 # An ERE matcher.
13846 EGREP=$lt_EGREP
13847
13848 # The linker used to build libraries.
13849 LD=$lt_LD_CXX
13850
13851 # Whether we need hard or soft links.
13852 LN_S=$lt_LN_S
13853
13854 # A BSD-compatible nm program.
13855 NM=$lt_NM
13856
13857 # A symbol stripping program
13858 STRIP=$lt_STRIP
13859
13860 # Used to examine libraries when file_magic_cmd begins "file"
13861 MAGIC_CMD=$MAGIC_CMD
13862
13863 # Used on cygwin: DLL creation program.
13864 DLLTOOL="$DLLTOOL"
13865
13866 # Used on cygwin: object dumper.
13867 OBJDUMP="$OBJDUMP"
13868
13869 # Used on cygwin: assembler.
13870 AS="$AS"
13871
13872 # The name of the directory that contains temporary libtool files.
13873 objdir=$objdir
13874
13875 # How to create reloadable object files.
13876 reload_flag=$lt_reload_flag
13877 reload_cmds=$lt_reload_cmds
13878
13879 # How to pass a linker flag through the compiler.
13880 wl=$lt_lt_prog_compiler_wl_CXX
13881
13882 # Object file suffix (normally "o").
13883 objext="$ac_objext"
13884
13885 # Old archive suffix (normally "a").
13886 libext="$libext"
13887
13888 # Shared library suffix (normally ".so").
13889 shrext_cmds='$shrext_cmds'
13890
13891 # Executable file suffix (normally "").
13892 exeext="$exeext"
13893
13894 # Additional compiler flags for building library objects.
13895 pic_flag=$lt_lt_prog_compiler_pic_CXX
13896 pic_mode=$pic_mode
13897
13898 # What is the maximum length of a command?
13899 max_cmd_len=$lt_cv_sys_max_cmd_len
13900
13901 # Does compiler simultaneously support -c and -o options?
13902 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13903
13904 # Must we lock files when doing compilation?
13905 need_locks=$lt_need_locks
13906
13907 # Do we need the lib prefix for modules?
13908 need_lib_prefix=$need_lib_prefix
13909
13910 # Do we need a version for libraries?
13911 need_version=$need_version
13912
13913 # Whether dlopen is supported.
13914 dlopen_support=$enable_dlopen
13915
13916 # Whether dlopen of programs is supported.
13917 dlopen_self=$enable_dlopen_self
13918
13919 # Whether dlopen of statically linked programs is supported.
13920 dlopen_self_static=$enable_dlopen_self_static
13921
13922 # Compiler flag to prevent dynamic linking.
13923 link_static_flag=$lt_lt_prog_compiler_static_CXX
13924
13925 # Compiler flag to turn off builtin functions.
13926 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13927
13928 # Compiler flag to allow reflexive dlopens.
13929 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13930
13931 # Compiler flag to generate shared objects directly from archives.
13932 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13933
13934 # Compiler flag to generate thread-safe objects.
13935 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13936
13937 # Library versioning type.
13938 version_type=$version_type
13939
13940 # Format of library name prefix.
13941 libname_spec=$lt_libname_spec
13942
13943 # List of archive names.  First name is the real one, the rest are links.
13944 # The last name is the one that the linker finds with -lNAME.
13945 library_names_spec=$lt_library_names_spec
13946
13947 # The coded name of the library, if different from the real name.
13948 soname_spec=$lt_soname_spec
13949
13950 # Commands used to build and install an old-style archive.
13951 RANLIB=$lt_RANLIB
13952 old_archive_cmds=$lt_old_archive_cmds_CXX
13953 old_postinstall_cmds=$lt_old_postinstall_cmds
13954 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13955
13956 # Create an old-style archive from a shared archive.
13957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13958
13959 # Create a temporary old-style archive to link instead of a shared archive.
13960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13961
13962 # Commands used to build and install a shared archive.
13963 archive_cmds=$lt_archive_cmds_CXX
13964 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13965 postinstall_cmds=$lt_postinstall_cmds
13966 postuninstall_cmds=$lt_postuninstall_cmds
13967
13968 # Commands used to build a loadable module (assumed same as above if empty)
13969 module_cmds=$lt_module_cmds_CXX
13970 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13971
13972 # Commands to strip libraries.
13973 old_striplib=$lt_old_striplib
13974 striplib=$lt_striplib
13975
13976 # Dependencies to place before the objects being linked to create a
13977 # shared library.
13978 predep_objects=$lt_predep_objects_CXX
13979
13980 # Dependencies to place after the objects being linked to create a
13981 # shared library.
13982 postdep_objects=$lt_postdep_objects_CXX
13983
13984 # Dependencies to place before the objects being linked to create a
13985 # shared library.
13986 predeps=$lt_predeps_CXX
13987
13988 # Dependencies to place after the objects being linked to create a
13989 # shared library.
13990 postdeps=$lt_postdeps_CXX
13991
13992 # The directories searched by this compiler when creating a shared
13993 # library
13994 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13995
13996 # The library search path used internally by the compiler when linking
13997 # a shared library.
13998 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13999
14000 # Method to check whether dependent libraries are shared objects.
14001 deplibs_check_method=$lt_deplibs_check_method
14002
14003 # Command to use when deplibs_check_method == file_magic.
14004 file_magic_cmd=$lt_file_magic_cmd
14005
14006 # Flag that allows shared libraries with undefined symbols to be built.
14007 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14008
14009 # Flag that forces no undefined symbols.
14010 no_undefined_flag=$lt_no_undefined_flag_CXX
14011
14012 # Commands used to finish a libtool library installation in a directory.
14013 finish_cmds=$lt_finish_cmds
14014
14015 # Same as above, but a single script fragment to be evaled but not shown.
14016 finish_eval=$lt_finish_eval
14017
14018 # Take the output of nm and produce a listing of raw symbols and C names.
14019 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14020
14021 # Transform the output of nm in a proper C declaration
14022 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14023
14024 # Transform the output of nm in a C name address pair
14025 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14026
14027 # This is the shared library runtime path variable.
14028 runpath_var=$runpath_var
14029
14030 # This is the shared library path variable.
14031 shlibpath_var=$shlibpath_var
14032
14033 # Is shlibpath searched before the hard-coded library search path?
14034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14035
14036 # How to hardcode a shared library path into an executable.
14037 hardcode_action=$hardcode_action_CXX
14038
14039 # Whether we should hardcode library paths into libraries.
14040 hardcode_into_libs=$hardcode_into_libs
14041
14042 # Flag to hardcode \$libdir into a binary during linking.
14043 # This must work even if \$libdir does not exist.
14044 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14045
14046 # If ld is used when linking, flag to hardcode \$libdir into
14047 # a binary during linking. This must work even if \$libdir does
14048 # not exist.
14049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14050
14051 # Whether we need a single -rpath flag with a separated argument.
14052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14053
14054 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14055 # resulting binary.
14056 hardcode_direct=$hardcode_direct_CXX
14057
14058 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14059 # resulting binary.
14060 hardcode_minus_L=$hardcode_minus_L_CXX
14061
14062 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14063 # the resulting binary.
14064 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14065
14066 # Set to yes if building a shared library automatically hardcodes DIR into the library
14067 # and all subsequent libraries and executables linked against it.
14068 hardcode_automatic=$hardcode_automatic_CXX
14069
14070 # Variables whose values should be saved in libtool wrapper scripts and
14071 # restored at relink time.
14072 variables_saved_for_relink="$variables_saved_for_relink"
14073
14074 # Whether libtool must link a program against all its dependency libraries.
14075 link_all_deplibs=$link_all_deplibs_CXX
14076
14077 # Compile-time system search path for libraries
14078 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14079
14080 # Run-time system search path for libraries
14081 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14082
14083 # Fix the shell variable \$srcfile for the compiler.
14084 fix_srcfile_path=$lt_fix_srcfile_path
14085
14086 # Set to yes if exported symbols are required.
14087 always_export_symbols=$always_export_symbols_CXX
14088
14089 # The commands to list exported symbols.
14090 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14091
14092 # The commands to extract the exported symbol list from a shared archive.
14093 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14094
14095 # Symbols that should not be listed in the preloaded symbols.
14096 exclude_expsyms=$lt_exclude_expsyms_CXX
14097
14098 # Symbols that must always be exported.
14099 include_expsyms=$lt_include_expsyms_CXX
14100
14101 # ### END LIBTOOL TAG CONFIG: $tagname
14102
14103 __EOF__
14104
14105
14106 else
14107   # If there is no Makefile yet, we rely on a make rule to execute
14108   # `config.status --recheck' to rerun these tests and create the
14109   # libtool script then.
14110   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14111   if test -f "$ltmain_in"; then
14112     test -f Makefile && make "$ltmain"
14113   fi
14114 fi
14115
14116
14117 ac_ext=c
14118 ac_cpp='$CPP $CPPFLAGS'
14119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14122
14123 CC=$lt_save_CC
14124 LDCXX=$LD
14125 LD=$lt_save_LD
14126 GCC=$lt_save_GCC
14127 with_gnu_ldcxx=$with_gnu_ld
14128 with_gnu_ld=$lt_save_with_gnu_ld
14129 lt_cv_path_LDCXX=$lt_cv_path_LD
14130 lt_cv_path_LD=$lt_save_path_LD
14131 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14132 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14133
14134         else
14135           tagname=""
14136         fi
14137         ;;
14138
14139       F77)
14140         if test -n "$F77" && test "X$F77" != "Xno"; then
14141
14142 ac_ext=f
14143 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14144 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14145 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14146
14147
14148 archive_cmds_need_lc_F77=no
14149 allow_undefined_flag_F77=
14150 always_export_symbols_F77=no
14151 archive_expsym_cmds_F77=
14152 export_dynamic_flag_spec_F77=
14153 hardcode_direct_F77=no
14154 hardcode_libdir_flag_spec_F77=
14155 hardcode_libdir_flag_spec_ld_F77=
14156 hardcode_libdir_separator_F77=
14157 hardcode_minus_L_F77=no
14158 hardcode_automatic_F77=no
14159 module_cmds_F77=
14160 module_expsym_cmds_F77=
14161 link_all_deplibs_F77=unknown
14162 old_archive_cmds_F77=$old_archive_cmds
14163 no_undefined_flag_F77=
14164 whole_archive_flag_spec_F77=
14165 enable_shared_with_static_runtimes_F77=no
14166
14167 # Source file extension for f77 test sources.
14168 ac_ext=f
14169
14170 # Object file extension for compiled f77 test sources.
14171 objext=o
14172 objext_F77=$objext
14173
14174 # Code to be used in simple compile tests
14175 lt_simple_compile_test_code="\
14176       subroutine t
14177       return
14178       end
14179 "
14180
14181 # Code to be used in simple link tests
14182 lt_simple_link_test_code="\
14183       program t
14184       end
14185 "
14186
14187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14188
14189 # If no C compiler was specified, use CC.
14190 LTCC=${LTCC-"$CC"}
14191
14192 # If no C compiler flags were specified, use CFLAGS.
14193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14194
14195 # Allow CC to be a program name with arguments.
14196 compiler=$CC
14197
14198
14199 # save warnings/boilerplate of simple test code
14200 ac_outfile=conftest.$ac_objext
14201 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14203 _lt_compiler_boilerplate=`cat conftest.err`
14204 $rm conftest*
14205
14206 ac_outfile=conftest.$ac_objext
14207 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14209 _lt_linker_boilerplate=`cat conftest.err`
14210 $rm -r conftest*
14211
14212
14213 # Allow CC to be a program name with arguments.
14214 lt_save_CC="$CC"
14215 CC=${F77-"f77"}
14216 compiler=$CC
14217 compiler_F77=$CC
14218 for cc_temp in $compiler""; do
14219   case $cc_temp in
14220     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14221     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14222     \-*) ;;
14223     *) break;;
14224   esac
14225 done
14226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14227
14228
14229 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14230 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14231 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14232 echo "${ECHO_T}$can_build_shared" >&6; }
14233
14234 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14235 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14236 test "$can_build_shared" = "no" && enable_shared=no
14237
14238 # On AIX, shared libraries and static libraries use the same namespace, and
14239 # are all built from PIC.
14240 case $host_os in
14241 aix3*)
14242   test "$enable_shared" = yes && enable_static=no
14243   if test -n "$RANLIB"; then
14244     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14245     postinstall_cmds='$RANLIB $lib'
14246   fi
14247   ;;
14248 aix[4-9]*)
14249   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14250     test "$enable_shared" = yes && enable_static=no
14251   fi
14252   ;;
14253 esac
14254 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14255 echo "${ECHO_T}$enable_shared" >&6; }
14256
14257 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14258 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14259 # Make sure either enable_shared or enable_static is yes.
14260 test "$enable_shared" = yes || enable_static=yes
14261 { echo "$as_me:$LINENO: result: $enable_static" >&5
14262 echo "${ECHO_T}$enable_static" >&6; }
14263
14264 GCC_F77="$G77"
14265 LD_F77="$LD"
14266
14267 lt_prog_compiler_wl_F77=
14268 lt_prog_compiler_pic_F77=
14269 lt_prog_compiler_static_F77=
14270
14271 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14272 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14273
14274   if test "$GCC" = yes; then
14275     lt_prog_compiler_wl_F77='-Wl,'
14276     lt_prog_compiler_static_F77='-static'
14277
14278     case $host_os in
14279       aix*)
14280       # All AIX code is PIC.
14281       if test "$host_cpu" = ia64; then
14282         # AIX 5 now supports IA64 processor
14283         lt_prog_compiler_static_F77='-Bstatic'
14284       fi
14285       ;;
14286
14287     amigaos*)
14288       # FIXME: we need at least 68020 code to build shared libraries, but
14289       # adding the `-m68020' flag to GCC prevents building anything better,
14290       # like `-m68040'.
14291       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14292       ;;
14293
14294     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14295       # PIC is the default for these OSes.
14296       ;;
14297
14298     mingw* | cygwin* | pw32* | os2*)
14299       # This hack is so that the source file can tell whether it is being
14300       # built for inclusion in a dll (and should export symbols for example).
14301       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14302       # (--disable-auto-import) libraries
14303       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14304       ;;
14305
14306     darwin* | rhapsody*)
14307       # PIC is the default on this platform
14308       # Common symbols not allowed in MH_DYLIB files
14309       lt_prog_compiler_pic_F77='-fno-common'
14310       ;;
14311
14312     interix[3-9]*)
14313       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14314       # Instead, we relocate shared libraries at runtime.
14315       ;;
14316
14317     msdosdjgpp*)
14318       # Just because we use GCC doesn't mean we suddenly get shared libraries
14319       # on systems that don't support them.
14320       lt_prog_compiler_can_build_shared_F77=no
14321       enable_shared=no
14322       ;;
14323
14324     sysv4*MP*)
14325       if test -d /usr/nec; then
14326         lt_prog_compiler_pic_F77=-Kconform_pic
14327       fi
14328       ;;
14329
14330     hpux*)
14331       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14332       # not for PA HP-UX.
14333       case $host_cpu in
14334       hppa*64*|ia64*)
14335         # +Z the default
14336         ;;
14337       *)
14338         lt_prog_compiler_pic_F77='-fPIC'
14339         ;;
14340       esac
14341       ;;
14342
14343     *)
14344       lt_prog_compiler_pic_F77='-fPIC'
14345       ;;
14346     esac
14347   else
14348     # PORTME Check for flag to pass linker flags through the system compiler.
14349     case $host_os in
14350     aix*)
14351       lt_prog_compiler_wl_F77='-Wl,'
14352       if test "$host_cpu" = ia64; then
14353         # AIX 5 now supports IA64 processor
14354         lt_prog_compiler_static_F77='-Bstatic'
14355       else
14356         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14357       fi
14358       ;;
14359       darwin*)
14360         # PIC is the default on this platform
14361         # Common symbols not allowed in MH_DYLIB files
14362        case $cc_basename in
14363          xlc*)
14364          lt_prog_compiler_pic_F77='-qnocommon'
14365          lt_prog_compiler_wl_F77='-Wl,'
14366          ;;
14367        esac
14368        ;;
14369
14370     mingw* | cygwin* | pw32* | os2*)
14371       # This hack is so that the source file can tell whether it is being
14372       # built for inclusion in a dll (and should export symbols for example).
14373       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14374       ;;
14375
14376     hpux9* | hpux10* | hpux11*)
14377       lt_prog_compiler_wl_F77='-Wl,'
14378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14379       # not for PA HP-UX.
14380       case $host_cpu in
14381       hppa*64*|ia64*)
14382         # +Z the default
14383         ;;
14384       *)
14385         lt_prog_compiler_pic_F77='+Z'
14386         ;;
14387       esac
14388       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14389       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14390       ;;
14391
14392     irix5* | irix6* | nonstopux*)
14393       lt_prog_compiler_wl_F77='-Wl,'
14394       # PIC (with -KPIC) is the default.
14395       lt_prog_compiler_static_F77='-non_shared'
14396       ;;
14397
14398     newsos6)
14399       lt_prog_compiler_pic_F77='-KPIC'
14400       lt_prog_compiler_static_F77='-Bstatic'
14401       ;;
14402
14403     linux* | k*bsd*-gnu)
14404       case $cc_basename in
14405       icc* | ecc*)
14406         lt_prog_compiler_wl_F77='-Wl,'
14407         lt_prog_compiler_pic_F77='-KPIC'
14408         lt_prog_compiler_static_F77='-static'
14409         ;;
14410       pgcc* | pgf77* | pgf90* | pgf95*)
14411         # Portland Group compilers (*not* the Pentium gcc compiler,
14412         # which looks to be a dead project)
14413         lt_prog_compiler_wl_F77='-Wl,'
14414         lt_prog_compiler_pic_F77='-fpic'
14415         lt_prog_compiler_static_F77='-Bstatic'
14416         ;;
14417       ccc*)
14418         lt_prog_compiler_wl_F77='-Wl,'
14419         # All Alpha code is PIC.
14420         lt_prog_compiler_static_F77='-non_shared'
14421         ;;
14422       *)
14423         case `$CC -V 2>&1 | sed 5q` in
14424         *Sun\ C*)
14425           # Sun C 5.9
14426           lt_prog_compiler_pic_F77='-KPIC'
14427           lt_prog_compiler_static_F77='-Bstatic'
14428           lt_prog_compiler_wl_F77='-Wl,'
14429           ;;
14430         *Sun\ F*)
14431           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14432           lt_prog_compiler_pic_F77='-KPIC'
14433           lt_prog_compiler_static_F77='-Bstatic'
14434           lt_prog_compiler_wl_F77=''
14435           ;;
14436         esac
14437         ;;
14438       esac
14439       ;;
14440
14441     osf3* | osf4* | osf5*)
14442       lt_prog_compiler_wl_F77='-Wl,'
14443       # All OSF/1 code is PIC.
14444       lt_prog_compiler_static_F77='-non_shared'
14445       ;;
14446
14447     rdos*)
14448       lt_prog_compiler_static_F77='-non_shared'
14449       ;;
14450
14451     solaris*)
14452       lt_prog_compiler_pic_F77='-KPIC'
14453       lt_prog_compiler_static_F77='-Bstatic'
14454       case $cc_basename in
14455       f77* | f90* | f95*)
14456         lt_prog_compiler_wl_F77='-Qoption ld ';;
14457       *)
14458         lt_prog_compiler_wl_F77='-Wl,';;
14459       esac
14460       ;;
14461
14462     sunos4*)
14463       lt_prog_compiler_wl_F77='-Qoption ld '
14464       lt_prog_compiler_pic_F77='-PIC'
14465       lt_prog_compiler_static_F77='-Bstatic'
14466       ;;
14467
14468     sysv4 | sysv4.2uw2* | sysv4.3*)
14469       lt_prog_compiler_wl_F77='-Wl,'
14470       lt_prog_compiler_pic_F77='-KPIC'
14471       lt_prog_compiler_static_F77='-Bstatic'
14472       ;;
14473
14474     sysv4*MP*)
14475       if test -d /usr/nec ;then
14476         lt_prog_compiler_pic_F77='-Kconform_pic'
14477         lt_prog_compiler_static_F77='-Bstatic'
14478       fi
14479       ;;
14480
14481     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14482       lt_prog_compiler_wl_F77='-Wl,'
14483       lt_prog_compiler_pic_F77='-KPIC'
14484       lt_prog_compiler_static_F77='-Bstatic'
14485       ;;
14486
14487     unicos*)
14488       lt_prog_compiler_wl_F77='-Wl,'
14489       lt_prog_compiler_can_build_shared_F77=no
14490       ;;
14491
14492     uts4*)
14493       lt_prog_compiler_pic_F77='-pic'
14494       lt_prog_compiler_static_F77='-Bstatic'
14495       ;;
14496
14497     *)
14498       lt_prog_compiler_can_build_shared_F77=no
14499       ;;
14500     esac
14501   fi
14502
14503 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14504 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14505
14506 #
14507 # Check to make sure the PIC flag actually works.
14508 #
14509 if test -n "$lt_prog_compiler_pic_F77"; then
14510
14511 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14512 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14513 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   lt_cv_prog_compiler_pic_works_F77=no
14517   ac_outfile=conftest.$ac_objext
14518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14519    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14520    # Insert the option either (1) after the last *FLAGS variable, or
14521    # (2) before a word containing "conftest.", or (3) at the end.
14522    # Note that $ac_compile itself does not contain backslashes and begins
14523    # with a dollar sign (not a hyphen), so the echo should work correctly.
14524    # The option is referenced via a variable to avoid confusing sed.
14525    lt_compile=`echo "$ac_compile" | $SED \
14526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14528    -e 's:$: $lt_compiler_flag:'`
14529    (eval echo "\"\$as_me:14529: $lt_compile\"" >&5)
14530    (eval "$lt_compile" 2>conftest.err)
14531    ac_status=$?
14532    cat conftest.err >&5
14533    echo "$as_me:14533: \$? = $ac_status" >&5
14534    if (exit $ac_status) && test -s "$ac_outfile"; then
14535      # The compiler can only warn and ignore the option if not recognized
14536      # So say no if there are warnings other than the usual output.
14537      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14538      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14539      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14540        lt_cv_prog_compiler_pic_works_F77=yes
14541      fi
14542    fi
14543    $rm conftest*
14544
14545 fi
14546 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14547 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14548
14549 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14550     case $lt_prog_compiler_pic_F77 in
14551      "" | " "*) ;;
14552      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14553      esac
14554 else
14555     lt_prog_compiler_pic_F77=
14556      lt_prog_compiler_can_build_shared_F77=no
14557 fi
14558
14559 fi
14560 case $host_os in
14561   # For platforms which do not support PIC, -DPIC is meaningless:
14562   *djgpp*)
14563     lt_prog_compiler_pic_F77=
14564     ;;
14565   *)
14566     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14567     ;;
14568 esac
14569
14570 #
14571 # Check to make sure the static flag actually works.
14572 #
14573 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14574 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14575 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14576 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   lt_cv_prog_compiler_static_works_F77=no
14580    save_LDFLAGS="$LDFLAGS"
14581    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14582    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14583    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14584      # The linker can only warn and ignore the option if not recognized
14585      # So say no if there are warnings
14586      if test -s conftest.err; then
14587        # Append any errors to the config.log.
14588        cat conftest.err 1>&5
14589        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14590        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14591        if diff conftest.exp conftest.er2 >/dev/null; then
14592          lt_cv_prog_compiler_static_works_F77=yes
14593        fi
14594      else
14595        lt_cv_prog_compiler_static_works_F77=yes
14596      fi
14597    fi
14598    $rm -r conftest*
14599    LDFLAGS="$save_LDFLAGS"
14600
14601 fi
14602 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14603 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14604
14605 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14606     :
14607 else
14608     lt_prog_compiler_static_F77=
14609 fi
14610
14611
14612 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14613 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14614 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14615   echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617   lt_cv_prog_compiler_c_o_F77=no
14618    $rm -r conftest 2>/dev/null
14619    mkdir conftest
14620    cd conftest
14621    mkdir out
14622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623
14624    lt_compiler_flag="-o out/conftest2.$ac_objext"
14625    # Insert the option either (1) after the last *FLAGS variable, or
14626    # (2) before a word containing "conftest.", or (3) at the end.
14627    # Note that $ac_compile itself does not contain backslashes and begins
14628    # with a dollar sign (not a hyphen), so the echo should work correctly.
14629    lt_compile=`echo "$ac_compile" | $SED \
14630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632    -e 's:$: $lt_compiler_flag:'`
14633    (eval echo "\"\$as_me:14633: $lt_compile\"" >&5)
14634    (eval "$lt_compile" 2>out/conftest.err)
14635    ac_status=$?
14636    cat out/conftest.err >&5
14637    echo "$as_me:14637: \$? = $ac_status" >&5
14638    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14639    then
14640      # The compiler can only warn and ignore the option if not recognized
14641      # So say no if there are warnings
14642      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14643      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645        lt_cv_prog_compiler_c_o_F77=yes
14646      fi
14647    fi
14648    chmod u+w . 2>&5
14649    $rm conftest*
14650    # SGI C++ compiler will create directory out/ii_files/ for
14651    # template instantiation
14652    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14653    $rm out/* && rmdir out
14654    cd ..
14655    rmdir conftest
14656    $rm conftest*
14657
14658 fi
14659 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14660 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14661
14662
14663 hard_links="nottested"
14664 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14665   # do not overwrite the value of need_locks provided by the user
14666   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14667 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14668   hard_links=yes
14669   $rm conftest*
14670   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14671   touch conftest.a
14672   ln conftest.a conftest.b 2>&5 || hard_links=no
14673   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14674   { echo "$as_me:$LINENO: result: $hard_links" >&5
14675 echo "${ECHO_T}$hard_links" >&6; }
14676   if test "$hard_links" = no; then
14677     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14678 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14679     need_locks=warn
14680   fi
14681 else
14682   need_locks=no
14683 fi
14684
14685 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14686 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14687
14688   runpath_var=
14689   allow_undefined_flag_F77=
14690   enable_shared_with_static_runtimes_F77=no
14691   archive_cmds_F77=
14692   archive_expsym_cmds_F77=
14693   old_archive_From_new_cmds_F77=
14694   old_archive_from_expsyms_cmds_F77=
14695   export_dynamic_flag_spec_F77=
14696   whole_archive_flag_spec_F77=
14697   thread_safe_flag_spec_F77=
14698   hardcode_libdir_flag_spec_F77=
14699   hardcode_libdir_flag_spec_ld_F77=
14700   hardcode_libdir_separator_F77=
14701   hardcode_direct_F77=no
14702   hardcode_minus_L_F77=no
14703   hardcode_shlibpath_var_F77=unsupported
14704   link_all_deplibs_F77=unknown
14705   hardcode_automatic_F77=no
14706   module_cmds_F77=
14707   module_expsym_cmds_F77=
14708   always_export_symbols_F77=no
14709   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14710   # include_expsyms should be a list of space-separated symbols to be *always*
14711   # included in the symbol list
14712   include_expsyms_F77=
14713   # exclude_expsyms can be an extended regexp of symbols to exclude
14714   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14715   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14716   # as well as any symbol that contains `d'.
14717   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14718   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14719   # platforms (ab)use it in PIC code, but their linkers get confused if
14720   # the symbol is explicitly referenced.  Since portable code cannot
14721   # rely on this symbol name, it's probably fine to never include it in
14722   # preloaded symbol tables.
14723   # Exclude shared library initialization/finalization symbols.
14724   extract_expsyms_cmds=
14725   # Just being paranoid about ensuring that cc_basename is set.
14726   for cc_temp in $compiler""; do
14727   case $cc_temp in
14728     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14729     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14730     \-*) ;;
14731     *) break;;
14732   esac
14733 done
14734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14735
14736   case $host_os in
14737   cygwin* | mingw* | pw32*)
14738     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14739     # When not using gcc, we currently assume that we are using
14740     # Microsoft Visual C++.
14741     if test "$GCC" != yes; then
14742       with_gnu_ld=no
14743     fi
14744     ;;
14745   interix*)
14746     # we just hope/assume this is gcc and not c89 (= MSVC++)
14747     with_gnu_ld=yes
14748     ;;
14749   openbsd*)
14750     with_gnu_ld=no
14751     ;;
14752   esac
14753
14754   ld_shlibs_F77=yes
14755   if test "$with_gnu_ld" = yes; then
14756     # If archive_cmds runs LD, not CC, wlarc should be empty
14757     wlarc='${wl}'
14758
14759     # Set some defaults for GNU ld with shared library support. These
14760     # are reset later if shared libraries are not supported. Putting them
14761     # here allows them to be overridden if necessary.
14762     runpath_var=LD_RUN_PATH
14763     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14764     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14765     # ancient GNU ld didn't support --whole-archive et. al.
14766     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14767         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14768       else
14769         whole_archive_flag_spec_F77=
14770     fi
14771     supports_anon_versioning=no
14772     case `$LD -v 2>/dev/null` in
14773       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14774       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14775       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14776       *\ 2.11.*) ;; # other 2.11 versions
14777       *) supports_anon_versioning=yes ;;
14778     esac
14779
14780     # See if GNU ld supports shared libraries.
14781     case $host_os in
14782     aix[3-9]*)
14783       # On AIX/PPC, the GNU linker is very broken
14784       if test "$host_cpu" != ia64; then
14785         ld_shlibs_F77=no
14786         cat <<EOF 1>&2
14787
14788 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14789 *** to be unable to reliably create shared libraries on AIX.
14790 *** Therefore, libtool is disabling shared libraries support.  If you
14791 *** really care for shared libraries, you may want to modify your PATH
14792 *** so that a non-GNU linker is found, and then restart.
14793
14794 EOF
14795       fi
14796       ;;
14797
14798     amigaos*)
14799       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)'
14800       hardcode_libdir_flag_spec_F77='-L$libdir'
14801       hardcode_minus_L_F77=yes
14802
14803       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14804       # that the semantics of dynamic libraries on AmigaOS, at least up
14805       # to version 4, is to share data among multiple programs linked
14806       # with the same dynamic library.  Since this doesn't match the
14807       # behavior of shared libraries on other platforms, we can't use
14808       # them.
14809       ld_shlibs_F77=no
14810       ;;
14811
14812     beos*)
14813       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14814         allow_undefined_flag_F77=unsupported
14815         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14816         # support --undefined.  This deserves some investigation.  FIXME
14817         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14818       else
14819         ld_shlibs_F77=no
14820       fi
14821       ;;
14822
14823     cygwin* | mingw* | pw32*)
14824       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14825       # as there is no search path for DLLs.
14826       hardcode_libdir_flag_spec_F77='-L$libdir'
14827       allow_undefined_flag_F77=unsupported
14828       always_export_symbols_F77=no
14829       enable_shared_with_static_runtimes_F77=yes
14830       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14831
14832       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14833         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14834         # If the export-symbols file already is a .def file (1st line
14835         # is EXPORTS), use it as is; otherwise, prepend...
14836         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14837           cp $export_symbols $output_objdir/$soname.def;
14838         else
14839           echo EXPORTS > $output_objdir/$soname.def;
14840           cat $export_symbols >> $output_objdir/$soname.def;
14841         fi~
14842         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14843       else
14844         ld_shlibs_F77=no
14845       fi
14846       ;;
14847
14848     interix[3-9]*)
14849       hardcode_direct_F77=no
14850       hardcode_shlibpath_var_F77=no
14851       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14852       export_dynamic_flag_spec_F77='${wl}-E'
14853       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14854       # Instead, shared libraries are loaded at an image base (0x10000000 by
14855       # default) and relocated if they conflict, which is a slow very memory
14856       # consuming and fragmenting process.  To avoid this, we pick a random,
14857       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14858       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14859       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'
14860       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'
14861       ;;
14862
14863     gnu* | linux* | k*bsd*-gnu)
14864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14865         tmp_addflag=
14866         case $cc_basename,$host_cpu in
14867         pgcc*)                          # Portland Group C compiler
14868           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'
14869           tmp_addflag=' $pic_flag'
14870           ;;
14871         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14872           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'
14873           tmp_addflag=' $pic_flag -Mnomain' ;;
14874         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14875           tmp_addflag=' -i_dynamic' ;;
14876         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14877           tmp_addflag=' -i_dynamic -nofor_main' ;;
14878         ifc* | ifort*)                  # Intel Fortran compiler
14879           tmp_addflag=' -nofor_main' ;;
14880         esac
14881         case `$CC -V 2>&1 | sed 5q` in
14882         *Sun\ C*)                       # Sun C 5.9
14883           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'
14884           tmp_sharedflag='-G' ;;
14885         *Sun\ F*)                       # Sun Fortran 8.3
14886           tmp_sharedflag='-G' ;;
14887         *)
14888           tmp_sharedflag='-shared' ;;
14889         esac
14890         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891
14892         if test $supports_anon_versioning = yes; then
14893           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14894   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14895   $echo "local: *; };" >> $output_objdir/$libname.ver~
14896           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14897         fi
14898         link_all_deplibs_F77=no
14899       else
14900         ld_shlibs_F77=no
14901       fi
14902       ;;
14903
14904     netbsd* | netbsdelf*-gnu)
14905       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14906         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14907         wlarc=
14908       else
14909         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14911       fi
14912       ;;
14913
14914     solaris*)
14915       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14916         ld_shlibs_F77=no
14917         cat <<EOF 1>&2
14918
14919 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14920 *** create shared libraries on Solaris systems.  Therefore, libtool
14921 *** is disabling shared libraries support.  We urge you to upgrade GNU
14922 *** binutils to release 2.9.1 or newer.  Another option is to modify
14923 *** your PATH or compiler configuration so that the native linker is
14924 *** used, and then restart.
14925
14926 EOF
14927       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14928         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14930       else
14931         ld_shlibs_F77=no
14932       fi
14933       ;;
14934
14935     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14936       case `$LD -v 2>&1` in
14937         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14938         ld_shlibs_F77=no
14939         cat <<_LT_EOF 1>&2
14940
14941 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14942 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14943 *** is disabling shared libraries support.  We urge you to upgrade GNU
14944 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14945 *** your PATH or compiler configuration so that the native linker is
14946 *** used, and then restart.
14947
14948 _LT_EOF
14949         ;;
14950         *)
14951           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14952             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14953             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14954             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14955           else
14956             ld_shlibs_F77=no
14957           fi
14958         ;;
14959       esac
14960       ;;
14961
14962     sunos4*)
14963       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14964       wlarc=
14965       hardcode_direct_F77=yes
14966       hardcode_shlibpath_var_F77=no
14967       ;;
14968
14969     *)
14970       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973       else
14974         ld_shlibs_F77=no
14975       fi
14976       ;;
14977     esac
14978
14979     if test "$ld_shlibs_F77" = no; then
14980       runpath_var=
14981       hardcode_libdir_flag_spec_F77=
14982       export_dynamic_flag_spec_F77=
14983       whole_archive_flag_spec_F77=
14984     fi
14985   else
14986     # PORTME fill in a description of your system's linker (not GNU ld)
14987     case $host_os in
14988     aix3*)
14989       allow_undefined_flag_F77=unsupported
14990       always_export_symbols_F77=yes
14991       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'
14992       # Note: this linker hardcodes the directories in LIBPATH if there
14993       # are no directories specified by -L.
14994       hardcode_minus_L_F77=yes
14995       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14996         # Neither direct hardcoding nor static linking is supported with a
14997         # broken collect2.
14998         hardcode_direct_F77=unsupported
14999       fi
15000       ;;
15001
15002     aix[4-9]*)
15003       if test "$host_cpu" = ia64; then
15004         # On IA64, the linker does run time linking by default, so we don't
15005         # have to do anything special.
15006         aix_use_runtimelinking=no
15007         exp_sym_flag='-Bexport'
15008         no_entry_flag=""
15009       else
15010         # If we're using GNU nm, then we don't want the "-C" option.
15011         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15012         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15013           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'
15014         else
15015           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'
15016         fi
15017         aix_use_runtimelinking=no
15018
15019         # Test if we are trying to use run time linking or normal
15020         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15021         # need to do runtime linking.
15022         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15023           for ld_flag in $LDFLAGS; do
15024           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15025             aix_use_runtimelinking=yes
15026             break
15027           fi
15028           done
15029           ;;
15030         esac
15031
15032         exp_sym_flag='-bexport'
15033         no_entry_flag='-bnoentry'
15034       fi
15035
15036       # When large executables or shared objects are built, AIX ld can
15037       # have problems creating the table of contents.  If linking a library
15038       # or program results in "error TOC overflow" add -mminimal-toc to
15039       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15040       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15041
15042       archive_cmds_F77=''
15043       hardcode_direct_F77=yes
15044       hardcode_libdir_separator_F77=':'
15045       link_all_deplibs_F77=yes
15046
15047       if test "$GCC" = yes; then
15048         case $host_os in aix4.[012]|aix4.[012].*)
15049         # We only want to do this on AIX 4.2 and lower, the check
15050         # below for broken collect2 doesn't work under 4.3+
15051           collect2name=`${CC} -print-prog-name=collect2`
15052           if test -f "$collect2name" && \
15053            strings "$collect2name" | grep resolve_lib_name >/dev/null
15054           then
15055           # We have reworked collect2
15056           :
15057           else
15058           # We have old collect2
15059           hardcode_direct_F77=unsupported
15060           # It fails to find uninstalled libraries when the uninstalled
15061           # path is not listed in the libpath.  Setting hardcode_minus_L
15062           # to unsupported forces relinking
15063           hardcode_minus_L_F77=yes
15064           hardcode_libdir_flag_spec_F77='-L$libdir'
15065           hardcode_libdir_separator_F77=
15066           fi
15067           ;;
15068         esac
15069         shared_flag='-shared'
15070         if test "$aix_use_runtimelinking" = yes; then
15071           shared_flag="$shared_flag "'${wl}-G'
15072         fi
15073       else
15074         # not using gcc
15075         if test "$host_cpu" = ia64; then
15076         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15077         # chokes on -Wl,-G. The following line is correct:
15078           shared_flag='-G'
15079         else
15080           if test "$aix_use_runtimelinking" = yes; then
15081             shared_flag='${wl}-G'
15082           else
15083             shared_flag='${wl}-bM:SRE'
15084           fi
15085         fi
15086       fi
15087
15088       # It seems that -bexpall does not export symbols beginning with
15089       # underscore (_), so it is better to generate a list of symbols to export.
15090       always_export_symbols_F77=yes
15091       if test "$aix_use_runtimelinking" = yes; then
15092         # Warning - without using the other runtime loading flags (-brtl),
15093         # -berok will link without error, but may produce a broken library.
15094         allow_undefined_flag_F77='-berok'
15095        # Determine the default libpath from the value encoded in an empty executable.
15096        cat >conftest.$ac_ext <<_ACEOF
15097       program main
15098
15099       end
15100 _ACEOF
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (ac_try="$ac_link"
15103 case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_link") 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } && {
15115          test -z "$ac_f77_werror_flag" ||
15116          test ! -s conftest.err
15117        } && test -s conftest$ac_exeext &&
15118        $as_test_x conftest$ac_exeext; then
15119
15120 lt_aix_libpath_sed='
15121     /Import File Strings/,/^$/ {
15122         /^0/ {
15123             s/^0  *\(.*\)$/\1/
15124             p
15125         }
15126     }'
15127 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15128 # Check for a 64-bit object if we didn't find anything.
15129 if test -z "$aix_libpath"; then
15130   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 fi
15132 else
15133   echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15135
15136
15137 fi
15138
15139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15140       conftest$ac_exeext conftest.$ac_ext
15141 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15142
15143        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15144         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"
15145        else
15146         if test "$host_cpu" = ia64; then
15147           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15148           allow_undefined_flag_F77="-z nodefs"
15149           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"
15150         else
15151          # Determine the default libpath from the value encoded in an empty executable.
15152          cat >conftest.$ac_ext <<_ACEOF
15153       program main
15154
15155       end
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (ac_try="$ac_link"
15159 case "(($ac_try" in
15160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161   *) ac_try_echo=$ac_try;;
15162 esac
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164   (eval "$ac_link") 2>conftest.er1
15165   ac_status=$?
15166   grep -v '^ *+' conftest.er1 >conftest.err
15167   rm -f conftest.er1
15168   cat conftest.err >&5
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); } && {
15171          test -z "$ac_f77_werror_flag" ||
15172          test ! -s conftest.err
15173        } && test -s conftest$ac_exeext &&
15174        $as_test_x conftest$ac_exeext; then
15175
15176 lt_aix_libpath_sed='
15177     /Import File Strings/,/^$/ {
15178         /^0/ {
15179             s/^0  *\(.*\)$/\1/
15180             p
15181         }
15182     }'
15183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15184 # Check for a 64-bit object if we didn't find anything.
15185 if test -z "$aix_libpath"; then
15186   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 fi
15188 else
15189   echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196       conftest$ac_exeext conftest.$ac_ext
15197 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15198
15199          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15200           # Warning - without using the other run time loading flags,
15201           # -berok will link without error, but may produce a broken library.
15202           no_undefined_flag_F77=' ${wl}-bernotok'
15203           allow_undefined_flag_F77=' ${wl}-berok'
15204           # Exported symbols can be pulled into shared objects from archives
15205           whole_archive_flag_spec_F77='$convenience'
15206           archive_cmds_need_lc_F77=yes
15207           # This is similar to how AIX traditionally builds its shared libraries.
15208           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'
15209         fi
15210       fi
15211       ;;
15212
15213     amigaos*)
15214       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)'
15215       hardcode_libdir_flag_spec_F77='-L$libdir'
15216       hardcode_minus_L_F77=yes
15217       # see comment about different semantics on the GNU ld section
15218       ld_shlibs_F77=no
15219       ;;
15220
15221     bsdi[45]*)
15222       export_dynamic_flag_spec_F77=-rdynamic
15223       ;;
15224
15225     cygwin* | mingw* | pw32*)
15226       # When not using gcc, we currently assume that we are using
15227       # Microsoft Visual C++.
15228       # hardcode_libdir_flag_spec is actually meaningless, as there is
15229       # no search path for DLLs.
15230       hardcode_libdir_flag_spec_F77=' '
15231       allow_undefined_flag_F77=unsupported
15232       # Tell ltmain to make .lib files, not .a files.
15233       libext=lib
15234       # Tell ltmain to make .dll files, not .so files.
15235       shrext_cmds=".dll"
15236       # FIXME: Setting linknames here is a bad hack.
15237       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15238       # The linker will automatically build a .lib file if we build a DLL.
15239       old_archive_From_new_cmds_F77='true'
15240       # FIXME: Should let the user specify the lib program.
15241       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15242       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15243       enable_shared_with_static_runtimes_F77=yes
15244       ;;
15245
15246     darwin* | rhapsody*)
15247       case $host_os in
15248         rhapsody* | darwin1.[012])
15249          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15250          ;;
15251        *) # Darwin 1.3 on
15252          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15253            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15254          else
15255            case ${MACOSX_DEPLOYMENT_TARGET} in
15256              10.[012])
15257                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15258                ;;
15259              10.*)
15260                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15261                ;;
15262            esac
15263          fi
15264          ;;
15265       esac
15266       archive_cmds_need_lc_F77=no
15267       hardcode_direct_F77=no
15268       hardcode_automatic_F77=yes
15269       hardcode_shlibpath_var_F77=unsupported
15270       whole_archive_flag_spec_F77=''
15271       link_all_deplibs_F77=yes
15272     if test "$GCC" = yes ; then
15273         output_verbose_link_cmd='echo'
15274         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15275         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15276         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15277         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15278     else
15279       case $cc_basename in
15280         xlc*)
15281          output_verbose_link_cmd='echo'
15282          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15283          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15284           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15285          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}'
15286           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}'
15287           ;;
15288        *)
15289          ld_shlibs_F77=no
15290           ;;
15291       esac
15292     fi
15293       ;;
15294
15295     dgux*)
15296       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15297       hardcode_libdir_flag_spec_F77='-L$libdir'
15298       hardcode_shlibpath_var_F77=no
15299       ;;
15300
15301     freebsd1*)
15302       ld_shlibs_F77=no
15303       ;;
15304
15305     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15306     # support.  Future versions do this automatically, but an explicit c++rt0.o
15307     # does not break anything, and helps significantly (at the cost of a little
15308     # extra space).
15309     freebsd2.2*)
15310       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15311       hardcode_libdir_flag_spec_F77='-R$libdir'
15312       hardcode_direct_F77=yes
15313       hardcode_shlibpath_var_F77=no
15314       ;;
15315
15316     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15317     freebsd2*)
15318       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15319       hardcode_direct_F77=yes
15320       hardcode_minus_L_F77=yes
15321       hardcode_shlibpath_var_F77=no
15322       ;;
15323
15324     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15325     freebsd* | dragonfly*)
15326       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15327       hardcode_libdir_flag_spec_F77='-R$libdir'
15328       hardcode_direct_F77=yes
15329       hardcode_shlibpath_var_F77=no
15330       ;;
15331
15332     hpux9*)
15333       if test "$GCC" = yes; then
15334         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'
15335       else
15336         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'
15337       fi
15338       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15339       hardcode_libdir_separator_F77=:
15340       hardcode_direct_F77=yes
15341
15342       # hardcode_minus_L: Not really in the search PATH,
15343       # but as the default location of the library.
15344       hardcode_minus_L_F77=yes
15345       export_dynamic_flag_spec_F77='${wl}-E'
15346       ;;
15347
15348     hpux10*)
15349       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15350         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15351       else
15352         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15353       fi
15354       if test "$with_gnu_ld" = no; then
15355         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15356         hardcode_libdir_separator_F77=:
15357
15358         hardcode_direct_F77=yes
15359         export_dynamic_flag_spec_F77='${wl}-E'
15360
15361         # hardcode_minus_L: Not really in the search PATH,
15362         # but as the default location of the library.
15363         hardcode_minus_L_F77=yes
15364       fi
15365       ;;
15366
15367     hpux11*)
15368       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15369         case $host_cpu in
15370         hppa*64*)
15371           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15372           ;;
15373         ia64*)
15374           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15375           ;;
15376         *)
15377           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15378           ;;
15379         esac
15380       else
15381         case $host_cpu in
15382         hppa*64*)
15383           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15384           ;;
15385         ia64*)
15386           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15387           ;;
15388         *)
15389           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15390           ;;
15391         esac
15392       fi
15393       if test "$with_gnu_ld" = no; then
15394         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15395         hardcode_libdir_separator_F77=:
15396
15397         case $host_cpu in
15398         hppa*64*|ia64*)
15399           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15400           hardcode_direct_F77=no
15401           hardcode_shlibpath_var_F77=no
15402           ;;
15403         *)
15404           hardcode_direct_F77=yes
15405           export_dynamic_flag_spec_F77='${wl}-E'
15406
15407           # hardcode_minus_L: Not really in the search PATH,
15408           # but as the default location of the library.
15409           hardcode_minus_L_F77=yes
15410           ;;
15411         esac
15412       fi
15413       ;;
15414
15415     irix5* | irix6* | nonstopux*)
15416       if test "$GCC" = yes; then
15417         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'
15418       else
15419         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'
15420         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15421       fi
15422       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15423       hardcode_libdir_separator_F77=:
15424       link_all_deplibs_F77=yes
15425       ;;
15426
15427     netbsd* | netbsdelf*-gnu)
15428       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15429         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15430       else
15431         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15432       fi
15433       hardcode_libdir_flag_spec_F77='-R$libdir'
15434       hardcode_direct_F77=yes
15435       hardcode_shlibpath_var_F77=no
15436       ;;
15437
15438     newsos6)
15439       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15440       hardcode_direct_F77=yes
15441       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15442       hardcode_libdir_separator_F77=:
15443       hardcode_shlibpath_var_F77=no
15444       ;;
15445
15446     openbsd*)
15447       if test -f /usr/libexec/ld.so; then
15448         hardcode_direct_F77=yes
15449         hardcode_shlibpath_var_F77=no
15450         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15451           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15452           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15453           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15454           export_dynamic_flag_spec_F77='${wl}-E'
15455         else
15456           case $host_os in
15457            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15458              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15459              hardcode_libdir_flag_spec_F77='-R$libdir'
15460              ;;
15461            *)
15462              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15463              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15464              ;;
15465           esac
15466         fi
15467       else
15468         ld_shlibs_F77=no
15469       fi
15470       ;;
15471
15472     os2*)
15473       hardcode_libdir_flag_spec_F77='-L$libdir'
15474       hardcode_minus_L_F77=yes
15475       allow_undefined_flag_F77=unsupported
15476       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'
15477       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15478       ;;
15479
15480     osf3*)
15481       if test "$GCC" = yes; then
15482         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15483         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'
15484       else
15485         allow_undefined_flag_F77=' -expect_unresolved \*'
15486         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'
15487       fi
15488       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15489       hardcode_libdir_separator_F77=:
15490       ;;
15491
15492     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15493       if test "$GCC" = yes; then
15494         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15495         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'
15496         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15497       else
15498         allow_undefined_flag_F77=' -expect_unresolved \*'
15499         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'
15500         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~
15501         $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'
15502
15503         # Both c and cxx compiler support -rpath directly
15504         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15505       fi
15506       hardcode_libdir_separator_F77=:
15507       ;;
15508
15509     solaris*)
15510       no_undefined_flag_F77=' -z text'
15511       if test "$GCC" = yes; then
15512         wlarc='${wl}'
15513         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15515           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15516       else
15517         wlarc=''
15518         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15520         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15521       fi
15522       hardcode_libdir_flag_spec_F77='-R$libdir'
15523       hardcode_shlibpath_var_F77=no
15524       case $host_os in
15525       solaris2.[0-5] | solaris2.[0-5].*) ;;
15526       *)
15527         # The compiler driver will combine and reorder linker options,
15528         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15529         # but is careful enough not to reorder.
15530         # Supported since Solaris 2.6 (maybe 2.5.1?)
15531         if test "$GCC" = yes; then
15532           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15533         else
15534           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15535         fi
15536         ;;
15537       esac
15538       link_all_deplibs_F77=yes
15539       ;;
15540
15541     sunos4*)
15542       if test "x$host_vendor" = xsequent; then
15543         # Use $CC to link under sequent, because it throws in some extra .o
15544         # files that make .init and .fini sections work.
15545         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15546       else
15547         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15548       fi
15549       hardcode_libdir_flag_spec_F77='-L$libdir'
15550       hardcode_direct_F77=yes
15551       hardcode_minus_L_F77=yes
15552       hardcode_shlibpath_var_F77=no
15553       ;;
15554
15555     sysv4)
15556       case $host_vendor in
15557         sni)
15558           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15559           hardcode_direct_F77=yes # is this really true???
15560         ;;
15561         siemens)
15562           ## LD is ld it makes a PLAMLIB
15563           ## CC just makes a GrossModule.
15564           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15565           reload_cmds_F77='$CC -r -o $output$reload_objs'
15566           hardcode_direct_F77=no
15567         ;;
15568         motorola)
15569           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15571         ;;
15572       esac
15573       runpath_var='LD_RUN_PATH'
15574       hardcode_shlibpath_var_F77=no
15575       ;;
15576
15577     sysv4.3*)
15578       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15579       hardcode_shlibpath_var_F77=no
15580       export_dynamic_flag_spec_F77='-Bexport'
15581       ;;
15582
15583     sysv4*MP*)
15584       if test -d /usr/nec; then
15585         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586         hardcode_shlibpath_var_F77=no
15587         runpath_var=LD_RUN_PATH
15588         hardcode_runpath_var=yes
15589         ld_shlibs_F77=yes
15590       fi
15591       ;;
15592
15593     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15594       no_undefined_flag_F77='${wl}-z,text'
15595       archive_cmds_need_lc_F77=no
15596       hardcode_shlibpath_var_F77=no
15597       runpath_var='LD_RUN_PATH'
15598
15599       if test "$GCC" = yes; then
15600         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15601         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15602       else
15603         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15604         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15605       fi
15606       ;;
15607
15608     sysv5* | sco3.2v5* | sco5v6*)
15609       # Note: We can NOT use -z defs as we might desire, because we do not
15610       # link with -lc, and that would cause any symbols used from libc to
15611       # always be unresolved, which means just about no library would
15612       # ever link correctly.  If we're not using GNU ld we use -z text
15613       # though, which does catch some bad symbols but isn't as heavy-handed
15614       # as -z defs.
15615       no_undefined_flag_F77='${wl}-z,text'
15616       allow_undefined_flag_F77='${wl}-z,nodefs'
15617       archive_cmds_need_lc_F77=no
15618       hardcode_shlibpath_var_F77=no
15619       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15620       hardcode_libdir_separator_F77=':'
15621       link_all_deplibs_F77=yes
15622       export_dynamic_flag_spec_F77='${wl}-Bexport'
15623       runpath_var='LD_RUN_PATH'
15624
15625       if test "$GCC" = yes; then
15626         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15627         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15628       else
15629         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15631       fi
15632       ;;
15633
15634     uts4*)
15635       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15636       hardcode_libdir_flag_spec_F77='-L$libdir'
15637       hardcode_shlibpath_var_F77=no
15638       ;;
15639
15640     *)
15641       ld_shlibs_F77=no
15642       ;;
15643     esac
15644   fi
15645
15646 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15647 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15648 test "$ld_shlibs_F77" = no && can_build_shared=no
15649
15650 #
15651 # Do we need to explicitly link libc?
15652 #
15653 case "x$archive_cmds_need_lc_F77" in
15654 x|xyes)
15655   # Assume -lc should be added
15656   archive_cmds_need_lc_F77=yes
15657
15658   if test "$enable_shared" = yes && test "$GCC" = yes; then
15659     case $archive_cmds_F77 in
15660     *'~'*)
15661       # FIXME: we may have to deal with multi-command sequences.
15662       ;;
15663     '$CC '*)
15664       # Test whether the compiler implicitly links with -lc since on some
15665       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15666       # to ld, don't add -lc before -lgcc.
15667       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15668 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15669       $rm conftest*
15670       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15671
15672       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15673   (eval $ac_compile) 2>&5
15674   ac_status=$?
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } 2>conftest.err; then
15677         soname=conftest
15678         lib=conftest
15679         libobjs=conftest.$ac_objext
15680         deplibs=
15681         wl=$lt_prog_compiler_wl_F77
15682         pic_flag=$lt_prog_compiler_pic_F77
15683         compiler_flags=-v
15684         linker_flags=-v
15685         verstring=
15686         output_objdir=.
15687         libname=conftest
15688         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15689         allow_undefined_flag_F77=
15690         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15691   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }
15695         then
15696           archive_cmds_need_lc_F77=no
15697         else
15698           archive_cmds_need_lc_F77=yes
15699         fi
15700         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15701       else
15702         cat conftest.err 1>&5
15703       fi
15704       $rm conftest*
15705       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15706 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15707       ;;
15708     esac
15709   fi
15710   ;;
15711 esac
15712
15713 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15714 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15715 library_names_spec=
15716 libname_spec='lib$name'
15717 soname_spec=
15718 shrext_cmds=".so"
15719 postinstall_cmds=
15720 postuninstall_cmds=
15721 finish_cmds=
15722 finish_eval=
15723 shlibpath_var=
15724 shlibpath_overrides_runpath=unknown
15725 version_type=none
15726 dynamic_linker="$host_os ld.so"
15727 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15728
15729 need_lib_prefix=unknown
15730 hardcode_into_libs=no
15731
15732 # when you set need_version to no, make sure it does not cause -set_version
15733 # flags to be left without arguments
15734 need_version=unknown
15735
15736 case $host_os in
15737 aix3*)
15738   version_type=linux
15739   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15740   shlibpath_var=LIBPATH
15741
15742   # AIX 3 has no versioning support, so we append a major version to the name.
15743   soname_spec='${libname}${release}${shared_ext}$major'
15744   ;;
15745
15746 aix[4-9]*)
15747   version_type=linux
15748   need_lib_prefix=no
15749   need_version=no
15750   hardcode_into_libs=yes
15751   if test "$host_cpu" = ia64; then
15752     # AIX 5 supports IA64
15753     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15754     shlibpath_var=LD_LIBRARY_PATH
15755   else
15756     # With GCC up to 2.95.x, collect2 would create an import file
15757     # for dependence libraries.  The import file would start with
15758     # the line `#! .'.  This would cause the generated library to
15759     # depend on `.', always an invalid library.  This was fixed in
15760     # development snapshots of GCC prior to 3.0.
15761     case $host_os in
15762       aix4 | aix4.[01] | aix4.[01].*)
15763       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15764            echo ' yes '
15765            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15766         :
15767       else
15768         can_build_shared=no
15769       fi
15770       ;;
15771     esac
15772     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15773     # soname into executable. Probably we can add versioning support to
15774     # collect2, so additional links can be useful in future.
15775     if test "$aix_use_runtimelinking" = yes; then
15776       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15777       # instead of lib<name>.a to let people know that these are not
15778       # typical AIX shared libraries.
15779       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780     else
15781       # We preserve .a as extension for shared libraries through AIX4.2
15782       # and later when we are not doing run time linking.
15783       library_names_spec='${libname}${release}.a $libname.a'
15784       soname_spec='${libname}${release}${shared_ext}$major'
15785     fi
15786     shlibpath_var=LIBPATH
15787   fi
15788   ;;
15789
15790 amigaos*)
15791   library_names_spec='$libname.ixlibrary $libname.a'
15792   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15793   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'
15794   ;;
15795
15796 beos*)
15797   library_names_spec='${libname}${shared_ext}'
15798   dynamic_linker="$host_os ld.so"
15799   shlibpath_var=LIBRARY_PATH
15800   ;;
15801
15802 bsdi[45]*)
15803   version_type=linux
15804   need_version=no
15805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806   soname_spec='${libname}${release}${shared_ext}$major'
15807   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15808   shlibpath_var=LD_LIBRARY_PATH
15809   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15810   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15811   # the default ld.so.conf also contains /usr/contrib/lib and
15812   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15813   # libtool to hard-code these into programs
15814   ;;
15815
15816 cygwin* | mingw* | pw32*)
15817   version_type=windows
15818   shrext_cmds=".dll"
15819   need_version=no
15820   need_lib_prefix=no
15821
15822   case $GCC,$host_os in
15823   yes,cygwin* | yes,mingw* | yes,pw32*)
15824     library_names_spec='$libname.dll.a'
15825     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15826     postinstall_cmds='base_file=`basename \${file}`~
15827       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15828       dldir=$destdir/`dirname \$dlpath`~
15829       test -d \$dldir || mkdir -p \$dldir~
15830       $install_prog $dir/$dlname \$dldir/$dlname~
15831       chmod a+x \$dldir/$dlname'
15832     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15833       dlpath=$dir/\$dldll~
15834        $rm \$dlpath'
15835     shlibpath_overrides_runpath=yes
15836
15837     case $host_os in
15838     cygwin*)
15839       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15840       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15841       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15842       ;;
15843     mingw*)
15844       # MinGW DLLs use traditional 'lib' prefix
15845       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15846       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15847       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15848         # It is most probably a Windows format PATH printed by
15849         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15850         # path with ; separators, and with drive letters. We can handle the
15851         # drive letters (cygwin fileutils understands them), so leave them,
15852         # especially as we might pass files found there to a mingw objdump,
15853         # which wouldn't understand a cygwinified path. Ahh.
15854         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15855       else
15856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15857       fi
15858       ;;
15859     pw32*)
15860       # pw32 DLLs use 'pw' prefix rather than 'lib'
15861       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15862       ;;
15863     esac
15864     ;;
15865
15866   *)
15867     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15868     ;;
15869   esac
15870   dynamic_linker='Win32 ld.exe'
15871   # FIXME: first we should search . and the directory the executable is in
15872   shlibpath_var=PATH
15873   ;;
15874
15875 darwin* | rhapsody*)
15876   dynamic_linker="$host_os dyld"
15877   version_type=darwin
15878   need_lib_prefix=no
15879   need_version=no
15880   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15881   soname_spec='${libname}${release}${major}$shared_ext'
15882   shlibpath_overrides_runpath=yes
15883   shlibpath_var=DYLD_LIBRARY_PATH
15884   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15885
15886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15887   ;;
15888
15889 dgux*)
15890   version_type=linux
15891   need_lib_prefix=no
15892   need_version=no
15893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15894   soname_spec='${libname}${release}${shared_ext}$major'
15895   shlibpath_var=LD_LIBRARY_PATH
15896   ;;
15897
15898 freebsd1*)
15899   dynamic_linker=no
15900   ;;
15901
15902 freebsd* | dragonfly*)
15903   # DragonFly does not have aout.  When/if they implement a new
15904   # versioning mechanism, adjust this.
15905   if test -x /usr/bin/objformat; then
15906     objformat=`/usr/bin/objformat`
15907   else
15908     case $host_os in
15909     freebsd[123]*) objformat=aout ;;
15910     *) objformat=elf ;;
15911     esac
15912   fi
15913   version_type=freebsd-$objformat
15914   case $version_type in
15915     freebsd-elf*)
15916       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15917       need_version=no
15918       need_lib_prefix=no
15919       ;;
15920     freebsd-*)
15921       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15922       need_version=yes
15923       ;;
15924   esac
15925   shlibpath_var=LD_LIBRARY_PATH
15926   case $host_os in
15927   freebsd2*)
15928     shlibpath_overrides_runpath=yes
15929     ;;
15930   freebsd3.[01]* | freebsdelf3.[01]*)
15931     shlibpath_overrides_runpath=yes
15932     hardcode_into_libs=yes
15933     ;;
15934   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15935   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15936     shlibpath_overrides_runpath=no
15937     hardcode_into_libs=yes
15938     ;;
15939   *) # from 4.6 on, and DragonFly
15940     shlibpath_overrides_runpath=yes
15941     hardcode_into_libs=yes
15942     ;;
15943   esac
15944   ;;
15945
15946 gnu*)
15947   version_type=linux
15948   need_lib_prefix=no
15949   need_version=no
15950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15951   soname_spec='${libname}${release}${shared_ext}$major'
15952   shlibpath_var=LD_LIBRARY_PATH
15953   hardcode_into_libs=yes
15954   ;;
15955
15956 hpux9* | hpux10* | hpux11*)
15957   # Give a soname corresponding to the major version so that dld.sl refuses to
15958   # link against other versions.
15959   version_type=sunos
15960   need_lib_prefix=no
15961   need_version=no
15962   case $host_cpu in
15963   ia64*)
15964     shrext_cmds='.so'
15965     hardcode_into_libs=yes
15966     dynamic_linker="$host_os dld.so"
15967     shlibpath_var=LD_LIBRARY_PATH
15968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15970     soname_spec='${libname}${release}${shared_ext}$major'
15971     if test "X$HPUX_IA64_MODE" = X32; then
15972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15973     else
15974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15975     fi
15976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15977     ;;
15978    hppa*64*)
15979      shrext_cmds='.sl'
15980      hardcode_into_libs=yes
15981      dynamic_linker="$host_os dld.sl"
15982      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15983      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985      soname_spec='${libname}${release}${shared_ext}$major'
15986      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15987      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15988      ;;
15989    *)
15990     shrext_cmds='.sl'
15991     dynamic_linker="$host_os dld.sl"
15992     shlibpath_var=SHLIB_PATH
15993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15995     soname_spec='${libname}${release}${shared_ext}$major'
15996     ;;
15997   esac
15998   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15999   postinstall_cmds='chmod 555 $lib'
16000   ;;
16001
16002 interix[3-9]*)
16003   version_type=linux
16004   need_lib_prefix=no
16005   need_version=no
16006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16007   soname_spec='${libname}${release}${shared_ext}$major'
16008   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16009   shlibpath_var=LD_LIBRARY_PATH
16010   shlibpath_overrides_runpath=no
16011   hardcode_into_libs=yes
16012   ;;
16013
16014 irix5* | irix6* | nonstopux*)
16015   case $host_os in
16016     nonstopux*) version_type=nonstopux ;;
16017     *)
16018         if test "$lt_cv_prog_gnu_ld" = yes; then
16019                 version_type=linux
16020         else
16021                 version_type=irix
16022         fi ;;
16023   esac
16024   need_lib_prefix=no
16025   need_version=no
16026   soname_spec='${libname}${release}${shared_ext}$major'
16027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16028   case $host_os in
16029   irix5* | nonstopux*)
16030     libsuff= shlibsuff=
16031     ;;
16032   *)
16033     case $LD in # libtool.m4 will add one of these switches to LD
16034     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16035       libsuff= shlibsuff= libmagic=32-bit;;
16036     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16037       libsuff=32 shlibsuff=N32 libmagic=N32;;
16038     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16039       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16040     *) libsuff= shlibsuff= libmagic=never-match;;
16041     esac
16042     ;;
16043   esac
16044   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16045   shlibpath_overrides_runpath=no
16046   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16047   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16048   hardcode_into_libs=yes
16049   ;;
16050
16051 # No shared lib support for Linux oldld, aout, or coff.
16052 linux*oldld* | linux*aout* | linux*coff*)
16053   dynamic_linker=no
16054   ;;
16055
16056 # This must be Linux ELF.
16057 linux* | k*bsd*-gnu)
16058   version_type=linux
16059   need_lib_prefix=no
16060   need_version=no
16061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062   soname_spec='${libname}${release}${shared_ext}$major'
16063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=no
16066   # This implies no fast_install, which is unacceptable.
16067   # Some rework will be needed to allow for fast_install
16068   # before this can be enabled.
16069   hardcode_into_libs=yes
16070
16071   # Append ld.so.conf contents to the search path
16072   if test -f /etc/ld.so.conf; then
16073     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' ' '`
16074     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16075   fi
16076
16077   # We used to test for /lib/ld.so.1 and disable shared libraries on
16078   # powerpc, because MkLinux only supported shared libraries with the
16079   # GNU dynamic linker.  Since this was broken with cross compilers,
16080   # most powerpc-linux boxes support dynamic linking these days and
16081   # people can always --disable-shared, the test was removed, and we
16082   # assume the GNU/Linux dynamic linker is in use.
16083   dynamic_linker='GNU/Linux ld.so'
16084   ;;
16085
16086 netbsdelf*-gnu)
16087   version_type=linux
16088   need_lib_prefix=no
16089   need_version=no
16090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16091   soname_spec='${libname}${release}${shared_ext}$major'
16092   shlibpath_var=LD_LIBRARY_PATH
16093   shlibpath_overrides_runpath=no
16094   hardcode_into_libs=yes
16095   dynamic_linker='NetBSD ld.elf_so'
16096   ;;
16097
16098 netbsd*)
16099   version_type=sunos
16100   need_lib_prefix=no
16101   need_version=no
16102   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16104     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16105     dynamic_linker='NetBSD (a.out) ld.so'
16106   else
16107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16108     soname_spec='${libname}${release}${shared_ext}$major'
16109     dynamic_linker='NetBSD ld.elf_so'
16110   fi
16111   shlibpath_var=LD_LIBRARY_PATH
16112   shlibpath_overrides_runpath=yes
16113   hardcode_into_libs=yes
16114   ;;
16115
16116 newsos6)
16117   version_type=linux
16118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16119   shlibpath_var=LD_LIBRARY_PATH
16120   shlibpath_overrides_runpath=yes
16121   ;;
16122
16123 nto-qnx*)
16124   version_type=linux
16125   need_lib_prefix=no
16126   need_version=no
16127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128   soname_spec='${libname}${release}${shared_ext}$major'
16129   shlibpath_var=LD_LIBRARY_PATH
16130   shlibpath_overrides_runpath=yes
16131   ;;
16132
16133 openbsd*)
16134   version_type=sunos
16135   sys_lib_dlsearch_path_spec="/usr/lib"
16136   need_lib_prefix=no
16137   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16138   case $host_os in
16139     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16140     *)                         need_version=no  ;;
16141   esac
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146     case $host_os in
16147       openbsd2.[89] | openbsd2.[89].*)
16148         shlibpath_overrides_runpath=no
16149         ;;
16150       *)
16151         shlibpath_overrides_runpath=yes
16152         ;;
16153       esac
16154   else
16155     shlibpath_overrides_runpath=yes
16156   fi
16157   ;;
16158
16159 os2*)
16160   libname_spec='$name'
16161   shrext_cmds=".dll"
16162   need_lib_prefix=no
16163   library_names_spec='$libname${shared_ext} $libname.a'
16164   dynamic_linker='OS/2 ld.exe'
16165   shlibpath_var=LIBPATH
16166   ;;
16167
16168 osf3* | osf4* | osf5*)
16169   version_type=osf
16170   need_lib_prefix=no
16171   need_version=no
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16176   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16177   ;;
16178
16179 rdos*)
16180   dynamic_linker=no
16181   ;;
16182
16183 solaris*)
16184   version_type=linux
16185   need_lib_prefix=no
16186   need_version=no
16187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188   soname_spec='${libname}${release}${shared_ext}$major'
16189   shlibpath_var=LD_LIBRARY_PATH
16190   shlibpath_overrides_runpath=yes
16191   hardcode_into_libs=yes
16192   # ldd complains unless libraries are executable
16193   postinstall_cmds='chmod +x $lib'
16194   ;;
16195
16196 sunos4*)
16197   version_type=sunos
16198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16199   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16200   shlibpath_var=LD_LIBRARY_PATH
16201   shlibpath_overrides_runpath=yes
16202   if test "$with_gnu_ld" = yes; then
16203     need_lib_prefix=no
16204   fi
16205   need_version=yes
16206   ;;
16207
16208 sysv4 | sysv4.3*)
16209   version_type=linux
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   case $host_vendor in
16214     sni)
16215       shlibpath_overrides_runpath=no
16216       need_lib_prefix=no
16217       export_dynamic_flag_spec='${wl}-Blargedynsym'
16218       runpath_var=LD_RUN_PATH
16219       ;;
16220     siemens)
16221       need_lib_prefix=no
16222       ;;
16223     motorola)
16224       need_lib_prefix=no
16225       need_version=no
16226       shlibpath_overrides_runpath=no
16227       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16228       ;;
16229   esac
16230   ;;
16231
16232 sysv4*MP*)
16233   if test -d /usr/nec ;then
16234     version_type=linux
16235     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16236     soname_spec='$libname${shared_ext}.$major'
16237     shlibpath_var=LD_LIBRARY_PATH
16238   fi
16239   ;;
16240
16241 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16242   version_type=freebsd-elf
16243   need_lib_prefix=no
16244   need_version=no
16245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16246   soname_spec='${libname}${release}${shared_ext}$major'
16247   shlibpath_var=LD_LIBRARY_PATH
16248   hardcode_into_libs=yes
16249   if test "$with_gnu_ld" = yes; then
16250     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16251     shlibpath_overrides_runpath=no
16252   else
16253     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16254     shlibpath_overrides_runpath=yes
16255     case $host_os in
16256       sco3.2v5*)
16257         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16258         ;;
16259     esac
16260   fi
16261   sys_lib_dlsearch_path_spec='/usr/lib'
16262   ;;
16263
16264 uts4*)
16265   version_type=linux
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16267   soname_spec='${libname}${release}${shared_ext}$major'
16268   shlibpath_var=LD_LIBRARY_PATH
16269   ;;
16270
16271 *)
16272   dynamic_linker=no
16273   ;;
16274 esac
16275 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16276 echo "${ECHO_T}$dynamic_linker" >&6; }
16277 test "$dynamic_linker" = no && can_build_shared=no
16278
16279 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16280   echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16283 fi
16284
16285 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16286 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16290 fi
16291
16292 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16293
16294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16295 if test "$GCC" = yes; then
16296   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16297 fi
16298
16299 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16300 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16301 hardcode_action_F77=
16302 if test -n "$hardcode_libdir_flag_spec_F77" || \
16303    test -n "$runpath_var_F77" || \
16304    test "X$hardcode_automatic_F77" = "Xyes" ; then
16305
16306   # We can hardcode non-existant directories.
16307   if test "$hardcode_direct_F77" != no &&
16308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16309      # have to relink, otherwise we might link with an installed library
16310      # when we should be linking with a yet-to-be-installed one
16311      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16312      test "$hardcode_minus_L_F77" != no; then
16313     # Linking always hardcodes the temporary library directory.
16314     hardcode_action_F77=relink
16315   else
16316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16317     hardcode_action_F77=immediate
16318   fi
16319 else
16320   # We cannot hardcode anything, or else we can only hardcode existing
16321   # directories.
16322   hardcode_action_F77=unsupported
16323 fi
16324 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16325 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16326
16327 if test "$hardcode_action_F77" = relink; then
16328   # Fast installation is not supported
16329   enable_fast_install=no
16330 elif test "$shlibpath_overrides_runpath" = yes ||
16331      test "$enable_shared" = no; then
16332   # Fast installation is not necessary
16333   enable_fast_install=needless
16334 fi
16335
16336
16337 # The else clause should only fire when bootstrapping the
16338 # libtool distribution, otherwise you forgot to ship ltmain.sh
16339 # with your package, and you will get complaints that there are
16340 # no rules to generate ltmain.sh.
16341 if test -f "$ltmain"; then
16342   # See if we are running on zsh, and set the options which allow our commands through
16343   # without removal of \ escapes.
16344   if test -n "${ZSH_VERSION+set}" ; then
16345     setopt NO_GLOB_SUBST
16346   fi
16347   # Now quote all the things that may contain metacharacters while being
16348   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16349   # variables and quote the copies for generation of the libtool script.
16350   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16351     SED SHELL STRIP \
16352     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16353     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16354     deplibs_check_method reload_flag reload_cmds need_locks \
16355     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16356     lt_cv_sys_global_symbol_to_c_name_address \
16357     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16358     old_postinstall_cmds old_postuninstall_cmds \
16359     compiler_F77 \
16360     CC_F77 \
16361     LD_F77 \
16362     lt_prog_compiler_wl_F77 \
16363     lt_prog_compiler_pic_F77 \
16364     lt_prog_compiler_static_F77 \
16365     lt_prog_compiler_no_builtin_flag_F77 \
16366     export_dynamic_flag_spec_F77 \
16367     thread_safe_flag_spec_F77 \
16368     whole_archive_flag_spec_F77 \
16369     enable_shared_with_static_runtimes_F77 \
16370     old_archive_cmds_F77 \
16371     old_archive_from_new_cmds_F77 \
16372     predep_objects_F77 \
16373     postdep_objects_F77 \
16374     predeps_F77 \
16375     postdeps_F77 \
16376     compiler_lib_search_path_F77 \
16377     compiler_lib_search_dirs_F77 \
16378     archive_cmds_F77 \
16379     archive_expsym_cmds_F77 \
16380     postinstall_cmds_F77 \
16381     postuninstall_cmds_F77 \
16382     old_archive_from_expsyms_cmds_F77 \
16383     allow_undefined_flag_F77 \
16384     no_undefined_flag_F77 \
16385     export_symbols_cmds_F77 \
16386     hardcode_libdir_flag_spec_F77 \
16387     hardcode_libdir_flag_spec_ld_F77 \
16388     hardcode_libdir_separator_F77 \
16389     hardcode_automatic_F77 \
16390     module_cmds_F77 \
16391     module_expsym_cmds_F77 \
16392     lt_cv_prog_compiler_c_o_F77 \
16393     fix_srcfile_path_F77 \
16394     exclude_expsyms_F77 \
16395     include_expsyms_F77; do
16396
16397     case $var in
16398     old_archive_cmds_F77 | \
16399     old_archive_from_new_cmds_F77 | \
16400     archive_cmds_F77 | \
16401     archive_expsym_cmds_F77 | \
16402     module_cmds_F77 | \
16403     module_expsym_cmds_F77 | \
16404     old_archive_from_expsyms_cmds_F77 | \
16405     export_symbols_cmds_F77 | \
16406     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16407     postinstall_cmds | postuninstall_cmds | \
16408     old_postinstall_cmds | old_postuninstall_cmds | \
16409     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16410       # Double-quote double-evaled strings.
16411       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16412       ;;
16413     *)
16414       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16415       ;;
16416     esac
16417   done
16418
16419   case $lt_echo in
16420   *'\$0 --fallback-echo"')
16421     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16422     ;;
16423   esac
16424
16425 cfgfile="$ofile"
16426
16427   cat <<__EOF__ >> "$cfgfile"
16428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16429
16430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16431
16432 # Shell to use when invoking shell scripts.
16433 SHELL=$lt_SHELL
16434
16435 # Whether or not to build shared libraries.
16436 build_libtool_libs=$enable_shared
16437
16438 # Whether or not to build static libraries.
16439 build_old_libs=$enable_static
16440
16441 # Whether or not to add -lc for building shared libraries.
16442 build_libtool_need_lc=$archive_cmds_need_lc_F77
16443
16444 # Whether or not to disallow shared libs when runtime libs are static
16445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16446
16447 # Whether or not to optimize for fast installation.
16448 fast_install=$enable_fast_install
16449
16450 # The host system.
16451 host_alias=$host_alias
16452 host=$host
16453 host_os=$host_os
16454
16455 # The build system.
16456 build_alias=$build_alias
16457 build=$build
16458 build_os=$build_os
16459
16460 # An echo program that does not interpret backslashes.
16461 echo=$lt_echo
16462
16463 # The archiver.
16464 AR=$lt_AR
16465 AR_FLAGS=$lt_AR_FLAGS
16466
16467 # A C compiler.
16468 LTCC=$lt_LTCC
16469
16470 # LTCC compiler flags.
16471 LTCFLAGS=$lt_LTCFLAGS
16472
16473 # A language-specific compiler.
16474 CC=$lt_compiler_F77
16475
16476 # Is the compiler the GNU C compiler?
16477 with_gcc=$GCC_F77
16478
16479 # An ERE matcher.
16480 EGREP=$lt_EGREP
16481
16482 # The linker used to build libraries.
16483 LD=$lt_LD_F77
16484
16485 # Whether we need hard or soft links.
16486 LN_S=$lt_LN_S
16487
16488 # A BSD-compatible nm program.
16489 NM=$lt_NM
16490
16491 # A symbol stripping program
16492 STRIP=$lt_STRIP
16493
16494 # Used to examine libraries when file_magic_cmd begins "file"
16495 MAGIC_CMD=$MAGIC_CMD
16496
16497 # Used on cygwin: DLL creation program.
16498 DLLTOOL="$DLLTOOL"
16499
16500 # Used on cygwin: object dumper.
16501 OBJDUMP="$OBJDUMP"
16502
16503 # Used on cygwin: assembler.
16504 AS="$AS"
16505
16506 # The name of the directory that contains temporary libtool files.
16507 objdir=$objdir
16508
16509 # How to create reloadable object files.
16510 reload_flag=$lt_reload_flag
16511 reload_cmds=$lt_reload_cmds
16512
16513 # How to pass a linker flag through the compiler.
16514 wl=$lt_lt_prog_compiler_wl_F77
16515
16516 # Object file suffix (normally "o").
16517 objext="$ac_objext"
16518
16519 # Old archive suffix (normally "a").
16520 libext="$libext"
16521
16522 # Shared library suffix (normally ".so").
16523 shrext_cmds='$shrext_cmds'
16524
16525 # Executable file suffix (normally "").
16526 exeext="$exeext"
16527
16528 # Additional compiler flags for building library objects.
16529 pic_flag=$lt_lt_prog_compiler_pic_F77
16530 pic_mode=$pic_mode
16531
16532 # What is the maximum length of a command?
16533 max_cmd_len=$lt_cv_sys_max_cmd_len
16534
16535 # Does compiler simultaneously support -c and -o options?
16536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16537
16538 # Must we lock files when doing compilation?
16539 need_locks=$lt_need_locks
16540
16541 # Do we need the lib prefix for modules?
16542 need_lib_prefix=$need_lib_prefix
16543
16544 # Do we need a version for libraries?
16545 need_version=$need_version
16546
16547 # Whether dlopen is supported.
16548 dlopen_support=$enable_dlopen
16549
16550 # Whether dlopen of programs is supported.
16551 dlopen_self=$enable_dlopen_self
16552
16553 # Whether dlopen of statically linked programs is supported.
16554 dlopen_self_static=$enable_dlopen_self_static
16555
16556 # Compiler flag to prevent dynamic linking.
16557 link_static_flag=$lt_lt_prog_compiler_static_F77
16558
16559 # Compiler flag to turn off builtin functions.
16560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16561
16562 # Compiler flag to allow reflexive dlopens.
16563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16564
16565 # Compiler flag to generate shared objects directly from archives.
16566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16567
16568 # Compiler flag to generate thread-safe objects.
16569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16570
16571 # Library versioning type.
16572 version_type=$version_type
16573
16574 # Format of library name prefix.
16575 libname_spec=$lt_libname_spec
16576
16577 # List of archive names.  First name is the real one, the rest are links.
16578 # The last name is the one that the linker finds with -lNAME.
16579 library_names_spec=$lt_library_names_spec
16580
16581 # The coded name of the library, if different from the real name.
16582 soname_spec=$lt_soname_spec
16583
16584 # Commands used to build and install an old-style archive.
16585 RANLIB=$lt_RANLIB
16586 old_archive_cmds=$lt_old_archive_cmds_F77
16587 old_postinstall_cmds=$lt_old_postinstall_cmds
16588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16589
16590 # Create an old-style archive from a shared archive.
16591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16592
16593 # Create a temporary old-style archive to link instead of a shared archive.
16594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16595
16596 # Commands used to build and install a shared archive.
16597 archive_cmds=$lt_archive_cmds_F77
16598 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16599 postinstall_cmds=$lt_postinstall_cmds
16600 postuninstall_cmds=$lt_postuninstall_cmds
16601
16602 # Commands used to build a loadable module (assumed same as above if empty)
16603 module_cmds=$lt_module_cmds_F77
16604 module_expsym_cmds=$lt_module_expsym_cmds_F77
16605
16606 # Commands to strip libraries.
16607 old_striplib=$lt_old_striplib
16608 striplib=$lt_striplib
16609
16610 # Dependencies to place before the objects being linked to create a
16611 # shared library.
16612 predep_objects=$lt_predep_objects_F77
16613
16614 # Dependencies to place after the objects being linked to create a
16615 # shared library.
16616 postdep_objects=$lt_postdep_objects_F77
16617
16618 # Dependencies to place before the objects being linked to create a
16619 # shared library.
16620 predeps=$lt_predeps_F77
16621
16622 # Dependencies to place after the objects being linked to create a
16623 # shared library.
16624 postdeps=$lt_postdeps_F77
16625
16626 # The directories searched by this compiler when creating a shared
16627 # library
16628 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16629
16630 # The library search path used internally by the compiler when linking
16631 # a shared library.
16632 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16633
16634 # Method to check whether dependent libraries are shared objects.
16635 deplibs_check_method=$lt_deplibs_check_method
16636
16637 # Command to use when deplibs_check_method == file_magic.
16638 file_magic_cmd=$lt_file_magic_cmd
16639
16640 # Flag that allows shared libraries with undefined symbols to be built.
16641 allow_undefined_flag=$lt_allow_undefined_flag_F77
16642
16643 # Flag that forces no undefined symbols.
16644 no_undefined_flag=$lt_no_undefined_flag_F77
16645
16646 # Commands used to finish a libtool library installation in a directory.
16647 finish_cmds=$lt_finish_cmds
16648
16649 # Same as above, but a single script fragment to be evaled but not shown.
16650 finish_eval=$lt_finish_eval
16651
16652 # Take the output of nm and produce a listing of raw symbols and C names.
16653 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16654
16655 # Transform the output of nm in a proper C declaration
16656 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16657
16658 # Transform the output of nm in a C name address pair
16659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16660
16661 # This is the shared library runtime path variable.
16662 runpath_var=$runpath_var
16663
16664 # This is the shared library path variable.
16665 shlibpath_var=$shlibpath_var
16666
16667 # Is shlibpath searched before the hard-coded library search path?
16668 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16669
16670 # How to hardcode a shared library path into an executable.
16671 hardcode_action=$hardcode_action_F77
16672
16673 # Whether we should hardcode library paths into libraries.
16674 hardcode_into_libs=$hardcode_into_libs
16675
16676 # Flag to hardcode \$libdir into a binary during linking.
16677 # This must work even if \$libdir does not exist.
16678 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16679
16680 # If ld is used when linking, flag to hardcode \$libdir into
16681 # a binary during linking. This must work even if \$libdir does
16682 # not exist.
16683 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16684
16685 # Whether we need a single -rpath flag with a separated argument.
16686 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16687
16688 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16689 # resulting binary.
16690 hardcode_direct=$hardcode_direct_F77
16691
16692 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16693 # resulting binary.
16694 hardcode_minus_L=$hardcode_minus_L_F77
16695
16696 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16697 # the resulting binary.
16698 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16699
16700 # Set to yes if building a shared library automatically hardcodes DIR into the library
16701 # and all subsequent libraries and executables linked against it.
16702 hardcode_automatic=$hardcode_automatic_F77
16703
16704 # Variables whose values should be saved in libtool wrapper scripts and
16705 # restored at relink time.
16706 variables_saved_for_relink="$variables_saved_for_relink"
16707
16708 # Whether libtool must link a program against all its dependency libraries.
16709 link_all_deplibs=$link_all_deplibs_F77
16710
16711 # Compile-time system search path for libraries
16712 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16713
16714 # Run-time system search path for libraries
16715 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16716
16717 # Fix the shell variable \$srcfile for the compiler.
16718 fix_srcfile_path=$lt_fix_srcfile_path
16719
16720 # Set to yes if exported symbols are required.
16721 always_export_symbols=$always_export_symbols_F77
16722
16723 # The commands to list exported symbols.
16724 export_symbols_cmds=$lt_export_symbols_cmds_F77
16725
16726 # The commands to extract the exported symbol list from a shared archive.
16727 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16728
16729 # Symbols that should not be listed in the preloaded symbols.
16730 exclude_expsyms=$lt_exclude_expsyms_F77
16731
16732 # Symbols that must always be exported.
16733 include_expsyms=$lt_include_expsyms_F77
16734
16735 # ### END LIBTOOL TAG CONFIG: $tagname
16736
16737 __EOF__
16738
16739
16740 else
16741   # If there is no Makefile yet, we rely on a make rule to execute
16742   # `config.status --recheck' to rerun these tests and create the
16743   # libtool script then.
16744   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16745   if test -f "$ltmain_in"; then
16746     test -f Makefile && make "$ltmain"
16747   fi
16748 fi
16749
16750
16751 ac_ext=c
16752 ac_cpp='$CPP $CPPFLAGS'
16753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16756
16757 CC="$lt_save_CC"
16758
16759         else
16760           tagname=""
16761         fi
16762         ;;
16763
16764       GCJ)
16765         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16766
16767
16768 # Source file extension for Java test sources.
16769 ac_ext=java
16770
16771 # Object file extension for compiled Java test sources.
16772 objext=o
16773 objext_GCJ=$objext
16774
16775 # Code to be used in simple compile tests
16776 lt_simple_compile_test_code="class foo {}"
16777
16778 # Code to be used in simple link tests
16779 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16780
16781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16782
16783 # If no C compiler was specified, use CC.
16784 LTCC=${LTCC-"$CC"}
16785
16786 # If no C compiler flags were specified, use CFLAGS.
16787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16788
16789 # Allow CC to be a program name with arguments.
16790 compiler=$CC
16791
16792
16793 # save warnings/boilerplate of simple test code
16794 ac_outfile=conftest.$ac_objext
16795 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16797 _lt_compiler_boilerplate=`cat conftest.err`
16798 $rm conftest*
16799
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16803 _lt_linker_boilerplate=`cat conftest.err`
16804 $rm -r conftest*
16805
16806
16807 # Allow CC to be a program name with arguments.
16808 lt_save_CC="$CC"
16809 CC=${GCJ-"gcj"}
16810 compiler=$CC
16811 compiler_GCJ=$CC
16812 for cc_temp in $compiler""; do
16813   case $cc_temp in
16814     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16815     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16816     \-*) ;;
16817     *) break;;
16818   esac
16819 done
16820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16821
16822
16823 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16824 archive_cmds_need_lc_GCJ=no
16825
16826 old_archive_cmds_GCJ=$old_archive_cmds
16827
16828
16829 lt_prog_compiler_no_builtin_flag_GCJ=
16830
16831 if test "$GCC" = yes; then
16832   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16833
16834
16835 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16836 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16837 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16838   echo $ECHO_N "(cached) $ECHO_C" >&6
16839 else
16840   lt_cv_prog_compiler_rtti_exceptions=no
16841   ac_outfile=conftest.$ac_objext
16842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16843    lt_compiler_flag="-fno-rtti -fno-exceptions"
16844    # Insert the option either (1) after the last *FLAGS variable, or
16845    # (2) before a word containing "conftest.", or (3) at the end.
16846    # Note that $ac_compile itself does not contain backslashes and begins
16847    # with a dollar sign (not a hyphen), so the echo should work correctly.
16848    # The option is referenced via a variable to avoid confusing sed.
16849    lt_compile=`echo "$ac_compile" | $SED \
16850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16852    -e 's:$: $lt_compiler_flag:'`
16853    (eval echo "\"\$as_me:16853: $lt_compile\"" >&5)
16854    (eval "$lt_compile" 2>conftest.err)
16855    ac_status=$?
16856    cat conftest.err >&5
16857    echo "$as_me:16857: \$? = $ac_status" >&5
16858    if (exit $ac_status) && test -s "$ac_outfile"; then
16859      # The compiler can only warn and ignore the option if not recognized
16860      # So say no if there are warnings other than the usual output.
16861      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16862      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16863      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16864        lt_cv_prog_compiler_rtti_exceptions=yes
16865      fi
16866    fi
16867    $rm conftest*
16868
16869 fi
16870 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16871 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16872
16873 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16874     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16875 else
16876     :
16877 fi
16878
16879 fi
16880
16881 lt_prog_compiler_wl_GCJ=
16882 lt_prog_compiler_pic_GCJ=
16883 lt_prog_compiler_static_GCJ=
16884
16885 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16886 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16887
16888   if test "$GCC" = yes; then
16889     lt_prog_compiler_wl_GCJ='-Wl,'
16890     lt_prog_compiler_static_GCJ='-static'
16891
16892     case $host_os in
16893       aix*)
16894       # All AIX code is PIC.
16895       if test "$host_cpu" = ia64; then
16896         # AIX 5 now supports IA64 processor
16897         lt_prog_compiler_static_GCJ='-Bstatic'
16898       fi
16899       ;;
16900
16901     amigaos*)
16902       # FIXME: we need at least 68020 code to build shared libraries, but
16903       # adding the `-m68020' flag to GCC prevents building anything better,
16904       # like `-m68040'.
16905       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16906       ;;
16907
16908     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16909       # PIC is the default for these OSes.
16910       ;;
16911
16912     mingw* | cygwin* | pw32* | os2*)
16913       # This hack is so that the source file can tell whether it is being
16914       # built for inclusion in a dll (and should export symbols for example).
16915       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16916       # (--disable-auto-import) libraries
16917
16918       ;;
16919
16920     darwin* | rhapsody*)
16921       # PIC is the default on this platform
16922       # Common symbols not allowed in MH_DYLIB files
16923       lt_prog_compiler_pic_GCJ='-fno-common'
16924       ;;
16925
16926     interix[3-9]*)
16927       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16928       # Instead, we relocate shared libraries at runtime.
16929       ;;
16930
16931     msdosdjgpp*)
16932       # Just because we use GCC doesn't mean we suddenly get shared libraries
16933       # on systems that don't support them.
16934       lt_prog_compiler_can_build_shared_GCJ=no
16935       enable_shared=no
16936       ;;
16937
16938     sysv4*MP*)
16939       if test -d /usr/nec; then
16940         lt_prog_compiler_pic_GCJ=-Kconform_pic
16941       fi
16942       ;;
16943
16944     hpux*)
16945       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16946       # not for PA HP-UX.
16947       case $host_cpu in
16948       hppa*64*|ia64*)
16949         # +Z the default
16950         ;;
16951       *)
16952         lt_prog_compiler_pic_GCJ='-fPIC'
16953         ;;
16954       esac
16955       ;;
16956
16957     *)
16958       lt_prog_compiler_pic_GCJ='-fPIC'
16959       ;;
16960     esac
16961   else
16962     # PORTME Check for flag to pass linker flags through the system compiler.
16963     case $host_os in
16964     aix*)
16965       lt_prog_compiler_wl_GCJ='-Wl,'
16966       if test "$host_cpu" = ia64; then
16967         # AIX 5 now supports IA64 processor
16968         lt_prog_compiler_static_GCJ='-Bstatic'
16969       else
16970         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16971       fi
16972       ;;
16973       darwin*)
16974         # PIC is the default on this platform
16975         # Common symbols not allowed in MH_DYLIB files
16976        case $cc_basename in
16977          xlc*)
16978          lt_prog_compiler_pic_GCJ='-qnocommon'
16979          lt_prog_compiler_wl_GCJ='-Wl,'
16980          ;;
16981        esac
16982        ;;
16983
16984     mingw* | cygwin* | pw32* | os2*)
16985       # This hack is so that the source file can tell whether it is being
16986       # built for inclusion in a dll (and should export symbols for example).
16987
16988       ;;
16989
16990     hpux9* | hpux10* | hpux11*)
16991       lt_prog_compiler_wl_GCJ='-Wl,'
16992       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16993       # not for PA HP-UX.
16994       case $host_cpu in
16995       hppa*64*|ia64*)
16996         # +Z the default
16997         ;;
16998       *)
16999         lt_prog_compiler_pic_GCJ='+Z'
17000         ;;
17001       esac
17002       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17003       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17004       ;;
17005
17006     irix5* | irix6* | nonstopux*)
17007       lt_prog_compiler_wl_GCJ='-Wl,'
17008       # PIC (with -KPIC) is the default.
17009       lt_prog_compiler_static_GCJ='-non_shared'
17010       ;;
17011
17012     newsos6)
17013       lt_prog_compiler_pic_GCJ='-KPIC'
17014       lt_prog_compiler_static_GCJ='-Bstatic'
17015       ;;
17016
17017     linux* | k*bsd*-gnu)
17018       case $cc_basename in
17019       icc* | ecc*)
17020         lt_prog_compiler_wl_GCJ='-Wl,'
17021         lt_prog_compiler_pic_GCJ='-KPIC'
17022         lt_prog_compiler_static_GCJ='-static'
17023         ;;
17024       pgcc* | pgf77* | pgf90* | pgf95*)
17025         # Portland Group compilers (*not* the Pentium gcc compiler,
17026         # which looks to be a dead project)
17027         lt_prog_compiler_wl_GCJ='-Wl,'
17028         lt_prog_compiler_pic_GCJ='-fpic'
17029         lt_prog_compiler_static_GCJ='-Bstatic'
17030         ;;
17031       ccc*)
17032         lt_prog_compiler_wl_GCJ='-Wl,'
17033         # All Alpha code is PIC.
17034         lt_prog_compiler_static_GCJ='-non_shared'
17035         ;;
17036       *)
17037         case `$CC -V 2>&1 | sed 5q` in
17038         *Sun\ C*)
17039           # Sun C 5.9
17040           lt_prog_compiler_pic_GCJ='-KPIC'
17041           lt_prog_compiler_static_GCJ='-Bstatic'
17042           lt_prog_compiler_wl_GCJ='-Wl,'
17043           ;;
17044         *Sun\ F*)
17045           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17046           lt_prog_compiler_pic_GCJ='-KPIC'
17047           lt_prog_compiler_static_GCJ='-Bstatic'
17048           lt_prog_compiler_wl_GCJ=''
17049           ;;
17050         esac
17051         ;;
17052       esac
17053       ;;
17054
17055     osf3* | osf4* | osf5*)
17056       lt_prog_compiler_wl_GCJ='-Wl,'
17057       # All OSF/1 code is PIC.
17058       lt_prog_compiler_static_GCJ='-non_shared'
17059       ;;
17060
17061     rdos*)
17062       lt_prog_compiler_static_GCJ='-non_shared'
17063       ;;
17064
17065     solaris*)
17066       lt_prog_compiler_pic_GCJ='-KPIC'
17067       lt_prog_compiler_static_GCJ='-Bstatic'
17068       case $cc_basename in
17069       f77* | f90* | f95*)
17070         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17071       *)
17072         lt_prog_compiler_wl_GCJ='-Wl,';;
17073       esac
17074       ;;
17075
17076     sunos4*)
17077       lt_prog_compiler_wl_GCJ='-Qoption ld '
17078       lt_prog_compiler_pic_GCJ='-PIC'
17079       lt_prog_compiler_static_GCJ='-Bstatic'
17080       ;;
17081
17082     sysv4 | sysv4.2uw2* | sysv4.3*)
17083       lt_prog_compiler_wl_GCJ='-Wl,'
17084       lt_prog_compiler_pic_GCJ='-KPIC'
17085       lt_prog_compiler_static_GCJ='-Bstatic'
17086       ;;
17087
17088     sysv4*MP*)
17089       if test -d /usr/nec ;then
17090         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17091         lt_prog_compiler_static_GCJ='-Bstatic'
17092       fi
17093       ;;
17094
17095     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17096       lt_prog_compiler_wl_GCJ='-Wl,'
17097       lt_prog_compiler_pic_GCJ='-KPIC'
17098       lt_prog_compiler_static_GCJ='-Bstatic'
17099       ;;
17100
17101     unicos*)
17102       lt_prog_compiler_wl_GCJ='-Wl,'
17103       lt_prog_compiler_can_build_shared_GCJ=no
17104       ;;
17105
17106     uts4*)
17107       lt_prog_compiler_pic_GCJ='-pic'
17108       lt_prog_compiler_static_GCJ='-Bstatic'
17109       ;;
17110
17111     *)
17112       lt_prog_compiler_can_build_shared_GCJ=no
17113       ;;
17114     esac
17115   fi
17116
17117 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17118 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17119
17120 #
17121 # Check to make sure the PIC flag actually works.
17122 #
17123 if test -n "$lt_prog_compiler_pic_GCJ"; then
17124
17125 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17126 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17127 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130   lt_cv_prog_compiler_pic_works_GCJ=no
17131   ac_outfile=conftest.$ac_objext
17132    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17133    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17134    # Insert the option either (1) after the last *FLAGS variable, or
17135    # (2) before a word containing "conftest.", or (3) at the end.
17136    # Note that $ac_compile itself does not contain backslashes and begins
17137    # with a dollar sign (not a hyphen), so the echo should work correctly.
17138    # The option is referenced via a variable to avoid confusing sed.
17139    lt_compile=`echo "$ac_compile" | $SED \
17140    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17141    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17142    -e 's:$: $lt_compiler_flag:'`
17143    (eval echo "\"\$as_me:17143: $lt_compile\"" >&5)
17144    (eval "$lt_compile" 2>conftest.err)
17145    ac_status=$?
17146    cat conftest.err >&5
17147    echo "$as_me:17147: \$? = $ac_status" >&5
17148    if (exit $ac_status) && test -s "$ac_outfile"; then
17149      # The compiler can only warn and ignore the option if not recognized
17150      # So say no if there are warnings other than the usual output.
17151      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17152      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17153      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17154        lt_cv_prog_compiler_pic_works_GCJ=yes
17155      fi
17156    fi
17157    $rm conftest*
17158
17159 fi
17160 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17161 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17162
17163 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17164     case $lt_prog_compiler_pic_GCJ in
17165      "" | " "*) ;;
17166      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17167      esac
17168 else
17169     lt_prog_compiler_pic_GCJ=
17170      lt_prog_compiler_can_build_shared_GCJ=no
17171 fi
17172
17173 fi
17174 case $host_os in
17175   # For platforms which do not support PIC, -DPIC is meaningless:
17176   *djgpp*)
17177     lt_prog_compiler_pic_GCJ=
17178     ;;
17179   *)
17180     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17181     ;;
17182 esac
17183
17184 #
17185 # Check to make sure the static flag actually works.
17186 #
17187 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17188 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17189 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17190 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   lt_cv_prog_compiler_static_works_GCJ=no
17194    save_LDFLAGS="$LDFLAGS"
17195    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17196    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17197    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17198      # The linker can only warn and ignore the option if not recognized
17199      # So say no if there are warnings
17200      if test -s conftest.err; then
17201        # Append any errors to the config.log.
17202        cat conftest.err 1>&5
17203        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17204        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17205        if diff conftest.exp conftest.er2 >/dev/null; then
17206          lt_cv_prog_compiler_static_works_GCJ=yes
17207        fi
17208      else
17209        lt_cv_prog_compiler_static_works_GCJ=yes
17210      fi
17211    fi
17212    $rm -r conftest*
17213    LDFLAGS="$save_LDFLAGS"
17214
17215 fi
17216 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17217 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17218
17219 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17220     :
17221 else
17222     lt_prog_compiler_static_GCJ=
17223 fi
17224
17225
17226 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17228 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   lt_cv_prog_compiler_c_o_GCJ=no
17232    $rm -r conftest 2>/dev/null
17233    mkdir conftest
17234    cd conftest
17235    mkdir out
17236    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17237
17238    lt_compiler_flag="-o out/conftest2.$ac_objext"
17239    # Insert the option either (1) after the last *FLAGS variable, or
17240    # (2) before a word containing "conftest.", or (3) at the end.
17241    # Note that $ac_compile itself does not contain backslashes and begins
17242    # with a dollar sign (not a hyphen), so the echo should work correctly.
17243    lt_compile=`echo "$ac_compile" | $SED \
17244    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17246    -e 's:$: $lt_compiler_flag:'`
17247    (eval echo "\"\$as_me:17247: $lt_compile\"" >&5)
17248    (eval "$lt_compile" 2>out/conftest.err)
17249    ac_status=$?
17250    cat out/conftest.err >&5
17251    echo "$as_me:17251: \$? = $ac_status" >&5
17252    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17253    then
17254      # The compiler can only warn and ignore the option if not recognized
17255      # So say no if there are warnings
17256      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17257      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17258      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17259        lt_cv_prog_compiler_c_o_GCJ=yes
17260      fi
17261    fi
17262    chmod u+w . 2>&5
17263    $rm conftest*
17264    # SGI C++ compiler will create directory out/ii_files/ for
17265    # template instantiation
17266    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17267    $rm out/* && rmdir out
17268    cd ..
17269    rmdir conftest
17270    $rm conftest*
17271
17272 fi
17273 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17274 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17275
17276
17277 hard_links="nottested"
17278 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17279   # do not overwrite the value of need_locks provided by the user
17280   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17281 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17282   hard_links=yes
17283   $rm conftest*
17284   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17285   touch conftest.a
17286   ln conftest.a conftest.b 2>&5 || hard_links=no
17287   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17288   { echo "$as_me:$LINENO: result: $hard_links" >&5
17289 echo "${ECHO_T}$hard_links" >&6; }
17290   if test "$hard_links" = no; then
17291     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17292 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17293     need_locks=warn
17294   fi
17295 else
17296   need_locks=no
17297 fi
17298
17299 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17300 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17301
17302   runpath_var=
17303   allow_undefined_flag_GCJ=
17304   enable_shared_with_static_runtimes_GCJ=no
17305   archive_cmds_GCJ=
17306   archive_expsym_cmds_GCJ=
17307   old_archive_From_new_cmds_GCJ=
17308   old_archive_from_expsyms_cmds_GCJ=
17309   export_dynamic_flag_spec_GCJ=
17310   whole_archive_flag_spec_GCJ=
17311   thread_safe_flag_spec_GCJ=
17312   hardcode_libdir_flag_spec_GCJ=
17313   hardcode_libdir_flag_spec_ld_GCJ=
17314   hardcode_libdir_separator_GCJ=
17315   hardcode_direct_GCJ=no
17316   hardcode_minus_L_GCJ=no
17317   hardcode_shlibpath_var_GCJ=unsupported
17318   link_all_deplibs_GCJ=unknown
17319   hardcode_automatic_GCJ=no
17320   module_cmds_GCJ=
17321   module_expsym_cmds_GCJ=
17322   always_export_symbols_GCJ=no
17323   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17324   # include_expsyms should be a list of space-separated symbols to be *always*
17325   # included in the symbol list
17326   include_expsyms_GCJ=
17327   # exclude_expsyms can be an extended regexp of symbols to exclude
17328   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17329   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17330   # as well as any symbol that contains `d'.
17331   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17332   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17333   # platforms (ab)use it in PIC code, but their linkers get confused if
17334   # the symbol is explicitly referenced.  Since portable code cannot
17335   # rely on this symbol name, it's probably fine to never include it in
17336   # preloaded symbol tables.
17337   # Exclude shared library initialization/finalization symbols.
17338   extract_expsyms_cmds=
17339   # Just being paranoid about ensuring that cc_basename is set.
17340   for cc_temp in $compiler""; do
17341   case $cc_temp in
17342     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17343     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17344     \-*) ;;
17345     *) break;;
17346   esac
17347 done
17348 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17349
17350   case $host_os in
17351   cygwin* | mingw* | pw32*)
17352     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17353     # When not using gcc, we currently assume that we are using
17354     # Microsoft Visual C++.
17355     if test "$GCC" != yes; then
17356       with_gnu_ld=no
17357     fi
17358     ;;
17359   interix*)
17360     # we just hope/assume this is gcc and not c89 (= MSVC++)
17361     with_gnu_ld=yes
17362     ;;
17363   openbsd*)
17364     with_gnu_ld=no
17365     ;;
17366   esac
17367
17368   ld_shlibs_GCJ=yes
17369   if test "$with_gnu_ld" = yes; then
17370     # If archive_cmds runs LD, not CC, wlarc should be empty
17371     wlarc='${wl}'
17372
17373     # Set some defaults for GNU ld with shared library support. These
17374     # are reset later if shared libraries are not supported. Putting them
17375     # here allows them to be overridden if necessary.
17376     runpath_var=LD_RUN_PATH
17377     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17378     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17379     # ancient GNU ld didn't support --whole-archive et. al.
17380     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17381         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17382       else
17383         whole_archive_flag_spec_GCJ=
17384     fi
17385     supports_anon_versioning=no
17386     case `$LD -v 2>/dev/null` in
17387       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17388       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17389       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17390       *\ 2.11.*) ;; # other 2.11 versions
17391       *) supports_anon_versioning=yes ;;
17392     esac
17393
17394     # See if GNU ld supports shared libraries.
17395     case $host_os in
17396     aix[3-9]*)
17397       # On AIX/PPC, the GNU linker is very broken
17398       if test "$host_cpu" != ia64; then
17399         ld_shlibs_GCJ=no
17400         cat <<EOF 1>&2
17401
17402 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17403 *** to be unable to reliably create shared libraries on AIX.
17404 *** Therefore, libtool is disabling shared libraries support.  If you
17405 *** really care for shared libraries, you may want to modify your PATH
17406 *** so that a non-GNU linker is found, and then restart.
17407
17408 EOF
17409       fi
17410       ;;
17411
17412     amigaos*)
17413       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)'
17414       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17415       hardcode_minus_L_GCJ=yes
17416
17417       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17418       # that the semantics of dynamic libraries on AmigaOS, at least up
17419       # to version 4, is to share data among multiple programs linked
17420       # with the same dynamic library.  Since this doesn't match the
17421       # behavior of shared libraries on other platforms, we can't use
17422       # them.
17423       ld_shlibs_GCJ=no
17424       ;;
17425
17426     beos*)
17427       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17428         allow_undefined_flag_GCJ=unsupported
17429         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17430         # support --undefined.  This deserves some investigation.  FIXME
17431         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17432       else
17433         ld_shlibs_GCJ=no
17434       fi
17435       ;;
17436
17437     cygwin* | mingw* | pw32*)
17438       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17439       # as there is no search path for DLLs.
17440       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17441       allow_undefined_flag_GCJ=unsupported
17442       always_export_symbols_GCJ=no
17443       enable_shared_with_static_runtimes_GCJ=yes
17444       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17445
17446       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17447         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17448         # If the export-symbols file already is a .def file (1st line
17449         # is EXPORTS), use it as is; otherwise, prepend...
17450         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17451           cp $export_symbols $output_objdir/$soname.def;
17452         else
17453           echo EXPORTS > $output_objdir/$soname.def;
17454           cat $export_symbols >> $output_objdir/$soname.def;
17455         fi~
17456         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17457       else
17458         ld_shlibs_GCJ=no
17459       fi
17460       ;;
17461
17462     interix[3-9]*)
17463       hardcode_direct_GCJ=no
17464       hardcode_shlibpath_var_GCJ=no
17465       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17466       export_dynamic_flag_spec_GCJ='${wl}-E'
17467       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17468       # Instead, shared libraries are loaded at an image base (0x10000000 by
17469       # default) and relocated if they conflict, which is a slow very memory
17470       # consuming and fragmenting process.  To avoid this, we pick a random,
17471       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17472       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17473       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'
17474       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'
17475       ;;
17476
17477     gnu* | linux* | k*bsd*-gnu)
17478       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17479         tmp_addflag=
17480         case $cc_basename,$host_cpu in
17481         pgcc*)                          # Portland Group C compiler
17482           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'
17483           tmp_addflag=' $pic_flag'
17484           ;;
17485         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17486           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'
17487           tmp_addflag=' $pic_flag -Mnomain' ;;
17488         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17489           tmp_addflag=' -i_dynamic' ;;
17490         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17491           tmp_addflag=' -i_dynamic -nofor_main' ;;
17492         ifc* | ifort*)                  # Intel Fortran compiler
17493           tmp_addflag=' -nofor_main' ;;
17494         esac
17495         case `$CC -V 2>&1 | sed 5q` in
17496         *Sun\ C*)                       # Sun C 5.9
17497           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'
17498           tmp_sharedflag='-G' ;;
17499         *Sun\ F*)                       # Sun Fortran 8.3
17500           tmp_sharedflag='-G' ;;
17501         *)
17502           tmp_sharedflag='-shared' ;;
17503         esac
17504         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17505
17506         if test $supports_anon_versioning = yes; then
17507           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17508   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17509   $echo "local: *; };" >> $output_objdir/$libname.ver~
17510           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17511         fi
17512         link_all_deplibs_GCJ=no
17513       else
17514         ld_shlibs_GCJ=no
17515       fi
17516       ;;
17517
17518     netbsd* | netbsdelf*-gnu)
17519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17520         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17521         wlarc=
17522       else
17523         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17524         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17525       fi
17526       ;;
17527
17528     solaris*)
17529       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17530         ld_shlibs_GCJ=no
17531         cat <<EOF 1>&2
17532
17533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17534 *** create shared libraries on Solaris systems.  Therefore, libtool
17535 *** is disabling shared libraries support.  We urge you to upgrade GNU
17536 *** binutils to release 2.9.1 or newer.  Another option is to modify
17537 *** your PATH or compiler configuration so that the native linker is
17538 *** used, and then restart.
17539
17540 EOF
17541       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17542         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17543         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17544       else
17545         ld_shlibs_GCJ=no
17546       fi
17547       ;;
17548
17549     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17550       case `$LD -v 2>&1` in
17551         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17552         ld_shlibs_GCJ=no
17553         cat <<_LT_EOF 1>&2
17554
17555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17556 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17557 *** is disabling shared libraries support.  We urge you to upgrade GNU
17558 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17559 *** your PATH or compiler configuration so that the native linker is
17560 *** used, and then restart.
17561
17562 _LT_EOF
17563         ;;
17564         *)
17565           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17566             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17567             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17568             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17569           else
17570             ld_shlibs_GCJ=no
17571           fi
17572         ;;
17573       esac
17574       ;;
17575
17576     sunos4*)
17577       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17578       wlarc=
17579       hardcode_direct_GCJ=yes
17580       hardcode_shlibpath_var_GCJ=no
17581       ;;
17582
17583     *)
17584       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17586         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17587       else
17588         ld_shlibs_GCJ=no
17589       fi
17590       ;;
17591     esac
17592
17593     if test "$ld_shlibs_GCJ" = no; then
17594       runpath_var=
17595       hardcode_libdir_flag_spec_GCJ=
17596       export_dynamic_flag_spec_GCJ=
17597       whole_archive_flag_spec_GCJ=
17598     fi
17599   else
17600     # PORTME fill in a description of your system's linker (not GNU ld)
17601     case $host_os in
17602     aix3*)
17603       allow_undefined_flag_GCJ=unsupported
17604       always_export_symbols_GCJ=yes
17605       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'
17606       # Note: this linker hardcodes the directories in LIBPATH if there
17607       # are no directories specified by -L.
17608       hardcode_minus_L_GCJ=yes
17609       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17610         # Neither direct hardcoding nor static linking is supported with a
17611         # broken collect2.
17612         hardcode_direct_GCJ=unsupported
17613       fi
17614       ;;
17615
17616     aix[4-9]*)
17617       if test "$host_cpu" = ia64; then
17618         # On IA64, the linker does run time linking by default, so we don't
17619         # have to do anything special.
17620         aix_use_runtimelinking=no
17621         exp_sym_flag='-Bexport'
17622         no_entry_flag=""
17623       else
17624         # If we're using GNU nm, then we don't want the "-C" option.
17625         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17626         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17627           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'
17628         else
17629           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'
17630         fi
17631         aix_use_runtimelinking=no
17632
17633         # Test if we are trying to use run time linking or normal
17634         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17635         # need to do runtime linking.
17636         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17637           for ld_flag in $LDFLAGS; do
17638           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17639             aix_use_runtimelinking=yes
17640             break
17641           fi
17642           done
17643           ;;
17644         esac
17645
17646         exp_sym_flag='-bexport'
17647         no_entry_flag='-bnoentry'
17648       fi
17649
17650       # When large executables or shared objects are built, AIX ld can
17651       # have problems creating the table of contents.  If linking a library
17652       # or program results in "error TOC overflow" add -mminimal-toc to
17653       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17654       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17655
17656       archive_cmds_GCJ=''
17657       hardcode_direct_GCJ=yes
17658       hardcode_libdir_separator_GCJ=':'
17659       link_all_deplibs_GCJ=yes
17660
17661       if test "$GCC" = yes; then
17662         case $host_os in aix4.[012]|aix4.[012].*)
17663         # We only want to do this on AIX 4.2 and lower, the check
17664         # below for broken collect2 doesn't work under 4.3+
17665           collect2name=`${CC} -print-prog-name=collect2`
17666           if test -f "$collect2name" && \
17667            strings "$collect2name" | grep resolve_lib_name >/dev/null
17668           then
17669           # We have reworked collect2
17670           :
17671           else
17672           # We have old collect2
17673           hardcode_direct_GCJ=unsupported
17674           # It fails to find uninstalled libraries when the uninstalled
17675           # path is not listed in the libpath.  Setting hardcode_minus_L
17676           # to unsupported forces relinking
17677           hardcode_minus_L_GCJ=yes
17678           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17679           hardcode_libdir_separator_GCJ=
17680           fi
17681           ;;
17682         esac
17683         shared_flag='-shared'
17684         if test "$aix_use_runtimelinking" = yes; then
17685           shared_flag="$shared_flag "'${wl}-G'
17686         fi
17687       else
17688         # not using gcc
17689         if test "$host_cpu" = ia64; then
17690         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17691         # chokes on -Wl,-G. The following line is correct:
17692           shared_flag='-G'
17693         else
17694           if test "$aix_use_runtimelinking" = yes; then
17695             shared_flag='${wl}-G'
17696           else
17697             shared_flag='${wl}-bM:SRE'
17698           fi
17699         fi
17700       fi
17701
17702       # It seems that -bexpall does not export symbols beginning with
17703       # underscore (_), so it is better to generate a list of symbols to export.
17704       always_export_symbols_GCJ=yes
17705       if test "$aix_use_runtimelinking" = yes; then
17706         # Warning - without using the other runtime loading flags (-brtl),
17707         # -berok will link without error, but may produce a broken library.
17708         allow_undefined_flag_GCJ='-berok'
17709        # Determine the default libpath from the value encoded in an empty executable.
17710        cat >conftest.$ac_ext <<_ACEOF
17711 /* confdefs.h.  */
17712 _ACEOF
17713 cat confdefs.h >>conftest.$ac_ext
17714 cat >>conftest.$ac_ext <<_ACEOF
17715 /* end confdefs.h.  */
17716
17717 int
17718 main ()
17719 {
17720
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext conftest$ac_exeext
17726 if { (ac_try="$ac_link"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_link") 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } && {
17739          test -z "$ac_c_werror_flag" ||
17740          test ! -s conftest.err
17741        } && test -s conftest$ac_exeext &&
17742        $as_test_x conftest$ac_exeext; then
17743
17744 lt_aix_libpath_sed='
17745     /Import File Strings/,/^$/ {
17746         /^0/ {
17747             s/^0  *\(.*\)$/\1/
17748             p
17749         }
17750     }'
17751 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17752 # Check for a 64-bit object if we didn't find anything.
17753 if test -z "$aix_libpath"; then
17754   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17755 fi
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760
17761 fi
17762
17763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17764       conftest$ac_exeext conftest.$ac_ext
17765 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17766
17767        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17768         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"
17769        else
17770         if test "$host_cpu" = ia64; then
17771           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17772           allow_undefined_flag_GCJ="-z nodefs"
17773           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"
17774         else
17775          # Determine the default libpath from the value encoded in an empty executable.
17776          cat >conftest.$ac_ext <<_ACEOF
17777 /* confdefs.h.  */
17778 _ACEOF
17779 cat confdefs.h >>conftest.$ac_ext
17780 cat >>conftest.$ac_ext <<_ACEOF
17781 /* end confdefs.h.  */
17782
17783 int
17784 main ()
17785 {
17786
17787   ;
17788   return 0;
17789 }
17790 _ACEOF
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_link") 2>conftest.er1
17799   ac_status=$?
17800   grep -v '^ *+' conftest.er1 >conftest.err
17801   rm -f conftest.er1
17802   cat conftest.err >&5
17803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804   (exit $ac_status); } && {
17805          test -z "$ac_c_werror_flag" ||
17806          test ! -s conftest.err
17807        } && test -s conftest$ac_exeext &&
17808        $as_test_x conftest$ac_exeext; then
17809
17810 lt_aix_libpath_sed='
17811     /Import File Strings/,/^$/ {
17812         /^0/ {
17813             s/^0  *\(.*\)$/\1/
17814             p
17815         }
17816     }'
17817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17818 # Check for a 64-bit object if we didn't find anything.
17819 if test -z "$aix_libpath"; then
17820   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17821 fi
17822 else
17823   echo "$as_me: failed program was:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17825
17826
17827 fi
17828
17829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830       conftest$ac_exeext conftest.$ac_ext
17831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17832
17833          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17834           # Warning - without using the other run time loading flags,
17835           # -berok will link without error, but may produce a broken library.
17836           no_undefined_flag_GCJ=' ${wl}-bernotok'
17837           allow_undefined_flag_GCJ=' ${wl}-berok'
17838           # Exported symbols can be pulled into shared objects from archives
17839           whole_archive_flag_spec_GCJ='$convenience'
17840           archive_cmds_need_lc_GCJ=yes
17841           # This is similar to how AIX traditionally builds its shared libraries.
17842           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'
17843         fi
17844       fi
17845       ;;
17846
17847     amigaos*)
17848       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)'
17849       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17850       hardcode_minus_L_GCJ=yes
17851       # see comment about different semantics on the GNU ld section
17852       ld_shlibs_GCJ=no
17853       ;;
17854
17855     bsdi[45]*)
17856       export_dynamic_flag_spec_GCJ=-rdynamic
17857       ;;
17858
17859     cygwin* | mingw* | pw32*)
17860       # When not using gcc, we currently assume that we are using
17861       # Microsoft Visual C++.
17862       # hardcode_libdir_flag_spec is actually meaningless, as there is
17863       # no search path for DLLs.
17864       hardcode_libdir_flag_spec_GCJ=' '
17865       allow_undefined_flag_GCJ=unsupported
17866       # Tell ltmain to make .lib files, not .a files.
17867       libext=lib
17868       # Tell ltmain to make .dll files, not .so files.
17869       shrext_cmds=".dll"
17870       # FIXME: Setting linknames here is a bad hack.
17871       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17872       # The linker will automatically build a .lib file if we build a DLL.
17873       old_archive_From_new_cmds_GCJ='true'
17874       # FIXME: Should let the user specify the lib program.
17875       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17876       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17877       enable_shared_with_static_runtimes_GCJ=yes
17878       ;;
17879
17880     darwin* | rhapsody*)
17881       case $host_os in
17882         rhapsody* | darwin1.[012])
17883          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17884          ;;
17885        *) # Darwin 1.3 on
17886          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17887            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17888          else
17889            case ${MACOSX_DEPLOYMENT_TARGET} in
17890              10.[012])
17891                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17892                ;;
17893              10.*)
17894                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17895                ;;
17896            esac
17897          fi
17898          ;;
17899       esac
17900       archive_cmds_need_lc_GCJ=no
17901       hardcode_direct_GCJ=no
17902       hardcode_automatic_GCJ=yes
17903       hardcode_shlibpath_var_GCJ=unsupported
17904       whole_archive_flag_spec_GCJ=''
17905       link_all_deplibs_GCJ=yes
17906     if test "$GCC" = yes ; then
17907         output_verbose_link_cmd='echo'
17908         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17909         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17910         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17911         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17912     else
17913       case $cc_basename in
17914         xlc*)
17915          output_verbose_link_cmd='echo'
17916          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17917          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17918           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17919          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}'
17920           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}'
17921           ;;
17922        *)
17923          ld_shlibs_GCJ=no
17924           ;;
17925       esac
17926     fi
17927       ;;
17928
17929     dgux*)
17930       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17931       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17932       hardcode_shlibpath_var_GCJ=no
17933       ;;
17934
17935     freebsd1*)
17936       ld_shlibs_GCJ=no
17937       ;;
17938
17939     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17940     # support.  Future versions do this automatically, but an explicit c++rt0.o
17941     # does not break anything, and helps significantly (at the cost of a little
17942     # extra space).
17943     freebsd2.2*)
17944       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17945       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17946       hardcode_direct_GCJ=yes
17947       hardcode_shlibpath_var_GCJ=no
17948       ;;
17949
17950     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17951     freebsd2*)
17952       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17953       hardcode_direct_GCJ=yes
17954       hardcode_minus_L_GCJ=yes
17955       hardcode_shlibpath_var_GCJ=no
17956       ;;
17957
17958     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17959     freebsd* | dragonfly*)
17960       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17961       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17962       hardcode_direct_GCJ=yes
17963       hardcode_shlibpath_var_GCJ=no
17964       ;;
17965
17966     hpux9*)
17967       if test "$GCC" = yes; then
17968         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'
17969       else
17970         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'
17971       fi
17972       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17973       hardcode_libdir_separator_GCJ=:
17974       hardcode_direct_GCJ=yes
17975
17976       # hardcode_minus_L: Not really in the search PATH,
17977       # but as the default location of the library.
17978       hardcode_minus_L_GCJ=yes
17979       export_dynamic_flag_spec_GCJ='${wl}-E'
17980       ;;
17981
17982     hpux10*)
17983       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17984         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17985       else
17986         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17987       fi
17988       if test "$with_gnu_ld" = no; then
17989         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17990         hardcode_libdir_separator_GCJ=:
17991
17992         hardcode_direct_GCJ=yes
17993         export_dynamic_flag_spec_GCJ='${wl}-E'
17994
17995         # hardcode_minus_L: Not really in the search PATH,
17996         # but as the default location of the library.
17997         hardcode_minus_L_GCJ=yes
17998       fi
17999       ;;
18000
18001     hpux11*)
18002       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18003         case $host_cpu in
18004         hppa*64*)
18005           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18006           ;;
18007         ia64*)
18008           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18009           ;;
18010         *)
18011           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18012           ;;
18013         esac
18014       else
18015         case $host_cpu in
18016         hppa*64*)
18017           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18018           ;;
18019         ia64*)
18020           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18021           ;;
18022         *)
18023           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18024           ;;
18025         esac
18026       fi
18027       if test "$with_gnu_ld" = no; then
18028         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18029         hardcode_libdir_separator_GCJ=:
18030
18031         case $host_cpu in
18032         hppa*64*|ia64*)
18033           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18034           hardcode_direct_GCJ=no
18035           hardcode_shlibpath_var_GCJ=no
18036           ;;
18037         *)
18038           hardcode_direct_GCJ=yes
18039           export_dynamic_flag_spec_GCJ='${wl}-E'
18040
18041           # hardcode_minus_L: Not really in the search PATH,
18042           # but as the default location of the library.
18043           hardcode_minus_L_GCJ=yes
18044           ;;
18045         esac
18046       fi
18047       ;;
18048
18049     irix5* | irix6* | nonstopux*)
18050       if test "$GCC" = yes; then
18051         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'
18052       else
18053         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'
18054         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18055       fi
18056       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18057       hardcode_libdir_separator_GCJ=:
18058       link_all_deplibs_GCJ=yes
18059       ;;
18060
18061     netbsd* | netbsdelf*-gnu)
18062       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18063         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18064       else
18065         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18066       fi
18067       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18068       hardcode_direct_GCJ=yes
18069       hardcode_shlibpath_var_GCJ=no
18070       ;;
18071
18072     newsos6)
18073       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18074       hardcode_direct_GCJ=yes
18075       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18076       hardcode_libdir_separator_GCJ=:
18077       hardcode_shlibpath_var_GCJ=no
18078       ;;
18079
18080     openbsd*)
18081       if test -f /usr/libexec/ld.so; then
18082         hardcode_direct_GCJ=yes
18083         hardcode_shlibpath_var_GCJ=no
18084         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18085           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18086           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18087           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18088           export_dynamic_flag_spec_GCJ='${wl}-E'
18089         else
18090           case $host_os in
18091            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18092              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18093              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18094              ;;
18095            *)
18096              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18097              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18098              ;;
18099           esac
18100         fi
18101       else
18102         ld_shlibs_GCJ=no
18103       fi
18104       ;;
18105
18106     os2*)
18107       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18108       hardcode_minus_L_GCJ=yes
18109       allow_undefined_flag_GCJ=unsupported
18110       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'
18111       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18112       ;;
18113
18114     osf3*)
18115       if test "$GCC" = yes; then
18116         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18117         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'
18118       else
18119         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18120         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'
18121       fi
18122       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18123       hardcode_libdir_separator_GCJ=:
18124       ;;
18125
18126     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18127       if test "$GCC" = yes; then
18128         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18129         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'
18130         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18131       else
18132         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18133         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'
18134         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~
18135         $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'
18136
18137         # Both c and cxx compiler support -rpath directly
18138         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18139       fi
18140       hardcode_libdir_separator_GCJ=:
18141       ;;
18142
18143     solaris*)
18144       no_undefined_flag_GCJ=' -z text'
18145       if test "$GCC" = yes; then
18146         wlarc='${wl}'
18147         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18149           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18150       else
18151         wlarc=''
18152         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18154         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18155       fi
18156       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18157       hardcode_shlibpath_var_GCJ=no
18158       case $host_os in
18159       solaris2.[0-5] | solaris2.[0-5].*) ;;
18160       *)
18161         # The compiler driver will combine and reorder linker options,
18162         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18163         # but is careful enough not to reorder.
18164         # Supported since Solaris 2.6 (maybe 2.5.1?)
18165         if test "$GCC" = yes; then
18166           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18167         else
18168           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18169         fi
18170         ;;
18171       esac
18172       link_all_deplibs_GCJ=yes
18173       ;;
18174
18175     sunos4*)
18176       if test "x$host_vendor" = xsequent; then
18177         # Use $CC to link under sequent, because it throws in some extra .o
18178         # files that make .init and .fini sections work.
18179         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18180       else
18181         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18182       fi
18183       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18184       hardcode_direct_GCJ=yes
18185       hardcode_minus_L_GCJ=yes
18186       hardcode_shlibpath_var_GCJ=no
18187       ;;
18188
18189     sysv4)
18190       case $host_vendor in
18191         sni)
18192           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18193           hardcode_direct_GCJ=yes # is this really true???
18194         ;;
18195         siemens)
18196           ## LD is ld it makes a PLAMLIB
18197           ## CC just makes a GrossModule.
18198           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18199           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18200           hardcode_direct_GCJ=no
18201         ;;
18202         motorola)
18203           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18205         ;;
18206       esac
18207       runpath_var='LD_RUN_PATH'
18208       hardcode_shlibpath_var_GCJ=no
18209       ;;
18210
18211     sysv4.3*)
18212       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18213       hardcode_shlibpath_var_GCJ=no
18214       export_dynamic_flag_spec_GCJ='-Bexport'
18215       ;;
18216
18217     sysv4*MP*)
18218       if test -d /usr/nec; then
18219         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220         hardcode_shlibpath_var_GCJ=no
18221         runpath_var=LD_RUN_PATH
18222         hardcode_runpath_var=yes
18223         ld_shlibs_GCJ=yes
18224       fi
18225       ;;
18226
18227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18228       no_undefined_flag_GCJ='${wl}-z,text'
18229       archive_cmds_need_lc_GCJ=no
18230       hardcode_shlibpath_var_GCJ=no
18231       runpath_var='LD_RUN_PATH'
18232
18233       if test "$GCC" = yes; then
18234         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18235         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18236       else
18237         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18238         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18239       fi
18240       ;;
18241
18242     sysv5* | sco3.2v5* | sco5v6*)
18243       # Note: We can NOT use -z defs as we might desire, because we do not
18244       # link with -lc, and that would cause any symbols used from libc to
18245       # always be unresolved, which means just about no library would
18246       # ever link correctly.  If we're not using GNU ld we use -z text
18247       # though, which does catch some bad symbols but isn't as heavy-handed
18248       # as -z defs.
18249       no_undefined_flag_GCJ='${wl}-z,text'
18250       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18251       archive_cmds_need_lc_GCJ=no
18252       hardcode_shlibpath_var_GCJ=no
18253       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18254       hardcode_libdir_separator_GCJ=':'
18255       link_all_deplibs_GCJ=yes
18256       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18257       runpath_var='LD_RUN_PATH'
18258
18259       if test "$GCC" = yes; then
18260         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18261         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18262       else
18263         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18264         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18265       fi
18266       ;;
18267
18268     uts4*)
18269       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18270       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18271       hardcode_shlibpath_var_GCJ=no
18272       ;;
18273
18274     *)
18275       ld_shlibs_GCJ=no
18276       ;;
18277     esac
18278   fi
18279
18280 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18281 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18282 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18283
18284 #
18285 # Do we need to explicitly link libc?
18286 #
18287 case "x$archive_cmds_need_lc_GCJ" in
18288 x|xyes)
18289   # Assume -lc should be added
18290   archive_cmds_need_lc_GCJ=yes
18291
18292   if test "$enable_shared" = yes && test "$GCC" = yes; then
18293     case $archive_cmds_GCJ in
18294     *'~'*)
18295       # FIXME: we may have to deal with multi-command sequences.
18296       ;;
18297     '$CC '*)
18298       # Test whether the compiler implicitly links with -lc since on some
18299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18300       # to ld, don't add -lc before -lgcc.
18301       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18303       $rm conftest*
18304       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18305
18306       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307   (eval $ac_compile) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } 2>conftest.err; then
18311         soname=conftest
18312         lib=conftest
18313         libobjs=conftest.$ac_objext
18314         deplibs=
18315         wl=$lt_prog_compiler_wl_GCJ
18316         pic_flag=$lt_prog_compiler_pic_GCJ
18317         compiler_flags=-v
18318         linker_flags=-v
18319         verstring=
18320         output_objdir=.
18321         libname=conftest
18322         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18323         allow_undefined_flag_GCJ=
18324         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18325   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18326   ac_status=$?
18327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328   (exit $ac_status); }
18329         then
18330           archive_cmds_need_lc_GCJ=no
18331         else
18332           archive_cmds_need_lc_GCJ=yes
18333         fi
18334         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18335       else
18336         cat conftest.err 1>&5
18337       fi
18338       $rm conftest*
18339       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18340 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18341       ;;
18342     esac
18343   fi
18344   ;;
18345 esac
18346
18347 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18348 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18349 library_names_spec=
18350 libname_spec='lib$name'
18351 soname_spec=
18352 shrext_cmds=".so"
18353 postinstall_cmds=
18354 postuninstall_cmds=
18355 finish_cmds=
18356 finish_eval=
18357 shlibpath_var=
18358 shlibpath_overrides_runpath=unknown
18359 version_type=none
18360 dynamic_linker="$host_os ld.so"
18361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18362
18363 need_lib_prefix=unknown
18364 hardcode_into_libs=no
18365
18366 # when you set need_version to no, make sure it does not cause -set_version
18367 # flags to be left without arguments
18368 need_version=unknown
18369
18370 case $host_os in
18371 aix3*)
18372   version_type=linux
18373   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18374   shlibpath_var=LIBPATH
18375
18376   # AIX 3 has no versioning support, so we append a major version to the name.
18377   soname_spec='${libname}${release}${shared_ext}$major'
18378   ;;
18379
18380 aix[4-9]*)
18381   version_type=linux
18382   need_lib_prefix=no
18383   need_version=no
18384   hardcode_into_libs=yes
18385   if test "$host_cpu" = ia64; then
18386     # AIX 5 supports IA64
18387     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18388     shlibpath_var=LD_LIBRARY_PATH
18389   else
18390     # With GCC up to 2.95.x, collect2 would create an import file
18391     # for dependence libraries.  The import file would start with
18392     # the line `#! .'.  This would cause the generated library to
18393     # depend on `.', always an invalid library.  This was fixed in
18394     # development snapshots of GCC prior to 3.0.
18395     case $host_os in
18396       aix4 | aix4.[01] | aix4.[01].*)
18397       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18398            echo ' yes '
18399            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18400         :
18401       else
18402         can_build_shared=no
18403       fi
18404       ;;
18405     esac
18406     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18407     # soname into executable. Probably we can add versioning support to
18408     # collect2, so additional links can be useful in future.
18409     if test "$aix_use_runtimelinking" = yes; then
18410       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18411       # instead of lib<name>.a to let people know that these are not
18412       # typical AIX shared libraries.
18413       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18414     else
18415       # We preserve .a as extension for shared libraries through AIX4.2
18416       # and later when we are not doing run time linking.
18417       library_names_spec='${libname}${release}.a $libname.a'
18418       soname_spec='${libname}${release}${shared_ext}$major'
18419     fi
18420     shlibpath_var=LIBPATH
18421   fi
18422   ;;
18423
18424 amigaos*)
18425   library_names_spec='$libname.ixlibrary $libname.a'
18426   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18427   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'
18428   ;;
18429
18430 beos*)
18431   library_names_spec='${libname}${shared_ext}'
18432   dynamic_linker="$host_os ld.so"
18433   shlibpath_var=LIBRARY_PATH
18434   ;;
18435
18436 bsdi[45]*)
18437   version_type=linux
18438   need_version=no
18439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440   soname_spec='${libname}${release}${shared_ext}$major'
18441   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18442   shlibpath_var=LD_LIBRARY_PATH
18443   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18444   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18445   # the default ld.so.conf also contains /usr/contrib/lib and
18446   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18447   # libtool to hard-code these into programs
18448   ;;
18449
18450 cygwin* | mingw* | pw32*)
18451   version_type=windows
18452   shrext_cmds=".dll"
18453   need_version=no
18454   need_lib_prefix=no
18455
18456   case $GCC,$host_os in
18457   yes,cygwin* | yes,mingw* | yes,pw32*)
18458     library_names_spec='$libname.dll.a'
18459     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18460     postinstall_cmds='base_file=`basename \${file}`~
18461       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18462       dldir=$destdir/`dirname \$dlpath`~
18463       test -d \$dldir || mkdir -p \$dldir~
18464       $install_prog $dir/$dlname \$dldir/$dlname~
18465       chmod a+x \$dldir/$dlname'
18466     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18467       dlpath=$dir/\$dldll~
18468        $rm \$dlpath'
18469     shlibpath_overrides_runpath=yes
18470
18471     case $host_os in
18472     cygwin*)
18473       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18474       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18475       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18476       ;;
18477     mingw*)
18478       # MinGW DLLs use traditional 'lib' prefix
18479       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18480       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18481       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18482         # It is most probably a Windows format PATH printed by
18483         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18484         # path with ; separators, and with drive letters. We can handle the
18485         # drive letters (cygwin fileutils understands them), so leave them,
18486         # especially as we might pass files found there to a mingw objdump,
18487         # which wouldn't understand a cygwinified path. Ahh.
18488         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18489       else
18490         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18491       fi
18492       ;;
18493     pw32*)
18494       # pw32 DLLs use 'pw' prefix rather than 'lib'
18495       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18496       ;;
18497     esac
18498     ;;
18499
18500   *)
18501     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18502     ;;
18503   esac
18504   dynamic_linker='Win32 ld.exe'
18505   # FIXME: first we should search . and the directory the executable is in
18506   shlibpath_var=PATH
18507   ;;
18508
18509 darwin* | rhapsody*)
18510   dynamic_linker="$host_os dyld"
18511   version_type=darwin
18512   need_lib_prefix=no
18513   need_version=no
18514   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18515   soname_spec='${libname}${release}${major}$shared_ext'
18516   shlibpath_overrides_runpath=yes
18517   shlibpath_var=DYLD_LIBRARY_PATH
18518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18519
18520   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18521   ;;
18522
18523 dgux*)
18524   version_type=linux
18525   need_lib_prefix=no
18526   need_version=no
18527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18528   soname_spec='${libname}${release}${shared_ext}$major'
18529   shlibpath_var=LD_LIBRARY_PATH
18530   ;;
18531
18532 freebsd1*)
18533   dynamic_linker=no
18534   ;;
18535
18536 freebsd* | dragonfly*)
18537   # DragonFly does not have aout.  When/if they implement a new
18538   # versioning mechanism, adjust this.
18539   if test -x /usr/bin/objformat; then
18540     objformat=`/usr/bin/objformat`
18541   else
18542     case $host_os in
18543     freebsd[123]*) objformat=aout ;;
18544     *) objformat=elf ;;
18545     esac
18546   fi
18547   version_type=freebsd-$objformat
18548   case $version_type in
18549     freebsd-elf*)
18550       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18551       need_version=no
18552       need_lib_prefix=no
18553       ;;
18554     freebsd-*)
18555       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18556       need_version=yes
18557       ;;
18558   esac
18559   shlibpath_var=LD_LIBRARY_PATH
18560   case $host_os in
18561   freebsd2*)
18562     shlibpath_overrides_runpath=yes
18563     ;;
18564   freebsd3.[01]* | freebsdelf3.[01]*)
18565     shlibpath_overrides_runpath=yes
18566     hardcode_into_libs=yes
18567     ;;
18568   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18569   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18570     shlibpath_overrides_runpath=no
18571     hardcode_into_libs=yes
18572     ;;
18573   *) # from 4.6 on, and DragonFly
18574     shlibpath_overrides_runpath=yes
18575     hardcode_into_libs=yes
18576     ;;
18577   esac
18578   ;;
18579
18580 gnu*)
18581   version_type=linux
18582   need_lib_prefix=no
18583   need_version=no
18584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18585   soname_spec='${libname}${release}${shared_ext}$major'
18586   shlibpath_var=LD_LIBRARY_PATH
18587   hardcode_into_libs=yes
18588   ;;
18589
18590 hpux9* | hpux10* | hpux11*)
18591   # Give a soname corresponding to the major version so that dld.sl refuses to
18592   # link against other versions.
18593   version_type=sunos
18594   need_lib_prefix=no
18595   need_version=no
18596   case $host_cpu in
18597   ia64*)
18598     shrext_cmds='.so'
18599     hardcode_into_libs=yes
18600     dynamic_linker="$host_os dld.so"
18601     shlibpath_var=LD_LIBRARY_PATH
18602     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18604     soname_spec='${libname}${release}${shared_ext}$major'
18605     if test "X$HPUX_IA64_MODE" = X32; then
18606       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18607     else
18608       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18609     fi
18610     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18611     ;;
18612    hppa*64*)
18613      shrext_cmds='.sl'
18614      hardcode_into_libs=yes
18615      dynamic_linker="$host_os dld.sl"
18616      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18617      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18618      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619      soname_spec='${libname}${release}${shared_ext}$major'
18620      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18621      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18622      ;;
18623    *)
18624     shrext_cmds='.sl'
18625     dynamic_linker="$host_os dld.sl"
18626     shlibpath_var=SHLIB_PATH
18627     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18628     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18629     soname_spec='${libname}${release}${shared_ext}$major'
18630     ;;
18631   esac
18632   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18633   postinstall_cmds='chmod 555 $lib'
18634   ;;
18635
18636 interix[3-9]*)
18637   version_type=linux
18638   need_lib_prefix=no
18639   need_version=no
18640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18641   soname_spec='${libname}${release}${shared_ext}$major'
18642   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18643   shlibpath_var=LD_LIBRARY_PATH
18644   shlibpath_overrides_runpath=no
18645   hardcode_into_libs=yes
18646   ;;
18647
18648 irix5* | irix6* | nonstopux*)
18649   case $host_os in
18650     nonstopux*) version_type=nonstopux ;;
18651     *)
18652         if test "$lt_cv_prog_gnu_ld" = yes; then
18653                 version_type=linux
18654         else
18655                 version_type=irix
18656         fi ;;
18657   esac
18658   need_lib_prefix=no
18659   need_version=no
18660   soname_spec='${libname}${release}${shared_ext}$major'
18661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18662   case $host_os in
18663   irix5* | nonstopux*)
18664     libsuff= shlibsuff=
18665     ;;
18666   *)
18667     case $LD in # libtool.m4 will add one of these switches to LD
18668     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18669       libsuff= shlibsuff= libmagic=32-bit;;
18670     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18671       libsuff=32 shlibsuff=N32 libmagic=N32;;
18672     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18673       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18674     *) libsuff= shlibsuff= libmagic=never-match;;
18675     esac
18676     ;;
18677   esac
18678   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18679   shlibpath_overrides_runpath=no
18680   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18681   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18682   hardcode_into_libs=yes
18683   ;;
18684
18685 # No shared lib support for Linux oldld, aout, or coff.
18686 linux*oldld* | linux*aout* | linux*coff*)
18687   dynamic_linker=no
18688   ;;
18689
18690 # This must be Linux ELF.
18691 linux* | k*bsd*-gnu)
18692   version_type=linux
18693   need_lib_prefix=no
18694   need_version=no
18695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18696   soname_spec='${libname}${release}${shared_ext}$major'
18697   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18698   shlibpath_var=LD_LIBRARY_PATH
18699   shlibpath_overrides_runpath=no
18700   # This implies no fast_install, which is unacceptable.
18701   # Some rework will be needed to allow for fast_install
18702   # before this can be enabled.
18703   hardcode_into_libs=yes
18704
18705   # Append ld.so.conf contents to the search path
18706   if test -f /etc/ld.so.conf; then
18707     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' ' '`
18708     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18709   fi
18710
18711   # We used to test for /lib/ld.so.1 and disable shared libraries on
18712   # powerpc, because MkLinux only supported shared libraries with the
18713   # GNU dynamic linker.  Since this was broken with cross compilers,
18714   # most powerpc-linux boxes support dynamic linking these days and
18715   # people can always --disable-shared, the test was removed, and we
18716   # assume the GNU/Linux dynamic linker is in use.
18717   dynamic_linker='GNU/Linux ld.so'
18718   ;;
18719
18720 netbsdelf*-gnu)
18721   version_type=linux
18722   need_lib_prefix=no
18723   need_version=no
18724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18725   soname_spec='${libname}${release}${shared_ext}$major'
18726   shlibpath_var=LD_LIBRARY_PATH
18727   shlibpath_overrides_runpath=no
18728   hardcode_into_libs=yes
18729   dynamic_linker='NetBSD ld.elf_so'
18730   ;;
18731
18732 netbsd*)
18733   version_type=sunos
18734   need_lib_prefix=no
18735   need_version=no
18736   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18738     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18739     dynamic_linker='NetBSD (a.out) ld.so'
18740   else
18741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18742     soname_spec='${libname}${release}${shared_ext}$major'
18743     dynamic_linker='NetBSD ld.elf_so'
18744   fi
18745   shlibpath_var=LD_LIBRARY_PATH
18746   shlibpath_overrides_runpath=yes
18747   hardcode_into_libs=yes
18748   ;;
18749
18750 newsos6)
18751   version_type=linux
18752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18753   shlibpath_var=LD_LIBRARY_PATH
18754   shlibpath_overrides_runpath=yes
18755   ;;
18756
18757 nto-qnx*)
18758   version_type=linux
18759   need_lib_prefix=no
18760   need_version=no
18761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762   soname_spec='${libname}${release}${shared_ext}$major'
18763   shlibpath_var=LD_LIBRARY_PATH
18764   shlibpath_overrides_runpath=yes
18765   ;;
18766
18767 openbsd*)
18768   version_type=sunos
18769   sys_lib_dlsearch_path_spec="/usr/lib"
18770   need_lib_prefix=no
18771   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18772   case $host_os in
18773     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18774     *)                         need_version=no  ;;
18775   esac
18776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18777   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18778   shlibpath_var=LD_LIBRARY_PATH
18779   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18780     case $host_os in
18781       openbsd2.[89] | openbsd2.[89].*)
18782         shlibpath_overrides_runpath=no
18783         ;;
18784       *)
18785         shlibpath_overrides_runpath=yes
18786         ;;
18787       esac
18788   else
18789     shlibpath_overrides_runpath=yes
18790   fi
18791   ;;
18792
18793 os2*)
18794   libname_spec='$name'
18795   shrext_cmds=".dll"
18796   need_lib_prefix=no
18797   library_names_spec='$libname${shared_ext} $libname.a'
18798   dynamic_linker='OS/2 ld.exe'
18799   shlibpath_var=LIBPATH
18800   ;;
18801
18802 osf3* | osf4* | osf5*)
18803   version_type=osf
18804   need_lib_prefix=no
18805   need_version=no
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808   shlibpath_var=LD_LIBRARY_PATH
18809   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18810   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18811   ;;
18812
18813 rdos*)
18814   dynamic_linker=no
18815   ;;
18816
18817 solaris*)
18818   version_type=linux
18819   need_lib_prefix=no
18820   need_version=no
18821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18822   soname_spec='${libname}${release}${shared_ext}$major'
18823   shlibpath_var=LD_LIBRARY_PATH
18824   shlibpath_overrides_runpath=yes
18825   hardcode_into_libs=yes
18826   # ldd complains unless libraries are executable
18827   postinstall_cmds='chmod +x $lib'
18828   ;;
18829
18830 sunos4*)
18831   version_type=sunos
18832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18833   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18834   shlibpath_var=LD_LIBRARY_PATH
18835   shlibpath_overrides_runpath=yes
18836   if test "$with_gnu_ld" = yes; then
18837     need_lib_prefix=no
18838   fi
18839   need_version=yes
18840   ;;
18841
18842 sysv4 | sysv4.3*)
18843   version_type=linux
18844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18845   soname_spec='${libname}${release}${shared_ext}$major'
18846   shlibpath_var=LD_LIBRARY_PATH
18847   case $host_vendor in
18848     sni)
18849       shlibpath_overrides_runpath=no
18850       need_lib_prefix=no
18851       export_dynamic_flag_spec='${wl}-Blargedynsym'
18852       runpath_var=LD_RUN_PATH
18853       ;;
18854     siemens)
18855       need_lib_prefix=no
18856       ;;
18857     motorola)
18858       need_lib_prefix=no
18859       need_version=no
18860       shlibpath_overrides_runpath=no
18861       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18862       ;;
18863   esac
18864   ;;
18865
18866 sysv4*MP*)
18867   if test -d /usr/nec ;then
18868     version_type=linux
18869     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18870     soname_spec='$libname${shared_ext}.$major'
18871     shlibpath_var=LD_LIBRARY_PATH
18872   fi
18873   ;;
18874
18875 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18876   version_type=freebsd-elf
18877   need_lib_prefix=no
18878   need_version=no
18879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18880   soname_spec='${libname}${release}${shared_ext}$major'
18881   shlibpath_var=LD_LIBRARY_PATH
18882   hardcode_into_libs=yes
18883   if test "$with_gnu_ld" = yes; then
18884     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18885     shlibpath_overrides_runpath=no
18886   else
18887     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18888     shlibpath_overrides_runpath=yes
18889     case $host_os in
18890       sco3.2v5*)
18891         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18892         ;;
18893     esac
18894   fi
18895   sys_lib_dlsearch_path_spec='/usr/lib'
18896   ;;
18897
18898 uts4*)
18899   version_type=linux
18900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901   soname_spec='${libname}${release}${shared_ext}$major'
18902   shlibpath_var=LD_LIBRARY_PATH
18903   ;;
18904
18905 *)
18906   dynamic_linker=no
18907   ;;
18908 esac
18909 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18910 echo "${ECHO_T}$dynamic_linker" >&6; }
18911 test "$dynamic_linker" = no && can_build_shared=no
18912
18913 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18914   echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18917 fi
18918
18919 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18920 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 else
18923   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18924 fi
18925
18926 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18927
18928 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18929 if test "$GCC" = yes; then
18930   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18931 fi
18932
18933 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18934 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18935 hardcode_action_GCJ=
18936 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18937    test -n "$runpath_var_GCJ" || \
18938    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18939
18940   # We can hardcode non-existant directories.
18941   if test "$hardcode_direct_GCJ" != no &&
18942      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18943      # have to relink, otherwise we might link with an installed library
18944      # when we should be linking with a yet-to-be-installed one
18945      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18946      test "$hardcode_minus_L_GCJ" != no; then
18947     # Linking always hardcodes the temporary library directory.
18948     hardcode_action_GCJ=relink
18949   else
18950     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18951     hardcode_action_GCJ=immediate
18952   fi
18953 else
18954   # We cannot hardcode anything, or else we can only hardcode existing
18955   # directories.
18956   hardcode_action_GCJ=unsupported
18957 fi
18958 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18959 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18960
18961 if test "$hardcode_action_GCJ" = relink; then
18962   # Fast installation is not supported
18963   enable_fast_install=no
18964 elif test "$shlibpath_overrides_runpath" = yes ||
18965      test "$enable_shared" = no; then
18966   # Fast installation is not necessary
18967   enable_fast_install=needless
18968 fi
18969
18970
18971 # The else clause should only fire when bootstrapping the
18972 # libtool distribution, otherwise you forgot to ship ltmain.sh
18973 # with your package, and you will get complaints that there are
18974 # no rules to generate ltmain.sh.
18975 if test -f "$ltmain"; then
18976   # See if we are running on zsh, and set the options which allow our commands through
18977   # without removal of \ escapes.
18978   if test -n "${ZSH_VERSION+set}" ; then
18979     setopt NO_GLOB_SUBST
18980   fi
18981   # Now quote all the things that may contain metacharacters while being
18982   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18983   # variables and quote the copies for generation of the libtool script.
18984   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18985     SED SHELL STRIP \
18986     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18987     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18988     deplibs_check_method reload_flag reload_cmds need_locks \
18989     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18990     lt_cv_sys_global_symbol_to_c_name_address \
18991     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18992     old_postinstall_cmds old_postuninstall_cmds \
18993     compiler_GCJ \
18994     CC_GCJ \
18995     LD_GCJ \
18996     lt_prog_compiler_wl_GCJ \
18997     lt_prog_compiler_pic_GCJ \
18998     lt_prog_compiler_static_GCJ \
18999     lt_prog_compiler_no_builtin_flag_GCJ \
19000     export_dynamic_flag_spec_GCJ \
19001     thread_safe_flag_spec_GCJ \
19002     whole_archive_flag_spec_GCJ \
19003     enable_shared_with_static_runtimes_GCJ \
19004     old_archive_cmds_GCJ \
19005     old_archive_from_new_cmds_GCJ \
19006     predep_objects_GCJ \
19007     postdep_objects_GCJ \
19008     predeps_GCJ \
19009     postdeps_GCJ \
19010     compiler_lib_search_path_GCJ \
19011     compiler_lib_search_dirs_GCJ \
19012     archive_cmds_GCJ \
19013     archive_expsym_cmds_GCJ \
19014     postinstall_cmds_GCJ \
19015     postuninstall_cmds_GCJ \
19016     old_archive_from_expsyms_cmds_GCJ \
19017     allow_undefined_flag_GCJ \
19018     no_undefined_flag_GCJ \
19019     export_symbols_cmds_GCJ \
19020     hardcode_libdir_flag_spec_GCJ \
19021     hardcode_libdir_flag_spec_ld_GCJ \
19022     hardcode_libdir_separator_GCJ \
19023     hardcode_automatic_GCJ \
19024     module_cmds_GCJ \
19025     module_expsym_cmds_GCJ \
19026     lt_cv_prog_compiler_c_o_GCJ \
19027     fix_srcfile_path_GCJ \
19028     exclude_expsyms_GCJ \
19029     include_expsyms_GCJ; do
19030
19031     case $var in
19032     old_archive_cmds_GCJ | \
19033     old_archive_from_new_cmds_GCJ | \
19034     archive_cmds_GCJ | \
19035     archive_expsym_cmds_GCJ | \
19036     module_cmds_GCJ | \
19037     module_expsym_cmds_GCJ | \
19038     old_archive_from_expsyms_cmds_GCJ | \
19039     export_symbols_cmds_GCJ | \
19040     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19041     postinstall_cmds | postuninstall_cmds | \
19042     old_postinstall_cmds | old_postuninstall_cmds | \
19043     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19044       # Double-quote double-evaled strings.
19045       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19046       ;;
19047     *)
19048       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19049       ;;
19050     esac
19051   done
19052
19053   case $lt_echo in
19054   *'\$0 --fallback-echo"')
19055     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19056     ;;
19057   esac
19058
19059 cfgfile="$ofile"
19060
19061   cat <<__EOF__ >> "$cfgfile"
19062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19063
19064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19065
19066 # Shell to use when invoking shell scripts.
19067 SHELL=$lt_SHELL
19068
19069 # Whether or not to build shared libraries.
19070 build_libtool_libs=$enable_shared
19071
19072 # Whether or not to build static libraries.
19073 build_old_libs=$enable_static
19074
19075 # Whether or not to add -lc for building shared libraries.
19076 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19077
19078 # Whether or not to disallow shared libs when runtime libs are static
19079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19080
19081 # Whether or not to optimize for fast installation.
19082 fast_install=$enable_fast_install
19083
19084 # The host system.
19085 host_alias=$host_alias
19086 host=$host
19087 host_os=$host_os
19088
19089 # The build system.
19090 build_alias=$build_alias
19091 build=$build
19092 build_os=$build_os
19093
19094 # An echo program that does not interpret backslashes.
19095 echo=$lt_echo
19096
19097 # The archiver.
19098 AR=$lt_AR
19099 AR_FLAGS=$lt_AR_FLAGS
19100
19101 # A C compiler.
19102 LTCC=$lt_LTCC
19103
19104 # LTCC compiler flags.
19105 LTCFLAGS=$lt_LTCFLAGS
19106
19107 # A language-specific compiler.
19108 CC=$lt_compiler_GCJ
19109
19110 # Is the compiler the GNU C compiler?
19111 with_gcc=$GCC_GCJ
19112
19113 # An ERE matcher.
19114 EGREP=$lt_EGREP
19115
19116 # The linker used to build libraries.
19117 LD=$lt_LD_GCJ
19118
19119 # Whether we need hard or soft links.
19120 LN_S=$lt_LN_S
19121
19122 # A BSD-compatible nm program.
19123 NM=$lt_NM
19124
19125 # A symbol stripping program
19126 STRIP=$lt_STRIP
19127
19128 # Used to examine libraries when file_magic_cmd begins "file"
19129 MAGIC_CMD=$MAGIC_CMD
19130
19131 # Used on cygwin: DLL creation program.
19132 DLLTOOL="$DLLTOOL"
19133
19134 # Used on cygwin: object dumper.
19135 OBJDUMP="$OBJDUMP"
19136
19137 # Used on cygwin: assembler.
19138 AS="$AS"
19139
19140 # The name of the directory that contains temporary libtool files.
19141 objdir=$objdir
19142
19143 # How to create reloadable object files.
19144 reload_flag=$lt_reload_flag
19145 reload_cmds=$lt_reload_cmds
19146
19147 # How to pass a linker flag through the compiler.
19148 wl=$lt_lt_prog_compiler_wl_GCJ
19149
19150 # Object file suffix (normally "o").
19151 objext="$ac_objext"
19152
19153 # Old archive suffix (normally "a").
19154 libext="$libext"
19155
19156 # Shared library suffix (normally ".so").
19157 shrext_cmds='$shrext_cmds'
19158
19159 # Executable file suffix (normally "").
19160 exeext="$exeext"
19161
19162 # Additional compiler flags for building library objects.
19163 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19164 pic_mode=$pic_mode
19165
19166 # What is the maximum length of a command?
19167 max_cmd_len=$lt_cv_sys_max_cmd_len
19168
19169 # Does compiler simultaneously support -c and -o options?
19170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19171
19172 # Must we lock files when doing compilation?
19173 need_locks=$lt_need_locks
19174
19175 # Do we need the lib prefix for modules?
19176 need_lib_prefix=$need_lib_prefix
19177
19178 # Do we need a version for libraries?
19179 need_version=$need_version
19180
19181 # Whether dlopen is supported.
19182 dlopen_support=$enable_dlopen
19183
19184 # Whether dlopen of programs is supported.
19185 dlopen_self=$enable_dlopen_self
19186
19187 # Whether dlopen of statically linked programs is supported.
19188 dlopen_self_static=$enable_dlopen_self_static
19189
19190 # Compiler flag to prevent dynamic linking.
19191 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19192
19193 # Compiler flag to turn off builtin functions.
19194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19195
19196 # Compiler flag to allow reflexive dlopens.
19197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19198
19199 # Compiler flag to generate shared objects directly from archives.
19200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19201
19202 # Compiler flag to generate thread-safe objects.
19203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19204
19205 # Library versioning type.
19206 version_type=$version_type
19207
19208 # Format of library name prefix.
19209 libname_spec=$lt_libname_spec
19210
19211 # List of archive names.  First name is the real one, the rest are links.
19212 # The last name is the one that the linker finds with -lNAME.
19213 library_names_spec=$lt_library_names_spec
19214
19215 # The coded name of the library, if different from the real name.
19216 soname_spec=$lt_soname_spec
19217
19218 # Commands used to build and install an old-style archive.
19219 RANLIB=$lt_RANLIB
19220 old_archive_cmds=$lt_old_archive_cmds_GCJ
19221 old_postinstall_cmds=$lt_old_postinstall_cmds
19222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19223
19224 # Create an old-style archive from a shared archive.
19225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19226
19227 # Create a temporary old-style archive to link instead of a shared archive.
19228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19229
19230 # Commands used to build and install a shared archive.
19231 archive_cmds=$lt_archive_cmds_GCJ
19232 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19233 postinstall_cmds=$lt_postinstall_cmds
19234 postuninstall_cmds=$lt_postuninstall_cmds
19235
19236 # Commands used to build a loadable module (assumed same as above if empty)
19237 module_cmds=$lt_module_cmds_GCJ
19238 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19239
19240 # Commands to strip libraries.
19241 old_striplib=$lt_old_striplib
19242 striplib=$lt_striplib
19243
19244 # Dependencies to place before the objects being linked to create a
19245 # shared library.
19246 predep_objects=$lt_predep_objects_GCJ
19247
19248 # Dependencies to place after the objects being linked to create a
19249 # shared library.
19250 postdep_objects=$lt_postdep_objects_GCJ
19251
19252 # Dependencies to place before the objects being linked to create a
19253 # shared library.
19254 predeps=$lt_predeps_GCJ
19255
19256 # Dependencies to place after the objects being linked to create a
19257 # shared library.
19258 postdeps=$lt_postdeps_GCJ
19259
19260 # The directories searched by this compiler when creating a shared
19261 # library
19262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19263
19264 # The library search path used internally by the compiler when linking
19265 # a shared library.
19266 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19267
19268 # Method to check whether dependent libraries are shared objects.
19269 deplibs_check_method=$lt_deplibs_check_method
19270
19271 # Command to use when deplibs_check_method == file_magic.
19272 file_magic_cmd=$lt_file_magic_cmd
19273
19274 # Flag that allows shared libraries with undefined symbols to be built.
19275 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19276
19277 # Flag that forces no undefined symbols.
19278 no_undefined_flag=$lt_no_undefined_flag_GCJ
19279
19280 # Commands used to finish a libtool library installation in a directory.
19281 finish_cmds=$lt_finish_cmds
19282
19283 # Same as above, but a single script fragment to be evaled but not shown.
19284 finish_eval=$lt_finish_eval
19285
19286 # Take the output of nm and produce a listing of raw symbols and C names.
19287 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19288
19289 # Transform the output of nm in a proper C declaration
19290 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19291
19292 # Transform the output of nm in a C name address pair
19293 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19294
19295 # This is the shared library runtime path variable.
19296 runpath_var=$runpath_var
19297
19298 # This is the shared library path variable.
19299 shlibpath_var=$shlibpath_var
19300
19301 # Is shlibpath searched before the hard-coded library search path?
19302 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19303
19304 # How to hardcode a shared library path into an executable.
19305 hardcode_action=$hardcode_action_GCJ
19306
19307 # Whether we should hardcode library paths into libraries.
19308 hardcode_into_libs=$hardcode_into_libs
19309
19310 # Flag to hardcode \$libdir into a binary during linking.
19311 # This must work even if \$libdir does not exist.
19312 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19313
19314 # If ld is used when linking, flag to hardcode \$libdir into
19315 # a binary during linking. This must work even if \$libdir does
19316 # not exist.
19317 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19318
19319 # Whether we need a single -rpath flag with a separated argument.
19320 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19321
19322 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19323 # resulting binary.
19324 hardcode_direct=$hardcode_direct_GCJ
19325
19326 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19327 # resulting binary.
19328 hardcode_minus_L=$hardcode_minus_L_GCJ
19329
19330 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19331 # the resulting binary.
19332 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19333
19334 # Set to yes if building a shared library automatically hardcodes DIR into the library
19335 # and all subsequent libraries and executables linked against it.
19336 hardcode_automatic=$hardcode_automatic_GCJ
19337
19338 # Variables whose values should be saved in libtool wrapper scripts and
19339 # restored at relink time.
19340 variables_saved_for_relink="$variables_saved_for_relink"
19341
19342 # Whether libtool must link a program against all its dependency libraries.
19343 link_all_deplibs=$link_all_deplibs_GCJ
19344
19345 # Compile-time system search path for libraries
19346 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19347
19348 # Run-time system search path for libraries
19349 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19350
19351 # Fix the shell variable \$srcfile for the compiler.
19352 fix_srcfile_path=$lt_fix_srcfile_path
19353
19354 # Set to yes if exported symbols are required.
19355 always_export_symbols=$always_export_symbols_GCJ
19356
19357 # The commands to list exported symbols.
19358 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19359
19360 # The commands to extract the exported symbol list from a shared archive.
19361 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19362
19363 # Symbols that should not be listed in the preloaded symbols.
19364 exclude_expsyms=$lt_exclude_expsyms_GCJ
19365
19366 # Symbols that must always be exported.
19367 include_expsyms=$lt_include_expsyms_GCJ
19368
19369 # ### END LIBTOOL TAG CONFIG: $tagname
19370
19371 __EOF__
19372
19373
19374 else
19375   # If there is no Makefile yet, we rely on a make rule to execute
19376   # `config.status --recheck' to rerun these tests and create the
19377   # libtool script then.
19378   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19379   if test -f "$ltmain_in"; then
19380     test -f Makefile && make "$ltmain"
19381   fi
19382 fi
19383
19384
19385 ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391 CC="$lt_save_CC"
19392
19393         else
19394           tagname=""
19395         fi
19396         ;;
19397
19398       RC)
19399
19400
19401 # Source file extension for RC test sources.
19402 ac_ext=rc
19403
19404 # Object file extension for compiled RC test sources.
19405 objext=o
19406 objext_RC=$objext
19407
19408 # Code to be used in simple compile tests
19409 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19410
19411 # Code to be used in simple link tests
19412 lt_simple_link_test_code="$lt_simple_compile_test_code"
19413
19414 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19415
19416 # If no C compiler was specified, use CC.
19417 LTCC=${LTCC-"$CC"}
19418
19419 # If no C compiler flags were specified, use CFLAGS.
19420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19421
19422 # Allow CC to be a program name with arguments.
19423 compiler=$CC
19424
19425
19426 # save warnings/boilerplate of simple test code
19427 ac_outfile=conftest.$ac_objext
19428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19430 _lt_compiler_boilerplate=`cat conftest.err`
19431 $rm conftest*
19432
19433 ac_outfile=conftest.$ac_objext
19434 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19436 _lt_linker_boilerplate=`cat conftest.err`
19437 $rm -r conftest*
19438
19439
19440 # Allow CC to be a program name with arguments.
19441 lt_save_CC="$CC"
19442 CC=${RC-"windres"}
19443 compiler=$CC
19444 compiler_RC=$CC
19445 for cc_temp in $compiler""; do
19446   case $cc_temp in
19447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19449     \-*) ;;
19450     *) break;;
19451   esac
19452 done
19453 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19454
19455 lt_cv_prog_compiler_c_o_RC=yes
19456
19457 # The else clause should only fire when bootstrapping the
19458 # libtool distribution, otherwise you forgot to ship ltmain.sh
19459 # with your package, and you will get complaints that there are
19460 # no rules to generate ltmain.sh.
19461 if test -f "$ltmain"; then
19462   # See if we are running on zsh, and set the options which allow our commands through
19463   # without removal of \ escapes.
19464   if test -n "${ZSH_VERSION+set}" ; then
19465     setopt NO_GLOB_SUBST
19466   fi
19467   # Now quote all the things that may contain metacharacters while being
19468   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19469   # variables and quote the copies for generation of the libtool script.
19470   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19471     SED SHELL STRIP \
19472     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19473     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19474     deplibs_check_method reload_flag reload_cmds need_locks \
19475     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19476     lt_cv_sys_global_symbol_to_c_name_address \
19477     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19478     old_postinstall_cmds old_postuninstall_cmds \
19479     compiler_RC \
19480     CC_RC \
19481     LD_RC \
19482     lt_prog_compiler_wl_RC \
19483     lt_prog_compiler_pic_RC \
19484     lt_prog_compiler_static_RC \
19485     lt_prog_compiler_no_builtin_flag_RC \
19486     export_dynamic_flag_spec_RC \
19487     thread_safe_flag_spec_RC \
19488     whole_archive_flag_spec_RC \
19489     enable_shared_with_static_runtimes_RC \
19490     old_archive_cmds_RC \
19491     old_archive_from_new_cmds_RC \
19492     predep_objects_RC \
19493     postdep_objects_RC \
19494     predeps_RC \
19495     postdeps_RC \
19496     compiler_lib_search_path_RC \
19497     compiler_lib_search_dirs_RC \
19498     archive_cmds_RC \
19499     archive_expsym_cmds_RC \
19500     postinstall_cmds_RC \
19501     postuninstall_cmds_RC \
19502     old_archive_from_expsyms_cmds_RC \
19503     allow_undefined_flag_RC \
19504     no_undefined_flag_RC \
19505     export_symbols_cmds_RC \
19506     hardcode_libdir_flag_spec_RC \
19507     hardcode_libdir_flag_spec_ld_RC \
19508     hardcode_libdir_separator_RC \
19509     hardcode_automatic_RC \
19510     module_cmds_RC \
19511     module_expsym_cmds_RC \
19512     lt_cv_prog_compiler_c_o_RC \
19513     fix_srcfile_path_RC \
19514     exclude_expsyms_RC \
19515     include_expsyms_RC; do
19516
19517     case $var in
19518     old_archive_cmds_RC | \
19519     old_archive_from_new_cmds_RC | \
19520     archive_cmds_RC | \
19521     archive_expsym_cmds_RC | \
19522     module_cmds_RC | \
19523     module_expsym_cmds_RC | \
19524     old_archive_from_expsyms_cmds_RC | \
19525     export_symbols_cmds_RC | \
19526     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19527     postinstall_cmds | postuninstall_cmds | \
19528     old_postinstall_cmds | old_postuninstall_cmds | \
19529     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19530       # Double-quote double-evaled strings.
19531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19532       ;;
19533     *)
19534       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19535       ;;
19536     esac
19537   done
19538
19539   case $lt_echo in
19540   *'\$0 --fallback-echo"')
19541     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19542     ;;
19543   esac
19544
19545 cfgfile="$ofile"
19546
19547   cat <<__EOF__ >> "$cfgfile"
19548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19549
19550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19551
19552 # Shell to use when invoking shell scripts.
19553 SHELL=$lt_SHELL
19554
19555 # Whether or not to build shared libraries.
19556 build_libtool_libs=$enable_shared
19557
19558 # Whether or not to build static libraries.
19559 build_old_libs=$enable_static
19560
19561 # Whether or not to add -lc for building shared libraries.
19562 build_libtool_need_lc=$archive_cmds_need_lc_RC
19563
19564 # Whether or not to disallow shared libs when runtime libs are static
19565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19566
19567 # Whether or not to optimize for fast installation.
19568 fast_install=$enable_fast_install
19569
19570 # The host system.
19571 host_alias=$host_alias
19572 host=$host
19573 host_os=$host_os
19574
19575 # The build system.
19576 build_alias=$build_alias
19577 build=$build
19578 build_os=$build_os
19579
19580 # An echo program that does not interpret backslashes.
19581 echo=$lt_echo
19582
19583 # The archiver.
19584 AR=$lt_AR
19585 AR_FLAGS=$lt_AR_FLAGS
19586
19587 # A C compiler.
19588 LTCC=$lt_LTCC
19589
19590 # LTCC compiler flags.
19591 LTCFLAGS=$lt_LTCFLAGS
19592
19593 # A language-specific compiler.
19594 CC=$lt_compiler_RC
19595
19596 # Is the compiler the GNU C compiler?
19597 with_gcc=$GCC_RC
19598
19599 # An ERE matcher.
19600 EGREP=$lt_EGREP
19601
19602 # The linker used to build libraries.
19603 LD=$lt_LD_RC
19604
19605 # Whether we need hard or soft links.
19606 LN_S=$lt_LN_S
19607
19608 # A BSD-compatible nm program.
19609 NM=$lt_NM
19610
19611 # A symbol stripping program
19612 STRIP=$lt_STRIP
19613
19614 # Used to examine libraries when file_magic_cmd begins "file"
19615 MAGIC_CMD=$MAGIC_CMD
19616
19617 # Used on cygwin: DLL creation program.
19618 DLLTOOL="$DLLTOOL"
19619
19620 # Used on cygwin: object dumper.
19621 OBJDUMP="$OBJDUMP"
19622
19623 # Used on cygwin: assembler.
19624 AS="$AS"
19625
19626 # The name of the directory that contains temporary libtool files.
19627 objdir=$objdir
19628
19629 # How to create reloadable object files.
19630 reload_flag=$lt_reload_flag
19631 reload_cmds=$lt_reload_cmds
19632
19633 # How to pass a linker flag through the compiler.
19634 wl=$lt_lt_prog_compiler_wl_RC
19635
19636 # Object file suffix (normally "o").
19637 objext="$ac_objext"
19638
19639 # Old archive suffix (normally "a").
19640 libext="$libext"
19641
19642 # Shared library suffix (normally ".so").
19643 shrext_cmds='$shrext_cmds'
19644
19645 # Executable file suffix (normally "").
19646 exeext="$exeext"
19647
19648 # Additional compiler flags for building library objects.
19649 pic_flag=$lt_lt_prog_compiler_pic_RC
19650 pic_mode=$pic_mode
19651
19652 # What is the maximum length of a command?
19653 max_cmd_len=$lt_cv_sys_max_cmd_len
19654
19655 # Does compiler simultaneously support -c and -o options?
19656 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19657
19658 # Must we lock files when doing compilation?
19659 need_locks=$lt_need_locks
19660
19661 # Do we need the lib prefix for modules?
19662 need_lib_prefix=$need_lib_prefix
19663
19664 # Do we need a version for libraries?
19665 need_version=$need_version
19666
19667 # Whether dlopen is supported.
19668 dlopen_support=$enable_dlopen
19669
19670 # Whether dlopen of programs is supported.
19671 dlopen_self=$enable_dlopen_self
19672
19673 # Whether dlopen of statically linked programs is supported.
19674 dlopen_self_static=$enable_dlopen_self_static
19675
19676 # Compiler flag to prevent dynamic linking.
19677 link_static_flag=$lt_lt_prog_compiler_static_RC
19678
19679 # Compiler flag to turn off builtin functions.
19680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19681
19682 # Compiler flag to allow reflexive dlopens.
19683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19684
19685 # Compiler flag to generate shared objects directly from archives.
19686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19687
19688 # Compiler flag to generate thread-safe objects.
19689 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19690
19691 # Library versioning type.
19692 version_type=$version_type
19693
19694 # Format of library name prefix.
19695 libname_spec=$lt_libname_spec
19696
19697 # List of archive names.  First name is the real one, the rest are links.
19698 # The last name is the one that the linker finds with -lNAME.
19699 library_names_spec=$lt_library_names_spec
19700
19701 # The coded name of the library, if different from the real name.
19702 soname_spec=$lt_soname_spec
19703
19704 # Commands used to build and install an old-style archive.
19705 RANLIB=$lt_RANLIB
19706 old_archive_cmds=$lt_old_archive_cmds_RC
19707 old_postinstall_cmds=$lt_old_postinstall_cmds
19708 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19709
19710 # Create an old-style archive from a shared archive.
19711 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19712
19713 # Create a temporary old-style archive to link instead of a shared archive.
19714 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19715
19716 # Commands used to build and install a shared archive.
19717 archive_cmds=$lt_archive_cmds_RC
19718 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19719 postinstall_cmds=$lt_postinstall_cmds
19720 postuninstall_cmds=$lt_postuninstall_cmds
19721
19722 # Commands used to build a loadable module (assumed same as above if empty)
19723 module_cmds=$lt_module_cmds_RC
19724 module_expsym_cmds=$lt_module_expsym_cmds_RC
19725
19726 # Commands to strip libraries.
19727 old_striplib=$lt_old_striplib
19728 striplib=$lt_striplib
19729
19730 # Dependencies to place before the objects being linked to create a
19731 # shared library.
19732 predep_objects=$lt_predep_objects_RC
19733
19734 # Dependencies to place after the objects being linked to create a
19735 # shared library.
19736 postdep_objects=$lt_postdep_objects_RC
19737
19738 # Dependencies to place before the objects being linked to create a
19739 # shared library.
19740 predeps=$lt_predeps_RC
19741
19742 # Dependencies to place after the objects being linked to create a
19743 # shared library.
19744 postdeps=$lt_postdeps_RC
19745
19746 # The directories searched by this compiler when creating a shared
19747 # library
19748 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19749
19750 # The library search path used internally by the compiler when linking
19751 # a shared library.
19752 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19753
19754 # Method to check whether dependent libraries are shared objects.
19755 deplibs_check_method=$lt_deplibs_check_method
19756
19757 # Command to use when deplibs_check_method == file_magic.
19758 file_magic_cmd=$lt_file_magic_cmd
19759
19760 # Flag that allows shared libraries with undefined symbols to be built.
19761 allow_undefined_flag=$lt_allow_undefined_flag_RC
19762
19763 # Flag that forces no undefined symbols.
19764 no_undefined_flag=$lt_no_undefined_flag_RC
19765
19766 # Commands used to finish a libtool library installation in a directory.
19767 finish_cmds=$lt_finish_cmds
19768
19769 # Same as above, but a single script fragment to be evaled but not shown.
19770 finish_eval=$lt_finish_eval
19771
19772 # Take the output of nm and produce a listing of raw symbols and C names.
19773 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19774
19775 # Transform the output of nm in a proper C declaration
19776 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19777
19778 # Transform the output of nm in a C name address pair
19779 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19780
19781 # This is the shared library runtime path variable.
19782 runpath_var=$runpath_var
19783
19784 # This is the shared library path variable.
19785 shlibpath_var=$shlibpath_var
19786
19787 # Is shlibpath searched before the hard-coded library search path?
19788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19789
19790 # How to hardcode a shared library path into an executable.
19791 hardcode_action=$hardcode_action_RC
19792
19793 # Whether we should hardcode library paths into libraries.
19794 hardcode_into_libs=$hardcode_into_libs
19795
19796 # Flag to hardcode \$libdir into a binary during linking.
19797 # This must work even if \$libdir does not exist.
19798 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19799
19800 # If ld is used when linking, flag to hardcode \$libdir into
19801 # a binary during linking. This must work even if \$libdir does
19802 # not exist.
19803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19804
19805 # Whether we need a single -rpath flag with a separated argument.
19806 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19807
19808 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19809 # resulting binary.
19810 hardcode_direct=$hardcode_direct_RC
19811
19812 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19813 # resulting binary.
19814 hardcode_minus_L=$hardcode_minus_L_RC
19815
19816 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19817 # the resulting binary.
19818 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19819
19820 # Set to yes if building a shared library automatically hardcodes DIR into the library
19821 # and all subsequent libraries and executables linked against it.
19822 hardcode_automatic=$hardcode_automatic_RC
19823
19824 # Variables whose values should be saved in libtool wrapper scripts and
19825 # restored at relink time.
19826 variables_saved_for_relink="$variables_saved_for_relink"
19827
19828 # Whether libtool must link a program against all its dependency libraries.
19829 link_all_deplibs=$link_all_deplibs_RC
19830
19831 # Compile-time system search path for libraries
19832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19833
19834 # Run-time system search path for libraries
19835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19836
19837 # Fix the shell variable \$srcfile for the compiler.
19838 fix_srcfile_path=$lt_fix_srcfile_path
19839
19840 # Set to yes if exported symbols are required.
19841 always_export_symbols=$always_export_symbols_RC
19842
19843 # The commands to list exported symbols.
19844 export_symbols_cmds=$lt_export_symbols_cmds_RC
19845
19846 # The commands to extract the exported symbol list from a shared archive.
19847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19848
19849 # Symbols that should not be listed in the preloaded symbols.
19850 exclude_expsyms=$lt_exclude_expsyms_RC
19851
19852 # Symbols that must always be exported.
19853 include_expsyms=$lt_include_expsyms_RC
19854
19855 # ### END LIBTOOL TAG CONFIG: $tagname
19856
19857 __EOF__
19858
19859
19860 else
19861   # If there is no Makefile yet, we rely on a make rule to execute
19862   # `config.status --recheck' to rerun these tests and create the
19863   # libtool script then.
19864   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19865   if test -f "$ltmain_in"; then
19866     test -f Makefile && make "$ltmain"
19867   fi
19868 fi
19869
19870
19871 ac_ext=c
19872 ac_cpp='$CPP $CPPFLAGS'
19873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19876
19877 CC="$lt_save_CC"
19878
19879         ;;
19880
19881       *)
19882         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19883 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19884    { (exit 1); exit 1; }; }
19885         ;;
19886       esac
19887
19888       # Append the new tag name to the list of available tags.
19889       if test -n "$tagname" ; then
19890       available_tags="$available_tags $tagname"
19891     fi
19892     fi
19893   done
19894   IFS="$lt_save_ifs"
19895
19896   # Now substitute the updated list of available tags.
19897   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19898     mv "${ofile}T" "$ofile"
19899     chmod +x "$ofile"
19900   else
19901     rm -f "${ofile}T"
19902     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19903 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19904    { (exit 1); exit 1; }; }
19905   fi
19906 fi
19907
19908
19909
19910 # This can be used to rebuild libtool when needed
19911 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19912
19913 # Always use our own libtool.
19914 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19915
19916 # Prevent multiple expansion
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19940 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19941 if test "${ac_cv_header_stdc+set}" = set; then
19942   echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944   cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950 #include <stdlib.h>
19951 #include <stdarg.h>
19952 #include <string.h>
19953 #include <float.h>
19954
19955 int
19956 main ()
19957 {
19958
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_compile") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } && {
19977          test -z "$ac_c_werror_flag" ||
19978          test ! -s conftest.err
19979        } && test -s conftest.$ac_objext; then
19980   ac_cv_header_stdc=yes
19981 else
19982   echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985         ac_cv_header_stdc=no
19986 fi
19987
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989
19990 if test $ac_cv_header_stdc = yes; then
19991   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19992   cat >conftest.$ac_ext <<_ACEOF
19993 /* confdefs.h.  */
19994 _ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h.  */
19998 #include <string.h>
19999
20000 _ACEOF
20001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20002   $EGREP "memchr" >/dev/null 2>&1; then
20003   :
20004 else
20005   ac_cv_header_stdc=no
20006 fi
20007 rm -f conftest*
20008
20009 fi
20010
20011 if test $ac_cv_header_stdc = yes; then
20012   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20013   cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h.  */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h.  */
20019 #include <stdlib.h>
20020
20021 _ACEOF
20022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20023   $EGREP "free" >/dev/null 2>&1; then
20024   :
20025 else
20026   ac_cv_header_stdc=no
20027 fi
20028 rm -f conftest*
20029
20030 fi
20031
20032 if test $ac_cv_header_stdc = yes; then
20033   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20034   if test "$cross_compiling" = yes; then
20035   :
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043 #include <ctype.h>
20044 #include <stdlib.h>
20045 #if ((' ' & 0x0FF) == 0x020)
20046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20048 #else
20049 # define ISLOWER(c) \
20050                    (('a' <= (c) && (c) <= 'i') \
20051                      || ('j' <= (c) && (c) <= 'r') \
20052                      || ('s' <= (c) && (c) <= 'z'))
20053 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20054 #endif
20055
20056 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20057 int
20058 main ()
20059 {
20060   int i;
20061   for (i = 0; i < 256; i++)
20062     if (XOR (islower (i), ISLOWER (i))
20063         || toupper (i) != TOUPPER (i))
20064       return 2;
20065   return 0;
20066 }
20067 _ACEOF
20068 rm -f conftest$ac_exeext
20069 if { (ac_try="$ac_link"
20070 case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_link") 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079   { (case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_try") 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; }; then
20088   :
20089 else
20090   echo "$as_me: program exited with status $ac_status" >&5
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094 ( exit $ac_status )
20095 ac_cv_header_stdc=no
20096 fi
20097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20098 fi
20099
20100
20101 fi
20102 fi
20103 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20104 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20105 if test $ac_cv_header_stdc = yes; then
20106
20107 cat >>confdefs.h <<\_ACEOF
20108 #define STDC_HEADERS 1
20109 _ACEOF
20110
20111 fi
20112
20113 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20114 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20115 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20116   echo $ECHO_N "(cached) $ECHO_C" >&6
20117 else
20118   cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #include <sys/types.h>
20125 #include <sys/wait.h>
20126 #ifndef WEXITSTATUS
20127 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20128 #endif
20129 #ifndef WIFEXITED
20130 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20131 #endif
20132
20133 int
20134 main ()
20135 {
20136   int s;
20137   wait (&s);
20138   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_compile") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } && {
20157          test -z "$ac_c_werror_flag" ||
20158          test ! -s conftest.err
20159        } && test -s conftest.$ac_objext; then
20160   ac_cv_header_sys_wait_h=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165         ac_cv_header_sys_wait_h=no
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 fi
20170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20171 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20172 if test $ac_cv_header_sys_wait_h = yes; then
20173
20174 cat >>confdefs.h <<\_ACEOF
20175 #define HAVE_SYS_WAIT_H 1
20176 _ACEOF
20177
20178 fi
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193 for ac_header in arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h unistd.h
20194 do
20195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20200   echo $ECHO_N "(cached) $ECHO_C" >&6
20201 fi
20202 ac_res=`eval echo '${'$as_ac_Header'}'`
20203                { echo "$as_me:$LINENO: result: $ac_res" >&5
20204 echo "${ECHO_T}$ac_res" >&6; }
20205 else
20206   # Is the header compilable?
20207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215 $ac_includes_default
20216 #include <$ac_header>
20217 _ACEOF
20218 rm -f conftest.$ac_objext
20219 if { (ac_try="$ac_compile"
20220 case "(($ac_try" in
20221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222   *) ac_try_echo=$ac_try;;
20223 esac
20224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225   (eval "$ac_compile") 2>conftest.er1
20226   ac_status=$?
20227   grep -v '^ *+' conftest.er1 >conftest.err
20228   rm -f conftest.er1
20229   cat conftest.err >&5
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); } && {
20232          test -z "$ac_c_werror_flag" ||
20233          test ! -s conftest.err
20234        } && test -s conftest.$ac_objext; then
20235   ac_header_compiler=yes
20236 else
20237   echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.$ac_ext >&5
20239
20240         ac_header_compiler=no
20241 fi
20242
20243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20245 echo "${ECHO_T}$ac_header_compiler" >&6; }
20246
20247 # Is the header present?
20248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h.  */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h.  */
20256 #include <$ac_header>
20257 _ACEOF
20258 if { (ac_try="$ac_cpp conftest.$ac_ext"
20259 case "(($ac_try" in
20260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261   *) ac_try_echo=$ac_try;;
20262 esac
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20265   ac_status=$?
20266   grep -v '^ *+' conftest.er1 >conftest.err
20267   rm -f conftest.er1
20268   cat conftest.err >&5
20269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270   (exit $ac_status); } >/dev/null && {
20271          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20272          test ! -s conftest.err
20273        }; then
20274   ac_header_preproc=yes
20275 else
20276   echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279   ac_header_preproc=no
20280 fi
20281
20282 rm -f conftest.err conftest.$ac_ext
20283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20284 echo "${ECHO_T}$ac_header_preproc" >&6; }
20285
20286 # So?  What about this header?
20287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20288   yes:no: )
20289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20293     ac_header_preproc=yes
20294     ;;
20295   no:yes:* )
20296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20308
20309     ;;
20310 esac
20311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20314   echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316   eval "$as_ac_Header=\$ac_header_preproc"
20317 fi
20318 ac_res=`eval echo '${'$as_ac_Header'}'`
20319                { echo "$as_me:$LINENO: result: $ac_res" >&5
20320 echo "${ECHO_T}$ac_res" >&6; }
20321
20322 fi
20323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20324   cat >>confdefs.h <<_ACEOF
20325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20326 _ACEOF
20327
20328 fi
20329
20330 done
20331
20332
20333 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20334 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20335 if test "${ac_cv_c_const+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344
20345 int
20346 main ()
20347 {
20348 /* FIXME: Include the comments suggested by Paul. */
20349 #ifndef __cplusplus
20350   /* Ultrix mips cc rejects this.  */
20351   typedef int charset[2];
20352   const charset cs;
20353   /* SunOS 4.1.1 cc rejects this.  */
20354   char const *const *pcpcc;
20355   char **ppc;
20356   /* NEC SVR4.0.2 mips cc rejects this.  */
20357   struct point {int x, y;};
20358   static struct point const zero = {0,0};
20359   /* AIX XL C 1.02.0.0 rejects this.
20360      It does not let you subtract one const X* pointer from another in
20361      an arm of an if-expression whose if-part is not a constant
20362      expression */
20363   const char *g = "string";
20364   pcpcc = &g + (g ? g-g : 0);
20365   /* HPUX 7.0 cc rejects these. */
20366   ++pcpcc;
20367   ppc = (char**) pcpcc;
20368   pcpcc = (char const *const *) ppc;
20369   { /* SCO 3.2v4 cc rejects this.  */
20370     char *t;
20371     char const *s = 0 ? (char *) 0 : (char const *) 0;
20372
20373     *t++ = 0;
20374     if (s) return 0;
20375   }
20376   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20377     int x[] = {25, 17};
20378     const int *foo = &x[0];
20379     ++foo;
20380   }
20381   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20382     typedef const int *iptr;
20383     iptr p = 0;
20384     ++p;
20385   }
20386   { /* AIX XL C 1.02.0.0 rejects this saying
20387        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20388     struct s { int j; const int *ap[3]; };
20389     struct s *b; b->j = 5;
20390   }
20391   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20392     const int foo = 10;
20393     if (!foo) return 0;
20394   }
20395   return !cs[0] && !zero.x;
20396 #endif
20397
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (ac_try="$ac_compile"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_compile") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && {
20416          test -z "$ac_c_werror_flag" ||
20417          test ! -s conftest.err
20418        } && test -s conftest.$ac_objext; then
20419   ac_cv_c_const=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_cv_c_const=no
20425 fi
20426
20427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20428 fi
20429 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20430 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20431 if test $ac_cv_c_const = no; then
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define const
20435 _ACEOF
20436
20437 fi
20438
20439 { echo "$as_me:$LINENO: checking for inline" >&5
20440 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20441 if test "${ac_cv_c_inline+set}" = set; then
20442   echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444   ac_cv_c_inline=no
20445 for ac_kw in inline __inline__ __inline; do
20446   cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 #ifndef __cplusplus
20453 typedef int foo_t;
20454 static $ac_kw foo_t static_foo () {return 0; }
20455 $ac_kw foo_t foo () {return 0; }
20456 #endif
20457
20458 _ACEOF
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463   *) ac_try_echo=$ac_try;;
20464 esac
20465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20466   (eval "$ac_compile") 2>conftest.er1
20467   ac_status=$?
20468   grep -v '^ *+' conftest.er1 >conftest.err
20469   rm -f conftest.er1
20470   cat conftest.err >&5
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); } && {
20473          test -z "$ac_c_werror_flag" ||
20474          test ! -s conftest.err
20475        } && test -s conftest.$ac_objext; then
20476   ac_cv_c_inline=$ac_kw
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481
20482 fi
20483
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485   test "$ac_cv_c_inline" != no && break
20486 done
20487
20488 fi
20489 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20490 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20491
20492
20493 case $ac_cv_c_inline in
20494   inline | yes) ;;
20495   *)
20496     case $ac_cv_c_inline in
20497       no) ac_val=;;
20498       *) ac_val=$ac_cv_c_inline;;
20499     esac
20500     cat >>confdefs.h <<_ACEOF
20501 #ifndef __cplusplus
20502 #define inline $ac_val
20503 #endif
20504 _ACEOF
20505     ;;
20506 esac
20507
20508 { echo "$as_me:$LINENO: checking for size_t" >&5
20509 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20510 if test "${ac_cv_type_size_t+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 $ac_includes_default
20520 typedef size_t ac__type_new_;
20521 int
20522 main ()
20523 {
20524 if ((ac__type_new_ *) 0)
20525   return 0;
20526 if (sizeof (ac__type_new_))
20527   return 0;
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (ac_try="$ac_compile"
20534 case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_compile") 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } && {
20546          test -z "$ac_c_werror_flag" ||
20547          test ! -s conftest.err
20548        } && test -s conftest.$ac_objext; then
20549   ac_cv_type_size_t=yes
20550 else
20551   echo "$as_me: failed program was:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20553
20554         ac_cv_type_size_t=no
20555 fi
20556
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 fi
20559 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20560 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20561 if test $ac_cv_type_size_t = yes; then
20562   :
20563 else
20564
20565 cat >>confdefs.h <<_ACEOF
20566 #define size_t unsigned int
20567 _ACEOF
20568
20569 fi
20570
20571 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20572 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20573 if test "${ac_cv_header_time+set}" = set; then
20574   echo $ECHO_N "(cached) $ECHO_C" >&6
20575 else
20576   cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 #include <sys/types.h>
20583 #include <sys/time.h>
20584 #include <time.h>
20585
20586 int
20587 main ()
20588 {
20589 if ((struct tm *) 0)
20590 return 0;
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599   *) ac_try_echo=$ac_try;;
20600 esac
20601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602   (eval "$ac_compile") 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } && {
20609          test -z "$ac_c_werror_flag" ||
20610          test ! -s conftest.err
20611        } && test -s conftest.$ac_objext; then
20612   ac_cv_header_time=yes
20613 else
20614   echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617         ac_cv_header_time=no
20618 fi
20619
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621 fi
20622 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20623 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20624 if test $ac_cv_header_time = yes; then
20625
20626 cat >>confdefs.h <<\_ACEOF
20627 #define TIME_WITH_SYS_TIME 1
20628 _ACEOF
20629
20630 fi
20631
20632 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20633 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20634 if test "${ac_cv_struct_tm+set}" = set; then
20635   echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637   cat >conftest.$ac_ext <<_ACEOF
20638 /* confdefs.h.  */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h.  */
20643 #include <sys/types.h>
20644 #include <time.h>
20645
20646 int
20647 main ()
20648 {
20649 struct tm tm;
20650                                      int *p = &tm.tm_sec;
20651                                      return !p;
20652   ;
20653   return 0;
20654 }
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_compile") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } && {
20670          test -z "$ac_c_werror_flag" ||
20671          test ! -s conftest.err
20672        } && test -s conftest.$ac_objext; then
20673   ac_cv_struct_tm=time.h
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678         ac_cv_struct_tm=sys/time.h
20679 fi
20680
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20682 fi
20683 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20684 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20685 if test $ac_cv_struct_tm = sys/time.h; then
20686
20687 cat >>confdefs.h <<\_ACEOF
20688 #define TM_IN_SYS_TIME 1
20689 _ACEOF
20690
20691 fi
20692
20693 { echo "$as_me:$LINENO: checking for working volatile" >&5
20694 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
20695 if test "${ac_cv_c_volatile+set}" = set; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
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
20705 int
20706 main ()
20707 {
20708
20709 volatile int x;
20710 int * volatile y = (int *) 0;
20711 return !x && !y;
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_compile") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && {
20730          test -z "$ac_c_werror_flag" ||
20731          test ! -s conftest.err
20732        } && test -s conftest.$ac_objext; then
20733   ac_cv_c_volatile=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738         ac_cv_c_volatile=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 fi
20743 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20744 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
20745 if test $ac_cv_c_volatile = no; then
20746
20747 cat >>confdefs.h <<\_ACEOF
20748 #define volatile
20749 _ACEOF
20750
20751 fi
20752
20753
20754 # Checks for library functions.
20755
20756 for ac_header in stdlib.h
20757 do
20758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20760   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 fi
20765 ac_res=`eval echo '${'$as_ac_Header'}'`
20766                { echo "$as_me:$LINENO: result: $ac_res" >&5
20767 echo "${ECHO_T}$ac_res" >&6; }
20768 else
20769   # Is the header compilable?
20770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778 $ac_includes_default
20779 #include <$ac_header>
20780 _ACEOF
20781 rm -f conftest.$ac_objext
20782 if { (ac_try="$ac_compile"
20783 case "(($ac_try" in
20784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20785   *) ac_try_echo=$ac_try;;
20786 esac
20787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20788   (eval "$ac_compile") 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } && {
20795          test -z "$ac_c_werror_flag" ||
20796          test ! -s conftest.err
20797        } && test -s conftest.$ac_objext; then
20798   ac_header_compiler=yes
20799 else
20800   echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20802
20803         ac_header_compiler=no
20804 fi
20805
20806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20808 echo "${ECHO_T}$ac_header_compiler" >&6; }
20809
20810 # Is the header present?
20811 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20813 cat >conftest.$ac_ext <<_ACEOF
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819 #include <$ac_header>
20820 _ACEOF
20821 if { (ac_try="$ac_cpp conftest.$ac_ext"
20822 case "(($ac_try" in
20823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824   *) ac_try_echo=$ac_try;;
20825 esac
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20828   ac_status=$?
20829   grep -v '^ *+' conftest.er1 >conftest.err
20830   rm -f conftest.er1
20831   cat conftest.err >&5
20832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833   (exit $ac_status); } >/dev/null && {
20834          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20835          test ! -s conftest.err
20836        }; then
20837   ac_header_preproc=yes
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842   ac_header_preproc=no
20843 fi
20844
20845 rm -f conftest.err conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20847 echo "${ECHO_T}$ac_header_preproc" >&6; }
20848
20849 # So?  What about this header?
20850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20851   yes:no: )
20852     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20856     ac_header_preproc=yes
20857     ;;
20858   no:yes:* )
20859     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20861     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20862 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20863     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20865     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20866 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20869     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20871
20872     ;;
20873 esac
20874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20877   echo $ECHO_N "(cached) $ECHO_C" >&6
20878 else
20879   eval "$as_ac_Header=\$ac_header_preproc"
20880 fi
20881 ac_res=`eval echo '${'$as_ac_Header'}'`
20882                { echo "$as_me:$LINENO: result: $ac_res" >&5
20883 echo "${ECHO_T}$ac_res" >&6; }
20884
20885 fi
20886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20887   cat >>confdefs.h <<_ACEOF
20888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20889 _ACEOF
20890
20891 fi
20892
20893 done
20894
20895 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20896 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
20897 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900   if test "$cross_compiling" = yes; then
20901   ac_cv_func_malloc_0_nonnull=no
20902 else
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20910 # include <stdlib.h>
20911 #else
20912 char *malloc ();
20913 #endif
20914
20915 int
20916 main ()
20917 {
20918 return ! malloc (0);
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_link") 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20934   { (case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_try") 2>&5
20940   ac_status=$?
20941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942   (exit $ac_status); }; }; then
20943   ac_cv_func_malloc_0_nonnull=yes
20944 else
20945   echo "$as_me: program exited with status $ac_status" >&5
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ( exit $ac_status )
20950 ac_cv_func_malloc_0_nonnull=no
20951 fi
20952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20953 fi
20954
20955
20956 fi
20957 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20958 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
20959 if test $ac_cv_func_malloc_0_nonnull = yes; then
20960
20961 cat >>confdefs.h <<\_ACEOF
20962 #define HAVE_MALLOC 1
20963 _ACEOF
20964
20965 else
20966   cat >>confdefs.h <<\_ACEOF
20967 #define HAVE_MALLOC 0
20968 _ACEOF
20969
20970    case " $LIBOBJS " in
20971   *" malloc.$ac_objext "* ) ;;
20972   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20973  ;;
20974 esac
20975
20976
20977 cat >>confdefs.h <<\_ACEOF
20978 #define malloc rpl_malloc
20979 _ACEOF
20980
20981 fi
20982
20983
20984
20985 { echo "$as_me:$LINENO: checking for working memcmp" >&5
20986 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
20987 if test "${ac_cv_func_memcmp_working+set}" = set; then
20988   echo $ECHO_N "(cached) $ECHO_C" >&6
20989 else
20990   if test "$cross_compiling" = yes; then
20991   ac_cv_func_memcmp_working=no
20992 else
20993   cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h.  */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h.  */
20999 $ac_includes_default
21000 int
21001 main ()
21002 {
21003
21004   /* Some versions of memcmp are not 8-bit clean.  */
21005   char c0 = '\100', c1 = '\200', c2 = '\201';
21006   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21007     return 1;
21008
21009   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21010      or more and with at least one buffer not starting on a 4-byte boundary.
21011      William Lewis provided this test program.   */
21012   {
21013     char foo[21];
21014     char bar[21];
21015     int i;
21016     for (i = 0; i < 4; i++)
21017       {
21018         char *a = foo + i;
21019         char *b = bar + i;
21020         strcpy (a, "--------01111111");
21021         strcpy (b, "--------10000000");
21022         if (memcmp (a, b, 16) >= 0)
21023           return 1;
21024       }
21025     return 0;
21026   }
21027
21028   ;
21029   return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036   *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039   (eval "$ac_link") 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043   { (case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048   (eval "$ac_try") 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; }; then
21052   ac_cv_func_memcmp_working=yes
21053 else
21054   echo "$as_me: program exited with status $ac_status" >&5
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ( exit $ac_status )
21059 ac_cv_func_memcmp_working=no
21060 fi
21061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21062 fi
21063
21064
21065 fi
21066 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21067 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21068 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21069   *" memcmp.$ac_objext "* ) ;;
21070   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21071  ;;
21072 esac
21073
21074
21075
21076 for ac_header in stdlib.h
21077 do
21078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 fi
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086                { echo "$as_me:$LINENO: result: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21088 else
21089   # Is the header compilable?
21090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21098 $ac_includes_default
21099 #include <$ac_header>
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_compile") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest.$ac_objext; then
21118   ac_header_compiler=yes
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123         ac_header_compiler=no
21124 fi
21125
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21128 echo "${ECHO_T}$ac_header_compiler" >&6; }
21129
21130 # Is the header present?
21131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 #include <$ac_header>
21140 _ACEOF
21141 if { (ac_try="$ac_cpp conftest.$ac_ext"
21142 case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21148   ac_status=$?
21149   grep -v '^ *+' conftest.er1 >conftest.err
21150   rm -f conftest.er1
21151   cat conftest.err >&5
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); } >/dev/null && {
21154          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21155          test ! -s conftest.err
21156        }; then
21157   ac_header_preproc=yes
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162   ac_header_preproc=no
21163 fi
21164
21165 rm -f conftest.err conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21167 echo "${ECHO_T}$ac_header_preproc" >&6; }
21168
21169 # So?  What about this header?
21170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21171   yes:no: )
21172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21176     ac_header_preproc=yes
21177     ;;
21178   no:yes:* )
21179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21191
21192     ;;
21193 esac
21194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199   eval "$as_ac_Header=\$ac_header_preproc"
21200 fi
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202                { echo "$as_me:$LINENO: result: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21204
21205 fi
21206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21207   cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21209 _ACEOF
21210
21211 fi
21212
21213 done
21214
21215 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21216 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21217 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   if test "$cross_compiling" = yes; then
21221   ac_cv_func_realloc_0_nonnull=no
21222 else
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21230 # include <stdlib.h>
21231 #else
21232 char *realloc ();
21233 #endif
21234
21235 int
21236 main ()
21237 {
21238 return ! realloc (0, 0);
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest$ac_exeext
21244 if { (ac_try="$ac_link"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_link") 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21254   { (case "(($ac_try" in
21255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21256   *) ac_try_echo=$ac_try;;
21257 esac
21258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21259   (eval "$ac_try") 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); }; }; then
21263   ac_cv_func_realloc_0_nonnull=yes
21264 else
21265   echo "$as_me: program exited with status $ac_status" >&5
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21268
21269 ( exit $ac_status )
21270 ac_cv_func_realloc_0_nonnull=no
21271 fi
21272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21273 fi
21274
21275
21276 fi
21277 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21278 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21279 if test $ac_cv_func_realloc_0_nonnull = yes; then
21280
21281 cat >>confdefs.h <<\_ACEOF
21282 #define HAVE_REALLOC 1
21283 _ACEOF
21284
21285 else
21286   cat >>confdefs.h <<\_ACEOF
21287 #define HAVE_REALLOC 0
21288 _ACEOF
21289
21290    case " $LIBOBJS " in
21291   *" realloc.$ac_objext "* ) ;;
21292   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
21293  ;;
21294 esac
21295
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define realloc rpl_realloc
21299 _ACEOF
21300
21301 fi
21302
21303
21304
21305
21306
21307 for ac_header in sys/select.h sys/socket.h
21308 do
21309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21311   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21314   echo $ECHO_N "(cached) $ECHO_C" >&6
21315 fi
21316 ac_res=`eval echo '${'$as_ac_Header'}'`
21317                { echo "$as_me:$LINENO: result: $ac_res" >&5
21318 echo "${ECHO_T}$ac_res" >&6; }
21319 else
21320   # Is the header compilable?
21321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h.  */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h.  */
21329 $ac_includes_default
21330 #include <$ac_header>
21331 _ACEOF
21332 rm -f conftest.$ac_objext
21333 if { (ac_try="$ac_compile"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_compile") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest.$ac_objext; then
21349   ac_header_compiler=yes
21350 else
21351   echo "$as_me: failed program was:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21353
21354         ac_header_compiler=no
21355 fi
21356
21357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21359 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360
21361 # Is the header present?
21362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <$ac_header>
21371 _ACEOF
21372 if { (ac_try="$ac_cpp conftest.$ac_ext"
21373 case "(($ac_try" in
21374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21375   *) ac_try_echo=$ac_try;;
21376 esac
21377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21379   ac_status=$?
21380   grep -v '^ *+' conftest.er1 >conftest.err
21381   rm -f conftest.er1
21382   cat conftest.err >&5
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); } >/dev/null && {
21385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21386          test ! -s conftest.err
21387        }; then
21388   ac_header_preproc=yes
21389 else
21390   echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393   ac_header_preproc=no
21394 fi
21395
21396 rm -f conftest.err conftest.$ac_ext
21397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21398 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399
21400 # So?  What about this header?
21401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21402   yes:no: )
21403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21407     ac_header_preproc=yes
21408     ;;
21409   no:yes:* )
21410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21422
21423     ;;
21424 esac
21425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21428   echo $ECHO_N "(cached) $ECHO_C" >&6
21429 else
21430   eval "$as_ac_Header=\$ac_header_preproc"
21431 fi
21432 ac_res=`eval echo '${'$as_ac_Header'}'`
21433                { echo "$as_me:$LINENO: result: $ac_res" >&5
21434 echo "${ECHO_T}$ac_res" >&6; }
21435
21436 fi
21437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21438   cat >>confdefs.h <<_ACEOF
21439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21440 _ACEOF
21441
21442 fi
21443
21444 done
21445
21446 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
21447 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
21448 if test "${ac_cv_func_select_args+set}" = set; then
21449   echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21452  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21453   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21454    cat >conftest.$ac_ext <<_ACEOF
21455 /* confdefs.h.  */
21456 _ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h.  */
21460 $ac_includes_default
21461 #ifdef HAVE_SYS_SELECT_H
21462 # include <sys/select.h>
21463 #endif
21464 #ifdef HAVE_SYS_SOCKET_H
21465 # include <sys/socket.h>
21466 #endif
21467
21468 int
21469 main ()
21470 {
21471 extern int select ($ac_arg1,
21472                                             $ac_arg234, $ac_arg234, $ac_arg234,
21473                                             $ac_arg5);
21474   ;
21475   return 0;
21476 }
21477 _ACEOF
21478 rm -f conftest.$ac_objext
21479 if { (ac_try="$ac_compile"
21480 case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_compile") 2>conftest.er1
21486   ac_status=$?
21487   grep -v '^ *+' conftest.er1 >conftest.err
21488   rm -f conftest.er1
21489   cat conftest.err >&5
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } && {
21492          test -z "$ac_c_werror_flag" ||
21493          test ! -s conftest.err
21494        } && test -s conftest.$ac_objext; then
21495   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21496 else
21497   echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500
21501 fi
21502
21503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504   done
21505  done
21506 done
21507 # Provide a safe default value.
21508 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21509
21510 fi
21511 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21512 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
21513 ac_save_IFS=$IFS; IFS=','
21514 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21515 IFS=$ac_save_IFS
21516 shift
21517
21518 cat >>confdefs.h <<_ACEOF
21519 #define SELECT_TYPE_ARG1 $1
21520 _ACEOF
21521
21522
21523 cat >>confdefs.h <<_ACEOF
21524 #define SELECT_TYPE_ARG234 ($2)
21525 _ACEOF
21526
21527
21528 cat >>confdefs.h <<_ACEOF
21529 #define SELECT_TYPE_ARG5 ($3)
21530 _ACEOF
21531
21532 rm -f conftest*
21533
21534 { echo "$as_me:$LINENO: checking for function prototypes" >&5
21535 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
21536 if test "$ac_cv_prog_cc_c89" != no; then
21537   { echo "$as_me:$LINENO: result: yes" >&5
21538 echo "${ECHO_T}yes" >&6; }
21539
21540 cat >>confdefs.h <<\_ACEOF
21541 #define PROTOTYPES 1
21542 _ACEOF
21543
21544
21545 cat >>confdefs.h <<\_ACEOF
21546 #define __PROTOTYPES 1
21547 _ACEOF
21548
21549 else
21550   { echo "$as_me:$LINENO: result: no" >&5
21551 echo "${ECHO_T}no" >&6; }
21552 fi
21553
21554 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
21555 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
21556 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 else
21559   ac_cv_func_setvbuf_reversed=no
21560    cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566 #include <stdio.h>
21567 #         ifdef PROTOTYPES
21568            int (setvbuf) (FILE *, int, char *, size_t);
21569 #         endif
21570 int
21571 main ()
21572 {
21573 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
21578 rm -f conftest.$ac_objext conftest$ac_exeext
21579 if { (ac_try="$ac_link"
21580 case "(($ac_try" in
21581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582   *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585   (eval "$ac_link") 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } && {
21592          test -z "$ac_c_werror_flag" ||
21593          test ! -s conftest.err
21594        } && test -s conftest$ac_exeext &&
21595        $as_test_x conftest$ac_exeext; then
21596   cat >conftest.$ac_ext <<_ACEOF
21597 /* confdefs.h.  */
21598 _ACEOF
21599 cat confdefs.h >>conftest.$ac_ext
21600 cat >>conftest.$ac_ext <<_ACEOF
21601 /* end confdefs.h.  */
21602 #include <stdio.h>
21603 #            ifdef PROTOTYPES
21604               int (setvbuf) (FILE *, int, char *, size_t);
21605 #            endif
21606 int
21607 main ()
21608 {
21609 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (ac_try="$ac_link"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_link") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } && {
21628          test -z "$ac_c_werror_flag" ||
21629          test ! -s conftest.err
21630        } && test -s conftest$ac_exeext &&
21631        $as_test_x conftest$ac_exeext; then
21632   # It compiles and links either way, so it must not be declared
21633          # with a prototype and most likely this is a K&R C compiler.
21634          # Try running it.
21635          if test "$cross_compiling" = yes; then
21636   : # Assume setvbuf is not reversed when cross-compiling.
21637 else
21638   cat >conftest.$ac_ext <<_ACEOF
21639 /* confdefs.h.  */
21640 _ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h.  */
21644 $ac_includes_default
21645 int
21646 main ()
21647 {
21648 /* This call has the arguments reversed.
21649                    A reversed system may check and see that the address of buf
21650                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
21651                 char buf;
21652                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
21653                   return 1;
21654                 putchar ('\r');
21655                 return 0; /* Non-reversed systems SEGV here.  */
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest$ac_exeext
21661 if { (ac_try="$ac_link"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21667   (eval "$ac_link") 2>&5
21668   ac_status=$?
21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21671   { (case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_try") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ac_cv_func_setvbuf_reversed=yes
21681 else
21682   echo "$as_me: program exited with status $ac_status" >&5
21683 echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.$ac_ext >&5
21685
21686 fi
21687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21688 fi
21689
21690
21691         ac_cv_func_setvbuf_reversed=yes
21692 else
21693   echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21695
21696
21697 fi
21698
21699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21700       conftest$ac_exeext conftest.$ac_ext
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705
21706 fi
21707
21708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21709       conftest$ac_exeext conftest.$ac_ext
21710 fi
21711 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
21712 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
21713 if test $ac_cv_func_setvbuf_reversed = yes; then
21714
21715 cat >>confdefs.h <<\_ACEOF
21716 #define SETVBUF_REVERSED 1
21717 _ACEOF
21718
21719 fi
21720
21721
21722 for ac_func in vprintf
21723 do
21724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21728   echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730   cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21738 #define $ac_func innocuous_$ac_func
21739
21740 /* System header to define __stub macros and hopefully few prototypes,
21741     which can conflict with char $ac_func (); below.
21742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21743     <limits.h> exists even on freestanding compilers.  */
21744
21745 #ifdef __STDC__
21746 # include <limits.h>
21747 #else
21748 # include <assert.h>
21749 #endif
21750
21751 #undef $ac_func
21752
21753 /* Override any GCC internal prototype to avoid an error.
21754    Use char because int might match the return type of a GCC
21755    builtin and then its argument prototype would still apply.  */
21756 #ifdef __cplusplus
21757 extern "C"
21758 #endif
21759 char $ac_func ();
21760 /* The GNU C library defines this for functions which it implements
21761     to always fail with ENOSYS.  Some functions are actually named
21762     something starting with __ and the normal name is an alias.  */
21763 #if defined __stub_$ac_func || defined __stub___$ac_func
21764 choke me
21765 #endif
21766
21767 int
21768 main ()
21769 {
21770 return $ac_func ();
21771   ;
21772   return 0;
21773 }
21774 _ACEOF
21775 rm -f conftest.$ac_objext conftest$ac_exeext
21776 if { (ac_try="$ac_link"
21777 case "(($ac_try" in
21778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779   *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782   (eval "$ac_link") 2>conftest.er1
21783   ac_status=$?
21784   grep -v '^ *+' conftest.er1 >conftest.err
21785   rm -f conftest.er1
21786   cat conftest.err >&5
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } && {
21789          test -z "$ac_c_werror_flag" ||
21790          test ! -s conftest.err
21791        } && test -s conftest$ac_exeext &&
21792        $as_test_x conftest$ac_exeext; then
21793   eval "$as_ac_var=yes"
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798         eval "$as_ac_var=no"
21799 fi
21800
21801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21802       conftest$ac_exeext conftest.$ac_ext
21803 fi
21804 ac_res=`eval echo '${'$as_ac_var'}'`
21805                { echo "$as_me:$LINENO: result: $ac_res" >&5
21806 echo "${ECHO_T}$ac_res" >&6; }
21807 if test `eval echo '${'$as_ac_var'}'` = yes; then
21808   cat >>confdefs.h <<_ACEOF
21809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21810 _ACEOF
21811
21812 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21813 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21814 if test "${ac_cv_func__doprnt+set}" = set; then
21815   echo $ECHO_N "(cached) $ECHO_C" >&6
21816 else
21817   cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21825 #define _doprnt innocuous__doprnt
21826
21827 /* System header to define __stub macros and hopefully few prototypes,
21828     which can conflict with char _doprnt (); below.
21829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21830     <limits.h> exists even on freestanding compilers.  */
21831
21832 #ifdef __STDC__
21833 # include <limits.h>
21834 #else
21835 # include <assert.h>
21836 #endif
21837
21838 #undef _doprnt
21839
21840 /* Override any GCC internal prototype to avoid an error.
21841    Use char because int might match the return type of a GCC
21842    builtin and then its argument prototype would still apply.  */
21843 #ifdef __cplusplus
21844 extern "C"
21845 #endif
21846 char _doprnt ();
21847 /* The GNU C library defines this for functions which it implements
21848     to always fail with ENOSYS.  Some functions are actually named
21849     something starting with __ and the normal name is an alias.  */
21850 #if defined __stub__doprnt || defined __stub____doprnt
21851 choke me
21852 #endif
21853
21854 int
21855 main ()
21856 {
21857 return _doprnt ();
21858   ;
21859   return 0;
21860 }
21861 _ACEOF
21862 rm -f conftest.$ac_objext conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_link") 2>conftest.er1
21870   ac_status=$?
21871   grep -v '^ *+' conftest.er1 >conftest.err
21872   rm -f conftest.er1
21873   cat conftest.err >&5
21874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875   (exit $ac_status); } && {
21876          test -z "$ac_c_werror_flag" ||
21877          test ! -s conftest.err
21878        } && test -s conftest$ac_exeext &&
21879        $as_test_x conftest$ac_exeext; then
21880   ac_cv_func__doprnt=yes
21881 else
21882   echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885         ac_cv_func__doprnt=no
21886 fi
21887
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889       conftest$ac_exeext conftest.$ac_ext
21890 fi
21891 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21892 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21893 if test $ac_cv_func__doprnt = yes; then
21894
21895 cat >>confdefs.h <<\_ACEOF
21896 #define HAVE_DOPRNT 1
21897 _ACEOF
21898
21899 fi
21900
21901 fi
21902 done
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916 for ac_func in bzero gethostbyname gettimeofday memmove memset select socket strchr strerror strtol strtoul
21917 do
21918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21922   echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924   cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h.  */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h.  */
21930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21932 #define $ac_func innocuous_$ac_func
21933
21934 /* System header to define __stub macros and hopefully few prototypes,
21935     which can conflict with char $ac_func (); below.
21936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21937     <limits.h> exists even on freestanding compilers.  */
21938
21939 #ifdef __STDC__
21940 # include <limits.h>
21941 #else
21942 # include <assert.h>
21943 #endif
21944
21945 #undef $ac_func
21946
21947 /* Override any GCC internal prototype to avoid an error.
21948    Use char because int might match the return type of a GCC
21949    builtin and then its argument prototype would still apply.  */
21950 #ifdef __cplusplus
21951 extern "C"
21952 #endif
21953 char $ac_func ();
21954 /* The GNU C library defines this for functions which it implements
21955     to always fail with ENOSYS.  Some functions are actually named
21956     something starting with __ and the normal name is an alias.  */
21957 #if defined __stub_$ac_func || defined __stub___$ac_func
21958 choke me
21959 #endif
21960
21961 int
21962 main ()
21963 {
21964 return $ac_func ();
21965   ;
21966   return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973   *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976   (eval "$ac_link") 2>conftest.er1
21977   ac_status=$?
21978   grep -v '^ *+' conftest.er1 >conftest.err
21979   rm -f conftest.er1
21980   cat conftest.err >&5
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); } && {
21983          test -z "$ac_c_werror_flag" ||
21984          test ! -s conftest.err
21985        } && test -s conftest$ac_exeext &&
21986        $as_test_x conftest$ac_exeext; then
21987   eval "$as_ac_var=yes"
21988 else
21989   echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992         eval "$as_ac_var=no"
21993 fi
21994
21995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21996       conftest$ac_exeext conftest.$ac_ext
21997 fi
21998 ac_res=`eval echo '${'$as_ac_var'}'`
21999                { echo "$as_me:$LINENO: result: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002   cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 _ACEOF
22005
22006 fi
22007 done
22008
22009
22010 ac_config_files="$ac_config_files lksctp-tools.spec Makefile bin/Makefile man/Makefile src/Makefile src/apps/Makefile src/func_tests/Makefile src/include/Makefile src/include/netinet/Makefile src/lib/Makefile src/testlib/Makefile src/withsctp/Makefile doc/Makefile"
22011
22012 cat >confcache <<\_ACEOF
22013 # This file is a shell script that caches the results of configure
22014 # tests run on this system so they can be shared between configure
22015 # scripts and configure runs, see configure's option --config-cache.
22016 # It is not useful on other systems.  If it contains results you don't
22017 # want to keep, you may remove or edit it.
22018 #
22019 # config.status only pays attention to the cache file if you give it
22020 # the --recheck option to rerun configure.
22021 #
22022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22024 # following values.
22025
22026 _ACEOF
22027
22028 # The following way of writing the cache mishandles newlines in values,
22029 # but we know of no workaround that is simple, portable, and efficient.
22030 # So, we kill variables containing newlines.
22031 # Ultrix sh set writes to stderr and can't be redirected directly,
22032 # and sets the high bit in the cache file unless we assign to the vars.
22033 (
22034   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22035     eval ac_val=\$$ac_var
22036     case $ac_val in #(
22037     *${as_nl}*)
22038       case $ac_var in #(
22039       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22040 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22041       esac
22042       case $ac_var in #(
22043       _ | IFS | as_nl) ;; #(
22044       *) $as_unset $ac_var ;;
22045       esac ;;
22046     esac
22047   done
22048
22049   (set) 2>&1 |
22050     case $as_nl`(ac_space=' '; set) 2>&1` in #(
22051     *${as_nl}ac_space=\ *)
22052       # `set' does not quote correctly, so add quotes (double-quote
22053       # substitution turns \\\\ into \\, and sed turns \\ into \).
22054       sed -n \
22055         "s/'/'\\\\''/g;
22056           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22057       ;; #(
22058     *)
22059       # `set' quotes correctly as required by POSIX, so do not add quotes.
22060       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22061       ;;
22062     esac |
22063     sort
22064 ) |
22065   sed '
22066      /^ac_cv_env_/b end
22067      t clear
22068      :clear
22069      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22070      t end
22071      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22072      :end' >>confcache
22073 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22074   if test -w "$cache_file"; then
22075     test "x$cache_file" != "x/dev/null" &&
22076       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22077 echo "$as_me: updating cache $cache_file" >&6;}
22078     cat confcache >$cache_file
22079   else
22080     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22081 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22082   fi
22083 fi
22084 rm -f confcache
22085
22086 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22087 # Let make expand exec_prefix.
22088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22089
22090 DEFS=-DHAVE_CONFIG_H
22091
22092 ac_libobjs=
22093 ac_ltlibobjs=
22094 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22095   # 1. Remove the extension, and $U if already installed.
22096   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22097   ac_i=`echo "$ac_i" | sed "$ac_script"`
22098   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22099   #    will be set to the directory where LIBOBJS objects are built.
22100   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22101   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22102 done
22103 LIBOBJS=$ac_libobjs
22104
22105 LTLIBOBJS=$ac_ltlibobjs
22106
22107
22108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22109   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22110 Usually this means the macro was only invoked conditionally." >&5
22111 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22112 Usually this means the macro was only invoked conditionally." >&2;}
22113    { (exit 1); exit 1; }; }
22114 fi
22115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22116   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22117 Usually this means the macro was only invoked conditionally." >&5
22118 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22119 Usually this means the macro was only invoked conditionally." >&2;}
22120    { (exit 1); exit 1; }; }
22121 fi
22122 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22123   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22124 Usually this means the macro was only invoked conditionally." >&5
22125 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22126 Usually this means the macro was only invoked conditionally." >&2;}
22127    { (exit 1); exit 1; }; }
22128 fi
22129
22130 : ${CONFIG_STATUS=./config.status}
22131 ac_clean_files_save=$ac_clean_files
22132 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22133 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22134 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22135 cat >$CONFIG_STATUS <<_ACEOF
22136 #! $SHELL
22137 # Generated by $as_me.
22138 # Run this file to recreate the current configuration.
22139 # Compiler output produced by configure, useful for debugging
22140 # configure, is in config.log if it exists.
22141
22142 debug=false
22143 ac_cs_recheck=false
22144 ac_cs_silent=false
22145 SHELL=\${CONFIG_SHELL-$SHELL}
22146 _ACEOF
22147
22148 cat >>$CONFIG_STATUS <<\_ACEOF
22149 ## --------------------- ##
22150 ## M4sh Initialization.  ##
22151 ## --------------------- ##
22152
22153 # Be more Bourne compatible
22154 DUALCASE=1; export DUALCASE # for MKS sh
22155 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22156   emulate sh
22157   NULLCMD=:
22158   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22159   # is contrary to our usage.  Disable this feature.
22160   alias -g '${1+"$@"}'='"$@"'
22161   setopt NO_GLOB_SUBST
22162 else
22163   case `(set -o) 2>/dev/null` in
22164   *posix*) set -o posix ;;
22165 esac
22166
22167 fi
22168
22169
22170
22171
22172 # PATH needs CR
22173 # Avoid depending upon Character Ranges.
22174 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22175 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22176 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22177 as_cr_digits='0123456789'
22178 as_cr_alnum=$as_cr_Letters$as_cr_digits
22179
22180 # The user is always right.
22181 if test "${PATH_SEPARATOR+set}" != set; then
22182   echo "#! /bin/sh" >conf$$.sh
22183   echo  "exit 0"   >>conf$$.sh
22184   chmod +x conf$$.sh
22185   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22186     PATH_SEPARATOR=';'
22187   else
22188     PATH_SEPARATOR=:
22189   fi
22190   rm -f conf$$.sh
22191 fi
22192
22193 # Support unset when possible.
22194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22195   as_unset=unset
22196 else
22197   as_unset=false
22198 fi
22199
22200
22201 # IFS
22202 # We need space, tab and new line, in precisely that order.  Quoting is
22203 # there to prevent editors from complaining about space-tab.
22204 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22205 # splitting by setting IFS to empty value.)
22206 as_nl='
22207 '
22208 IFS=" ""        $as_nl"
22209
22210 # Find who we are.  Look in the path if we contain no directory separator.
22211 case $0 in
22212   *[\\/]* ) as_myself=$0 ;;
22213   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22214 for as_dir in $PATH
22215 do
22216   IFS=$as_save_IFS
22217   test -z "$as_dir" && as_dir=.
22218   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22219 done
22220 IFS=$as_save_IFS
22221
22222      ;;
22223 esac
22224 # We did not find ourselves, most probably we were run as `sh COMMAND'
22225 # in which case we are not to be found in the path.
22226 if test "x$as_myself" = x; then
22227   as_myself=$0
22228 fi
22229 if test ! -f "$as_myself"; then
22230   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22231   { (exit 1); exit 1; }
22232 fi
22233
22234 # Work around bugs in pre-3.0 UWIN ksh.
22235 for as_var in ENV MAIL MAILPATH
22236 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22237 done
22238 PS1='$ '
22239 PS2='> '
22240 PS4='+ '
22241
22242 # NLS nuisances.
22243 for as_var in \
22244   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22245   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22246   LC_TELEPHONE LC_TIME
22247 do
22248   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22249     eval $as_var=C; export $as_var
22250   else
22251     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22252   fi
22253 done
22254
22255 # Required to use basename.
22256 if expr a : '\(a\)' >/dev/null 2>&1 &&
22257    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22258   as_expr=expr
22259 else
22260   as_expr=false
22261 fi
22262
22263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22264   as_basename=basename
22265 else
22266   as_basename=false
22267 fi
22268
22269
22270 # Name of the executable.
22271 as_me=`$as_basename -- "$0" ||
22272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22273          X"$0" : 'X\(//\)$' \| \
22274          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22275 echo X/"$0" |
22276     sed '/^.*\/\([^/][^/]*\)\/*$/{
22277             s//\1/
22278             q
22279           }
22280           /^X\/\(\/\/\)$/{
22281             s//\1/
22282             q
22283           }
22284           /^X\/\(\/\).*/{
22285             s//\1/
22286             q
22287           }
22288           s/.*/./; q'`
22289
22290 # CDPATH.
22291 $as_unset CDPATH
22292
22293
22294
22295   as_lineno_1=$LINENO
22296   as_lineno_2=$LINENO
22297   test "x$as_lineno_1" != "x$as_lineno_2" &&
22298   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22299
22300   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22301   # uniformly replaced by the line number.  The first 'sed' inserts a
22302   # line-number line after each line using $LINENO; the second 'sed'
22303   # does the real work.  The second script uses 'N' to pair each
22304   # line-number line with the line containing $LINENO, and appends
22305   # trailing '-' during substitution so that $LINENO is not a special
22306   # case at line end.
22307   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22308   # scripts with optimization help from Paolo Bonzini.  Blame Lee
22309   # E. McMahon (1931-1989) for sed's syntax.  :-)
22310   sed -n '
22311     p
22312     /[$]LINENO/=
22313   ' <$as_myself |
22314     sed '
22315       s/[$]LINENO.*/&-/
22316       t lineno
22317       b
22318       :lineno
22319       N
22320       :loop
22321       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22322       t loop
22323       s/-\n.*//
22324     ' >$as_me.lineno &&
22325   chmod +x "$as_me.lineno" ||
22326     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22327    { (exit 1); exit 1; }; }
22328
22329   # Don't try to exec as it changes $[0], causing all sort of problems
22330   # (the dirname of $[0] is not the place where we might find the
22331   # original and so on.  Autoconf is especially sensitive to this).
22332   . "./$as_me.lineno"
22333   # Exit status is that of the last command.
22334   exit
22335 }
22336
22337
22338 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22339   as_dirname=dirname
22340 else
22341   as_dirname=false
22342 fi
22343
22344 ECHO_C= ECHO_N= ECHO_T=
22345 case `echo -n x` in
22346 -n*)
22347   case `echo 'x\c'` in
22348   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
22349   *)   ECHO_C='\c';;
22350   esac;;
22351 *)
22352   ECHO_N='-n';;
22353 esac
22354
22355 if expr a : '\(a\)' >/dev/null 2>&1 &&
22356    test "X`expr 00001 : '.*\(...\)'`" = X001; then
22357   as_expr=expr
22358 else
22359   as_expr=false
22360 fi
22361
22362 rm -f conf$$ conf$$.exe conf$$.file
22363 if test -d conf$$.dir; then
22364   rm -f conf$$.dir/conf$$.file
22365 else
22366   rm -f conf$$.dir
22367   mkdir conf$$.dir
22368 fi
22369 echo >conf$$.file
22370 if ln -s conf$$.file conf$$ 2>/dev/null; then
22371   as_ln_s='ln -s'
22372   # ... but there are two gotchas:
22373   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22374   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22375   # In both cases, we have to default to `cp -p'.
22376   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22377     as_ln_s='cp -p'
22378 elif ln conf$$.file conf$$ 2>/dev/null; then
22379   as_ln_s=ln
22380 else
22381   as_ln_s='cp -p'
22382 fi
22383 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22384 rmdir conf$$.dir 2>/dev/null
22385
22386 if mkdir -p . 2>/dev/null; then
22387   as_mkdir_p=:
22388 else
22389   test -d ./-p && rmdir ./-p
22390   as_mkdir_p=false
22391 fi
22392
22393 if test -x / >/dev/null 2>&1; then
22394   as_test_x='test -x'
22395 else
22396   if ls -dL / >/dev/null 2>&1; then
22397     as_ls_L_option=L
22398   else
22399     as_ls_L_option=
22400   fi
22401   as_test_x='
22402     eval sh -c '\''
22403       if test -d "$1"; then
22404         test -d "$1/.";
22405       else
22406         case $1 in
22407         -*)set "./$1";;
22408         esac;
22409         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22410         ???[sx]*):;;*)false;;esac;fi
22411     '\'' sh
22412   '
22413 fi
22414 as_executable_p=$as_test_x
22415
22416 # Sed expression to map a string onto a valid CPP name.
22417 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22418
22419 # Sed expression to map a string onto a valid variable name.
22420 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22421
22422
22423 exec 6>&1
22424
22425 # Save the log message, to keep $[0] and so on meaningful, and to
22426 # report actual input values of CONFIG_FILES etc. instead of their
22427 # values after options handling.
22428 ac_log="
22429 This file was extended by $as_me, which was
22430 generated by GNU Autoconf 2.61.  Invocation command line was
22431
22432   CONFIG_FILES    = $CONFIG_FILES
22433   CONFIG_HEADERS  = $CONFIG_HEADERS
22434   CONFIG_LINKS    = $CONFIG_LINKS
22435   CONFIG_COMMANDS = $CONFIG_COMMANDS
22436   $ $0 $@
22437
22438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22439 "
22440
22441 _ACEOF
22442
22443 cat >>$CONFIG_STATUS <<_ACEOF
22444 # Files that config.status was made for.
22445 config_files="$ac_config_files"
22446 config_headers="$ac_config_headers"
22447 config_commands="$ac_config_commands"
22448
22449 _ACEOF
22450
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22452 ac_cs_usage="\
22453 \`$as_me' instantiates files from templates according to the
22454 current configuration.
22455
22456 Usage: $0 [OPTIONS] [FILE]...
22457
22458   -h, --help       print this help, then exit
22459   -V, --version    print version number and configuration settings, then exit
22460   -q, --quiet      do not print progress messages
22461   -d, --debug      don't remove temporary files
22462       --recheck    update $as_me by reconfiguring in the same conditions
22463   --file=FILE[:TEMPLATE]
22464                    instantiate the configuration file FILE
22465   --header=FILE[:TEMPLATE]
22466                    instantiate the configuration header FILE
22467
22468 Configuration files:
22469 $config_files
22470
22471 Configuration headers:
22472 $config_headers
22473
22474 Configuration commands:
22475 $config_commands
22476
22477 Report bugs to <bug-autoconf@gnu.org>."
22478
22479 _ACEOF
22480 cat >>$CONFIG_STATUS <<_ACEOF
22481 ac_cs_version="\\
22482 config.status
22483 configured by $0, generated by GNU Autoconf 2.61,
22484   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22485
22486 Copyright (C) 2006 Free Software Foundation, Inc.
22487 This config.status script is free software; the Free Software Foundation
22488 gives unlimited permission to copy, distribute and modify it."
22489
22490 ac_pwd='$ac_pwd'
22491 srcdir='$srcdir'
22492 INSTALL='$INSTALL'
22493 _ACEOF
22494
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22496 # If no file are specified by the user, then we need to provide default
22497 # value.  By we need to know if files were specified by the user.
22498 ac_need_defaults=:
22499 while test $# != 0
22500 do
22501   case $1 in
22502   --*=*)
22503     ac_option=`expr "X$1" : 'X\([^=]*\)='`
22504     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22505     ac_shift=:
22506     ;;
22507   *)
22508     ac_option=$1
22509     ac_optarg=$2
22510     ac_shift=shift
22511     ;;
22512   esac
22513
22514   case $ac_option in
22515   # Handling of the options.
22516   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22517     ac_cs_recheck=: ;;
22518   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22519     echo "$ac_cs_version"; exit ;;
22520   --debug | --debu | --deb | --de | --d | -d )
22521     debug=: ;;
22522   --file | --fil | --fi | --f )
22523     $ac_shift
22524     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22525     ac_need_defaults=false;;
22526   --header | --heade | --head | --hea )
22527     $ac_shift
22528     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22529     ac_need_defaults=false;;
22530   --he | --h)
22531     # Conflict between --help and --header
22532     { echo "$as_me: error: ambiguous option: $1
22533 Try \`$0 --help' for more information." >&2
22534    { (exit 1); exit 1; }; };;
22535   --help | --hel | -h )
22536     echo "$ac_cs_usage"; exit ;;
22537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22538   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22539     ac_cs_silent=: ;;
22540
22541   # This is an error.
22542   -*) { echo "$as_me: error: unrecognized option: $1
22543 Try \`$0 --help' for more information." >&2
22544    { (exit 1); exit 1; }; } ;;
22545
22546   *) ac_config_targets="$ac_config_targets $1"
22547      ac_need_defaults=false ;;
22548
22549   esac
22550   shift
22551 done
22552
22553 ac_configure_extra_args=
22554
22555 if $ac_cs_silent; then
22556   exec 6>/dev/null
22557   ac_configure_extra_args="$ac_configure_extra_args --silent"
22558 fi
22559
22560 _ACEOF
22561 cat >>$CONFIG_STATUS <<_ACEOF
22562 if \$ac_cs_recheck; then
22563   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22564   CONFIG_SHELL=$SHELL
22565   export CONFIG_SHELL
22566   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22567 fi
22568
22569 _ACEOF
22570 cat >>$CONFIG_STATUS <<\_ACEOF
22571 exec 5>>config.log
22572 {
22573   echo
22574   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22575 ## Running $as_me. ##
22576 _ASBOX
22577   echo "$ac_log"
22578 } >&5
22579
22580 _ACEOF
22581 cat >>$CONFIG_STATUS <<_ACEOF
22582 #
22583 # INIT-COMMANDS
22584 #
22585 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22586
22587 _ACEOF
22588
22589 cat >>$CONFIG_STATUS <<\_ACEOF
22590
22591 # Handling of arguments.
22592 for ac_config_target in $ac_config_targets
22593 do
22594   case $ac_config_target in
22595     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22596     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22597     "lksctp-tools.spec") CONFIG_FILES="$CONFIG_FILES lksctp-tools.spec" ;;
22598     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22599     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
22600     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
22601     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22602     "src/apps/Makefile") CONFIG_FILES="$CONFIG_FILES src/apps/Makefile" ;;
22603     "src/func_tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/func_tests/Makefile" ;;
22604     "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
22605     "src/include/netinet/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/netinet/Makefile" ;;
22606     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22607     "src/testlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/testlib/Makefile" ;;
22608     "src/withsctp/Makefile") CONFIG_FILES="$CONFIG_FILES src/withsctp/Makefile" ;;
22609     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22610
22611   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22613    { (exit 1); exit 1; }; };;
22614   esac
22615 done
22616
22617
22618 # If the user did not use the arguments to specify the items to instantiate,
22619 # then the envvar interface is used.  Set only those that are not.
22620 # We use the long form for the default assignment because of an extremely
22621 # bizarre bug on SunOS 4.1.3.
22622 if $ac_need_defaults; then
22623   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22624   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22625   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22626 fi
22627
22628 # Have a temporary directory for convenience.  Make it in the build tree
22629 # simply because there is no reason against having it here, and in addition,
22630 # creating and moving files from /tmp can sometimes cause problems.
22631 # Hook for its removal unless debugging.
22632 # Note that there is a small window in which the directory will not be cleaned:
22633 # after its creation but before its name has been assigned to `$tmp'.
22634 $debug ||
22635 {
22636   tmp=
22637   trap 'exit_status=$?
22638   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22639 ' 0
22640   trap '{ (exit 1); exit 1; }' 1 2 13 15
22641 }
22642 # Create a (secure) tmp directory for tmp files.
22643
22644 {
22645   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22646   test -n "$tmp" && test -d "$tmp"
22647 }  ||
22648 {
22649   tmp=./conf$$-$RANDOM
22650   (umask 077 && mkdir "$tmp")
22651 } ||
22652 {
22653    echo "$me: cannot create a temporary directory in ." >&2
22654    { (exit 1); exit 1; }
22655 }
22656
22657 #
22658 # Set up the sed scripts for CONFIG_FILES section.
22659 #
22660
22661 # No need to generate the scripts if there are no CONFIG_FILES.
22662 # This happens for instance when ./config.status config.h
22663 if test -n "$CONFIG_FILES"; then
22664
22665 _ACEOF
22666
22667
22668
22669 ac_delim='%!_!# '
22670 for ac_last_try in false false false false false :; do
22671   cat >conf$$subs.sed <<_ACEOF
22672 SHELL!$SHELL$ac_delim
22673 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22674 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22675 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22676 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22677 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22678 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22679 exec_prefix!$exec_prefix$ac_delim
22680 prefix!$prefix$ac_delim
22681 program_transform_name!$program_transform_name$ac_delim
22682 bindir!$bindir$ac_delim
22683 sbindir!$sbindir$ac_delim
22684 libexecdir!$libexecdir$ac_delim
22685 datarootdir!$datarootdir$ac_delim
22686 datadir!$datadir$ac_delim
22687 sysconfdir!$sysconfdir$ac_delim
22688 sharedstatedir!$sharedstatedir$ac_delim
22689 localstatedir!$localstatedir$ac_delim
22690 includedir!$includedir$ac_delim
22691 oldincludedir!$oldincludedir$ac_delim
22692 docdir!$docdir$ac_delim
22693 infodir!$infodir$ac_delim
22694 htmldir!$htmldir$ac_delim
22695 dvidir!$dvidir$ac_delim
22696 pdfdir!$pdfdir$ac_delim
22697 psdir!$psdir$ac_delim
22698 libdir!$libdir$ac_delim
22699 localedir!$localedir$ac_delim
22700 mandir!$mandir$ac_delim
22701 DEFS!$DEFS$ac_delim
22702 ECHO_C!$ECHO_C$ac_delim
22703 ECHO_N!$ECHO_N$ac_delim
22704 ECHO_T!$ECHO_T$ac_delim
22705 LIBS!$LIBS$ac_delim
22706 build_alias!$build_alias$ac_delim
22707 host_alias!$host_alias$ac_delim
22708 target_alias!$target_alias$ac_delim
22709 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22710 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22711 INSTALL_DATA!$INSTALL_DATA$ac_delim
22712 CYGPATH_W!$CYGPATH_W$ac_delim
22713 PACKAGE!$PACKAGE$ac_delim
22714 VERSION!$VERSION$ac_delim
22715 ACLOCAL!$ACLOCAL$ac_delim
22716 AUTOCONF!$AUTOCONF$ac_delim
22717 AUTOMAKE!$AUTOMAKE$ac_delim
22718 AUTOHEADER!$AUTOHEADER$ac_delim
22719 MAKEINFO!$MAKEINFO$ac_delim
22720 install_sh!$install_sh$ac_delim
22721 STRIP!$STRIP$ac_delim
22722 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22723 mkdir_p!$mkdir_p$ac_delim
22724 AWK!$AWK$ac_delim
22725 SET_MAKE!$SET_MAKE$ac_delim
22726 am__leading_dot!$am__leading_dot$ac_delim
22727 AMTAR!$AMTAR$ac_delim
22728 am__tar!$am__tar$ac_delim
22729 am__untar!$am__untar$ac_delim
22730 CC!$CC$ac_delim
22731 CFLAGS!$CFLAGS$ac_delim
22732 LDFLAGS!$LDFLAGS$ac_delim
22733 CPPFLAGS!$CPPFLAGS$ac_delim
22734 ac_ct_CC!$ac_ct_CC$ac_delim
22735 EXEEXT!$EXEEXT$ac_delim
22736 OBJEXT!$OBJEXT$ac_delim
22737 DEPDIR!$DEPDIR$ac_delim
22738 am__include!$am__include$ac_delim
22739 am__quote!$am__quote$ac_delim
22740 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22741 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22742 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22743 CCDEPMODE!$CCDEPMODE$ac_delim
22744 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22745 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22746 LN_S!$LN_S$ac_delim
22747 build!$build$ac_delim
22748 build_cpu!$build_cpu$ac_delim
22749 build_vendor!$build_vendor$ac_delim
22750 build_os!$build_os$ac_delim
22751 host!$host$ac_delim
22752 host_cpu!$host_cpu$ac_delim
22753 host_vendor!$host_vendor$ac_delim
22754 host_os!$host_os$ac_delim
22755 SED!$SED$ac_delim
22756 GREP!$GREP$ac_delim
22757 EGREP!$EGREP$ac_delim
22758 ECHO!$ECHO$ac_delim
22759 AR!$AR$ac_delim
22760 RANLIB!$RANLIB$ac_delim
22761 DSYMUTIL!$DSYMUTIL$ac_delim
22762 NMEDIT!$NMEDIT$ac_delim
22763 CPP!$CPP$ac_delim
22764 CXX!$CXX$ac_delim
22765 CXXFLAGS!$CXXFLAGS$ac_delim
22766 ac_ct_CXX!$ac_ct_CXX$ac_delim
22767 CXXDEPMODE!$CXXDEPMODE$ac_delim
22768 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22769 _ACEOF
22770
22771   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22772     break
22773   elif $ac_last_try; then
22774     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22775 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22776    { (exit 1); exit 1; }; }
22777   else
22778     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22779   fi
22780 done
22781
22782 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22783 if test -n "$ac_eof"; then
22784   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22785   ac_eof=`expr $ac_eof + 1`
22786 fi
22787
22788 cat >>$CONFIG_STATUS <<_ACEOF
22789 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22791 _ACEOF
22792 sed '
22793 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22794 s/^/s,@/; s/!/@,|#_!!_#|/
22795 :n
22796 t n
22797 s/'"$ac_delim"'$/,g/; t
22798 s/$/\\/; p
22799 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22800 ' >>$CONFIG_STATUS <conf$$subs.sed
22801 rm -f conf$$subs.sed
22802 cat >>$CONFIG_STATUS <<_ACEOF
22803 CEOF$ac_eof
22804 _ACEOF
22805
22806
22807 ac_delim='%!_!# '
22808 for ac_last_try in false false false false false :; do
22809   cat >conf$$subs.sed <<_ACEOF
22810 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22811 CXXCPP!$CXXCPP$ac_delim
22812 F77!$F77$ac_delim
22813 FFLAGS!$FFLAGS$ac_delim
22814 ac_ct_F77!$ac_ct_F77$ac_delim
22815 LIBTOOL!$LIBTOOL$ac_delim
22816 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22817 LIBOBJS!$LIBOBJS$ac_delim
22818 LTLIBOBJS!$LTLIBOBJS$ac_delim
22819 _ACEOF
22820
22821   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
22822     break
22823   elif $ac_last_try; then
22824     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22826    { (exit 1); exit 1; }; }
22827   else
22828     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22829   fi
22830 done
22831
22832 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22833 if test -n "$ac_eof"; then
22834   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22835   ac_eof=`expr $ac_eof + 1`
22836 fi
22837
22838 cat >>$CONFIG_STATUS <<_ACEOF
22839 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22841 _ACEOF
22842 sed '
22843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22844 s/^/s,@/; s/!/@,|#_!!_#|/
22845 :n
22846 t n
22847 s/'"$ac_delim"'$/,g/; t
22848 s/$/\\/; p
22849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22850 ' >>$CONFIG_STATUS <conf$$subs.sed
22851 rm -f conf$$subs.sed
22852 cat >>$CONFIG_STATUS <<_ACEOF
22853 :end
22854 s/|#_!!_#|//g
22855 CEOF$ac_eof
22856 _ACEOF
22857
22858
22859 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22861 # trailing colons and then remove the whole line if VPATH becomes empty
22862 # (actually we leave an empty line to preserve line numbers).
22863 if test "x$srcdir" = x.; then
22864   ac_vpsub='/^[  ]*VPATH[        ]*=/{
22865 s/:*\$(srcdir):*/:/
22866 s/:*\${srcdir}:*/:/
22867 s/:*@srcdir@:*/:/
22868 s/^\([^=]*=[     ]*\):*/\1/
22869 s/:*$//
22870 s/^[^=]*=[       ]*$//
22871 }'
22872 fi
22873
22874 cat >>$CONFIG_STATUS <<\_ACEOF
22875 fi # test -n "$CONFIG_FILES"
22876
22877
22878 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
22879 do
22880   case $ac_tag in
22881   :[FHLC]) ac_mode=$ac_tag; continue;;
22882   esac
22883   case $ac_mode$ac_tag in
22884   :[FHL]*:*);;
22885   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22886 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22887    { (exit 1); exit 1; }; };;
22888   :[FH]-) ac_tag=-:-;;
22889   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22890   esac
22891   ac_save_IFS=$IFS
22892   IFS=:
22893   set x $ac_tag
22894   IFS=$ac_save_IFS
22895   shift
22896   ac_file=$1
22897   shift
22898
22899   case $ac_mode in
22900   :L) ac_source=$1;;
22901   :[FH])
22902     ac_file_inputs=
22903     for ac_f
22904     do
22905       case $ac_f in
22906       -) ac_f="$tmp/stdin";;
22907       *) # Look for the file first in the build tree, then in the source tree
22908          # (if the path is not absolute).  The absolute path cannot be DOS-style,
22909          # because $ac_f cannot contain `:'.
22910          test -f "$ac_f" ||
22911            case $ac_f in
22912            [\\/$]*) false;;
22913            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22914            esac ||
22915            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22916 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22917    { (exit 1); exit 1; }; };;
22918       esac
22919       ac_file_inputs="$ac_file_inputs $ac_f"
22920     done
22921
22922     # Let's still pretend it is `configure' which instantiates (i.e., don't
22923     # use $as_me), people would be surprised to read:
22924     #    /* config.h.  Generated by config.status.  */
22925     configure_input="Generated from "`IFS=:
22926           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22927     if test x"$ac_file" != x-; then
22928       configure_input="$ac_file.  $configure_input"
22929       { echo "$as_me:$LINENO: creating $ac_file" >&5
22930 echo "$as_me: creating $ac_file" >&6;}
22931     fi
22932
22933     case $ac_tag in
22934     *:-:* | *:-) cat >"$tmp/stdin";;
22935     esac
22936     ;;
22937   esac
22938
22939   ac_dir=`$as_dirname -- "$ac_file" ||
22940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22941          X"$ac_file" : 'X\(//\)[^/]' \| \
22942          X"$ac_file" : 'X\(//\)$' \| \
22943          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22944 echo X"$ac_file" |
22945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22946             s//\1/
22947             q
22948           }
22949           /^X\(\/\/\)[^/].*/{
22950             s//\1/
22951             q
22952           }
22953           /^X\(\/\/\)$/{
22954             s//\1/
22955             q
22956           }
22957           /^X\(\/\).*/{
22958             s//\1/
22959             q
22960           }
22961           s/.*/./; q'`
22962   { as_dir="$ac_dir"
22963   case $as_dir in #(
22964   -*) as_dir=./$as_dir;;
22965   esac
22966   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22967     as_dirs=
22968     while :; do
22969       case $as_dir in #(
22970       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22971       *) as_qdir=$as_dir;;
22972       esac
22973       as_dirs="'$as_qdir' $as_dirs"
22974       as_dir=`$as_dirname -- "$as_dir" ||
22975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22976          X"$as_dir" : 'X\(//\)[^/]' \| \
22977          X"$as_dir" : 'X\(//\)$' \| \
22978          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22979 echo X"$as_dir" |
22980     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22981             s//\1/
22982             q
22983           }
22984           /^X\(\/\/\)[^/].*/{
22985             s//\1/
22986             q
22987           }
22988           /^X\(\/\/\)$/{
22989             s//\1/
22990             q
22991           }
22992           /^X\(\/\).*/{
22993             s//\1/
22994             q
22995           }
22996           s/.*/./; q'`
22997       test -d "$as_dir" && break
22998     done
22999     test -z "$as_dirs" || eval "mkdir $as_dirs"
23000   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23001 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23002    { (exit 1); exit 1; }; }; }
23003   ac_builddir=.
23004
23005 case "$ac_dir" in
23006 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23007 *)
23008   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23009   # A ".." for each directory in $ac_dir_suffix.
23010   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23011   case $ac_top_builddir_sub in
23012   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23013   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23014   esac ;;
23015 esac
23016 ac_abs_top_builddir=$ac_pwd
23017 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23018 # for backward compatibility:
23019 ac_top_builddir=$ac_top_build_prefix
23020
23021 case $srcdir in
23022   .)  # We are building in place.
23023     ac_srcdir=.
23024     ac_top_srcdir=$ac_top_builddir_sub
23025     ac_abs_top_srcdir=$ac_pwd ;;
23026   [\\/]* | ?:[\\/]* )  # Absolute name.
23027     ac_srcdir=$srcdir$ac_dir_suffix;
23028     ac_top_srcdir=$srcdir
23029     ac_abs_top_srcdir=$srcdir ;;
23030   *) # Relative name.
23031     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23032     ac_top_srcdir=$ac_top_build_prefix$srcdir
23033     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23034 esac
23035 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23036
23037
23038   case $ac_mode in
23039   :F)
23040   #
23041   # CONFIG_FILE
23042   #
23043
23044   case $INSTALL in
23045   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23046   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23047   esac
23048 _ACEOF
23049
23050 cat >>$CONFIG_STATUS <<\_ACEOF
23051 # If the template does not know about datarootdir, expand it.
23052 # FIXME: This hack should be removed a few years after 2.60.
23053 ac_datarootdir_hack=; ac_datarootdir_seen=
23054
23055 case `sed -n '/datarootdir/ {
23056   p
23057   q
23058 }
23059 /@datadir@/p
23060 /@docdir@/p
23061 /@infodir@/p
23062 /@localedir@/p
23063 /@mandir@/p
23064 ' $ac_file_inputs` in
23065 *datarootdir*) ac_datarootdir_seen=yes;;
23066 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23067   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23068 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23069 _ACEOF
23070 cat >>$CONFIG_STATUS <<_ACEOF
23071   ac_datarootdir_hack='
23072   s&@datadir@&$datadir&g
23073   s&@docdir@&$docdir&g
23074   s&@infodir@&$infodir&g
23075   s&@localedir@&$localedir&g
23076   s&@mandir@&$mandir&g
23077     s&\\\${datarootdir}&$datarootdir&g' ;;
23078 esac
23079 _ACEOF
23080
23081 # Neutralize VPATH when `$srcdir' = `.'.
23082 # Shell code in configure.ac might set extrasub.
23083 # FIXME: do we really want to maintain this feature?
23084 cat >>$CONFIG_STATUS <<_ACEOF
23085   sed "$ac_vpsub
23086 $extrasub
23087 _ACEOF
23088 cat >>$CONFIG_STATUS <<\_ACEOF
23089 :t
23090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23091 s&@configure_input@&$configure_input&;t t
23092 s&@top_builddir@&$ac_top_builddir_sub&;t t
23093 s&@srcdir@&$ac_srcdir&;t t
23094 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23095 s&@top_srcdir@&$ac_top_srcdir&;t t
23096 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23097 s&@builddir@&$ac_builddir&;t t
23098 s&@abs_builddir@&$ac_abs_builddir&;t t
23099 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23100 s&@INSTALL@&$ac_INSTALL&;t t
23101 $ac_datarootdir_hack
23102 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23103
23104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23105   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23106   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23107   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23108 which seems to be undefined.  Please make sure it is defined." >&5
23109 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23110 which seems to be undefined.  Please make sure it is defined." >&2;}
23111
23112   rm -f "$tmp/stdin"
23113   case $ac_file in
23114   -) cat "$tmp/out"; rm -f "$tmp/out";;
23115   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23116   esac
23117  ;;
23118   :H)
23119   #
23120   # CONFIG_HEADER
23121   #
23122 _ACEOF
23123
23124 # Transform confdefs.h into a sed script `conftest.defines', that
23125 # substitutes the proper values into config.h.in to produce config.h.
23126 rm -f conftest.defines conftest.tail
23127 # First, append a space to every undef/define line, to ease matching.
23128 echo 's/$/ /' >conftest.defines
23129 # Then, protect against being on the right side of a sed subst, or in
23130 # an unquoted here document, in config.status.  If some macros were
23131 # called several times there might be several #defines for the same
23132 # symbol, which is useless.  But do not sort them, since the last
23133 # AC_DEFINE must be honored.
23134 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23135 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23136 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23137 # PARAMS is the parameter list in the macro definition--in most cases, it's
23138 # just an empty string.
23139 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23140 ac_dB='\\)[      (].*,\\1define\\2'
23141 ac_dC=' '
23142 ac_dD=' ,'
23143
23144 uniq confdefs.h |
23145   sed -n '
23146         t rset
23147         :rset
23148         s/^[     ]*#[    ]*define[       ][      ]*//
23149         t ok
23150         d
23151         :ok
23152         s/[\\&,]/\\&/g
23153         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23154         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23155   ' >>conftest.defines
23156
23157 # Remove the space that was appended to ease matching.
23158 # Then replace #undef with comments.  This is necessary, for
23159 # example, in the case of _POSIX_SOURCE, which is predefined and required
23160 # on some systems where configure will not decide to define it.
23161 # (The regexp can be short, since the line contains either #define or #undef.)
23162 echo 's/ $//
23163 s,^[     #]*u.*,/* & */,' >>conftest.defines
23164
23165 # Break up conftest.defines:
23166 ac_max_sed_lines=50
23167
23168 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23169 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23170 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23171 # et cetera.
23172 ac_in='$ac_file_inputs'
23173 ac_out='"$tmp/out1"'
23174 ac_nxt='"$tmp/out2"'
23175
23176 while :
23177 do
23178   # Write a here document:
23179     cat >>$CONFIG_STATUS <<_ACEOF
23180     # First, check the format of the line:
23181     cat >"\$tmp/defines.sed" <<\\CEOF
23182 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23183 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23184 b
23185 :def
23186 _ACEOF
23187   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23188   echo 'CEOF
23189     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23190   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23191   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23192   grep . conftest.tail >/dev/null || break
23193   rm -f conftest.defines
23194   mv conftest.tail conftest.defines
23195 done
23196 rm -f conftest.defines conftest.tail
23197
23198 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23199 cat >>$CONFIG_STATUS <<\_ACEOF
23200   if test x"$ac_file" != x-; then
23201     echo "/* $configure_input  */" >"$tmp/config.h"
23202     cat "$ac_result" >>"$tmp/config.h"
23203     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23204       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23205 echo "$as_me: $ac_file is unchanged" >&6;}
23206     else
23207       rm -f $ac_file
23208       mv "$tmp/config.h" $ac_file
23209     fi
23210   else
23211     echo "/* $configure_input  */"
23212     cat "$ac_result"
23213   fi
23214   rm -f "$tmp/out12"
23215 # Compute $ac_file's index in $config_headers.
23216 _am_stamp_count=1
23217 for _am_header in $config_headers :; do
23218   case $_am_header in
23219     $ac_file | $ac_file:* )
23220       break ;;
23221     * )
23222       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23223   esac
23224 done
23225 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23226 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23227          X$ac_file : 'X\(//\)[^/]' \| \
23228          X$ac_file : 'X\(//\)$' \| \
23229          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23230 echo X$ac_file |
23231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23232             s//\1/
23233             q
23234           }
23235           /^X\(\/\/\)[^/].*/{
23236             s//\1/
23237             q
23238           }
23239           /^X\(\/\/\)$/{
23240             s//\1/
23241             q
23242           }
23243           /^X\(\/\).*/{
23244             s//\1/
23245             q
23246           }
23247           s/.*/./; q'`/stamp-h$_am_stamp_count
23248  ;;
23249
23250   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23251 echo "$as_me: executing $ac_file commands" >&6;}
23252  ;;
23253   esac
23254
23255
23256   case $ac_file$ac_mode in
23257     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23258   # Strip MF so we end up with the name of the file.
23259   mf=`echo "$mf" | sed -e 's/:.*$//'`
23260   # Check whether this is an Automake generated Makefile or not.
23261   # We used to match only the files named `Makefile.in', but
23262   # some people rename them; so instead we look at the file content.
23263   # Grep'ing the first line is not enough: some people post-process
23264   # each Makefile.in and add a new line on top of each file to say so.
23265   # So let's grep whole file.
23266   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23267     dirpart=`$as_dirname -- "$mf" ||
23268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23269          X"$mf" : 'X\(//\)[^/]' \| \
23270          X"$mf" : 'X\(//\)$' \| \
23271          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23272 echo X"$mf" |
23273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23274             s//\1/
23275             q
23276           }
23277           /^X\(\/\/\)[^/].*/{
23278             s//\1/
23279             q
23280           }
23281           /^X\(\/\/\)$/{
23282             s//\1/
23283             q
23284           }
23285           /^X\(\/\).*/{
23286             s//\1/
23287             q
23288           }
23289           s/.*/./; q'`
23290   else
23291     continue
23292   fi
23293   # Extract the definition of DEPDIR, am__include, and am__quote
23294   # from the Makefile without running `make'.
23295   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23296   test -z "$DEPDIR" && continue
23297   am__include=`sed -n 's/^am__include = //p' < "$mf"`
23298   test -z "am__include" && continue
23299   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23300   # When using ansi2knr, U may be empty or an underscore; expand it
23301   U=`sed -n 's/^U = //p' < "$mf"`
23302   # Find all dependency output files, they are included files with
23303   # $(DEPDIR) in their names.  We invoke sed twice because it is the
23304   # simplest approach to changing $(DEPDIR) to its actual value in the
23305   # expansion.
23306   for file in `sed -n "
23307     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23308        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23309     # Make sure the directory exists.
23310     test -f "$dirpart/$file" && continue
23311     fdir=`$as_dirname -- "$file" ||
23312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23313          X"$file" : 'X\(//\)[^/]' \| \
23314          X"$file" : 'X\(//\)$' \| \
23315          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23316 echo X"$file" |
23317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23318             s//\1/
23319             q
23320           }
23321           /^X\(\/\/\)[^/].*/{
23322             s//\1/
23323             q
23324           }
23325           /^X\(\/\/\)$/{
23326             s//\1/
23327             q
23328           }
23329           /^X\(\/\).*/{
23330             s//\1/
23331             q
23332           }
23333           s/.*/./; q'`
23334     { as_dir=$dirpart/$fdir
23335   case $as_dir in #(
23336   -*) as_dir=./$as_dir;;
23337   esac
23338   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23339     as_dirs=
23340     while :; do
23341       case $as_dir in #(
23342       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23343       *) as_qdir=$as_dir;;
23344       esac
23345       as_dirs="'$as_qdir' $as_dirs"
23346       as_dir=`$as_dirname -- "$as_dir" ||
23347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23348          X"$as_dir" : 'X\(//\)[^/]' \| \
23349          X"$as_dir" : 'X\(//\)$' \| \
23350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23351 echo X"$as_dir" |
23352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23353             s//\1/
23354             q
23355           }
23356           /^X\(\/\/\)[^/].*/{
23357             s//\1/
23358             q
23359           }
23360           /^X\(\/\/\)$/{
23361             s//\1/
23362             q
23363           }
23364           /^X\(\/\).*/{
23365             s//\1/
23366             q
23367           }
23368           s/.*/./; q'`
23369       test -d "$as_dir" && break
23370     done
23371     test -z "$as_dirs" || eval "mkdir $as_dirs"
23372   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23374    { (exit 1); exit 1; }; }; }
23375     # echo "creating $dirpart/$file"
23376     echo '# dummy' > "$dirpart/$file"
23377   done
23378 done
23379  ;;
23380
23381   esac
23382 done # for ac_tag
23383
23384
23385 { (exit 0); exit 0; }
23386 _ACEOF
23387 chmod +x $CONFIG_STATUS
23388 ac_clean_files=$ac_clean_files_save
23389
23390
23391 # configure is writing to config.log, and then calls config.status.
23392 # config.status does its own redirection, appending to config.log.
23393 # Unfortunately, on DOS this fails, as config.log is still kept open
23394 # by configure, so config.status won't be able to write to it; its
23395 # output is simply discarded.  So we exec the FD to /dev/null,
23396 # effectively closing config.log, so it can be properly (re)opened and
23397 # appended to by config.status.  When coming back to configure, we
23398 # need to make the FD available again.
23399 if test "$no_create" != yes; then
23400   ac_cs_success=:
23401   ac_config_status_args=
23402   test "$silent" = yes &&
23403     ac_config_status_args="$ac_config_status_args --quiet"
23404   exec 5>/dev/null
23405   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23406   exec 5>>config.log
23407   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23408   # would make configure fail if this is the last instruction.
23409   $ac_cs_success || { (exit 1); exit 1; }
23410 fi
23411